@spteck/react-controls-v2 2.2.8 → 2.3.0
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/{_arrayEach-Bpca_7LJ.js → _arrayEach-8mS77K-T.js} +2 -2
- package/dist/{_arrayEach-DOL-P2QE.cjs → _arrayEach-BtnPcZvU.cjs} +2 -2
- package/dist/abstractions/IBrandCenterFonts.d.ts +33 -0
- package/dist/abstractions/index.d.ts +1 -0
- package/dist/{arc-DTzaPsdm.js → arc-5yDizpVi.js} +2 -2
- package/dist/{arc-WEST6KHn.cjs → arc-CHX8tzAa.cjs} +2 -2
- package/dist/{architecture-7HQA4BMR-CtBlJP9y.cjs → architecture-7HQA4BMR-C5SMaY7N.cjs} +2 -2
- package/dist/architecture-7HQA4BMR-QRAO6LZs.js +6 -0
- package/dist/{architectureDiagram-VXUJARFQ-CSqOUGQP.cjs → architectureDiagram-VXUJARFQ-BGkw31EW.cjs} +2 -2
- package/dist/{architectureDiagram-VXUJARFQ-DFzpbSmI.js → architectureDiagram-VXUJARFQ-aOTrDewq.js} +4 -4
- package/dist/{blockDiagram-VD42YOAC-Pg0vRrcx.cjs → blockDiagram-VD42YOAC-B-_xQI8-.cjs} +2 -2
- package/dist/{blockDiagram-VD42YOAC-CX5LBwDa.js → blockDiagram-VD42YOAC-BmLAe2UB.js} +5 -5
- package/dist/{c4Diagram-YG6GDRKO-D-rL6HFc.cjs → c4Diagram-YG6GDRKO-B-1eU6OG.cjs} +2 -2
- package/dist/{c4Diagram-YG6GDRKO-BB3LBIG5.js → c4Diagram-YG6GDRKO-BLrKS_53.js} +3 -3
- package/dist/{channel-C7sRieNj.js → channel-BlDl0fWH.js} +2 -2
- package/dist/channel-CavBJovq.cjs +2 -0
- package/dist/{chunk-4BX2VUAB-DQp-pCKe.cjs → chunk-4BX2VUAB-BPQfw6VK.cjs} +2 -2
- package/dist/{chunk-4BX2VUAB-D02TzcI2.js → chunk-4BX2VUAB-BhTmbZ0P.js} +2 -2
- package/dist/{chunk-55IACEB6-D7cA0QIy.js → chunk-55IACEB6-BFvNZWL0.js} +2 -2
- package/dist/{chunk-55IACEB6-J7KQbrr6.cjs → chunk-55IACEB6-CBWgQHsL.cjs} +2 -2
- package/dist/{chunk-B4BG7PRW-CJNUb2dF.js → chunk-B4BG7PRW-CqAtQU-I.js} +5 -5
- package/dist/{chunk-B4BG7PRW-C9gyAOP8.cjs → chunk-B4BG7PRW-so74-wMy.cjs} +2 -2
- package/dist/{chunk-DI55MBZ5-ISzDFhik.js → chunk-DI55MBZ5-BdBqxSCP.js} +4 -4
- package/dist/{chunk-DI55MBZ5-CST8ww1K.cjs → chunk-DI55MBZ5-BhxfU0Wh.cjs} +2 -2
- package/dist/{chunk-FMBD7UC4-TkkHMWVE.cjs → chunk-FMBD7UC4-BQChMkqq.cjs} +2 -2
- package/dist/{chunk-FMBD7UC4-DJvUa2pT.js → chunk-FMBD7UC4-CCEhBtde.js} +2 -2
- package/dist/{chunk-QN33PNHL-QmBeRY5P.js → chunk-QN33PNHL-C6wEvbod.js} +2 -2
- package/dist/{chunk-QN33PNHL-CFlYTM58.cjs → chunk-QN33PNHL-DptvB12p.cjs} +2 -2
- package/dist/{chunk-QZHKN3VN-cnwh_Uod.cjs → chunk-QZHKN3VN-BwPGFWEQ.cjs} +2 -2
- package/dist/{chunk-QZHKN3VN-BEpygh2o.js → chunk-QZHKN3VN-CWjhIJ4p.js} +2 -2
- package/dist/{chunk-TZMSLE5B-RcYgXG7j.js → chunk-TZMSLE5B-BulfQyEg.js} +2 -2
- package/dist/{chunk-TZMSLE5B-pl0uadTe.cjs → chunk-TZMSLE5B-Md78hDFm.cjs} +2 -2
- package/dist/{classDiagram-2ON5EDUG-DvJ5aIUy.cjs → classDiagram-2ON5EDUG-CZEKavO0.cjs} +2 -2
- package/dist/{classDiagram-2ON5EDUG-JTcDlkCj.js → classDiagram-2ON5EDUG-DBkePYfg.js} +3 -3
- package/dist/{classDiagram-v2-WZHVMYZB-DvJ5aIUy.cjs → classDiagram-v2-WZHVMYZB-CZEKavO0.cjs} +2 -2
- package/dist/{classDiagram-v2-WZHVMYZB-JTcDlkCj.js → classDiagram-v2-WZHVMYZB-DBkePYfg.js} +3 -3
- package/dist/components/fluentUIProvider/FluentUIProvider.d.ts +1 -0
- package/dist/components/typographyControl/ITypographyControlProps.d.ts +8 -0
- package/dist/components/worldMap/ensureMaplibreStyles.d.ts +3 -0
- package/dist/{cose-bilkent-S5V4N54A-CNBSqnWJ.cjs → cose-bilkent-S5V4N54A-CKKVaKER.cjs} +2 -2
- package/dist/{cose-bilkent-S5V4N54A-BXgTMeQA.js → cose-bilkent-S5V4N54A-ZBFo9U8K.js} +2 -2
- package/dist/{dagre-6UL2VRFP-BxQXnc8r.cjs → dagre-6UL2VRFP-B0QLpgAH.cjs} +2 -2
- package/dist/{dagre-6UL2VRFP-Cd_O6pDp.js → dagre-6UL2VRFP-gVFAp2xo.js} +2 -2
- package/dist/{diagram-PSM6KHXK-qKGo-bga.cjs → diagram-PSM6KHXK-B8PzNDiz.cjs} +2 -2
- package/dist/{diagram-PSM6KHXK-DKttOUZo.js → diagram-PSM6KHXK-BgpltQW9.js} +5 -5
- package/dist/{diagram-QEK2KX5R-sAL77GDv.js → diagram-QEK2KX5R-B59l1ou-.js} +4 -4
- package/dist/{diagram-QEK2KX5R-Dm4O2qwN.cjs → diagram-QEK2KX5R-BSfzwv7M.cjs} +2 -2
- package/dist/{diagram-S2PKOQOG-8WvO4vmy.cjs → diagram-S2PKOQOG-Bk91GOvc.cjs} +2 -2
- package/dist/{diagram-S2PKOQOG-D4Ghlb0D.js → diagram-S2PKOQOG-CcfpCRwG.js} +4 -4
- package/dist/{erDiagram-Q2GNP2WA-qzVYNj9S.cjs → erDiagram-Q2GNP2WA-BD25OJ7l.cjs} +2 -2
- package/dist/{erDiagram-Q2GNP2WA-COoAAm3O.js → erDiagram-Q2GNP2WA-lrJ1SGpr.js} +5 -5
- package/dist/{flowDiagram-NV44I4VS-CNrQgFTG.js → flowDiagram-NV44I4VS-Df1uvtZp.js} +6 -6
- package/dist/{flowDiagram-NV44I4VS-BsOjWu-D.cjs → flowDiagram-NV44I4VS-DpxYrjDI.cjs} +2 -2
- package/dist/{ganttDiagram-JELNMOA3-Dtrv-8oJ.cjs → ganttDiagram-JELNMOA3-BuEjfD0h.cjs} +2 -2
- package/dist/{ganttDiagram-JELNMOA3-BVrS6gmp.js → ganttDiagram-JELNMOA3-CTXqXyUF.js} +3 -3
- package/dist/{gitGraph-G5XIXVHT-Bg4xBTiz.cjs → gitGraph-G5XIXVHT-BWFVrIFT.cjs} +2 -2
- package/dist/gitGraph-G5XIXVHT-CQDP2vEd.js +6 -0
- package/dist/{gitGraphDiagram-V2S2FVAM-DrU41uhu.js → gitGraphDiagram-V2S2FVAM-BEAiApuY.js} +5 -5
- package/dist/{gitGraphDiagram-V2S2FVAM-DgYw8zGa.cjs → gitGraphDiagram-V2S2FVAM-Bjrr2nre.cjs} +2 -2
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useBrandCenterFonts.d.ts +49 -0
- package/dist/index-CAoOhLkP.cjs +428 -0
- package/dist/{index-BDTZ2IYY.js → index-vFWWvdca.js} +284 -156
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +127 -126
- package/dist/info-VBDWY6EO-QvquFFhY.js +6 -0
- package/dist/{info-VBDWY6EO-CiLEGfFg.cjs → info-VBDWY6EO-YkPxeRZ-.cjs} +2 -2
- package/dist/{infoDiagram-HS3SLOUP-DuxmfWqC.cjs → infoDiagram-HS3SLOUP-DHcFj6RC.cjs} +2 -2
- package/dist/{infoDiagram-HS3SLOUP-DaJhVMrW.js → infoDiagram-HS3SLOUP-DPo4m3Oc.js} +3 -3
- package/dist/{journeyDiagram-XKPGCS4Q-YP1l6Jbo.cjs → journeyDiagram-XKPGCS4Q-B5mteNXQ.cjs} +2 -2
- package/dist/{journeyDiagram-XKPGCS4Q-D1JPhzYL.js → journeyDiagram-XKPGCS4Q-yOgvceJk.js} +5 -5
- package/dist/{kanban-definition-3W4ZIXB7-DwU3_oyo.js → kanban-definition-3W4ZIXB7-B2LjQzC5.js} +3 -3
- package/dist/{kanban-definition-3W4ZIXB7-BO-t1Gbj.cjs → kanban-definition-3W4ZIXB7-BJdCPi_F.cjs} +2 -2
- package/dist/{linear-Dgc4PPM8.js → linear-BI5TRYfw.js} +2 -2
- package/dist/{linear-BQ23CiiJ.cjs → linear-DHjw4hvs.cjs} +2 -2
- package/dist/{maplibre-gl-DTnxqLU4.js → maplibre-gl-BAtlodKY.js} +2 -2
- package/dist/{maplibre-gl-BctyehJs.cjs → maplibre-gl-BOvA2Ll0.cjs} +2 -2
- package/dist/{mermaid-parser.core-DbQ4PFus.cjs → mermaid-parser.core-BQzkWune.cjs} +2 -2
- package/dist/{mermaid-parser.core-w6zleprO.js → mermaid-parser.core-or1HXQYP.js} +10 -10
- package/dist/{mindmap-definition-VGOIOE7T-CSbvwpau.cjs → mindmap-definition-VGOIOE7T-BPCXwiSh.cjs} +2 -2
- package/dist/{mindmap-definition-VGOIOE7T-Cbzl6mka.js → mindmap-definition-VGOIOE7T-BX31I3PY.js} +4 -4
- package/dist/packet-DYOGHKS2-Bse7YjBO.js +6 -0
- package/dist/{packet-DYOGHKS2-BxerF4cq.cjs → packet-DYOGHKS2-ClruFccz.cjs} +2 -2
- package/dist/{pie-VRWISCQL-L0voe8n6.cjs → pie-VRWISCQL-DUiOByGp.cjs} +2 -2
- package/dist/pie-VRWISCQL-Q3eU4qER.js +6 -0
- package/dist/{pieDiagram-ADFJNKIX-CUG-3gNw.js → pieDiagram-ADFJNKIX-CL_8VDsb.js} +5 -5
- package/dist/{pieDiagram-ADFJNKIX-KEQLPuCu.cjs → pieDiagram-ADFJNKIX-OI8gruuh.cjs} +2 -2
- package/dist/{quadrantDiagram-AYHSOK5B-_f3Rr6lt.cjs → quadrantDiagram-AYHSOK5B-DjOcdqwN.cjs} +2 -2
- package/dist/{quadrantDiagram-AYHSOK5B-BlflMUJD.js → quadrantDiagram-AYHSOK5B-iD_dxfNt.js} +3 -3
- package/dist/{radar-ZZBFDIW7-DXjfa8Pu.cjs → radar-ZZBFDIW7-KeBFLHcK.cjs} +2 -2
- package/dist/radar-ZZBFDIW7-e5irSdhY.js +6 -0
- package/dist/{requirementDiagram-UZGBJVZJ-De_dYL_C.cjs → requirementDiagram-UZGBJVZJ-CoPWc6eZ.cjs} +2 -2
- package/dist/{requirementDiagram-UZGBJVZJ-CWfVB48W.js → requirementDiagram-UZGBJVZJ-DQbSltZv.js} +4 -4
- package/dist/{sankeyDiagram-TZEHDZUN-D6tJZNWR.js → sankeyDiagram-TZEHDZUN-4xAWn_AO.js} +2 -2
- package/dist/{sankeyDiagram-TZEHDZUN-Bms2wZob.cjs → sankeyDiagram-TZEHDZUN-yGUhPXDs.cjs} +2 -2
- package/dist/{sequenceDiagram-WL72ISMW-SfYU5YrW.js → sequenceDiagram-WL72ISMW-BCilDg3f.js} +4 -4
- package/dist/{sequenceDiagram-WL72ISMW-DG1ZRDp-.cjs → sequenceDiagram-WL72ISMW-CQFu5gn5.cjs} +2 -2
- package/dist/{stateDiagram-FKZM4ZOC-crzv2Jpa.cjs → stateDiagram-FKZM4ZOC-BKlriLiy.cjs} +2 -2
- package/dist/{stateDiagram-FKZM4ZOC-KZX0nngd.js → stateDiagram-FKZM4ZOC-DTQxNxM0.js} +3 -3
- package/dist/{stateDiagram-v2-4FDKWEC3-D0KjKJoK.js → stateDiagram-v2-4FDKWEC3-BS-Rbuf4.js} +3 -3
- package/dist/{stateDiagram-v2-4FDKWEC3-B2gXhXQz.cjs → stateDiagram-v2-4FDKWEC3-C3-DQJ_j.cjs} +2 -2
- package/dist/{timeline-definition-IT6M3QCI-DelvF0G9.cjs → timeline-definition-IT6M3QCI-BUZIaC_t.cjs} +2 -2
- package/dist/{timeline-definition-IT6M3QCI-C9RQjj2r.js → timeline-definition-IT6M3QCI-C-6fhIAz.js} +3 -3
- package/dist/{treemap-GDKQZRPO-BYKJsPAu.cjs → treemap-GDKQZRPO-D-lYWdWn.cjs} +2 -2
- package/dist/treemap-GDKQZRPO-DYKBo0ui.js +6 -0
- package/dist/{xychartDiagram-PRI3JC2R-Gz0Dlfd5.cjs → xychartDiagram-PRI3JC2R-DPXNUchU.cjs} +2 -2
- package/dist/{xychartDiagram-PRI3JC2R-DABo6Om8.js → xychartDiagram-PRI3JC2R-DV2aHw-9.js} +3 -3
- package/package.json +1 -1
- package/dist/architecture-7HQA4BMR-BmS7fgvO.js +0 -6
- package/dist/channel-5ocoFjxa.cjs +0 -2
- package/dist/gitGraph-G5XIXVHT-Ptq6pPhc.js +0 -6
- package/dist/index-Dza7OtUc.cjs +0 -428
- package/dist/info-VBDWY6EO-BjV4aU5K.js +0 -6
- package/dist/packet-DYOGHKS2-BTItCXbs.js +0 -6
- package/dist/pie-VRWISCQL-B_PZrfid.js +0 -6
- package/dist/radar-ZZBFDIW7-tkjoa-D4.js +0 -6
- package/dist/style.css +0 -1
- package/dist/treemap-GDKQZRPO-Bim5pzuq.js +0 -6
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
"use strict";var e,t,r,n,i,o,a,s,l,c,u,h,d,p,g,f,m=Object.defineProperty,y=(e,t,r)=>((e,t,r)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);const b=require("./LocalizationProvider-BLjmybBa.cjs"),v=require("react/jsx-runtime"),x=require("react"),C=require("date-fns-tz"),w=require("@fluentui/react-components"),k=require("date-fns"),S=require("lodash"),_=require("@juggle/resize-observer"),T=require("@emotion/css"),A=require("embla-carousel-react"),E=require("@fluentui/react-icons"),P=require("react-dom"),M=require("@iconify/react"),I=require("@fluentui/react-calendar-compat"),B=require("@fluentui-contrib/react-data-grid-react-window"),L=require("react-player"),j=require("adaptivecards"),N=require("nano-css"),D=require("markdown-it"),O=require("@fluentui/react-datepicker-compat"),z=require("@fluentui/react-timepicker-compat"),F=require("adaptivecards-templating"),R=require("textarea-caret"),$=require("@fluentui-contrib/react-chat"),V=require("@fluentui/react-motion-components-preview");function W(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const q=W(v),H=W(x),U=W(P),G=W(j),X=W(D);var J=(e=>(e[e.XXXLarge=1900]="XXXLarge",e[e.ExtraExtraLarge=1400]="ExtraExtraLarge",e[e.ExtraLarge=1200]="ExtraLarge",e[e.Large=992]="Large",e[e.Medium=768]="Medium",e[e.Small=576]="Small",e[e.ExtraSmall=320]="ExtraSmall",e))(J||{}),Y=(e=>(e.INFO="info",e.ERROR="error",e.SUCCESS="success",e))(Y||{});const Z=x.createContext(void 0),K=()=>x.useContext(Z),Q=()=>{const e=K(),t=null==e?void 0:e.loggingProvider;return{log:(e,r=b.LogLevel.Info,n)=>{t?t.log(e,r,n):console.log(e,n)},error:(e,r,n)=>{t?t.error(e,r,n):console.error(e,r,n)},warn:(e,r)=>{t?t.warn(e,r):console.warn(e,r)},info:(e,r)=>{t?t.info(e,r):console.info(e,r)},verbose:(e,r)=>{t?t.verbose(e,r):console.debug(e,r)},LogLevel:b.LogLevel,ErrorType:b.ErrorType}},ee=()=>{const e=K(),t=null==e?void 0:e.storageProvider,{warn:r,error:n}=Q();return{getCachedData:x.useCallback(async e=>{if(t)try{return await t.get(e)}catch(i){return void n("Error reading from cache:",i instanceof Error?i:void 0)}else r("Storage provider not available")},[t]),setCachedData:x.useCallback(async(e,i,o)=>{if(t)try{await t.set(e,i,o)}catch(a){n("Error writing to cache:",a instanceof Error?a:void 0)}else r("Storage provider not available")},[t]),removeCachedData:x.useCallback(async e=>{if(t)try{await t.remove(e)}catch(i){n("Error removing from cache:",i instanceof Error?i:void 0)}else r("Storage provider not available")},[t]),clearCache:x.useCallback(async()=>{if(t)try{await t.clear()}catch(e){n("Error clearing cache:",e instanceof Error?e:void 0)}else r("Storage provider not available")},[t])}},te=(e,t,r=!0)=>{const[n,i]=x.useState(!1),o=x.useRef(null),a=x.useRef(e);x.useEffect(()=>{a.current=e},[e]);const s=x.useCallback(()=>{o.current||(i(!0),r&&a.current(),o.current=setInterval(()=>{a.current()},t))},[t,r]),l=x.useCallback(()=>{o.current&&(clearInterval(o.current),o.current=null,i(!1))},[]);return x.useEffect(()=>()=>{l()},[l]),{startPolling:s,stopPolling:l,isPolling:n}},re=e=>{const[t,r]=x.useState(""),[n,i]=x.useState(!1),[o,a]=x.useState(null),s=x.useRef(null),{parseSSEResponse:l}=(()=>{const{verbose:e,error:t}=Q();return{parseSSEResponse:x.useCallback((r,n={})=>{const{stripMarkdown:i=!0,debug:a=!1}=n;if(!r||"string"!=typeof r)return{data:void 0,rawText:"",isJson:!1,error:"Invalid input: rawResponse must be a non-empty string"};try{a&&(e("[useAIAssistantParser] Raw SSE input (full):",r),e("[useAIAssistantParser] Raw SSE length:",r.length));const t=r.split("\n"),n=[];let o,l=!1,c="",u=!1;for(let r=0;r<t.length;r++){const i=t[r];if(a&&r<20&&e(`[useAIAssistantParser] Line ${r}:`,JSON.stringify(i)),i.startsWith("event: done")){c.trim()&&(n.push(c.trim()),c="");break}if(!i.startsWith("event:")||i.startsWith("event: done"))if(i.startsWith("data: ")){const e=i.substring(6);l=!0,u&&c?c+="\n"+e:(c=e,u=!0)}else{if(""===i.trim()&&!u)continue;if(u&&""!==i.trim())c+="\n"+i;else if(""===i.trim()&&u){const e=r+1;if(e<t.length){const r=t[e];r.startsWith("event:")||e===t.length-1?(c.trim()&&(n.push(c.trim()),c=""),u=!1):""!==r.trim()?c+="\n":(c.trim()&&(n.push(c.trim()),c=""),u=!1)}}}else c.trim()&&(n.push(c.trim()),c=""),u=!1}c.trim()&&n.push(c.trim()),a&&(e(`[useAIAssistantParser] Found ${n.length} data blocks`),n.forEach((t,r)=>{e(`[useAIAssistantParser] Block ${r} (length: ${t.length}):`,t)}));let h=[];for(const r of n){let t=r.trim();i&&(t=t.replace(/^```json\s*/i,"").replace(/```\s*$/,""),t=t.trim());try{const r=JSON.parse(t);if("object"==typeof r&&null!==r){const n=Object.keys(r),i=["status","requestId","tokenCount","durationMs"];if(n.length>0&&n.every(e=>i.includes(e))){a&&e("[useAIAssistantParser] Skipping metadata/status-only JSON block:",t);continue}}o=r,a&&e("[useAIAssistantParser] Successfully parsed data block as JSON")}catch(s){t.match(/^\s*\{\s*["']?status["']?\s*:\s*["']?\w+["']?\s*\}\s*$/)?a&&e("[useAIAssistantParser] Skipping status-like text block:",t):(h.push(t),a&&e("[useAIAssistantParser] Data block is text, adding to text blocks"))}}const d=h.filter(e=>e.trim().length>0).join("\n");return a&&(e("[useAIAssistantParser] Text blocks collected:",h.length),e("[useAIAssistantParser] Filtered text blocks:",h.filter(e=>e.trim().length>0).length),e("[useAIAssistantParser] Final combined text length:",d.length),e("[useAIAssistantParser] Final combined text:",d)),l&&0!==n.length?void 0!==o?(a&&e("[useAIAssistantParser] Returning last valid JSON"),{data:o,rawText:d,isJson:!0}):d?(a&&e("[useAIAssistantParser] No valid JSON found, returning as text"),{data:void 0,rawText:d,isJson:!1}):{data:void 0,rawText:n.join("\n"),isJson:!1,error:"Could not parse any data blocks as valid JSON"}:{data:void 0,rawText:"",isJson:!1,error:"No data found in SSE response. The server may have returned only status messages without actual data."}}catch(o){return a&&t("[useAIAssistantParser] SSE parsing error:",o instanceof Error?o:void 0),{data:void 0,rawText:r,isJson:!1,error:o instanceof Error?o.message:"Failed to parse SSE response"}}},[])}})(),{warn:c}=Q(),u=x.useRef(e.conversationId||crypto.randomUUID());return{response:t,isLoading:n,error:o,sendMessage:x.useCallback(async(t,n)=>{var o;r(""),a(null),i(!0);const h=new AbortController;s.current=h;let d=e.endpoint||"http://localhost:7071/api/EventAssistant";d.endsWith("/")&&(d=d.slice(0,-1));try{let i=t.input;if(t.history&&t.history.length>0){i=`${t.history.join("\n\n")}\n\n${t.input}`}const a={input:i,instructions:t.instructions,mode:void 0,conversationId:u.current,mcpServers:t.mcpServers||e.mcpServers},s=await fetch(d,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",...e.requestHeaders&&Object.keys(e.requestHeaders).length>0?e.requestHeaders:{}},body:JSON.stringify(a),signal:h.signal});if(!s.ok){let e="";try{const t=await s.text();t&&(e=` - ${t}`)}catch{}throw new Error(`HTTP error! status: ${s.status}${e}`)}const p=null==(o=s.body)?void 0:o.getReader();if(!p)throw new Error("No response body");const g=new TextDecoder("utf-8");let f=!1,m="";for(;!f;){const{value:e,done:t}=await p.read();if(f=t,e){m+=g.decode(e,{stream:!0})}}const y=l(m),b=y.rawText||"";return r(b),n&&n(b),y.error&&c("[useAIAssistant] Parser warning:",y.error),b}catch(p){let e="Error occurred while processing your request.";throw p instanceof Error&&(e="AbortError"===p.name?"Request was cancelled.":p.message.includes("Rate limit")||p.message.includes("429")?"Rate limit exceeded. Please wait a moment before sending another message.":p.message.includes("quota")?"API quota exceeded. Please try again later.":p.message),a(e),new Error(e)}finally{i(!1)}},[e.endpoint,e.mcpServers,l]),cancelRequest:x.useCallback(()=>{s.current&&s.current.abort()},[]),resetConversation:x.useCallback(()=>{u.current=crypto.randomUUID(),r(""),a(null)},[]),conversationId:u.current}},ne=new Set;function ie(e){e.fontFaces.forEach(t=>{var r,n;const i=`${e.name}|${t.fontWeight}|${t.fontStyle}`;if(ne.has(i))return;const o=null==(n=null==(r=t.url.split(".").pop())?void 0:r.split("?")[0])?void 0:n.toLowerCase(),a=o&&{woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype",eot:"embedded-opentype"}[o]||"woff2",s=`@font-face {\n font-family: "${e.name}";\n src: url("${t.url}") format("${a}");\n font-weight: ${t.fontWeight};\n font-style: ${t.fontStyle};\n font-display: swap;\n}`,l=document.createElement("style");l.setAttribute("data-brand-font",e.name),l.textContent=s,document.head.appendChild(l),ne.add(i)})}const oe=()=>{const e=H.useCallback((e,t)=>`${e}${t}`,[]),t=H.useCallback(e=>{if(!e)return!1;try{return!!new URL(e)}catch(t){return!1}},[]),r=e=>"/"===e.charAt(0)&&"/"===e.charAt(1)?e.substring(1,e.length):e,n=H.useCallback(e=>{const t=new RegExp(/^[{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$/);return!!e&&!0===t.test(e)},[]),i=H.useCallback(e=>{if(!e)return"";const t=e.split("/");return t[t.length-1]},[]),o=H.useCallback(e=>{const t=window.location.hostname,r=`https://${t}`;if(e.indexOf(`${r}/sites/`)>-1||e.indexOf(`${r}/teams/`)>-1){const n=e.split(t)[1].split("/")[2];let i=`https://${t}/sites/${n}`;return e.indexOf(`${r}/teams/`)>-1&&(i=`https://${t}/teams/${n}`),i}return r},[]),a=H.useCallback(e=>{let t=e.split(window.location.hostname)[1];return t=r(t),t},[]),s=H.useCallback(e=>encodeURIComponent(e.replace(/[%]/g,"%25")).replace(/[']/g,"%27%27").replace(/[&]/g,"%26").replace(/[#]/g,"%23").replace(/[?]/g,"%3F").replace(/[/]/g,"%2F").replace(/[+]/g,"%2B"),[]),l=H.useCallback(e=>null!=e&&(Object.prototype.hasOwnProperty.call(e,"extraSmall")||Object.prototype.hasOwnProperty.call(e,"small")||Object.prototype.hasOwnProperty.call(e,"medium")||Object.prototype.hasOwnProperty.call(e,"large")||Object.prototype.hasOwnProperty.call(e,"extraLarge")),[]),c=H.useCallback((e,t)=>e[t.toString().toLowerCase()],[]),u=H.useCallback(e=>e>=J.XXXLarge?"XXXLarge":e>=J.ExtraExtraLarge?"ExtraExtraLarge":e>=J.ExtraLarge?"ExtraLarge":e>=Number(J.Large)?"Large":e>=Number(J.Medium)?"Medium":e>=Number(J.Small)?"Small":"ExtraSmall",[]),h=H.useCallback((e,t)=>{const r=u(t),n={ExtraSmall:"xs",Small:"s",Medium:"m",Large:"l",ExtraLarge:"xl",ExtraExtraLarge:"xxl"};let i=e;return l(e)&&(i=c(e,r??"Medium")||n[r]),i},[u,l,c]),d=H.useCallback((e,t,r)=>{if(!e)return"none";if("string"==typeof e&&(/^\d+px$/.test(e)||/^\d+%$/.test(e)))return e;const n=r,i={padding:"spacingHorizontal",vertical:"spacingVertical",horizontal:"spacingHorizontal"};switch(h(e,t)){case"none":return w.tokens[`${i[n]}None`];case"xxs":return w.tokens[`${i[n]}XXS`];case"xs":return w.tokens[`${i[n]}XS`];case"sNudge":return w.tokens[`${i[n]}SNudge`];case"s":return w.tokens[`${i[n]}S`];case"mNudge":return w.tokens[`${i[n]}MNudge`];case"m":default:return w.tokens[`${i[n]}M`];case"l":return w.tokens[`${i[n]}L`];case"xl":return w.tokens[`${i[n]}XL`];case"xxl":return w.tokens[`${i[n]}XXL`];case"xxxl":return w.tokens[`${i[n]}XXXL`]}},[h]),p=H.useCallback((e,t,r)=>{const{verticalSpacing:n,horizontalSpacing:i,paddingLeft:o,paddingRight:a,paddingBottom:s,background:l,width:c,maxWidth:u,height:h,maxHeight:p,marginLeft:g,marginRight:f,marginTop:m,marginBottom:y,paddingTop:b,padding:v,margin:x,styles:C}=e;let w=d(b,t,"padding"),k=d(o,t,"padding"),S=d(a,t,"padding"),_=d(s,t,"padding");const T=d(v,t,"padding");let A=d(g,t,"padding"),E=d(f,t,"padding"),P=d(m,t,"padding"),M=d(y,t,"padding");const I=d(x,t,"padding");T&&(w="none"===w?T:w,k="none"===k?T:k,S="none"===S?T:S,_="none"===_?T:_),I&&(A="none"===A?I:A,E="none"===E?I:E,P="none"===P?I:P,M="none"===M?I:M);const B=`${d(n,t,"vertical")} ${d(i,t,"horizontal")}`,{padding:L,margin:j,paddingTop:N,paddingLeft:D,paddingRight:O,paddingBottom:z,marginTop:F,marginLeft:R,marginRight:$,marginBottom:V,...W}=C??{};return{...W,gap:B,paddingTop:w,paddingLeft:k,paddingRight:S,paddingBottom:_,marginLeft:A,marginRight:E,marginTop:P,marginBottom:M,background:l,width:c??void 0,height:h??void 0,maxWidth:u??void 0,maxHeight:p??void 0,overflow:"auto"}},[d]),g=H.useCallback((e,t)=>{const r=u(t);let n=e;return l(e)&&(n=c(e,r??"Medium")||""),n},[u,l,c]);return{getCacheKey:e,validateUrl:t,trimBeginDoubleSlash:r,isValidGUID:n,getPageNameFromUrl:i,getSPSiteAbsoluteUrl:o,getFileServerRelativeUrlFromAbsoluteUrl:a,encodeRestUrl:s,getSpacing:d,getCurrentDevice:u,getBaseStyles:p,getLayoutBreakPoint:g}};function ae(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}function se(e){return function(t,r){var n;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=r&&r.width?String(r.width):i;n=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!=r&&r.width?String(r.width):e.defaultWidth;n=e.values[s]||e.values[a]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function le(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r;return}(l,function(e){return e.test(s)}):function(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r;return}(l,function(e){return e.test(s)});return a=e.valueCallback?e.valueCallback(c):c,{value:a=r.valueCallback?r.valueCallback(a):a,rest:t.slice(s.length)}}}function ce(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=r.valueCallback?r.valueCallback(a):a,rest:t.slice(i.length)}}}function ue(e){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function he(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}var de={};function pe(e,t){var r,n,i,o,a,s,l,c;he(1,arguments);var u=de,h=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}(null!==(r=null!==(n=null!==(i=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:u.weekStartsOn)&&void 0!==n?n:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==r?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=function(e){he(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===ue(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}(e),p=d.getUTCDay(),g=(p<h?7:0)+p-h;return d.setUTCDate(d.getUTCDate()-g),d.setUTCHours(0,0,0,0),d}var ge={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},fe={date:ae({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ae({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:ae({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},me={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ye={code:"en-US",formatDistance:function(e,t,r){var n,i=ge[e];return n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:fe,formatRelative:function(e,t,r,n){return me[e]},localize:{ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:se({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:se({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:se({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:se({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:se({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:ce({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:le({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:le({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:le({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:le({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:le({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function be(e,t,r){he(2,arguments);var n=pe(e,r),i=pe(t,r);return n.getTime()===i.getTime()}var ve={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},xe={date:ae({formats:{full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:ae({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:ae({formats:{full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ce={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},we={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},ke={narrow:we.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:we.wide},Se={code:"de",formatDistance:function(e,t,r){var n,i=null!=r&&r.addSuffix?ve[e].withPreposition:ve[e].standalone;return n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:"vor "+n:n},formatLong:xe,formatRelative:function(e,t,r,n){return Ce[e]},localize:{ordinalNumber:function(e){return Number(e)+"."},era:se({values:{narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},defaultWidth:"wide"}),quarter:se({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:se({values:we,formattingValues:ke,defaultWidth:"wide"}),day:se({values:{narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},defaultWidth:"wide"}),dayPeriod:se({values:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},defaultWidth:"wide",formattingValues:{narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:ce({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:le({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:"any"}),quarter:le({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:le({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:le({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:le({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},_e={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},Te={date:ae({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:ae({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:ae({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ae={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},Ee={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},Pe={code:"es",formatDistance:function(e,t,r){var n,i=_e[e];return n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"en "+n:"hace "+n:n},formatLong:Te,formatRelative:function(e,t,r,n){return 1!==t.getUTCHours()?Ee[e]:Ae[e]},localize:{ordinalNumber:function(e,t){return Number(e)+"º"},era:se({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},defaultWidth:"wide"}),quarter:se({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:se({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:se({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},defaultWidth:"wide"}),dayPeriod:se({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:ce({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:le({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:le({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:le({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:le({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:le({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Me={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},Ie={date:ae({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:ae({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:ae({formats:{full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Be={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},Le={code:"fr",formatDistance:function(e,t,r){var n,i=Me[e];return n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"dans "+n:"il y a "+n:n},formatLong:Ie,formatRelative:function(e,t,r,n){return Be[e]},localize:{ordinalNumber:function(e,t){var r=Number(e),n=null==t?void 0:t.unit;if(0===r)return"0";return r+(1===r?n&&["year","week","hour","minute","second"].includes(n)?"ère":"er":"ème")},era:se({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},defaultWidth:"wide"}),quarter:se({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:se({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},defaultWidth:"wide"}),day:se({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:se({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})},match:{ordinalNumber:ce({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e)}}),era:le({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:le({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:le({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:le({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:le({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},je={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},Ne={date:ae({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:ae({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:ae({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},De=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function Oe(e){return"'"+De[e]+" alle' p"}var ze={lastWeek:function(e,t,r){var n=e.getUTCDay();return be(e,t,r)?Oe(n):function(e){return 0===e?"'domenica scorsa alle' p":"'"+De[e]+" scorso alle' p"}(n)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(e,t,r){var n=e.getUTCDay();return be(e,t,r)?Oe(n):function(e){return 0===e?"'domenica prossima alle' p":"'"+De[e]+" prossimo alle' p"}(n)},other:"P"},Fe={code:"it",formatDistance:function(e,t,r){var n,i=je[e];return n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"tra "+n:n+" fa":n},formatLong:Ne,formatRelative:function(e,t,r,n){var i=ze[e];return"function"==typeof i?i(t,r,n):i},localize:{ordinalNumber:function(e,t){var r=Number(e);return String(r)},era:se({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},defaultWidth:"wide"}),quarter:se({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:se({values:{narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},defaultWidth:"wide"}),day:se({values:{narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},defaultWidth:"wide"}),dayPeriod:se({values:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},defaultWidth:"wide",formattingValues:{narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:ce({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:le({matchPatterns:{narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^a/i,/^(d|e)/i]},defaultParseWidth:"any"}),quarter:le({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:le({matchPatterns:{narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:le({matchPatterns:{narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},defaultParseWidth:"any"}),dayPeriod:le({matchPatterns:{narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Re={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},$e={date:ae({formats:{full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:ae({formats:{full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:ae({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ve={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},We={code:"ja",formatDistance:function(e,t,r){var n;r=r||{};var i=Re[e];return n="string"==typeof i?i:1===t?r.addSuffix&&i.oneWithSuffix?i.oneWithSuffix:i.one:r.addSuffix&&i.otherWithSuffix?i.otherWithSuffix.replace("{{count}}",String(t)):i.other.replace("{{count}}",String(t)),r.addSuffix?r.comparison&&r.comparison>0?n+"後":n+"前":n},formatLong:$e,formatRelative:function(e,t,r,n){return Ve[e]},localize:{ordinalNumber:function(e,t){var r=Number(e);switch(String(null==t?void 0:t.unit)){case"year":return"".concat(r,"年");case"quarter":return"第".concat(r,"四半期");case"month":return"".concat(r,"月");case"week":return"第".concat(r,"週");case"date":return"".concat(r,"日");case"hour":return"".concat(r,"時");case"minute":return"".concat(r,"分");case"second":return"".concat(r,"秒");default:return"".concat(r)}},era:se({values:{narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},defaultWidth:"wide"}),quarter:se({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:se({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},defaultWidth:"wide"}),day:se({values:{narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},defaultWidth:"wide"}),dayPeriod:se({values:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultWidth:"wide",formattingValues:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:ce({matchPattern:/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:le({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},defaultParseWidth:"any"}),quarter:le({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:le({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:le({matchPatterns:{narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},defaultMatchWidth:"wide",parsePatterns:{any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},defaultParseWidth:"any"}),dayPeriod:le({matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},qe={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},He={date:ae({formats:{full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},defaultWidth:"full"}),time:ae({formats:{full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:ae({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ue={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},Ge={code:"ko",formatDistance:function(e,t,r){var n,i=qe[e];return n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?n+" 후":n+" 전":n},formatLong:He,formatRelative:function(e,t,r,n){return Ue[e]},localize:{ordinalNumber:function(e,t){var r=Number(e);switch(String(null==t?void 0:t.unit)){case"minute":case"second":return String(r);case"date":return r+"일";default:return r+"번째"}},era:se({values:{narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},defaultWidth:"wide"}),quarter:se({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:se({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},defaultWidth:"wide"}),day:se({values:{narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},defaultWidth:"wide"}),dayPeriod:se({values:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultWidth:"wide",formattingValues:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:ce({matchPattern:/^(\d+)(일|번째)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:le({matchPatterns:{narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(bc|기원전)/i,/^(ad|서기)/i]},defaultParseWidth:"any"}),quarter:le({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:le({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:le({matchPatterns:{narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},defaultMatchWidth:"wide",parsePatterns:{any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},defaultParseWidth:"any"}),dayPeriod:le({matchPatterns:{any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Xe={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Je={date:ae({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},defaultWidth:"full"}),time:ae({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:ae({formats:{full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ye={lastWeek:function(e){var t=e.getUTCDay();return"'"+(0===t||6===t?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},Ze={code:"pt",formatDistance:function(e,t,r){var n,i=Xe[e];return n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"daqui a "+n:"há "+n:n},formatLong:Je,formatRelative:function(e,t,r,n){var i=Ye[e];return"function"==typeof i?i(t):i},localize:{ordinalNumber:function(e,t){return Number(e)+"º"},era:se({values:{narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},defaultWidth:"wide"}),quarter:se({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:se({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:se({values:{narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},defaultWidth:"wide"}),dayPeriod:se({values:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},defaultWidth:"wide",formattingValues:{narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:ce({matchPattern:/^(\d+)(º|ª)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:le({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},defaultParseWidth:"any"}),quarter:le({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:le({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:le({matchPatterns:{narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},defaultParseWidth:"any"}),dayPeriod:le({matchPatterns:{narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Ke={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},Qe={date:ae({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:ae({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:ae({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})};function et(e,t,r){var n="eeee p";return be(e,t,r)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}var tt={lastWeek:et,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:et,other:"PP p"},rt={code:"zh-CN",formatDistance:function(e,t,r){var n,i=Ke[e];return n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?n+"内":n+"前":n},formatLong:Qe,formatRelative:function(e,t,r,n){var i=tt[e];return"function"==typeof i?i(t,r,n):i},localize:{ordinalNumber:function(e,t){var r=Number(e);switch(null==t?void 0:t.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},era:se({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:se({values:{narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:se({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:se({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:se({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:ce({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:le({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:le({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:le({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:le({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:le({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}};const nt={"en-US":ye,"es-ES":Pe,"fr-FR":Le,"de-DE":Se,"it-IT":Fe,"pt-BR":Ze,"pt-PT":Ze,"ja-JP":We,"ko-KR":Ge,"zh-CN":rt},it=(e,t)=>{const r=t&&nt[t]||ye,{error:n}=Q();return{getFormatRelative:e=>{try{const t="string"==typeof e?k.parseISO(e):e;return k.formatDistanceToNow(t,{addSuffix:!0,locale:r})}catch(t){return n("Error formatting relative time:",t instanceof Error?t:void 0),""}},convertDateToUTC:e=>{try{const t="string"==typeof e?k.parseISO(e):e;return new Date(t.toUTCString())}catch(t){return n("Error converting to UTC:",t instanceof Error?t:void 0),new Date}},formatDate:(e,t="PPpp")=>{try{const n="string"==typeof e?k.parseISO(e):e;return k.format(n,t,{locale:r})}catch(i){return n("Error formatting date:",i instanceof Error?i:void 0),""}},getTimezoneOffset:()=>(new Date).getTimezoneOffset(),convertToTimezone:(r,i)=>{try{const n="string"==typeof r?k.parseISO(r):r,o=i||e||Intl.DateTimeFormat().resolvedOptions().timeZone;return n.toLocaleString(t||"en-US",{timeZone:o})}catch(o){n("Error converting timezone:",o instanceof Error?o:void 0);return("string"==typeof r?new Date(r):r).toString()}}}},ot="production"!==process.env.NODE_ENV;function at(e,t=0){let r=null;return function(...n){const i=this;r&&clearTimeout(r),r=setTimeout(()=>{e.apply(i,n)},t)}}var st=(e=>(e.HTML="html",e.MARKDOWN="markdown",e.ADAPTIVE_CARD="adaptiveCard",e.PLAIN_TEXT="plainText",e))(st||{});const lt=(e,t,r=!1)=>{const n=t.filter(t=>t.test(e)).length/t.length;return r?1-n:n},ct=e=>{var t;if("object"==typeof e&&null!==e){const r=e;if("AdaptiveCard"===r.type||(null==(t=r.$schema)?void 0:t.includes("adaptivecards.io")))return{type:"adaptiveCard",content:e,confidence:1};e=JSON.stringify(e,null,2)}const r=e,n=r.trim();if(!n||n.length<3)return{type:"plainText",content:r,confidence:1};if((e=>{try{const t=JSON.parse(e);return"object"==typeof t&&null!==t}catch{return!1}})(n)&&(e=>{var t;try{const r=JSON.parse(e);return r&&"object"==typeof r&&("AdaptiveCard"===r.type||(null==(t=r.$schema)?void 0:t.includes("adaptivecards.io")))}catch{return!1}})(n))return{type:"adaptiveCard",content:JSON.parse(n),confidence:1};if((e=>{const t=e.trim(),r=/<[^>]+>/.test(t),n=/^<[^>]+>/.test(t),i=(t.match(/<(?!\/)[^>]+>/g)||[]).length;return[/^<!DOCTYPE\s+html/i,/^<html[\s>]/i,/^<\?xml/i,/<(div|span|p|h[1-6]|table|ul|ol|li|a|img|br|hr|strong|em|b|i)[\s>]/i].some(e=>e.test(t))||r&&n&&i>0})(n)){const e=[/^<!DOCTYPE\s+html/i,/^<html[\s>]/i,/<(div|span|p|h[1-6]|table|ul|ol|li)[\s>]/i];return{type:"html",content:r,confidence:Math.max(.7,lt(n,e))}}if((e=>{const t=e.trim(),r=[/^#{1,6}\s+.+$/m,/\*\*.*?\*\*/,/\*.*?\*/,/__.*?__/,/_.*?_/,/\[.*?\]\(.*?\)/,/^\s*[-*+]\s+/m,/^\s*\d+\.\s+/m,/`[^`]+`/,/^```/m,/^\|.*\|.*\|$/m,/^>\s+/m,/^\s*---\s*$/m].some(e=>e.test(t)),n=/^<[^>]+>/.test(t);return r&&!n})(n)){const e=[/^#{1,6}\s+.+$/m,/\*\*.*?\*\*/,/\[.*?\]\(.*?\)/,/^\s*[-*+]\s+/m,/`[^`]+`/,/^```/m,/^\|.*\|.*\|$/m];return{type:"markdown",content:r,confidence:Math.max(.6,lt(n,e))}}return{type:"plainText",content:r,confidence:.5}},ut=e=>{const{className:t,cardBody:r,cardBodyClassName:n,cardHeader:i,cardHeaderClassName:o,cardHeaderImage:a,cardHeaderAction:s,cardHeaderDescription:l,cardFooterAction:c,cardFooterClassName:u,cardFooterContent:h,cardPreviewImage:d,cardPreviewLogo:p,cardPreviewPosition:g="top"}=e,{cardStyles:f,bodyCardDefaultStyles:m}=(e=>{const{styles:t}=e,{getBaseStyles:r}=oe();return{cardStyles:H.useCallback((n,i)=>({...r(e,n,i),...t}),[r,e,t]),bodyCardDefaultStyles:H.useMemo(()=>({display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"stretch",overflow:"unset"}),[])}})(e),y=H.useRef(null),[b,x]=H.useState(0),[C,k]=H.useState(0);return H.useEffect(()=>{let e;return y.current&&(e=new _.ResizeObserver(e=>{for(const t of e){const{width:e,height:r}=t.contentRect;x(e),k(r)}}),e.observe(y.current)),()=>{e&&e.disconnect()}},[]),v.jsx(v.Fragment,{children:v.jsx("div",{ref:y,children:v.jsxs(w.Card,{className:t,style:f(b,C),...e,children:[d&&"top"===g&&v.jsxs(w.CardPreview,{logo:p,children:[d," "]}),i&&v.jsx(w.CardHeader,{className:o,image:a,header:i,description:l,action:s}),d&&"afterHeader"===g&&v.jsxs(w.CardPreview,{logo:p,children:[d," "]}),r&&v.jsx("div",{className:w.mergeClasses(n),style:m,children:r}),d&&"bottom"===g&&v.jsxs(w.CardPreview,{logo:p,children:[d," "]}),h&&v.jsx(w.CardFooter,{action:c,className:u,children:h})]})})})},ht=e=>{const{cols:t,verticalSpacing:r,horizontalSpacing:n,styles:i,gridItemAutoFlow:o,minItemWidth:a}=e,{getSpacing:s,getCurrentDevice:l,getBaseStyles:c}=oe();return{gridStyles:H.useCallback((u,h)=>{const d=c(e,u,h),p=`${s(r,u,"vertical")} ${s(n,u,"horizontal")}`,g=l(u);let f=`repeat(auto-${o??"fill"}, minmax(min(100%, ${a??250}px), 1fr))`;if(t&&t>0){let e=t??0;switch(g){case"ExtraSmall":e=Math.min(t,1);break;case"Small":e=Math.min(t,2);break;case"Medium":e=Math.min(t,3);break;case"Large":case"ExtraLarge":e=Math.min(t,4);break;case"ExtraExtraLarge":e=Math.min(t,5);break;case"XXXLarge":e=Math.min(t,6);break;default:e=0}f=`repeat(${e}, minmax(auto, 1fr))`}return{...d,display:"grid",gridTemplateColumns:f,gap:p,overflow:"hidden",...i}},[c,e,s,r,n,l,t,i,o,a])}},dt=e=>{const{maxWith:t}=e,{getBaseStyles:r}=oe();return{rootStyles:H.useCallback((n,i)=>({...r(e,n,i),maxWidth:t}),[r,t,e]),layoutGridStyles:T.css({display:"grid",overflow:"hidden"})}},pt={areas:["header header header","sidebar content sidebar","footer footer footer"],columns:"1fr 3fr 1fr",rows:"auto 1fr auto"},gt=e=>{const{verticalSpacing:t,horizontalSpacing:r}=e,{getSpacing:n}=oe();return{spaceStyles:H.useCallback(e=>{if(!e)return{};if(r){return{width:n(r,e,"horizontal")}}if(t){return{height:n(t,e,"vertical")}}return{}},[n,r,t])}},ft=e=>{const{horizontal:t,horizontalAlign:r,verticalAlign:n,verticalFill:i,wrap:o,columnGap:a,RowGap:s}=e,{getBaseStyles:l}=oe();return{stackStyles:H.useCallback((c,u)=>{const h=n||"start",d=t?r:"start",p=t?{flexFlow:o?"row wrap":"row nowrap",height:"100%"}:{height:"100%",maxHeight:"100%"},g=l(e,c,u);return{columnGap:a,rowGap:s,display:"flex",flexDirection:t?"row":"column",alignItems:h,justifyContent:d,...p,height:i?"100%":g.height,...g,...e.styles}},[l,t,r,e,n,i,o])}},mt=e=>{const{children:t,className:r}=e,{stackStyles:n}=ft(e),i=H.useRef(null),[o,a]=H.useState(0),[s,l]=H.useState(0);return H.useEffect(()=>{let e;return i.current&&(e=new _.ResizeObserver(e=>{for(const t of e){const{width:e,height:r}=t.contentRect;a(e),l(r)}}),e.observe(i.current)),()=>{e&&e.disconnect()}},[]),v.jsx(v.Fragment,{children:v.jsx("div",{className:r,style:n(o,s),ref:i,children:t})})},yt=e=>{const{styles:t}=e,{getBaseStyles:r}=oe();return{centerStyles:H.useCallback((n,i)=>({...r(e,n,i),...t,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),[r,e,t]),childrenStyles:T.css({justifyContent:"center",textAlign:"center"})}},bt=e=>{const{className:t,children:r}=e,n=H.useRef(null),[i,o]=H.useState(0),[a,s]=H.useState(0),{centerStyles:l}=yt(e);return H.useEffect(()=>{const e=((e,t)=>{let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e(...n),t)}})(e=>{for(const t of e){const{width:e,height:r}=t.contentRect;o(e),s(r)}},200),t=new _.ResizeObserver(t=>{e(t)});return n.current&&t.observe(n.current),()=>{t.disconnect()}},[]),v.jsx("div",{id:"center",className:t,style:{...l(i,a),display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%"},ref:n,children:r})},vt=e=>{const{direction:t="horizontal",resizerSize:r=6}=e,n="horizontal"===t;return{root:T.css({position:"relative",width:"100%",height:"100%"}),pane:e=>{const t=void 0!==e?"number"==typeof e?`${e}px`:e:void 0;return T.css({overflow:"auto",position:"relative",...n?{width:t,height:"100%"}:{height:t,width:"100%"}})},secondaryPane:T.css({flex:1,overflow:"auto",position:"relative",minWidth:0,minHeight:0}),resizer:T.css({flex:"0 0 auto",...n?{width:r,cursor:"col-resize",height:"100%"}:{height:r,cursor:"row-resize",width:"100%"},backgroundColor:w.tokens.colorNeutralStroke1,transition:"background-color 150ms ease",userSelect:"none",zIndex:1}),resizerActive:T.css({backgroundColor:w.tokens.colorBrandStroke1}),resizerGrip:T.css({gap:"2px"}),gripDot:T.css({width:3,height:3,borderRadius:"50%",backgroundColor:w.tokens.colorNeutralForeground3})}},xt={xs:w.tokens.spacingHorizontalXS,s:w.tokens.spacingHorizontalS,m:w.tokens.spacingHorizontalM,l:w.tokens.spacingHorizontalL,xl:w.tokens.spacingHorizontalXL,xxl:w.tokens.spacingHorizontalXXL},Ct=x.memo(x.forwardRef(({direction:e="vertical",justifyContent:t="flex-start",alignItems:r="stretch",gap:n,columnGap:i,rowGap:o,margin:a,padding:s,marginTop:l,marginBottom:c,marginLeft:u,marginRight:h,paddingTop:d,paddingBottom:p,paddingLeft:g,paddingRight:f,width:m,height:y,wrap:b=!1,children:x,style:C,className:k,overflow:S,background:_},A)=>{const E=T.css({display:"flex",flexDirection:"horizontal"===e?"row":"column",justifyContent:t,alignItems:r,gap:n&&xt[n]?xt[n]:n,columnGap:i&&xt[i]?xt[i]:i,rowGap:o&&xt[o]?xt[o]:o,margin:a&&xt[a]?xt[a]:a,padding:s&&xt[s]?xt[s]:s,marginTop:l&&xt[l]?xt[l]:l,marginBottom:c&&xt[c]?xt[c]:c,marginLeft:u&&xt[u]?xt[u]:u,marginRight:h&&xt[h]?xt[h]:h,paddingTop:d&&xt[d]?xt[d]:d,paddingBottom:p&&xt[p]?xt[p]:p,paddingLeft:g&&xt[g]?xt[g]:g,paddingRight:f&&xt[f]?xt[f]:f,width:m,height:y,overflow:S,flexWrap:b?"wrap":"nowrap",backgroundColor:_,...C});return v.jsx("div",{ref:A,className:w.mergeClasses(k,E),children:x})})),wt=({anchorPoint:e,isOpen:t,onClose:r,excludeRefs:n,children:i,theme:o})=>{const a=x.useRef(null),[s,l]=x.useState(null);x.useLayoutEffect(()=>{if(t){if(a.current){const t=a.current.getBoundingClientRect();let r=e.left,n=e.top;r+t.width>window.innerWidth&&(r=window.innerWidth-t.width-10),n+t.height>window.innerHeight&&(n=window.innerHeight-t.height-10),l({left:r,top:n})}}else l(null)},[e,t,i]);const c=x.useCallback(e=>{const t=e.target;if(a.current&&!a.current.contains(t)){if(n&&n.some(e=>e.current&&e.current.contains(t)))return;r()}},[r,n]);if(x.useEffect(()=>{if(!t)return;const e=requestAnimationFrame(()=>{document.addEventListener("mousedown",c)}),n=e=>{"Escape"===e.key&&r()};return document.addEventListener("keydown",n),()=>{cancelAnimationFrame(e),document.removeEventListener("mousedown",c),document.removeEventListener("keydown",n)}},[t,c,r]),!t)return null;const u=s||e;return P.createPortal(o?v.jsx(w.FluentProvider,{theme:o,children:v.jsx(w.Card,{ref:a,style:{position:"fixed",zIndex:1e3,top:u.top,left:u.left},children:i})}):v.jsx(w.Card,{ref:a,style:{position:"fixed",zIndex:1e3,top:u.top,left:u.left},children:i}),document.body)},kt=w.makeStyles({labelContainer:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",...w.shorthands.gap("6px")},iconStyles:{width:"26px"},item:{paddingLeft:"15px"}}),St=e=>{const{label:t,icon:r,isRequired:n}=e,i=kt();return v.jsx(v.Fragment,{children:v.jsxs("div",{className:i.labelContainer,children:[r&&H.isValidElement(r)?r:v.jsx(M.Icon,{icon:r,className:i.iconStyles,width:"20px",height:"20px",color:w.tokens.colorBrandForeground1}),v.jsx(w.Caption1,{style:{color:w.tokens.colorBrandForeground1},children:t}),v.jsx(w.Caption1,{style:{color:w.tokens.colorPaletteRedForeground1},children:n?" *":""})]})})},_t=w.makeStyles({root:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%"},spinner:{width:"100px",height:"100px"}}),Tt=e=>{const{size:t,label:r,labelPosition:n,style:i,className:o}=e,a=_t();return v.jsx("div",{className:a.root,children:v.jsx(w.Spinner,{style:i,className:w.mergeClasses(a.spinner,o),size:t,label:r,labelPosition:n})})},At={xs:w.tokens.fontSizeBase200,s:w.tokens.fontSizeBase300,m:w.tokens.fontSizeBase400,l:w.tokens.fontSizeBase500,xl:w.tokens.fontSizeBase600,xxl:w.tokens.fontSizeHero700},Et={xs:w.tokens.spacingHorizontalXS,s:w.tokens.spacingHorizontalS,m:w.tokens.spacingHorizontalM,l:w.tokens.spacingHorizontalL,xl:w.tokens.spacingHorizontalXL,xxl:w.tokens.spacingHorizontalXXL},Pt={regular:w.tokens.fontWeightRegular,semibold:w.tokens.fontWeightSemibold,bold:w.tokens.fontWeightBold},Mt=e=>{var t,r;const{onSelected:n,value:i,styles:o,options:a,apparence:s,shape:l,label:c}=e,u=H.useRef(),[h,d]=H.useState(i??a[0]),[p,g]=H.useState({option:[i?null==i?void 0:i.key:null==(t=null==a?void 0:a[0])?void 0:t.key]}),f=H.useRef(null);H.useEffect(()=>{var e;void 0!==i&&(d(i),g({option:[i.key]})),u.current=null==(e=a.find(e=>{var t;return e.key===((null==i?void 0:i.key)??(null==(t=a[0])?void 0:t.key))}))?void 0:e.icon},[i]);const[m,y]=H.useState(!1),b=H.useCallback((e,t)=>{y(t.open)},[]),x=H.useCallback(e=>(null==e?void 0:e.text)??"",[]),C=H.useCallback((e,{name:t,checkedItems:r})=>{var i;if("option"===t){const e=r[0];d(a.find(t=>t.key===e)),g({option:r}),u.current=null==(i=a.find(t=>t.key===e))?void 0:i.icon,n(a.find(t=>t.key===e))}},[a,n]);return v.jsx(v.Fragment,{children:v.jsx(w.Field,{label:c,style:o,ref:f,children:v.jsxs(w.Menu,{open:m,onOpenChange:b,children:[v.jsx(w.MenuTrigger,{disableButtonEnhancement:!0,children:v.jsx(w.MenuButton,{shape:l??"circular",icon:u.current,appearance:s??"secondary",children:x(h)??"No data available"})}),v.jsx(w.MenuPopover,{children:v.jsx(w.MenuList,{onCheckedValueChange:C,checkedValues:p,style:{width:null==(r=f.current)?void 0:r.offsetWidth},children:a.map(e=>v.jsx(w.MenuItemRadio,{name:"option",value:e.key,icon:e.icon,disabled:e.disabled,children:x(e)},e.key))})})]})})})},It=()=>({styles:{container:T.css({display:"flex",alignItems:"center",alignContent:"center",overflow:"hidden",whiteSpace:"nowrap",padding:"8px",backgroundColor:"transparent"}),breadcrumbItem:T.css({minWidth:"fit-content",padding:0,margin:"0px"}),separator:T.css({marginRight:"8px"})},getStyles:(e,t)=>{const{icon:r}=e;switch(t){case"small":return T.css({fontSize:"12px",padding:"4px",paddingLeft:r?"0px":"4px"});case"medium":default:return T.css({fontSize:"14px",padding:"6px",paddingLeft:r?"0px":"6px"});case"large":return T.css({fontSize:"16px",padding:"8px",paddingLeft:r?"0px":"8px"});case"current":return T.css({fontWeight:w.tokens.fontWeightBold,cursor:"default",display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",overflow:"hidden",textAlign:"start",textOverflow:"ellipsis",wordBreak:"break-word",fontFamily:w.tokens.fontFamilyBase})}}}),Bt=({items:e,theme:t,size:r="medium"})=>{const[n,i]=x.useState(!1),o=x.useRef(null),a=x.useRef(null),[s,l]=x.useState({top:0,left:0,position:"absolute"}),{getStyles:c}=It();return x.useEffect(()=>{const e=e=>{var t,r;(null==(t=o.current)?void 0:t.contains(e.target))||(null==(r=a.current)?void 0:r.contains(e.target))||!n||i(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[n]),v.jsxs(v.Fragment,{children:[v.jsx(w.Button,{ref:o,icon:v.jsx(E.MoreHorizontalRegular,{}),appearance:"transparent",onClick:()=>{var e,t;if(o.current){const r=o.current.getBoundingClientRect(),n=window.innerWidth,s=window.innerHeight,c=(null==(e=a.current)?void 0:e.offsetWidth)||200,u=(null==(t=a.current)?void 0:t.offsetHeight)||100;let h=r.bottom+window.scrollY,d=r.left+window.scrollX;d+c>n&&(d=n-c-10),h+u>s&&(h=r.top+window.scrollY-u),l({top:h,left:d,position:"absolute"}),i(e=>!e)}}}),n&&P.createPortal(t?v.jsx(w.FluentProvider,{theme:t,children:v.jsx(w.Card,{ref:a,style:{...s,zIndex:1e3,padding:"8px",minWidth:"150px"},children:e.map((e,t)=>v.jsx(w.Button,{icon:e.icon?e.icon:null,appearance:"transparent",onClick:()=>{var t;null==(t=e.onClick)||t.call(e),i(!1)},children:v.jsx(w.Text,{className:c(e,r),children:e.label})},`overflow-${t}`))})}):v.jsx(w.Card,{ref:a,style:{...s,zIndex:1e3,padding:"8px",minWidth:"150px"},children:e.map((e,t)=>v.jsx(w.Button,{icon:e.icon?e.icon:null,appearance:"transparent",onClick:()=>{var t;null==(t=e.onClick)||t.call(e),i(!1)},children:v.jsx(w.Text,{className:c(e,r),children:e.label})},`overflow-${t}`))}),document.body)]})},Lt=({icon:e,hoverIcon:t,imageSrc:r,width:n=24,height:i=24,color:o,hoverColor:a,onClick:s,enabled:l=!0})=>{const c=o||w.tokens.colorBrandBackground,u=a||w.tokens.colorBrandBackgroundHover,h=w.tokens.fontFamilyBase,[d,p]=x.useState(!1),g=x.useCallback(()=>{l&&p(!0)},[l]),f=x.useCallback(()=>{l&&p(!1)},[l]),m=x.useMemo(()=>l&&d&&t?t:e,[d,t,e,l]),y=x.useMemo(()=>({width:n,height:i,color:d?u:c,display:"flex",alignItems:"center",justifyContent:"center",opacity:l?1:.5,fontFamily:h,fontSize:"inherit"}),[n,i,d,u,c,l,h]),b=x.useMemo(()=>({border:"none",background:"none",padding:0,cursor:l?"pointer":"default"}),[l]),C=x.useMemo(()=>({width:n,height:i,objectFit:"contain",opacity:l?1:.5}),[n,i,l]);return v.jsx("button",{onClick:l?s:void 0,onMouseEnter:g,onMouseLeave:f,disabled:!l,style:b,children:r?v.jsx("img",{src:r,alt:"icon",style:C}):x.cloneElement(m,{style:{...m.props.style,...y}})})},jt=x.memo(Lt),Nt=()=>({getSpanSlots:H.useCallback((e,t)=>{const r=new Date(e),n=new Date(t),i=2*r.getHours()+(r.getMinutes()>=1?1:0),o=2*n.getHours()+(n.getMinutes()>=1?2:0);return{spanSlots:o-i,startSlot:i,endSlot:o}},[]),generateLightAndHoverColors:H.useCallback((e,t=20,r=10)=>{const n=(e,t,r)=>{const n=t*Math.min(r,100-r)/100,i=t=>{const i=(t+e/30)%12,o=r-n*Math.max(Math.min(i-3,9-i,1),-1);return Math.round(255*o).toString(16).padStart(2,"0")};return`#${i(0)}${i(8)}${i(4)}`},{h:i,s:o,l:a}=(e=>{const t=parseInt(e.slice(1,3),16)/255,r=parseInt(e.slice(3,5),16)/255,n=parseInt(e.slice(5,7),16)/255,i=Math.max(t,r,n),o=Math.min(t,r,n),a=i-o;let s=0,l=0;const c=(i+o)/2;if(0!==a){switch(l=c>.5?a/(2-i-o):a/(i+o),i){case t:s=(r-n)/a+(r<n?6:0);break;case r:s=(n-t)/a+2;break;case n:s=(t-r)/a+4}s/=6}return{h:360*s,s:100*l,l:100*c}})(e);return{lightColor:n(i,o,Math.min(a+t,100)),hoverColor:n(i,o,Math.min(a+r,100))}},[]),getEventColors:H.useCallback(e=>{const t={backgroundColor:w.tokens.colorNeutralBackground3,hoverColor:w.tokens.colorNeutralBackground3Hover};return{"no category":t,meeting:{backgroundColor:w.tokens.colorPaletteBlueBackground2,hoverColor:w.tokens.colorPaletteBlueBorderActive},appointment:{backgroundColor:w.tokens.colorPaletteGreenBackground2,hoverColor:w.tokens.colorPaletteGreenBorderActive},task:{backgroundColor:w.tokens.colorPaletteRedBackground2,hoverColor:w.tokens.colorPaletteRedBorderActive},deadline:{backgroundColor:w.tokens.colorPaletteYellowBackground2,hoverColor:w.tokens.colorPaletteYellowBorderActive},holiday:{backgroundColor:w.tokens.colorPalettePurpleBackground2,hoverColor:w.tokens.colorPalettePurpleBorderActive},celebration:{backgroundColor:w.tokens.colorPaletteDarkOrangeBackground2,hoverColor:w.tokens.colorPaletteDarkOrangeBorderActive},reminder:{backgroundColor:w.tokens.colorPaletteTealBackground2,hoverColor:w.tokens.colorPaletteTealBorderActive},workshop:{backgroundColor:w.tokens.colorPaletteTealBackground2,hoverColor:w.tokens.colorPaletteTealBorderActive},webinar:{backgroundColor:w.tokens.colorPaletteMagentaBackground2,hoverColor:w.tokens.colorPaletteMagentaBorderActive},conference:{backgroundColor:w.tokens.colorPaletteBrownBackground2,hoverColor:w.tokens.colorPaletteBrownBorderActive}}[e.toLowerCase()]||t},[]),generateColor:H.useCallback(e=>{let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);const r=(16777215&t).toString(16).toUpperCase();return`#${"00000".substring(0,6-r.length)+r}`},[]),getCalendarColors:H.useCallback(e=>{const t={beige:{backgroundColor:w.tokens.colorPaletteBeigeBackground2,hoverColor:w.tokens.colorPaletteBeigeBorderActive},blue:{backgroundColor:w.tokens.colorPaletteBlueBackground2,hoverColor:w.tokens.colorPaletteBlueBorderActive},brown:{backgroundColor:w.tokens.colorPaletteBrownBackground2,hoverColor:w.tokens.colorPaletteBrownBorderActive},gold:{backgroundColor:w.tokens.colorPaletteGoldBackground2,hoverColor:w.tokens.colorPaletteGoldBorderActive},lavender:{backgroundColor:w.tokens.colorPaletteLavenderBackground2,hoverColor:w.tokens.colorPaletteLavenderBorderActive},magenta:{backgroundColor:w.tokens.colorPaletteMagentaBackground2,hoverColor:w.tokens.colorPaletteMagentaBorderActive},navy:{backgroundColor:w.tokens.colorPaletteNavyBackground2,hoverColor:w.tokens.colorPaletteNavyBorderActive},pink:{backgroundColor:w.tokens.colorPalettePinkBackground2,hoverColor:w.tokens.colorPalettePinkBorderActive},plum:{backgroundColor:w.tokens.colorPalettePlumBackground2,hoverColor:w.tokens.colorPalettePlumBorderActive},purple:{backgroundColor:w.tokens.colorPalettePurpleBackground2,hoverColor:w.tokens.colorPalettePurpleBorderActive},red:{backgroundColor:w.tokens.colorPaletteRedBackground2,hoverColor:w.tokens.colorPaletteRedBorderActive},teal:{backgroundColor:w.tokens.colorPaletteTealBackground2,hoverColor:w.tokens.colorPaletteTealBorderActive},anchor:{backgroundColor:w.tokens.colorPaletteAnchorBackground2,hoverColor:w.tokens.colorPaletteAnchorBorderActive},"dark-red":{backgroundColor:w.tokens.colorPaletteDarkRedBackground2,hoverColor:w.tokens.colorPaletteDarkRedBorderActive},cranberry:{backgroundColor:w.tokens.colorPaletteCranberryBackground2,hoverColor:w.tokens.colorPaletteCranberryBorderActive},pumpkin:{backgroundColor:w.tokens.colorPalettePumpkinBackground2,hoverColor:w.tokens.colorPalettePumpkinBorderActive},peach:{backgroundColor:w.tokens.colorPalettePeachBackground2,hoverColor:w.tokens.colorPalettePeachBorderActive},marigold:{backgroundColor:w.tokens.colorPaletteMarigoldBackground2,hoverColor:w.tokens.colorPaletteMarigoldBorderActive},brass:{backgroundColor:w.tokens.colorPaletteBrassBackground2,hoverColor:w.tokens.colorPaletteBrassBorderActive},forest:{backgroundColor:w.tokens.colorPaletteForestBackground2,hoverColor:w.tokens.colorPaletteForestBorderActive},seafoam:{backgroundColor:w.tokens.colorPaletteSeafoamBackground2,hoverColor:w.tokens.colorPaletteSeafoamBorderActive},"dark-green":{backgroundColor:w.tokens.colorPaletteDarkGreenBackground2,hoverColor:w.tokens.colorPaletteDarkGreenBorderActive},"light-teal":{backgroundColor:w.tokens.colorPaletteLightTealBackground2,hoverColor:w.tokens.colorPaletteLightTealBorderActive},steel:{backgroundColor:w.tokens.colorPaletteSteelBackground2,hoverColor:w.tokens.colorPaletteSteelBorderActive},"royal-blue":{backgroundColor:w.tokens.colorPaletteRoyalBlueBackground2,hoverColor:w.tokens.colorPaletteRoyalBlueBorderActive},cornflower:{backgroundColor:w.tokens.colorPaletteCornflowerBackground2,hoverColor:w.tokens.colorPaletteCornflowerBorderActive},grape:{backgroundColor:w.tokens.colorPaletteGrapeBackground2,hoverColor:w.tokens.colorPaletteGrapeBorderActive},lilac:{backgroundColor:w.tokens.colorPaletteLilacBackground2,hoverColor:w.tokens.colorPaletteLilacBorderActive},mink:{backgroundColor:w.tokens.colorPaletteMinkBackground2,hoverColor:w.tokens.colorPaletteMinkBorderActive},platinum:{backgroundColor:w.tokens.colorPalettePlatinumBackground2,hoverColor:w.tokens.colorPalettePlatinumBorderActive}};return t[e]||t["royal-blue"]},[]),formatDate:H.useCallback((e,t)=>{const r=k.parseISO(e);return k.format(r,t)},[])}),Dt={start:"Start",end:"End",location:"Location",attendees:"Attendees",details:"Details"},Ot="32px",zt=({fieldLabel:e,fieldValue:t,icon:r})=>v.jsxs(mt,{children:[v.jsx(St,{label:e,icon:r}),v.jsx(mt,{paddingLeft:Ot,children:v.jsx(w.Body1,{children:t})})]}),Ft=e=>{const{event:t,strings:r=Dt}=e,{title:n,start:i,end:o,location:a,category:s,attendees:l,weblink:c}=t,{styles:u}={styles:{banner:T.css({display:"flex",justifyContent:"center",alignContent:"center",alignItems:"center",padding:"5px 10px 0px 10px"}),fieldContainer:T.css({paddingLeft:Ot}),title:T.css({lineClamp:2,overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",wordBreak:"break-word",WebkitLineClamp:2})}},{formatDate:h}=Nt(),d=h(i,"PPp"),p=h(o,"PPp"),g=w.partitionAvatarGroupItems({items:(null==l?void 0:l.map(e=>e.id))||[]}),f=H.useCallback(e=>(null==l?void 0:l.find(t=>t.id===e))||void 0,[l]),m=H.useCallback(()=>v.jsxs(mt,{children:[v.jsx(St,{label:r.attendees,icon:"ph:users-three"}),v.jsx(mt,{paddingLeft:Ot,children:v.jsxs(w.AvatarGroup,{layout:"stack",children:[g.inlineItems.map(e=>{var t,r;return v.jsx(w.AvatarGroupItem,{name:null==(t=f(e))?void 0:t.name,image:{src:null==(r=f(e))?void 0:r.imageUrl}},e)}),g.overflowItems&&v.jsx(w.AvatarGroupPopover,{children:g.overflowItems.map(e=>{var t,r;return v.jsx(w.AvatarGroupItem,{name:null==(t=f(e))?void 0:t.name,image:{src:null==(r=f(e))?void 0:r.imageUrl}},e)})})]})})]}),[g,f,r.attendees]);return v.jsx(v.Fragment,{children:v.jsx(ut,{appearance:"subtle",padding:"m",paddingTop:"s",width:"250px",cardBody:v.jsxs(mt,{RowGap:10,children:[v.jsx("div",{className:u.banner,children:v.jsx(w.Subtitle1,{className:u.title,children:n})}),v.jsx(w.Divider,{}),s&&v.jsx(mt,{horizontal:!0,horizontalAlign:"end",width:"100%",children:v.jsx(w.Badge,{appearance:"filled",children:s})}),v.jsx(zt,{fieldLabel:r.start,fieldValue:d,icon:"mingcute:time-line"}),v.jsx(zt,{fieldLabel:r.end,fieldValue:p,icon:"mingcute:time-line"}),v.jsx(zt,{fieldLabel:r.location,fieldValue:a,icon:"mingcute:location-line"}),v.jsx(m,{})]}),cardFooterContent:v.jsx(mt,{horizontal:!0,horizontalAlign:"end",width:"100%",children:v.jsx(w.Button,{appearance:"subtle",onClick:()=>{window.open(c,"_blank")},children:r.details})})})})},Rt=()=>({styles:{calendarWrapper:T.css({padding:"20px",paddingTop:"10px",overflow:"auto",flex:1,display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gridTemplateRows:"auto",gridAutoRows:"minmax(100px, 1fr)",gap:"1px",width:"calc(100% - 40px)"}),header:T.css({display:"flex",justifyContent:"start",gap:"10px",alignItems:"center",padding:"16px"}),dayHeader:T.css({textAlign:"start",padding:"8px",borderBottom:`1px solid ${w.tokens.colorNeutralStroke1}`}),day:T.css({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:`1px solid ${w.tokens.colorNeutralStroke1}`,backgroundColor:w.tokens.colorNeutralBackground1,position:"relative"}),otherMonthDay:T.css({color:w.tokens.colorNeutralStroke2,backgroundColor:w.tokens.colorNeutralBackground2}),cardDay:T.css({height:"100%",minHeight:100,borderRadius:0,overflow:"hidden !important",rowGap:5}),cardDayOnHover:T.css({":hover":{backgroundColor:w.tokens.colorNeutralBackground2}}),currentDay:T.css({borderTop:`5px solid ${w.tokens.colorBrandBackground}`}),currentDayLabel:T.css({color:w.tokens.colorBrandBackground,fontWeight:600}),eventCard:T.css({display:"flex",flexDirection:"column",alignItems:"flex-start",zIndex:1}),eventContainer:T.css({display:"flex",flexDirection:"column",overflowY:"auto",paddingTop:"5px",paddingBottom:"5px",paddingLeft:"5px",paddingRight:"5px","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:w.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:w.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:w.tokens.colorNeutralStroke2}}),eventCardWeekView:T.css({backgroundColor:w.tokens.colorBrandBackground,color:w.tokens.colorNeutralForegroundOnBrand,borderRadius:"4px",padding:"4px",margin:"2px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",height:"100%"}),popoverContent:T.css({padding:0,borderTopWidth:20,borderTopStyle:"solid"}),cardMonthTitle:T.css({display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",textAlign:"start",textOverflow:"ellipsis",paddingLeft:"8px",wordBreak:"break-word",overflow:"hidden"})},applyEventHouverColorClass:(e,t)=>T.css({backgroundColor:e??w.tokens.colorBrandBackground,":hover":{backgroundColor:t??w.tokens.colorBrandBackgroundHover}})}),$t=e=>{const t=w.useId(),{events:r,date:n,onCardHoverChange:i,columnHeight:o}=e,{styles:a,applyEventHouverColorClass:s}=Rt(),l=H.useRef(null),{getEventColors:c,getCalendarColors:u}=Nt(),h=H.useCallback(e=>{i&&i(!0,e)},[i]),d=H.useCallback(e=>{i&&i(!1,e)},[i]),p=H.useCallback(e=>{var t;null==(t=l.current)||t.setTarget(e)},[l]),g=H.useCallback((e,t,r)=>v.jsx("div",{ref:p,children:v.jsx(ut,{className:w.mergeClasses(a.eventCard,s(r.backgroundColor,r.backgroundColor)),paddingTop:"4px",paddingBottom:"4px",paddingLeft:"8px",paddingRight:"8px",marginTop:0===e?"0px":"5px",cardHeader:v.jsx(w.Caption1,{className:a.cardMonthTitle,children:t.title}),onMouseEnter:()=>h(t.title),onMouseLeave:()=>d(t.title)})},t.id??`card-${e}`),[h,d,s]),f=H.useCallback((e,r,n)=>v.jsxs(w.Popover,{withArrow:!0,mouseLeaveDelay:30,closeOnScroll:!0,closeOnIframeFocus:!0,openOnHover:!0,children:[v.jsx(w.PopoverTrigger,{children:g(r,e,n)}),v.jsx(w.PopoverSurface,{"aria-labelledby":t,className:w.mergeClasses(a.popoverContent),children:v.jsx(Ft,{event:e})})]},r),[g,t,a.popoverContent]);return r&&(null==r?void 0:r.length)?v.jsx("div",{style:{height:o},className:a.eventContainer,children:r.map((e,t)=>{var r;const i=k.startOfDay(new Date(e.start)),o=k.endOfDay(new Date(e.end));if(!k.isWithinInterval(n,{start:i,end:o}))return null;let s;s=e.color?u(e.color):c(e.category);const l=null==(r=e.onRenderInMonthView)?void 0:r.call(e,e),h=e.id??`event-${t}`;return H.isValidElement(l)?H.cloneElement(l,{key:h,className:w.mergeClasses(l.props.className,a.eventCard)}):e.enableOnHouver?f(e,t,s):g(t,e,s)})}):v.jsx(v.Fragment,{children:" "})},Vt=e=>{const{day:t,currentMonth:r,events:n,date:i,columnHeight:o,onDayClick:a}=e,{styles:s}=Rt(),l=new Date,[c,u]=H.useState(!1),h=H.useMemo(()=>k.isSameDay(i,l),[i,l]),d=H.useMemo(()=>v.jsx(mt,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",paddingLeft:"m",paddingRight:"m",children:v.jsxs(w.Body2,{className:s.currentDayLabel,children:[t," ",l.toLocaleString("default",{month:"short"})]})}),[t]),p=H.useCallback(e=>{u(e)},[]);return v.jsx(v.Fragment,{children:v.jsx(ut,{onClick:a?()=>a(i):void 0,className:w.mergeClasses(s.cardDay,r?"":s.otherMonthDay,h?s.currentDay:"",c?"":s.cardDayOnHover),cardHeader:h?d:v.jsx(mt,{horizontal:!0,paddingLeft:"m",paddingRight:"m",children:v.jsx(w.Body2,{children:t})}),paddingTop:"m",paddingBottom:"m",paddingLeft:"0px",paddingRight:"0px",cardBody:v.jsx($t,{events:n,date:i,onCardHoverChange:p,columnHeight:o-60})})})},Wt=()=>({styles:{container:T.css({display:"flex",flexDirection:"column",width:"calc(100% - 40px)",height:"100vh",overflow:"hidden",padding:"20px"}),header:T.css({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px",borderBottom:`1px solid ${w.tokens.colorNeutralStroke1}`}),weekGrid:T.css({display:"grid",gridTemplateColumns:"80px repeat(7, 1fr)",gridTemplateRows:"50px 40px repeat(48, 33px)",height:"fit-content",overflowY:"auto",border:`1px solid ${w.tokens.colorNeutralStroke1}`,maxHeight:"calc(100vh - 100px)",scrollbarWidth:"thin",scrollbarColor:`${w.tokens.colorBrandBackground} ${w.tokens.colorNeutralBackground1}`,"&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:w.tokens.colorNeutralBackground1},"&::-webkit-scrollbar-thumb":{background:w.tokens.colorBrandBackground,borderRadius:"4px"},"&::-webkit-scrollbar-thumb:hover":{background:w.tokens.colorBrandBackgroundHover}}),blankHeader:T.css({gridColumn:"1",backgroundColor:w.tokens.colorNeutralBackground3,borderBottom:`3px solid ${w.tokens.colorNeutralStroke3}`,position:"sticky",top:0,zIndex:10}),timeColumn:T.css({gridColumn:"1",gridRow:"3 / span 49",display:"flex",flexDirection:"column",backgroundColor:w.tokens.colorNeutralBackground1,borderRight:`1px solid ${w.tokens.colorNeutralStroke1}`}),timeCell:T.css({height:"100%",display:"flex",alignItems:"center",fontSize:"12px",color:w.tokens.colorNeutralForeground3,borderBottom:`1px solid ${w.tokens.colorNeutralStroke1}`,justifyContent:"center"}),fullDayRow:T.css({gridRow:"2",display:"grid",gridTemplateColumns:"80px repeat(7, 1fr)",gap:"0",padding:"0",backgroundColor:w.tokens.colorNeutralBackground2,borderBottom:`3px solid ${w.tokens.colorNeutralStroke2}`}),fullDayLabel:T.css({gridColumn:"1",display:"flex",alignItems:"center",justifyContent:"center",alignContent:"center",color:w.tokens.colorBrandBackground,padding:"5px",borderRight:`1px solid ${w.tokens.colorNeutralStroke1}`,borderBottom:`3px solid ${w.tokens.colorNeutralStroke2}`}),fullDayCell:T.css({borderRight:`1px solid ${w.tokens.colorNeutralStroke1}`,display:"flex",flexDirection:"row",gap:"0px",padding:"4px",borderBottom:`3px solid ${w.tokens.colorNeutralStroke2}`,overflow:"hidden"}),fullDayEvent:T.css({flex:"1 1 auto",minWidth:"24px",height:"24px",padding:"4px 8px",backgroundColor:w.tokens.colorBrandBackground,borderRadius:"4px",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"}),dayHeaderCell:T.css({textAlign:"center",backgroundColor:w.tokens.colorNeutralBackground2,padding:"8px",fontWeight:"bold",borderBottom:`1px solid ${w.tokens.colorNeutralStroke1}`,position:"sticky",top:0,zIndex:10}),todayHeaderCell:T.css({borderTop:`5px solid ${w.tokens.colorBrandBackground}`}),eventCard:T.css({padding:2,alignItems:"center",justifyContent:"center",marginRight:"2px",zIndex:1,position:"absolute",alignContent:"center",overflow:"hidden",":hover":{pointerEvents:"auto",cursor:"pointer"}}),event:T.css({height:"100%",backgroundColor:w.tokens.colorBrandBackground,borderRadius:"4px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"2px",zIndex:1,position:"absolute",alignContent:"center",":hover":{pointerEvents:"auto",cursor:"pointer"}}),dayCell:T.css({borderBottom:`1px solid ${w.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${w.tokens.colorNeutralStroke1}`,position:"relative",overflow:"visible",FlexDirection:"column",gap:"4px"}),currentTimeIndicator:T.css({position:"absolute",left:0,height:"2px",backgroundColor:w.tokens.colorPaletteRedBorderActive,width:"100%",zIndex:1}),currentHalfHourCell:T.css({border:`2px solid ${w.tokens.colorPaletteRedBorderActive}`}),eventTitle:T.css({display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",textAlign:"start",textOverflow:"ellipsis",paddingLeft:"8px",wordBreak:"break-word",overflow:"hidden"}),popoverContent:T.css({padding:0,borderTopWidth:20,borderTopStyle:"solid"})},applyEventHouverColorClass:x.useCallback((e,t)=>T.css({backgroundColor:e??w.tokens.colorBrandBackground,":hover":{backgroundColor:t??w.tokens.colorBrandBackgroundHover}}),[w.tokens.colorBrandBackground,w.tokens.colorBrandBackgroundHover]),appyDynamicStyles:x.useCallback((e,t,r,n)=>T.css({flex:`0 0 calc(100% / ${t})`,height:r*n+"px",left:10*e+"%",width:`calc(${100-10*e}% - 8px)`,margin:4,marginTop:0,marginBottom:0}),[])}),qt={timeSeparator:" - ",hourSuffix:"H"},Ht=({event:e,colors:t,spanSlots:r,rowHeight:n,eventIndex:i,eventCount:o,strings:a=qt})=>{const s=w.useId(),{styles:l,applyEventHouverColorClass:c,appyDynamicStyles:u}=Wt(),h=H.useRef(null),{formatDate:d}=Nt(),p=H.useMemo(()=>v.jsx("div",{children:v.jsxs(mt,{columnGap:4,verticalAlign:"center",children:[v.jsx(w.Caption1Strong,{className:l.eventTitle,children:e.title}),v.jsxs(mt,{columnGap:4,horizontal:!0,verticalAlign:"center",horizontalAlign:"start",children:[v.jsxs(w.Caption1,{children:[d(e.start,"HH:mm"),a.hourSuffix]}),a.timeSeparator,v.jsxs(w.Caption1,{children:[d(e.end,"HH:mm"),a.hourSuffix]})]})]})}),[e,d,a,l.eventTitle]);return v.jsx(w.Card,{ref:h,className:w.mergeClasses(l.eventCard,c(t.backgroundColor,t.backgroundColor),u(i,o,n,r)),children:e.enableOnHouver?v.jsxs(w.Popover,{withArrow:!0,mouseLeaveDelay:50,closeOnScroll:!0,closeOnIframeFocus:!0,openOnHover:!0,children:[v.jsx(w.PopoverTrigger,{children:p}),v.jsx(w.PopoverSurface,{"aria-labelledby":s,className:w.mergeClasses(l.popoverContent),children:v.jsx(Ft,{event:e})})]}):p},e.id)},Ut=({event:e,eventCount:t,spanSlots:r,rowHeight:n,eventIndex:i,view:o})=>{var a,s;const{styles:l,appyDynamicStyles:c}=Wt(),{getEventColors:u,getCalendarColors:h}=Nt(),d=e.color?h(e.color):u(e.category),p="day"===o?null==(a=e.onRenderInDayView)?void 0:a.call(e,e):null==(s=e.onRenderInWeekView)?void 0:s.call(e,e);return H.isValidElement(p)?H.cloneElement(p,{event:e,className:w.mergeClasses(p.props.className,l.eventCard,c(i,t,n,r)),style:{...p.props.style}}):v.jsx(Ht,{event:e,colors:d,spanSlots:r,rowHeight:n,eventIndex:i,eventCount:t},e.id)};for(var Gt,Xt=[],Jt=0;Jt<256;++Jt)Xt.push((Jt+256).toString(16).slice(1));var Yt=new Uint8Array(16);function Zt(){if(!Gt&&!(Gt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Gt(Yt)}const Kt={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Qt(e,t,r){if(Kt.randomUUID&&!e)return Kt.randomUUID();var n=(e=e||{}).random||(e.rng||Zt)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(Xt[e[t+0]]+Xt[e[t+1]]+Xt[e[t+2]]+Xt[e[t+3]]+"-"+Xt[e[t+4]]+Xt[e[t+5]]+"-"+Xt[e[t+6]]+Xt[e[t+7]]+"-"+Xt[e[t+8]]+Xt[e[t+9]]+"-"+Xt[e[t+10]]+Xt[e[t+11]]+Xt[e[t+12]]+Xt[e[t+13]]+Xt[e[t+14]]+Xt[e[t+15]]).toLowerCase()}(n)}const er=e=>{const t=x.useCallback(e=>e.map(e=>({...e,id:e.id||Qt()})),[]),r=x.useCallback(t=>new Date(new Date(t).toLocaleString(void 0,{timeZone:e})),[e]);return{getMonthCalendar:x.useCallback((e,n,i)=>{const o=t(e),a=new Date(n,i+1,0).getDate(),s={};for(let t=1;t<=a;t++){const e=new Date(n,i,t),r=k.format(e,"yyyy-MM-dd");s[r]=[]}return o.forEach(e=>{const t=r(e.start),n=r(e.end),i=new Date(t);for(;i<=n;){const t=k.format(i,"yyyy-MM-dd");s[t]&&s[t].push(e),i.setDate(i.getDate()+1)}}),s},[r]),getWeekEvents:x.useCallback((e,n)=>{const i=[],o=r(n),a=t(e);for(let t=0;t<7;t++){const e=new Date(o);e.setDate(o.getDate()+t);const n=k.format(e,"yyyy-MM-dd"),s=Array.from({length:48},(e,t)=>({time:`${String(Math.floor(t/2)).padStart(2,"0")}:${t%2==0?"00":"30"}`,events:[]})),l=[];a.forEach(e=>{const t=r(e.start),i=r(e.end);if(e.isFullDay)k.format(t,"yyyy-MM-dd")<=n&&k.format(i,"yyyy-MM-dd")>=n&&l.push(e);else if(k.format(t,"yyyy-MM-dd")<=n&&k.format(i,"yyyy-MM-dd")>=n){const r=new Date(t);for(;r<=i;){if(k.format(r,"yyyy-MM-dd")===n){const t=2*r.getHours()+(r.getMinutes()>=30?1:0);s[t]&&s[t].events.push(e)}r.setMinutes(r.getMinutes()+30)}}}),i.push({date:n,fullDayEvents:l,timeSlots:s})}return i},[r])}},tr=()=>({styles:{container:T.css({display:"flex",flexDirection:"column",width:"calc(100% - 40px)",height:"100vh",overflow:"hidden",padding:"20px"}),header:T.css({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px",borderBottom:`1px solid ${w.tokens.colorNeutralStroke1}`}),dayGrid:T.css({display:"grid",gridTemplateColumns:"80px 1fr",gridTemplateRows:"50px 40px repeat(48, 33px)",height:"calc(100vh - 100px)",overflowY:"auto",border:`1px solid ${w.tokens.colorNeutralStroke1}`,maxHeight:"fit-content",scrollbarWidth:"thin",scrollbarColor:`${w.tokens.colorBrandBackground} ${w.tokens.colorNeutralBackground1}`,"&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:w.tokens.colorNeutralBackground1},"&::-webkit-scrollbar-thumb":{background:w.tokens.colorBrandBackground,borderRadius:"4px"},"&::-webkit-scrollbar-thumb:hover":{background:w.tokens.colorBrandBackgroundHover}}),blankHeader:T.css({gridColumn:"1",backgroundColor:w.tokens.colorNeutralBackground3,borderBottom:`3px solid ${w.tokens.colorNeutralStroke3}`}),timeColumn:T.css({gridColumn:"1",gridRow:"3 / span 49",display:"flex",flexDirection:"column",backgroundColor:w.tokens.colorNeutralBackground1,borderRight:`1px solid ${w.tokens.colorNeutralStroke1}`}),timeCell:T.css({height:"100%",maxHeight:"32px",minHeight:"32px",display:"flex",alignItems:"center",fontSize:"12px",color:w.tokens.colorNeutralForeground3,borderBottom:`1px solid ${w.tokens.colorNeutralStroke1}`,justifyContent:"center"}),fullDayRow:T.css({gridRow:"2",display:"grid",gridTemplateColumns:"80px 33px",gap:"0",padding:"0",backgroundColor:w.tokens.colorNeutralBackground2,borderBottom:`3px solid ${w.tokens.colorNeutralStroke2}`}),fullDayLabel:T.css({gridColumn:"1",display:"flex",alignItems:"center",justifyContent:"center",alignContent:"center",color:w.tokens.colorBrandBackground,padding:"5px",borderRight:`1px solid ${w.tokens.colorNeutralStroke1}`,borderBottom:`3px solid ${w.tokens.colorNeutralStroke2}`}),fullDayCell:T.css({borderRight:`1px solid ${w.tokens.colorNeutralStroke1}`,display:"flex",flexDirection:"row",gap:"2px",padding:"4px",borderBottom:`3px solid ${w.tokens.colorNeutralStroke2}`,overflow:"hidden"}),fullDayEvent:T.css({flex:"1 1 auto",minWidth:"24px",height:"24px",padding:"4px 8px",backgroundColor:w.tokens.colorBrandBackground,color:w.tokens.colorNeutralForegroundOnBrand,borderRadius:"4px",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"}),dayHeaderCell:T.css({textAlign:"center",backgroundColor:w.tokens.colorNeutralBackground2,padding:"8px",fontWeight:"bold",borderBottom:`1px solid ${w.tokens.colorNeutralStroke1}`}),todayHeaderCell:T.css({borderTop:`5px solid ${w.tokens.colorBrandBackground}`}),eventCard:T.css({alignItems:"center",justifyContent:"center",marginRight:"2px",zIndex:1,position:"absolute",alignContent:"center",overflow:"hidden"}),dayCell:T.css({borderBottom:`1px solid ${w.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${w.tokens.colorNeutralStroke1}`,position:"relative",overflow:"visible",FlexDirection:"column",gap:"4px"}),currentTimeIndicator:T.css({position:"absolute",left:0,height:"2px",backgroundColor:w.tokens.colorPaletteRedBorderActive,width:"100%",zIndex:1}),currentHalfHourCell:T.css({border:`2px solid ${w.tokens.colorPaletteRedBorderActive}`}),eventTitle:T.css({display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",textAlign:"start",textOverflow:"ellipsis",paddingLeft:"8px",wordBreak:"break-word",overflow:"hidden"})},applyEventHouverColorClass:(e,t)=>T.css({backgroundColor:e??w.tokens.colorBrandBackground,":hover":{backgroundColor:t??w.tokens.colorBrandBackgroundHover}})}),rr={allDay:"All Day"},nr=e=>{const{events:t,currentDay:r,height:n,strings:i=rr}=e,{styles:o}=tr(),a=x.useRef(null),{getSpanSlots:s,getEventColors:l,getCalendarColors:c}=Nt(),u=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:h}=er(u),d=H.useCallback(()=>Array.from({length:24},(e,t)=>v.jsxs(H.Fragment,{children:[v.jsx("div",{className:o.timeCell,children:v.jsxs(w.Body1Strong,{children:[t,":00"]})}),v.jsx("div",{className:o.timeCell})]},t)),[o.timeCell]),p=H.useCallback(()=>v.jsxs(v.Fragment,{children:[v.jsx("div",{className:o.blankHeader}),Array.from({length:1},(e,t)=>{const n=k.addDays(r,t),i=k.isToday(n)?o.todayHeaderCell:"";return v.jsxs("div",{className:w.mergeClasses(o.dayHeaderCell,i),children:[v.jsx(w.Text,{weight:"semibold",size:600,style:{paddingRight:10},children:k.format(n,"dd")}),v.jsx(w.Subtitle1,{children:k.format(n,"LLLL, yyyy")})]},t)})]}),[r,o.blankHeader,o.dayHeaderCell,o.todayHeaderCell]),g=H.useCallback(()=>{const e=h(t,r.toISOString());return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:o.fullDayLabel,children:v.jsx(w.Body1,{children:i.allDay})}),Array.from({length:1},(t,n)=>{const i=k.format(k.addDays(r,n),"yyyy-MM-dd"),a=e.find(e=>e.date===i),s=(null==a?void 0:a.fullDayEvents)||[];return v.jsx("div",{className:o.fullDayCell,children:s.map(e=>v.jsx("div",{className:o.fullDayEvent,style:{gridColumn:`${n+2}`,backgroundColor:e.color?c(e.color).backgroundColor:l(e.category).backgroundColor},children:v.jsx(w.Caption1Strong,{className:o.eventTitle,children:e.title})},e.id))},n)})]})},[r,h,o.fullDayCell,o.fullDayEvent,o.fullDayLabel,o.eventTitle,c,l,t,i.allDay]),f=H.useCallback(()=>{const e=h(t,r.toISOString());return Array.from({length:1},(t,n)=>{const i=k.format(k.addDays(r,n),"yyyy-MM-dd"),a=e.find(e=>e.date===i);return v.jsx(H.Fragment,{children:null==a?void 0:a.timeSlots.map((e,t)=>{const r=e.events.length;return v.jsx("div",{className:o.dayCell,style:{gridRow:t+3},children:e.events.map((e,n)=>{const i=new Date(e.start),o=new Date(e.end),{spanSlots:a,startSlot:l}=s(i,o);return t===l?v.jsx(Ut,{event:e,eventCount:r,spanSlots:a,rowHeight:33,eventIndex:n,view:"day"},e.id):null})},t)})},n)})},[r,s,h,o.dayCell,t]);return v.jsx("div",{className:o.container,style:{height:n},children:v.jsxs("div",{ref:a,className:o.dayGrid,children:[v.jsx("div",{className:o.timeColumn,children:d()}),p(),g(),f()]})})};var ir=(e=>(e.Day="day",e.Week="week",e.Month="month",e))(ir||{});const or={month:"Month",week:"Week",day:"Day"},ar=e=>{const{onSelected:t,value:r,strings:n=or}=e,[i,o]=H.useState(r??ir.Month),[a,s]=H.useState({view:[r??ir.Month]}),l=H.useMemo(()=>E.bundleIcon(E.CalendarDayFilled,E.CalendarDayRegular),[]),c=H.useMemo(()=>E.bundleIcon(E.CalendarMonthFilled,E.CalendarMonthRegular),[]),u=H.useMemo(()=>E.bundleIcon(E.CalendarWorkWeekFilled,E.CalendarWorkWeekRegular),[]);H.useEffect(()=>{void 0!==r&&(o(r),s({view:[r]}))},[r]);const[h,d]=H.useState(!1),p=H.useCallback((e,t)=>{d(t.open)},[]),g=H.useCallback(()=>{switch(i){case ir.Month:return v.jsx(c,{});case ir.Week:return v.jsx(u,{});case ir.Day:return v.jsx(l,{});default:return v.jsx(c,{})}},[i]),f=H.useCallback(e=>{switch(e){case ir.Month:return n.month;case ir.Week:return n.week;case ir.Day:return n.day;default:return n.month}},[n]),m=H.useCallback((e,{name:r,checkedItems:n})=>{if("view"===r){const e=n[0];o(e),s({view:n}),t(e)}},[t]);return v.jsx(v.Fragment,{children:v.jsxs(w.Menu,{open:h,onOpenChange:p,children:[v.jsx(w.MenuTrigger,{disableButtonEnhancement:!0,children:v.jsx(w.MenuButton,{shape:"circular",icon:g(),style:{minWidth:"150px"},children:f(i)})}),v.jsx(w.MenuPopover,{children:v.jsxs(w.MenuList,{onCheckedValueChange:m,checkedValues:a,children:[v.jsx(w.MenuItemRadio,{icon:v.jsx(l,{}),name:"view",value:ir.Day,children:n.day}),v.jsx(w.MenuItemRadio,{icon:v.jsx(u,{}),name:"view",value:ir.Week,children:n.week}),v.jsx(w.MenuItemRadio,{icon:v.jsx(c,{}),name:"view",value:ir.Month,children:n.month})]})})]})})},sr=H.memo(e=>{const{onSelected:t,value:r}=e,[n,i]=H.useState(r??new Date),[o,a]=H.useState(()=>{const e=r??new Date;return C.format(e,"dd MMM, yyyy")}),[s,l]=H.useState(!1),c=H.useCallback((e,t)=>{l(t.open)},[]),u=H.useMemo(()=>E.bundleIcon(E.CalendarMonthFilled,E.CalendarMonthRegular),[]),h=H.useCallback(e=>{if(e){const r=Intl.DateTimeFormat().resolvedOptions().timeZone,n=C.utcToZonedTime(e,r);i(n),a(C.format(n,"dd MMM, yyyy")),t(n),l(!1)}},[t]);return v.jsxs(w.Menu,{open:s,onOpenChange:c,children:[v.jsx(w.MenuTrigger,{disableButtonEnhancement:!0,children:v.jsx(w.MenuButton,{shape:"circular",icon:v.jsx(u,{}),style:{minWidth:"200px"},children:o})}),v.jsx(w.MenuPopover,{style:{maxWidth:"fit-content"},children:v.jsx(w.MenuList,{children:v.jsx(I.Calendar,{highlightSelectedMonth:!0,showGoToToday:!0,onSelectDate:h,value:n})})})]})}),lr={months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],goToToday:"Go to today"},cr=e=>{const{onDateChange:t,defaultSelectedDate:r,onDismiss:n,strings:i=lr}=e,o={root:T.css({outline:"none"})},[a,s]=H.useState(r??new Date),l=H.useCallback((e,r)=>{s(e),t(e),n()},[t,n]);return v.jsx(v.Fragment,{children:v.jsx(I.Calendar,{className:o.root,dateRangeType:I.DateRangeType.Month,highlightSelectedMonth:!0,isDayPickerVisible:!1,onSelectDate:l,value:a,onDismiss:n,showGoToToday:!1,allFocusable:!1,strings:i})})},ur=e=>{const{onSelected:t,value:r}=e,n=E.bundleIcon(E.CalendarMonthFilled,E.CalendarMonthRegular),[i,o]=H.useState(r??new Date);H.useEffect(()=>{t(r??new Date),o(r??new Date)},[r]);const[a,s]=H.useState(!1),l=H.useCallback(e=>{t(e),o(e)},[]);return v.jsx(v.Fragment,{children:v.jsxs(w.Menu,{open:a,onOpenChange:(e,t)=>{s(t.open)},children:[v.jsx(w.MenuTrigger,{disableButtonEnhancement:!0,children:v.jsx(w.MenuButton,{shape:"circular",icon:v.jsx(n,{}),style:{minWidth:"200px"},children:k.format(i,"MMMM yyyy")})}),v.jsx(w.MenuPopover,{children:v.jsx(w.MenuList,{children:v.jsx(cr,{onDateChange:l,defaultSelectedDate:i,onDismiss:()=>{s(!1)}})})})]})})},hr={selectWeekPlaceholder:"Select a week"},dr=e=>{const t=Intl.DateTimeFormat().resolvedOptions().timeZone,r=C.format(e.start,"MMM",{timeZone:t}),n=C.format(e.end,"MMM",{timeZone:t});return C.format(e.start,"yyyy",{timeZone:t})!==C.format(e.end,"yyyy",{timeZone:t})?`${C.format(e.start,"dd MMM yyyy",{timeZone:t})} - ${C.format(e.end,"dd MMM yyyy",{timeZone:t})}`:r!==n?`${C.format(e.start,"dd MMM",{timeZone:t})} - ${C.format(e.end,"dd MMM yyyy",{timeZone:t})}`:`${C.format(e.start,"dd",{timeZone:t})} - ${C.format(e.end,"dd MMM yyyy",{timeZone:t})}`},pr=e=>{const t=Intl.DateTimeFormat().resolvedOptions().timeZone,r=C.utcToZonedTime(e,t),n=new Date(r);n.setDate(r.getDate()-r.getDay());const i=new Date(n);return i.setDate(n.getDate()+6),{start:C.utcToZonedTime(n,t),end:C.utcToZonedTime(i,t)}},gr=H.memo(e=>{const{onSelected:t,value:r,strings:n=hr}=e,i=I.DateRangeType.Week,[o,a]=H.useState(r??new Date),[s,l]=H.useState(()=>{const e=r??new Date;if(e){const t=pr(e);return dr(t)}return n.selectWeekPlaceholder}),[c,u]=H.useState(!1),h=H.useCallback((e,t)=>{u(t.open)},[]),d=H.useMemo(()=>E.bundleIcon(E.CalendarMonthFilled,E.CalendarMonthRegular),[]),p=H.useCallback(e=>{if(e){a(e);const r=pr(e),n=dr(r);l(n),t({startDate:r.start,endDate:r.end}),u(!1)}},[t]),g=H.useMemo(()=>0,[]);return v.jsxs(w.Menu,{open:c,onOpenChange:h,children:[v.jsx(w.MenuTrigger,{disableButtonEnhancement:!0,children:v.jsx(w.MenuButton,{shape:"circular",icon:v.jsx(d,{}),style:{minWidth:"200px"},children:s})}),v.jsx(w.MenuPopover,{style:{maxWidth:"fit-content"},children:v.jsx(w.MenuList,{children:v.jsx(I.Calendar,{dateRangeType:i,highlightSelectedMonth:!0,showGoToToday:!0,onSelectDate:p,value:o,firstDayOfWeek:g})})})]})}),fr={today:"Today",previous:"Previous",next:"Next"},mr=H.memo(({selectedView:e,onSelectedView:t,currentDate:r,setCurrentDate:n,onWeekChange:i,onMonthChange:o,onDayChange:a,strings:s=fr})=>{const l=H.useMemo(()=>E.bundleIcon(E.ArrowDownFilled,E.ArrowDownRegular),[]),c=H.useMemo(()=>E.bundleIcon(E.ArrowUpFilled,E.ArrowUpRegular),[]),u=H.useCallback(e=>{i(e.startDate),n(e.startDate)},[i,n]),h=H.useCallback(e=>{o(e),n(e)},[o,n]),d=H.useCallback(e=>{a(e),n(e)},[a,n]),p=H.useCallback(()=>{switch(e){case ir.Month:return v.jsx(ur,{onSelected:h,value:r});case ir.Week:return v.jsx(gr,{onSelected:u,value:r});case ir.Day:return v.jsx(sr,{onSelected:d,value:r});default:return v.jsx(ur,{onSelected:h,value:r})}},[e,h,u,d,r]),g=H.useCallback(()=>v.jsx(w.Tooltip,{content:s.today,relationship:"label",children:v.jsx(w.Button,{shape:"circular",icon:v.jsx(E.CalendarTodayRegular,{}),size:"medium",onClick:()=>a(new Date),children:s.today})}),[a,s.today]),f=H.useCallback(t=>{const s=new Date(r);switch(e){case ir.Month:s.setMonth(s.getMonth()+t),o(s);break;case ir.Week:s.setDate(s.getDate()+7*t),i(s);break;case ir.Day:s.setDate(s.getDate()+t),a(s)}n(s)},[r,e,o,i,a,n]);return v.jsxs(mt,{width:"calc(100% - 40px)",height:"fit-content",horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",paddingLeft:"20px",paddingRight:"20px",paddingBottom:"10px",paddingTop:"10px",columnGap:10,styles:{overflow:"hidden"},children:[v.jsxs(mt,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",columnGap:10,children:[v.jsx(g,{}),v.jsx(p,{}),v.jsx(w.Tooltip,{content:s.previous,relationship:"label",children:v.jsx(w.Button,{size:"medium",icon:v.jsx(c,{fontSize:14}),onClick:()=>f(-1)})}),v.jsx(w.Tooltip,{content:s.next,relationship:"label",children:v.jsx(w.Button,{size:"medium",icon:v.jsx(l,{fontSize:14}),onClick:()=>f(1)})})]}),v.jsx(mt,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",columnGap:10,children:v.jsx(ar,{onSelected:t,value:e})})]})}),yr={allDay:"All Day"},br=e=>{const{events:t,currentDay:r,height:n,strings:i=yr}=e,{styles:o}=Wt(),[a]=x.useState(r),[s,l]=x.useState(32),c=x.useRef(null),{getSpanSlots:u,getEventColors:h,getCalendarColors:d,formatDate:p}=Nt(),g=k.startOfWeek(a,{weekStartsOn:0}),f=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:m}=er(f);x.useEffect(()=>{const e=new _.ResizeObserver(()=>{if(c.current){const e=c.current.querySelector(".dayCell");e&&l(e.offsetHeight)}});return c.current&&e.observe(c.current),()=>{e.disconnect()}},[]);const y=H.useCallback(()=>Array.from({length:24},(e,t)=>v.jsxs(H.Fragment,{children:[v.jsx("div",{className:o.timeCell,children:v.jsxs(w.Body1Strong,{children:[t,":00"]})}),v.jsx("div",{className:o.timeCell})]},t)),[o.timeCell]),b=H.useCallback(()=>v.jsxs(v.Fragment,{children:[v.jsx("div",{className:o.blankHeader}),Array.from({length:7},(e,t)=>{const r=k.addDays(g,t),n=k.isToday(r)?o.todayHeaderCell:"";return v.jsxs("div",{className:w.mergeClasses(o.dayHeaderCell,n),children:[v.jsx(w.Text,{weight:"regular",size:600,style:{paddingRight:10},children:p(r.toISOString(),"dd")}),v.jsx(w.Body1,{children:p(r.toISOString(),"EEE")})]},t)})]}),[g,o,p]),C=H.useCallback(()=>{const e=m(t,g.toISOString());return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:o.fullDayLabel,children:v.jsx(w.Body1,{children:i.allDay})}),Array.from({length:7},(t,r)=>{const n=p(k.addDays(g,r).toISOString(),"yyyy-MM-dd"),i=e.find(e=>e.date===n),a=(null==i?void 0:i.fullDayEvents)||[];return v.jsx("div",{className:o.fullDayCell,children:a.map(e=>v.jsx("div",{className:o.fullDayEvent,style:{gridColumn:`${r+2}`,backgroundColor:e.color?d(e.color).backgroundColor:h(e.category).backgroundColor},children:v.jsx(w.Caption1Strong,{className:o.eventTitle,children:e.title})},e.id))},r)})]})},[g,o,m,d,h,t,p,i.allDay]),S=H.useCallback(()=>{const e=m(t,g.toISOString());return Array.from({length:7},(t,r)=>{const n=k.format(k.addDays(g,r),"yyyy-MM-dd"),i=e.find(e=>e.date===n);return v.jsx(v.Fragment,{children:null==i?void 0:i.timeSlots.map((e,t)=>{const r=e.events.length;return v.jsx("div",{className:o.dayCell,style:{gridRow:t+3},children:e.events.map((e,n)=>{const i=new Date(e.start),o=new Date(e.end),{spanSlots:a,startSlot:l}=u(i,o);return t===l?v.jsx(Ut,{event:e,eventCount:r,spanSlots:a,rowHeight:s,eventIndex:n,view:"week"},e.id):null})},t)})})})},[g,o,m,u,s,t]);return v.jsx("div",{className:o.container,style:{height:n},children:v.jsxs("div",{ref:c,className:o.weekGrid,children:[v.jsx("div",{className:o.timeColumn,children:y()}),b(),C(),S()]})})},vr={daysOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},xr=({currentDate:e,rowHeight:t,getCalendarDays:r,getEventsForDay:n,styles:i,onDaySlotClick:o,height:a,calendarRef:s,strings:l})=>{const c=(null==l?void 0:l.daysOfWeek)||vr.daysOfWeek;return v.jsx(mt,{height:a,width:"100%",verticalAlign:"start",horizontalAlign:"start",children:v.jsxs("div",{className:i.calendarWrapper,ref:s,children:[c.map(e=>v.jsx(w.Body1,{className:i.dayHeader,children:e},e)),r(e).map((e,r)=>{const{day:i,currentMonth:a}=e,s=a?n(e):[];return v.jsx(Vt,{day:i,date:e.date,currentMonth:e.currentMonth,events:s,columnHeight:t||0,onDayClick:o},r)})]})})},Cr=H.memo(({events:e,currentDay:t,height:r,strings:n})=>v.jsx(br,{events:e,currentDay:t,height:r,strings:n})),wr=H.memo(({events:e,currentDay:t,height:r,strings:n})=>v.jsx(nr,{currentDay:t,events:e,height:r,strings:n}));var kr=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(n){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Sr="-ms-",_r="-moz-",Tr="-webkit-",Ar="comm",Er="rule",Pr="decl",Mr="@keyframes",Ir=Math.abs,Br=String.fromCharCode,Lr=Object.assign;function jr(e){return e.trim()}function Nr(e,t,r){return e.replace(t,r)}function Dr(e,t){return e.indexOf(t)}function Or(e,t){return 0|e.charCodeAt(t)}function zr(e,t,r){return e.slice(t,r)}function Fr(e){return e.length}function Rr(e){return e.length}function $r(e,t){return t.push(e),e}var Vr=1,Wr=1,qr=0,Hr=0,Ur=0,Gr="";function Xr(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Vr,column:Wr,length:a,return:""}}function Jr(e,t){return Lr(Xr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Yr(){return Ur=Hr>0?Or(Gr,--Hr):0,Wr--,10===Ur&&(Wr=1,Vr--),Ur}function Zr(){return Ur=Hr<qr?Or(Gr,Hr++):0,Wr++,10===Ur&&(Wr=1,Vr++),Ur}function Kr(){return Or(Gr,Hr)}function Qr(){return Hr}function en(e,t){return zr(Gr,e,t)}function tn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function rn(e){return Vr=Wr=1,qr=Fr(Gr=e),Hr=0,[]}function nn(e){return Gr="",e}function on(e){return jr(en(Hr-1,ln(91===e?e+2:40===e?e+1:e)))}function an(e){for(;(Ur=Kr())&&Ur<33;)Zr();return tn(e)>2||tn(Ur)>3?"":" "}function sn(e,t){for(;--t&&Zr()&&!(Ur<48||Ur>102||Ur>57&&Ur<65||Ur>70&&Ur<97););return en(e,Qr()+(t<6&&32==Kr()&&32==Zr()))}function ln(e){for(;Zr();)switch(Ur){case e:return Hr;case 34:case 39:34!==e&&39!==e&&ln(Ur);break;case 40:41===e&&ln(e);break;case 92:Zr()}return Hr}function cn(e,t){for(;Zr()&&e+Ur!==57&&(e+Ur!==84||47!==Kr()););return"/*"+en(t,Hr-1)+"*"+Br(47===e?e:Zr())}function un(e){for(;!tn(Kr());)Zr();return en(e,Hr)}function hn(e){return nn(dn("",null,null,null,[""],e=rn(e),0,[0],e))}function dn(e,t,r,n,i,o,a,s,l){for(var c=0,u=0,h=a,d=0,p=0,g=0,f=1,m=1,y=1,b=0,v="",x=i,C=o,w=n,k=v;m;)switch(g=b,b=Zr()){case 40:if(108!=g&&58==Or(k,h-1)){-1!=Dr(k+=Nr(on(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:k+=on(b);break;case 9:case 10:case 13:case 32:k+=an(g);break;case 92:k+=sn(Qr()-1,7);continue;case 47:switch(Kr()){case 42:case 47:$r(gn(cn(Zr(),Qr()),t,r),l);break;default:k+="/"}break;case 123*f:s[c++]=Fr(k)*y;case 125*f:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==y&&(k=Nr(k,/\f/g,"")),p>0&&Fr(k)-h&&$r(p>32?fn(k+";",n,r,h-1):fn(Nr(k," ","")+";",n,r,h-2),l);break;case 59:k+=";";default:if($r(w=pn(k,t,r,c,u,i,s,v,x=[],C=[],h),o),123===b)if(0===u)dn(k,t,w,w,x,o,h,s,C);else switch(99===d&&110===Or(k,3)?100:d){case 100:case 108:case 109:case 115:dn(e,w,w,n&&$r(pn(e,w,w,0,0,i,s,v,i,x=[],h),C),i,C,h,s,n?x:C);break;default:dn(k,w,w,w,[""],C,0,s,C)}}c=u=p=0,f=y=1,v=k="",h=a;break;case 58:h=1+Fr(k),p=g;default:if(f<1)if(123==b)--f;else if(125==b&&0==f++&&125==Yr())continue;switch(k+=Br(b),b*f){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(Fr(k)-1)*y,y=1;break;case 64:45===Kr()&&(k+=on(Zr())),d=Kr(),u=h=Fr(v=k+=un(Qr())),b++;break;case 45:45===g&&2==Fr(k)&&(f=0)}}return o}function pn(e,t,r,n,i,o,a,s,l,c,u){for(var h=i-1,d=0===i?o:[""],p=Rr(d),g=0,f=0,m=0;g<n;++g)for(var y=0,b=zr(e,h+1,h=Ir(f=a[g])),v=e;y<p;++y)(v=jr(f>0?d[y]+" "+b:Nr(b,/&\f/g,d[y])))&&(l[m++]=v);return Xr(e,t,r,0===i?Er:s,l,c,u)}function gn(e,t,r){return Xr(e,t,r,Ar,Br(Ur),zr(e,2,-2),0)}function fn(e,t,r,n){return Xr(e,t,r,Pr,zr(e,0,n),zr(e,n+1,-1),n)}function mn(e,t){for(var r="",n=Rr(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function yn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Pr:return e.return=e.return||e.value;case Ar:return"";case Mr:return e.return=e.value+"{"+mn(e.children,n)+"}";case Er:e.value=e.props.join(",")}return Fr(r=mn(e.children,n))?e.return=e.value+"{"+r+"}":""}function bn(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var vn=function(e,t,r){for(var n=0,i=0;n=i,i=Kr(),38===n&&12===i&&(t[r]=1),!tn(i);)Zr();return en(e,Hr)},xn=function(e,t){return nn(function(e,t){var r=-1,n=44;do{switch(tn(n)){case 0:38===n&&12===Kr()&&(t[r]=1),e[r]+=vn(Hr-1,t,r);break;case 2:e[r]+=on(n);break;case 4:if(44===n){e[++r]=58===Kr()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Br(n)}}while(n=Zr());return e}(rn(e),t))},Cn=new WeakMap,wn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Cn.get(r))&&!n){Cn.set(e,!0);for(var i=[],o=xn(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},kn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Sn(e,t){switch(function(e,t){return 45^Or(e,0)?(((t<<2^Or(e,0))<<2^Or(e,1))<<2^Or(e,2))<<2^Or(e,3):0}(e,t)){case 5103:return Tr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Tr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Tr+e+_r+e+Sr+e+e;case 6828:case 4268:return Tr+e+Sr+e+e;case 6165:return Tr+e+Sr+"flex-"+e+e;case 5187:return Tr+e+Nr(e,/(\w+).+(:[^]+)/,Tr+"box-$1$2"+Sr+"flex-$1$2")+e;case 5443:return Tr+e+Sr+"flex-item-"+Nr(e,/flex-|-self/,"")+e;case 4675:return Tr+e+Sr+"flex-line-pack"+Nr(e,/align-content|flex-|-self/,"")+e;case 5548:return Tr+e+Sr+Nr(e,"shrink","negative")+e;case 5292:return Tr+e+Sr+Nr(e,"basis","preferred-size")+e;case 6060:return Tr+"box-"+Nr(e,"-grow","")+Tr+e+Sr+Nr(e,"grow","positive")+e;case 4554:return Tr+Nr(e,/([^-])(transform)/g,"$1"+Tr+"$2")+e;case 6187:return Nr(Nr(Nr(e,/(zoom-|grab)/,Tr+"$1"),/(image-set)/,Tr+"$1"),e,"")+e;case 5495:case 3959:return Nr(e,/(image-set\([^]*)/,Tr+"$1$`$1");case 4968:return Nr(Nr(e,/(.+:)(flex-)?(.*)/,Tr+"box-pack:$3"+Sr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tr+e+e;case 4095:case 3583:case 4068:case 2532:return Nr(e,/(.+)-inline(.+)/,Tr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Fr(e)-1-t>6)switch(Or(e,t+1)){case 109:if(45!==Or(e,t+4))break;case 102:return Nr(e,/(.+:)(.+)-([^]+)/,"$1"+Tr+"$2-$3$1"+_r+(108==Or(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Dr(e,"stretch")?Sn(Nr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Or(e,t+1))break;case 6444:switch(Or(e,Fr(e)-3-(~Dr(e,"!important")&&10))){case 107:return Nr(e,":",":"+Tr)+e;case 101:return Nr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Tr+(45===Or(e,14)?"inline-":"")+"box$3$1"+Tr+"$2$3$1"+Sr+"$2box$3")+e}break;case 5936:switch(Or(e,t+11)){case 114:return Tr+e+Sr+Nr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tr+e+Sr+Nr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tr+e+Sr+Nr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Tr+e+Sr+e+e}return e}var _n=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Pr:e.return=Sn(e.value,e.length);break;case Mr:return mn([Jr(e,{value:Nr(e.value,"@","@"+Tr)})],n);case Er:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mn([Jr(e,{props:[Nr(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return mn([Jr(e,{props:[Nr(t,/:(plac\w+)/,":"+Tr+"input-$1")]}),Jr(e,{props:[Nr(t,/:(plac\w+)/,":-moz-$1")]}),Jr(e,{props:[Nr(t,/:(plac\w+)/,Sr+"input-$1")]})],n)}return""})}}],Tn=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n,i,o=e.stylisPlugins||_n,a={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;s.push(e)});var l,c,u,h,d=[yn,(h=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&h(e)})],p=(c=[wn,kn].concat(o,d),u=Rr(c),function(e,t,r,n){for(var i="",o=0;o<u;o++)i+=c[o](e,t,r,n)||"";return i});i=function(e,t,r,n){l=r,mn(hn(e?e+"{"+t.styles+"}":t.styles),p),n&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new kr({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return g.sheet.hydrate(s),g},An="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function En(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pn,Mn={exports:{}},In={};var Bn,Ln={};
|
|
2
|
+
/** @license React v16.13.1
|
|
3
|
+
* react-is.development.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/"production"===process.env.NODE_ENV?Mn.exports=function(){if(Pn)return In;Pn=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:switch(e=e.type){case l:case c:case n:case o:case i:case h:return e;default:switch(e=e&&e.$$typeof){case s:case u:case g:case p:case a:return e;default:return d}}case r:return d}}}function x(e){return v(e)===c}return In.AsyncMode=l,In.ConcurrentMode=c,In.ContextConsumer=s,In.ContextProvider=a,In.Element=t,In.ForwardRef=u,In.Fragment=n,In.Lazy=g,In.Memo=p,In.Portal=r,In.Profiler=o,In.StrictMode=i,In.Suspense=h,In.isAsyncMode=function(e){return x(e)||v(e)===l},In.isConcurrentMode=x,In.isContextConsumer=function(e){return v(e)===s},In.isContextProvider=function(e){return v(e)===a},In.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},In.isForwardRef=function(e){return v(e)===u},In.isFragment=function(e){return v(e)===n},In.isLazy=function(e){return v(e)===g},In.isMemo=function(e){return v(e)===p},In.isPortal=function(e){return v(e)===r},In.isProfiler=function(e){return v(e)===o},In.isStrictMode=function(e){return v(e)===i},In.isSuspense=function(e){return v(e)===h},In.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===o||e===i||e===h||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===y||e.$$typeof===b||e.$$typeof===f)},In.typeOf=v,In}():Mn.exports=(Bn||(Bn=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case t:var f=e.type;switch(f){case l:case c:case n:case o:case i:case h:return f;default:var m=f&&f.$$typeof;switch(m){case s:case u:case g:case p:case a:return m;default:return d}}case r:return d}}}var x=l,C=c,w=s,k=a,S=t,_=u,T=n,A=g,E=p,P=r,M=o,I=i,B=h,L=!1;function j(e){return v(e)===c}Ln.AsyncMode=x,Ln.ConcurrentMode=C,Ln.ContextConsumer=w,Ln.ContextProvider=k,Ln.Element=S,Ln.ForwardRef=_,Ln.Fragment=T,Ln.Lazy=A,Ln.Memo=E,Ln.Portal=P,Ln.Profiler=M,Ln.StrictMode=I,Ln.Suspense=B,Ln.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(e)||v(e)===l},Ln.isConcurrentMode=j,Ln.isContextConsumer=function(e){return v(e)===s},Ln.isContextProvider=function(e){return v(e)===a},Ln.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ln.isForwardRef=function(e){return v(e)===u},Ln.isFragment=function(e){return v(e)===n},Ln.isLazy=function(e){return v(e)===g},Ln.isMemo=function(e){return v(e)===p},Ln.isPortal=function(e){return v(e)===r},Ln.isProfiler=function(e){return v(e)===o},Ln.isStrictMode=function(e){return v(e)===i},Ln.isSuspense=function(e){return v(e)===h},Ln.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===o||e===i||e===h||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===m||e.$$typeof===y||e.$$typeof===b||e.$$typeof===f)},Ln.typeOf=v}()),Ln);var jn=Mn.exports,Nn={};Nn[jn.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Nn[jn.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Dn=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)};var On={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},zn=/[A-Z]|^ms/g,Fn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Rn=function(e){return 45===e.charCodeAt(1)},$n=function(e){return null!=e&&"boolean"!=typeof e},Vn=bn(function(e){return Rn(e)?e:e.replace(zn,"-$&").toLowerCase()}),Wn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Fn,function(e,t,r){return Hn={name:t,styles:r,next:Hn},t})}return 1===On[e]||Rn(e)||"number"!=typeof t||0===t?t:t+"px"};function qn(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var i=r;if(1===i.anim)return Hn={name:i.name,styles:i.styles,next:Hn},i.name;var o=r;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)Hn={name:a.name,styles:a.styles,next:Hn},a=a.next;return o.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=qn(e,t,r[i])+";";else for(var o in r){var a=r[o];if("object"!=typeof a){var s=a;$n(s)&&(n+=Vn(o)+":"+Wn(o,s)+";")}else if(Array.isArray(a)&&"string"==typeof a[0]&&null==t)for(var l=0;l<a.length;l++)$n(a[l])&&(n+=Vn(o)+":"+Wn(o,a[l])+";");else{var c=qn(e,t,a);switch(o){case"animation":case"animationName":n+=Vn(o)+":"+c+";";break;default:n+=o+"{"+c+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var s=Hn,l=r(e);return Hn=s,qn(e,t,l)}}return r}var Hn,Un=/label:\s*([^\s;{]+)\s*(;|$)/g;function Gn(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,i="";Hn=void 0;var o=e[0];null==o||void 0===o.raw?(n=!1,i+=qn(r,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=qn(r,t,e[a]),n)i+=o[a]}Un.lastIndex=0;for(var s,l="";null!==(s=Un.exec(i));)l+="-"+s[1];var c=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:Hn}}var Xn=!!H.useInsertionEffect&&H.useInsertionEffect||function(e){return e()},Jn=H.createContext("undefined"!=typeof HTMLElement?Tn({key:"css"}):null);Jn.Provider;var Yn,Zn,Kn=function(e){return x.forwardRef(function(t,r){var n=x.useContext(Jn);return e(t,n,r)})},Qn=H.createContext({}),ei={}.hasOwnProperty,ti="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ri=function(e,t){var r={};for(var n in t)ei.call(t,n)&&(r[n]=t[n]);return r[ti]=e,r},ni=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Dn(t,r,n),Xn(function(){return function(e,t,r){Dn(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,r,n)}),null},ii=Kn(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var i=e[ti],o=[n],a="";"string"==typeof e.className?a=function(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=Gn(o,void 0,H.useContext(Qn));a+=t.key+"-"+s.name;var l={};for(var c in e)ei.call(e,c)&&"css"!==c&&c!==ti&&(l[c]=e[c]);return l.className=a,r&&(l.ref=r),H.createElement(H.Fragment,null,H.createElement(ni,{cache:t,serialized:s,isStringTag:"string"==typeof i}),H.createElement(i,l))}),oi=function(e,t,r){return ei.call(t,"css")?q.jsx(ii,ri(e,t),r):q.jsx(e,t,r)},ai=function(e,t,r){return ei.call(t,"css")?q.jsxs(ii,ri(e,t),r):q.jsxs(e,t,r)},si=function(e,t){var r=arguments;if(null==t||!ei.call(t,"css"))return H.createElement.apply(void 0,r);var n=r.length,i=new Array(n);i[0]=ii,i[1]=ri(e,t);for(var o=2;o<n;o++)i[o]=r[o];return H.createElement.apply(null,i)};function li(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Gn(t)}Yn=si||(si={}),Zn||(Zn=Yn.JSX||(Yn.JSX={}));const ci=()=>({menuButton:T.css({minWidth:200}),popover:T.css({padding:w.tokens.spacingVerticalS,minWidth:200}),timePicker:T.css({width:"100%"})}),ui=()=>({root:T.css({maxHeight:280,overflowY:"auto",padding:`${w.tokens.spacingVerticalXS} 0`}),item:T.css({cursor:"pointer"})}),hi="time",di=(e,t,r)=>{const n=new Date(e);return n.setHours(t,r,0,0),n},pi=(e,t,r)=>{const n={hour:"numeric",minute:"2-digit",...r&&{second:"2-digit"},...t&&{hourCycle:t}};return new Intl.DateTimeFormat(void 0,n).format(e)},gi=e=>`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`,fi=H.memo(e=>{const{onTimeSelect:t,hourCycle:r,showSeconds:n=!1,startHour:i=0,endHour:o=24,increment:a=30,dateAnchor:s}=e,l=ui(),c=H.useMemo(()=>s??new Date,[s]),u=H.useMemo(()=>((e,t,r,n)=>{const i=[],o=60*t;for(let a=60*e;a<o;a+=r){const e=Math.floor(a/60),t=a%60;i.push(di(n,e,t))}return i})(i,o,a,c),[i,o,a,c]),h=H.useCallback((e,r)=>()=>{t(e,r)},[t]);return v.jsx("div",{className:l.root,children:u.map(e=>{const t=pi(e,r,n),i=gi(e);return v.jsx(w.MenuItemRadio,{name:hi,value:i,onClick:h(e,t),icon:v.jsx(E.ClockRegular,{}),className:l.item,children:t},i)})})}),mi=H.memo(e=>{const{onSelected:t,value:r,placeholder:n="Select a time",hourCycle:i,showSeconds:o=!1,startHour:a,endHour:s,increment:l=30,dateAnchor:c}=e,u=ci(),h=H.useMemo(()=>((e,t)=>{const r=t?new Date(t):new Date,n=60*r.getHours()+r.getMinutes(),i=Math.ceil(n/e)*e,o=new Date(r);return o.setHours(Math.floor(i/60),i%60,0,0),o})(l,c),[l,c]),d=r??h,[p,g]=H.useState(d),[f,m]=H.useState(()=>pi(d,i,o)),[y,b]=H.useState(!1);H.useEffect(()=>{r&&(g(r),m(pi(r,i,o)))},[r,i,o]);const x=H.useCallback((e,t)=>{b(t.open)},[]),C=H.useMemo(()=>E.bundleIcon(E.ClockFilled,E.ClockRegular),[]),k=H.useMemo(()=>p?{[hi]:[gi(p)]}:{[hi]:[]},[p]),S=H.useCallback((e,r)=>{g(e),m(r),t(e),b(!1)},[t]),_=H.useCallback((e,t)=>{},[]);return v.jsxs(w.Menu,{open:y,onOpenChange:x,checkedValues:k,onCheckedValueChange:_,children:[v.jsx(w.MenuTrigger,{disableButtonEnhancement:!0,children:v.jsx(w.MenuButton,{shape:"circular",icon:v.jsx(C,{}),className:u.menuButton,children:f||n})}),v.jsx(w.MenuPopover,{className:u.popover,children:v.jsx(w.MenuList,{children:v.jsx(fi,{value:p,onTimeSelect:S,hourCycle:i,showSeconds:o,startHour:a,endHour:s,increment:l,dateAnchor:c})})})]})}),yi={xs:w.tokens.spacingHorizontalXS,s:w.tokens.spacingHorizontalS,m:w.tokens.spacingHorizontalM,l:w.tokens.spacingHorizontalL,xl:w.tokens.spacingHorizontalXL,xxl:w.tokens.spacingHorizontalXXL},bi=x.memo(({direction:e="vertical",justifyContent:t="flex-start",alignItems:r="stretch",gap:n,columnGap:i,rowGap:o,margin:a,padding:s,marginTop:l,marginBottom:c,marginLeft:u,marginRight:h,paddingTop:d,paddingBottom:p,paddingLeft:g,paddingRight:f,width:m,height:y,wrap:b=!1,children:x,style:C,className:k,overflow:S,background:_})=>{const A=T.css({display:"flex",flexDirection:"horizontal"===e?"row":"column",justifyContent:t,alignItems:r,gap:n&&yi[n]?yi[n]:n,columnGap:i&&yi[i]?yi[i]:i,rowGap:o&&yi[o]?yi[o]:o,margin:a&&yi[a]?yi[a]:a,padding:s&&yi[s]?yi[s]:s,marginTop:l&&yi[l]?yi[l]:l,marginBottom:c&&yi[c]?yi[c]:c,marginLeft:u&&yi[u]?yi[u]:u,marginRight:h&&yi[h]?yi[h]:h,paddingTop:d&&yi[d]?yi[d]:d,paddingBottom:p&&yi[p]?yi[p]:p,paddingLeft:g&&yi[g]?yi[g]:g,paddingRight:f&&yi[f]?yi[f]:f,width:m,height:y,overflow:S,flexWrap:b?"wrap":"nowrap",backgroundColor:_,...C});return v.jsx("div",{className:w.mergeClasses(k,A),children:x})}),vi=e=>({styles:{loadingContainer:T.css({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),noItemsMessage:T.css({textAlign:"center",marginTop:20}),rowSelection:T.css({":hover":{cursor:"pointer"}})}}),xi=T.css`
|
|
10
|
+
&::-webkit-scrollbar {
|
|
11
|
+
width: 5px;
|
|
12
|
+
height: 5px;
|
|
13
|
+
}
|
|
14
|
+
&::-webkit-scrollbar-track {
|
|
15
|
+
background: ${w.tokens.colorNeutralBackground4};
|
|
16
|
+
border-radius: ${w.tokens.borderRadiusMedium};
|
|
17
|
+
}
|
|
18
|
+
&::-webkit-scrollbar-thumb {
|
|
19
|
+
background: ${w.tokens.colorBrandBackground};
|
|
20
|
+
border-radius: ${w.tokens.borderRadiusMedium};
|
|
21
|
+
}
|
|
22
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
23
|
+
background: ${w.tokens.colorBrandBackgroundHover};
|
|
24
|
+
}
|
|
25
|
+
`,Ci=H.forwardRef((e,t)=>{const{columns:r,items:n,enableSorting:i=!1,enableResizing:o=!1,selectionMode:a="none",onSelectionChange:s,defaultSelectedItems:l=[],defaultSortState:c,onSortChange:u,columnSizingOptions:h,resizableColumnsOptions:d,noItemsMessage:p,isLoadingData:g,isLoadingDataMessage:f,dataGridBodyClassName:m,dataGridBodyStyles:y,refreshData:b,enableInfiniteScroll:x,onLoadMore:C,infiniteScrollPageSize:k,hasNextPage:S,isLoadingMore:_,autoShowLastPage:T=!0,virtualizedHeight:A=600,virtualizedItemSize:E=44,startIndex:P,onRowClick:M}=e,I=H.useMemo(()=>r.map(e=>w.createTableColumn({columnId:e.column,renderHeaderCell:()=>v.jsx(w.Body1Strong,{children:e.header}),renderCell:t=>v.jsx(w.TableCellLayout,{media:e.media?e.media(t):void 0,className:null==e?void 0:e.className,style:null==e?void 0:e.style,children:e.onRender?e.onRender(t):String(t[e.column]??"")}),compare:e.order})),[r]),L=H.useCallback(e=>n.findIndex(t=>t===e),[n]),[j,N]=H.useState(new Set(l.map(e=>L(e)))),[D,O]=H.useState(0);H.useEffect(()=>{l.length&&N(new Set(l.map(e=>L(e))))},[l,n,L]),H.useEffect(()=>{b&&N(new Set)},[b]);const[z,F]=H.useState(null),R=H.useMemo(()=>new Map(n.map((e,t)=>[e,t])),[n]);H.useEffect(()=>{"row"===a&&null!=z&&z>=n.length&&F(null)},[n,z,a]),H.useEffect(()=>{b&&"row"===a&&F(null)},[b,a]);const $=H.useRef(null),V=H.useRef(n.length),W=H.useRef(!1),q=H.useRef(!1),U=H.useRef(!1);H.useImperativeHandle(t,()=>({scrollToIndex:(e,t="auto")=>{const r=$.current;r&&"scrollToItem"in r&&r.scrollToItem(Math.max(0,e),t)},resetGrid:()=>{O(e=>e+1),V.current=0,W.current=!1,q.current=!1,U.current=!1,G.current=-1,N(new Set),F(null)},getSelectedRow:()=>null!==z&&z<n.length?{item:n[z],index:z}:null,setSelectedRow:e=>{const t=n.findIndex(t=>t===e);-1!==t&&(F(t),null==s||s([e]))}})),H.useEffect(()=>{if(!W.current&&"number"==typeof P&&$.current){const e=$.current;"scrollToItem"in e&&e.scrollToItem(Math.min(P,Math.max(n.length-1,0)),"start"),W.current=!0}},[P,n.length]),H.useEffect(()=>{const e=V.current,t=n.length,r=t>e;if(V.current=t,!T||!r||0===e)return;const i=$.current;i&&"scrollToItem"in i&&i.scrollToItem(Math.max(t-1,0),"end")},[n.length,T]);const G=H.useRef(-1),X=H.useCallback(({visibleStopIndex:e})=>{if(!x||!C)return;if(_||U.current)return;if(!q.current)return void(q.current=!0);const t=k??20;if(n.length<t)return;const r=Math.max(5,Math.ceil(t/5));e>=n.length-r&&S&&G.current!==n.length&&(G.current=n.length,U.current=!0,C())},[x,C,S,_,n.length,k]);H.useEffect(()=>{U.current&&n.length>G.current&&(U.current=!1)},[n.length]);const J=H.useMemo(()=>({overflowX:"auto",overflowY:"hidden",position:"relative"}),[]);return v.jsxs("div",{style:J,className:xi,children:[g&&v.jsx("div",{style:{display:"flex",gap:8,alignItems:"center",padding:8},children:H.isValidElement(f)?f:v.jsxs(w.Spinner,{size:"extra-tiny",children:[" ",f??"Loading data..."," "]})}),!g&&n.length?v.jsxs(B.DataGrid,{items:n,columns:I,sortable:i,onSortChange:i?(e,t)=>{u&&u(t)}:void 0,selectionMode:"none"===a||"row"===a?void 0:"multiple"===a?"multiselect":"single"===a?"single":void 0,selectedItems:j,onSelectionChange:(e,t)=>{const r=new Set;t.selectedItems.forEach(e=>{const t=Number(e);isNaN(t)||r.add(t)}),N(r),s&&s(Array.from(r).map(e=>n[e]))},defaultSortState:c,resizableColumns:o,columnSizingOptions:h,resizableColumnsOptions:d,focusMode:"cell",className:m,style:y,children:[v.jsx(B.DataGridHeader,{children:v.jsx(B.DataGridRow,{children:({renderHeaderCell:e})=>v.jsx(B.DataGridHeaderCell,{children:e()})})}),v.jsx(B.DataGridBody,{itemSize:E,height:A,width:"100%",listProps:{onItemsRendered:X},children:(e,t)=>(()=>{const r=e.item,i=R.get(r)??n.indexOf(r),o="row"===a,l=o&&z===i;return v.jsx(B.DataGridRow,{style:{...t,cursor:o?"pointer":void 0,background:l?w.tokens.colorSubtleBackgroundSelected:void 0},onClick:e=>{F(i),null==s||s([r]),null==M||M(r,i)},"aria-selected":l||void 0,children:({renderCell:e})=>v.jsx(B.DataGridCell,{children:e(r)})})})()})]},D):g||n.length?null:v.jsx("div",{children:p})]})});Ci.displayName="DataGridV2";const wi=w.makeStyles({dialog:{overflow:"visible"},dialogBody:{overflow:"visible"}}),ki=e=>{const{isOpen:t,dialogTitle:r,dialogActions:n,children:i,maxWidth:o,className:a,minHeight:s,minWidth:l,maxHeight:c}=e,u=wi();return t?v.jsx(w.Dialog,{open:t,modalType:"modal",children:v.jsxs(w.DialogSurface,{className:w.mergeClasses(u.dialog,a),style:{maxWidth:o??600,minWidth:l??200,...s?{minHeight:s}:{},...c?{maxHeight:c}:{}},children:[v.jsx(w.DialogTitle,{children:r}),v.jsx(w.DialogBody,{className:u.dialogBody,children:v.jsx(w.DialogContent,{children:i})}),v.jsx(w.DialogActions,{fluid:!0,position:"end",children:n})]})}):v.jsx(v.Fragment,{})},Si=()=>({closeButton:T.css({marginLeft:"auto",position:"absolute",top:"10px",right:"10px",zIndex:99999}),divider:T.css({width:"100%",height:"1px",backgroundColor:w.tokens.colorNeutralStroke1,marginTop:"6px"}),renderHeaderContent:T.css({display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",width:"100%"}),renderHeaderHeader:T.css({display:"flex",flexDirection:"column",justifyContent:"flex-start",padding:"10px",gap:"20px"}),renderHeaderFooter:T.css({display:"flex",flexDirection:"row",justifyContent:"flex-start",padding:"20px",gap:"20px"}),renderHeaderBody:T.css({display:"flex",flexDirection:"column",justifyContent:"flex-start",padding:"20px",gap:"20px"}),renderHeaderTitleContainer:T.css({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignContent:"center",alignItems:"center",width:"100%"}),renderHeaderTitle:T.css({display:"-webkit-box",WebkitLineClamp:"1",WebkitBoxOrient:"vertical",textAlign:"start",textOverflow:"ellipsis",paddingTop:0,wordBreak:"break-word"}),renderHeaderDescription:T.css({display:"-webkit-box",WebkitLineClamp:"4",WebkitBoxOrient:"vertical",textAlign:"start",textOverflow:"ellipsis",wordBreak:"break-word"}),dialogTitleAndDescriptionContainer:T.css({display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"start",paddingLeft:"10px",paddingRight:"20px",width:"100%"})}),_i=()=>x.useMemo(()=>({container:T.css({display:"flex",alignItems:"center",justifyContent:"center",minHeight:"200px",textAlign:"center",backgroundColor:w.tokens.colorNeutralBackground1,border:`1px solid ${w.tokens.colorNeutralStroke2}`,borderRadius:w.tokens.borderRadiusLarge,padding:`${w.tokens.spacingVerticalXXL} ${w.tokens.spacingHorizontalXXL}`,boxShadow:w.tokens.shadow4,maxWidth:"500px",margin:"20px auto"}),icon:T.css({fontSize:"48px",color:w.tokens.colorPaletteRedForeground1,animation:"pulse 2s infinite","@keyframes pulse":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(1.05)"},"100%":{transform:"scale(1)"}}}),title:T.css({color:w.tokens.colorNeutralForeground1,fontWeight:w.tokens.fontWeightSemibold,textAlign:"center"}),message:T.css({color:w.tokens.colorNeutralForeground2,textAlign:"center",lineHeight:w.tokens.lineHeightBase400})}),[]),Ti=w.makeStyles({root:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",...w.shorthands.padding("10px"),gap:"10px"},iconClass:{width:"32px",height:"32px"},errorContainer:{display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"center",gap:"10px",...w.shorthands.padding("10px"),backgroundColor:w.tokens.colorStatusDangerBackground1},errorIcon:{height:"100%"}}),Ai=e=>{const{messageType:t,children:r,message:n}=e,i=Ti(),[o,a]=H.useState(null),s=H.useCallback(()=>v.jsx(v.Fragment,{children:v.jsxs("div",{className:i.errorContainer,children:[v.jsx("div",{className:i.errorIcon,children:v.jsx(M.Icon,{icon:"fluent:error-circle-12-regular",width:"32",height:"32",color:w.tokens.colorStatusDangerForeground1})}),v.jsx(w.Body1,{children:n})]})}),[n,i.errorContainer,i.errorIcon]);return H.useEffect(()=>{switch(t){case Y.SUCCESS:a(v.jsx(E.CheckmarkCircle32Regular,{primaryFill:w.tokens.colorStatusSuccessForeground1}));break;case Y.INFO:a(v.jsx(E.Info32Regular,{primaryFill:w.tokens.colorStatusWarningForeground1}))}},[t]),t===Y.ERROR?v.jsx(s,{}):v.jsx(v.Fragment,{children:v.jsxs("div",{className:i.root,children:[o,v.jsx(w.Body1Strong,{children:n}),r]})})},Ei=({item:e,onSelectedItem:t})=>w.useIsOverflowItemVisible(e.id)?null:v.jsx(w.MenuItem,{icon:e.icon,onClick:()=>t(e.id),children:v.jsx("div",{children:e.name})},e.id),Pi=({items:e,onSelectedItem:t,theme:r})=>{const{ref:n,overflowCount:i,isOverflowing:o}=w.useOverflowMenu(),a=H.useMemo(()=>E.bundleIcon(E.MoreHorizontalFilled,E.MoreHorizontalRegular),[]);return o?v.jsx(w.IdPrefixProvider,{value:"menu-over-",children:v.jsx(w.FluentProvider,{theme:r,children:v.jsxs(w.Menu,{children:[v.jsx(w.MenuTrigger,{disableButtonEnhancement:!0,children:v.jsx(w.MenuButton,{appearance:"transparent",ref:n,icon:v.jsx(a,{}),"aria-label":`${i} more options`,role:"button"})}),v.jsx(w.MenuPopover,{children:v.jsx(w.MenuList,{children:e.map(e=>v.jsx(Ei,{item:e,onSelectedItem:t},e.id))})})]})})}):null},Mi=({id:e,children:t})=>w.useIsOverflowItemVisible(e)?null:v.jsx(w.MenuItem,{children:t}),Ii=x.memo(({items:e,open:t=!0,defaultOpen:r,drawerType:n="inline",size:i="small",appItem:o,header:a,footer:s,selectedKey:l,defaultSelectedKey:c,selectedCategoryKey:u,onNavigate:h,multiple:d=!0,density:p="medium",defaultOpenCategories:g,openCategories:f,onCategoryToggle:m,className:y,style:b})=>{const C=x.useMemo(()=>{const t=new Map,r=e=>{for(const n of e)t.set(n.key,n),n.children&&r(n.children)};return r(e),t},[e]),k=x.useCallback(e=>t=>{e.href&&t.preventDefault(),null==h||h(e.key,e.href)},[h]),S=x.useCallback((e,t)=>{if(!h)return;const r=C.get(t.value);r&&h(t.value,r.href)},[h,C]),_=x.useCallback((e,t)=>{null==m||m(t.value)},[m]),T=e=>v.jsx(w.NavItem,{value:e.key,href:e.href,icon:e.icon,onClick:k(e),children:e.name},e.key),A=e=>v.jsxs(w.NavCategory,{value:e.key,children:[v.jsx(w.NavCategoryItem,{icon:e.icon,children:e.name}),v.jsx(w.NavSubItemGroup,{children:e.children.map(e=>e.icon?v.jsx(w.NavItem,{value:e.key,href:e.href,icon:e.icon,onClick:k(e),children:e.name},e.key):v.jsx(w.NavSubItem,{value:e.key,href:e.href,onClick:k(e),children:e.name},e.key))})]},e.key),E=x.useMemo(()=>({flexShrink:0,...b}),[b]);return v.jsxs(w.NavDrawer,{open:t,defaultOpen:r,type:n,size:i,className:y,style:E,selectedValue:l,defaultSelectedValue:c,selectedCategoryValue:u,multiple:d,density:p,defaultOpenCategories:g,openCategories:f,onNavItemSelect:S,onNavCategoryItemToggle:_,children:[void 0!==a&&v.jsx(w.NavDrawerHeader,{children:a}),v.jsxs(w.NavDrawerBody,{children:[o&&(o.href?v.jsx(w.AppItem,{icon:o.icon,href:o.href,children:o.name}):v.jsx(w.AppItemStatic,{icon:o.icon,children:o.name})),e.map(e=>e.isSectionHeader&&e.children&&e.children.length>0?(e=>v.jsxs(x.Fragment,{children:[v.jsx(w.NavSectionHeader,{children:e.name}),e.children.map(e=>e.children&&e.children.length>0?A(e):T(e))]},e.key))(e):e.children&&e.children.length>0?A(e):T(e))]}),void 0!==s&&v.jsx(w.NavDrawerFooter,{children:s})]})});Ii.displayName="Navigation";const Bi=e=>({videoPlayerContainer:T.css({position:"relative",width:e.width,height:e.height}),reactPlayer:T.css({position:"absolute",top:0,left:0,width:"100%",height:"100%"}),playButton:T.css({position:"absolute",left:"50%",top:"50%",zIndex:1,userSelect:"none"})}),Li=H.createContext(null);function ji(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!ji(e[r],t[r]))return!1;return!0}if(Array.isArray(t))return!1;if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r){if(!t.hasOwnProperty(i))return!1;if(!ji(e[i],t[i]))return!1}return!0}return!1}function Ni(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function Di(e,t){const r=t.viewState||t,n={};if("longitude"in r&&"latitude"in r&&(r.longitude!==e.center.lng||r.latitude!==e.center.lat)){const t=e.center.constructor;n.center=new t(r.longitude,r.latitude)}return"zoom"in r&&r.zoom!==e.zoom&&(n.zoom=r.zoom),"bearing"in r&&r.bearing!==e.bearing&&(n.bearing=r.bearing),"pitch"in r&&r.pitch!==e.pitch&&(n.pitch=r.pitch),r.padding&&e.padding&&!ji(r.padding,e.padding)&&(n.padding=r.padding),n}const Oi=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function zi(e){if(!e)return null;if("string"==typeof e)return e;if("toJS"in e&&(e=e.toJS()),!e.layers)return e;const t={};for(const n of e.layers)t[n.id]=n;const r=e.layers.map(e=>{let r=null;"interactive"in e&&(r=Object.assign({},e),delete r.interactive);const n=t[e.ref];if(n){r=r||Object.assign({},e),delete r.ref;for(const e of Oi)e in n&&(r[e]=n[e])}return r||e});return{...e,layers:r}}const Fi={version:8,sources:{},layers:[]},Ri={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},$i={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},Vi={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},Wi=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],qi=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class Hi{constructor(e,t,r){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=e=>{const t=this.props[Vi[e.type]];t?t(e):"error"===e.type&&console.error(e.error)},this._onCameraEvent=e=>{if(this._internalUpdate)return;e.viewState=this._propsedCameraUpdate||Ni(this._map.transform);const t=this.props[$i[e.type]];t&&t(e)},this._onCameraUpdate=e=>this._internalUpdate?e:(this._propsedCameraUpdate=Ni(e),Di(e,this.props)),this._onPointerEvent=e=>{"mousemove"!==e.type&&"mouseout"!==e.type||this._updateHover(e);const t=this.props[Ri[e.type]];t&&(this.props.interactiveLayerIds&&"mouseover"!==e.type&&"mouseout"!==e.type&&(e.features=this._hoveredFeatures||this._queryRenderedFeatures(e.point)),t(e),delete e.features)},this._MapClass=e,this.props=t,this._initialize(r)}get map(){return this._map}setProps(e){const t=this.props;this.props=e;const r=this._updateSettings(e,t),n=this._updateSize(e),i=this._updateViewState(e);this._updateStyle(e,t),this._updateStyleComponents(e),this._updateHandlers(e,t),(r||n||i&&!this._map.isMoving())&&this.redraw()}static reuse(e,t){const r=Hi.savedMaps.pop();if(!r)return null;const n=r.map,i=n.getContainer();for(t.className=i.className;i.childNodes.length>0;)t.appendChild(i.childNodes[0]);n._container=t;const o=n._resizeObserver;o&&(o.disconnect(),o.observe(t)),r.setProps({...e,styleDiffing:!1}),n.resize();const{initialViewState:a}=e;return a&&(a.bounds?n.fitBounds(a.bounds,{...a.fitBoundsOptions,duration:0}):r._updateViewState(a)),n.isStyleLoaded()?n.fire("load"):n.once("style.load",()=>n.fire("load")),n._update(),r}_initialize(e){const{props:t}=this,{mapStyle:r=Fi}=t,n={...t,...t.initialViewState,container:e,style:zi(r)},i=n.initialViewState||n.viewState||n;if(Object.assign(n,{center:[i.longitude||0,i.latitude||0],zoom:i.zoom||0,pitch:i.pitch||0,bearing:i.bearing||0}),t.gl){const e=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=e,t.gl)}const o=new this._MapClass(n);i.padding&&o.setPadding(i.padding),t.cursor&&(o.getCanvas().style.cursor=t.cursor),o.transformCameraUpdate=this._onCameraUpdate,o.on("style.load",()=>{var e;this._styleComponents={light:o.getLight(),sky:o.getSky(),projection:null==(e=o.getProjection)?void 0:e.call(o),terrain:o.getTerrain()},this._updateStyleComponents(this.props)}),o.on("sourcedata",()=>{this._updateStyleComponents(this.props)});for(const a in Ri)o.on(a,this._onPointerEvent);for(const a in $i)o.on(a,this._onCameraEvent);for(const a in Vi)o.on(a,this._onEvent);this._map=o}recycle(){const e=this.map.getContainer().querySelector("[mapboxgl-children]");null==e||e.remove(),Hi.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const e=this._map;e.style&&(e._frame&&(e._frame.cancel(),e._frame=null),e._render())}_updateSize(e){const{viewState:t}=e;if(t){const e=this._map;if(t.width!==e.transform.width||t.height!==e.transform.height)return e.resize(),!0}return!1}_updateViewState(e){const t=this._map,r=t.transform;if(!t.isMoving()){const n=Di(r,e);if(Object.keys(n).length>0)return this._internalUpdate=!0,t.jumpTo(n),this._internalUpdate=!1,!0}return!1}_updateSettings(e,t){const r=this._map;let n=!1;for(const i of Wi)if(i in e&&!ji(e[i],t[i])){n=!0;const t=r[`set${i[0].toUpperCase()}${i.slice(1)}`];null==t||t.call(r,e[i])}return n}_updateStyle(e,t){if(e.cursor!==t.cursor&&(this._map.getCanvas().style.cursor=e.cursor||""),e.mapStyle!==t.mapStyle){const{mapStyle:t=Fi,styleDiffing:r=!0}=e,n={diff:r};"localIdeographFontFamily"in e&&(n.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(zi(t),n)}}_updateStyleComponents({light:e,projection:t,sky:r,terrain:n}){var i,o;const a=this._map,s=this._styleComponents;a.style._loaded&&(e&&!ji(e,s.light)&&(s.light=e,a.setLight(e)),t&&!ji(t,s.projection)&&t!==(null==(i=s.projection)?void 0:i.type)&&(s.projection="string"==typeof t?{type:t}:t,null==(o=a.setProjection)||o.call(a,s.projection)),r&&!ji(r,s.sky)&&(s.sky=r,a.setSky(r)),void 0===n||ji(n,s.terrain)||n&&!a.getSource(n.source)||(s.terrain=n,a.setTerrain(n)))}_updateHandlers(e,t){const r=this._map;for(const n of qi){const i=e[n]??!0;ji(i,t[n]??!0)||(i?r[n].enable(i):r[n].disable())}}_queryRenderedFeatures(e){const t=this._map,{interactiveLayerIds:r=[]}=this.props;try{return t.queryRenderedFeatures(e,{layers:r.filter(t.getLayer.bind(t))})}catch{return[]}}_updateHover(e){var t;const{props:r}=this;if(r.interactiveLayerIds&&(r.onMouseMove||r.onMouseEnter||r.onMouseLeave)){const r=e.type,n=(null==(t=this._hoveredFeatures)?void 0:t.length)>0,i=this._queryRenderedFeatures(e.point),o=i.length>0;!o&&n&&(e.type="mouseleave",this._onPointerEvent(e)),this._hoveredFeatures=i,o&&!n&&(e.type="mouseenter",this._onPointerEvent(e)),e.type=r}else this._hoveredFeatures=null}}Hi.savedMaps=[];const Ui=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Gi(e){if(!e)return null;const t=e.map,r={getMap:()=>t};for(const n of function(e){const t=new Set;let r=e;for(;r;){for(const n of Object.getOwnPropertyNames(r))"_"!==n[0]&&"function"==typeof e[n]&&"fire"!==n&&"setEventedParent"!==n&&t.add(n);r=Object.getPrototypeOf(r)}return Array.from(t)}(t))n in r||Ui.includes(n)||(r[n]=t[n].bind(t));return r}const Xi="undefined"!=typeof document?x.useLayoutEffect:x.useEffect;const Ji=H.createContext(null);const Yi=H.forwardRef(function(e,t){const r=x.useContext(Li),[n,i]=x.useState(null),o=x.useRef(),{current:a}=x.useRef({mapLib:null,map:null});x.useEffect(()=>{const t=e.mapLib;let n,s=!0;return Promise.resolve(t||Promise.resolve().then(()=>require("./maplibre-gl-BOvA2Ll0.cjs")).then(e=>e.maplibreGl)).then(t=>{if(!s)return;if(!t)throw new Error("Invalid mapLib");const l="Map"in t?t:t.default;if(!l.Map)throw new Error("Invalid mapLib");!function(e,t){const{RTLTextPlugin:r,maxParallelImageRequests:n,workerCount:i,workerUrl:o}=t;if(r&&e.getRTLTextPluginStatus&&"unavailable"===e.getRTLTextPluginStatus()){const{pluginUrl:t,lazy:n=!0}="string"==typeof r?{pluginUrl:r}:r;e.setRTLTextPlugin(t,e=>{e&&console.error(e)},n)}void 0!==n&&e.setMaxParallelImageRequests(n),void 0!==i&&e.setWorkerCount(i),void 0!==o&&e.setWorkerUrl(o)}(l,e),e.reuseMaps&&(n=Hi.reuse(e,o.current)),n||(n=new Hi(l.Map,e,o.current)),a.map=Gi(n),a.mapLib=l,i(n),null==r||r.onMapMount(a.map,e.id)}).catch(t=>{const{onError:r}=e;r?r({type:"error",target:null,originalEvent:null,error:t}):console.error(t)}),()=>{s=!1,n&&(null==r||r.onMapUnmount(e.id),e.reuseMaps?n.recycle():n.destroy())}},[]),Xi(()=>{n&&n.setProps(e)}),x.useImperativeHandle(t,()=>a.map,[n]);const s=x.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]);return H.createElement("div",{id:e.id,ref:o,style:s},n&&H.createElement(Ji.Provider,{value:a},H.createElement("div",{"mapboxgl-children":"",style:{height:"100%"}},e.children)))}),Zi=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Ki(e,t){if(!e||!t)return;const r=e.style;for(const n in t){const e=t[n];Number.isFinite(e)&&!Zi.test(n)?r[n]=`${e}px`:r[n]=e}}function Qi(e,t){if(e===t)return null;const r=eo(e),n=eo(t),i=[];for(const o of n)r.has(o)||i.push(o);for(const o of r)n.has(o)||i.push(o);return 0===i.length?null:i}function eo(e){return new Set(e?e.trim().split(/\s+/):[])}const to=x.memo(x.forwardRef((e,t)=>{const{map:r,mapLib:n}=x.useContext(Ji),i=x.useRef({props:e}),o=x.useMemo(()=>{let t=!1;H.Children.forEach(e.children,e=>{e&&(t=!0)});const r={...e,element:t?document.createElement("div"):void 0},a=new n.Marker(r);return a.setLngLat([e.longitude,e.latitude]),a.getElement().addEventListener("click",e=>{var t,r;null==(r=(t=i.current.props).onClick)||r.call(t,{type:"click",target:a,originalEvent:e})}),a.on("dragstart",e=>{var t,r;const n=e;n.lngLat=o.getLngLat(),null==(r=(t=i.current.props).onDragStart)||r.call(t,n)}),a.on("drag",e=>{var t,r;const n=e;n.lngLat=o.getLngLat(),null==(r=(t=i.current.props).onDrag)||r.call(t,n)}),a.on("dragend",e=>{var t,r;const n=e;n.lngLat=o.getLngLat(),null==(r=(t=i.current.props).onDragEnd)||r.call(t,n)}),a},[]);x.useEffect(()=>(o.addTo(r.getMap()),()=>{o.remove()}),[]);const{longitude:a,latitude:s,offset:l,style:c,draggable:u=!1,popup:h=null,rotation:d=0,rotationAlignment:p="auto",pitchAlignment:g="auto"}=e;x.useEffect(()=>{Ki(o.getElement(),c)},[c]),x.useImperativeHandle(t,()=>o,[]);const f=i.current.props;o.getLngLat().lng===a&&o.getLngLat().lat===s||o.setLngLat([a,s]),l&&!function(e,t){const r=Array.isArray(e)?e[0]:e?e.x:0,n=Array.isArray(e)?e[1]:e?e.y:0,i=Array.isArray(t)?t[0]:t?t.x:0,o=Array.isArray(t)?t[1]:t?t.y:0;return r===i&&n===o}(o.getOffset(),l)&&o.setOffset(l),o.isDraggable()!==u&&o.setDraggable(u),o.getRotation()!==d&&o.setRotation(d),o.getRotationAlignment()!==p&&o.setRotationAlignment(p),o.getPitchAlignment()!==g&&o.setPitchAlignment(g),o.getPopup()!==h&&o.setPopup(h);const m=Qi(f.className,e.className);if(m)for(const y of m)o.toggleClassName(y);return i.current.props=e,P.createPortal(e.children,o.getElement())}));function ro(e,t,r,n){const i=x.useContext(Ji),o=x.useMemo(()=>e(i),[]);return x.useEffect(()=>{const e=t,r=null,n="function"==typeof t?t:null,{map:a}=i;return a.hasControl(o)||(a.addControl(o,null==e?void 0:e.position),r&&r(i)),()=>{n&&n(i),a.hasControl(o)&&a.removeControl(o)}},[]),o}x.memo(x.forwardRef((e,t)=>{const{map:r,mapLib:n}=x.useContext(Ji),i=x.useMemo(()=>document.createElement("div"),[]),o=x.useRef({props:e}),a=x.useMemo(()=>{const t={...e},r=new n.Popup(t);return r.setLngLat([e.longitude,e.latitude]),r.once("open",e=>{var t,r;null==(r=(t=o.current.props).onOpen)||r.call(t,e)}),r},[]);if(x.useEffect(()=>{const e=e=>{var t,r;null==(r=(t=o.current.props).onClose)||r.call(t,e)};return a.on("close",e),a.setDOMContent(i).addTo(r.getMap()),()=>{a.off("close",e),a.isOpen()&&a.remove()}},[]),x.useEffect(()=>{Ki(a.getElement(),e.style)},[e.style]),x.useImperativeHandle(t,()=>a,[]),a.isOpen()){const t=o.current.props;a.getLngLat().lng===e.longitude&&a.getLngLat().lat===e.latitude||a.setLngLat([e.longitude,e.latitude]),e.offset&&!ji(t.offset,e.offset)&&a.setOffset(e.offset),t.anchor===e.anchor&&t.maxWidth===e.maxWidth||(a.options.anchor=e.anchor,a.setMaxWidth(e.maxWidth));const r=Qi(t.className,e.className);if(r)for(const e of r)a.toggleClassName(e);o.current.props=e}return P.createPortal(e.children,i)})),x.memo(function(e){const t=ro(({mapLib:t})=>new t.AttributionControl(e),{position:e.position});return x.useEffect(()=>{Ki(t._container,e.style)},[e.style]),null}),x.memo(function(e){const t=ro(({mapLib:t})=>new t.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return x.useEffect(()=>{Ki(t._controlContainer,e.style)},[e.style]),null}),x.memo(x.forwardRef(function(e,t){const r=x.useRef({props:e}),n=ro(({mapLib:t})=>{const n=new t.GeolocateControl(e),i=n._setupUI;return n._setupUI=()=>{n._container.hasChildNodes()||i()},n.on("geolocate",e=>{var t,n;null==(n=(t=r.current.props).onGeolocate)||n.call(t,e)}),n.on("error",e=>{var t,n;null==(n=(t=r.current.props).onError)||n.call(t,e)}),n.on("outofmaxbounds",e=>{var t,n;null==(n=(t=r.current.props).onOutOfMaxBounds)||n.call(t,e)}),n.on("trackuserlocationstart",e=>{var t,n;null==(n=(t=r.current.props).onTrackUserLocationStart)||n.call(t,e)}),n.on("trackuserlocationend",e=>{var t,n;null==(n=(t=r.current.props).onTrackUserLocationEnd)||n.call(t,e)}),n},{position:e.position});return r.current.props=e,x.useImperativeHandle(t,()=>n,[]),x.useEffect(()=>{Ki(n._container,e.style)},[e.style]),null})),x.memo(function(e){const t=ro(({mapLib:t})=>new t.NavigationControl(e),{position:e.position});return x.useEffect(()=>{Ki(t._container,e.style)},[e.style]),null}),x.memo(function(e){const t=ro(({mapLib:t})=>new t.ScaleControl(e),{position:e.position}),r=x.useRef(e),n=r.current;r.current=e;const{style:i}=e;return void 0!==e.maxWidth&&e.maxWidth!==n.maxWidth&&(t.options.maxWidth=e.maxWidth),void 0!==e.unit&&e.unit!==n.unit&&t.setUnit(e.unit),x.useEffect(()=>{Ki(t._container,i)},[i]),null}),x.memo(function(e){const t=ro(({mapLib:t})=>new t.TerrainControl(e),{position:e.position});return x.useEffect(()=>{Ki(t._container,e.style)},[e.style]),null}),x.memo(function(e){const t=ro(({mapLib:t})=>new t.LogoControl(e),{position:e.position});return x.useEffect(()=>{Ki(t._container,e.style)},[e.style]),null});const no="spteck-react-controls-maplibre-styles",io=T.css`
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 16px;
|
|
28
|
+
right: 16px;
|
|
29
|
+
z-index: 2;
|
|
30
|
+
background: ${w.tokens.colorNeutralBackground1};
|
|
31
|
+
border-radius: 8px;
|
|
32
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
|
|
33
|
+
padding: 4px;
|
|
34
|
+
display: flex;
|
|
35
|
+
gap: 8px;
|
|
36
|
+
`,oo=T.css`
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
`,ao=T.css`
|
|
39
|
+
min-width: 32px;
|
|
40
|
+
min-height: 32px;
|
|
41
|
+
${w.shorthands.padding("4px")}
|
|
42
|
+
`,so=({mapRef:e,initialViewState:t={longitude:0,latitude:20,zoom:1},vertical:r=!0})=>{const n=H.useCallback(()=>{var t;null==(t=e.current)||t.getMap().zoomIn()},[e]),i=H.useCallback(()=>{var t;null==(t=e.current)||t.getMap().zoomOut()},[e]),o=H.useCallback(()=>{var r;null==(r=e.current)||r.flyTo({center:[t.longitude,t.latitude],zoom:t.zoom,essential:!0})},[e,t]),a=b.useWorldMapStrings();return v.jsxs("div",{className:r?`${io} ${oo}`:io,children:[v.jsx(w.Tooltip,{content:a.zoomIn,relationship:"label",children:v.jsx(w.Button,{appearance:"subtle",icon:v.jsx(E.ZoomIn24Regular,{}),"aria-label":a.zoomIn,className:ao,onClick:n})}),v.jsx(w.Tooltip,{content:a.zoomOut,relationship:"label",children:v.jsx(w.Button,{appearance:"subtle",icon:v.jsx(E.ZoomOut24Regular,{}),"aria-label":a.zoomOut,className:ao,onClick:i})}),v.jsx(w.Tooltip,{content:a.resetMap,relationship:"label",children:v.jsx(w.Button,{appearance:"subtle",icon:v.jsx(E.ArrowReset24Regular,{}),"aria-label":a.reset,className:ao,onClick:o})})]})},lo=T.css`
|
|
43
|
+
width: 32px;
|
|
44
|
+
height: 20px;
|
|
45
|
+
border-radius: 4px;
|
|
46
|
+
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
|
|
47
|
+
border: 1px solid #ddd;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
display: block;
|
|
50
|
+
margin: 0 auto;
|
|
51
|
+
`,co=T.css`
|
|
52
|
+
padding: 12px;
|
|
53
|
+
min-width: 120px;
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
align-items: center;
|
|
57
|
+
gap: 6px;
|
|
58
|
+
`,uo=T.css`
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
text-align: center;
|
|
61
|
+
margin-top: 6px;
|
|
62
|
+
`,ho=({data:e,flagClass:t,onClick:r})=>v.jsx(w.Tooltip,{relationship:"label",content:v.jsxs(w.Card,{className:co,children:[v.jsx("img",{src:e.imageUrl,alt:e.name,className:lo}),v.jsx(w.Text,{className:uo,children:e.name})]}),withArrow:!0,positioning:"above",children:v.jsx("img",{src:e.imageUrl,alt:e.name,className:t||lo,onClick:()=>null==r?void 0:r(e)})});var po=(e=>(e[e.SharePoint=0]="SharePoint",e[e.Teams=1]="Teams",e[e.TeamsDark=2]="TeamsDark",e[e.TeamsHighContrast=3]="TeamsHighContrast",e))(po||{});const go=e=>new j.HostConfig({fontFamily:e.fontFamilyBase,separator:{lineThickness:1,lineColor:e.colorNeutralStroke2},containerStyles:{default:{backgroundColor:e.colorNeutralBackground1,foregroundColors:{default:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},dark:{default:e.colorNeutralForeground3,subtle:e.colorNeutralForeground4},light:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},accent:{default:e.colorBrandForeground1,subtle:e.colorBrandForeground2},attention:{default:e.colorPaletteRedBackground3,subtle:e.colorPaletteRedBackground2},good:{default:e.colorPaletteGreenBackground3,subtle:e.colorPaletteGreenBackground2},warning:{default:e.colorPaletteYellowBackground3,subtle:e.colorPaletteYellowBackground2}}},emphasis:{backgroundColor:e.colorNeutralBackground3,foregroundColors:{default:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},dark:{default:e.colorNeutralForeground3,subtle:e.colorNeutralForeground4},light:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},accent:{default:e.colorBrandForeground1,subtle:e.colorBrandForeground2},attention:{default:e.colorPaletteRedBackground3,subtle:e.colorPaletteRedBackground2},good:{default:e.colorPaletteGreenBackground3,subtle:e.colorPaletteGreenBackground2},warning:{default:e.colorPaletteYellowBackground3,subtle:e.colorPaletteYellowBackground2}}}},inputs:{label:{requiredInputs:{weight:"bold"},optionalInputs:{weight:"bold"}},errorMessage:{color:"attention",weight:"bold"}},actions:{buttonSpacing:10,actionAlignment:"right"}}),fo="fluentUITheme",mo=e=>{let t=e.hostCapabilities.getCustomProperty(fo);return t||(t=w.webLightTheme),t},yo=(e,t)=>{let r;switch(e){case po.SharePoint:r={theme:t,hostConfig:go(t)};break;case po.Teams:r={theme:w.teamsLightTheme,hostConfig:go(w.teamsLightTheme)};break;case po.TeamsDark:r={theme:w.teamsDarkTheme,hostConfig:go(w.teamsDarkTheme)};break;case po.TeamsHighContrast:r={theme:w.teamsHighContrastTheme,hostConfig:go(w.teamsHighContrastTheme)};break;default:r={theme:t,hostConfig:go(t)}}var n,i;return r.hostConfig.cssClassNamePrefix=`ach${Math.random().toString().replace(/\./g,"")}`,n=r.hostConfig,i=r.theme,n.hostCapabilities.setCustomProperty(fo,i),((e,t)=>{const r=N.create();r.put(`.${t}-ac-container:focus`,{outline:"none !important"}),r.put(`.${t}-ac-adaptiveCard:focus`,{outline:"none !important"}),r.put(`.${t}-ac-pushButton`,{overflow:"hidden",textOverflow:"ellipsis",textAlign:"center",verticalAlign:"middle",cursor:"pointer",fontFamily:"inherit",fontSize:"14px",fontWeight:"600",padding:"4px 10px 5px 10px",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",userSelect:"none",height:"32px",borderRadius:"2px",border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground1,color:e.colorNeutralForeground1}),r.put(`.${t}-ac-pushButton:hover`,{border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground2,color:e.colorNeutralForeground2}),r.put(`.${t}-ac-pushButton:active`,{border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground3,color:e.colorNeutralForeground3}),r.put(`.${t}-ac-pushButton-disabled`,{overflow:"hidden",textOverflow:"ellipsis",textAlign:"center",verticalAlign:"middle",cursor:"pointer",fontFamily:"inherit",fontSize:"14px",fontWeight:"600",padding:"4px 10px 5px 10px",WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",userSelect:"none",height:"32px",borderRadius:"2px",border:`1px solid ${e.colorNeutralStrokeDisabled}`,backgroundColor:e.colorNeutralBackgroundDisabled,color:e.colorNeutralForegroundDisabled}),r.put(`.${t}-ac-ctrl-overlay`,{fontFamily:e.fontFamilyBase,position:"absolute",left:"0",top:"0",zIndex:"10000"}),r.put(`.${t}-ac-ctrl`,{boxSizing:"border-box",fontSize:"14px",fontWeight:"normal"}),r.put(`.${t}-ac-ctrl-popup-container`,{backgroundColor:e.colorNeutralBackground1,position:"absolute",overflowY:"auto",boxShadow:"0px 3.2px 7.2px rgba(0,0,0,0.13), 0px 0.6px 1.8px rgba(0,0,0,0.11)",borderRadius:"2px"}),r.put(`.${t}-ac-ctrl-popup-container:focus`,{outline:"0"}),r.put(`.${t}-ac-ctrl-slide`,{animationDuration:"0.5s",animationTimingFunction:"cubic-bezier(0.1, 0.9, 0.2, 1)"}),r.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideTopToBottom`,{animationName:"fadeIn, slideTopToBottom"}),r.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideBottomToTop`,{animationName:"fadeIn, slideBottomToTop"}),r.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideLeftToRight`,{animationName:"fadeIn, slideLeftToRight"}),r.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideRightToLeft`,{animationName:"fadeIn, slideRightToLeft"}),r.put(`.${t}-ac-ctrl-dropdown-item`,{width:"100%",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",padding:"0px 12px",lineHeight:"30px",cursor:"pointer",backgroundColor:e.colorNeutralBackground1,color:e.colorNeutralForeground1}),r.put(`.${t}-ac-ctrl-dropdown-item:hover`,{backgroundColor:e.colorNeutralBackground2,color:e.colorNeutralForeground2}),r.put(`.${t}-ac-ctrl-dropdown-item:focus`,{outline:"0",backgroundColor:e.colorNeutralBackground3,color:e.colorNeutralForeground3}),r.put(`.${t}-ac-ctrl-dropdown-item-disabled`,{width:"100%",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",padding:"0px 12px",lineHeight:"30px",cursor:"pointer",backgroundColor:e.colorNeutralBackgroundDisabled,color:e.colorNeutralForegroundDisabled})})(r.theme,r.hostConfig.cssClassNamePrefix),r};let bo;try{const e=["react-dom","client"].join("/"),t=require(e);"function"==typeof t.createRoot&&(bo=t.createRoot)}catch{}function vo(e){return bo?bo(e):{render(t){U.render(t,e)},unmount(){U.unmountComponentAtNode(e)}}}var xo={},Co={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ActionRole=e.CarouselInteractionEvent=e.LogLevel=e.RefreshMode=e.TypeErrorType=e.ContainerFitStatus=e.ValidationEvent=e.ValidationPhase=e.InputLabelPosition=e.InputTextStyle=e.ActionIconPlacement=e.FillMode=e.Orientation=e.ShowCardActionMode=e.ImageStyle=e.ActionAlignment=e.VerticalAlignment=e.HorizontalAlignment=e.TextColor=e.Spacing=e.FontType=e.TextWeight=e.InputStyle=e.TextSize=e.SizeUnit=e.ImageSetPresentationStyle=e.ImageSize=e.Size=e.ActionMode=e.ActionStyle=e.ContainerStyle=void 0;var t=function(){function e(){}return e.Default="default",e.Emphasis="emphasis",e.Accent="accent",e.Good="good",e.Attention="attention",e.Warning="warning",e}();e.ContainerStyle=t;var r=function(){function e(){}return e.Default="default",e.Positive="positive",e.Destructive="destructive",e}();e.ActionStyle=r;var n,i,o,a,s,l,c,u,h,d,p,g,f,m,y,b,v,x,C,w,k,S,_,T,A,E,P,M,I=function(){function e(){}return e.Primary="primary",e.Secondary="secondary",e}();e.ActionMode=I,(n=e.Size||(e.Size={}))[n.Auto=0]="Auto",n[n.Stretch=1]="Stretch",n[n.Small=2]="Small",n[n.Medium=3]="Medium",n[n.Large=4]="Large",(i=e.ImageSize||(e.ImageSize={}))[i.Small=0]="Small",i[i.Medium=1]="Medium",i[i.Large=2]="Large",(o=e.ImageSetPresentationStyle||(e.ImageSetPresentationStyle={}))[o.Default=0]="Default",o[o.Stacked=1]="Stacked",(a=e.SizeUnit||(e.SizeUnit={}))[a.Weight=0]="Weight",a[a.Pixel=1]="Pixel",(s=e.TextSize||(e.TextSize={}))[s.Small=0]="Small",s[s.Default=1]="Default",s[s.Medium=2]="Medium",s[s.Large=3]="Large",s[s.ExtraLarge=4]="ExtraLarge",(l=e.InputStyle||(e.InputStyle={}))[l.RevealOnHover=0]="RevealOnHover",l[l.Default=1]="Default",(c=e.TextWeight||(e.TextWeight={}))[c.Lighter=0]="Lighter",c[c.Default=1]="Default",c[c.Bolder=2]="Bolder",(u=e.FontType||(e.FontType={}))[u.Default=0]="Default",u[u.Monospace=1]="Monospace",(h=e.Spacing||(e.Spacing={}))[h.None=0]="None",h[h.Small=1]="Small",h[h.Default=2]="Default",h[h.Medium=3]="Medium",h[h.Large=4]="Large",h[h.ExtraLarge=5]="ExtraLarge",h[h.Padding=6]="Padding",(d=e.TextColor||(e.TextColor={}))[d.Default=0]="Default",d[d.Dark=1]="Dark",d[d.Light=2]="Light",d[d.Accent=3]="Accent",d[d.Good=4]="Good",d[d.Warning=5]="Warning",d[d.Attention=6]="Attention",(p=e.HorizontalAlignment||(e.HorizontalAlignment={}))[p.Left=0]="Left",p[p.Center=1]="Center",p[p.Right=2]="Right",(g=e.VerticalAlignment||(e.VerticalAlignment={}))[g.Top=0]="Top",g[g.Center=1]="Center",g[g.Bottom=2]="Bottom",(f=e.ActionAlignment||(e.ActionAlignment={}))[f.Left=0]="Left",f[f.Center=1]="Center",f[f.Right=2]="Right",f[f.Stretch=3]="Stretch",(m=e.ImageStyle||(e.ImageStyle={}))[m.Default=0]="Default",m[m.Person=1]="Person",(y=e.ShowCardActionMode||(e.ShowCardActionMode={}))[y.Inline=0]="Inline",y[y.Popup=1]="Popup",(b=e.Orientation||(e.Orientation={}))[b.Horizontal=0]="Horizontal",b[b.Vertical=1]="Vertical",(v=e.FillMode||(e.FillMode={}))[v.Cover=0]="Cover",v[v.RepeatHorizontally=1]="RepeatHorizontally",v[v.RepeatVertically=2]="RepeatVertically",v[v.Repeat=3]="Repeat",(x=e.ActionIconPlacement||(e.ActionIconPlacement={}))[x.LeftOfTitle=0]="LeftOfTitle",x[x.AboveTitle=1]="AboveTitle",(C=e.InputTextStyle||(e.InputTextStyle={}))[C.Text=0]="Text",C[C.Tel=1]="Tel",C[C.Url=2]="Url",C[C.Email=3]="Email",C[C.Password=4]="Password",(w=e.InputLabelPosition||(e.InputLabelPosition={}))[w.Inline=0]="Inline",w[w.Above=1]="Above",(k=e.ValidationPhase||(e.ValidationPhase={}))[k.Parse=0]="Parse",k[k.ToJSON=1]="ToJSON",k[k.Validation=2]="Validation",(S=e.ValidationEvent||(e.ValidationEvent={}))[S.Hint=0]="Hint",S[S.ActionTypeNotAllowed=1]="ActionTypeNotAllowed",S[S.CollectionCantBeEmpty=2]="CollectionCantBeEmpty",S[S.Deprecated=3]="Deprecated",S[S.ElementTypeNotAllowed=4]="ElementTypeNotAllowed",S[S.InteractivityNotAllowed=5]="InteractivityNotAllowed",S[S.InvalidPropertyValue=6]="InvalidPropertyValue",S[S.MissingCardType=7]="MissingCardType",S[S.PropertyCantBeNull=8]="PropertyCantBeNull",S[S.TooManyActions=9]="TooManyActions",S[S.UnknownActionType=10]="UnknownActionType",S[S.UnknownElementType=11]="UnknownElementType",S[S.UnsupportedCardVersion=12]="UnsupportedCardVersion",S[S.DuplicateId=13]="DuplicateId",S[S.UnsupportedProperty=14]="UnsupportedProperty",S[S.RequiredInputsShouldHaveLabel=15]="RequiredInputsShouldHaveLabel",S[S.RequiredInputsShouldHaveErrorMessage=16]="RequiredInputsShouldHaveErrorMessage",S[S.Other=17]="Other",(_=e.ContainerFitStatus||(e.ContainerFitStatus={}))[_.FullyInContainer=0]="FullyInContainer",_[_.Overflowing=1]="Overflowing",_[_.FullyOutOfContainer=2]="FullyOutOfContainer",(T=e.TypeErrorType||(e.TypeErrorType={}))[T.UnknownType=0]="UnknownType",T[T.ForbiddenType=1]="ForbiddenType",(A=e.RefreshMode||(e.RefreshMode={}))[A.Disabled=0]="Disabled",A[A.Manual=1]="Manual",A[A.Automatic=2]="Automatic",(E=e.LogLevel||(e.LogLevel={}))[E.Info=0]="Info",E[E.Warning=1]="Warning",E[E.Error=2]="Error",(P=e.CarouselInteractionEvent||(e.CarouselInteractionEvent={}))[P.NavigationNext=0]="NavigationNext",P[P.NavigationPrevious=1]="NavigationPrevious",P[P.Pagination=2]="Pagination",P[P.Autoplay=3]="Autoplay",(M=e.ActionRole||(e.ActionRole={}))[M.Button=0]="Button",M[M.Link=1]="Link",M[M.Tab=2]="Tab",M[M.Menu=3]="Menu",M[M.MenuItem=4]="MenuItem"}(Co);var wo={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UUID=e.SizeAndUnit=e.PaddingDefinition=e.SpacingDefinition=e.StringWithSubstitutions=e.ContentTypes=e.GlobalSettings=void 0;var t=Co,r=function(){function e(){}return e.useAdvancedTextBlockTruncation=!0,e.useAdvancedCardBottomTruncation=!1,e.useMarkdownInRadioButtonAndCheckbox=!0,e.allowMarkForTextHighlighting=!1,e.alwaysBleedSeparators=!1,e.enableFullJsonRoundTrip=!1,e.displayInputValidationErrors=!0,e.allowPreProcessingPropertyValues=!1,e.setTabIndexAtCardRoot=!0,e.enableFallback=!0,e.useWebkitLineClamp=!0,e.allowMoreThanMaxActionsInOverflowMenu=!1,e.removePaddingFromContainersWithBackgroundImage=!1,e.resetInputsDirtyStateAfterActionExecution=!0,e.applets={logEnabled:!0,logLevel:t.LogLevel.Error,maximumRetryAttempts:3,defaultTimeBetweenRetryAttempts:3e3,authPromptWidth:400,authPromptHeight:600,refresh:{mode:t.RefreshMode.Manual,timeBetweenAutomaticRefreshes:3e3,maximumConsecutiveAutomaticRefreshes:3,allowManualRefreshesAfterAutomaticRefreshes:!0}},e}();e.GlobalSettings=r,e.ContentTypes={applicationJson:"application/json",applicationXWwwFormUrlencoded:"application/x-www-form-urlencoded"};var n=function(){function t(){this._isProcessed=!1}return t.prototype.getReferencedInputs=function(e,t){if(!t)throw new Error("The referencedInputs parameter cannot be null.");if(this._original)for(var r=0,n=e;r<n.length;r++){var i=n[r];null!=new RegExp("\\{{2}("+i.id+").value\\}{2}","gi").exec(this._original)&&i.id&&(t[i.id]=i)}},t.prototype.substituteInputValues=function(t,r){if(this._processed=this._original,this._original)for(var n=/\{{2}([a-z0-9_$@]+).value\}{2}/gi,i=void 0;null!==(i=n.exec(this._original))&&this._processed;)for(var o=0,a=Object.keys(t);o<a.length;o++){var s=a[o];if(s.toLowerCase()===i[1].toLowerCase()){var l=t[s],c="";l.value&&(c=l.value),r===e.ContentTypes.applicationJson?c=(c=JSON.stringify(c)).slice(1,-1):r===e.ContentTypes.applicationXWwwFormUrlencoded&&(c=encodeURIComponent(c)),this._processed=this._processed.replace(i[0],c);break}}this._isProcessed=!0},t.prototype.getOriginal=function(){return this._original},t.prototype.get=function(){return this._isProcessed?this._processed:this._original},t.prototype.set=function(e){this._original=e,this._isProcessed=!1},t}();e.StringWithSubstitutions=n;var i=function(){return function(e,t,r,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=0),void 0===n&&(n=0),this.left=0,this.top=0,this.right=0,this.bottom=0,this.top=e,this.right=t,this.bottom=r,this.left=n}}();e.SpacingDefinition=i;var o=function(){return function(e,r,n,i){void 0===e&&(e=t.Spacing.None),void 0===r&&(r=t.Spacing.None),void 0===n&&(n=t.Spacing.None),void 0===i&&(i=t.Spacing.None),this.top=t.Spacing.None,this.right=t.Spacing.None,this.bottom=t.Spacing.None,this.left=t.Spacing.None,this.top=e,this.right=r,this.bottom=n,this.left=i}}();e.PaddingDefinition=o;var a=function(){function e(e,t){this.physicalSize=e,this.unit=t}return e.parse=function(r,n){void 0===n&&(n=!1);var i=new e(0,t.SizeUnit.Weight);if("number"==typeof r)return i.physicalSize=r,i;if("string"==typeof r){var o=/^([0-9]+)(px|\*)?$/g.exec(r),a=n?3:2;if(o&&o.length>=a)return i.physicalSize=parseInt(o[1]),3===o.length&&"px"===o[2]&&(i.unit=t.SizeUnit.Pixel),i}throw new Error("Invalid size: "+r)},e}();e.SizeAndUnit=a;
|
|
63
|
+
/**
|
|
64
|
+
* Fast UUID generator, RFC4122 version 4 compliant.
|
|
65
|
+
* @author Jeff Ward (jcward.com).
|
|
66
|
+
* @license MIT license
|
|
67
|
+
* @link http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/21963136#21963136
|
|
68
|
+
**/
|
|
69
|
+
var s=function(){function e(){}return e.generate=function(){var t=4294967295*Math.random()|0,r=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return e.lut[255&t]+e.lut[t>>8&255]+e.lut[t>>16&255]+e.lut[t>>24&255]+"-"+e.lut[255&r]+e.lut[r>>8&255]+"-"+e.lut[r>>16&15|64]+e.lut[r>>24&255]+"-"+e.lut[63&n|128]+e.lut[n>>8&255]+"-"+e.lut[n>>16&255]+e.lut[n>>24&255]+e.lut[255&i]+e.lut[i>>8&255]+e.lut[i>>16&255]+e.lut[i>>24&255]},e.initialize=function(){for(var t=0;t<256;t++)e.lut[t]=(t<16?"0":"")+t.toString(16)},e.lut=[],e}();e.UUID=s,s.initialize()}(wo);var ko,So={};Object.defineProperty(So,"__esModule",{value:!0}),So.debounce=So.addCancelSelectActionEventHandler=So.clearElementChildren=So.getScrollY=So.getScrollX=So.getFitStatus=So.truncate=So.truncateText=So.stringToCssColor=So.parseEnum=So.getEnumValueByName=So.parseBool=So.parseNumber=So.parseString=So.appendChild=So.generateUniqueId=So.isMobileOS=So.isInternetExplorer=void 0;var _o=Co,To=wo;function Ao(e,t){for(var r in e){var n=parseInt(r,10);if(n>=0){var i=e[r];if(i&&"string"==typeof i&&i.toLowerCase()===t.toLowerCase())return n}}}function Eo(e,t,r,n,i){var o=function(){return t-e.scrollHeight>=-1};if(!o()){for(var a=function(e){var t=[],r=Mo(e,-1);for(;r<e.length;)" "===e[r]&&t.push(r),r=Mo(e,r);return t}(r),s=0,l=a.length,c=0;s<l;){var u=Math.floor((s+l)/2);n(r,a[u]),o()?(c=a[u],s=u+1):l=u}if(n(r,c),i&&t-e.scrollHeight>=i-1){for(var h=Mo(r,c);h<r.length&&(n(r,h),o());)c=h,h=Mo(r,h);n(r,c)}}}So.isInternetExplorer=function(){return void 0!==window.document.documentMode},So.isMobileOS=function(){var e=window.navigator.userAgent;return!!e.match(/Android/i)||!!e.match(/iPad/i)||!!e.match(/iPhone/i)},So.generateUniqueId=function(){return"__ac-"+To.UUID.generate()},So.appendChild=function(e,t){t&&e.appendChild(t)},So.parseString=function(e,t){return"string"==typeof e?e:t},So.parseNumber=function(e,t){return"number"==typeof e?e:t},So.parseBool=function(e,t){if("boolean"==typeof e)return e;if("string"==typeof e)switch(e.toLowerCase()){case"true":return!0;case"false":return!1;default:return t}return t},So.getEnumValueByName=Ao,So.parseEnum=function(e,t,r){if(!t)return r;var n=Ao(e,t);return void 0!==n?n:r},So.stringToCssColor=function(e){if(e){var t=/#([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?/gi.exec(e);if(t&&t[4]){var r=parseInt(t[1],16)/255;return"rgba("+parseInt(t[2],16)+","+parseInt(t[3],16)+","+parseInt(t[4],16)+","+r+")"}}return e},So.truncateText=function(e,t,r){Eo(e,t,e.innerText,function(t,r){e.innerText=t.substring(0,r)+"..."},r)};var Po="undefined"==typeof window||null===(ko=window.trustedTypes)||void 0===ko?void 0:ko.createPolicy("adaptivecards#deprecatedExportedFunctionPolicy",{createHTML:function(e){return e}});function Mo(e,t){for(t+=1;t<e.length&&"<"===e[t];)for(;t<e.length&&">"!==e[t++];);return t}So.truncate=function(e,t,r){Eo(e,t,e.innerHTML,function(t,r){var n,i=t.substring(0,r)+"...",o=null!==(n=null==Po?void 0:Po.createHTML(i))&&void 0!==n?n:i;e.innerHTML=o},r)},So.getFitStatus=function(e,t){var r=e.offsetTop;return r+e.clientHeight<=t?_o.ContainerFitStatus.FullyInContainer:r<t?_o.ContainerFitStatus.Overflowing:_o.ContainerFitStatus.FullyOutOfContainer},So.getScrollX=function(){return window.pageXOffset},So.getScrollY=function(){return window.pageYOffset},So.clearElementChildren=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},So.addCancelSelectActionEventHandler=function(e){e.onclick=function(e){e.preventDefault(),e.cancelBubble=!0}},So.debounce=function(e,t){var r;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r&&clearTimeout(r),r=setTimeout(function(){e.apply(void 0,n)},t)}};var Io={},Bo={},Lo={},jo={};Object.defineProperty(jo,"__esModule",{value:!0}),jo.Strings=void 0;var No=function(){function e(){}return e.errors={unknownElementType:function(e){return'Unknown element type "'.concat(e,'". Fallback will be used if present.')},unknownActionType:function(e){return'Unknown action type "'.concat(e,'". Fallback will be used if present.')},elementTypeNotAllowed:function(e){return'Element type "'.concat(e,'" is not allowed in this context.')},actionTypeNotAllowed:function(e){return'Action type "'.concat(e,'" is not allowed in this context.')},invalidPropertyValue:function(e,t){return'Invalid value "'.concat(e,'" for property "').concat(t,'".')},showCardMustHaveCard:function(){return'"An Action.ShowCard must have its "card" property set to a valid AdaptiveCard object.'},invalidColumnWidth:function(e){return'Invalid column width "'.concat(e,'" - defaulting to "auto".')},invalidCardVersion:function(e){return'Invalid card version. Defaulting to "'.concat(e,'".')},invalidVersionString:function(e){return'Invalid version string "'.concat(e,'".')},propertyValueNotSupported:function(e,t,r,n){return'Value "'.concat(e,'" for property "').concat(t,'" is supported in version ').concat(r,", but you are using version ").concat(n,".")},propertyNotSupported:function(e,t,r){return'Property "'.concat(e,'" is supported in version ').concat(t,", but you are using version ").concat(r,".")},indexOutOfRange:function(e){return"Index out of range (".concat(e,").")},elementCannotBeUsedAsInline:function(){return"RichTextBlock.addInline: the specified card element cannot be used as a RichTextBlock inline."},inlineAlreadyParented:function(){return"RichTextBlock.addInline: the specified inline already belongs to another RichTextBlock."},interactivityNotAllowed:function(){return"Interactivity is not allowed."},inputsMustHaveUniqueId:function(){return"All inputs must have a unique Id."},choiceSetMustHaveAtLeastOneChoice:function(){return"An Input.ChoiceSet must have at least one choice defined."},choiceSetChoicesMustHaveTitleAndValue:function(){return"All choices in an Input.ChoiceSet must have their title and value properties set."},propertyMustBeSet:function(e){return'Property "'.concat(e,'" must be set.')},actionHttpHeadersMustHaveNameAndValue:function(){return"All headers of an Action.Http must have their name and value properties set."},tooManyActions:function(e){return"Maximum number of actions exceeded (".concat(e,").")},tooLittleTimeDelay:function(e){return"Autoplay Delay is too short (".concat(e,").")},tooManyCarouselPages:function(e){return"Maximum number of Carousel pages exceeded (".concat(e,").")},invalidInitialPageIndex:function(e){return"InitialPage for carousel is invalid (".concat(e,").")},columnAlreadyBelongsToAnotherSet:function(){return"This column already belongs to another ColumnSet."},invalidCardType:function(){return'Invalid or missing card type. Make sure the card\'s type property is set to "AdaptiveCard".'},unsupportedCardVersion:function(e,t){return"The specified card version (".concat(e,") is not supported or still in preview. The latest released card version is ").concat(t,".")},duplicateId:function(e){return'Duplicate Id "'.concat(e,'".')},markdownProcessingNotEnabled:function(){return"Markdown processing isn't enabled. Please see https://www.npmjs.com/package/adaptivecards#supporting-markdown"},processMarkdownEventRemoved:function(){return"The processMarkdown event has been removed. Please update your code and set onProcessMarkdown instead."},elementAlreadyParented:function(){return"The element already belongs to another container."},actionAlreadyParented:function(){return"The action already belongs to another element."},elementTypeNotStandalone:function(e){return"Elements of type ".concat(e," cannot be used as standalone elements.")},invalidInputLabelWidth:function(){return"Invalid input label width. Defaulting to label width from host config."}},e.magicCodeInputCard={tryAgain:function(){return"That didn't work... let's try again."},pleaseLogin:function(){return'Please login in the popup. You will obtain a magic code. Paste that code below and select "Submit"'},enterMagicCode:function(){return"Enter magic code"},pleaseEnterMagicCodeYouReceived:function(){return"Please enter the magic code you received."},submit:function(){return"Submit"},cancel:function(){return"Cancel"},somethingWentWrong:function(){return"Something went wrong. This action can't be handled."},authenticationFailed:function(){return"Authentication failed."}},e.runtime={automaticRefreshPaused:function(){return"Automatic refresh paused."},clckToRestartAutomaticRefresh:function(){return"Click to restart."},refreshThisCard:function(){return"Refresh this card"}},e.hints={dontUseWeightedAndStrecthedColumnsInSameSet:function(){return"It is not recommended to use weighted and stretched columns in the same ColumnSet, because in such a situation stretched columns will always get the minimum amount of space."}},e.defaults={inlineActionTitle:function(){return"Inline Action"},overflowButtonText:function(){return"..."},overflowButtonTooltip:function(){return"More options"},emptyElementText:function(e){return"Empty ".concat(e)},mediaPlayerAriaLabel:function(){return"Media content"},mediaPlayerPlayMedia:function(){return"Play media"},youTubeVideoPlayer:function(){return"YouTube video player"},vimeoVideoPlayer:function(){return"Vimeo video player"},dailymotionVideoPlayer:function(){return"Dailymotion video player"},carouselNavigationPreviousTooltip:function(){return"Previous carousel page"},carouselNavigationNextTooltip:function(){return"Next carousel page"}},e}();jo.Strings=No;var Do=An&&An.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.SerializableObject=Lo.property=Lo.SerializableObjectSchema=Lo.CustomProperty=Lo.SerializableObjectCollectionProperty=Lo.SerializableObjectProperty=Lo.EnumProperty=Lo.ValueSetProperty=Lo.StringArrayProperty=Lo.PixelSizeProperty=Lo.NumProperty=Lo.BoolProperty=Lo.StringProperty=Lo.PropertyDefinition=Lo.BaseSerializationContext=Lo.isVersionLessOrEqual=Lo.Versions=Lo.Version=void 0;var Oo=wo,zo=So,Fo=Co,Ro=jo,$o=function(){function e(e,t,r){void 0===e&&(e=1),void 0===t&&(t=1),this._isValid=!0,this._major=e,this._minor=t,this._label=r}return e.parse=function(t,r){if(t){var n=new e;n._versionString=t;var i=/(\d+).(\d+)/gi.exec(t);return null!=i&&3===i.length?(n._major=parseInt(i[1]),n._minor=parseInt(i[2])):n._isValid=!1,n._isValid||r.logParseEvent(void 0,Fo.ValidationEvent.InvalidPropertyValue,Ro.Strings.errors.invalidVersionString(n._versionString)),n}},e.prototype.toString=function(){return this._isValid?this._major+"."+this._minor:this._versionString},e.prototype.toJSON=function(){return this.toString()},e.prototype.compareTo=function(e){if(!this.isValid||!e.isValid)throw new Error("Cannot compare invalid version.");return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:0},Object.defineProperty(e.prototype,"label",{get:function(){return this._label?this._label:this.toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"major",{get:function(){return this._major},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minor",{get:function(){return this._minor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isValid",{get:function(){return this._isValid},enumerable:!1,configurable:!0}),e}();Lo.Version=$o;var Vo=function(){function e(){}return e.getAllDeclaredVersions=function(){var t=e,r=[];for(var n in t)if(n.match(/^v[0-9_]*$/))try{var i=t[n];i instanceof $o&&r.push(i)}catch(o){}return r.sort(function(e,t){return e.compareTo(t)})},e.v1_0=new $o(1,0),e.v1_1=new $o(1,1),e.v1_2=new $o(1,2),e.v1_3=new $o(1,3),e.v1_4=new $o(1,4),e.v1_5=new $o(1,5),e.v1_6=new $o(1,6,"1.6 Preview"),e.latest=e.v1_5,e}();Lo.Versions=Vo,Lo.isVersionLessOrEqual=function(e,t){return!(e instanceof $o)||(!(t instanceof $o)||t.compareTo(e)>=0)};var Wo=function(){function e(e){void 0===e&&(e=Vo.latest),this._validationEvents=[],this.targetVersion=e}return e.prototype.isTemplateString=function(e){return"string"==typeof e&&e.startsWith("${")},e.prototype.tryDeleteValue=function(e,t){Oo.GlobalSettings.enableFullJsonRoundTrip||delete e[t]},e.prototype.tryDeleteDefaultValue=function(e,t){Oo.GlobalSettings.enableFullJsonRoundTrip&&this.isTemplateString(e[t])||delete e[t]},e.prototype.serializeValue=function(e,t,r,n,i){void 0===n&&(n=void 0),void 0===i&&(i=!1),null==r?Oo.GlobalSettings.enableFullJsonRoundTrip&&!i||delete e[t]:r===n?Oo.GlobalSettings.enableFullJsonRoundTrip&&!i&&this.isTemplateString(e[t])||delete e[t]:e[t]=r},e.prototype.serializeString=function(e,t,r,n){null==r?this.tryDeleteValue(e,t):r===n?this.tryDeleteDefaultValue(e,t):e[t]=r},e.prototype.serializeBool=function(e,t,r,n){null==r?this.tryDeleteValue(e,t):r===n?this.tryDeleteDefaultValue(e,t):e[t]=r},e.prototype.serializeNumber=function(e,t,r,n){null==r||isNaN(r)?this.tryDeleteValue(e,t):r===n?this.tryDeleteDefaultValue(e,t):e[t]=r},e.prototype.serializeEnum=function(e,t,r,n,i){void 0===i&&(i=void 0),null==n?this.tryDeleteValue(t,r):n===i?this.tryDeleteDefaultValue(t,r):t[r]=e[n]},e.prototype.serializeArray=function(e,t,r){var n=[];if(r)for(var i=0,o=r;i<o.length;i++){var a=o[i],s=void 0;void 0!==(s=a instanceof na?a.toJSON(this):a.toJSON?a.toJSON():a)&&n.push(s)}0===n.length?e.hasOwnProperty(t)&&Array.isArray(e[t])&&delete e[t]:this.serializeValue(e,t,n)},e.prototype.clearEvents=function(){this._validationEvents=[]},e.prototype.logEvent=function(e,t,r,n){this._validationEvents.push({source:e,phase:t,event:r,message:n})},e.prototype.logParseEvent=function(e,t,r){this.logEvent(e,Fo.ValidationPhase.Parse,t,r)},e.prototype.getEventAt=function(e){return this._validationEvents[e]},Object.defineProperty(e.prototype,"eventCount",{get:function(){return this._validationEvents.length},enumerable:!1,configurable:!0}),e}();Lo.BaseSerializationContext=Wo;var qo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Do(t,e),t}(Wo),Ho=function(){function e(t,r,n,i){this.targetVersion=t,this.name=r,this.defaultValue=n,this.onGetInitialValue=i,this.isSerializationEnabled=!0,this.sequentialNumber=e._sequentialNumber,e._sequentialNumber++}return e.prototype.getInternalName=function(){return this.name},e.prototype.parse=function(e,t,r){return t[this.name]},e.prototype.toJSON=function(e,t,r,n){n.serializeValue(t,this.name,r,this.defaultValue)},e._sequentialNumber=0,e}();Lo.PropertyDefinition=Ho;var Uo=function(e){function t(t,r,n,i,o,a){void 0===n&&(n=!0);var s=e.call(this,t,r,o,a)||this;return s.targetVersion=t,s.name=r,s.treatEmptyAsUndefined=n,s.regEx=i,s.defaultValue=o,s.onGetInitialValue=a,s}return Do(t,e),t.prototype.parse=function(e,t,r){var n=zo.parseString(t[this.name],this.defaultValue);if(!(void 0===n||""===n&&this.treatEmptyAsUndefined)&&void 0!==this.regEx&&!this.regEx.exec(n))return void r.logParseEvent(e,Fo.ValidationEvent.InvalidPropertyValue,Ro.Strings.errors.invalidPropertyValue(n,this.name));return n},t.prototype.toJSON=function(e,t,r,n){n.serializeString(t,this.name,""===r&&this.treatEmptyAsUndefined?void 0:r,this.defaultValue)},t}(Ho);Lo.StringProperty=Uo;var Go=function(e){function t(t,r,n,i){var o=e.call(this,t,r,n,i)||this;return o.targetVersion=t,o.name=r,o.defaultValue=n,o.onGetInitialValue=i,o}return Do(t,e),t.prototype.parse=function(e,t,r){return zo.parseBool(t[this.name],this.defaultValue)},t.prototype.toJSON=function(e,t,r,n){n.serializeBool(t,this.name,r,this.defaultValue)},t}(Ho);Lo.BoolProperty=Go;var Xo=function(e){function t(t,r,n,i){var o=e.call(this,t,r,n,i)||this;return o.targetVersion=t,o.name=r,o.defaultValue=n,o.onGetInitialValue=i,o}return Do(t,e),t.prototype.parse=function(e,t,r){return zo.parseNumber(t[this.name],this.defaultValue)},t.prototype.toJSON=function(e,t,r,n){n.serializeNumber(t,this.name,r,this.defaultValue)},t}(Ho);Lo.NumProperty=Xo;var Jo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Do(t,e),t.prototype.parse=function(e,t,r){var n=void 0,i=t[this.name];if("string"==typeof i){var o=!1;try{var a=Oo.SizeAndUnit.parse(i,!0);a.unit===Fo.SizeUnit.Pixel&&(n=a.physicalSize,o=!0)}catch(s){}o||r.logParseEvent(e,Fo.ValidationEvent.InvalidPropertyValue,Ro.Strings.errors.invalidPropertyValue(t[this.name],this.name))}return n},t.prototype.toJSON=function(e,t,r,n){n.serializeValue(t,this.name,"number"!=typeof r||isNaN(r)?void 0:r+"px")},t}(Ho);Lo.PixelSizeProperty=Jo;var Yo=function(e){function t(t,r,n,i){var o=e.call(this,t,r,n,i)||this;return o.targetVersion=t,o.name=r,o.defaultValue=n,o.onGetInitialValue=i,o}return Do(t,e),t.prototype.parse=function(e,t,r){var n=t[this.name];if(void 0===n||!Array.isArray(n))return this.defaultValue;for(var i=[],o=0,a=n;o<a.length;o++){var s=a[o];"string"==typeof s?i.push(s):r.logParseEvent(e,Fo.ValidationEvent.InvalidPropertyValue,'Invalid array value "'.concat(JSON.stringify(s),'" of type "').concat(typeof s,'" ignored for "').concat(this.name,'".'))}return i},t.prototype.toJSON=function(e,t,r,n){n.serializeArray(t,this.name,r)},t}(Ho);Lo.StringArrayProperty=Yo;var Zo=function(e){function t(t,r,n,i,o){var a=e.call(this,t,r,i,o)||this;return a.targetVersion=t,a.name=r,a.values=n,a.defaultValue=i,a.onGetInitialValue=o,a}return Do(t,e),t.prototype.isValidValue=function(e,t){for(var r=0,n=this.values;r<n.length;r++){var i=n[r];if(e.toLowerCase()===i.value.toLowerCase())return(i.targetVersion?i.targetVersion:this.targetVersion).compareTo(t.targetVersion)<=0}return!1},t.prototype.parse=function(e,t,r){var n=t[this.name];if(void 0===n)return this.defaultValue;if("string"==typeof n)for(var i=0,o=this.values;i<o.length;i++){var a=o[i];if(n.toLowerCase()===a.value.toLowerCase()){var s=a.targetVersion?a.targetVersion:this.targetVersion;return s.compareTo(r.targetVersion)<=0?a.value:(r.logParseEvent(e,Fo.ValidationEvent.InvalidPropertyValue,Ro.Strings.errors.propertyValueNotSupported(n,this.name,s.toString(),r.targetVersion.toString())),this.defaultValue)}}return r.logParseEvent(e,Fo.ValidationEvent.InvalidPropertyValue,Ro.Strings.errors.invalidPropertyValue(n,this.name)),this.defaultValue},t.prototype.toJSON=function(e,t,r,n){var i=!1;if(void 0!==r){i=!0;for(var o=0,a=this.values;o<a.length;o++){var s=a[o];if(s.value===r){var l=s.targetVersion?s.targetVersion:this.targetVersion;if(l.compareTo(n.targetVersion)<=0){i=!1;break}n.logEvent(e,Fo.ValidationPhase.ToJSON,Fo.ValidationEvent.InvalidPropertyValue,Ro.Strings.errors.propertyValueNotSupported(r,this.name,l.toString(),n.targetVersion.toString()))}}}i||n.serializeValue(t,this.name,r,this.defaultValue,!0)},t}(Ho);Lo.ValueSetProperty=Zo;var Ko=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t,r,i,a)||this;if(s.targetVersion=t,s.name=r,s.enumType=n,s.defaultValue=i,s.onGetInitialValue=a,s._values=[],o)s._values=o;else for(var l in n){var c=parseInt(l,10);c>=0&&s._values.push({value:c})}return s}return Do(t,e),t.prototype.parse=function(e,t,r){var n=t[this.name];if("string"!=typeof n)return this.defaultValue;var i=zo.getEnumValueByName(this.enumType,n);if(void 0!==i)for(var o=0,a=this.values;o<a.length;o++){var s=a[o];if(s.value===i){var l=s.targetVersion?s.targetVersion:this.targetVersion;return l.compareTo(r.targetVersion)<=0?i:(r.logParseEvent(e,Fo.ValidationEvent.InvalidPropertyValue,Ro.Strings.errors.propertyValueNotSupported(n,this.name,l.toString(),r.targetVersion.toString())),this.defaultValue)}}return r.logParseEvent(e,Fo.ValidationEvent.InvalidPropertyValue,Ro.Strings.errors.invalidPropertyValue(n,this.name)),this.defaultValue},t.prototype.toJSON=function(e,t,r,n){var i=!1;if(void 0!==r){i=!0;for(var o=0,a=this.values;o<a.length;o++){var s=a[o];if(s.value===r){if((s.targetVersion?s.targetVersion:this.targetVersion).compareTo(n.targetVersion)<=0){i=!1;break}n.logEvent(e,Fo.ValidationPhase.ToJSON,Fo.ValidationEvent.InvalidPropertyValue,Ro.Strings.errors.invalidPropertyValue(r,this.name))}}}i||n.serializeEnum(this.enumType,t,this.name,r,this.defaultValue)},Object.defineProperty(t.prototype,"values",{get:function(){return this._values},enumerable:!1,configurable:!0}),t}(Ho);Lo.EnumProperty=Ko;var Qo=function(e){function t(t,r,n,i,o){void 0===i&&(i=!1);var a=e.call(this,t,r,o,function(e){return a.nullable?void 0:new a.objectType})||this;return a.targetVersion=t,a.name=r,a.objectType=n,a.nullable=i,a}return Do(t,e),t.prototype.parse=function(e,t,r){var n=t[this.name];if(void 0===n)return this.onGetInitialValue?this.onGetInitialValue(e):this.defaultValue;var i=new this.objectType;return i.parse(n,r),i},t.prototype.toJSON=function(e,t,r,n){var i=void 0;void 0===r||r.hasAllDefaultValues()||(i=r.toJSON(n)),"object"==typeof i&&0===Object.keys(i).length&&(i=void 0),n.serializeValue(t,this.name,i,this.defaultValue,!0)},t}(Ho);Lo.SerializableObjectProperty=Qo;var ea=function(e){function t(t,r,n,i){var o=e.call(this,t,r,void 0,function(e){return[]})||this;return o.targetVersion=t,o.name=r,o.objectType=n,o.onItemAdded=i,o}return Do(t,e),t.prototype.parse=function(e,t,r){var n=[],i=t[this.name];if(Array.isArray(i))for(var o=0,a=i;o<a.length;o++){var s=a[o],l=new this.objectType;l.parse(s,r),n.push(l),this.onItemAdded&&this.onItemAdded(e,l)}return n.length>0?n:this.onGetInitialValue?this.onGetInitialValue(e):void 0},t.prototype.toJSON=function(e,t,r,n){n.serializeArray(t,this.name,r)},t}(Ho);Lo.SerializableObjectCollectionProperty=ea;var ta=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t,r,o,a)||this;if(s.targetVersion=t,s.name=r,s.onParse=n,s.onToJSON=i,s.defaultValue=o,s.onGetInitialValue=a,!s.onParse)throw new Error("CustomPropertyDefinition instances must have an onParse handler.");if(!s.onToJSON)throw new Error("CustomPropertyDefinition instances must have an onToJSON handler.");return s}return Do(t,e),t.prototype.parse=function(e,t,r){return this.onParse(e,this,t,r)},t.prototype.toJSON=function(e,t,r,n){this.onToJSON(e,this,t,r,n)},t}(Ho);Lo.CustomProperty=ta;var ra=function(){function e(){this._properties=[]}return e.prototype.indexOf=function(e){for(var t=0;t<this._properties.length;t++)if(this._properties[t]===e)return t;return-1},e.prototype.add=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];-1===this.indexOf(i)&&this._properties.push(i)}},e.prototype.remove=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++)for(var i=n[r];;){var o=this.indexOf(i);if(!(o>=0))break;this._properties.splice(o,1)}},e.prototype.getItemAt=function(e){return this._properties[e]},e.prototype.getCount=function(){return this._properties.length},e}();Lo.SerializableObjectSchema=ra,Lo.property=function(e){return function(t,r){var n=Object.getOwnPropertyDescriptor(t,r)||{};n.get||n.set||(n.get=function(){return this.getValue(e)},n.set=function(t){this.setValue(e,t)},Object.defineProperty(t,r,n))}};var na=function(){function e(){this._propertyBag={},this._rawProperties={},this.maxVersion=e.defaultMaxVersion;for(var t=this.getSchema(),r=0;r<t.getCount();r++){var n=t.getItemAt(r);n.onGetInitialValue&&this.setValue(n,n.onGetInitialValue(this))}}return e.prototype.getDefaultSerializationContext=function(){return new qo},e.prototype.populateSchema=function(t){var r=this.constructor,n=[];for(var i in r)try{var o=r[i];o instanceof Ho&&n.push(o)}catch(s){}if(n.length>0){var a=n.sort(function(e,t){return e.sequentialNumber>t.sequentialNumber?1:e.sequentialNumber<t.sequentialNumber?-1:0});t.add.apply(t,a)}e.onRegisterCustomProperties&&e.onRegisterCustomProperties(this,t)},e.prototype.getValue=function(e){return this._propertyBag.hasOwnProperty(e.getInternalName())?this._propertyBag[e.getInternalName()]:e.defaultValue},e.prototype.setValue=function(e,t){null==t?delete this._propertyBag[e.getInternalName()]:this._propertyBag[e.getInternalName()]=t},e.prototype.internalParse=function(e,t){if(this._propertyBag={},this._rawProperties=Oo.GlobalSettings.enableFullJsonRoundTrip&&e||{},e)for(var r=this.getSchema(),n=0;n<r.getCount();n++){var i=r.getItemAt(n);if(i.isSerializationEnabled){var o=i.onGetInitialValue?i.onGetInitialValue(this):void 0;e.hasOwnProperty(i.name)&&(i.targetVersion.compareTo(t.targetVersion)<=0?o=i.parse(this,e,t):t.logParseEvent(this,Fo.ValidationEvent.UnsupportedProperty,Ro.Strings.errors.propertyNotSupported(i.name,i.targetVersion.toString(),t.targetVersion.toString()))),this.setValue(i,o)}}else this.resetDefaultValues()},e.prototype.internalToJSON=function(e,t){for(var r=this.getSchema(),n=[],i=0;i<r.getCount();i++){var o=r.getItemAt(i);o.isSerializationEnabled&&o.targetVersion.compareTo(t.targetVersion)<=0&&-1===n.indexOf(o.name)&&(o.toJSON(this,e,this.getValue(o),t),n.push(o.name))}},e.prototype.shouldSerialize=function(e){return!0},e.prototype.parse=function(e,t){this.internalParse(e,t||new qo)},e.prototype.toJSON=function(e){var t;if(e&&e instanceof Wo?t=e:(t=this.getDefaultSerializationContext()).toJSONOriginalParam=e,this.shouldSerialize(t)){var r=void 0;return r=Oo.GlobalSettings.enableFullJsonRoundTrip&&this._rawProperties&&"object"==typeof this._rawProperties?this._rawProperties:{},this.internalToJSON(r,t),r}},e.prototype.hasDefaultValue=function(e){return this.getValue(e)===e.defaultValue},e.prototype.hasAllDefaultValues=function(){for(var e=this.getSchema(),t=0;t<e.getCount();t++){var r=e.getItemAt(t);if(!this.hasDefaultValue(r))return!1}return!0},e.prototype.resetDefaultValues=function(){for(var e=this.getSchema(),t=0;t<e.getCount();t++){var r=e.getItemAt(t);this.setValue(r,r.defaultValue)}},e.prototype.setCustomProperty=function(e,t){"string"==typeof t&&!t||null==t?delete this._rawProperties[e]:this._rawProperties[e]=t},e.prototype.getCustomProperty=function(e){return this._rawProperties[e]},e.prototype.getSchema=function(){var t=e._schemaCache[this.getSchemaKey()];return t||(t=new ra,this.populateSchema(t),e._schemaCache[this.getSchemaKey()]=t),t},e.defaultMaxVersion=Vo.latest,e._schemaCache={},e}();Lo.SerializableObject=na;var ia=An&&An.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.HostCapabilities=void 0;var oa=Lo,aa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._capabilities={},t}return ia(t,e),t.prototype.getSchemaKey=function(){return"HostCapabilities"},t.prototype.internalParse=function(t,r){if(e.prototype.internalParse.call(this,t,r),t)for(var n in t){var i=t[n];if("string"==typeof i)if("*"===i)this.addCapability(n,"*");else{var o=oa.Version.parse(i,r);(null==o?void 0:o.isValid)&&this.addCapability(n,o)}}},t.prototype.internalToJSON=function(t,r){for(var n in e.prototype.internalToJSON.call(this,t,r),this._capabilities)t[n]=this._capabilities[n]},t.prototype.addCapability=function(e,t){this._capabilities[e]=t},t.prototype.removeCapability=function(e){delete this._capabilities[e]},t.prototype.clear=function(){this._capabilities={}},t.prototype.hasCapability=function(e,t){return!!this._capabilities.hasOwnProperty(e)&&("*"===t||"*"===this._capabilities[e]||t.compareTo(this._capabilities[e])<=0)},t.prototype.areAllMet=function(e){for(var t in this._capabilities)if(!e.hasCapability(t,this._capabilities[t]))return!1;return!0},t}(oa.SerializableObject);Bo.HostCapabilities=aa;var sa=An&&An.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Io,"__esModule",{value:!0}),Io.defaultHostConfig=Io.HostConfig=Io.CarouselConfig=Io.FontTypeSet=Io.FontTypeDefinition=Io.ContainerStyleSet=Io.ContainerStyleDefinition=Io.ColorSetDefinition=Io.ActionsConfig=Io.ShowCardActionConfig=Io.FactSetConfig=Io.FactTitleDefinition=Io.FactTextDefinition=Io.InputConfig=Io.InputLabelConfig=Io.RequiredInputLabelTextDefinition=Io.TextBlockConfig=Io.TextStyleSet=Io.TextStyleDefinition=Io.BaseTextDefinition=Io.TableConfig=Io.MediaConfig=Io.ImageSetConfig=Io.AdaptiveCardConfig=Io.TextColorDefinition=Io.ColorDefinition=void 0;var la=Co,ca=So,ua=wo,ha=Bo;function da(e,t,r){if("string"==typeof t){var n=ca.parseEnum(e,t,r);return void 0!==n?n:r}return"number"==typeof t?t:r}var pa=function(){function e(e,t){this.default="#000000",this.subtle="#666666",e&&(this.default=e),t&&(this.subtle=t)}return e.prototype.parse=function(e){e&&(this.default=e.default||this.default,this.subtle=e.subtle||this.subtle)},e}();Io.ColorDefinition=pa;var ga=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.highlightColors=new pa("#22000000","#11000000"),t}return sa(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&this.highlightColors.parse(t.highlightColors)},t}(pa);Io.TextColorDefinition=ga;var fa=function(){return function(e){this.allowCustomStyle=!1,e&&(this.allowCustomStyle=e.allowCustomStyle||this.allowCustomStyle)}}();Io.AdaptiveCardConfig=fa;var ma=function(){function e(e){this.imageSize=la.Size.Medium,this.maxImageHeight=100,e&&(this.imageSize=null!=e.imageSize?e.imageSize:this.imageSize,this.maxImageHeight=ca.parseNumber(e.maxImageHeight,100))}return e.prototype.toJSON=function(){return{imageSize:la.Size[this.imageSize],maxImageHeight:this.maxImageHeight}},e}();Io.ImageSetConfig=ma;var ya=function(){function e(e){this.allowInlinePlayback=!0,e&&(this.defaultPoster=e.defaultPoster,this.allowInlinePlayback=e.allowInlinePlayback||this.allowInlinePlayback)}return e.prototype.toJSON=function(){return{defaultPoster:this.defaultPoster,allowInlinePlayback:this.allowInlinePlayback}},e}();Io.MediaConfig=ya;var ba=function(){function e(e){this.cellSpacing=8,e&&(this.cellSpacing=e.cellSpacing&&"number"==typeof e.cellSpacing?e.cellSpacing:this.cellSpacing)}return e.prototype.toJSON=function(){return{cellSpacing:this.cellSpacing}},e}();Io.TableConfig=ba;var va=function(){function e(e){this.size=la.TextSize.Default,this.color=la.TextColor.Default,this.isSubtle=!1,this.weight=la.TextWeight.Default,this.parse(e)}return e.prototype.parse=function(e){e&&(this.size=da(la.TextSize,e.size,this.size),this.color=da(la.TextColor,e.color,this.color),this.isSubtle=void 0!==e.isSubtle&&"boolean"==typeof e.isSubtle?e.isSubtle:this.isSubtle,this.weight=da(la.TextWeight,e.weight,this.getDefaultWeight()))},e.prototype.getDefaultWeight=function(){return la.TextWeight.Default},e.prototype.toJSON=function(){return{size:la.TextSize[this.size],color:la.TextColor[this.color],isSubtle:this.isSubtle,weight:la.TextWeight[this.weight]}},e}();Io.BaseTextDefinition=va;var xa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fontType=la.FontType.Default,t}return sa(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.fontType=da(la.FontType,t.fontType,this.fontType))},t}(va);Io.TextStyleDefinition=xa;var Ca=function(){function e(e){this.default=new xa,this.heading=new xa({size:"Large",weight:"Bolder"}),this.columnHeader=new xa({weight:"Bolder"}),e&&(this.heading.parse(e.heading),this.columnHeader.parse(e.columnHeader))}return e.prototype.getStyleByName=function(e){switch(e.toLowerCase()){case"heading":return this.heading;case"columnHeader":return this.columnHeader;default:return this.default}},e}();Io.TextStyleSet=Ca;var wa=function(){return function(e){e&&(this.headingLevel=ca.parseNumber(e.headingLevel))}}();Io.TextBlockConfig=wa;var ka=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.suffix=" *",t.suffixColor=la.TextColor.Attention,t}return sa(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.suffix=t.suffix||this.suffix,this.suffixColor=da(la.TextColor,t.suffixColor,this.suffixColor))},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.suffix=this.suffix,t.suffixColor=la.TextColor[this.suffixColor],t},t}(va);Io.RequiredInputLabelTextDefinition=ka;var Sa=function(){return function(e){this.inputSpacing=la.Spacing.Small,this.width=30,this.requiredInputs=new ka,this.optionalInputs=new va,e&&(this.inputSpacing=da(la.Spacing,e.inputSpacing,this.inputSpacing),this.requiredInputs=new ka(e.requiredInputs),this.optionalInputs=new va(e.optionalInputs),this.width=null!=e.width?e.width:this.width)}}();Io.InputLabelConfig=Sa;var _a=function(){return function(e){this.label=new Sa,this.errorMessage=new va({color:la.TextColor.Attention}),this.debounceTimeInMilliSeconds=0,this.allowRevealOnHoverStyle=!1,e&&(this.label=new Sa(e.label),this.errorMessage=new va(e.errorMessage),this.allowRevealOnHoverStyle=e.allowRevealOnHoverStyle||this.allowRevealOnHoverStyle,this.debounceTimeInMilliSeconds=e.debounceTimeInMilliSeconds)}}();Io.InputConfig=_a;var Ta=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.wrap=!0,t}return sa(t,e),t.prototype.parse=function(t){e.prototype.parse.call(this,t),t&&(this.wrap=null!=t.wrap?t.wrap:this.wrap)},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.wrap=this.wrap,t},t}(va);Io.FactTextDefinition=Ta;var Aa=function(e){function t(t){var r=e.call(this,t)||this;return r.maxWidth=150,r.weight=la.TextWeight.Bolder,t&&(r.maxWidth=null!=t.maxWidth?t.maxWidth:r.maxWidth,r.weight=da(la.TextWeight,t.weight,la.TextWeight.Bolder)),r}return sa(t,e),t.prototype.getDefaultWeight=function(){return la.TextWeight.Bolder},t}(Ta);Io.FactTitleDefinition=Aa;var Ea=function(){return function(e){this.title=new Aa,this.value=new Ta,this.spacing=10,e&&(this.title=new Aa(e.title),this.value=new Ta(e.value),this.spacing=e.spacing&&null!=e.spacing?e.spacing&&e.spacing:this.spacing)}}();Io.FactSetConfig=Ea;var Pa=function(){function e(e){this.actionMode=la.ShowCardActionMode.Inline,this.inlineTopMargin=16,this.style=la.ContainerStyle.Emphasis,e&&(this.actionMode=da(la.ShowCardActionMode,e.actionMode,la.ShowCardActionMode.Inline),this.inlineTopMargin=null!=e.inlineTopMargin?e.inlineTopMargin:this.inlineTopMargin,this.style=e.style&&"string"==typeof e.style?e.style:la.ContainerStyle.Emphasis)}return e.prototype.toJSON=function(){return{actionMode:la.ShowCardActionMode[this.actionMode],inlineTopMargin:this.inlineTopMargin,style:this.style}},e}();Io.ShowCardActionConfig=Pa;var Ma=function(){function e(e){if(this.maxActions=5,this.spacing=la.Spacing.Default,this.buttonSpacing=20,this.showCard=new Pa,this.preExpandSingleShowCardAction=!1,this.actionsOrientation=la.Orientation.Horizontal,this.actionAlignment=la.ActionAlignment.Left,this.iconPlacement=la.ActionIconPlacement.LeftOfTitle,this.allowTitleToWrap=!1,this.iconSize=16,e){this.maxActions=null!=e.maxActions?e.maxActions:this.maxActions,this.spacing=da(la.Spacing,e.spacing&&e.spacing,la.Spacing.Default),this.buttonSpacing=null!=e.buttonSpacing?e.buttonSpacing:this.buttonSpacing,this.showCard=new Pa(e.showCard),this.preExpandSingleShowCardAction=ca.parseBool(e.preExpandSingleShowCardAction,!1),this.actionsOrientation=da(la.Orientation,e.actionsOrientation,la.Orientation.Horizontal),this.actionAlignment=da(la.ActionAlignment,e.actionAlignment,la.ActionAlignment.Left),this.iconPlacement=da(la.ActionIconPlacement,e.iconPlacement,la.ActionIconPlacement.LeftOfTitle),this.allowTitleToWrap=null!=e.allowTitleToWrap?e.allowTitleToWrap:this.allowTitleToWrap;try{var t=ua.SizeAndUnit.parse(e.iconSize);t.unit===la.SizeUnit.Pixel&&(this.iconSize=t.physicalSize)}catch(r){}}}return e.prototype.toJSON=function(){return{maxActions:this.maxActions,spacing:la.Spacing[this.spacing],buttonSpacing:this.buttonSpacing,showCard:this.showCard,preExpandSingleShowCardAction:this.preExpandSingleShowCardAction,actionsOrientation:la.Orientation[this.actionsOrientation],actionAlignment:la.ActionAlignment[this.actionAlignment]}},e}();Io.ActionsConfig=Ma;var Ia=function(){function e(e){this.default=new ga,this.dark=new ga,this.light=new ga,this.accent=new ga,this.good=new ga,this.warning=new ga,this.attention=new ga,this.parse(e)}return e.prototype.parseSingleColor=function(e,t){e&&this[t].parse(e[t])},e.prototype.parse=function(e){e&&(this.parseSingleColor(e,"default"),this.parseSingleColor(e,"dark"),this.parseSingleColor(e,"light"),this.parseSingleColor(e,"accent"),this.parseSingleColor(e,"good"),this.parseSingleColor(e,"warning"),this.parseSingleColor(e,"attention"))},e}();Io.ColorSetDefinition=Ia;var Ba=function(){function e(e){this.foregroundColors=new Ia({default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#E69500",subtle:"#DDE69500"},attention:{default:"#CC3300",subtle:"#DDCC3300"}}),this.parse(e)}return e.prototype.parse=function(e){e&&(this.backgroundColor=e.backgroundColor,this.foregroundColors.parse(e.foregroundColors),this.highlightBackgroundColor=e.highlightBackgroundColor,this.highlightForegroundColor=e.highlightForegroundColor,this.borderColor=e.borderColor)},Object.defineProperty(e.prototype,"isBuiltIn",{get:function(){return!1},enumerable:!1,configurable:!0}),e}();Io.ContainerStyleDefinition=Ba;var La=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sa(t,e),Object.defineProperty(t.prototype,"isBuiltIn",{get:function(){return!0},enumerable:!1,configurable:!0}),t}(Ba),ja=function(){function e(e){if(this._allStyles={},this._allStyles[la.ContainerStyle.Default]=new La,this._allStyles[la.ContainerStyle.Emphasis]=new La,this._allStyles[la.ContainerStyle.Accent]=new La,this._allStyles[la.ContainerStyle.Good]=new La,this._allStyles[la.ContainerStyle.Attention]=new La,this._allStyles[la.ContainerStyle.Warning]=new La,e){this._allStyles[la.ContainerStyle.Default].parse(e[la.ContainerStyle.Default]),this._allStyles[la.ContainerStyle.Emphasis].parse(e[la.ContainerStyle.Emphasis]),this._allStyles[la.ContainerStyle.Accent].parse(e[la.ContainerStyle.Accent]),this._allStyles[la.ContainerStyle.Good].parse(e[la.ContainerStyle.Good]),this._allStyles[la.ContainerStyle.Attention].parse(e[la.ContainerStyle.Attention]),this._allStyles[la.ContainerStyle.Warning].parse(e[la.ContainerStyle.Warning]);var t=e.customStyles;if(t&&Array.isArray(t))for(var r=0,n=t;r<n.length;r++){var i=n[r];if(i){var o=i.name;o&&"string"==typeof o&&(this._allStyles.hasOwnProperty(o)?this._allStyles[o].parse(i.style):this._allStyles[o]=new Ba(i.style))}}}}return e.prototype.toJSON=function(){var e=this,t=[];Object.keys(this._allStyles).forEach(function(r){e._allStyles[r].isBuiltIn||t.push({name:r,style:e._allStyles[r]})});var r={default:this.default,emphasis:this.emphasis};return t.length>0&&(r.customStyles=t),r},e.prototype.getStyleByName=function(e,t){return e&&this._allStyles.hasOwnProperty(e)?this._allStyles[e]:t||this._allStyles[la.ContainerStyle.Default]},Object.defineProperty(e.prototype,"default",{get:function(){return this._allStyles[la.ContainerStyle.Default]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"emphasis",{get:function(){return this._allStyles[la.ContainerStyle.Emphasis]},enumerable:!1,configurable:!0}),e}();Io.ContainerStyleSet=ja;var Na=function(){function e(e){this.fontFamily="Segoe UI,Segoe,Segoe WP,Helvetica Neue,Helvetica,sans-serif",this.fontSizes={small:12,default:14,medium:17,large:21,extraLarge:26},this.fontWeights={lighter:200,default:400,bolder:600},e&&(this.fontFamily=e)}return e.prototype.parse=function(e){this.fontFamily=e.fontFamily||this.fontFamily,this.fontSizes={small:e.fontSizes&&e.fontSizes.small||this.fontSizes.small,default:e.fontSizes&&e.fontSizes.default||this.fontSizes.default,medium:e.fontSizes&&e.fontSizes.medium||this.fontSizes.medium,large:e.fontSizes&&e.fontSizes.large||this.fontSizes.large,extraLarge:e.fontSizes&&e.fontSizes.extraLarge||this.fontSizes.extraLarge},this.fontWeights={lighter:e.fontWeights&&e.fontWeights.lighter||this.fontWeights.lighter,default:e.fontWeights&&e.fontWeights.default||this.fontWeights.default,bolder:e.fontWeights&&e.fontWeights.bolder||this.fontWeights.bolder}},e.monospace=new e("'Courier New', Courier, monospace"),e}();Io.FontTypeDefinition=Na;var Da=function(){function e(e){this.default=new Na,this.monospace=new Na("'Courier New', Courier, monospace"),e&&(this.default.parse(e.default),this.monospace.parse(e.monospace))}return e.prototype.getStyleDefinition=function(e){switch(e){case la.FontType.Monospace:return this.monospace;case la.FontType.Default:default:return this.default}},e}();Io.FontTypeSet=Da;var Oa=function(){function e(e){this.maxCarouselPages=10,this.minAutoplayDelay=5e3,e&&(this.maxCarouselPages=null!=e.maxCarouselPages?e.maxCarouselPages:this.maxCarouselPages,this.minAutoplayDelay=null!=e.minAutoplayDelay?e.minAutoplayDelay:this.minAutoplayDelay)}return e.prototype.toJSON=function(){return{maxCarouselPages:this.maxCarouselPages,minAutoplayDelay:this.minAutoplayDelay}},e}();Io.CarouselConfig=Oa;var za=function(){function e(e){this.hostCapabilities=new ha.HostCapabilities,this.choiceSetInputValueSeparator=",",this.supportsInteractivity=!0,this.spacing={small:3,default:8,medium:20,large:30,extraLarge:40,padding:15},this.separator={lineThickness:1,lineColor:"#EEEEEE"},this.imageSizes={small:40,medium:80,large:160},this.containerStyles=new ja,this.inputs=new _a,this.actions=new Ma,this.adaptiveCard=new fa,this.imageSet=new ma,this.media=new ya,this.factSet=new Ea,this.table=new ba,this.textStyles=new Ca,this.textBlock=new wa,this.carousel=new Oa,this.alwaysAllowBleed=!1,e&&(("string"==typeof e||e instanceof String)&&(e=JSON.parse(e)),this.choiceSetInputValueSeparator=e&&"string"==typeof e.choiceSetInputValueSeparator?e.choiceSetInputValueSeparator:this.choiceSetInputValueSeparator,this.supportsInteractivity=e&&"boolean"==typeof e.supportsInteractivity?e.supportsInteractivity:this.supportsInteractivity,this._legacyFontType=new Na,this._legacyFontType.parse(e),e.fontTypes&&(this.fontTypes=new Da(e.fontTypes)),e.lineHeights&&(this.lineHeights={small:e.lineHeights.small,default:e.lineHeights.default,medium:e.lineHeights.medium,large:e.lineHeights.large,extraLarge:e.lineHeights.extraLarge}),this.imageSizes={small:e.imageSizes&&e.imageSizes.small||this.imageSizes.small,medium:e.imageSizes&&e.imageSizes.medium||this.imageSizes.medium,large:e.imageSizes&&e.imageSizes.large||this.imageSizes.large},this.containerStyles=new ja(e.containerStyles),this.spacing={small:e.spacing&&e.spacing.small||this.spacing.small,default:e.spacing&&e.spacing.default||this.spacing.default,medium:e.spacing&&e.spacing.medium||this.spacing.medium,large:e.spacing&&e.spacing.large||this.spacing.large,extraLarge:e.spacing&&e.spacing.extraLarge||this.spacing.extraLarge,padding:e.spacing&&e.spacing.padding||this.spacing.padding},this.separator={lineThickness:e.separator&&e.separator.lineThickness||this.separator.lineThickness,lineColor:e.separator&&e.separator.lineColor||this.separator.lineColor},this.inputs=new _a(e.inputs||this.inputs),this.actions=new Ma(e.actions||this.actions),this.adaptiveCard=new fa(e.adaptiveCard||this.adaptiveCard),this.imageSet=new ma(e.imageSet),this.factSet=new Ea(e.factSet),this.textStyles=new Ca(e.textStyles),this.textBlock=new wa(e.textBlock),this.carousel=new Oa(e.carousel))}return e.prototype.getFontTypeDefinition=function(e){return this.fontTypes?this.fontTypes.getStyleDefinition(e):e===la.FontType.Monospace?Na.monospace:this._legacyFontType},e.prototype.getEffectiveSpacing=function(e){switch(e){case la.Spacing.Small:return this.spacing.small;case la.Spacing.Default:return this.spacing.default;case la.Spacing.Medium:return this.spacing.medium;case la.Spacing.Large:return this.spacing.large;case la.Spacing.ExtraLarge:return this.spacing.extraLarge;case la.Spacing.Padding:return this.spacing.padding;default:return 0}},e.prototype.paddingDefinitionToSpacingDefinition=function(e){return new ua.SpacingDefinition(this.getEffectiveSpacing(e.top),this.getEffectiveSpacing(e.right),this.getEffectiveSpacing(e.bottom),this.getEffectiveSpacing(e.left))},e.prototype.makeCssClassNames=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=[],n=0,i=e;n<i.length;n++){var o=i[n];r.push((this.cssClassNamePrefix?this.cssClassNamePrefix+"-":"")+o)}return r},e.prototype.makeCssClassName=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.makeCssClassNames.apply(this,e).join(" ");return r||""},Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this._legacyFontType.fontFamily},set:function(e){this._legacyFontType.fontFamily=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSizes",{get:function(){return this._legacyFontType.fontSizes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontWeights",{get:function(){return this._legacyFontType.fontWeights},enumerable:!1,configurable:!0}),e}();Io.HostConfig=za,Io.defaultHostConfig=new za({supportsInteractivity:!0,spacing:{small:10,default:20,medium:30,large:40,extraLarge:50,padding:20},separator:{lineThickness:1,lineColor:"#EEEEEE"},fontTypes:{default:{fontFamily:"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif",fontSizes:{small:12,default:14,medium:17,large:21,extraLarge:26},fontWeights:{lighter:200,default:400,bolder:600}},monospace:{fontFamily:"'Courier New', Courier, monospace",fontSizes:{small:12,default:14,medium:17,large:21,extraLarge:26},fontWeights:{lighter:200,default:400,bolder:600}}},imageSizes:{small:40,medium:80,large:160},containerStyles:{default:{backgroundColor:"#FFFFFF",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},emphasis:{backgroundColor:"#08000000",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},accent:{backgroundColor:"#C7DEF9",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},good:{backgroundColor:"#CCFFCC",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},attention:{backgroundColor:"#FFC5B2",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},warning:{backgroundColor:"#FFE2B2",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}}},inputs:{label:{requiredInputs:{weight:la.TextWeight.Bolder,suffix:" *",suffixColor:la.TextColor.Attention},optionalInputs:{weight:la.TextWeight.Bolder}},errorMessage:{color:la.TextColor.Attention,weight:la.TextWeight.Bolder},debounceTimeInMilliSeconds:250},actions:{maxActions:5,spacing:la.Spacing.Default,buttonSpacing:10,showCard:{actionMode:la.ShowCardActionMode.Inline,inlineTopMargin:16},actionsOrientation:la.Orientation.Horizontal,actionAlignment:la.ActionAlignment.Left},adaptiveCard:{allowCustomStyle:!1},imageSet:{imageSize:la.Size.Medium,maxImageHeight:100},factSet:{title:{color:la.TextColor.Default,size:la.TextSize.Default,isSubtle:!1,weight:la.TextWeight.Bolder,wrap:!0,maxWidth:150},value:{color:la.TextColor.Default,size:la.TextSize.Default,isSubtle:!1,weight:la.TextWeight.Default,wrap:!0},spacing:10},carousel:{maxCarouselPages:10,minAutoplayDuration:5e3},textBlock:{headingLevel:2}});var Fa={},Ra=An&&An.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.formatText=void 0;var $a=function(){function e(e){this._regularExpression=e}return e.prototype.format=function(e,t){var r;if(t){for(var n=t;null!=(r=this._regularExpression.exec(t));)n=n.replace(r[0],this.internalFormat(e,r));return n}return t},e}(),Va=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra(t,e),t.prototype.internalFormat=function(e,t){var r=new Date(Date.parse(t[1])),n=void 0!==t[2]?t[2].toLowerCase():"compact";return"compact"!==n?r.toLocaleDateString(e,{day:"numeric",weekday:n,month:n,year:"numeric"}):r.toLocaleDateString()},t}($a),Wa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra(t,e),t.prototype.internalFormat=function(e,t){return new Date(Date.parse(t[1])).toLocaleTimeString(e,{hour:"numeric",minute:"2-digit"})},t}($a);Fa.formatText=function(e,t){for(var r=t,n=0,i=[new Va(/\{{2}DATE\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))(?:, ?(COMPACT|LONG|SHORT))?\)\}{2}/g),new Wa(/\{{2}TIME\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))\)\}{2}/g)];n<i.length;n++){r=i[n].format(e,r)}return r};var qa={},Ha=An&&An.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ua=An&&An.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(qa,"__esModule",{value:!0}),qa.CardObject=qa.ValidationResults=void 0;var Ga=Co,Xa=jo,Ja=wo,Ya=Bo,Za=Lo,Ka=function(){function e(){this.allIds={},this.validationEvents=[]}return e.prototype.addFailure=function(e,t,r){this.validationEvents.push({phase:Ga.ValidationPhase.Validation,source:e,event:t,message:r})},e}();qa.ValidationResults=Ka;var Qa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._shouldFallback=!1,t}return Ha(t,e),t.prototype.getSchemaKey=function(){return this.getJsonTypeName()},Object.defineProperty(t.prototype,"requires",{get:function(){return this.getValue(t.requiresProperty)},enumerable:!1,configurable:!0}),t.prototype.contains=function(e){return!!this._renderedElement&&this._renderedElement.contains(e)},t.prototype.preProcessPropertyValue=function(e,t){var r=void 0===t?this.getValue(e):t;if(Ja.GlobalSettings.allowPreProcessingPropertyValues){for(var n=this;n&&!n.onPreProcessPropertyValue;)n=n.parent;if(n&&n.onPreProcessPropertyValue)return n.onPreProcessPropertyValue(this,e,r)}return r},t.prototype.setParent=function(e){this._parent=e},t.prototype.setShouldFallback=function(e){this._shouldFallback=e},t.prototype.shouldFallback=function(){return this._shouldFallback||!this.requires.areAllMet(this.hostConfig.hostCapabilities)},t.prototype.getRootObject=function(){for(var e=this;e.parent;)e=e.parent;return e},t.prototype.internalValidateProperties=function(e){this.id&&(e.allIds.hasOwnProperty(this.id)?(1===e.allIds[this.id]&&e.addFailure(this,Ga.ValidationEvent.DuplicateId,Xa.Strings.errors.duplicateId(this.id)),e.allIds[this.id]+=1):e.allIds[this.id]=1)},t.prototype.validateProperties=function(){var e=new Ka;return this.internalValidateProperties(e),e},t.prototype.findDOMNodeOwner=function(e){return this.contains(e)?this:void 0},t.prototype.releaseDOMResources=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedElement",{get:function(){return this._renderedElement},enumerable:!1,configurable:!0}),t.typeNameProperty=new Za.StringProperty(Za.Versions.v1_0,"type",void 0,void 0,void 0,function(e){return e.getJsonTypeName()}),t.idProperty=new Za.StringProperty(Za.Versions.v1_0,"id"),t.requiresProperty=new Za.SerializableObjectProperty(Za.Versions.v1_2,"requires",Ya.HostCapabilities,!1,new Ya.HostCapabilities),Ua([(0,Za.property)(t.idProperty)],t.prototype,"id",void 0),Ua([(0,Za.property)(t.requiresProperty)],t.prototype,"requires",null),t}(Za.SerializableObject);qa.CardObject=Qa;var es={};Object.defineProperty(es,"__esModule",{value:!0}),es.GlobalRegistry=es.CardObjectRegistry=void 0;var ts=Lo,rs=function(){function e(){this._items={}}return e.prototype.findByName=function(e){return this._items.hasOwnProperty(e)?this._items[e]:void 0},e.prototype.clear=function(){this._items={}},e.prototype.copyTo=function(e){for(var t=0,r=Object.keys(this._items);t<r.length;t++){var n=r[t],i=this._items[n];e.register(i.typeName,i.objectType,i.schemaVersion)}},e.prototype.register=function(e,t,r){void 0===r&&(r=ts.Versions.v1_0);var n=this.findByName(e);void 0!==n?n.objectType=t:n={typeName:e,objectType:t,schemaVersion:r},this._items[e]=n},e.prototype.unregister=function(e){delete this._items[e]},e.prototype.createInstance=function(e,t){var r=this.findByName(e);return r&&r.schemaVersion.compareTo(t)<=0?new r.objectType:void 0},e.prototype.getItemCount=function(){return Object.keys(this._items).length},e.prototype.getItemAt=function(e){var t=this;return Object.keys(this._items).map(function(e){return t._items[e]})[e]},e}();es.CardObjectRegistry=rs;var ns=function(){function e(){}return e.populateWithDefaultElements=function(t){t.clear(),e.defaultElements.copyTo(t)},e.populateWithDefaultActions=function(t){t.clear(),e.defaultActions.copyTo(t)},Object.defineProperty(e,"elements",{get:function(){return e._elements||(e._elements=new rs,e.populateWithDefaultElements(e._elements)),e._elements},enumerable:!1,configurable:!0}),Object.defineProperty(e,"actions",{get:function(){return e._actions||(e._actions=new rs,e.populateWithDefaultActions(e._actions)),e._actions},enumerable:!1,configurable:!0}),e.reset=function(){e._elements=void 0,e._actions=void 0},e.defaultElements=new rs,e.defaultActions=new rs,e}();es.GlobalRegistry=ns;var is={},os={},as={};Object.defineProperty(as,"__esModule",{value:!0}),as.Constants=void 0;var ss=function(){function e(){}return e.keys={tab:"Tab",enter:"Enter",escape:"Escape",space:" ",up:"ArrowUp",down:"ArrowDown",delete:"Delete"},e}();as.Constants=ss,Object.defineProperty(os,"__esModule",{value:!0}),os.MenuItem=void 0;var ls=Io,cs=as,us=function(){function e(e,t){this._isEnabled=!0,this.key=e,this._value=t}return e.prototype.click=function(){this.isEnabled&&this.onClick&&this.onClick(this)},e.prototype.updateCssClasses=function(){if(this._element){var e=this._hostConfig?this._hostConfig:ls.defaultHostConfig;this._element.className=e.makeCssClassName("ac-ctrl"),this._element.classList.add(e.makeCssClassName(this.isEnabled?"ac-ctrl-dropdown-item":"ac-ctrl-dropdown-item-disabled")),this.isEnabled||this._element.classList.add(e.makeCssClassName("ac-disabled"))}},e.prototype.toString=function(){return this.value},e.prototype.render=function(e){var t=this;return this._hostConfig=e,this._element||(this._element=document.createElement("span"),this._element.innerText=this.value,this._element.setAttribute("role","menuitem"),this.isEnabled||this._element.setAttribute("aria-disabled","true"),this._element.setAttribute("aria-current","false"),this._element.onmouseup=function(e){t.click()},this._element.onkeydown=function(e){e.key===cs.Constants.keys.enter&&(e.cancelBubble=!0,t.click())},this.updateCssClasses()),this._element},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this._element&&(this._element.innerText=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this._isEnabled},set:function(e){this._isEnabled!==e&&(this._isEnabled=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),e}();os.MenuItem=us;var hs={},ds={};Object.defineProperty(ds,"__esModule",{value:!0}),ds.Collection=void 0;var ps=function(){function e(){this._items=[]}return e.prototype.get=function(e){return this._items[e]},e.prototype.add=function(e){this._items.push(e),this.onItemAdded&&this.onItemAdded(e)},e.prototype.remove=function(e){var t=this._items.indexOf(e);t>=0&&(this._items=this._items.splice(t,1),this.onItemRemoved&&this.onItemRemoved(e))},e.prototype.indexOf=function(e){return this._items.indexOf(e)},Object.defineProperty(e.prototype,"length",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),e}();ds.Collection=ps;var gs={};Object.defineProperty(gs,"__esModule",{value:!0}),gs.PopupControl=void 0;var fs=as,ms=So,ys=Io,bs=function(){function e(){this._isOpen=!1}return e.prototype.keyDown=function(e){if(e.key===fs.Constants.keys.escape)this.closePopup(!0)},e.prototype.render=function(e){var t=this,r=document.createElement("div");return r.tabIndex=0,r.className=this.hostConfig.makeCssClassName("ac-ctrl","ac-ctrl-popup-container"),r.setAttribute("role","dialog"),r.setAttribute("aria-modal","true"),r.onkeydown=function(e){return t.keyDown(e),!e.cancelBubble},r.appendChild(this.renderContent()),r},e.prototype.focus=function(){this._popupElement&&this._popupElement.firstElementChild.focus()},e.prototype.popup=function(e){var t,r,n,i,o,a=this;if(!this._isOpen){this._overlayElement=document.createElement("div"),this._overlayElement.className=this.hostConfig.makeCssClassName("ac-ctrl-overlay"),this._overlayElement.tabIndex=0,this._overlayElement.style.width=document.documentElement.scrollWidth+"px",this._overlayElement.style.height=document.documentElement.scrollHeight+"px",this._overlayElement.onfocus=function(e){a.closePopup(!0)},document.body.appendChild(this._overlayElement);var s=e.getBoundingClientRect();this._popupElement=this.render(s),(t=this._popupElement.classList).remove.apply(t,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideLeftToRight","ac-ctrl-slideRightToLeft","ac-ctrl-slideTopToBottom","ac-ctrl-slideRightToLeft")),window.addEventListener("resize",function(e){a.closePopup(!0)});var l=e.getAttribute("aria-label");l&&this._popupElement.setAttribute("aria-label",l),this._overlayElement.appendChild(this._popupElement);var c,u=this._popupElement.getBoundingClientRect(),h=window.innerHeight-s.bottom,d=s.top,p=window.innerWidth-s.right,g=s.left,f=s.left+ms.getScrollX();if(d<u.height&&h<u.height){var m=Math.min(u.height,window.innerHeight);if(this._popupElement.style.maxHeight=m+"px",c=m<u.height?ms.getScrollY():ms.getScrollY()+s.top+(s.height-m)/2,g<u.width&&p<u.width){var y=Math.min(u.width,window.innerWidth);this._popupElement.style.maxWidth=y+"px",f=y<u.width?ms.getScrollX():ms.getScrollX()+s.left+(s.width-y)/2}else p>=u.width?(f=ms.getScrollX()+s.right,(r=this._popupElement.classList).add.apply(r,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideLeftToRight"))):(f=ms.getScrollX()+s.left-u.width,(n=this._popupElement.classList).add.apply(n,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideRightToLeft")))}else h>=u.height?(c=ms.getScrollY()+s.bottom,(i=this._popupElement.classList).add.apply(i,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideTopToBottom"))):(c=ms.getScrollY()+s.top-u.height,(o=this._popupElement.classList).add.apply(o,this.hostConfig.makeCssClassNames("ac-ctrl-slide","ac-ctrl-slideBottomToTop"))),p<u.width&&(f=ms.getScrollX()+s.right-u.width);this._popupElement.style.left=f+"px",this._popupElement.style.top=c+"px",this._popupElement.focus(),this._isOpen=!0}},e.prototype.closePopup=function(e){this._isOpen&&(document.body.removeChild(this._overlayElement),this._isOpen=!1,this.onClose&&this.onClose(this,e))},Object.defineProperty(e.prototype,"hostConfig",{get:function(){return this._hostConfig?this._hostConfig:ys.defaultHostConfig},set:function(e){this._hostConfig=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),e}();gs.PopupControl=bs;var vs=An&&An.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(hs,"__esModule",{value:!0}),hs.PopupMenu=void 0;var xs,Cs,ws,ks=as,Ss=ds,_s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._items=new Ss.Collection,t._renderedItems=[],t._selectedIndex=-1,t}return vs(t,e),t.prototype.renderContent=function(){var e=document.createElement("div");e.className=this.hostConfig.makeCssClassName("ac-ctrl ac-popup"),e.setAttribute("role","listbox");for(var t=0;t<this._items.length;t++){var r=this._items.get(t).render(this.hostConfig);r.tabIndex=0,e.appendChild(r),t===this.selectedIndex&&r.focus(),this._renderedItems.push(r)}return e},t.prototype.keyDown=function(t){e.prototype.keyDown.call(this,t);var r=this._selectedIndex;switch(t.key){case ks.Constants.keys.tab:this.closePopup(!0);break;case ks.Constants.keys.up:(r<=0||--r<0)&&(r=this._renderedItems.length-1),this.selectedIndex=r,t.cancelBubble=!0;break;case ks.Constants.keys.down:(r<0||++r>=this._renderedItems.length)&&(r=0),this.selectedIndex=r,t.cancelBubble=!0}},Object.defineProperty(t.prototype,"items",{get:function(){return this._items},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(e){e>=0&&e<this._renderedItems.length&&(this._renderedItems[e].focus(),this._selectedIndex=e)},enumerable:!1,configurable:!0}),t}(gs.PopupControl);hs.PopupMenu=_s,xs=is,Cs=An&&An.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),ws=An&&An.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Cs(t,e,r)},Object.defineProperty(xs,"__esModule",{value:!0}),ws(os,xs),ws(hs,xs);var Ts=An&&An.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),As=An&&An.__decorate||function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},Es=An&&An.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(t){o(t)}}function s(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})},Ps=An&&An.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(xo,"__esModule",{value:!0}),xo.BackgroundImage=xo.ContainerBase=xo.StylableCardElementContainer=xo.ContainerStyleProperty=xo.ActionSet=xo.ShowCardAction=xo.HttpAction=xo.HttpHeader=xo.ToggleVisibilityAction=xo.OpenUrlAction=xo.DataQuery=xo.ExecuteAction=xo.UniversalAction=xo.SubmitAction=xo.SubmitActionBase=xo.Action=xo.TimeInput=xo.TimeProperty=xo.DateInput=xo.NumberInput=xo.FilteredChoiceSet=xo.ChoiceSetInput=xo.ChoiceSetInputDataQuery=xo.Choice=xo.ToggleInput=xo.TextInput=xo.Input=xo.Media=xo.YouTubePlayer=xo.DailymotionPlayer=xo.VimeoPlayer=xo.IFrameMediaMediaPlayer=xo.CustomMediaPlayer=xo.HTML5MediaPlayer=xo.MediaPlayer=xo.MediaSource=xo.CaptionSource=xo.ContentSource=xo.ImageSet=xo.CardElementContainer=xo.Image=xo.FactSet=xo.Fact=xo.RichTextBlock=xo.TextRun=xo.TextBlock=xo.BaseTextBlock=xo.ActionProperty=xo.CardElement=xo.renderSeparation=void 0,xo.SerializationContext=xo.AdaptiveCard=xo.Authentication=xo.TokenExchangeResource=xo.AuthCardButton=xo.RefreshDefinition=xo.RefreshActionProperty=xo.ContainerWithActions=xo.ColumnSet=xo.Column=xo.Container=void 0;var Ms=Co,Is=wo,Bs=So,Ls=Io,js=Fa,Ns=qa,Ds=Lo,Os=es,zs=jo,Fs=is;function Rs(e){var t,r,n="undefined"==typeof window?"":null!==(r=null===(t=window.trustedTypes)||void 0===t?void 0:t.emptyHTML)&&void 0!==r?r:"";e.innerHTML=n}function $s(e,t,r){if(t.spacing>0||t.lineThickness&&t.lineThickness>0){var n=document.createElement("div");n.className=e.makeCssClassName("ac-"+(r===Ms.Orientation.Horizontal?"horizontal":"vertical")+"-separator"),n.setAttribute("aria-hidden","true");var i=t.lineColor?Bs.stringToCssColor(t.lineColor):"";return r===Ms.Orientation.Horizontal?t.lineThickness?(n.style.paddingTop=t.spacing/2+"px",n.style.marginBottom=t.spacing/2+"px",n.style.borderBottom=t.lineThickness+"px solid "+i):n.style.height=t.spacing+"px":t.lineThickness?(n.style.paddingLeft=t.spacing/2+"px",n.style.marginRight=t.spacing/2+"px",n.style.borderRight=t.lineThickness+"px solid "+i):n.style.width=t.spacing+"px",n.style.overflow="hidden",n.style.flex="0 0 auto",n}}xo.renderSeparation=$s;var Vs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._truncatedDueToOverflow=!1,t}return Ts(t,e),Object.defineProperty(t.prototype,"lang",{get:function(){var e=this.getValue(t.langProperty);return e||(this.parent?this.parent.lang:void 0)},set:function(e){this.setValue(t.langProperty,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getValue(t.isVisibleProperty)},set:function(e){Is.GlobalSettings.useAdvancedCardBottomTruncation&&!e&&this.undoOverflowTruncation(),this.isVisible!==e&&(this.setValue(t.isVisibleProperty,e),this.updateRenderedElementVisibility(),this._renderedElement&&rc(this)),this._renderedElement&&this._renderedElement.setAttribute("aria-expanded",e.toString())},enumerable:!1,configurable:!0}),t.prototype.internalRenderSeparator=function(){var e=$s(this.hostConfig,{spacing:this.hostConfig.getEffectiveSpacing(this.spacing),lineThickness:this.separator?this.hostConfig.separator.lineThickness:void 0,lineColor:this.separator?this.hostConfig.separator.lineColor:void 0},this.separatorOrientation);if(Is.GlobalSettings.alwaysBleedSeparators&&e&&this.separatorOrientation===Ms.Orientation.Horizontal){var t=this.getParentContainer();if(t&&t.getEffectivePadding()){var r=this.hostConfig.paddingDefinitionToSpacingDefinition(t.getEffectivePadding());e.style.marginLeft="-"+r.left+"px",e.style.marginRight="-"+r.right+"px"}}return e},t.prototype.updateRenderedElementVisibility=function(){var e=this.isDesignMode()||this.isVisible?this._defaultRenderedElementDisplayMode:"none";this._renderedElement&&(e?this._renderedElement.style.display=e:this._renderedElement.style.removeProperty("display")),this._separatorElement&&(this.parent&&this.parent.isFirstElement(this)?this._separatorElement.style.display="none":e?this._separatorElement.style.display=e:this._separatorElement.style.removeProperty("display"))},t.prototype.hideElementDueToOverflow=function(){this._renderedElement&&this.isVisible&&(this._renderedElement.style.visibility="hidden",this.isVisible=!1,rc(this,!1))},t.prototype.showElementHiddenDueToOverflow=function(){this._renderedElement&&!this.isVisible&&(this._renderedElement.style.removeProperty("visibility"),this.isVisible=!0,rc(this,!1))},t.prototype.handleOverflow=function(e){if(this.isVisible||this.isHiddenDueToOverflow()){var t=this.truncateOverflow(e);this._truncatedDueToOverflow=t||this._truncatedDueToOverflow,t?t&&!this.isVisible&&this.showElementHiddenDueToOverflow():this.hideElementDueToOverflow()}},t.prototype.resetOverflow=function(){var e=!1;return this._truncatedDueToOverflow&&(this.undoOverflowTruncation(),this._truncatedDueToOverflow=!1,e=!0),this.isHiddenDueToOverflow()&&this.showElementHiddenDueToOverflow(),e},t.prototype.getDefaultSerializationContext=function(){return new dc},t.prototype.createPlaceholderElement=function(){var e=this.getEffectiveStyleDefinition(),t=Bs.stringToCssColor(e.foregroundColors.default.subtle),r=document.createElement("div");return r.style.border="1px dashed "+t,r.style.padding="4px",r.style.minHeight="32px",r.style.fontSize="10px",t&&(r.style.color=t),r.innerText=zs.Strings.defaults.emptyElementText(this.getJsonTypeName()),r},t.prototype.adjustRenderedElementSize=function(e){"auto"===this.height?e.style.flex="0 0 auto":e.style.flex="1 1 auto"},t.prototype.updateInputsVisualState=function(e){var t=this.getAllInputs(),r=e?dl.MouseEnterOnCard:dl.MouseLeaveOnCard;t.forEach(function(e){return e.updateVisualState(r)})},t.prototype.isDisplayed=function(){return void 0!==this._renderedElement&&this.isVisible&&this._renderedElement.offsetHeight>0},t.prototype.overrideInternalRender=function(){return this.internalRender()},t.prototype.applyPadding=function(){if(this.separatorElement&&this.separatorOrientation===Ms.Orientation.Horizontal)if(Is.GlobalSettings.alwaysBleedSeparators&&!this.isBleeding()){var e=new Is.PaddingDefinition;this.getImmediateSurroundingPadding(e);var t=this.hostConfig.paddingDefinitionToSpacingDefinition(e);this.separatorElement.style.marginLeft="-"+t.left+"px",this.separatorElement.style.marginRight="-"+t.right+"px"}else this.separatorElement.style.marginRight="0",this.separatorElement.style.marginLeft="0"},t.prototype.truncateOverflow=function(e){return!1},t.prototype.undoOverflowTruncation=function(){},t.prototype.getDefaultPadding=function(){return new Is.PaddingDefinition},t.prototype.getHasBackground=function(e){return!1},t.prototype.getHasBorder=function(){return!1},t.prototype.getPadding=function(){return this._padding},t.prototype.setPadding=function(e){this._padding=e},t.prototype.shouldSerialize=function(e){return void 0!==e.elementRegistry.findByName(this.getJsonTypeName())},Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"separatorOrientation",{get:function(){return Ms.Orientation.Horizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultStyle",{get:function(){return Ms.ContainerStyle.Default},enumerable:!1,configurable:!0}),t.prototype.parse=function(t,r){e.prototype.parse.call(this,t,r||new dc)},t.prototype.asString=function(){return""},t.prototype.isBleeding=function(){return!1},t.prototype.getEffectiveStyle=function(){return this.parent?this.parent.getEffectiveStyle():this.defaultStyle},t.prototype.getEffectiveStyleDefinition=function(){return this.hostConfig.containerStyles.getStyleByName(this.getEffectiveStyle())},t.prototype.getEffectiveTextStyleDefinition=function(){return this.parent?this.parent.getEffectiveTextStyleDefinition():this.hostConfig.textStyles.default},t.prototype.getForbiddenActionTypes=function(){return[]},t.prototype.getImmediateSurroundingPadding=function(e,t,r,n,i){if(void 0===t&&(t=!0),void 0===r&&(r=!0),void 0===n&&(n=!0),void 0===i&&(i=!0),this.parent){var o=t&&this.parent.isTopElement(this),a=r&&this.parent.isRightMostElement(this),s=n&&this.parent.isBottomElement(this),l=i&&this.parent.isLeftMostElement(this),c=this.parent.getEffectivePadding();c&&(o&&c.top!==Ms.Spacing.None&&(e.top=c.top,o=!1),a&&c.right!==Ms.Spacing.None&&(e.right=c.right,a=!1),s&&c.bottom!==Ms.Spacing.None&&(e.bottom=c.bottom,s=!1),l&&c.left!==Ms.Spacing.None&&(e.left=c.left,l=!1)),(o||a||s||l)&&this.parent.getImmediateSurroundingPadding(e,o,a,s,l)}},t.prototype.getActionCount=function(){return 0},t.prototype.getActionAt=function(e){throw new Error(zs.Strings.errors.indexOutOfRange(e))},t.prototype.indexOfAction=function(e){for(var t=0;t<this.getActionCount();t++)if(this.getActionAt(t)===e)return t;return-1},t.prototype.remove=function(){return!!(this.parent&&this.parent instanceof Qs)&&this.parent.removeItem(this)},t.prototype.render=function(){return this._renderedElement=this.overrideInternalRender(),this._separatorElement=this.internalRenderSeparator(),this._renderedElement?(this.id&&(this._renderedElement.id=this.id),this.customCssSelector&&this._renderedElement.classList.add(this.customCssSelector),this._renderedElement.style.boxSizing="border-box",this._defaultRenderedElementDisplayMode=this._renderedElement.style.display?this._renderedElement.style.display:void 0,this.adjustRenderedElementSize(this._renderedElement),this.updateLayout(!1)):this.isDesignMode()&&(this._renderedElement=this.createPlaceholderElement()),this._renderedElement},t.prototype.updateLayout=function(e){this.updateRenderedElementVisibility(),this.applyPadding()},t.prototype.updateActionsEnabledState=function(){for(var e=0,t=this.getRootElement().getAllActions();e<t.length;e++){t[e].updateEnabledState()}},t.prototype.indexOf=function(e){return-1},t.prototype.isDesignMode=function(){var e=this.getRootElement();return e instanceof uc&&e.designMode},t.prototype.isFirstElement=function(e){return!0},t.prototype.isLastElement=function(e){return!0},t.prototype.isAtTheVeryLeft=function(){return!this.parent||this.parent.isLeftMostElement(this)&&this.parent.isAtTheVeryLeft()},t.prototype.isAtTheVeryRight=function(){return!this.parent||this.parent.isRightMostElement(this)&&this.parent.isAtTheVeryRight()},t.prototype.isAtTheVeryTop=function(){return!this.parent||this.parent.isFirstElement(this)&&this.parent.isAtTheVeryTop()},t.prototype.isAtTheVeryBottom=function(){return!this.parent||this.parent.isLastElement(this)&&this.parent.isAtTheVeryBottom()},t.prototype.isBleedingAtTop=function(){return!1},t.prototype.isBleedingAtBottom=function(){return!1},t.prototype.isLeftMostElement=function(e){return!0},t.prototype.isRightMostElement=function(e){return!0},t.prototype.isTopElement=function(e){return this.isFirstElement(e)},t.prototype.isBottomElement=function(e){return this.isLastElement(e)},t.prototype.isHiddenDueToOverflow=function(){return void 0!==this._renderedElement&&"hidden"===this._renderedElement.style.visibility},t.prototype.getRootElement=function(){return this.getRootObject()},t.prototype.getParentContainer=function(){for(var e=this.parent;e;){if(e instanceof Yl)return e;e=e.parent}},t.prototype.getAllInputs=function(e){return[]},t.prototype.getAllActions=function(){for(var e=[],t=0;t<this.getActionCount();t++){var r=this.getActionAt(t);r&&e.push(r)}return e},t.prototype.getResourceInformation=function(){return[]},t.prototype.getElementById=function(e){return this.id===e?this:void 0},t.prototype.getActionById=function(e){},t.prototype.getElementByIdFromAction=function(e){for(var t=void 0,r=0;r<this.getActionCount();r++){var n=this.getActionAt(r);if(n instanceof $l&&(t=n.card.getElementById(e)))break}return t},t.prototype.getEffectivePadding=function(){var e=this.getPadding();return e||this.getDefaultPadding()},t.prototype.getEffectiveHorizontalAlignment=function(){return void 0!==this.horizontalAlignment?this.horizontalAlignment:this.parent?this.parent.getEffectiveHorizontalAlignment():Ms.HorizontalAlignment.Left},Object.defineProperty(t.prototype,"hostConfig",{get:function(){return this._hostConfig?this._hostConfig:this.parent?this.parent.hostConfig:Ls.defaultHostConfig},set:function(e){this._hostConfig=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.parent?this.parent.indexOf(this):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInteractive",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInline",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVisibleSeparator",{get:function(){return!(!this.parent||!this.separatorElement)&&(!this.parent.isFirstElement(this)&&(this.isVisible||this.isDesignMode()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"separatorElement",{get:function(){return this._separatorElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),t.langProperty=new Ds.StringProperty(Ds.Versions.v1_1,"lang",!0,/^[a-z]{2,3}$/gi),t.isVisibleProperty=new Ds.BoolProperty(Ds.Versions.v1_2,"isVisible",!0),t.separatorProperty=new Ds.BoolProperty(Ds.Versions.v1_0,"separator",!1),t.heightProperty=new Ds.ValueSetProperty(Ds.Versions.v1_1,"height",[{value:"auto"},{value:"stretch"}],"auto"),t.horizontalAlignmentProperty=new Ds.EnumProperty(Ds.Versions.v1_0,"horizontalAlignment",Ms.HorizontalAlignment),t.spacingProperty=new Ds.EnumProperty(Ds.Versions.v1_0,"spacing",Ms.Spacing,Ms.Spacing.Default),As([(0,Ds.property)(t.horizontalAlignmentProperty)],t.prototype,"horizontalAlignment",void 0),As([(0,Ds.property)(t.spacingProperty)],t.prototype,"spacing",void 0),As([(0,Ds.property)(t.separatorProperty)],t.prototype,"separator",void 0),As([(0,Ds.property)(t.heightProperty)],t.prototype,"height",void 0),As([(0,Ds.property)(t.langProperty)],t.prototype,"lang",null),As([(0,Ds.property)(t.isVisibleProperty)],t.prototype,"isVisible",null),t}(Ns.CardObject);xo.CardElement=Vs;var Ws=function(e){function t(t,r,n){void 0===n&&(n=[]);var i=e.call(this,t,r,void 0)||this;return i.targetVersion=t,i.name=r,i.forbiddenActionTypes=n,i}return Ts(t,e),t.prototype.parse=function(e,t,r){var n=e;return r.parseAction(n,t[this.name],this.forbiddenActionTypes,n.isDesignMode())},t.prototype.toJSON=function(e,t,r,n){n.serializeValue(t,this.name,r?r.toJSON(n):void 0,void 0,!0)},t}(Ds.PropertyDefinition);xo.ActionProperty=Ws;var qs=function(e){function t(t){var r=e.call(this)||this;return r.ariaHidden=!1,t&&(r.text=t),r}return Ts(t,e),t.prototype.populateSchema=function(r){e.prototype.populateSchema.call(this,r),r.remove(t.selectActionProperty)},Object.defineProperty(t.prototype,"text",{get:function(){return this.getValue(t.textProperty)},set:function(e){this.setText(e)},enumerable:!1,configurable:!0}),t.prototype.getFontSize=function(e){switch(this.effectiveSize){case Ms.TextSize.Small:return e.fontSizes.small;case Ms.TextSize.Medium:return e.fontSizes.medium;case Ms.TextSize.Large:return e.fontSizes.large;case Ms.TextSize.ExtraLarge:return e.fontSizes.extraLarge;default:return e.fontSizes.default}},t.prototype.getColorDefinition=function(e,t){switch(t){case Ms.TextColor.Accent:return e.accent;case Ms.TextColor.Dark:return e.dark;case Ms.TextColor.Light:return e.light;case Ms.TextColor.Good:return e.good;case Ms.TextColor.Warning:return e.warning;case Ms.TextColor.Attention:return e.attention;default:return e.default}},t.prototype.setText=function(e){this.setValue(t.textProperty,e)},t.prototype.init=function(e){this.size=e.size,this.weight=e.weight,this.color=e.color,this.isSubtle=e.isSubtle},t.prototype.asString=function(){return this.text},t.prototype.applyStylesTo=function(e){var t,r=this.hostConfig.getFontTypeDefinition(this.effectiveFontType);switch(r.fontFamily&&(e.style.fontFamily=r.fontFamily),this.effectiveSize){case Ms.TextSize.Small:t=r.fontSizes.small;break;case Ms.TextSize.Medium:t=r.fontSizes.medium;break;case Ms.TextSize.Large:t=r.fontSizes.large;break;case Ms.TextSize.ExtraLarge:t=r.fontSizes.extraLarge;break;default:t=r.fontSizes.default}e.style.fontSize=t+"px";var n,i=this.getColorDefinition(this.getEffectiveStyleDefinition().foregroundColors,this.effectiveColor),o=Bs.stringToCssColor(this.effectiveIsSubtle?i.subtle:i.default);switch(o&&(e.style.color=o),this.effectiveWeight){case Ms.TextWeight.Lighter:n=r.fontWeights.lighter;break;case Ms.TextWeight.Bolder:n=r.fontWeights.bolder;break;default:n=r.fontWeights.default}e.style.fontWeight=n.toString(),this.ariaHidden&&e.setAttribute("aria-hidden","true")},t.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return this.selectAction&&t.push(this.selectAction),t},Object.defineProperty(t.prototype,"effectiveColor",{get:function(){return void 0!==this.color?this.color:this.getEffectiveTextStyleDefinition().color},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveFontType",{get:function(){return void 0!==this.fontType?this.fontType:this.getEffectiveTextStyleDefinition().fontType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveIsSubtle",{get:function(){return void 0!==this.isSubtle?this.isSubtle:this.getEffectiveTextStyleDefinition().isSubtle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveSize",{get:function(){return void 0!==this.size?this.size:this.getEffectiveTextStyleDefinition().size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"effectiveWeight",{get:function(){return void 0!==this.weight?this.weight:this.getEffectiveTextStyleDefinition().weight},enumerable:!1,configurable:!0}),t.textProperty=new Ds.StringProperty(Ds.Versions.v1_0,"text",!0),t.sizeProperty=new Ds.EnumProperty(Ds.Versions.v1_0,"size",Ms.TextSize),t.weightProperty=new Ds.EnumProperty(Ds.Versions.v1_0,"weight",Ms.TextWeight),t.colorProperty=new Ds.EnumProperty(Ds.Versions.v1_0,"color",Ms.TextColor),t.isSubtleProperty=new Ds.BoolProperty(Ds.Versions.v1_0,"isSubtle"),t.fontTypeProperty=new Ds.EnumProperty(Ds.Versions.v1_2,"fontType",Ms.FontType),t.selectActionProperty=new Ws(Ds.Versions.v1_1,"selectAction",["Action.ShowCard"]),As([(0,Ds.property)(t.sizeProperty)],t.prototype,"size",void 0),As([(0,Ds.property)(t.weightProperty)],t.prototype,"weight",void 0),As([(0,Ds.property)(t.colorProperty)],t.prototype,"color",void 0),As([(0,Ds.property)(t.fontTypeProperty)],t.prototype,"fontType",void 0),As([(0,Ds.property)(t.isSubtleProperty)],t.prototype,"isSubtle",void 0),As([(0,Ds.property)(t.textProperty)],t.prototype,"text",null),As([(0,Ds.property)(t.selectActionProperty)],t.prototype,"selectAction",void 0),t}(Vs);xo.BaseTextBlock=qs;var Hs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.wrap=!1,t._treatAsPlainText=!0,t.useMarkdown=!0,t}var r,n;return Ts(t,e),t.prototype.restoreOriginalContent=function(){var e,r;if(void 0!==this.renderedElement){this.maxLines&&this.maxLines>0&&(this.renderedElement.style.maxHeight=this._computedLineHeight*this.maxLines+"px");var n=null!==(r=null===(e=t._ttRoundtripPolicy)||void 0===e?void 0:e.createHTML(this._originalInnerHtml))&&void 0!==r?r:this._originalInnerHtml;this.renderedElement.innerHTML=n}},t.prototype.truncateIfSupported=function(e){if(void 0!==this.renderedElement){var t=this.renderedElement.children,r=!t.length;if(r||1===t.length&&"p"===t[0].tagName.toLowerCase()&&!t[0].children.length){var n=r?this.renderedElement:t[0];return Bs.truncateText(n,e,this._computedLineHeight),!0}}return!1},t.prototype.setText=function(t){e.prototype.setText.call(this,t),this._processedText=void 0},t.prototype.internalRender=function(){var e,r,n=this;if(this._processedText=void 0,this.text){var i=this.preProcessPropertyValue(qs.textProperty),o=this.hostConfig,a=void 0;if(this.forElementId){var s=document.createElement("label");s.htmlFor=this.forElementId,a=s}else a=document.createElement("div");if(a.classList.add(o.makeCssClassName("ac-textBlock")),a.style.overflow="hidden",this.applyStylesTo(a),"heading"===this.style){a.setAttribute("role","heading");var l=this.hostConfig.textBlock.headingLevel;void 0!==l&&l>0&&a.setAttribute("aria-level",l.toString())}if(this.selectAction&&o.supportsInteractivity&&(a.onclick=function(e){n.selectAction&&n.selectAction.isEffectivelyEnabled()&&(e.preventDefault(),e.cancelBubble=!0,n.selectAction.execute())},this.selectAction.setupElementForAccessibility(a),this.selectAction.isEffectivelyEnabled()&&a.classList.add(o.makeCssClassName("ac-selectable"))),!this._processedText){this._treatAsPlainText=!0;var c=js.formatText(this.lang,i);if(this.useMarkdown&&c){Is.GlobalSettings.allowMarkForTextHighlighting&&(c=c.replace(/<mark>/g,"===").replace(/<\/mark>/g,"/==/"));var u=uc.applyMarkdown(c);if(u.didProcess&&u.outputHtml){if(this._processedText=u.outputHtml,this._treatAsPlainText=!1,Is.GlobalSettings.allowMarkForTextHighlighting&&this._processedText){var h="",d=this.getEffectiveStyleDefinition();d.highlightBackgroundColor&&(h+="background-color: "+d.highlightBackgroundColor+";"),d.highlightForegroundColor&&(h+="color: "+d.highlightForegroundColor+";"),h&&(h='style="'+h+'"'),this._processedText=this._processedText.replace(/===/g,"<mark "+h+">").replace(/\/==\//g,"</mark>")}}else this._processedText=c,this._treatAsPlainText=!0}else this._processedText=c,this._treatAsPlainText=!0}if(this._processedText||(this._processedText=""),this._treatAsPlainText)a.innerText=this._processedText;else{var p=null!==(r=null===(e=t._ttMarkdownPolicy)||void 0===e?void 0:e.createHTML(this._processedText))&&void 0!==r?r:this._processedText;a.innerHTML=p}if(a.firstElementChild instanceof HTMLElement){var g=a.firstElementChild;g.style.marginTop="0px",g.style.width="100%",this.wrap||(g.style.overflow="hidden",g.style.textOverflow="ellipsis")}a.lastElementChild instanceof HTMLElement&&(a.lastElementChild.style.marginBottom="0px");for(var f=a.getElementsByTagName("a"),m=function(e){e.classList.add(o.makeCssClassName("ac-anchor")),e.target="_blank",e.onclick=function(t){ec(n,e,t)&&(t.preventDefault(),t.cancelBubble=!0)},e.oncontextmenu=function(t){return!ec(n,e,t)||(t.preventDefault(),t.cancelBubble=!0,!1)}},y=0,b=Array.from(f);y<b.length;y++){m(b[y])}return this.wrap?(a.style.wordWrap="break-word",this.maxLines&&this.maxLines>0&&(a.style.overflow="hidden",Bs.isInternetExplorer()||!Is.GlobalSettings.useWebkitLineClamp?a.style.maxHeight=this._computedLineHeight*this.maxLines+"px":(a.style.removeProperty("line-height"),a.style.display="-webkit-box",a.style.webkitBoxOrient="vertical",a.style.webkitLineClamp=this.maxLines.toString()))):(a.style.whiteSpace="nowrap",a.style.textOverflow="ellipsis"),(Is.GlobalSettings.useAdvancedTextBlockTruncation||Is.GlobalSettings.useAdvancedCardBottomTruncation)&&(this._originalInnerHtml=a.innerHTML),a}},t.prototype.truncateOverflow=function(e){return e>=this._computedLineHeight&&this.truncateIfSupported(e)},t.prototype.undoOverflowTruncation=function(){if(this.restoreOriginalContent(),Is.GlobalSettings.useAdvancedTextBlockTruncation&&this.maxLines){var e=this._computedLineHeight*this.maxLines;this.truncateIfSupported(e)}},t.prototype.applyStylesTo=function(t){switch(e.prototype.applyStylesTo.call(this,t),this.getEffectiveHorizontalAlignment()){case Ms.HorizontalAlignment.Center:t.style.textAlign="center";break;case Ms.HorizontalAlignment.Right:t.style.textAlign="end";break;default:t.style.textAlign="start"}var r=this.hostConfig.lineHeights;if(r)switch(this.effectiveSize){case Ms.TextSize.Small:this._computedLineHeight=r.small;break;case Ms.TextSize.Medium:this._computedLineHeight=r.medium;break;case Ms.TextSize.Large:this._computedLineHeight=r.large;break;case Ms.TextSize.ExtraLarge:this._computedLineHeight=r.extraLarge;break;default:this._computedLineHeight=r.default}else this._computedLineHeight=1.33*this.getFontSize(this.hostConfig.getFontTypeDefinition(this.effectiveFontType));t.style.lineHeight=this._computedLineHeight+"px"},t.prototype.getJsonTypeName=function(){return"TextBlock"},t.prototype.getEffectiveTextStyleDefinition=function(){return this.style?this.hostConfig.textStyles.getStyleByName(this.style):e.prototype.getEffectiveTextStyleDefinition.call(this)},t.prototype.updateLayout=function(t){void 0===t&&(t=!1),e.prototype.updateLayout.call(this,t),Is.GlobalSettings.useAdvancedTextBlockTruncation&&this.maxLines&&this.isDisplayed()&&(this.restoreOriginalContent(),this.truncateIfSupported(this._computedLineHeight*this.maxLines))},t.wrapProperty=new Ds.BoolProperty(Ds.Versions.v1_0,"wrap",!1),t.maxLinesProperty=new Ds.NumProperty(Ds.Versions.v1_0,"maxLines"),t.styleProperty=new Ds.ValueSetProperty(Ds.Versions.v1_5,"style",[{value:"default"},{value:"columnHeader"},{value:"heading"}]),t._ttMarkdownPolicy="undefined"==typeof window||null===(r=window.trustedTypes)||void 0===r?void 0:r.createPolicy("adaptivecards#markdownPassthroughPolicy",{createHTML:function(e){return e}}),t._ttRoundtripPolicy="undefined"==typeof window||null===(n=window.trustedTypes)||void 0===n?void 0:n.createPolicy("adaptivecards#restoreContentsPolicy",{createHTML:function(e){return e}}),As([(0,Ds.property)(t.wrapProperty)],t.prototype,"wrap",void 0),As([(0,Ds.property)(t.maxLinesProperty)],t.prototype,"maxLines",void 0),As([(0,Ds.property)(t.styleProperty)],t.prototype,"style",void 0),t}(qs);xo.TextBlock=Hs;var Us=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.italic=!1,t.strikethrough=!1,t.highlight=!1,t.underline=!1,t}return Ts(t,e),t.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.add(qs.selectActionProperty)},t.prototype.internalRender=function(){var e=this;if(this.text){var t=this.preProcessPropertyValue(qs.textProperty),r=this.hostConfig,n=js.formatText(this.lang,t);n||(n="");var i=document.createElement("span");if(i.classList.add(r.makeCssClassName("ac-textRun")),this.applyStylesTo(i),this.selectAction&&r.supportsInteractivity){var o=document.createElement("a");o.classList.add(r.makeCssClassName("ac-anchor"));var a=this.selectAction.getHref();o.href=a||"",o.target="_blank",o.onclick=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(o),o.innerText=n,i.appendChild(o)}else i.innerText=n;return i}},t.prototype.applyStylesTo=function(t){if(e.prototype.applyStylesTo.call(this,t),this.italic&&(t.style.fontStyle="italic"),this.strikethrough&&(t.style.textDecoration="line-through"),this.highlight){var r=this.getColorDefinition(this.getEffectiveStyleDefinition().foregroundColors,this.effectiveColor),n=Bs.stringToCssColor(this.effectiveIsSubtle?r.highlightColors.subtle:r.highlightColors.default);n&&(t.style.backgroundColor=n)}this.underline&&(t.style.textDecoration="underline")},t.prototype.getJsonTypeName=function(){return"TextRun"},Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInline",{get:function(){return!0},enumerable:!1,configurable:!0}),t.italicProperty=new Ds.BoolProperty(Ds.Versions.v1_2,"italic",!1),t.strikethroughProperty=new Ds.BoolProperty(Ds.Versions.v1_2,"strikethrough",!1),t.highlightProperty=new Ds.BoolProperty(Ds.Versions.v1_2,"highlight",!1),t.underlineProperty=new Ds.BoolProperty(Ds.Versions.v1_3,"underline",!1),As([(0,Ds.property)(t.italicProperty)],t.prototype,"italic",void 0),As([(0,Ds.property)(t.strikethroughProperty)],t.prototype,"strikethrough",void 0),As([(0,Ds.property)(t.highlightProperty)],t.prototype,"highlight",void 0),As([(0,Ds.property)(t.underlineProperty)],t.prototype,"underline",void 0),t}(qs);xo.TextRun=Us;var Gs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._inlines=[],t}return Ts(t,e),t.prototype.internalAddInline=function(e,t){if(void 0===t&&(t=!1),!e.isInline)throw new Error(zs.Strings.errors.elementCannotBeUsedAsInline());if(!(void 0===e.parent||t)&&e.parent!==this)throw new Error(zs.Strings.errors.inlineAlreadyParented());e.setParent(this),this._inlines.push(e)},t.prototype.internalParse=function(t,r){if(e.prototype.internalParse.call(this,t,r),this._inlines=[],Array.isArray(t.inlines))for(var n=0,i=t.inlines;n<i.length;n++){var o=i[n],a=void 0;if("string"==typeof o){var s=new Us;s.text=o,a=s}else a=r.parseElement(this,o,[],!1);a&&this.internalAddInline(a,!0)}},t.prototype.internalToJSON=function(t,r){if(e.prototype.internalToJSON.call(this,t,r),this._inlines.length>0){for(var n=[],i=0,o=this._inlines;i<o.length;i++){var a=o[i];n.push(a.toJSON(r))}r.serializeValue(t,"inlines",n)}},t.prototype.internalRender=function(){if(this._inlines.length>0){var e=void 0;if(this.forElementId){var t=document.createElement("label");t.htmlFor=this.forElementId,e=t}else e=document.createElement("div");switch(e.className=this.hostConfig.makeCssClassName("ac-richTextBlock"),this.getEffectiveHorizontalAlignment()){case Ms.HorizontalAlignment.Center:e.style.textAlign="center";break;case Ms.HorizontalAlignment.Right:e.style.textAlign="end";break;default:e.style.textAlign="start"}for(var r=0,n=0,i=this._inlines;n<i.length;n++){var o=i[n].render();o&&(e.appendChild(o),r++)}if(r>0)return e}},t.prototype.asString=function(){for(var e="",t=0,r=this._inlines;t<r.length;t++){e+=r[t].asString()}return e},t.prototype.getJsonTypeName=function(){return"RichTextBlock"},t.prototype.getInlineCount=function(){return this._inlines.length},t.prototype.getInlineAt=function(e){if(e>=0&&e<this._inlines.length)return this._inlines[e];throw new Error(zs.Strings.errors.indexOutOfRange(e))},t.prototype.addInline=function(e){"string"==typeof e?this.internalAddInline(new Us(e)):this.internalAddInline(e)},t.prototype.removeInline=function(e){var t=this._inlines.indexOf(e);return t>=0&&(this._inlines[t].setParent(void 0),this._inlines.splice(t,1),!0)},t}(Vs);xo.RichTextBlock=Gs;var Xs=function(e){function t(t,r){var n=e.call(this)||this;return n.name=t,n.value=r,n}return Ts(t,e),t.prototype.getSchemaKey=function(){return"Fact"},t.titleProperty=new Ds.StringProperty(Ds.Versions.v1_0,"title"),t.valueProperty=new Ds.StringProperty(Ds.Versions.v1_0,"value"),As([(0,Ds.property)(t.titleProperty)],t.prototype,"name",void 0),As([(0,Ds.property)(t.valueProperty)],t.prototype,"value",void 0),t}(Ds.SerializableObject);xo.Fact=Xs;var Js=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.internalRender=function(){var e=void 0,t=this.hostConfig;if(this.facts.length>0){(e=document.createElement("table")).style.borderWidth="0px",e.style.borderSpacing="0px",e.style.borderStyle="none",e.style.borderCollapse="collapse",e.style.display="block",e.style.overflow="hidden",e.classList.add(t.makeCssClassName("ac-factset")),e.setAttribute("role","presentation");for(var r=0;r<this.facts.length;r++){var n=document.createElement("tr");r>0&&(n.style.marginTop=t.factSet.spacing+"px");var i=document.createElement("td");i.style.padding="0",i.classList.add(t.makeCssClassName("ac-fact-title")),t.factSet.title.maxWidth&&(i.style.maxWidth=t.factSet.title.maxWidth+"px"),i.style.verticalAlign="top";var o=new Hs;o.setParent(this),o.text=!this.facts[r].name&&this.isDesignMode()?"Title":this.facts[r].name,o.size=t.factSet.title.size,o.color=t.factSet.title.color,o.isSubtle=t.factSet.title.isSubtle,o.weight=t.factSet.title.weight,o.wrap=t.factSet.title.wrap,o.spacing=Ms.Spacing.None,Bs.appendChild(i,o.render()),Bs.appendChild(n,i),(i=document.createElement("td")).style.width="10px",Bs.appendChild(n,i),(i=document.createElement("td")).style.padding="0",i.style.verticalAlign="top",i.classList.add(t.makeCssClassName("ac-fact-value")),(o=new Hs).setParent(this),o.text=this.facts[r].value,o.size=t.factSet.value.size,o.color=t.factSet.value.color,o.isSubtle=t.factSet.value.isSubtle,o.weight=t.factSet.value.weight,o.wrap=t.factSet.value.wrap,o.spacing=Ms.Spacing.None,Bs.appendChild(i,o.render()),Bs.appendChild(n,i),Bs.appendChild(e,n)}}return e},t.prototype.getJsonTypeName=function(){return"FactSet"},t.factsProperty=new Ds.SerializableObjectCollectionProperty(Ds.Versions.v1_0,"facts",Xs),As([(0,Ds.property)(t.factsProperty)],t.prototype,"facts",void 0),t}(Vs);xo.FactSet=Js;var Ys=function(e){function t(t,r,n,i){var o=e.call(this,t,r)||this;return o.targetVersion=t,o.name=r,o.internalName=n,o.fallbackProperty=i,o}return Ts(t,e),t.prototype.getInternalName=function(){return this.internalName},t.prototype.parse=function(e,t,r){var n=void 0,i=t[this.name];if(void 0===i)return this.defaultValue;var o=!1;if("string"==typeof i){try{var a=Is.SizeAndUnit.parse(i,!0);a.unit===Ms.SizeUnit.Pixel&&(n=a.physicalSize,o=!0)}catch(s){}!o&&this.fallbackProperty&&(o=this.fallbackProperty.isValidValue(i,r))}return o||r.logParseEvent(e,Ms.ValidationEvent.InvalidPropertyValue,zs.Strings.errors.invalidPropertyValue(i,this.name)),n},t.prototype.toJSON=function(e,t,r,n){n.serializeValue(t,this.name,"number"!=typeof r||isNaN(r)?void 0:r+"px")},t}(Ds.PropertyDefinition),Zs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.size=Ms.Size.Auto,t.style=Ms.ImageStyle.Default,t}return Ts(t,e),t.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.remove(Vs.heightProperty)},t.prototype.applySize=function(e){if(this.pixelWidth||this.pixelHeight)this.pixelWidth&&(e.style.width=this.pixelWidth+"px"),this.pixelHeight&&(e.style.height=this.pixelHeight+"px");else if(this.maxHeight){switch(this.size){case Ms.Size.Small:e.style.height=this.hostConfig.imageSizes.small+"px";break;case Ms.Size.Large:e.style.height=this.hostConfig.imageSizes.large+"px";break;default:e.style.height=this.hostConfig.imageSizes.medium+"px"}e.style.maxHeight=this.maxHeight+"px"}else{switch(this.size){case Ms.Size.Stretch:e.style.width="100%";break;case Ms.Size.Auto:e.style.maxWidth="100%";break;case Ms.Size.Small:e.style.width=this.hostConfig.imageSizes.small+"px";break;case Ms.Size.Large:e.style.width=this.hostConfig.imageSizes.large+"px";break;case Ms.Size.Medium:e.style.width=this.hostConfig.imageSizes.medium+"px"}e.style.maxHeight="100%"}},Object.defineProperty(t.prototype,"useDefaultSizing",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.internalRender=function(){var e=this,r=void 0;if(this.url){(r=document.createElement("div")).style.display="flex",r.style.alignItems="flex-start";var n=this.hostConfig;switch(this.getEffectiveHorizontalAlignment()){case Ms.HorizontalAlignment.Center:r.style.justifyContent="center";break;case Ms.HorizontalAlignment.Right:r.style.justifyContent="flex-end";break;default:r.style.justifyContent="flex-start"}var i=document.createElement("img");this.renderedImageElement=i,i.onload=function(t){Ql(e)},i.onerror=function(t){if(e.renderedElement){var r=e.getRootElement();if(Rs(e.renderedElement),r&&r.designMode){var n=document.createElement("div");n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.backgroundColor="#EEEEEE",n.style.color="black",n.innerText=":-(",n.style.padding="10px",e.applySize(n),e.renderedElement.appendChild(n)}}Ql(e)},i.style.minWidth="0",i.classList.add(n.makeCssClassName("ac-image")),this.selectAction&&n.supportsInteractivity&&(i.onkeypress=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&("Enter"===t.code||"Space"===t.code)&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},i.onclick=function(t){e.selectAction&&e.selectAction.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.selectAction.execute())},this.selectAction.setupElementForAccessibility(i),this.selectAction.isEffectivelyEnabled()&&i.classList.add(n.makeCssClassName("ac-selectable"))),this.applySize(i),this.style===Ms.ImageStyle.Person&&(i.style.borderRadius="50%",i.style.backgroundPosition="50% 50%",i.style.backgroundRepeat="no-repeat");var o=Bs.stringToCssColor(this.backgroundColor);o&&(i.style.backgroundColor=o),this.setImageSource(i);var a=this.preProcessPropertyValue(t.altTextProperty);a&&(i.alt=a),r.appendChild(i)}return r},t.prototype.getJsonTypeName=function(){return"Image"},t.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return this.selectAction&&t.push(this.selectAction),t},t.prototype.getActionById=function(t){var r=e.prototype.getActionById.call(this,t);return!r&&this.selectAction&&(r=this.selectAction.getActionById(t)),r},t.prototype.getResourceInformation=function(){return this.url?[{url:this.url,mimeType:"image"}]:[]},t.prototype.setImageSource=function(e){var r=new Ks(this.forceLoad,this.url);r.configureImage(this),e.src=this.preProcessPropertyValue(t.urlProperty),r.resetImage(this)},t.urlProperty=new Ds.StringProperty(Ds.Versions.v1_0,"url"),t.altTextProperty=new Ds.StringProperty(Ds.Versions.v1_0,"altText"),t.backgroundColorProperty=new Ds.StringProperty(Ds.Versions.v1_1,"backgroundColor"),t.styleProperty=new Ds.EnumProperty(Ds.Versions.v1_0,"style",Ms.ImageStyle,Ms.ImageStyle.Default),t.sizeProperty=new Ds.EnumProperty(Ds.Versions.v1_0,"size",Ms.Size,Ms.Size.Auto),t.pixelWidthProperty=new Ys(Ds.Versions.v1_1,"width","pixelWidth"),t.pixelHeightProperty=new Ys(Ds.Versions.v1_1,"height","pixelHeight",Vs.heightProperty),t.selectActionProperty=new Ws(Ds.Versions.v1_1,"selectAction",["Action.ShowCard"]),t.shouldForceLoadProperty=new Ds.BoolProperty(Ds.Versions.v1_6,"forceLoad",!1),As([(0,Ds.property)(t.urlProperty)],t.prototype,"url",void 0),As([(0,Ds.property)(t.altTextProperty)],t.prototype,"altText",void 0),As([(0,Ds.property)(t.backgroundColorProperty)],t.prototype,"backgroundColor",void 0),As([(0,Ds.property)(t.sizeProperty)],t.prototype,"size",void 0),As([(0,Ds.property)(t.styleProperty)],t.prototype,"style",void 0),As([(0,Ds.property)(t.pixelWidthProperty)],t.prototype,"pixelWidth",void 0),As([(0,Ds.property)(t.pixelHeightProperty)],t.prototype,"pixelHeight",void 0),As([(0,Ds.property)(t.selectActionProperty)],t.prototype,"selectAction",void 0),As([(0,Ds.property)(t.shouldForceLoadProperty)],t.prototype,"forceLoad",void 0),t}(Vs);xo.Image=Zs;var Ks=function(){function e(e,t){this.doForceLoad=e,this.url=t,t&&t.length&&e&&(this.uniqueHash="?"+Date.now(),this.urlWithForceLoadOption=t+this.uniqueHash)}return e.prototype.configureImage=function(e){this.urlWithForceLoadOption&&this.urlWithForceLoadOption.length&&(e.url=this.urlWithForceLoadOption)},e.prototype.resetImage=function(e){e.url=this.url},e}(),Qs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allowVerticalOverflow=!1,t}return Ts(t,e),t.prototype.populateSchema=function(r){e.prototype.populateSchema.call(this,r),this.isSelectable||r.remove(t.selectActionProperty)},t.prototype.isElementAllowed=function(e){return this.hostConfig.supportsInteractivity||!e.isInteractive},t.prototype.applyPadding=function(){if(e.prototype.applyPadding.call(this),this.renderedElement){var t=new Is.SpacingDefinition;this.getEffectivePadding()&&(t=this.hostConfig.paddingDefinitionToSpacingDefinition(this.getEffectivePadding())),this.renderedElement.style.paddingTop=t.top+"px",this.renderedElement.style.paddingRight=t.right+"px",this.renderedElement.style.paddingBottom=t.bottom+"px",this.renderedElement.style.paddingLeft=t.left+"px",this.renderedElement.style.marginRight="0",this.renderedElement.style.marginLeft="0"}},Object.defineProperty(t.prototype,"isSelectable",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.forbiddenChildElements=function(){return[]},t.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this);for(var t=0;t<this.getItemCount();t++)this.getItemAt(t).releaseDOMResources()},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t);for(var r=0;r<this.getItemCount();r++){var n=this.getItemAt(r);!this.hostConfig.supportsInteractivity&&n.isInteractive&&t.addFailure(this,Ms.ValidationEvent.InteractivityNotAllowed,zs.Strings.errors.interactivityNotAllowed()),this.isElementAllowed(n)||t.addFailure(this,Ms.ValidationEvent.InteractivityNotAllowed,zs.Strings.errors.elementTypeNotAllowed(n.getJsonTypeName())),n.internalValidateProperties(t)}this._selectAction&&this._selectAction.internalValidateProperties(t)},t.prototype.render=function(){var t=this,r=e.prototype.render.call(this);if(r){var n=this.hostConfig;this.allowVerticalOverflow&&(r.style.overflowX="hidden",r.style.overflowY="auto"),r&&this.isSelectable&&this._selectAction&&n.supportsInteractivity&&(r.onclick=function(e){t._selectAction&&t._selectAction.isEffectivelyEnabled()&&(e.preventDefault(),e.cancelBubble=!0,t._selectAction.execute())},r.onkeypress=function(e){t._selectAction&&t._selectAction.isEffectivelyEnabled()&&("Enter"===e.code||"Space"===e.code)&&(e.preventDefault(),e.cancelBubble=!0,t._selectAction.execute())},this._selectAction.setupElementForAccessibility(r),this._selectAction.isEffectivelyEnabled()&&r.classList.add(n.makeCssClassName("ac-selectable")))}return r},t.prototype.updateLayout=function(t){if(void 0===t&&(t=!0),e.prototype.updateLayout.call(this,t),t)for(var r=0;r<this.getItemCount();r++)this.getItemAt(r).updateLayout()},t.prototype.getAllInputs=function(e){void 0===e&&(e=!0);for(var t=[],r=0;r<this.getItemCount();r++)t.push.apply(t,this.getItemAt(r).getAllInputs(e));return t},t.prototype.getAllActions=function(){for(var t=e.prototype.getAllActions.call(this),r=0;r<this.getItemCount();r++)t.push.apply(t,this.getItemAt(r).getAllActions());return this._selectAction&&t.push(this._selectAction),t},t.prototype.getResourceInformation=function(){for(var e=[],t=0;t<this.getItemCount();t++)e.push.apply(e,this.getItemAt(t).getResourceInformation());return e},t.prototype.getElementById=function(t){var r=e.prototype.getElementById.call(this,t);if(!r)for(var n=0;n<this.getItemCount()&&!(r=this.getItemAt(n).getElementById(t));n++);return r},t.prototype.findDOMNodeOwner=function(t){for(var r,n=void 0,i=0;i<this.getItemCount();i++)if(n=this.getItemAt(i).findDOMNodeOwner(t))return n;for(i=0;i<this.getActionCount();i++)if(n=null===(r=this.getActionAt(i))||void 0===r?void 0:r.findDOMNodeOwner(t))return n;return e.prototype.findDOMNodeOwner.call(this,t)},t.selectActionProperty=new Ws(Ds.Versions.v1_1,"selectAction",["Action.ShowCard"]),As([(0,Ds.property)(t.selectActionProperty)],t.prototype,"_selectAction",void 0),t}(Vs);xo.CardElementContainer=Qs;var el=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._images=[],t.imageSize=Ms.ImageSize.Medium,t.presentationStyle=Ms.ImageSetPresentationStyle.Default,t.pixelOffset=0,t}return Ts(t,e),t.prototype.internalRender=function(){var e=void 0;if(this._images.length>0){(e=document.createElement("div")).style.display="flex",e.style.flexWrap="wrap";for(var t=0,r=this._images;t<r.length;t++){var n=r[t];switch(this.imageSize){case Ms.ImageSize.Small:n.size=Ms.Size.Small;break;case Ms.ImageSize.Large:n.size=Ms.Size.Large;break;default:n.size=Ms.Size.Medium}n.maxHeight=this.hostConfig.imageSet.maxImageHeight;var i=n.render();i&&(i.style.display="inline-flex",i.style.margin="0px",this.presentationStyle==Ms.ImageSetPresentationStyle.Default&&(i.style.marginRight="10px"),Bs.appendChild(e,i))}this.presentationStyle==Ms.ImageSetPresentationStyle.Stacked&&this.applyStackedPresentationStyle()}return e},t.prototype.applyStackedPresentationStyle=function(){if(this._images[0].renderedImageElement){var e=tl.parseNumericPixelDimension(this._images[0].renderedImageElement.style.height),t=this.getEffectiveBackgroundColor();if(e)new tl(this.pixelOffset,e,t).configureImagesArrayAsStackedLayout(this._images)}},t.prototype.getEffectiveBackgroundColor=function(){var e=this.getParentContainer(),t=null==e?void 0:e.getEffectiveStyle(),r=this.hostConfig.containerStyles.getStyleByName(t,this.hostConfig.containerStyles.getStyleByName(this.defaultStyle));return Bs.stringToCssColor(r.backgroundColor)},t.prototype.getItemCount=function(){return this._images.length},t.prototype.getItemAt=function(e){return this._images[e]},t.prototype.getFirstVisibleRenderedItem=function(){return this._images&&this._images.length>0?this._images[0]:void 0},t.prototype.getLastVisibleRenderedItem=function(){return this._images&&this._images.length>0?this._images[this._images.length-1]:void 0},t.prototype.removeItem=function(e){if(e instanceof Zs){var t=this._images.indexOf(e);if(t>=0)return this._images.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1},t.prototype.getJsonTypeName=function(){return"ImageSet"},t.prototype.addImage=function(e){if(e.parent)throw new Error("This image already belongs to another ImageSet");this._images.push(e),e.setParent(this)},t.prototype.indexOf=function(e){return e instanceof Zs?this._images.indexOf(e):-1},t.imagesProperty=new Ds.SerializableObjectCollectionProperty(Ds.Versions.v1_0,"images",Zs,function(e,t){t.setParent(e)}),t.imageSizeProperty=new Ds.EnumProperty(Ds.Versions.v1_0,"imageSize",Ms.ImageSize,Ms.ImageSize.Medium),t.imagePresentationStyle=new Ds.EnumProperty(Ds.Versions.v1_6,"style",Ms.ImageSetPresentationStyle,Ms.ImageSetPresentationStyle.Default),t.pixelOffset=new Ds.NumProperty(Ds.Versions.v1_6,"offset",0,void 0),As([(0,Ds.property)(t.imagesProperty)],t.prototype,"_images",void 0),As([(0,Ds.property)(t.imageSizeProperty)],t.prototype,"imageSize",void 0),As([(0,Ds.property)(t.imagePresentationStyle)],t.prototype,"presentationStyle",void 0),As([(0,Ds.property)(t.pixelOffset)],t.prototype,"pixelOffset",void 0),t}(Qs);xo.ImageSet=el;var tl=function(){function e(e,t,r){this.sign45=.7071,this.maxImageCounts=2,this.offset=0,this.normalizationConstant=0,this.border=5,this.dimension=0,this.dimension=t,this.normalizationConstant=2*(t*this.sign45-.5*t),this.offset=this.sign45*(Math.max(e,-t)-this.normalizationConstant),this.style=r||""}return e.prototype.moveImageRight=function(e){e.style.marginLeft=this.offset+"px"},e.prototype.moveImageUp=function(e){e.style.marginBottom=this.offset+this.dimension+"px"},e.prototype.moveImageDown=function(e){e.style.marginTop=this.offset+this.dimension+"px"},e.prototype.makeImageRound=function(e){e.style.borderRadius="50%",e.style.backgroundPosition="50% 50%",e.style.backgroundRepeat="no-repeat"},e.prototype.applyBorder=function(e){e.style.height=this.dimension+2*this.border+"px",e.style.border=this.border+"px solid "+this.style},e.prototype.configureImageForBottomLeft=function(e){this.moveImageDown(e),this.makeImageRound(e),this.applyBorder(e),e.style.zIndex="2"},e.prototype.configureImageForTopRight=function(e){this.moveImageUp(e),this.moveImageRight(e),this.makeImageRound(e),e.style.zIndex="1"},e.prototype.configureImagesArrayAsStackedLayout=function(e){1==e.length?e[0].renderedImageElement&&this.makeImageRound(e[0].renderedImageElement):e.length<=this.maxImageCounts&&e[0].renderedImageElement&&e[1].renderedImageElement&&(this.configureImageForBottomLeft(e[0].renderedImageElement),this.configureImageForTopRight(e[1].renderedImageElement))},e.parseNumericPixelDimension=function(e){if("px"==(null==e?void 0:e.substring(e.length-2)))return parseInt(e.substring(0,e.length-2))},e}(),rl=function(e){function t(t,r){var n=e.call(this)||this;return n.url=t,n.mimeType=r,n}return Ts(t,e),t.prototype.isValid=function(){return!(!this.mimeType||!this.url)},t.mimeTypeProperty=new Ds.StringProperty(Ds.Versions.v1_1,"mimeType"),t.urlProperty=new Ds.StringProperty(Ds.Versions.v1_1,"url"),As([(0,Ds.property)(t.mimeTypeProperty)],t.prototype,"mimeType",void 0),As([(0,Ds.property)(t.urlProperty)],t.prototype,"url",void 0),t}(Ds.SerializableObject);xo.ContentSource=rl;var nl=function(e){function t(t,r,n){var i=e.call(this,t,r)||this;return i.label=n,i}return Ts(t,e),t.prototype.getSchemaKey=function(){return"CaptionSource"},t.prototype.render=function(){var e=void 0;return this.isValid()&&((e=document.createElement("track")).src=this.url,e.kind="captions",e.label=this.label),e},t.labelProperty=new Ds.StringProperty(Ds.Versions.v1_6,"label"),As([(0,Ds.property)(t.labelProperty)],t.prototype,"label",void 0),t}(rl);xo.CaptionSource=nl;var il=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t.prototype.getSchemaKey=function(){return"MediaSource"},t.prototype.render=function(){var e=void 0;return this.isValid()&&((e=document.createElement("source")).src=this.url,e.type=this.mimeType),e},t}(rl);xo.MediaSource=il;var ol=function(){function e(){}return e.prototype.play=function(){},Object.defineProperty(e.prototype,"posterUrl",{get:function(){return this._posterUrl},set:function(e){this._posterUrl=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectedMediaType",{get:function(){},enumerable:!1,configurable:!0}),e}();xo.MediaPlayer=ol;var al=function(e){function t(t){var r=e.call(this)||this;return r.owner=t,r._selectedSources=[],r._captionSources=[],r.processSources(),r}return Ts(t,e),t.prototype.processSources=function(){var e;this._selectedSources=[],this._captionSources=[],this._selectedMediaType=void 0;for(var r=0,n=this.owner.sources;r<n.length;r++){var i=n[r],o=i.mimeType?i.mimeType.split("/"):[];if(2===o.length){if(!this._selectedMediaType){var a=t.supportedMediaTypes.indexOf(o[0]);a>=0&&(this._selectedMediaType=t.supportedMediaTypes[a])}o[0]===this._selectedMediaType&&this._selectedSources.push(i)}}(e=this._captionSources).push.apply(e,this.owner.captionSources)},t.prototype.canPlay=function(){return this._selectedSources.length>0},t.prototype.fetchVideoDetails=function(){return Es(this,void 0,void 0,function(){return Ps(this,function(e){return[2]})})},t.prototype.render=function(){"video"===this._selectedMediaType?this._mediaElement=document.createElement("video"):this._mediaElement=document.createElement("audio"),this._mediaElement.setAttribute("aria-label",this.owner.altText?this.owner.altText:zs.Strings.defaults.mediaPlayerAriaLabel()),this._mediaElement.setAttribute("webkit-playsinline",""),this._mediaElement.setAttribute("playsinline",""),this._mediaElement.setAttribute("crossorigin",""),this._mediaElement.autoplay=!0,this._mediaElement.controls=!0,Bs.isMobileOS()&&(this._mediaElement.muted=!0),this._mediaElement.preload="none",this._mediaElement.style.width="100%";for(var e=0,t=this.owner.sources;e<t.length;e++){var r=t[e].render();Bs.appendChild(this._mediaElement,r)}for(var n=0,i=this.owner.captionSources;n<i.length;n++){var o=i[n];if("vtt"==o.mimeType){var a=o.render();Bs.appendChild(this._mediaElement,a)}}return this._mediaElement},t.prototype.play=function(){this._mediaElement&&this._mediaElement.play()},Object.defineProperty(t.prototype,"selectedMediaType",{get:function(){return this._selectedMediaType},enumerable:!1,configurable:!0}),t.supportedMediaTypes=["audio","video"],t}(ol);xo.HTML5MediaPlayer=al;var sl=function(e){function t(t){return e.call(this)||this}return Ts(t,e),t}(ol);xo.CustomMediaPlayer=sl;var ll=function(e){function t(t,r){var n=e.call(this,t)||this;return n.iFrameTitle=r,t.length>=2&&(n._videoId=t[1]),n}return Ts(t,e),t.prototype.canPlay=function(){return void 0!==this._videoId},t.prototype.render=function(){var e=document.createElement("div");e.style.position="relative",e.style.width="100%",e.style.height="0",e.style.paddingBottom="56.25%";var t=document.createElement("iframe");return t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.src=this.getEmbedVideoUrl(),t.frameBorder="0",this.iFrameTitle&&(t.title=this.iFrameTitle),t.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",t.allowFullscreen=!0,e.appendChild(t),e},Object.defineProperty(t.prototype,"videoId",{get:function(){return this._videoId},enumerable:!1,configurable:!0}),t}(sl);xo.IFrameMediaMediaPlayer=ll;var cl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t.prototype.fetchVideoDetails=function(){return Es(this,void 0,void 0,function(){var e,t,r;return Ps(this,function(n){switch(n.label){case 0:return e="https://vimeo.com/api/oembed.json?url=".concat(this.getEmbedVideoUrl()),[4,fetch(e)];case 1:return(t=n.sent()).ok?[4,t.json()]:[3,3];case 2:r=n.sent(),this.posterUrl=r.thumbnail_url,n.label=3;case 3:return[2]}})})},t.prototype.getEmbedVideoUrl=function(){return"https://player.vimeo.com/video/".concat(this.videoId,"?autoplay=1")},t}(ll);xo.VimeoPlayer=cl;var ul=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t.prototype.fetchVideoDetails=function(){return Es(this,void 0,void 0,function(){var e,t,r;return Ps(this,function(n){switch(n.label){case 0:return e="https://api.dailymotion.com/video/".concat(this.videoId,"?fields=thumbnail_720_url"),[4,fetch(e)];case 1:return(t=n.sent()).ok?[4,t.json()]:[3,3];case 2:r=n.sent(),this.posterUrl=r.thumbnail_720_url,n.label=3;case 3:return[2]}})})},t.prototype.getEmbedVideoUrl=function(){return"https://www.dailymotion.com/embed/video/".concat(this.videoId,"?autoplay=1")},t}(ll);xo.DailymotionPlayer=ul;var hl=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.iFrameTitle=r,t.length>=3&&void 0!==t[2]&&(n._startTimeIndex=parseInt(t[2])),n}return Ts(t,e),t.prototype.fetchVideoDetails=function(){return Es(this,void 0,void 0,function(){return Ps(this,function(e){return this.posterUrl=this.videoId?"https://img.youtube.com/vi/".concat(this.videoId,"/maxresdefault.jpg"):void 0,[2]})})},t.prototype.getEmbedVideoUrl=function(){var e="https://www.youtube.com/embed/".concat(this.videoId,"?autoplay=1");return void 0!==this._startTimeIndex&&(e+="&start=".concat(this._startTimeIndex)),e},t}(ll);xo.YouTubePlayer=hl;var dl,pl,gl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sources=[],t.captionSources=[],t}return Ts(t,e),t.prototype.createMediaPlayer=function(){for(var e=0,r=t.customMediaPlayers;e<r.length;e++)for(var n=r[e],i=0,o=this.sources;i<o.length;i++){var a=o[i];if(a.url)for(var s=0,l=n.urlPatterns;s<l.length;s++){var c=l[s].exec(a.url);if(null!==c)return n.createMediaPlayer(c)}}return new al(this)},t.prototype.handlePlayButtonInvoke=function(e){if(this.hostConfig.media.allowInlinePlayback){if(e.preventDefault(),e.cancelBubble=!0,this.renderedElement){var r=this._mediaPlayer.render();Rs(this.renderedElement),this.renderedElement.appendChild(r),this._mediaPlayer.play(),r.focus()}}else t.onPlay&&(e.preventDefault(),e.cancelBubble=!0,t.onPlay(this))},t.prototype.displayPoster=function(){return Es(this,void 0,void 0,function(){var e,t,r,n,i,o,a=this;return Ps(this,function(s){return this.renderedElement&&((e=document.createElement("div")).className=this.hostConfig.makeCssClassName("ac-media-poster"),e.setAttribute("role","contentinfo"),e.setAttribute("aria-label",this.altText?this.altText:zs.Strings.defaults.mediaPlayerAriaLabel()),e.style.position="relative",e.style.display="flex",(t=this.poster?this.poster:this._mediaPlayer.posterUrl)||(t=this.hostConfig.media.defaultPoster),t?((r=document.createElement("img")).style.width="100%",r.style.height="100%",r.setAttribute("role","presentation"),r.onerror=function(t){r.parentNode&&r.parentNode.removeChild(r),e.classList.add("empty"),e.style.minHeight="150px"},r.src=t,e.appendChild(r)):(e.classList.add("empty"),e.style.minHeight="150px"),this.hostConfig.supportsInteractivity&&this._mediaPlayer.canPlay()&&((n=document.createElement("div")).tabIndex=0,n.setAttribute("role","button"),n.setAttribute("aria-label",zs.Strings.defaults.mediaPlayerPlayMedia()),n.className=this.hostConfig.makeCssClassName("ac-media-playButton"),n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="center",n.onclick=function(e){a.handlePlayButtonInvoke(e)},n.onkeypress=function(e){"Enter"!==e.code&&"Space"!==e.code||a.handlePlayButtonInvoke(e)},(i=document.createElement("div")).className=this.hostConfig.makeCssClassName("ac-media-playButton-arrow"),i.style.width="12px",i.style.height="15px",i.style.borderTopWidth="7.5px",i.style.borderBottomWidth="7.5px",i.style.borderLeftWidth="12px",i.style.borderRightWidth="0",i.style.borderStyle="solid",i.style.borderTopColor="transparent",i.style.borderRightColor="transparent",i.style.borderBottomColor="transparent",i.style.transform="translate(1.2px,0px)",n.appendChild(i),(o=document.createElement("div")).style.position="absolute",o.style.left="0",o.style.top="0",o.style.width="100%",o.style.height="100%",o.style.display="flex",o.style.justifyContent="center",o.style.alignItems="center",o.appendChild(n),e.appendChild(o)),Rs(this.renderedElement),this.renderedElement.appendChild(e)),[2]})})},t.prototype.internalRender=function(){var e=document.createElement("div");return e.className=this.hostConfig.makeCssClassName("ac-media"),e},t.prototype.render=function(){var t=this,r=e.prototype.render.call(this);return r&&(this._mediaPlayer=this.createMediaPlayer(),this._mediaPlayer.fetchVideoDetails().then(function(){return t.displayPoster()})),r},t.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this.displayPoster()},t.prototype.getJsonTypeName=function(){return"Media"},t.prototype.getResourceInformation=function(){var e=[];if(this._mediaPlayer){var t=this.poster?this.poster:this.hostConfig.media.defaultPoster;t&&e.push({url:t,mimeType:"image"})}for(var r=0,n=this.sources;r<n.length;r++){var i=n[r];i.isValid()&&e.push({url:i.url,mimeType:i.mimeType})}for(var o=0,a=this.captionSources;o<a.length;o++){var s=a[o];s.isValid()&&e.push({url:s.url,mimeType:s.mimeType})}return e},Object.defineProperty(t.prototype,"selectedMediaType",{get:function(){return this._mediaPlayer.selectedMediaType},enumerable:!1,configurable:!0}),t.customMediaPlayers=[{urlPatterns:[/^(?:https?:\/\/)?(?:www.)?youtube.com\/watch\?(?=.*v=([\w\d-_]+))(?=(?:.*t=(\d+))?).*/gi,/^(?:https?:\/\/)?youtu.be\/([\w\d-_]+)(?:\?t=(\d+))?/gi],createMediaPlayer:function(e){return new hl(e,zs.Strings.defaults.youTubeVideoPlayer())}},{urlPatterns:[/^(?:https?:\/\/)?vimeo.com\/([\w\d-_]+).*/gi],createMediaPlayer:function(e){return new cl(e,zs.Strings.defaults.vimeoVideoPlayer())}},{urlPatterns:[/^(?:https?:\/\/)?(?:www.)?dailymotion.com\/video\/([\w\d-_]+).*/gi],createMediaPlayer:function(e){return new ul(e,zs.Strings.defaults.dailymotionVideoPlayer())}}],t.sourcesProperty=new Ds.SerializableObjectCollectionProperty(Ds.Versions.v1_1,"sources",il),t.captionSourcesProperty=new Ds.SerializableObjectCollectionProperty(Ds.Versions.v1_6,"captionSources",nl),t.posterProperty=new Ds.StringProperty(Ds.Versions.v1_1,"poster"),t.altTextProperty=new Ds.StringProperty(Ds.Versions.v1_1,"altText"),As([(0,Ds.property)(t.sourcesProperty)],t.prototype,"sources",void 0),As([(0,Ds.property)(t.captionSourcesProperty)],t.prototype,"captionSources",void 0),As([(0,Ds.property)(t.posterProperty)],t.prototype,"poster",void 0),As([(0,Ds.property)(t.altTextProperty)],t.prototype,"altText",void 0),t}(Vs);xo.Media=gl,(pl=dl||(dl={}))[pl.InitialRender=0]="InitialRender",pl[pl.MouseEnterOnCard=1]="MouseEnterOnCard",pl[pl.MouseLeaveOnCard=2]="MouseLeaveOnCard",pl[pl.FocusLeave=3]="FocusLeave";var fl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inputStyle=Ms.InputStyle.Default,t}return Ts(t,e),t.prototype.getAllLabelIds=function(){var e=[];return this.labelledBy&&e.push(this.labelledBy),this._renderedLabelElement&&e.push(this._renderedLabelElement.id),this._renderedErrorMessageElement&&e.push(this._renderedErrorMessageElement.id),e},t.prototype.updateInputControlAriaLabelledBy=function(){if(this._renderedInputControlElement){var e=this.getAllLabelIds();e.length>0?this._renderedInputControlElement.setAttribute("aria-labelledby",e.join(" ")):this._renderedInputControlElement.removeAttribute("aria-labelledby")}},Object.defineProperty(t.prototype,"isNullable",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputControlElement",{get:function(){return this._renderedInputControlElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputControlContainerElement",{get:function(){return this._inputControlContainerElement},enumerable:!1,configurable:!0}),t.prototype.overrideInternalRender=function(){var e=this,t=this.hostConfig;this._outerContainerElement=document.createElement("div"),this._outerContainerElement.style.display="flex",this.labelPosition===Ms.InputLabelPosition.Inline?this._outerContainerElement.style.flexDirection="row":this._outerContainerElement.style.flexDirection="column";var r=Bs.generateUniqueId();if(this.label){var n=new Gs;n.setParent(this),n.forElementId=r;var i=new Us(this.label);if(n.addInline(i),this.isRequired){i.init(t.inputs.label.requiredInputs);var o=new Us(t.inputs.label.requiredInputs.suffix);o.color=t.inputs.label.requiredInputs.suffixColor,o.ariaHidden=!0,n.addInline(o)}else i.init(t.inputs.label.optionalInputs);this._renderedLabelElement=n.render(),this._renderedLabelElement&&(this._renderedLabelElement.id=Bs.generateUniqueId(),this.labelPosition===Ms.InputLabelPosition.Inline?this._renderedLabelElement.style.alignSelf="center":this._renderedLabelElement.style.marginBottom=t.getEffectiveSpacing(t.inputs.label.inputSpacing)+"px",this._outerContainerElement.appendChild(this._renderedLabelElement))}if(this._inputControlContainerElement=document.createElement("div"),this._inputControlContainerElement.className=t.makeCssClassName("ac-input-container"),this._inputControlContainerElement.style.display="flex","stretch"===this.height&&(this._inputControlContainerElement.style.alignItems="stretch",this._inputControlContainerElement.style.flex="1 1 auto"),this._renderedInputControlElement=this.internalRender(),this._renderedInputControlElement){if(this._renderedInputControlElement.id=r,this._renderedInputControlElement.style.minWidth="0px",this.isNullable&&this.isRequired&&(this._renderedInputControlElement.setAttribute("aria-required","true"),this._renderedInputControlElement.classList.add(t.makeCssClassName("ac-input-required"))),this._inputControlContainerElement.appendChild(this._renderedInputControlElement),this._outerContainerElement.appendChild(this._inputControlContainerElement),this._renderedLabelElement&&this.labelPosition===Ms.InputLabelPosition.Inline)if(this.labelWidth){if(this.labelWidth.unit==Ms.SizeUnit.Weight){var a=this.labelWidth.physicalSize;this._renderedLabelElement.style.width=a.toString()+"%",this._inputControlContainerElement.style.width=(100-a).toString()+"%"}else if(this.labelWidth.unit==Ms.SizeUnit.Pixel){var s=this.labelWidth.physicalSize;this._renderedLabelElement.style.width=s.toString()+"px"}}else{var l=t.inputs.label.width;this._renderedLabelElement.style.width=l.toString()+"%",this._inputControlContainerElement.style.width=100-l+"%"}return this.updateVisualState(dl.InitialRender),this._renderedInputControlElement&&(this._renderedInputControlElement.onblur=function(t){e.updateVisualState(dl.FocusLeave)}),this.updateInputControlAriaLabelledBy(),this._outerContainerElement}this.resetDirtyState()},t.prototype.valueChanged=function(){var e,t,r;this.getRootElement().updateActionsEnabledState(),this.isValid()&&this.resetValidationFailureCue(),this.onValueChanged&&this.onValueChanged(this),t=(e=this).getRootElement(),(r=t&&t.onInputValueChanged?t.onInputValueChanged:uc.onInputValueChanged)&&r(e)},t.prototype.resetValidationFailureCue=function(){this.renderedInputControlElement&&(this.renderedInputControlElement.classList.remove(this.hostConfig.makeCssClassName("ac-input-validation-failed")),this.updateInputControlAriaLabelledBy(),this._renderedErrorMessageElement&&(this._outerContainerElement.removeChild(this._renderedErrorMessageElement),this._renderedErrorMessageElement=void 0))},t.prototype.showValidationErrorMessage=function(){if(this.renderedElement&&this.errorMessage&&Is.GlobalSettings.displayInputValidationErrors){var e=new Hs;e.setParent(this),e.text=this.errorMessage,e.wrap=!0,e.init(this.hostConfig.inputs.errorMessage),this._renderedErrorMessageElement=e.render(),this._renderedErrorMessageElement&&(this._renderedErrorMessageElement.id=Bs.generateUniqueId(),this._outerContainerElement.appendChild(this._renderedErrorMessageElement),this.updateInputControlAriaLabelledBy())}},Object.defineProperty(t.prototype,"allowRevealOnHoverStyle",{get:function(){return this.hostConfig.inputs&&this.hostConfig.inputs.allowRevealOnHoverStyle},enumerable:!1,configurable:!0}),t.prototype.shouldHideInputAdornersForRevealOnHover=function(e,t){var r=e===document.activeElement,n=this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onhover"),i=e.classList.contains(n);return t===dl.InitialRender||t===dl.FocusLeave&&!i||t===dl.MouseLeaveOnCard&&!r},t.prototype.updateVisualState=function(e){this.allowRevealOnHoverStyle&&this._renderedInputControlElement&&this.inputStyle===Ms.InputStyle.RevealOnHover&&(e===dl.InitialRender?this._renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onrender")):e===dl.MouseEnterOnCard?this._renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onhover")):e===dl.MouseLeaveOnCard&&this._renderedInputControlElement.classList.remove(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onhover")))},t.prototype.focus=function(){this._renderedInputControlElement&&this._renderedInputControlElement.focus()},t.prototype.isValid=function(){return!0},t.prototype.isDirty=function(){return this.value!==this._oldValue},t.prototype.resetDirtyState=function(){this._oldValue=this.value},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.id||t.addFailure(this,Ms.ValidationEvent.PropertyCantBeNull,zs.Strings.errors.inputsMustHaveUniqueId()),this.isRequired&&(this.label||t.addFailure(this,Ms.ValidationEvent.RequiredInputsShouldHaveLabel,"Required inputs should have a label"),this.errorMessage||t.addFailure(this,Ms.ValidationEvent.RequiredInputsShouldHaveErrorMessage,"Required inputs should have an error message"))},t.prototype.validateValue=function(){this.resetValidationFailureCue();var e=this.isRequired?this.isSet()&&this.isValid():this.isValid();return!e&&this.renderedInputControlElement&&(this.renderedInputControlElement.classList.add(this.hostConfig.makeCssClassName("ac-input-validation-failed")),this.showValidationErrorMessage()),e},t.prototype.getAllInputs=function(e){return[this]},t.prototype.render=function(){var t=e.prototype.render.call(this);return this.resetDirtyState(),t},Object.defineProperty(t.prototype,"isInteractive",{get:function(){return!0},enumerable:!1,configurable:!0}),t.labelProperty=new Ds.StringProperty(Ds.Versions.v1_3,"label",!0),t.isRequiredProperty=new Ds.BoolProperty(Ds.Versions.v1_3,"isRequired",!1),t.errorMessageProperty=new Ds.StringProperty(Ds.Versions.v1_3,"errorMessage",!0),t.inputStyleProperty=new Ds.EnumProperty(Ds.Versions.v1_6,"inputStyle",Ms.InputStyle,Ms.InputStyle.Default,[{value:Ms.InputStyle.RevealOnHover},{value:Ms.InputStyle.Default}]),t.labelWidthProperty=new Ds.CustomProperty(Ds.Versions.v1_6,"labelWidth",function(e,t,r,n){var i=t.defaultValue,o=r[t.name],a=!1;if("number"!=typeof o||isNaN(o))if("string"==typeof o)try{i=Is.SizeAndUnit.parse(o)}catch(s){a=!0}else a=!0;else((i=new Is.SizeAndUnit(o,Ms.SizeUnit.Weight)).physicalSize<0||i.physicalSize>100)&&(a=!0);return a&&(n.logParseEvent(e,Ms.ValidationEvent.InvalidPropertyValue,zs.Strings.errors.invalidInputLabelWidth()),i=void 0),i},function(e,t,r,n,i){n instanceof Is.SizeAndUnit&&(n.unit===Ms.SizeUnit.Pixel?i.serializeValue(r,"labelWidth",n.physicalSize+"px"):i.serializeNumber(r,"labelWidth",n.physicalSize))},void 0),t.labelPositionProperty=new Ds.EnumProperty(Ds.Versions.v1_6,"labelPosition",Ms.InputLabelPosition,Ms.InputLabelPosition.Above,[{value:Ms.InputLabelPosition.Inline},{value:Ms.InputLabelPosition.Above}]),As([(0,Ds.property)(t.labelProperty)],t.prototype,"label",void 0),As([(0,Ds.property)(t.isRequiredProperty)],t.prototype,"isRequired",void 0),As([(0,Ds.property)(t.errorMessageProperty)],t.prototype,"errorMessage",void 0),As([(0,Ds.property)(t.inputStyleProperty)],t.prototype,"inputStyle",void 0),As([(0,Ds.property)(t.labelWidthProperty)],t.prototype,"labelWidth",void 0),As([(0,Ds.property)(t.labelPositionProperty)],t.prototype,"labelPosition",void 0),t}(Vs);xo.Input=fl;var ml=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isMultiline=!1,t.style=Ms.InputTextStyle.Text,t}return Ts(t,e),t.prototype.setupInput=function(e){var t=this;e.style.flex="1 1 auto",e.tabIndex=this.isDesignMode()?-1:0,this.placeholder&&(e.placeholder=this.placeholder,e.setAttribute("aria-label",this.placeholder)),this.defaultValue&&(e.value=this.defaultValue),this.maxLength&&this.maxLength>0&&(e.maxLength=this.maxLength),e.oninput=function(){t.valueChanged()},e.onkeypress=function(e){e.ctrlKey&&"Enter"===e.code&&t.inlineAction&&t.inlineAction.isEffectivelyEnabled()&&t.inlineAction.execute()}},t.prototype.internalRender=function(){var e;return this.isMultiline&&this.style!==Ms.InputTextStyle.Password?((e=document.createElement("textarea")).className=this.hostConfig.makeCssClassName("ac-input","ac-textInput","ac-multiline"),"stretch"===this.height&&(e.style.height="initial")):((e=document.createElement("input")).className=this.hostConfig.makeCssClassName("ac-input","ac-textInput"),e.type=Ms.InputTextStyle[this.style].toLowerCase()),this.setupInput(e),e},t.prototype.overrideInternalRender=function(){var t=this,r=e.prototype.overrideInternalRender.call(this);if(this.inlineAction){var n=document.createElement("button");if(n.className=this.hostConfig.makeCssClassName(this.inlineAction.isEffectivelyEnabled()?"ac-inlineActionButton":"ac-inlineActionButton-disabled"),n.onclick=function(e){t.inlineAction&&t.inlineAction.isEffectivelyEnabled()&&(e.preventDefault(),e.cancelBubble=!0,t.inlineAction.execute())},this.inlineAction.iconUrl){n.classList.add("iconOnly");var i=document.createElement("img");i.style.height="100%",i.setAttribute("role","presentation"),i.style.display="none",i.onload=function(){i.style.removeProperty("display")},i.onerror=function(){n.removeChild(i),n.classList.remove("iconOnly"),n.classList.add("textOnly"),n.textContent=t.inlineAction&&t.inlineAction.title?t.inlineAction.title:zs.Strings.defaults.inlineActionTitle()},i.src=this.inlineAction.iconUrl,n.appendChild(i),n.title=this.inlineAction.title?this.inlineAction.title:zs.Strings.defaults.inlineActionTitle()}else n.classList.add("textOnly"),n.textContent=this.inlineAction.title?this.inlineAction.title:zs.Strings.defaults.inlineActionTitle();this.inlineAction.setupElementForAccessibility(n,!0),n.style.marginLeft="8px",this.inputControlContainerElement.appendChild(n)}return r},t.prototype.updateVisualState=function(t){this.allowRevealOnHoverStyle&&(this.inlineAction||this.isMultiline||e.prototype.updateVisualState.call(this,t))},t.prototype.getJsonTypeName=function(){return"Input.Text"},t.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return this.inlineAction&&t.push(this.inlineAction),t},t.prototype.getActionById=function(t){var r=e.prototype.getActionById.call(this,t);return!r&&this.inlineAction&&(r=this.inlineAction.getActionById(t)),r},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){return!this.value||(!this.regex||new RegExp(this.regex,"g").test(this.value))},Object.defineProperty(t.prototype,"value",{get:function(){return this.renderedInputControlElement?(this.isMultiline,this.renderedInputControlElement.value):void 0},enumerable:!1,configurable:!0}),t.valueProperty=new Ds.StringProperty(Ds.Versions.v1_0,"value"),t.maxLengthProperty=new Ds.NumProperty(Ds.Versions.v1_0,"maxLength"),t.isMultilineProperty=new Ds.BoolProperty(Ds.Versions.v1_0,"isMultiline",!1),t.placeholderProperty=new Ds.StringProperty(Ds.Versions.v1_0,"placeholder"),t.styleProperty=new Ds.EnumProperty(Ds.Versions.v1_0,"style",Ms.InputTextStyle,Ms.InputTextStyle.Text,[{value:Ms.InputTextStyle.Text},{value:Ms.InputTextStyle.Tel},{value:Ms.InputTextStyle.Url},{value:Ms.InputTextStyle.Email},{value:Ms.InputTextStyle.Password,targetVersion:Ds.Versions.v1_5}]),t.inlineActionProperty=new Ws(Ds.Versions.v1_0,"inlineAction",["Action.ShowCard"]),t.regexProperty=new Ds.StringProperty(Ds.Versions.v1_3,"regex",!0),As([(0,Ds.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),As([(0,Ds.property)(t.maxLengthProperty)],t.prototype,"maxLength",void 0),As([(0,Ds.property)(t.isMultilineProperty)],t.prototype,"isMultiline",void 0),As([(0,Ds.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),As([(0,Ds.property)(t.styleProperty)],t.prototype,"style",void 0),As([(0,Ds.property)(t.inlineActionProperty)],t.prototype,"inlineAction",void 0),As([(0,Ds.property)(t.regexProperty)],t.prototype,"regex",void 0),t}(fl);xo.TextInput=ml;var yl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.valueOn="true",t.valueOff="false",t.wrap=!1,t}return Ts(t,e),t.prototype.updateInputControlAriaLabelledBy=function(){if(this._checkboxInputElement){var e=this.getAllLabelIds().join(" ");this._checkboxInputLabelElement&&this._checkboxInputLabelElement.id&&(e+=" "+this._checkboxInputLabelElement.id),e?this._checkboxInputElement.setAttribute("aria-labelledby",e):this._checkboxInputElement.removeAttribute("aria-labelledby")}},t.prototype.internalRender=function(){var e=this,t=document.createElement("div");if(t.className=this.hostConfig.makeCssClassName("ac-input","ac-toggleInput"),t.style.width="100%",t.style.display="flex",t.style.alignItems="center",this._checkboxInputElement=document.createElement("input"),this._checkboxInputElement.id=Bs.generateUniqueId(),this._checkboxInputElement.type="checkbox",this._checkboxInputElement.style.display="inline-block",this._checkboxInputElement.style.verticalAlign="middle",this._checkboxInputElement.style.margin="0",this._checkboxInputElement.style.flex="0 0 auto",this.title&&this._checkboxInputElement.setAttribute("aria-label",this.title),this.isRequired&&this._checkboxInputElement.setAttribute("aria-required","true"),this._checkboxInputElement.tabIndex=this.isDesignMode()?-1:0,this.defaultValue===this.valueOn&&(this._checkboxInputElement.checked=!0),this._oldCheckboxValue=this._checkboxInputElement.checked,this._checkboxInputElement.onchange=function(){e.valueChanged()},Bs.appendChild(t,this._checkboxInputElement),this.title||this.isDesignMode()){var r=new Hs;if(r.setParent(this),r.forElementId=this._checkboxInputElement.id,r.hostConfig=this.hostConfig,r.text=this.title?this.title:this.getJsonTypeName(),r.useMarkdown=Is.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,r.wrap=this.wrap,this._checkboxInputLabelElement=r.render(),this._checkboxInputLabelElement){this._checkboxInputLabelElement.id=Bs.generateUniqueId(),this._checkboxInputLabelElement.style.display="inline-block",this._checkboxInputLabelElement.style.flex="1 1 auto",this._checkboxInputLabelElement.style.marginLeft="6px",this._checkboxInputLabelElement.style.verticalAlign="middle";var n=document.createElement("div");n.style.width="6px",Bs.appendChild(t,n),Bs.appendChild(t,this._checkboxInputLabelElement)}}return t},Object.defineProperty(t.prototype,"isNullable",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateVisualState=function(e){},t.prototype.getJsonTypeName=function(){return"Input.Toggle"},t.prototype.focus=function(){this._checkboxInputElement&&this._checkboxInputElement.focus()},t.prototype.isSet=function(){return this.isRequired?this.value===this.valueOn:!!this.value},t.prototype.isDirty=function(){return!!this._checkboxInputElement&&this._checkboxInputElement.checked!==this._oldCheckboxValue},Object.defineProperty(t.prototype,"value",{get:function(){return this._checkboxInputElement?this._checkboxInputElement.checked?this.valueOn:this.valueOff:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new Ds.StringProperty(Ds.Versions.v1_0,"value"),t.titleProperty=new Ds.StringProperty(Ds.Versions.v1_0,"title"),t.valueOnProperty=new Ds.StringProperty(Ds.Versions.v1_0,"valueOn",!0,void 0,"true",function(e){return"true"}),t.valueOffProperty=new Ds.StringProperty(Ds.Versions.v1_0,"valueOff",!0,void 0,"false",function(e){return"false"}),t.wrapProperty=new Ds.BoolProperty(Ds.Versions.v1_2,"wrap",!1),As([(0,Ds.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),As([(0,Ds.property)(t.titleProperty)],t.prototype,"title",void 0),As([(0,Ds.property)(t.valueOnProperty)],t.prototype,"valueOn",void 0),As([(0,Ds.property)(t.valueOffProperty)],t.prototype,"valueOff",void 0),As([(0,Ds.property)(t.wrapProperty)],t.prototype,"wrap",void 0),t}(fl);xo.ToggleInput=yl;var bl=function(e){function t(t,r){var n=e.call(this)||this;return n.title=t,n.value=r,n}return Ts(t,e),t.prototype.getSchemaKey=function(){return"Choice"},t.titleProperty=new Ds.StringProperty(Ds.Versions.v1_0,"title"),t.valueProperty=new Ds.StringProperty(Ds.Versions.v1_0,"value"),As([(0,Ds.property)(t.titleProperty)],t.prototype,"title",void 0),As([(0,Ds.property)(t.valueProperty)],t.prototype,"value",void 0),t}(Ds.SerializableObject);xo.Choice=bl;var vl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t.prototype.getSchemaKey=function(){return"choices.data"},t.typeProperty=new Ds.StringProperty(Ds.Versions.v1_6,"type",!0,new RegExp("^Data.Query$")),t.datasetProperty=new Ds.StringProperty(Ds.Versions.v1_6,"dataset"),t.countProperty=new Ds.NumProperty(Ds.Versions.v1_6,"count"),t.skipProperty=new Ds.NumProperty(Ds.Versions.v1_6,"skip"),As([(0,Ds.property)(t.typeProperty)],t.prototype,"type",void 0),As([(0,Ds.property)(t.datasetProperty)],t.prototype,"dataset",void 0),As([(0,Ds.property)(t.countProperty)],t.prototype,"count",void 0),As([(0,Ds.property)(t.skipProperty)],t.prototype,"skip",void 0),t}(Ds.SerializableObject);xo.ChoiceSetInputDataQuery=vl;var xl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isMultiSelect=!1,t.wrap=!1,t.choices=[],t}return Ts(t,e),Object.defineProperty(t.prototype,"isCompact",{get:function(){return!this.style||"compact"===this.style},set:function(e){this.style=e?void 0:"expanded"},enumerable:!1,configurable:!0}),t.getUniqueCategoryName=function(){var e="__ac-category"+t._uniqueCategoryCounter;return t._uniqueCategoryCounter++,e},t.prototype.isDynamicTypeahead=function(){return!!this.choicesData&&!!this.choicesData.dataset&&"Data.Query"===this.choicesData.type},t.prototype.getFilterForDynamicSearch=function(){var e,t;return null===(t=null===(e=this._filteredChoiceSet)||void 0===e?void 0:e.textInput)||void 0===t?void 0:t.value},t.prototype.renderChoices=function(e){var t;null===(t=this._filteredChoiceSet)||void 0===t||t.processResponse(e)},t.prototype.showLoadingIndicator=function(){var e;null===(e=this._filteredChoiceSet)||void 0===e||e.showLoadingIndicator()},t.prototype.removeLoadingIndicator=function(){var e;null===(e=this._filteredChoiceSet)||void 0===e||e.removeLoadingIndicator()},t.prototype.showErrorIndicator=function(e){var t;null===(t=this._filteredChoiceSet)||void 0===t||t.showErrorIndicator(e)},t.prototype.createPlaceholderOptionWhenValueDoesNotExist=function(){if(!this.value){var e=document.createElement("option");return e.selected=!0,e.disabled=!0,e.hidden=!0,e.value="",this.placeholder&&(e.text=this.placeholder),e}},t.prototype.internalApplyAriaCurrent=function(){if(this._selectElement){var e=this._selectElement.options;if(e)for(var t=0,r=Array.from(e);t<r.length;t++){var n=r[t];n.selected?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")}}},t.prototype.renderCompoundInput=function(e,t,r){var n=this,i=document.createElement("div");i.className=this.hostConfig.makeCssClassName("ac-input",e),i.style.width="100%",i.tabIndex=this.isDesignMode()?-1:0,this._toggleInputs=[],this._labels=[];for(var o=0,a=this.choices;o<a.length;o++){var s=a[o],l=document.createElement("input");l.id=Bs.generateUniqueId(),l.type=t,l.style.margin="0",l.style.display="inline-block",l.style.verticalAlign="middle",l.style.flex="0 0 auto",l.name=this.id?this.id:this._uniqueCategoryName,this.isRequired&&l.setAttribute("aria-required","true"),l.tabIndex=this.isDesignMode()?-1:0,s.value&&(l.value=s.value),s.title&&l.setAttribute("aria-label",s.title),r&&s.value&&r.indexOf(s.value)>=0&&(l.checked=!0),l.onchange=function(){n.valueChanged()},this._toggleInputs.push(l);var c=document.createElement("div");c.style.display="flex",c.style.alignItems="center",Bs.appendChild(c,l);var u=new Hs;u.setParent(this),u.forElementId=l.id,u.hostConfig=this.hostConfig,u.text=s.title?s.title:"Choice "+this._toggleInputs.length,u.useMarkdown=Is.GlobalSettings.useMarkdownInRadioButtonAndCheckbox,u.wrap=this.wrap;var h=u.render();if(this._labels.push(h),h){h.id=Bs.generateUniqueId(),h.style.display="inline-block",h.style.flex="1 1 auto",h.style.marginLeft="6px",h.style.verticalAlign="middle";var d=document.createElement("div");d.style.width="6px",Bs.appendChild(c,d),Bs.appendChild(c,h)}Bs.appendChild(i,c)}return i},t.prototype.updateInputControlAriaLabelledBy=function(){if((this.isMultiSelect||"expanded"===this.style)&&this._toggleInputs&&this._labels)for(var t=this.getAllLabelIds(),r=0;r<this._toggleInputs.length;r++){var n=t.join(" "),i=this._labels[r];i&&i.id&&(n+=" "+i.id),n?this._toggleInputs[r].setAttribute("aria-labelledby",n):this._toggleInputs[r].removeAttribute("aria-labelledby")}else e.prototype.updateInputControlAriaLabelledBy.call(this)},t.prototype.internalRender=function(){var e=this;if(this._uniqueCategoryName=t.getUniqueCategoryName(),this.isDynamicTypeahead()){var r=new Cl(t._uniqueCategoryCounter,this.choices,this.hostConfig);if(r.render(),r.textInput){this._textInput=r.textInput,this.defaultValue&&(this._textInput.value=this.defaultValue),this.placeholder&&!this._textInput.value&&(this._textInput.placeholder=this.placeholder,this._textInput.setAttribute("aria-label",this.placeholder)),this._textInput.tabIndex=this.isDesignMode()?-1:0;var n=Bs.debounce(function(){r.processStaticChoices(),e.valueChanged(),e._textInput&&(e.value?(e._textInput.removeAttribute("placeholder"),e._textInput.removeAttribute("aria-label")):e.placeholder&&(e._textInput.placeholder=e.placeholder,e._textInput.setAttribute("aria-label",e.placeholder)))},this.hostConfig.inputs.debounceTimeInMilliSeconds);this._textInput.onclick=n,this._textInput.oninput=n}return r.parent=this,this._filteredChoiceSet=r,r.renderedElement}if(this.isMultiSelect)return this.renderCompoundInput("ac-choiceSetInput-multiSelect","checkbox",this.defaultValue?this.defaultValue.split(this.hostConfig.choiceSetInputValueSeparator):void 0);if("expanded"===this.style)return this.renderCompoundInput("ac-choiceSetInput-expanded","radio",this.defaultValue?[this.defaultValue]:void 0);if("filtered"===this.style){var i=document.createElement("div");i.style.width="100%",this._textInput=document.createElement("input"),this._textInput.className=this.hostConfig.makeCssClassName("ac-input","ac-multichoiceInput","ac-choiceSetInput-filtered"),this._textInput.type="text",this._textInput.style.width="100%",this._textInput.oninput=function(){e.valueChanged(),e._textInput&&(e.value?(e._textInput.removeAttribute("placeholder"),e._textInput.removeAttribute("aria-label")):e.placeholder&&(e._textInput.placeholder=e.placeholder,e._textInput.setAttribute("aria-label",e.placeholder)))},this.defaultValue&&(this._textInput.value=this.defaultValue),this.placeholder&&!this._textInput.value&&(this._textInput.placeholder=this.placeholder,this._textInput.setAttribute("aria-label",this.placeholder)),this._textInput.tabIndex=this.isDesignMode()?-1:0;var o=document.createElement("datalist");o.id=Bs.generateUniqueId();for(var a=0,s=this.choices;a<s.length;a++){var l=s[a],c=document.createElement("option");l.title&&(c.value=l.title,c.setAttribute("aria-label",l.title)),c.tabIndex=this.isDesignMode()?-1:0,o.appendChild(c)}return this._textInput.setAttribute("list",o.id),i.append(this._textInput,o),i}this._selectElement=document.createElement("select"),this._selectElement.className=this.hostConfig.makeCssClassName("ac-input","ac-multichoiceInput","ac-choiceSetInput-compact"),this._selectElement.style.width="100%",this._selectElement.tabIndex=this.isDesignMode()?-1:0;var u=this.createPlaceholderOptionWhenValueDoesNotExist();Bs.appendChild(this._selectElement,u);for(var h=0,d=this.choices;h<d.length;h++){l=d[h];(c=document.createElement("option")).value=l.value,l.title&&(c.text=l.title,c.setAttribute("aria-label",l.title)),c.tabIndex=this.isDesignMode()?-1:0,l.value===this.defaultValue&&(c.selected=!0),Bs.appendChild(this._selectElement,c)}return this._selectElement.onchange=function(){e.internalApplyAriaCurrent(),e.valueChanged()},this.internalApplyAriaCurrent(),this._selectElement},t.prototype.updateVisualState=function(t){this.allowRevealOnHoverStyle&&(!this.isMultiSelect&&this.isCompact&&(e.prototype.updateVisualState.call(this,t),this._selectElement&&this.inputStyle===Ms.InputStyle.RevealOnHover&&(this.shouldHideInputAdornersForRevealOnHover(this._selectElement,t)?(this._selectElement.style.appearance="none",this._selectElement.classList.remove(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus"))):(this._selectElement.style.appearance="auto",this._selectElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus"))))))},t.prototype.getJsonTypeName=function(){return"Input.ChoiceSet"},t.prototype.focus=function(){this._toggleInputs&&(this.isMultiSelect||"expanded"===this.style)?this._toggleInputs.length>0&&this._toggleInputs[0].focus():this._textInput?this._textInput.focus():e.prototype.focus.call(this)},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),0===this.choices.length&&t.addFailure(this,Ms.ValidationEvent.CollectionCantBeEmpty,zs.Strings.errors.choiceSetMustHaveAtLeastOneChoice());for(var r=0,n=this.choices;r<n.length;r++){var i=n[r];i.title&&i.value||t.addFailure(this,Ms.ValidationEvent.PropertyCantBeNull,zs.Strings.errors.choiceSetChoicesMustHaveTitleAndValue())}},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){if(this._textInput){if(""===this.value||this.value===this.placeholder)return!0;for(var t=0,r=this.choices;t<r.length;t++){var n=r[t];if(this.value===n.value)return!0}if(this.dynamicChoices)for(var i=0,o=this.dynamicChoices;i<o.length;i++){n=o[i];if(this.value===n)return!0}return!1}return e.prototype.isValid.call(this)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.isMultiSelect){if(!this._toggleInputs||0===this._toggleInputs.length)return;for(var e="",t=0,r=this._toggleInputs;t<r.length;t++){(l=r[t]).checked&&(""!==e&&(e+=this.hostConfig.choiceSetInputValueSeparator),e+=l.value)}return e||void 0}if(this._selectElement)return this._selectElement.selectedIndex>0?this._selectElement.value:void 0;if(this._textInput){for(var n=0,i=this.choices;n<i.length;n++){var o=i[n];if(o.title&&this._textInput.value===o.title)return o.value}return this._textInput.value}if(this._toggleInputs&&this._toggleInputs.length>0)for(var a=0,s=this._toggleInputs;a<s.length;a++){var l;if((l=s[a]).checked)return l.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dynamicChoices",{get:function(){var e;return null===(e=this._filteredChoiceSet)||void 0===e?void 0:e.dynamicChoices},enumerable:!1,configurable:!0}),t.valueProperty=new Ds.StringProperty(Ds.Versions.v1_0,"value"),t.choicesProperty=new Ds.SerializableObjectCollectionProperty(Ds.Versions.v1_0,"choices",bl),t.choicesDataProperty=new Ds.SerializableObjectProperty(Ds.Versions.v1_6,"choices.data",vl),t.styleProperty=new Ds.ValueSetProperty(Ds.Versions.v1_0,"style",[{value:"compact"},{value:"expanded"},{value:"filtered",targetVersion:Ds.Versions.v1_5}],"compact"),t.isMultiSelectProperty=new Ds.BoolProperty(Ds.Versions.v1_0,"isMultiSelect",!1),t.placeholderProperty=new Ds.StringProperty(Ds.Versions.v1_0,"placeholder"),t.wrapProperty=new Ds.BoolProperty(Ds.Versions.v1_2,"wrap",!1),t._uniqueCategoryCounter=0,As([(0,Ds.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),As([(0,Ds.property)(t.styleProperty)],t.prototype,"style",void 0),As([(0,Ds.property)(t.isMultiSelectProperty)],t.prototype,"isMultiSelect",void 0),As([(0,Ds.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),As([(0,Ds.property)(t.wrapProperty)],t.prototype,"wrap",void 0),As([(0,Ds.property)(t.choicesProperty)],t.prototype,"choices",void 0),As([(0,Ds.property)(t.choicesDataProperty)],t.prototype,"choicesData",void 0),t}(fl);xo.ChoiceSetInput=xl;var Cl=function(){function e(e,t,r){this._choiceSetId=e,this._choices=t,this._dynamicChoices=[],this._visibleChoiceCount=0,this._hostConfig=r}return e.prototype.render=function(){var e=this,t=document.createElement("div");t.style.position="relative",t.style.width="100%",this._textInput=document.createElement("input"),this._textInput.className=this.hostConfig.makeCssClassName("ac-input","ac-multichoiceInput","ac-choiceSetInput-filtered"),this._textInput.type="text",this._textInput.style.width="100%",this._textInput.onkeydown=function(t){"ArrowDown"===t.key&&e.focusChoice(0)},this._dropdown=document.createElement("div"),this._dropdown.style.display="none",this._dropdown.className=this.hostConfig.makeCssClassName("ac-input","ac-multichoiceInput","ac-choiceSetInput-filtered-dropdown"),t.append(this._textInput,this._dropdown),document.onclick=function(t){if(e._dropdown){for(var r=e._dropdown.firstChild;r&&t.target!==r;)r=r.nextSibling;(r||t.target!==e._textInput)&&(e._dropdown.style.display="none")}},this._renderedElement=t},e.prototype.createChoice=function(e,t,r){var n=this,i=document.createElement("span");return i.className=this.hostConfig.makeCssClassName("ac-input","ac-choiceSetInput-choice"),i.id="ac-choiceSetInput-".concat(this._choiceSetId,"-choice-").concat(r),i.innerHTML=e.replace(t,"<b>".concat(t,"</b>")),i.tabIndex=-1,i.addEventListener("focusin",function(){i.classList.add("focused")}),i.addEventListener("focusout",function(){i.classList.remove("focused")}),i.onclick=function(){n._textInput&&(n._textInput.value=i.innerText),n._dropdown&&(n._dropdown.style.display="none")},i.onkeydown=function(e){"ArrowDown"===e.key?n.focusChoice(r+1):"ArrowUp"===e.key?n.focusChoice(r-1):"Enter"===e.key&&i.click()},i.onmouseover=function(){n.focusChoice(r)},i},e.prototype.focusChoice=function(e){var t=document.getElementById("ac-choiceSetInput-".concat(this._choiceSetId,"-choice-").concat(e));if(t)t.focus();else if(this._textInput){this._textInput.focus();var r=this._textInput.value.length;this._textInput.setSelectionRange(r,r)}},e.prototype.filterChoices=function(e){var t,r,n=null===(t=this._textInput)||void 0===t?void 0:t.value.toLowerCase();if(n)for(var i=0,o=e?this._dynamicChoices:this._choices;i<o.length;i++){var a=o[i];if(a.title){var s=a.title.toLowerCase().indexOf(n);if(-1!==s){var l=a.title.substring(s,s+n.length),c=this.createChoice(a.title,l,this._visibleChoiceCount++);null===(r=this._dropdown)||void 0===r||r.appendChild(c)}}}},e.prototype.getStatusIndicator=function(e){if(e){if(!this._errorIndicator){var t=document.createElement("div");t.className=this.hostConfig.makeCssClassName("ac-input","ac-choiceSetInput-statusIndicator","ac-choiceSetInput-errorIndicator"),this._errorIndicator=t}return this._errorIndicator.innerText=e,this._errorIndicator}if(!this._loadingIndicator){var r=document.createElement("div");r.className=this.hostConfig.makeCssClassName("ac-input","ac-choiceSetInput-statusIndicator"),this._loadingIndicator=r}return this._loadingIndicator.innerText=0===this._visibleChoiceCount?"Loading...":"Loading more...",this._loadingIndicator},e.prototype.resetDropdown=function(){this._dynamicChoices=[],this._dropdown&&(Bs.clearElementChildren(this._dropdown),this._visibleChoiceCount=0)},e.prototype.showDropdown=function(){var e;(null===(e=this._dropdown)||void 0===e?void 0:e.hasChildNodes)&&(this._dropdown.style.display="block")},e.prototype.processStaticChoices=function(){this.resetDropdown(),this.filterChoices(),this.showDropdown()},e.prototype.processResponse=function(e){this._dynamicChoices=e,this.filterChoices(!0),0===this._visibleChoiceCount&&this.showErrorIndicator("No results found.")},e.prototype.showLoadingIndicator=function(){var e,t=this.getStatusIndicator();null===(e=this._dropdown)||void 0===e||e.appendChild(t),this.showDropdown()},e.prototype.removeLoadingIndicator=function(){var e,t;this._loadingIndicator&&(null===(e=this._dropdown)||void 0===e?void 0:e.contains(this._loadingIndicator))&&(null===(t=this._dropdown)||void 0===t||t.removeChild(this._loadingIndicator))},e.prototype.showErrorIndicator=function(e){var t;this.removeLoadingIndicator();var r=this.getStatusIndicator(e);null===(t=this._dropdown)||void 0===t||t.appendChild(r)},Object.defineProperty(e.prototype,"dynamicChoices",{get:function(){var e;return null===(e=this._dynamicChoices)||void 0===e?void 0:e.map(function(e){return e.title})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hostConfig",{get:function(){return this._hostConfig?this._hostConfig:this.parent?this.parent.hostConfig:Ls.defaultHostConfig},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},set:function(e){this._parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedElement",{get:function(){return this._renderedElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textInput",{get:function(){return this._textInput},enumerable:!1,configurable:!0}),e}();xo.FilteredChoiceSet=Cl;var wl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t.prototype.internalRender=function(){var e=this;return this._numberInputElement=document.createElement("input"),this._numberInputElement.setAttribute("type","number"),void 0!==this.min&&this._numberInputElement.setAttribute("min",this.min.toString()),void 0!==this.max&&this._numberInputElement.setAttribute("max",this.max.toString()),this._numberInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-numberInput"),this._numberInputElement.style.width="100%",this._numberInputElement.tabIndex=this.isDesignMode()?-1:0,void 0!==this.defaultValue&&(this._numberInputElement.valueAsNumber=this.defaultValue),this.placeholder&&(this._numberInputElement.placeholder=this.placeholder,this._numberInputElement.setAttribute("aria-label",this.placeholder)),this._numberInputElement.oninput=function(){e.valueChanged()},this._numberInputElement},t.prototype.getJsonTypeName=function(){return"Input.Number"},t.prototype.isSet=function(){return void 0!==this.value&&!isNaN(this.value)},t.prototype.isValid=function(){if(void 0===this.value)return!this.isRequired;var e=!0;return void 0!==this.min&&(e=e&&this.value>=this.min),void 0!==this.max&&(e=e&&this.value<=this.max),e},Object.defineProperty(t.prototype,"value",{get:function(){return this._numberInputElement?this._numberInputElement.valueAsNumber:void 0},set:function(e){e&&this._numberInputElement&&(this._numberInputElement.value=e.toString())},enumerable:!1,configurable:!0}),t.valueProperty=new Ds.NumProperty(Ds.Versions.v1_0,"value"),t.placeholderProperty=new Ds.StringProperty(Ds.Versions.v1_0,"placeholder"),t.minProperty=new Ds.NumProperty(Ds.Versions.v1_0,"min"),t.maxProperty=new Ds.NumProperty(Ds.Versions.v1_0,"max"),As([(0,Ds.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),As([(0,Ds.property)(t.minProperty)],t.prototype,"min",void 0),As([(0,Ds.property)(t.maxProperty)],t.prototype,"max",void 0),As([(0,Ds.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(fl);xo.NumberInput=wl;var kl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t.prototype.internalRender=function(){var e=this;return this._dateInputElement=document.createElement("input"),this._dateInputElement.setAttribute("type","date"),this.min&&this._dateInputElement.setAttribute("min",this.min),this.max&&this._dateInputElement.setAttribute("max",this.max),this.placeholder&&(this._dateInputElement.placeholder=this.placeholder,this._dateInputElement.setAttribute("aria-label",this.placeholder)),this._dateInputElement.tabIndex=this.isDesignMode()?-1:0,this._dateInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-dateInput"),this._dateInputElement.style.width="100%",this._dateInputElement.oninput=function(){e.valueChanged()},this.defaultValue&&(this._dateInputElement.value=this.defaultValue),this._dateInputElement},t.prototype.updateVisualState=function(t){if(this.allowRevealOnHoverStyle&&(e.prototype.updateVisualState.call(this,t),this._dateInputElement&&this.inputStyle===Ms.InputStyle.RevealOnHover)){var r=this.shouldHideInputAdornersForRevealOnHover(this._dateInputElement,t);r?this._dateInputElement.classList.remove(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus")):this._dateInputElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus")),nc(this._dateInputElement,r)}},t.prototype.getJsonTypeName=function(){return"Input.Date"},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){if(!this.value)return!this.isRequired;var e=new Date(this.value),t=!0;if(this.min){var r=new Date(this.min);t=t&&e>=r}if(this.max){var n=new Date(this.max);t=t&&e<=n}return t},Object.defineProperty(t.prototype,"value",{get:function(){return this._dateInputElement?this._dateInputElement.value:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new Ds.StringProperty(Ds.Versions.v1_0,"value"),t.placeholderProperty=new Ds.StringProperty(Ds.Versions.v1_0,"placeholder"),t.minProperty=new Ds.StringProperty(Ds.Versions.v1_0,"min"),t.maxProperty=new Ds.StringProperty(Ds.Versions.v1_0,"max"),As([(0,Ds.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),As([(0,Ds.property)(t.minProperty)],t.prototype,"min",void 0),As([(0,Ds.property)(t.maxProperty)],t.prototype,"max",void 0),As([(0,Ds.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(fl);xo.DateInput=kl;var Sl=function(e){function t(t,r){var n=e.call(this,t,r,function(e,t,r,n){var i=r[t.name];if("string"==typeof i&&i&&/^[0-9]{2}:[0-9]{2}$/.test(i))return i},function(e,t,r,n,i){i.serializeValue(r,t.name,n)})||this;return n.targetVersion=t,n.name=r,n}return Ts(t,e),t}(Ds.CustomProperty);xo.TimeProperty=Sl;var _l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t.convertTimeStringToDate=function(e){return new Date("1973-09-04T"+e+":00Z")},t.prototype.internalRender=function(){var e=this;return this._timeInputElement=document.createElement("input"),this._timeInputElement.setAttribute("type","time"),this.min&&this._timeInputElement.setAttribute("min",this.min),this.max&&this._timeInputElement.setAttribute("max",this.max),this._timeInputElement.className=this.hostConfig.makeCssClassName("ac-input","ac-timeInput"),this._timeInputElement.style.width="100%",this._timeInputElement.oninput=function(){e.valueChanged()},this.placeholder&&(this._timeInputElement.placeholder=this.placeholder,this._timeInputElement.setAttribute("aria-label",this.placeholder)),this._timeInputElement.tabIndex=this.isDesignMode()?-1:0,this.defaultValue&&(this._timeInputElement.value=this.defaultValue),this._timeInputElement},t.prototype.updateVisualState=function(t){if(this.allowRevealOnHoverStyle&&(e.prototype.updateVisualState.call(this,t),this._timeInputElement&&this.inputStyle===Ms.InputStyle.RevealOnHover)){var r=this.shouldHideInputAdornersForRevealOnHover(this._timeInputElement,t);r?this._timeInputElement.classList.remove(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus")):this._timeInputElement.classList.add(this.hostConfig.makeCssClassName("ac-inputStyle-revealOnHover-onfocus")),nc(this._timeInputElement,r)}},t.prototype.getJsonTypeName=function(){return"Input.Time"},t.prototype.isSet=function(){return!!this.value},t.prototype.isValid=function(){if(!this.value)return!this.isRequired;var e=t.convertTimeStringToDate(this.value),r=!0;if(this.min){var n=t.convertTimeStringToDate(this.min);r=r&&e>=n}if(this.max){var i=t.convertTimeStringToDate(this.max);r=r&&e<=i}return r},Object.defineProperty(t.prototype,"value",{get:function(){return this._timeInputElement?this._timeInputElement.value:void 0},enumerable:!1,configurable:!0}),t.valueProperty=new Sl(Ds.Versions.v1_0,"value"),t.placeholderProperty=new Ds.StringProperty(Ds.Versions.v1_0,"placeholder"),t.minProperty=new Sl(Ds.Versions.v1_0,"min"),t.maxProperty=new Sl(Ds.Versions.v1_0,"max"),As([(0,Ds.property)(t.valueProperty)],t.prototype,"defaultValue",void 0),As([(0,Ds.property)(t.minProperty)],t.prototype,"min",void 0),As([(0,Ds.property)(t.maxProperty)],t.prototype,"max",void 0),As([(0,Ds.property)(t.placeholderProperty)],t.prototype,"placeholder",void 0),t}(fl);xo.TimeInput=_l;var Tl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.style=Ms.ActionStyle.Default,t.mode=Ms.ActionMode.Primary,t._state=0,t._isFocusable=!0,t}return Ts(t,e),t.prototype.renderButtonContent=function(){if(this.renderedElement){var e=this.hostConfig,t=document.createElement("div");if(t.style.overflow="hidden",t.style.textOverflow="ellipsis",e.actions.iconPlacement===Ms.ActionIconPlacement.AboveTitle||e.actions.allowTitleToWrap||(t.style.whiteSpace="nowrap"),this.title&&(t.innerText=this.title),this.iconUrl){var r=document.createElement("img");r.src=this.iconUrl,r.style.width=e.actions.iconSize+"px",r.style.height=e.actions.iconSize+"px",r.style.flex="0 0 auto",e.actions.iconPlacement===Ms.ActionIconPlacement.AboveTitle?(this.renderedElement.classList.add("iconAbove"),this.renderedElement.style.flexDirection="column",this.title&&(r.style.marginBottom="6px")):(this.renderedElement.classList.add("iconLeft"),r.style.maxHeight="100%",this.title&&(r.style.marginRight="6px")),this.renderedElement.appendChild(r),this.renderedElement.appendChild(t)}else this.renderedElement.classList.add("noIcon"),this.renderedElement.appendChild(t)}},t.prototype.getParentContainer=function(){return this.parent instanceof Yl?this.parent:this.parent?this.parent.getParentContainer():void 0},t.prototype.isDesignMode=function(){var e=this.getRootObject();return e instanceof Vs&&e.isDesignMode()},t.prototype.updateCssClasses=function(){var e,t;if(this.parent&&this.renderedElement){var r=this.parent.hostConfig;this.renderedElement.className=r.makeCssClassName(this.isEffectivelyEnabled()?"ac-pushButton":"ac-pushButton-disabled");var n=this.getParentContainer();if(n){var i=n.getEffectiveStyle();i&&this.renderedElement.classList.add("style-"+i)}switch(this.renderedElement.tabIndex=!this.isDesignMode()&&this.isFocusable?0:-1,this._state){case 0:break;case 1:this.renderedElement.classList.add(r.makeCssClassName("expanded"));break;case 2:this.renderedElement.classList.add(r.makeCssClassName("subdued"))}this.style&&this.isEffectivelyEnabled()&&(this.style===Ms.ActionStyle.Positive?(e=this.renderedElement.classList).add.apply(e,r.makeCssClassNames("primary","style-positive")):(t=this.renderedElement.classList).add.apply(t,r.makeCssClassNames("style-"+this.style.toLowerCase())))}},t.prototype.getDefaultSerializationContext=function(){return new dc},t.prototype.internalGetReferencedInputs=function(){return{}},t.prototype.internalPrepareForExecution=function(e){},t.prototype.internalValidateInputs=function(e){var t=[];if(e)for(var r=0,n=Object.keys(e);r<n.length;r++){var i=e[n[r]];i.validateValue()||t.push(i)}return t},t.prototype.shouldSerialize=function(e){return void 0!==e.actionRegistry.findByName(this.getJsonTypeName())},t.prototype.raiseExecuteActionEvent=function(){var e,t,r;this.onExecute&&this.onExecute(this),t=(e=this).parent?e.parent.getRootElement():void 0,r=t&&t.onExecuteAction?t.onExecuteAction:uc.onExecuteAction,e.prepareForExecution()&&r&&r(e)},t.prototype.internalAfterExecute=function(){var e=this.getRootObject();e instanceof Vs&&e.updateActionsEnabledState()},t.prototype.getHref=function(){return""},t.prototype.getAriaRole=function(){var e=this.getAriaRoleFromEnum();return null!=e?e:"button"},t.prototype.getAriaRoleFromEnum=function(){switch(this.role){case Ms.ActionRole.Button:return"button";case Ms.ActionRole.Link:return"link";case Ms.ActionRole.Menu:return"menu";case Ms.ActionRole.MenuItem:return"menuitem";case Ms.ActionRole.Tab:return"tab";default:return}},t.prototype.setupElementForAccessibility=function(e,t){void 0===t&&(t=!1),e.tabIndex=this.isEffectivelyEnabled()&&!this.isDesignMode()?0:-1,e.setAttribute("role",this.getAriaRole()),e instanceof HTMLButtonElement&&(e.disabled=!this.isEffectivelyEnabled()),this.isEffectivelyEnabled()?(e.removeAttribute("aria-disabled"),e.classList.add(this.hostConfig.makeCssClassName("ac-selectable"))):e.setAttribute("aria-disabled","true"),this.title?(e.setAttribute("aria-label",this.title),e.title=this.title):(e.removeAttribute("aria-label"),e.removeAttribute("title")),this.tooltip&&(t&&!this.title&&e.setAttribute("aria-label",this.tooltip),e.title=this.tooltip)},t.prototype.parse=function(t,r){return e.prototype.parse.call(this,t,r||new dc)},t.prototype.render=function(){var e=this,t=document.createElement("button");t.type="button",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.onclick=function(t){e.isEffectivelyEnabled()&&(t.preventDefault(),t.cancelBubble=!0,e.execute())},this._renderedElement=t,this.renderButtonContent(),this.updateCssClasses(),this.setupElementForAccessibility(t)},t.prototype.execute=function(){this._actionCollection&&this._actionCollection.actionExecuted(this),this.raiseExecuteActionEvent(),this.internalAfterExecute()},t.prototype.prepareForExecution=function(){var e=this.getReferencedInputs(),t=this.internalValidateInputs(e);return t.length>0?(t[0].focus(),!1):(this.internalPrepareForExecution(e),!0)},t.prototype.remove=function(){return!!this._actionCollection&&this._actionCollection.removeAction(this)},t.prototype.getAllInputs=function(e){return[]},t.prototype.getAllActions=function(){return[this]},t.prototype.getResourceInformation=function(){return this.iconUrl?[{url:this.iconUrl,mimeType:"image"}]:[]},t.prototype.getActionById=function(e){return this.id===e?this:void 0},t.prototype.getReferencedInputs=function(){return this.internalGetReferencedInputs()},t.prototype.validateInputs=function(){return this.internalValidateInputs(this.getReferencedInputs())},t.prototype.updateEnabledState=function(){},t.prototype.isEffectivelyEnabled=function(){return this.isEnabled},Object.defineProperty(t.prototype,"isPrimary",{get:function(){return this.style===Ms.ActionStyle.Positive},set:function(e){e?this.style=Ms.ActionStyle.Positive:this.style===Ms.ActionStyle.Positive&&(this.style=Ms.ActionStyle.Default)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hostConfig",{get:function(){return this.parent?this.parent.hostConfig:Ls.defaultHostConfig},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){this._state!==e&&(this._state=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusable",{get:function(){return this._isFocusable},set:function(e){this._isFocusable!==e&&(this._isFocusable=e,this.updateCssClasses())},enumerable:!1,configurable:!0}),t.titleProperty=new Ds.StringProperty(Ds.Versions.v1_0,"title"),t.iconUrlProperty=new Ds.StringProperty(Ds.Versions.v1_1,"iconUrl"),t.styleProperty=new Ds.ValueSetProperty(Ds.Versions.v1_2,"style",[{value:Ms.ActionStyle.Default},{value:Ms.ActionStyle.Positive},{value:Ms.ActionStyle.Destructive}],Ms.ActionStyle.Default),t.modeProperty=new Ds.ValueSetProperty(Ds.Versions.v1_5,"mode",[{value:Ms.ActionMode.Primary},{value:Ms.ActionMode.Secondary}],Ms.ActionMode.Primary),t.tooltipProperty=new Ds.StringProperty(Ds.Versions.v1_5,"tooltip"),t.isEnabledProperty=new Ds.BoolProperty(Ds.Versions.v1_5,"isEnabled",!0),t.roleProperty=new Ds.EnumProperty(Ds.Versions.v1_6,"role",Ms.ActionRole),As([(0,Ds.property)(t.titleProperty)],t.prototype,"title",void 0),As([(0,Ds.property)(t.iconUrlProperty)],t.prototype,"iconUrl",void 0),As([(0,Ds.property)(t.styleProperty)],t.prototype,"style",void 0),As([(0,Ds.property)(t.modeProperty)],t.prototype,"mode",void 0),As([(0,Ds.property)(t.tooltipProperty)],t.prototype,"tooltip",void 0),As([(0,Ds.property)(t.isEnabledProperty)],t.prototype,"isEnabled",void 0),As([(0,Ds.property)(t.roleProperty)],t.prototype,"role",void 0),t}(Ns.CardObject);xo.Action=Tl;var Al=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabledUnlessAssociatedInputsChange=!1,t._isPrepared=!1,t._areReferencedInputsDirty=!1,t}return Ts(t,e),t.prototype.internalGetReferencedInputs=function(){var e={};if("none"!==this.associatedInputs){for(var t=this.parent,r=[];t;)r.push.apply(r,t.getAllInputs(!1)),t=t.parent;for(var n=0,i=r;n<i.length;n++){var o=i[n];o.id&&(e[o.id]=o)}}return e},t.prototype.internalPrepareForExecution=function(e){if(this._originalData?this._processedData=JSON.parse(JSON.stringify(this._originalData)):this._processedData={},this._processedData&&e)for(var t=0,r=Object.keys(e);t<r.length;t++){var n=e[r[t]];n.id&&n.isSet()&&(this._processedData[n.id]="string"==typeof n.value?n.value:n.value.toString())}this._isPrepared=!0},t.prototype.internalAfterExecute=function(){Is.GlobalSettings.resetInputsDirtyStateAfterActionExecution&&this.resetReferencedInputsDirtyState()},t.prototype.resetReferencedInputsDirtyState=function(){var e=this.getReferencedInputs();if(this._areReferencedInputsDirty=!1,e)for(var t=0,r=Object.keys(e);t<r.length;t++){e[r[t]].resetDirtyState()}},t.prototype.updateEnabledState=function(){this._areReferencedInputsDirty=!1;var e=this.getReferencedInputs();if(e)for(var t=0,r=Object.keys(e);t<r.length;t++){if(e[r[t]].isDirty()){this._areReferencedInputsDirty=!0;break}}this.updateCssClasses(),this._renderedElement&&this.setupElementForAccessibility(this._renderedElement)},t.prototype.isEffectivelyEnabled=function(){var t=e.prototype.isEffectivelyEnabled.call(this);return this.disabledUnlessAssociatedInputsChange?t&&this._areReferencedInputsDirty:t},Object.defineProperty(t.prototype,"data",{get:function(){return this._isPrepared?this._processedData:this._originalData},set:function(e){this._originalData=e,this._isPrepared=!1},enumerable:!1,configurable:!0}),t.dataProperty=new Ds.PropertyDefinition(Ds.Versions.v1_0,"data"),t.associatedInputsProperty=new Ds.CustomProperty(Ds.Versions.v1_3,"associatedInputs",function(e,t,r,n){var i=r[t.name];if(void 0!==i&&"string"==typeof i)return"none"===i.toLowerCase()?"none":"auto"},function(e,t,r,n,i){i.serializeValue(r,t.name,n)}),t.disabledUnlessAssociatedInputsChangeProperty=new Ds.BoolProperty(Ds.Versions.v1_6,"disabledUnlessAssociatedInputsChange",!1),As([(0,Ds.property)(t.dataProperty)],t.prototype,"_originalData",void 0),As([(0,Ds.property)(t.associatedInputsProperty)],t.prototype,"associatedInputs",void 0),As([(0,Ds.property)(t.disabledUnlessAssociatedInputsChangeProperty)],t.prototype,"disabledUnlessAssociatedInputsChange",void 0),t}(Tl);xo.SubmitActionBase=Al;var El=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.JsonTypeName="Action.Submit",t}(Al),Pl=xo.SubmitAction=El,Ml=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t}(Al);xo.UniversalAction=Ml;var Il=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.JsonTypeName="Action.Execute",t.verbProperty=new Ds.StringProperty(Ds.Versions.v1_4,"verb"),As([(0,Ds.property)(t.verbProperty)],t.prototype,"verb",void 0),t}(Ml),Bl=xo.ExecuteAction=Il,Ll=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t.prototype.getJsonTypeName=function(){return t.JsonTypeName},Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),t.JsonTypeName="Data.Query",t.datasetProperty=new Ds.StringProperty(Ds.Versions.v1_6,"dataset"),t.filterProperty=new Ds.StringProperty(Ds.Versions.v1_6,"filter"),t.countProperty=new Ds.NumProperty(Ds.Versions.v1_6,"count"),t.skipProperty=new Ds.NumProperty(Ds.Versions.v1_6,"skip"),As([(0,Ds.property)(t.datasetProperty)],t.prototype,"dataset",void 0),As([(0,Ds.property)(t.filterProperty)],t.prototype,"filter",void 0),As([(0,Ds.property)(t.countProperty)],t.prototype,"count",void 0),As([(0,Ds.property)(t.skipProperty)],t.prototype,"skip",void 0),t}(Ml);xo.DataQuery=Ll;var jl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.getAriaRole=function(){var e=this.getAriaRoleFromEnum();return null!=e?e:"link"},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.url||t.addFailure(this,Ms.ValidationEvent.PropertyCantBeNull,zs.Strings.errors.propertyMustBeSet("url"))},t.prototype.getHref=function(){return this.url},t.urlProperty=new Ds.StringProperty(Ds.Versions.v1_0,"url"),t.JsonTypeName="Action.OpenUrl",As([(0,Ds.property)(t.urlProperty)],t.prototype,"url",void 0),t}(Tl),Nl=xo.OpenUrlAction=jl,Dl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.targetElements={},t}return Ts(t,e),t.prototype.updateAriaControlsAttribute=function(){if(this.targetElements){var e=Object.keys(this.targetElements);this._renderedElement&&(e.length>0?this._renderedElement.setAttribute("aria-controls",e.join(" ")):this._renderedElement.removeAttribute("aria-controls"))}},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.targetElements||t.addFailure(this,Ms.ValidationEvent.PropertyCantBeNull,zs.Strings.errors.propertyMustBeSet("targetElements"))},t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.render=function(){e.prototype.render.call(this),this.updateAriaControlsAttribute()},t.prototype.execute=function(){if(e.prototype.execute.call(this),this.parent)for(var t=0,r=Object.keys(this.targetElements);t<r.length;t++){var n=r[t],i=this.parent.getRootElement().getElementById(n);i&&("boolean"==typeof this.targetElements[n]?i.isVisible=this.targetElements[n]:i.isVisible=!i.isVisible)}},t.prototype.addTargetElement=function(e,t){void 0===t&&(t=void 0),this.targetElements[e]=t,this.updateAriaControlsAttribute()},t.prototype.removeTargetElement=function(e){delete this.targetElements[e],this.updateAriaControlsAttribute()},t.targetElementsProperty=new Ds.CustomProperty(Ds.Versions.v1_2,"targetElements",function(e,t,r,n){var i={};if(Array.isArray(r[t.name]))for(var o=0,a=r[t.name];o<a.length;o++){var s=a[o];if("string"==typeof s)i[s]=void 0;else if("object"==typeof s){var l=s.elementId;"string"==typeof l&&(i[l]=Bs.parseBool(s.isVisible))}}return i},function(e,t,r,n,i){for(var o=[],a=0,s=Object.keys(n);a<s.length;a++){var l=s[a];"boolean"==typeof n[l]?o.push({elementId:l,isVisible:n[l]}):o.push(l)}i.serializeArray(r,t.name,o)},{},function(e){return{}}),t.JsonTypeName="Action.ToggleVisibility",As([(0,Ds.property)(t.targetElementsProperty)],t.prototype,"targetElements",void 0),t}(Tl),Ol=xo.ToggleVisibilityAction=Dl,zl=function(e){function t(t,r){var n=e.call(this,t,r,void 0,function(){return new Is.StringWithSubstitutions})||this;return n.targetVersion=t,n.name=r,n}return Ts(t,e),t.prototype.parse=function(e,t,r){var n=new Is.StringWithSubstitutions;return n.set(Bs.parseString(t[this.name])),n},t.prototype.toJSON=function(e,t,r,n){n.serializeValue(t,this.name,r.getOriginal())},t}(Ds.PropertyDefinition),Fl=function(e){function t(t,r){void 0===t&&(t=""),void 0===r&&(r="");var n=e.call(this)||this;return n.name=t,n.value=r,n}return Ts(t,e),t.prototype.getSchemaKey=function(){return"HttpHeader"},t.prototype.getReferencedInputs=function(e,t){this._value.getReferencedInputs(e,t)},t.prototype.prepareForExecution=function(e){this._value.substituteInputValues(e,Is.ContentTypes.applicationXWwwFormUrlencoded)},Object.defineProperty(t.prototype,"value",{get:function(){return this._value.get()},set:function(e){this._value.set(e)},enumerable:!1,configurable:!0}),t.nameProperty=new Ds.StringProperty(Ds.Versions.v1_0,"name"),t.valueProperty=new zl(Ds.Versions.v1_0,"value"),As([(0,Ds.property)(t.nameProperty)],t.prototype,"name",void 0),As([(0,Ds.property)(t.valueProperty)],t.prototype,"_value",void 0),t}(Ds.SerializableObject);xo.HttpHeader=Fl;var Rl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._ignoreInputValidation=!1,t}return Ts(t,e),t.prototype.internalGetReferencedInputs=function(){var e=this.parent?this.parent.getRootElement().getAllInputs():[],t={};this._url.getReferencedInputs(e,t);for(var r=0,n=this.headers;r<n.length;r++){n[r].getReferencedInputs(e,t)}return this._body.getReferencedInputs(e,t),t},t.prototype.internalPrepareForExecution=function(e){if(e){this._url.substituteInputValues(e,Is.ContentTypes.applicationXWwwFormUrlencoded);for(var t=Is.ContentTypes.applicationJson,r=0,n=this.headers;r<n.length;r++){var i=n[r];i.prepareForExecution(e),i.name&&"content-type"===i.name.toLowerCase()&&(t=i.value)}this._body.substituteInputValues(e,t)}},t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.internalValidateProperties=function(t){if(e.prototype.internalValidateProperties.call(this,t),this.url||t.addFailure(this,Ms.ValidationEvent.PropertyCantBeNull,zs.Strings.errors.propertyMustBeSet("url")),this.headers.length>0)for(var r=0,n=this.headers;r<n.length;r++){n[r].name||t.addFailure(this,Ms.ValidationEvent.PropertyCantBeNull,zs.Strings.errors.actionHttpHeadersMustHaveNameAndValue())}},Object.defineProperty(t.prototype,"ignoreInputValidation",{get:function(){return this._ignoreInputValidation},set:function(e){this._ignoreInputValidation=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this._url.get()},set:function(e){this._url.set(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"body",{get:function(){return this._body.get()},set:function(e){this._body.set(e)},enumerable:!1,configurable:!0}),t.urlProperty=new zl(Ds.Versions.v1_0,"url"),t.bodyProperty=new zl(Ds.Versions.v1_0,"body"),t.methodProperty=new Ds.StringProperty(Ds.Versions.v1_0,"method"),t.headersProperty=new Ds.SerializableObjectCollectionProperty(Ds.Versions.v1_0,"headers",Fl),t.ignoreInputValidationProperty=new Ds.BoolProperty(Ds.Versions.v1_3,"ignoreInputValidation",!1),t.JsonTypeName="Action.Http",As([(0,Ds.property)(t.urlProperty)],t.prototype,"_url",void 0),As([(0,Ds.property)(t.bodyProperty)],t.prototype,"_body",void 0),As([(0,Ds.property)(t.methodProperty)],t.prototype,"method",void 0),As([(0,Ds.property)(t.headersProperty)],t.prototype,"headers",void 0),As([(0,Ds.property)(t.ignoreInputValidationProperty)],t.prototype,"_ignoreInputValidation",void 0),t}(Tl);xo.HttpAction=Rl;var $l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.card=new hc,t}return Ts(t,e),t.prototype.updateCssClasses=function(){if(e.prototype.updateCssClasses.call(this),this.renderedElement){var t=this.parent?this.parent.hostConfig:Ls.defaultHostConfig;this.renderedElement.classList.add(t.makeCssClassName("expandable")),this.renderedElement.setAttribute("aria-expanded",(1===this.state).toString())}},t.prototype.internalParse=function(t,r){e.prototype.internalParse.call(this,t,r);var n=t.card;n?this.card.parse(n,r):r.logParseEvent(this,Ms.ValidationEvent.PropertyCantBeNull,zs.Strings.errors.showCardMustHaveCard())},t.prototype.internalToJSON=function(t,r){e.prototype.internalToJSON.call(this,t,r),this.card&&r.serializeValue(t,"card",this.card.toJSON(r))},t.prototype.raiseExecuteActionEvent=function(){this.hostConfig.actions.showCard.actionMode===Ms.ShowCardActionMode.Popup&&e.prototype.raiseExecuteActionEvent.call(this)},t.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this.card.releaseDOMResources()},t.prototype.getJsonTypeName=function(){return t.JsonTypeName},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this.card.internalValidateProperties(t)},t.prototype.setParent=function(t){e.prototype.setParent.call(this,t),this.card.setParent(t)},t.prototype.getAllInputs=function(e){return void 0===e&&(e=!0),this.card.getAllInputs(e)},t.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return t.push.apply(t,this.card.getAllActions()),t},t.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return t.push.apply(t,this.card.getResourceInformation()),t},t.prototype.getActionById=function(t){var r=e.prototype.getActionById.call(this,t);return r||(r=this.card.getActionById(t)),r},t.JsonTypeName="Action.ShowCard",t}(Tl),Vl=xo.ShowCardAction=$l,Wl=function(e){function t(t){var r=e.call(this)||this;return r._actions=t,r.title=zs.Strings.defaults.overflowButtonText(),r.tooltip=zs.Strings.defaults.overflowButtonTooltip(),r}return Ts(t,e),t.prototype.getActions=function(){return this._actions},t.prototype.getAllActions=function(){var t=e.prototype.getAllActions.call(this);return t.push.apply(t,this._actions),t},t.prototype.getJsonTypeName=function(){return $l.JsonTypeName},t.prototype.execute=function(){var e,t,r,n,i,o=this;if((t=this,r=this.renderedElement,n=t.parent?t.parent.getRootElement():void 0,!(void 0!==(i=n&&n.onDisplayOverflowActionMenu?n.onDisplayOverflowActionMenu:uc.onDisplayOverflowActionMenu)&&i(t.getActions(),r)))&&this.renderedElement){var a=new Fs.PopupMenu;a.hostConfig=this.hostConfig;for(var s=function(t){var r=new Fs.MenuItem(t.toString(),null!==(e=l._actions[t].title)&&void 0!==e?e:"");r.isEnabled=l._actions[t].isEnabled,r.onClick=function(){var e=o._actions[t];a.closePopup(!1),e.isEnabled&&e.execute()},a.items.add(r)},l=this,c=0;c<this._actions.length;c++)s(c);a.onClose=function(){var e;null===(e=o.renderedElement)||void 0===e||e.setAttribute("aria-expanded","false")},this.renderedElement.setAttribute("aria-expanded","true"),a.popup(this.renderedElement)}},t.prototype.setupElementForAccessibility=function(t,r){void 0===r&&(r=!1),e.prototype.setupElementForAccessibility.call(this,t,r),t.setAttribute("aria-label",zs.Strings.defaults.overflowButtonTooltip()),t.setAttribute("aria-expanded","false")},t.JsonTypeName="Action.Overflow",t}(Tl),ql=function(){function e(e){this._items=[],this._renderedActions=[],this._owner=e}return e.prototype.isActionAllowed=function(e){var t=this._owner.getForbiddenActionTypes();if(t)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(e.constructor===i)return!1}return!0},e.prototype.refreshContainer=function(){if(Rs(this._actionCardContainer),this._actionCard){this._actionCardContainer.style.marginTop=this.renderedActionCount>0?this._owner.hostConfig.actions.showCard.inlineTopMargin+"px":"0px";var e=this._owner.getEffectivePadding();this._owner.getImmediateSurroundingPadding(e);var t=this._owner.hostConfig.paddingDefinitionToSpacingDefinition(e);this._actionCard&&(this._actionCard.style.paddingLeft=t.left+"px",this._actionCard.style.paddingRight=t.right+"px",this._actionCard.style.marginLeft="-"+t.left+"px",this._actionCard.style.marginRight="-"+t.right+"px",0===t.bottom||this._owner.isDesignMode()||(this._actionCard.style.paddingBottom=t.bottom+"px",this._actionCard.style.marginBottom="-"+t.bottom+"px"),Bs.appendChild(this._actionCardContainer,this._actionCard))}else this._actionCardContainer.style.marginTop="0px"},e.prototype.layoutChanged=function(){this._owner.getRootElement().updateLayout()},e.prototype.showActionCard=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),e.card.suppressStyle=t;var n=e.card.renderedElement&&!this._owner.isDesignMode()?e.card.renderedElement:e.card.render();this._actionCard=n,this._expandedAction=e,this.refreshContainer(),r&&(this.layoutChanged(),tc(e,!0))},e.prototype.collapseExpandedAction=function(){for(var e=0,t=this._renderedActions;e<t.length;e++){t[e].state=0}var r=this._expandedAction;this._expandedAction=void 0,this._actionCard=void 0,this.refreshContainer(),r&&(this.layoutChanged(),tc(r,!1))},e.prototype.expandShowCardAction=function(e,t){for(var r=this,n=!1,i=0,o=this._renderedActions;i<o.length;i++){var a=o[i];this._owner.hostConfig.actions.actionsOrientation==Ms.Orientation.Horizontal&&n&&(a.isFocusable=!1),a!==e?a.state=2:(a.state=1,n=!0,a.renderedElement&&(a.renderedElement.onblur=function(e){for(var t=0,n=r._renderedActions;t<n.length;t++){n[t].isFocusable=!0}}))}this.showActionCard(e,!(this._owner.isAtTheVeryLeft()&&this._owner.isAtTheVeryRight()),t)},e.prototype.releaseDOMResources=function(){for(var e=0,t=this._renderedActions;e<t.length;e++){t[e].releaseDOMResources()}},e.prototype.actionExecuted=function(e){e instanceof $l?e===this._expandedAction?this.collapseExpandedAction():this._owner.hostConfig.actions.showCard.actionMode===Ms.ShowCardActionMode.Inline&&this.expandShowCardAction(e,!0):this.collapseExpandedAction()},e.prototype.parse=function(e,t){if(this.clear(),Array.isArray(e))for(var r=0,n=e;r<n.length;r++){var i=n[r],o=[];this._owner instanceof ic&&(o=this._owner.getForbiddenActionNames());var a=t.parseAction(this._owner,i,o,!this._owner.isDesignMode());a&&this.addAction(a)}},e.prototype.toJSON=function(e,t,r){r.serializeArray(e,t,this._items)},e.prototype.getActionAt=function(e){return this._items[e]},e.prototype.getActionCount=function(){return this._items.length},e.prototype.getActionById=function(e){for(var t=void 0,r=0,n=this._items;r<n.length;r++){if(t=n[r].getActionById(e))break}return t},e.prototype.validateProperties=function(e){this._owner.hostConfig.actions.maxActions&&this._items.length>this._owner.hostConfig.actions.maxActions&&e.addFailure(this._owner,Ms.ValidationEvent.TooManyActions,zs.Strings.errors.tooManyActions(this._owner.hostConfig.actions.maxActions)),this._items.length>0&&!this._owner.hostConfig.supportsInteractivity&&e.addFailure(this._owner,Ms.ValidationEvent.InteractivityNotAllowed,zs.Strings.errors.interactivityNotAllowed());for(var t=0,r=this._items;t<r.length;t++){var n=r[t];this.isActionAllowed(n)||e.addFailure(this._owner,Ms.ValidationEvent.ActionTypeNotAllowed,zs.Strings.errors.actionTypeNotAllowed(n.getJsonTypeName())),n.internalValidateProperties(e)}},e.prototype.render=function(e){var t=this._owner.hostConfig;if(t.supportsInteractivity){var r=document.createElement("div"),n=t.actions.maxActions?Math.min(t.actions.maxActions,this._items.length):this._items.length;if(this._actionCardContainer=document.createElement("div"),this._renderedActions=[],t.actions.preExpandSingleShowCardAction&&1===n&&this._items[0]instanceof $l&&this.isActionAllowed(this._items[0]))this.showActionCard(this._items[0],!0),this._renderedActions.push(this._items[0]);else{var i=document.createElement("div");if(i.className=t.makeCssClassName("ac-actionSet"),i.style.display="flex",e===Ms.Orientation.Horizontal)if(i.style.flexDirection="row",this._owner.horizontalAlignment&&t.actions.actionAlignment!==Ms.ActionAlignment.Stretch)switch(this._owner.horizontalAlignment){case Ms.HorizontalAlignment.Center:i.style.justifyContent="center";break;case Ms.HorizontalAlignment.Right:i.style.justifyContent="flex-end";break;default:i.style.justifyContent="flex-start"}else switch(t.actions.actionAlignment){case Ms.ActionAlignment.Center:i.style.justifyContent="center";break;case Ms.ActionAlignment.Right:i.style.justifyContent="flex-end";break;default:i.style.justifyContent="flex-start"}else if(i.style.flexDirection="column",this._owner.horizontalAlignment&&t.actions.actionAlignment!==Ms.ActionAlignment.Stretch)switch(this._owner.horizontalAlignment){case Ms.HorizontalAlignment.Center:i.style.alignItems="center";break;case Ms.HorizontalAlignment.Right:i.style.alignItems="flex-end";break;default:i.style.alignItems="flex-start"}else switch(t.actions.actionAlignment){case Ms.ActionAlignment.Center:i.style.alignItems="center";break;case Ms.ActionAlignment.Right:i.style.alignItems="flex-end";break;case Ms.ActionAlignment.Stretch:i.style.alignItems="stretch";break;default:i.style.alignItems="flex-start"}var o=this._items.filter(this.isActionAllowed.bind(this)),a=[],s=[];if(this._owner.isDesignMode())a=o;else{o.forEach(function(e){return e.mode===Ms.ActionMode.Secondary?s.push(e):a.push(e)});var l=a.splice(t.actions.maxActions);Is.GlobalSettings.allowMoreThanMaxActionsInOverflowMenu&&s.push.apply(s,l);var c=!0;if(s.length>0){this._overflowAction||(this._overflowAction=new Wl(s),this._overflowAction.setParent(this._owner),this._overflowAction._actionCollection=this);var u=this._owner instanceof uc&&!this._owner.parent;c=!function(e,t){var r=e.parent?e.parent.getRootElement():void 0,n=r&&r.onRenderOverflowActions?r.onRenderOverflowActions:uc.onRenderOverflowActions;return void 0!==n&&n(e.getActions(),t)}(this._overflowAction,u)}this._overflowAction&&c&&a.push(this._overflowAction)}for(var h=0;h<a.length;h++){var d=a[h];if(d.render(),d.renderedElement&&(t.actions.actionsOrientation===Ms.Orientation.Horizontal&&t.actions.actionAlignment===Ms.ActionAlignment.Stretch?d.renderedElement.style.flex="0 1 100%":d.renderedElement.style.flex="0 1 auto",i.appendChild(d.renderedElement),this._renderedActions.push(d),h<a.length-1&&t.actions.buttonSpacing>0)){var p=document.createElement("div");e===Ms.Orientation.Horizontal?(p.style.flex="0 0 auto",p.style.width=t.actions.buttonSpacing+"px"):p.style.height=t.actions.buttonSpacing+"px",Bs.appendChild(i,p)}}var g=document.createElement("div");g.style.overflow="hidden",g.appendChild(i),Bs.appendChild(r,g)}Bs.appendChild(r,this._actionCardContainer);for(var f=0,m=this._renderedActions;f<m.length;f++){var y=m[f];if(1===y.state){this.expandShowCardAction(y,!1);break}}return this._renderedActions.length>0?r:void 0}},e.prototype.addAction=function(e){if(!e)throw new Error("The action parameter cannot be null.");if(e.parent&&e.parent!==this._owner||!(this._items.indexOf(e)<0))throw new Error(zs.Strings.errors.actionAlreadyParented());this._items.push(e),e.parent||e.setParent(this._owner),e._actionCollection=this},e.prototype.removeAction=function(e){this.expandedAction&&this._expandedAction===e&&this.collapseExpandedAction();var t=this._items.indexOf(e);if(t>=0){this._items.splice(t,1),e.setParent(void 0),e._actionCollection=void 0;for(var r=0;r<this._renderedActions.length;r++)if(this._renderedActions[r]===e){this._renderedActions.splice(r,1);break}return!0}return!1},e.prototype.clear=function(){this._items=[],this._renderedActions=[],this._expandedAction=void 0},e.prototype.getAllInputs=function(e){void 0===e&&(e=!0);var t=[];if(e)for(var r=0,n=this._items;r<n.length;r++){var i=n[r];t.push.apply(t,i.getAllInputs())}return t},e.prototype.getResourceInformation=function(){for(var e=[],t=0,r=this._items;t<r.length;t++){var n=r[t];e.push.apply(e,n.getResourceInformation())}return e},Object.defineProperty(e.prototype,"renderedActionCount",{get:function(){return this._renderedActions.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expandedAction",{get:function(){return this._expandedAction},enumerable:!1,configurable:!0}),e}(),Hl=function(e){function t(){var t=e.call(this)||this;return t._actionCollection=new ql(t),t}return Ts(t,e),t.prototype.internalParse=function(t,r){e.prototype.internalParse.call(this,t,r),this._actionCollection.parse(t.actions,r)},t.prototype.internalToJSON=function(t,r){e.prototype.internalToJSON.call(this,t,r),this._actionCollection.toJSON(t,"actions",r)},t.prototype.internalRender=function(){return this._actionCollection.render(void 0!==this.orientation?this.orientation:this.hostConfig.actions.actionsOrientation)},t.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this._actionCollection.releaseDOMResources()},t.prototype.isBleedingAtBottom=function(){return 0===this._actionCollection.renderedActionCount?e.prototype.isBleedingAtBottom.call(this):1===this._actionCollection.getActionCount()?void 0!==this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:void 0!==this._actionCollection.expandedAction},t.prototype.getJsonTypeName=function(){return"ActionSet"},t.prototype.getActionCount=function(){return this._actionCollection.getActionCount()},t.prototype.getActionAt=function(t){return t>=0&&t<this.getActionCount()?this._actionCollection.getActionAt(t):e.prototype.getActionAt.call(this,t)},t.prototype.getActionById=function(t){var r=this._actionCollection.getActionById(t);return r||e.prototype.getActionById.call(this,t)},t.prototype.getAllActions=function(){for(var t=e.prototype.getAllActions.call(this),r=0;r<this.getActionCount();r++){var n=this.getActionAt(r);n&&t.push(n)}return t},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this._actionCollection.validateProperties(t)},t.prototype.addAction=function(e){this._actionCollection.addAction(e)},t.prototype.getAllInputs=function(e){return void 0===e&&(e=!0),e?this._actionCollection.getAllInputs():[]},t.prototype.getResourceInformation=function(){return this._actionCollection.getResourceInformation()},t.prototype.findDOMNodeOwner=function(t){for(var r=void 0,n=0;n<this.getActionCount();n++){var i=this.getActionAt(n);if(i&&(r=i.findDOMNodeOwner(t)))return r}return e.prototype.findDOMNodeOwner.call(this,t)},t.prototype.getElementById=function(t){var r=e.prototype.getElementById.call(this,t);return r||(r=this.getElementByIdFromAction(t)),r},Object.defineProperty(t.prototype,"isInteractive",{get:function(){return!0},enumerable:!1,configurable:!0}),t.orientationProperty=new Ds.EnumProperty(Ds.Versions.v1_1,"orientation",Ms.Orientation),As([(0,Ds.property)(t.orientationProperty)],t.prototype,"orientation",void 0),t}(Vs);xo.ActionSet=Hl;var Ul=function(e){function t(t,r,n,i){var o=e.call(this,t,r,[{value:Ms.ContainerStyle.Default},{value:Ms.ContainerStyle.Emphasis},{targetVersion:Ds.Versions.v1_2,value:Ms.ContainerStyle.Accent},{targetVersion:Ds.Versions.v1_2,value:Ms.ContainerStyle.Good},{targetVersion:Ds.Versions.v1_2,value:Ms.ContainerStyle.Attention},{targetVersion:Ds.Versions.v1_2,value:Ms.ContainerStyle.Warning}],n,i)||this;return o.targetVersion=t,o.name=r,o.defaultValue=n,o.onGetInitialValue=i,o}return Ts(t,e),t}(Ds.ValueSetProperty);xo.ContainerStyleProperty=Ul;var Gl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),Object.defineProperty(t.prototype,"style",{get:function(){if(this.allowCustomStyle){var e=this.getValue(t.styleProperty);if(e&&this.hostConfig.containerStyles.getStyleByName(e))return e}},set:function(e){this.setValue(t.styleProperty,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCustomStyle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasExplicitStyle",{get:function(){return void 0!==this.getValue(t.styleProperty)},enumerable:!1,configurable:!0}),t.prototype.applyBorder=function(){},t.prototype.applyBackground=function(){if(this.renderedElement){var e=this.hostConfig.containerStyles.getStyleByName(this.style,this.hostConfig.containerStyles.getStyleByName(this.defaultStyle));if(e.backgroundColor){var t=Bs.stringToCssColor(e.backgroundColor);t&&(this.renderedElement.style.backgroundColor=t)}}},t.prototype.applyPadding=function(){if(e.prototype.applyPadding.call(this),this.renderedElement){var t=new Is.SpacingDefinition;if(this.getEffectivePadding()&&(t=this.hostConfig.paddingDefinitionToSpacingDefinition(this.getEffectivePadding())),this.renderedElement.style.paddingTop=t.top+"px",this.renderedElement.style.paddingRight=t.right+"px",this.renderedElement.style.paddingBottom=t.bottom+"px",this.renderedElement.style.paddingLeft=t.left+"px",this.isBleeding()){var r=new Is.PaddingDefinition;this.getImmediateSurroundingPadding(r);var n=this.hostConfig.paddingDefinitionToSpacingDefinition(r);this.renderedElement.style.marginRight="-"+n.right+"px",this.renderedElement.style.marginLeft="-"+n.left+"px",this.isDesignMode()||(this.renderedElement.style.marginTop="-"+n.top+"px",this.renderedElement.style.marginBottom="-"+n.bottom+"px"),this.separatorElement&&this.separatorOrientation===Ms.Orientation.Horizontal&&(this.separatorElement.style.marginLeft="-"+n.left+"px",this.separatorElement.style.marginRight="-"+n.right+"px")}else this.renderedElement.style.marginRight="0",this.renderedElement.style.marginLeft="0",this.renderedElement.style.marginTop="0",this.renderedElement.style.marginBottom="0",this.separatorElement&&this.separatorOrientation===Ms.Orientation.Horizontal&&(this.separatorElement.style.marginRight="0",this.separatorElement.style.marginLeft="0")}},t.prototype.getHasBackground=function(e){void 0===e&&(e=!1);for(var r=this.parent;r;){var n=!1;if(n=!e&&(r instanceof Yl&&r.backgroundImage.isValid()),r instanceof t&&this.hasExplicitStyle&&(r.getEffectiveStyle()!==this.getEffectiveStyle()||n))return!0;r=r.parent}return!1},t.prototype.getDefaultPadding=function(){return this.getHasBackground()||this.getHasBorder()?new Is.PaddingDefinition(Ms.Spacing.Padding,Ms.Spacing.Padding,Ms.Spacing.Padding,Ms.Spacing.Padding):e.prototype.getDefaultPadding.call(this)},t.prototype.internalValidateProperties=function(r){e.prototype.internalValidateProperties.call(this,r);var n=this.getValue(t.styleProperty);void 0!==n&&(this.hostConfig.containerStyles.getStyleByName(n)||r.addFailure(this,Ms.ValidationEvent.InvalidPropertyValue,zs.Strings.errors.invalidPropertyValue(n,"style")))},t.prototype.render=function(){var t=e.prototype.render.call(this);return t&&this.getHasBackground()&&this.applyBackground(),this.applyBorder(),t},t.prototype.getEffectiveStyle=function(){var t=this.style;return t||e.prototype.getEffectiveStyle.call(this)},t.styleProperty=new Ul(Ds.Versions.v1_0,"style"),As([(0,Ds.property)(t.styleProperty)],t.prototype,"style",null),t}(Qs);xo.StylableCardElementContainer=Gl;var Xl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._bleed=!1,t}return Ts(t,e),t.prototype.adjustRenderedElementSize=function(t){e.prototype.adjustRenderedElementSize.call(this,t),this.minPixelHeight&&(t.style.minHeight=this.minPixelHeight+"px")},t.prototype.getHasExpandedAction=function(){return!1},t.prototype.getBleed=function(){return this._bleed},t.prototype.setBleed=function(e){this._bleed=e},Object.defineProperty(t.prototype,"renderedActionCount",{get:function(){return 0},enumerable:!1,configurable:!0}),t.prototype.isBleeding=function(){return(this.getHasBackground()||this.hostConfig.alwaysAllowBleed)&&this.getBleed()},t.bleedProperty=new Ds.BoolProperty(Ds.Versions.v1_2,"bleed",!1),t.minHeightProperty=new Ds.PixelSizeProperty(Ds.Versions.v1_2,"minHeight"),As([(0,Ds.property)(t.bleedProperty)],t.prototype,"_bleed",void 0),As([(0,Ds.property)(t.minHeightProperty)],t.prototype,"minPixelHeight",void 0),t}(Gl);xo.ContainerBase=Xl;var Jl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t.prototype.getSchemaKey=function(){return"BackgroundImage"},t.prototype.internalParse=function(t,r){if("string"!=typeof t)return e.prototype.internalParse.call(this,t,r);this.resetDefaultValues(),this.url=t},t.prototype.apply=function(e){if(this.url&&e.renderedElement){switch(e.renderedElement.style.backgroundImage="url('"+e.preProcessPropertyValue(t.urlProperty,this.url)+"')",this.fillMode){case Ms.FillMode.Repeat:e.renderedElement.style.backgroundRepeat="repeat";break;case Ms.FillMode.RepeatHorizontally:e.renderedElement.style.backgroundRepeat="repeat-x";break;case Ms.FillMode.RepeatVertically:e.renderedElement.style.backgroundRepeat="repeat-y";break;case Ms.FillMode.Cover:default:e.renderedElement.style.backgroundRepeat="no-repeat",e.renderedElement.style.backgroundSize="cover"}switch(this.horizontalAlignment){case Ms.HorizontalAlignment.Left:break;case Ms.HorizontalAlignment.Center:e.renderedElement.style.backgroundPositionX="center";break;case Ms.HorizontalAlignment.Right:e.renderedElement.style.backgroundPositionX="right"}switch(this.verticalAlignment){case Ms.VerticalAlignment.Top:break;case Ms.VerticalAlignment.Center:e.renderedElement.style.backgroundPositionY="center";break;case Ms.VerticalAlignment.Bottom:e.renderedElement.style.backgroundPositionY="bottom"}}},t.prototype.isValid=function(){return!!this.url},t.urlProperty=new Ds.StringProperty(Ds.Versions.v1_0,"url"),t.fillModeProperty=new Ds.EnumProperty(Ds.Versions.v1_2,"fillMode",Ms.FillMode,Ms.FillMode.Cover),t.horizontalAlignmentProperty=new Ds.EnumProperty(Ds.Versions.v1_2,"horizontalAlignment",Ms.HorizontalAlignment,Ms.HorizontalAlignment.Left),t.verticalAlignmentProperty=new Ds.EnumProperty(Ds.Versions.v1_2,"verticalAlignment",Ms.VerticalAlignment,Ms.VerticalAlignment.Top),As([(0,Ds.property)(t.urlProperty)],t.prototype,"url",void 0),As([(0,Ds.property)(t.fillModeProperty)],t.prototype,"fillMode",void 0),As([(0,Ds.property)(t.horizontalAlignmentProperty)],t.prototype,"horizontalAlignment",void 0),As([(0,Ds.property)(t.verticalAlignmentProperty)],t.prototype,"verticalAlignment",void 0),t}(Ds.SerializableObject);xo.BackgroundImage=Jl;var Yl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._items=[],t._renderedItems=[],t}return Ts(t,e),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.getValue(t.backgroundImageProperty)},enumerable:!1,configurable:!0}),t.prototype.insertItemAt=function(e,t,r){if(e.parent&&!r)throw new Error(zs.Strings.errors.elementAlreadyParented());if(!e.isStandalone)throw new Error(zs.Strings.errors.elementTypeNotStandalone(e.getJsonTypeName()));t<0||t>=this._items.length?this._items.push(e):this._items.splice(t,0,e),e.setParent(this)},t.prototype.getItemsCollectionPropertyName=function(){return"items"},t.prototype.applyBackground=function(){this.backgroundImage.isValid()&&this.renderedElement&&this.backgroundImage.apply(this),e.prototype.applyBackground.call(this)},t.prototype.applyRTL=function(e){void 0!==this.rtl&&(e.dir=this.rtl?"rtl":"ltr")},t.prototype.internalRender=function(){this._renderedItems=[];var e=this.hostConfig,t=document.createElement("div");switch(this.applyRTL(t),t.classList.add(e.makeCssClassName("ac-container")),t.style.display="flex",t.style.flexDirection="column",Is.GlobalSettings.useAdvancedCardBottomTruncation&&(t.style.minHeight="-webkit-min-content"),this.getEffectiveVerticalContentAlignment()){case Ms.VerticalAlignment.Center:t.style.justifyContent="center";break;case Ms.VerticalAlignment.Bottom:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}if(this._items.length>0)for(var r=0,n=this._items;r<n.length;r++){var i=n[r],o=this.isElementAllowed(i)?i.render():void 0;o&&(this._renderedItems.length>0&&i.separatorElement&&(i.separatorElement.style.flex="0 0 auto",Bs.appendChild(t,i.separatorElement)),Bs.appendChild(t,o),this._renderedItems.push(i))}else if(this.isDesignMode()){var a=this.createPlaceholderElement();a.style.width="100%",a.style.height="100%",t.appendChild(a)}return t},t.prototype.truncateOverflow=function(e){if(this.renderedElement){for(var t=this.renderedElement.offsetTop+e+1,r=function(e){var n=e.renderedElement;if(n)switch(Bs.getFitStatus(n,t)){case Ms.ContainerFitStatus.FullyInContainer:e.resetOverflow()&&r(e);break;case Ms.ContainerFitStatus.Overflowing:var i=t-n.offsetTop;e.handleOverflow(i);break;case Ms.ContainerFitStatus.FullyOutOfContainer:e.handleOverflow(0)}},n=0,i=this._items;n<i.length;n++){var o=i[n];r(o)}return!0}return!1},t.prototype.undoOverflowTruncation=function(){for(var e=0,t=this._items;e<t.length;e++){t[e].resetOverflow()}},t.prototype.getHasBackground=function(t){return void 0===t&&(t=!1),!t&&this.backgroundImage.isValid()||e.prototype.getHasBackground.call(this,t)},t.prototype.internalParse=function(t,r){e.prototype.internalParse.call(this,t,r),this.clear(),this.setShouldFallback(!1);var n=t[this.getItemsCollectionPropertyName()];if(Array.isArray(n))for(var i=0,o=n;i<o.length;i++){var a=o[i],s=r.parseElement(this,a,this.forbiddenChildElements(),!this.isDesignMode());s&&this.insertItemAt(s,-1,!0)}},t.prototype.internalToJSON=function(t,r){e.prototype.internalToJSON.call(this,t,r);var n=this.getItemsCollectionPropertyName();r.serializeArray(t,n,this._items)},Object.defineProperty(t.prototype,"isSelectable",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getEffectivePadding=function(){return Is.GlobalSettings.removePaddingFromContainersWithBackgroundImage&&!this.getHasBackground(!0)?new Is.PaddingDefinition:e.prototype.getEffectivePadding.call(this)},t.prototype.getEffectiveVerticalContentAlignment=function(){if(void 0!==this.verticalContentAlignment)return this.verticalContentAlignment;var e=this.getParentContainer();return e?e.getEffectiveVerticalContentAlignment():Ms.VerticalAlignment.Top},t.prototype.getItemCount=function(){return this._items.length},t.prototype.getItemAt=function(e){return this._items[e]},t.prototype.getFirstVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedItems&&this._renderedItems.length>0)for(var e=0,t=this._renderedItems;e<t.length;e++){var r=t[e];if(r.isVisible)return r}},t.prototype.getLastVisibleRenderedItem=function(){if(this.renderedElement&&this._renderedItems&&this._renderedItems.length>0)for(var e=this._renderedItems.length-1;e>=0;e--)if(this._renderedItems[e].isVisible)return this._renderedItems[e]},t.prototype.getJsonTypeName=function(){return"Container"},t.prototype.isFirstElement=function(e){for(var t=this.isDesignMode(),r=0,n=this._items;r<n.length;r++){var i=n[r];if(i.isVisible||t)return i===e}return!1},t.prototype.isLastElement=function(e){for(var t=this.isDesignMode(),r=this._items.length-1;r>=0;r--)if(this._items[r].isVisible||t)return this._items[r]===e;return!1},t.prototype.isRtl=function(){if(void 0!==this.rtl)return this.rtl;var e=this.getParentContainer();return!!e&&e.isRtl()},t.prototype.isBleedingAtTop=function(){var e=this.getFirstVisibleRenderedItem();return this.isBleeding()||!!e&&e.isBleedingAtTop()},t.prototype.isBleedingAtBottom=function(){var e=this.getLastVisibleRenderedItem();return this.isBleeding()||!!e&&(e.isBleedingAtBottom()&&e.getEffectiveStyle()===this.getEffectiveStyle())},t.prototype.indexOf=function(e){return this._items.indexOf(e)},t.prototype.addItem=function(e){this.insertItemAt(e,-1,!1)},t.prototype.insertItemBefore=function(e,t){this.insertItemAt(e,this._items.indexOf(t),!1)},t.prototype.insertItemAfter=function(e,t){this.insertItemAt(e,this._items.indexOf(t)+1,!1)},t.prototype.removeItem=function(e){var t=this._items.indexOf(e);return t>=0&&(this._items.splice(t,1),e.setParent(void 0),this.updateLayout(),!0)},t.prototype.clear=function(){this._items=[],this._renderedItems=[]},t.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return this.backgroundImage.isValid()&&t.push({url:this.backgroundImage.url,mimeType:"image"}),t},t.prototype.getActionById=function(t){var r=e.prototype.getActionById.call(this,t);if(!r&&(this.selectAction&&(r=this.selectAction.getActionById(t)),!r))for(var n=0,i=this._items;n<i.length;n++){if(r=i[n].getActionById(t))break}return r},Object.defineProperty(t.prototype,"padding",{get:function(){return this.getPadding()},set:function(e){this.setPadding(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAction",{get:function(){return this._selectAction},set:function(e){this._selectAction=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bleed",{get:function(){return this.getBleed()},set:function(e){this.setBleed(e)},enumerable:!1,configurable:!0}),t.backgroundImageProperty=new Ds.SerializableObjectProperty(Ds.Versions.v1_0,"backgroundImage",Jl),t.verticalContentAlignmentProperty=new Ds.EnumProperty(Ds.Versions.v1_1,"verticalContentAlignment",Ms.VerticalAlignment),t.rtlProperty=new Ds.BoolProperty(Ds.Versions.v1_0,"rtl"),As([(0,Ds.property)(t.backgroundImageProperty)],t.prototype,"backgroundImage",null),As([(0,Ds.property)(t.verticalContentAlignmentProperty)],t.prototype,"verticalContentAlignment",void 0),As([(0,Ds.property)(t.rtlProperty)],t.prototype,"rtl",void 0),t}(Xl);xo.Container=Yl;var Zl=function(e){function t(t){void 0===t&&(t="stretch");var r=e.call(this)||this;return r.width="stretch",r._computedWeight=0,r.width=t,r}return Ts(t,e),t.prototype.adjustRenderedElementSize=function(e){this.isDesignMode()?(e.style.minWidth="20px",e.style.minHeight=(this.minPixelHeight?Math.max(this.minPixelHeight,20):20)+"px"):(e.style.minWidth="0",this.minPixelHeight&&(e.style.minHeight=this.minPixelHeight+"px")),"auto"===this.width?e.style.flex="0 1 auto":"stretch"===this.width?e.style.flex="1 1 50px":this.width instanceof Is.SizeAndUnit&&(this.width.unit===Ms.SizeUnit.Pixel?(e.style.flex="0 0 auto",e.style.width=this.width.physicalSize+"px"):e.style.flex="1 1 "+(this._computedWeight>0?this._computedWeight:this.width.physicalSize)+"%")},t.prototype.shouldSerialize=function(e){return!0},Object.defineProperty(t.prototype,"separatorOrientation",{get:function(){return Ms.Orientation.Vertical},enumerable:!1,configurable:!0}),t.prototype.getJsonTypeName=function(){return"Column"},Object.defineProperty(t.prototype,"hasVisibleSeparator",{get:function(){return!!(this.parent&&this.parent instanceof Kl)&&(void 0!==this.separatorElement&&!this.parent.isLeftMostElement(this))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),t.widthProperty=new Ds.CustomProperty(Ds.Versions.v1_0,"width",function(e,t,r,n){var i=t.defaultValue,o=r[t.name],a=!1;if("number"!=typeof o||isNaN(o))if("auto"===o||"stretch"===o)i=o;else if("string"==typeof o)try{(i=Is.SizeAndUnit.parse(o)).unit===Ms.SizeUnit.Pixel&&t.targetVersion.compareTo(n.targetVersion)>0&&(a=!0)}catch(s){a=!0}else a=!0;else i=new Is.SizeAndUnit(o,Ms.SizeUnit.Weight);return a&&(n.logParseEvent(e,Ms.ValidationEvent.InvalidPropertyValue,zs.Strings.errors.invalidColumnWidth(o)),i="auto"),i},function(e,t,r,n,i){n instanceof Is.SizeAndUnit?n.unit===Ms.SizeUnit.Pixel?i.serializeValue(r,"width",n.physicalSize+"px"):i.serializeNumber(r,"width",n.physicalSize):i.serializeValue(r,"width",n)},"stretch"),As([(0,Ds.property)(t.widthProperty)],t.prototype,"width",void 0),t}(Yl);xo.Column=Zl;var Kl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._columns=[],t}return Ts(t,e),t.prototype.createColumnInstance=function(e,t){return t.parseCardObject(this,e,[],!this.isDesignMode(),function(e){return e&&"Column"!==e?void 0:new Zl},function(e,r){t.logParseEvent(void 0,Ms.ValidationEvent.ElementTypeNotAllowed,zs.Strings.errors.elementTypeNotAllowed(e))})},t.prototype.internalRender=function(){if(this._renderedColumns=[],this._columns.length>0){var e=this.hostConfig,t=document.createElement("div");switch(t.className=e.makeCssClassName("ac-columnSet"),t.style.display="flex",Is.GlobalSettings.useAdvancedCardBottomTruncation&&(t.style.minHeight="-webkit-min-content"),this.getEffectiveHorizontalAlignment()){case Ms.HorizontalAlignment.Center:t.style.justifyContent="center";break;case Ms.HorizontalAlignment.Right:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}for(var r=0,n=0,i=this._columns;n<i.length;n++){(s=i[n]).width instanceof Is.SizeAndUnit&&s.width.unit===Ms.SizeUnit.Weight&&(r+=s.width.physicalSize)}for(var o=0,a=this._columns;o<a.length;o++){var s;if((s=a[o]).width instanceof Is.SizeAndUnit&&s.width.unit===Ms.SizeUnit.Weight&&r>0){var l=100/r*s.width.physicalSize;s._computedWeight=l}var c=s.render();c&&(this._renderedColumns.length>0&&s.separatorElement&&(s.separatorElement.style.flex="0 0 auto",Bs.appendChild(t,s.separatorElement)),Bs.appendChild(t,c),this._renderedColumns.push(s))}return this._renderedColumns.length>0?t:void 0}},t.prototype.truncateOverflow=function(e){for(var t=0,r=this._columns;t<r.length;t++){r[t].handleOverflow(e)}return!0},t.prototype.undoOverflowTruncation=function(){for(var e=0,t=this._columns;e<t.length;e++){t[e].resetOverflow()}},Object.defineProperty(t.prototype,"isSelectable",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.internalParse=function(t,r){e.prototype.internalParse.call(this,t,r),this._columns=[],this._renderedColumns=[];var n=t.columns;if(Array.isArray(n))for(var i=0,o=n;i<o.length;i++){var a=o[i],s=this.createColumnInstance(a,r);s&&this._columns.push(s)}},t.prototype.internalToJSON=function(t,r){e.prototype.internalToJSON.call(this,t,r),r.serializeArray(t,"columns",this._columns)},t.prototype.isFirstElement=function(e){for(var t=0,r=this._columns;t<r.length;t++){var n=r[t];if(n.isVisible)return n===e}return!1},t.prototype.isBleedingAtTop=function(){if(this.isBleeding())return!0;if(this._renderedColumns&&this._renderedColumns.length>0)for(var e=0,t=this._columns;e<t.length;e++){if(t[e].isBleedingAtTop())return!0}return!1},t.prototype.isBleedingAtBottom=function(){if(this.isBleeding())return!0;if(this._renderedColumns&&this._renderedColumns.length>0)for(var e=0,t=this._columns;e<t.length;e++){if(t[e].isBleedingAtBottom())return!0}return!1},t.prototype.getItemCount=function(){return this._columns.length},t.prototype.getFirstVisibleRenderedItem=function(){return this.renderedElement&&this._renderedColumns&&this._renderedColumns.length>0?this._renderedColumns[0]:void 0},t.prototype.getLastVisibleRenderedItem=function(){return this.renderedElement&&this._renderedColumns&&this._renderedColumns.length>0?this._renderedColumns[this._renderedColumns.length-1]:void 0},t.prototype.getColumnAt=function(e){return this._columns[e]},t.prototype.getItemAt=function(e){return this.getColumnAt(e)},t.prototype.getJsonTypeName=function(){return"ColumnSet"},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t);for(var r=0,n=0,i=0,o=this._columns;i<o.length;i++){var a=o[i];"number"==typeof a.width?r++:"stretch"===a.width&&n++}r>0&&n>0&&t.addFailure(this,Ms.ValidationEvent.Hint,zs.Strings.hints.dontUseWeightedAndStrecthedColumnsInSameSet())},t.prototype.addColumn=function(e){if(e.parent)throw new Error(zs.Strings.errors.columnAlreadyBelongsToAnotherSet());this._columns.push(e),e.setParent(this)},t.prototype.removeItem=function(e){if(e instanceof Zl){var t=this._columns.indexOf(e);if(t>=0)return this._columns.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1},t.prototype.indexOf=function(e){return e instanceof Zl?this._columns.indexOf(e):-1},t.prototype.isLeftMostElement=function(e){return 0===this._columns.indexOf(e)},t.prototype.isRightMostElement=function(e){return this._columns.indexOf(e)===this._columns.length-1},t.prototype.isTopElement=function(e){return this._columns.indexOf(e)>=0},t.prototype.isBottomElement=function(e){return this._columns.indexOf(e)>=0},t.prototype.getActionById=function(e){for(var t=void 0,r=0,n=this._columns;r<n.length;r++){if(t=n[r].getActionById(e))break}return t},Object.defineProperty(t.prototype,"bleed",{get:function(){return this.getBleed()},set:function(e){this.setBleed(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function(){return this.getPadding()},set:function(e){this.setPadding(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAction",{get:function(){return this._selectAction},set:function(e){this._selectAction=e},enumerable:!1,configurable:!0}),t}(Xl);function Ql(e){var t=e.getRootElement(),r=t&&t.onImageLoaded?t.onImageLoaded:uc.onImageLoaded;r&&r(e)}function ec(e,t,r){var n=e.getRootElement(),i=n&&n.onAnchorClicked?n.onAnchorClicked:uc.onAnchorClicked;return void 0!==i&&i(e,t,r)}function tc(e,t){var r=e.parent?e.parent.getRootElement():void 0,n=r&&r.onInlineCardExpanded?r.onInlineCardExpanded:uc.onInlineCardExpanded;n&&n(e,t)}function rc(e,t){void 0===t&&(t=!0);var r=e.getRootElement();t&&r.updateLayout();var n=r,i=n&&n.onElementVisibilityChanged?n.onElementVisibilityChanged:uc.onElementVisibilityChanged;void 0!==i&&i(e)}function nc(e,t){t?(e.readOnly=!0,e.required=!0):(e.readOnly=!1,e.required=!1)}xo.ColumnSet=Kl;var ic=function(e){function t(){var t=e.call(this)||this;return t._actionCollection=new ql(t),t}return Ts(t,e),t.prototype.internalParse=function(t,r){e.prototype.internalParse.call(this,t,r),this.parseActions(t,r)},t.prototype.parseActions=function(e,t){this._actionCollection.parse(e.actions,t)},t.prototype.internalToJSON=function(t,r){e.prototype.internalToJSON.call(this,t,r),this._actionCollection.toJSON(t,"actions",r)},t.prototype.internalRender=function(){var t=e.prototype.internalRender.call(this);if(t){var r=this._actionCollection.render(this.hostConfig.actions.actionsOrientation);return r&&(Bs.appendChild(t,$s(this.hostConfig,{spacing:this.hostConfig.getEffectiveSpacing(this.hostConfig.actions.spacing)},Ms.Orientation.Horizontal)),Bs.appendChild(t,r)),this.renderIfEmpty||t.children.length>0?t:void 0}},t.prototype.getHasExpandedAction=function(){return 0!==this.renderedActionCount&&(1===this.renderedActionCount?void 0!==this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:void 0!==this._actionCollection.expandedAction)},Object.defineProperty(t.prototype,"renderedActionCount",{get:function(){return this._actionCollection.renderedActionCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderIfEmpty",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.releaseDOMResources=function(){e.prototype.releaseDOMResources.call(this),this._actionCollection.releaseDOMResources()},t.prototype.getActionCount=function(){return this._actionCollection.getActionCount()},t.prototype.getActionAt=function(t){return t>=0&&t<this.getActionCount()?this._actionCollection.getActionAt(t):e.prototype.getActionAt.call(this,t)},t.prototype.getActionById=function(t){var r=this._actionCollection.getActionById(t);return r||e.prototype.getActionById.call(this,t)},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),this._actionCollection&&this._actionCollection.validateProperties(t)},t.prototype.isLastElement=function(t){return e.prototype.isLastElement.call(this,t)&&0===this._actionCollection.getActionCount()},t.prototype.addAction=function(e){this._actionCollection.addAction(e)},t.prototype.clear=function(){e.prototype.clear.call(this),this._actionCollection.clear()},t.prototype.getAllInputs=function(t){void 0===t&&(t=!0);var r=e.prototype.getAllInputs.call(this,t);return t&&r.push.apply(r,this._actionCollection.getAllInputs(t)),r},t.prototype.getResourceInformation=function(){var t=e.prototype.getResourceInformation.call(this);return t.push.apply(t,this._actionCollection.getResourceInformation()),t},t.prototype.isBleedingAtBottom=function(){return 0===this._actionCollection.renderedActionCount?e.prototype.isBleedingAtBottom.call(this):1===this._actionCollection.getActionCount()?void 0!==this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:void 0!==this._actionCollection.expandedAction},t.prototype.getForbiddenActionNames=function(){return[]},t.prototype.getElementById=function(t){var r=e.prototype.getElementById.call(this,t);return r||(r=this.getElementByIdFromAction(t)),r},Object.defineProperty(t.prototype,"isStandalone",{get:function(){return!1},enumerable:!1,configurable:!0}),t}(Yl);xo.ContainerWithActions=ic;var oc=function(e){function t(t,r){var n=e.call(this,t,r,void 0)||this;return n.targetVersion=t,n.name=r,n}return Ts(t,e),t.prototype.parse=function(e,t,r){var n=r.parseAction(e.parent,t[this.name],[],!1);if(void 0!==n){if(n instanceof Il)return n;r.logParseEvent(e,Ms.ValidationEvent.ActionTypeNotAllowed,zs.Strings.errors.actionTypeNotAllowed(n.getJsonTypeName()))}r.logParseEvent(e,Ms.ValidationEvent.PropertyCantBeNull,zs.Strings.errors.propertyMustBeSet("action"))},t.prototype.toJSON=function(e,t,r,n){n.serializeValue(t,this.name,r?r.toJSON(n):void 0,void 0,!0)},t}(Ds.PropertyDefinition);xo.RefreshActionProperty=oc;var ac=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),Object.defineProperty(t.prototype,"action",{get:function(){return this.getValue(t.actionProperty)},set:function(e){this.setValue(t.actionProperty,e),e&&e.setParent(this.parent)},enumerable:!1,configurable:!0}),t.prototype.getSchemaKey=function(){return"RefreshDefinition"},t.actionProperty=new oc(Ds.Versions.v1_4,"action"),t.userIdsProperty=new Ds.StringArrayProperty(Ds.Versions.v1_4,"userIds"),As([(0,Ds.property)(t.actionProperty)],t.prototype,"action",null),As([(0,Ds.property)(t.userIdsProperty)],t.prototype,"userIds",void 0),t}(Ds.SerializableObject);xo.RefreshDefinition=ac;var sc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t.prototype.getSchemaKey=function(){return"AuthCardButton"},t.typeProperty=new Ds.StringProperty(Ds.Versions.v1_4,"type"),t.titleProperty=new Ds.StringProperty(Ds.Versions.v1_4,"title"),t.imageProperty=new Ds.StringProperty(Ds.Versions.v1_4,"image"),t.valueProperty=new Ds.StringProperty(Ds.Versions.v1_4,"value"),As([(0,Ds.property)(t.typeProperty)],t.prototype,"type",void 0),As([(0,Ds.property)(t.titleProperty)],t.prototype,"title",void 0),As([(0,Ds.property)(t.imageProperty)],t.prototype,"image",void 0),As([(0,Ds.property)(t.valueProperty)],t.prototype,"value",void 0),t}(Ds.SerializableObject);xo.AuthCardButton=sc;var lc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t.prototype.getSchemaKey=function(){return"TokenExchangeResource"},t.idProperty=new Ds.StringProperty(Ds.Versions.v1_4,"id"),t.uriProperty=new Ds.StringProperty(Ds.Versions.v1_4,"uri"),t.providerIdProperty=new Ds.StringProperty(Ds.Versions.v1_4,"providerId"),As([(0,Ds.property)(t.idProperty)],t.prototype,"id",void 0),As([(0,Ds.property)(t.uriProperty)],t.prototype,"uri",void 0),As([(0,Ds.property)(t.providerIdProperty)],t.prototype,"providerId",void 0),t}(Ds.SerializableObject);xo.TokenExchangeResource=lc;var cc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t.prototype.getSchemaKey=function(){return"Authentication"},t.textProperty=new Ds.StringProperty(Ds.Versions.v1_4,"text"),t.connectionNameProperty=new Ds.StringProperty(Ds.Versions.v1_4,"connectionName"),t.buttonsProperty=new Ds.SerializableObjectCollectionProperty(Ds.Versions.v1_4,"buttons",sc),t.tokenExchangeResourceProperty=new Ds.SerializableObjectProperty(Ds.Versions.v1_4,"tokenExchangeResource",lc,!0),As([(0,Ds.property)(t.textProperty)],t.prototype,"text",void 0),As([(0,Ds.property)(t.connectionNameProperty)],t.prototype,"connectionName",void 0),As([(0,Ds.property)(t.buttonsProperty)],t.prototype,"buttons",void 0),As([(0,Ds.property)(t.tokenExchangeResourceProperty)],t.prototype,"tokenExchangeResource",void 0),t}(Ds.SerializableObject);xo.Authentication=cc;var uc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.designMode=!1,t}return Ts(t,e),Object.defineProperty(t.prototype,"refresh",{get:function(){return this.getValue(t.refreshProperty)},set:function(e){this.setValue(t.refreshProperty,e),e&&(e.parent=this)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"processMarkdown",{get:function(){throw new Error(zs.Strings.errors.processMarkdownEventRemoved())},set:function(e){throw new Error(zs.Strings.errors.processMarkdownEventRemoved())},enumerable:!1,configurable:!0}),t.applyMarkdown=function(e){var r={didProcess:!1};if(t.onProcessMarkdown)t.onProcessMarkdown(e,r);else if(window.markdownit){var n=window.markdownit;r.outputHtml=n().render(e),r.didProcess=!0}else t._haveWarnedAboutNoMarkdownProcessing||(console.warn(zs.Strings.errors.markdownProcessingNotEnabled),t._haveWarnedAboutNoMarkdownProcessing=!0);return r},t.prototype.isVersionSupported=function(){return!!this.bypassVersionCheck||!(!this.version||!this.version.isValid||this.maxVersion.major<this.version.major||this.maxVersion.major===this.version.major&&this.maxVersion.minor<this.version.minor)},t.prototype.getDefaultSerializationContext=function(){return new dc(this.version)},t.prototype.getItemsCollectionPropertyName=function(){return"body"},t.prototype.internalParse=function(r,n){this._fallbackCard=void 0;var i=n.parseElement(void 0,r.fallback,this.forbiddenChildElements(),!this.isDesignMode());i&&(this._fallbackCard=new t,this._fallbackCard.addItem(i)),e.prototype.internalParse.call(this,r,n)},t.prototype.internalToJSON=function(r,n){this.setValue(t.versionProperty,n.targetVersion),e.prototype.internalToJSON.call(this,r,n)},t.prototype.internalRender=function(){var t=e.prototype.internalRender.call(this);return Is.GlobalSettings.useAdvancedCardBottomTruncation&&t&&t.style.removeProperty("minHeight"),t},t.prototype.getHasBackground=function(e){return!0},t.prototype.getDefaultPadding=function(){return new Is.PaddingDefinition(Ms.Spacing.Padding,Ms.Spacing.Padding,Ms.Spacing.Padding,Ms.Spacing.Padding)},t.prototype.shouldSerialize=function(e){return!0},Object.defineProperty(t.prototype,"renderIfEmpty",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bypassVersionCheck",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCustomStyle",{get:function(){return this.hostConfig.adaptiveCard&&this.hostConfig.adaptiveCard.allowCustomStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasBackground",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getJsonTypeName=function(){return"AdaptiveCard"},t.prototype.internalValidateProperties=function(t){e.prototype.internalValidateProperties.call(this,t),"AdaptiveCard"!==this.getValue(Vs.typeNameProperty)&&t.addFailure(this,Ms.ValidationEvent.MissingCardType,zs.Strings.errors.invalidCardType()),this.bypassVersionCheck||this.version?this.isVersionSupported()||t.addFailure(this,Ms.ValidationEvent.UnsupportedCardVersion,zs.Strings.errors.unsupportedCardVersion(this.version.toString(),this.maxVersion.toString())):t.addFailure(this,Ms.ValidationEvent.PropertyCantBeNull,zs.Strings.errors.propertyMustBeSet("version"))},t.prototype.render=function(t){var r,n=this;return this.shouldFallback()&&this._fallbackCard?(this._fallbackCard.hostConfig=this.hostConfig,r=this._fallbackCard.render()):(r=e.prototype.render.call(this))&&(r.classList.add(this.hostConfig.makeCssClassName("ac-adaptiveCard")),Is.GlobalSettings.setTabIndexAtCardRoot&&(r.tabIndex=0),this.speak&&r.setAttribute("aria-label",this.speak),r.onmouseenter=function(e){n.updateInputsVisualState(!0)},r.onmouseleave=function(e){n.updateInputsVisualState(!1)},this.getRootElement().updateActionsEnabledState()),t&&(Bs.appendChild(t,r),this.updateLayout()),r},t.prototype.updateLayout=function(t){if(void 0===t&&(t=!0),e.prototype.updateLayout.call(this,t),Is.GlobalSettings.useAdvancedCardBottomTruncation&&this.isDisplayed()){var r=this.hostConfig.getEffectiveSpacing(Ms.Spacing.Default);this.handleOverflow(this.renderedElement.offsetHeight-r)}},t.prototype.shouldFallback=function(){return e.prototype.shouldFallback.call(this)||!this.isVersionSupported()},Object.defineProperty(t.prototype,"hasVisibleSeparator",{get:function(){return!1},enumerable:!1,configurable:!0}),t.schemaUrl="http://adaptivecards.io/schemas/adaptive-card.json",t.$schemaProperty=new Ds.CustomProperty(Ds.Versions.v1_0,"$schema",function(e,r,n,i){return t.schemaUrl},function(e,r,n,i,o){o.serializeValue(n,r.name,t.schemaUrl)}),t.versionProperty=new Ds.CustomProperty(Ds.Versions.v1_0,"version",function(e,t,r,n){var i=Ds.Version.parse(r[t.name],n);return void 0===i&&(i=Ds.Versions.latest,n.logParseEvent(e,Ms.ValidationEvent.InvalidPropertyValue,zs.Strings.errors.invalidCardVersion(i.toString()))),i},function(e,t,r,n,i){void 0!==n&&i.serializeValue(r,t.name,n.toString())},Ds.Versions.v1_0),t.fallbackTextProperty=new Ds.StringProperty(Ds.Versions.v1_0,"fallbackText"),t.speakProperty=new Ds.StringProperty(Ds.Versions.v1_0,"speak"),t.refreshProperty=new Ds.SerializableObjectProperty(Ds.Versions.v1_4,"refresh",ac,!0),t.authenticationProperty=new Ds.SerializableObjectProperty(Ds.Versions.v1_4,"authentication",cc,!0),t._haveWarnedAboutNoMarkdownProcessing=!1,As([(0,Ds.property)(t.versionProperty)],t.prototype,"version",void 0),As([(0,Ds.property)(t.fallbackTextProperty)],t.prototype,"fallbackText",void 0),As([(0,Ds.property)(t.speakProperty)],t.prototype,"speak",void 0),As([(0,Ds.property)(t.refreshProperty)],t.prototype,"refresh",null),As([(0,Ds.property)(t.authenticationProperty)],t.prototype,"authentication",void 0),t}(ic);xo.AdaptiveCard=uc;var hc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.suppressStyle=!1,t}return Ts(t,e),t.prototype.getSchemaKey=function(){return"InlineAdaptiveCard"},t.prototype.populateSchema=function(t){e.prototype.populateSchema.call(this,t),t.remove(uc.$schemaProperty,uc.versionProperty)},t.prototype.getDefaultPadding=function(){return new Is.PaddingDefinition(this.suppressStyle?Ms.Spacing.None:Ms.Spacing.Padding,Ms.Spacing.Padding,this.suppressStyle?Ms.Spacing.None:Ms.Spacing.Padding,Ms.Spacing.Padding)},Object.defineProperty(t.prototype,"bypassVersionCheck",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultStyle",{get:function(){return this.suppressStyle?Ms.ContainerStyle.Default:this.hostConfig.actions.showCard.style?this.hostConfig.actions.showCard.style:Ms.ContainerStyle.Emphasis},enumerable:!1,configurable:!0}),t.prototype.render=function(t){var r=e.prototype.render.call(this,t);return r&&(r.setAttribute("aria-live","polite"),r.removeAttribute("tabindex")),r},t}(uc),dc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._forbiddenTypes=new Set,t}return Ts(t,e),t.prototype.internalParseCardObject=function(e,t,r,n,i,o){var a=this,s=void 0;if(t&&"object"==typeof t){var l=new Set;this._forbiddenTypes.forEach(function(e){l.add(e)}),r.forEach(function(e){a._forbiddenTypes.add(e)});var c=Bs.parseString(t.type);if(c&&this._forbiddenTypes.has(c))o(c,Ms.TypeErrorType.ForbiddenType);else{var u=!1;if((s=i(c))?(s.setParent(e),s.parse(t,this),u=Is.GlobalSettings.enableFallback&&n&&s.shouldFallback()):(u=Is.GlobalSettings.enableFallback&&n,o(c,Ms.TypeErrorType.UnknownType)),u){var h=t.fallback;!h&&e&&e.setShouldFallback(!0),"string"==typeof h&&"drop"===h.toLowerCase()?s=void 0:"object"==typeof h&&(s=this.internalParseCardObject(e,h,r,!0,i,o))}}this._forbiddenTypes=l}return s},t.prototype.cardObjectParsed=function(e,t){e instanceof Tl&&this.onParseAction?this.onParseAction(e,t,this):e instanceof Vs&&this.onParseElement&&this.onParseElement(e,t,this)},t.prototype.shouldSerialize=function(e){return e instanceof Tl?void 0!==this.actionRegistry.findByName(e.getJsonTypeName()):!(e instanceof Vs)||void 0!==this.elementRegistry.findByName(e.getJsonTypeName())},t.prototype.parseCardObject=function(e,t,r,n,i,o){var a=new Set(r),s=this.internalParseCardObject(e,t,a,n,i,o);return void 0!==s&&this.cardObjectParsed(s,t),s},t.prototype.parseElement=function(e,t,r,n){var i=this;return this.parseCardObject(e,t,r,n,function(e){return i.elementRegistry.createInstance(e,i.targetVersion)},function(e,t){t===Ms.TypeErrorType.UnknownType?i.logParseEvent(void 0,Ms.ValidationEvent.UnknownElementType,zs.Strings.errors.unknownElementType(e)):i.logParseEvent(void 0,Ms.ValidationEvent.ElementTypeNotAllowed,zs.Strings.errors.elementTypeNotAllowed(e))})},t.prototype.parseAction=function(e,t,r,n){var i=this;return this.parseCardObject(e,t,r,n,function(e){return i.actionRegistry.createInstance(e,i.targetVersion)},function(e,t){t===Ms.TypeErrorType.UnknownType?i.logParseEvent(void 0,Ms.ValidationEvent.UnknownActionType,zs.Strings.errors.unknownActionType(e)):i.logParseEvent(void 0,Ms.ValidationEvent.ActionTypeNotAllowed,zs.Strings.errors.actionTypeNotAllowed(e))})},Object.defineProperty(t.prototype,"elementRegistry",{get:function(){var e;return null!==(e=this._elementRegistry)&&void 0!==e?e:Os.GlobalRegistry.elements},enumerable:!1,configurable:!0}),t.prototype.setElementRegistry=function(e){this._elementRegistry=e},Object.defineProperty(t.prototype,"actionRegistry",{get:function(){var e;return null!==(e=this._actionRegistry)&&void 0!==e?e:Os.GlobalRegistry.actions},enumerable:!1,configurable:!0}),t.prototype.setActionRegistry=function(e){this._actionRegistry=e},t}(Ds.BaseSerializationContext);xo.SerializationContext=dc,Os.GlobalRegistry.defaultElements.register("Container",Yl),Os.GlobalRegistry.defaultElements.register("TextBlock",Hs),Os.GlobalRegistry.defaultElements.register("RichTextBlock",Gs,Ds.Versions.v1_2),Os.GlobalRegistry.defaultElements.register("TextRun",Us,Ds.Versions.v1_2),Os.GlobalRegistry.defaultElements.register("Image",Zs),Os.GlobalRegistry.defaultElements.register("ImageSet",el),Os.GlobalRegistry.defaultElements.register("Media",gl,Ds.Versions.v1_1),Os.GlobalRegistry.defaultElements.register("FactSet",Js),Os.GlobalRegistry.defaultElements.register("ColumnSet",Kl),Os.GlobalRegistry.defaultElements.register("ActionSet",Hl,Ds.Versions.v1_2),Os.GlobalRegistry.defaultElements.register("Input.Text",ml),Os.GlobalRegistry.defaultElements.register("Input.Date",kl),Os.GlobalRegistry.defaultElements.register("Input.Time",_l),Os.GlobalRegistry.defaultElements.register("Input.Number",wl),Os.GlobalRegistry.defaultElements.register("Input.ChoiceSet",xl),Os.GlobalRegistry.defaultElements.register("Input.Toggle",yl),Os.GlobalRegistry.defaultActions.register(jl.JsonTypeName,jl),Os.GlobalRegistry.defaultActions.register(El.JsonTypeName,El),Os.GlobalRegistry.defaultActions.register($l.JsonTypeName,$l),Os.GlobalRegistry.defaultActions.register(Dl.JsonTypeName,Dl,Ds.Versions.v1_2),Os.GlobalRegistry.defaultActions.register(Il.JsonTypeName,Il,Ds.Versions.v1_4);const pc=e=>{let t;return t=e.iconUrl?v.jsx(w.Button,{className:e.className,onClick:e.actionClickHandler,appearance:"primary",children:v.jsxs("div",{style:{display:"flex",flexDirection:e.iconPlacement===Co.ActionIconPlacement.LeftOfTitle?"row":"column",justifyContent:"center",alignItems:"center"},children:[v.jsx("img",{src:e.iconUrl,style:{width:e.iconSize,height:e.iconSize,flexShrink:0,marginRight:e.iconPlacement===Co.ActionIconPlacement.LeftOfTitle?4:0,marginBottom:e.iconPlacement!==Co.ActionIconPlacement.LeftOfTitle?4:0},alt:""}),v.jsx("span",{children:e.text})]})}):"positive"===e.style.toLocaleLowerCase().trim()||"destructive"===e.style.toLocaleLowerCase().trim()?v.jsx(w.Button,{className:e.className,onClick:e.actionClickHandler,appearance:"primary",children:e.text}):v.jsx(w.Button,{className:e.className,onClick:e.actionClickHandler,children:e.text}),t},gc=(e,t,r,n,i,o,a,s)=>{const l=document.createElement("div");l.className="fluentUI";const c=vo(l);c.render(v.jsx(w.IdPrefixProvider,{value:j.generateUniqueId(),children:v.jsx(w.FluentProvider,{theme:s,children:v.jsx(pc,{text:e,className:r,iconUrl:t,iconPlacement:n,iconSize:i,actionClickHandler:o,style:a,theme:s})})}));const u=new MutationObserver(e=>{for(const t of e)for(const e of Array.from(t.removedNodes))if(e===l||l.contains(e))return c.unmount(),void u.disconnect()});if(l.parentNode)u.observe(l.parentNode,{childList:!0});else{const e=new MutationObserver(()=>{l.parentNode&&(u.observe(l.parentNode,{childList:!0}),e.disconnect())});e.observe(document.body,{childList:!0,subtree:!0})}return l};class fc extends Bl{constructor(){super(...arguments),y(this,"actionClickHandler",e=>{e.stopPropagation(),e.preventDefault(),this.execute()})}updateCssClasses(){}render(e){var t,r;const n=this.hostConfig.hostCapabilities.getCustomProperty(fo),i=(null==(r=null==(t=this.parent)?void 0:t.hostConfig)?void 0:r.actions)??{iconPlacement:"left",iconSize:24};this._renderedElement=gc(this.title??"",this.iconUrl||"",e||"",i.iconPlacement,i.iconSize,this.actionClickHandler,this.style,n)}}class mc extends Nl{constructor(){super(...arguments),y(this,"actionClickHandler",e=>{e.stopPropagation(),e.preventDefault(),this.execute()})}updateCssClasses(){}render(e){var t,r;const n=this.hostConfig.hostCapabilities.getCustomProperty(fo),i=(null==(r=null==(t=this.parent)?void 0:t.hostConfig)?void 0:r.actions)??{iconPlacement:"left",iconSize:24};this._renderedElement=gc(this.title??"",this.iconUrl||"",e||"",i.iconPlacement,i.iconSize,this.actionClickHandler,this.style,n)}}class yc extends Vl{constructor(){super(...arguments),y(this,"actionClickHandler",e=>{e.stopPropagation(),e.preventDefault(),this.execute()})}updateCssClasses(){if(this.renderedElement){const e=1===this.state;this.renderedElement.setAttribute("aria-expanded",e.toString())}}render(e){var t,r;const n=(null==(r=null==(t=this.parent)?void 0:t.hostConfig)?void 0:r.actions)??{iconPlacement:"left",iconSize:24};this._renderedElement=gc(this.title||"Default Title",this.iconUrl||"",this.iconUrl??"",n.iconPlacement,n.iconSize,this.actionClickHandler,this.style)}}class bc extends Pl{constructor(){super(...arguments),y(this,"actionClickHandler",e=>{e.stopPropagation(),e.preventDefault(),this.execute()})}updateCssClasses(){}render(e){var t,r;const n=this.hostConfig.hostCapabilities.getCustomProperty(fo),i=(null==(r=null==(t=this.parent)?void 0:t.hostConfig)?void 0:r.actions)??{iconPlacement:"left",iconSize:24};this._renderedElement=gc(this.title??"",this.iconUrl??"",e||"",i.iconPlacement,i.iconSize,this.actionClickHandler,this.style,n)}}class vc extends Ol{constructor(){super(...arguments),y(this,"actionClickHandler",e=>{e.stopPropagation(),e.preventDefault(),this.execute()})}updateCssClasses(){if(this.renderedElement){const e=1===this.state;this.renderedElement.setAttribute("aria-expanded",e.toString())}}render(e){var t,r;const n=this.hostConfig.hostCapabilities.getCustomProperty(fo),i=(null==(r=null==(t=this.parent)?void 0:t.hostConfig)?void 0:r.actions)??{iconPlacement:"left",iconSize:24};this._renderedElement=gc(this.title??"",this.iconUrl??"",e||"",i.iconPlacement,i.iconSize,this.actionClickHandler,this.style,n)}}const xc=e=>{const t=document.createElement("div");return vo(t).render(e()),t};var Cc=Object.defineProperty,wc=(e,t,r,n)=>{for(var i,o=void 0,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(t,r,o)||o);return o&&Cc(t,r,o),o};const kc=(e=class extends j.Input{constructor(){super(...arguments),y(this,"defaultValue"),y(this,"style"),y(this,"isMultiSelect",!1),y(this,"placeholder"),y(this,"wrap",!1),y(this,"choices",[]),y(this,"element"),y(this,"refControl"),y(this,"selectedValues",[]),y(this,"defaultSelectedValues",[]),y(this,"updateSelectedValues",(e,t,r)=>{t?r?this.selectedValues.includes(e)||this.selectedValues.push(e):this.removeItemFromArray(this.selectedValues,e):this.selectedValues=[e]}),y(this,"removeItemFromArray",(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)})}get isCompact(){return!this.style||"compact"===this.style}set isCompact(e){this.style=e?void 0:"expanded"}internalRender(){const e=mo(this.hostConfig),t=this.choices?this.choices.map(e=>({key:e.value,text:e.title})):[];this.defaultValue&&(this.defaultSelectedValues=this.defaultValue.split(this.hostConfig.choiceSetInputValueSeparator),this.selectedValues=[...this.defaultSelectedValues]);const r=()=>{var e;const[r,n]=H.useState(this.selectedValues);return H.useEffect(()=>{n(this.selectedValues)},[this.selectedValues.join(this.hostConfig.choiceSetInputValueSeparator)]),v.jsx(w.Combobox,{style:{width:"100%"},placeholder:this.placeholder,multiselect:this.isMultiSelect,value:this.isMultiSelect?r.map(e=>{var r;return null==(r=t.find(t=>t.key===e))?void 0:r.text}).join(this.hostConfig.choiceSetInputValueSeparator):null==(e=t.find(e=>r[0]===e.key))?void 0:e.text,selectedOptions:this.isMultiSelect?r:[r[0]],autoComplete:"filtered"===this.style?"on":"off",onOptionSelect:(e,t)=>{if(this.isMultiSelect)n(t.selectedOptions),this.selectedValues=t.selectedOptions;else{const e=t.optionValue??"";n([e]),this.selectedValues=[e]}this.valueChanged()},ref:e=>{this.refControl=e},children:t.map(e=>v.jsx(w.Option,{value:e.key,children:e.text??""},e.key))})};return this.element=xc(()=>v.jsxs(v.Fragment,{children:[!this.isMultiSelect&&"expanded"===this.style&&v.jsx(w.IdPrefixProvider,{value:j.generateUniqueId(),children:v.jsx(w.FluentProvider,{theme:e,children:v.jsx(w.RadioGroup,{defaultValue:this.defaultValue,onChange:(e,t)=>{this.updateSelectedValues(t.value,this.isMultiSelect,!0),this.valueChanged()},ref:e=>{this.refControl=e},children:this.choices.map((e,t)=>v.jsx(w.Radio,{value:e.value,label:e.title,style:{marginTop:t>0?this.hostConfig.spacing.default:0}},e.value))})})}),this.isMultiSelect&&"expanded"===this.style&&v.jsx("div",{style:{display:"flex",gap:this.hostConfig.spacing.default},children:this.choices.map((t,r)=>{const n=this.defaultSelectedValues.indexOf(t.value??"")>-1;return v.jsx(w.IdPrefixProvider,{value:j.generateUniqueId(),children:v.jsx(w.FluentProvider,{theme:e,children:v.jsx(w.Checkbox,{label:t.title,defaultChecked:n,onChange:(e,r)=>{this.updateSelectedValues(t.value??"",this.isMultiSelect,!!r),this.valueChanged()},ref:e=>{0===r&&(this.refControl=e)}})})},t.value)})}),("compact"===this.style||"filtered"===this.style)&&v.jsx(w.IdPrefixProvider,{value:j.generateUniqueId(),children:v.jsx(w.FluentProvider,{theme:e,children:v.jsx(r,{})})})]})),this.element.style.width="100%",this.element}getJsonTypeName(){return"Input.ChoiceSet"}focus(){this.refControl&&this.refControl.focus&&this.refControl.focus()}internalValidateProperties(e){super.internalValidateProperties(e),0===this.choices.length&&e.addFailure(this,j.ValidationEvent.CollectionCantBeEmpty,j.Strings.errors.choiceSetMustHaveAtLeastOneChoice());for(const t of this.choices)t.title&&t.value||e.addFailure(this,j.ValidationEvent.PropertyCantBeNull,j.Strings.errors.choiceSetChoicesMustHaveTitleAndValue())}isSet(){return!!this.value}isValid(){return!!this.value||!this.isRequired}get value(){if(this.selectedValues)return this.selectedValues.join(this.hostConfig.choiceSetInputValueSeparator)}},y(e,"valueProperty",new j.StringProperty(j.Versions.v1_5,"value")),y(e,"choicesProperty",new j.SerializableObjectCollectionProperty(j.Versions.v1_5,"choices",j.Choice)),y(e,"styleProperty",new j.ValueSetProperty(j.Versions.v1_5,"style",[{value:"compact"},{value:"expanded"},{value:"filtered",targetVersion:j.Versions.v1_5}],"compact")),y(e,"isMultiSelectProperty",new j.BoolProperty(j.Versions.v1_5,"isMultiSelect",!1)),y(e,"placeholderProperty",new j.StringProperty(j.Versions.v1_5,"placeholder")),y(e,"wrapProperty",new j.BoolProperty(j.Versions.v1_5,"wrap",!1)),e);wc([j.property(kc.valueProperty)],kc.prototype,"defaultValue"),wc([j.property(kc.styleProperty)],kc.prototype,"style"),wc([j.property(kc.isMultiSelectProperty)],kc.prototype,"isMultiSelect"),wc([j.property(kc.placeholderProperty)],kc.prototype,"placeholder"),wc([j.property(kc.wrapProperty)],kc.prototype,"wrap"),wc([j.property(kc.choicesProperty)],kc.prototype,"choices");let Sc=kc;var _c=Object.defineProperty,Tc=(e,t,r,n)=>{for(var i,o=void 0,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(t,r,o)||o);return o&&_c(t,r,o),o};const Ac=(t=class extends j.Input{constructor(){super(...arguments),y(this,"defaultValue"),y(this,"min"),y(this,"max"),y(this,"placeholder"),y(this,"_value"),y(this,"refControl"),y(this,"element")}internalRender(){const e=mo(this.hostConfig);return this.element=xc(()=>v.jsx(w.IdPrefixProvider,{value:j.generateUniqueId(),children:v.jsx(w.FluentProvider,{theme:e,children:v.jsx(O.DatePicker,{id:this.id,placeholder:this.placeholder,minDate:this.convertStringToDate(this.min),maxDate:this.convertStringToDate(this.max),onSelectDate:e=>{this._value=e??void 0,this.valueChanged()},ref:e=>{this.refControl=e},style:{width:"100%"}})})})),this.element.style.width="100%",this.element}convertStringToDate(e){if(e)try{const t=new Date(e);return isNaN(t.getTime())?void 0:t}catch{return}}getJsonTypeName(){return"Input.Date"}focus(){var e;null==(e=this.refControl)||e.focus()}updateInputControlAriaLabelledBy(){if(this.element){const e=this.getAllLabelIds().join(" ");e?this.element.setAttribute("aria-labelledby",e):this.element.removeAttribute("aria-labelledby")}}isSet(){return!!this.value}isValid(){if(!this.value)return!this.isRequired;const e=new Date(this.value);let t=!0;if(this.min){const r=new Date(this.min);t=t&&e>=r}if(this.max){const r=new Date(this.max);t=t&&e<=r}return t}get value(){if(this._value){const e=this._value.getTimezoneOffset();return new Date(this._value.getTime()-60*e*1e3).toISOString().split("T")[0]}}},y(t,"valueProperty",new j.StringProperty(j.Versions.v1_5,"value")),y(t,"placeholderProperty",new j.StringProperty(j.Versions.v1_5,"placeholder")),y(t,"minProperty",new j.StringProperty(j.Versions.v1_0,"min")),y(t,"maxProperty",new j.StringProperty(j.Versions.v1_0,"max")),t);Tc([j.property(Ac.valueProperty)],Ac.prototype,"defaultValue"),Tc([j.property(Ac.minProperty)],Ac.prototype,"min"),Tc([j.property(Ac.maxProperty)],Ac.prototype,"max"),Tc([j.property(Ac.placeholderProperty)],Ac.prototype,"placeholder");let Ec=Ac;var Pc=Object.defineProperty,Mc=(e,t,r,n)=>{for(var i,o=void 0,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(t,r,o)||o);return o&&Pc(t,r,o),o};const Ic=(r=class extends j.Input{constructor(){super(...arguments),y(this,"defaultValue"),y(this,"min"),y(this,"max"),y(this,"placeholder"),y(this,"refControl",null),y(this,"element")}internalRender(){const e=mo(this.hostConfig);return this.element=xc(()=>v.jsx(w.IdPrefixProvider,{value:j.generateUniqueId(),children:v.jsx(w.FluentProvider,{theme:e,children:v.jsx(w.SpinButton,{style:{width:"calc(100% - 10px)"},id:this.id,defaultValue:void 0!==this.defaultValue?this.defaultValue:void 0,placeholder:this.placeholder,min:this.min,max:this.max,onChange:()=>{this.valueChanged()},ref:e=>{this.refControl=e}})})})),this.element.style.width="100%",this.element}getJsonTypeName(){return"Input.Number"}focus(){var e;null==(e=this.refControl)||e.focus()}updateInputControlAriaLabelledBy(){if(this.element){const e=this.getAllLabelIds().join(" ");e?this.element.setAttribute("aria-labelledby",e):this.element.removeAttribute("aria-labelledby")}}isSet(){const e=this.value;return void 0!==e&&!isNaN(e)}isValid(){const e=this.value;if(void 0===e)return!this.isRequired;let t=!0;return void 0!==this.min&&(t=t&&e>=this.min),void 0!==this.max&&(t=t&&e<=this.max),t}get value(){return this.refControl?Number(this.refControl.value):void 0}},y(r,"valueProperty",new j.NumProperty(j.Versions.v1_5,"value")),y(r,"placeholderProperty",new j.StringProperty(j.Versions.v1_5,"placeholder")),y(r,"minProperty",new j.NumProperty(j.Versions.v1_0,"min")),y(r,"maxProperty",new j.NumProperty(j.Versions.v1_0,"max")),r);Mc([j.property(Ic.valueProperty)],Ic.prototype,"defaultValue"),Mc([j.property(Ic.minProperty)],Ic.prototype,"min"),Mc([j.property(Ic.maxProperty)],Ic.prototype,"max"),Mc([j.property(Ic.placeholderProperty)],Ic.prototype,"placeholder");let Bc=Ic;const Lc=e=>{const{ariaLabel:t,iconProps:r,styles:n,className:i,onClick:o,...a}=e;return v.jsx(w.Button,{appearance:"transparent","aria-label":t,className:i,onClick:o,style:n,...a,children:v.jsx("img",{src:r.src,alt:t,style:{height:r.height||"100%",width:r.width||"auto"}})})},jc={marginLeft:8};var Nc=Object.defineProperty,Dc=(e,t,r,n)=>{for(var i,o=void 0,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(t,r,o)||o);return o&&Nc(t,r,o),o};const Oc=(n=class extends j.Input{constructor(){super(...arguments),y(this,"defaultValue"),y(this,"maxLength"),y(this,"isMultiline",!1),y(this,"placeholder"),y(this,"style",j.InputTextStyle.Text),y(this,"inlineAction"),y(this,"regex"),y(this,"refControl",null),y(this,"element"),y(this,"_value",this.defaultValue||""),y(this,"handleKeyDown",e=>{var t;"Enter"===e.key&&this.inlineAction&&(null==(t=this.inlineAction)||t.execute())}),y(this,"buildInlineActionButton",()=>{var e;return xc((null==(e=this.inlineAction)?void 0:e.iconUrl)?this.inlineIconActionButton:this.buildTextOnlyInlineActionActionButton)}),y(this,"inlineActionClickHandler",e=>{var t;e.stopPropagation(),e.preventDefault(),null==(t=this.inlineAction)||t.execute()}),y(this,"inlineIconActionButton",()=>{var e,t;const r=this.hostConfig.hostCapabilities.getCustomProperty(fo);return v.jsx(w.FluentProvider,{theme:r,children:v.jsx(Lc,{ariaLabel:(null==(e=this.inlineAction)?void 0:e.title)||"Inline action",className:this.hostConfig.makeCssClassName("ac-inlineActionButton","iconOnly"),iconProps:{src:(null==(t=this.inlineAction)?void 0:t.iconUrl)??""},onClick:this.inlineActionClickHandler,styles:jc})})}),y(this,"buildTextOnlyInlineActionActionButton",()=>{var e;const t=this.hostConfig.hostCapabilities.getCustomProperty(fo);return v.jsx(w.IdPrefixProvider,{value:j.generateUniqueId(),children:v.jsx(w.FluentProvider,{theme:t,children:v.jsx(w.Button,{appearance:"primary",className:this.hostConfig.makeCssClassName("ac-inlineActionButton","textOnly"),onClick:this.inlineActionClickHandler,style:jc,children:(null==(e=this.inlineAction)?void 0:e.title)??""})})})})}internalRender(){const e=mo(this.hostConfig);return this.element=xc(()=>v.jsx(w.IdPrefixProvider,{value:j.generateUniqueId(),children:v.jsx(w.FluentProvider,{theme:e,children:this.isMultiline?v.jsx(w.Textarea,{resize:"vertical",style:{width:"100%"},id:this.id,defaultValue:this.defaultValue,placeholder:this.placeholder,maxLength:this.maxLength,onChange:(e,t)=>{this._value=t.value,this.valueChanged()},onKeyDown:this.handleKeyDown,ref:e=>{this.refControl=e}}):v.jsx(w.Input,{id:this.id,style:{width:"100%"},type:j.InputTextStyle[this.style].toLowerCase(),defaultValue:this.defaultValue,placeholder:this.placeholder,maxLength:this.maxLength,onChange:(e,t)=>{this._value=t.value,this.valueChanged()},onKeyDown:this.handleKeyDown,ref:e=>{this.refControl=e?e.inputElement:null}})})})),this.element.style.width="100%",this.element}overrideInternalRender(){const e=super.overrideInternalRender();return this.inlineAction&&this.inputControlContainerElement.appendChild(this.buildInlineActionButton()),e||document.createElement("div")}getJsonTypeName(){return"Input.Text"}focus(){var e;null==(e=this.refControl)||e.focus()}updateInputControlAriaLabelledBy(){if(this.element){const e=this.getAllLabelIds().join(" ");e?this.element.setAttribute("aria-labelledby",e):this.element.removeAttribute("aria-labelledby")}}getActionById(e){let t=super.getActionById(e);if(!t&&this.inlineAction&&(t=this.inlineAction.getActionById(e)),!t)throw new Error(`Action with id '${e}' not found.`);return t}isSet(){return!!this.value}isValid(){return this.value?!this.regex||new RegExp(this.regex,"g").test(this.value):!this.isRequired}get value(){if(this._value)return this._value}},y(n,"valueProperty",new j.StringProperty(j.Versions.v1_0,"value")),y(n,"maxLengthProperty",new j.NumProperty(j.Versions.v1_0,"maxLength")),y(n,"isMultilineProperty",new j.BoolProperty(j.Versions.v1_0,"isMultiline",!1)),y(n,"placeholderProperty",new j.StringProperty(j.Versions.v1_0,"placeholder")),y(n,"styleProperty",new j.EnumProperty(j.Versions.v1_0,"style",j.InputTextStyle,j.InputTextStyle.Text)),y(n,"inlineActionProperty",new j.ActionProperty(j.Versions.v1_0,"inlineAction",["Action.ShowCard"])),y(n,"regexProperty",new j.StringProperty(j.Versions.v1_3,"regex",!0)),n);Dc([j.property(Oc.valueProperty)],Oc.prototype,"defaultValue"),Dc([j.property(Oc.maxLengthProperty)],Oc.prototype,"maxLength"),Dc([j.property(Oc.isMultilineProperty)],Oc.prototype,"isMultiline"),Dc([j.property(Oc.placeholderProperty)],Oc.prototype,"placeholder"),Dc([j.property(Oc.styleProperty)],Oc.prototype,"style"),Dc([j.property(Oc.inlineActionProperty)],Oc.prototype,"inlineAction"),Dc([j.property(Oc.regexProperty)],Oc.prototype,"regex");let zc=Oc;var Fc=Object.defineProperty,Rc=(e,t,r,n)=>{for(var i,o=void 0,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(t,r,o)||o);return o&&Fc(t,r,o),o};const $c=e=>{const{id:t,defaultTime:r,minTime:n,maxTime:i,placeholder:o,theme:a,onTimeChange:s}=e,[l,c]=H.useState(r),[u,h]=H.useState(r?z.formatDateToTimeString(r??new Date):"");return v.jsx(w.IdPrefixProvider,{value:t,children:v.jsx(w.FluentProvider,{theme:a,children:v.jsx(z.TimePicker,{style:{width:"100%"},expandIcon:v.jsx(E.ClockRegular,{}),id:t,freeform:!0,min:n?z.formatDateToTimeString(n):void 0,max:i?z.formatDateToTimeString(i):void 0,placeholder:o,value:l?z.formatDateToTimeString(l):u,onTimeChange:(e,t)=>{const r=t.selectedTime??void 0,n=t.selectedTimeText??"";c(r),h(n),s&&r&&s(r,n)},onInput:e=>{h(e.target.value)}})})})},Vc=(i=class extends j.Input{constructor(){super(...arguments),y(this,"defaultValue"),y(this,"min"),y(this,"max"),y(this,"placeholder"),y(this,"_time"),y(this,"element")}static convertTimeStringToDate(e){return new Date("1973-09-04T"+e+":00Z")}internalRender(){const e=mo(this.hostConfig),t=this.defaultValue?i.convertTimeStringToDate(this.defaultValue):void 0,r=this.min?i.convertTimeStringToDate(this.min):void 0,n=this.max?i.convertTimeStringToDate(this.max):void 0;return this.element=xc(()=>v.jsx($c,{id:j.generateUniqueId(),defaultTime:t,minTime:r,maxTime:n,placeholder:this.placeholder,theme:e,onTimeChange:e=>{this._time=e,this.valueChanged()}})),this.element.style.width="100%",this.element}getJsonTypeName(){return"Input.Time"}focus(){}updateInputControlAriaLabelledBy(){if(this.element){const e=this.getAllLabelIds().join(" ");e?this.element.setAttribute("aria-labelledby",e):this.element.removeAttribute("aria-labelledby")}}isSet(){return!!this.value}isValid(){if(!this.value)return!this.isRequired;if(!this._time)return!1;let e=!0;if(this.min){const t=i.convertTimeStringToDate(this.min);e=e&&this._time>=t}if(this.max){const t=i.convertTimeStringToDate(this.max);e=e&&this._time<=t}return e}get value(){return this._time?z.formatDateToTimeString(this._time):void 0}},y(i,"valueProperty",new j.TimeProperty(j.Versions.v1_0,"value")),y(i,"placeholderProperty",new j.StringProperty(j.Versions.v1_0,"placeholder")),y(i,"minProperty",new j.TimeProperty(j.Versions.v1_0,"min")),y(i,"maxProperty",new j.TimeProperty(j.Versions.v1_0,"max")),i);Rc([j.property(Vc.valueProperty)],Vc.prototype,"defaultValue"),Rc([j.property(Vc.minProperty)],Vc.prototype,"min"),Rc([j.property(Vc.maxProperty)],Vc.prototype,"max"),Rc([j.property(Vc.placeholderProperty)],Vc.prototype,"placeholder");let Wc=Vc;var qc=Object.defineProperty,Hc=(e,t,r,n)=>{for(var i,o=void 0,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(t,r,o)||o);return o&&qc(t,r,o),o};const Uc=(o=class extends j.Input{constructor(){super(...arguments),y(this,"defaultValue"),y(this,"title"),y(this,"valueOn","true"),y(this,"valueOff","false"),y(this,"wrap",!1),y(this,"_value"),y(this,"refControl",null),y(this,"element")}internalRender(){const e=mo(this.hostConfig);return this.element=xc(()=>v.jsx(w.IdPrefixProvider,{value:j.generateUniqueId(),children:v.jsx(w.FluentProvider,{theme:e,style:{backgroundColor:"transparent"},children:v.jsx(w.Switch,{id:this.id,label:this.title,onChange:(e,t)=>{this._value=t.checked,this.valueChanged()},defaultChecked:this.defaultValue===this.valueOn,style:{marginBottom:0,marginTop:0},ref:e=>{this.refControl=e}})})})),this.element.style.width="100%",this.element}get isNullable(){return!1}getJsonTypeName(){return"Input.Toggle"}focus(){var e;null==(e=this.refControl)||e.focus()}updateInputControlAriaLabelledBy(){if(this.element){const e=this.getAllLabelIds().join(" ");e?this.element.setAttribute("aria-labelledby",e):this.element.removeAttribute("aria-labelledby")}}isSet(){return this.isRequired?this.value===this.valueOn:!!this.value}get value(){return null!==this._value&&void 0!==this._value?this._value?this.valueOn:this.valueOff:this.isRequired?void 0:this.valueOff}},y(o,"valueProperty",new j.StringProperty(j.Versions.v1_5,"value")),y(o,"titleProperty",new j.StringProperty(j.Versions.v1_5,"title")),y(o,"valueOnProperty",new j.StringProperty(j.Versions.v1_5,"valueOn",!0,void 0,"true",e=>"true")),y(o,"valueOffProperty",new j.StringProperty(j.Versions.v1_5,"valueOff",!0,void 0,"false",e=>"false")),y(o,"wrapProperty",new j.BoolProperty(j.Versions.v1_2,"wrap",!1)),o);Hc([j.property(Uc.valueProperty)],Uc.prototype,"defaultValue"),Hc([j.property(Uc.titleProperty)],Uc.prototype,"title"),Hc([j.property(Uc.valueOnProperty)],Uc.prototype,"valueOn"),Hc([j.property(Uc.valueOffProperty)],Uc.prototype,"valueOff"),Hc([j.property(Uc.wrapProperty)],Uc.prototype,"wrap");let Gc=Uc;const Xc=e=>{switch(e){case po.SharePoint:return w.webLightTheme;case po.Teams:return w.teamsLightTheme;case po.TeamsDark:return w.teamsDarkTheme;case po.TeamsHighContrast:return w.teamsHighContrastTheme;default:return w.webLightTheme}},Jc=e=>{const t=x.useRef(null),{log:r,error:n,LogLevel:i}=Q(),o=x.useRef(null),a=x.useRef(null),s=x.useRef(null);x.useEffect(()=>{var e;e=(e,t)=>n(e,t),j.AdaptiveCard.onProcessMarkdown||(j.AdaptiveCard.onProcessMarkdown=(t,r)=>{r.outputHtml=(new X.default).render(t),r.didProcess=!0;try{r.outputHtml=(new X.default).render(t),r.didProcess=!0}catch(n){e&&e("AdaptiveCardHost: Error parsing Markdown",n instanceof Error?n:void 0),r.didProcess=!1}})},[]),x.useEffect(()=>{o.current=null,o.current=new j.AdaptiveCard,a.current=new j.SerializationContext},[e]);const l=x.useCallback(t=>{if(e.onInvokeAction){let r={type:"",title:""};const n=t.getJsonTypeName();switch(n){case j.OpenUrlAction.JsonTypeName:{const e=t;r={type:n,title:e.title,url:e.url}}break;case j.SubmitAction.JsonTypeName:{const e=t;r={type:n,title:e.title,data:e.data}}break;case j.ExecuteAction.JsonTypeName:{const e=t;r={type:n,title:e.title,data:e.data,verb:e.verb}}break;default:r={type:n,title:"Unknown Action"}}e.onInvokeAction(r)}},[e.onInvokeAction]);return x.useEffect(()=>{let t,n=e.themeType;s.current=null,n||(n=po.SharePoint),t=e.theme?e.theme:Xc(n);const a=yo(n,t),l=a.hostConfig;r("hostconfig:",i.Info,l),s.current=t,o.current&&(o.current.hostConfig=a.hostConfig),e.onUpdateHostCapabilities&&e.onUpdateHostCapabilities(l.hostCapabilities)},[e]),x.useEffect(()=>{o.current&&(o.current.onExecuteAction=l)},[e,l]),x.useEffect(()=>{const t=new j.CardObjectRegistry,r=new j.CardObjectRegistry;var n;j.GlobalRegistry.populateWithDefaultElements(t),j.GlobalRegistry.populateWithDefaultActions(r),(n=t).register("Input.Text",zc),n.register("Input.Number",Bc),n.register("Input.Time",Wc),n.register("Input.Date",Ec),n.register("Input.Toggle",Gc),n.register("Input.ChoiceSet",Sc),function(e){e.register("Action.Submit",bc),e.register("Action.OpenUrl",mc),e.register("Action.ShowCard",yc),e.register("Action.ToggleVisibility",vc),e.register("Action.Execute",fc)}(r),e.onSetCustomElements&&e.onSetCustomElements(t),e.onSetCustomActions&&e.onSetCustomActions(r);const i=a.current;i&&i.setElementRegistry(t),i&&i.setActionRegistry(r)},[e]),x.useEffect(()=>{for(var r;null==(r=null==t?void 0:t.current)?void 0:r.firstChild;)t.current.lastChild&&t.current.removeChild(t.current.lastChild);const n=t.current;if(!n)return;const i=o.current;try{const t=new F.Template(e.card),r=((e,t,r)=>{var n,i,o,a,s,l,c;let u,h;return h=r?{theme:t,aadInfo:(null==(n=null==r?void 0:r.pageContext)?void 0:n.aadInfo)?{instanceUrl:r.pageContext.aadInfo.instanceUrl||"",tenantId:r.pageContext.aadInfo.tenantId||"",userId:r.pageContext.aadInfo.userId||""}:void 0,cultureInfo:(null==(i=null==r?void 0:r.pageContext)?void 0:i.cultureInfo)?{currentCultureName:r.pageContext.cultureInfo.currentCultureName,currentUICultureName:r.pageContext.cultureInfo.currentUICultureName,isRightToLeft:r.pageContext.cultureInfo.isRightToLeft||!1}:void 0,userInfo:(null==(o=null==r?void 0:r.pageContext)?void 0:o.user)?{displayName:r.pageContext.user.displayName,email:r.pageContext.user.email,isAnonymousGuestUser:r.pageContext.user.isAnonymousGuestUser||!1,isExternalGuestUser:r.pageContext.user.isExternalGuestUser||!1,loginName:r.pageContext.user.loginName,preferUserTimeZone:r.pageContext.user.preferUserTimeZone||!1}:void 0,spListInfo:(null==(a=null==r?void 0:r.pageContext)?void 0:a.list)?{id:r.pageContext.list.id,serverRelativeUrl:r.pageContext.list.serverRelativeUrl||"",title:r.pageContext.list.title}:void 0,spListItemInfo:(null==(s=null==r?void 0:r.pageContext)?void 0:s.listItem)?{id:r.pageContext.listItem.id.toString()}:void 0,spSiteInfo:(null==(l=null==r?void 0:r.pageContext)?void 0:l.site)?{absoluteUrl:r.pageContext.site.absoluteUrl,cdnPrefix:r.pageContext.site.cdnPrefix||"",classification:r.pageContext.site.classification||"",correlationId:r.pageContext.site.correlationId||"",id:r.pageContext.site.id,isNoScriptEnabled:r.pageContext.site.isNoScriptEnabled||!1,recycleBinItemCount:r.pageContext.site.recycleBinItemCount||0,serverRelativeUrl:r.pageContext.site.serverRelativeUrl||"",serverRequestPath:r.pageContext.site.serverRequestPath||"",sitePagesEnabled:r.pageContext.site.sitePagesEnabled||!1}:void 0,spWebInfo:(null==(c=null==r?void 0:r.pageContext)?void 0:c.web)?{absoluteUrl:r.pageContext.web.absoluteUrl,id:r.pageContext.web.id,isAppWeb:r.pageContext.web.isAppWeb||!1,language:r.pageContext.web.language||0,languageName:r.pageContext.web.languageName||"",logoUrl:r.pageContext.web.logoUrl||"",serverRelativeUrl:r.pageContext.web.serverRelativeUrl||"",templateName:r.pageContext.web.templateName||"",title:r.pageContext.web.title,description:r.pageContext.web.description||""}:void 0}:{theme:t},u=e?{$root:{...null==e?void 0:e.$root,"@context":h}}:{$root:{"@context":h}},u})(e.data??{$root:{}},Xc(e.themeType??po.SharePoint),e.context),o=t.expand(r);if(i&&i.parse(o,a.current??void 0),i){const e=i.render();e&&e.outerHTML!==n.innerHTML&&e.outerHTML!==n.innerHTML&&(n.innerHTML="",n.appendChild(e))}}catch(s){e.onError&&e.onError(s)}},[e,Xc]),v.jsx(w.IdPrefixProvider,{value:"adaptiveCardHost",children:v.jsx(w.FluentProvider,{theme:s.current?s.current:Xc(e.themeType??po.SharePoint),children:v.jsx("div",{ref:t,className:`${e.className?e.className:""}`,style:e.style})})})},Yc=li`
|
|
70
|
+
position: relative;
|
|
71
|
+
display: inline-block;
|
|
72
|
+
line-height: 0;
|
|
73
|
+
|
|
74
|
+
`,Zc=li`
|
|
75
|
+
display: block;
|
|
76
|
+
`,Kc=li`
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: -1px;
|
|
79
|
+
right: -6px;
|
|
80
|
+
font-size: 8px;
|
|
81
|
+
font-weight: 700;
|
|
82
|
+
font-family: ${w.tokens.fontFamilyBase};
|
|
83
|
+
color: ${w.tokens.colorNeutralForegroundOnBrand};
|
|
84
|
+
background: ${w.tokens.colorBrandBackground};
|
|
85
|
+
padding: 1px 3px;
|
|
86
|
+
border-radius: ${w.tokens.borderRadiusSmall};
|
|
87
|
+
line-height: 1;
|
|
88
|
+
letter-spacing: 0.2px;
|
|
89
|
+
text-transform: uppercase;
|
|
90
|
+
box-shadow: ${w.tokens.shadow4};
|
|
91
|
+
border: 1px solid ${w.tokens.colorTransparentStroke};
|
|
92
|
+
transform: scale(0.9);
|
|
93
|
+
transition: all 0.2s ease;
|
|
94
|
+
|
|
95
|
+
&:hover {
|
|
96
|
+
transform: scale(1);
|
|
97
|
+
box-shadow: ${w.tokens.shadow8};
|
|
98
|
+
background: ${w.tokens.colorBrandBackgroundHover};
|
|
99
|
+
}
|
|
100
|
+
`,Qc=li`
|
|
101
|
+
${Kc};
|
|
102
|
+
font-size: 9px;
|
|
103
|
+
padding: 2px 4px;
|
|
104
|
+
border-radius: 8px;
|
|
105
|
+
top: -2px;
|
|
106
|
+
right: -7px;
|
|
107
|
+
`,eu=li`
|
|
108
|
+
${Kc};
|
|
109
|
+
font-size: 6px;
|
|
110
|
+
padding: 1px 2px;
|
|
111
|
+
border-radius: 4px;
|
|
112
|
+
top: 0px;
|
|
113
|
+
right: -4px;
|
|
114
|
+
letter-spacing: 0.1px;
|
|
115
|
+
`,tu=({size:e=20,className:t,color:r,aiIndicatorColor:n})=>{const i=li`
|
|
116
|
+
${e>=24?Qc:e<=16?eu:Kc};
|
|
117
|
+
${n?`\n background: ${n};\n border-color: ${n};\n `:""}
|
|
118
|
+
`,o=li`
|
|
119
|
+
${Zc};
|
|
120
|
+
font-size: ${e}px;
|
|
121
|
+
${r?`color: ${r};`:"color: inherit;"}
|
|
122
|
+
`;return ai("span",{css:[Yc,t&&li`${t}`],children:[oi(E.SearchRegular,{css:o}),oi("span",{css:i,children:"AI"})]})},ru=w.makeStyles({container:{display:"flex",flexDirection:"column",gap:"20px",padding:"20px"},section:{display:"flex",flexDirection:"column",gap:"10px"},iconRow:{display:"flex",alignItems:"center",gap:"15px",padding:"10px",border:`1px solid ${w.tokens.colorNeutralStroke2}`,borderRadius:"8px"},label:{minWidth:"150px",fontWeight:600},buttonExample:{display:"flex",alignItems:"center",gap:"8px"},codeBlock:{background:w.tokens.colorNeutralBackground2,padding:"10px",borderRadius:"4px",fontSize:"12px",overflow:"auto",border:`1px solid ${w.tokens.colorNeutralStroke2}`}}),nu=H.forwardRef(({value:e,onChange:t,onSend:r,placeholder:n,isRunning:i,onAbort:o},a)=>{const s={container:T.css({backgroundColor:w.tokens.colorNeutralBackground1,border:"1px solid "+w.tokens.colorNeutralStroke1,borderRadius:w.tokens.borderRadiusLarge,padding:`${w.tokens.spacingVerticalXS} ${w.tokens.spacingHorizontalS}`,minHeight:"40px",":focus-within::after":{borderBottom:`2px solid ${w.tokens.colorBrandStroke1}`}}),textarea:T.css({width:"calc(100% - 5px)",flex:1,border:"none",outline:"none",backgroundColor:"transparent",fontSize:w.tokens.fontSizeBase300,color:w.tokens.colorNeutralForeground1,resize:"none","::placeholder":{color:w.tokens.colorNeutralForegroundDisabled},"::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:w.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:w.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:w.tokens.colorNeutralStroke2}}),iconContainer:T.css({display:"flex",alignItems:"center",gap:w.tokens.spacingHorizontalXS,marginLeft:w.tokens.spacingHorizontalXS}),buttonSend:T.css({width:"36px !important",height:"36px !important",maxWidth:"36px !important",maxHeight:"36px !important",minWidth:"36px !important",minHeight:"36px !important"})},l=b.useAIAssistantStrings(),c=n||l.typeAMessage,u=H.useCallback(()=>{const t=e.trim();t.length>0&&r(t)},[e,r]);return v.jsxs(mt,{width:"100%",className:s.container,children:[v.jsx("textarea",{ref:a,className:s.textarea,placeholder:c,value:e,onChange:e=>t(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),u())},rows:3}),v.jsx(mt,{horizontal:!0,horizontalAlign:"end",width:"100%",children:i?v.jsx(jt,{icon:v.jsx(E.RecordStopRegular,{}),hoverIcon:v.jsx(E.RecordStopFilled,{}),width:32,height:32,onClick:o}):v.jsx(jt,{icon:v.jsx(E.ArrowCircleUp32Regular,{}),hoverIcon:v.jsx(E.ArrowCircleUp32Filled,{}),width:32,height:32,onClick:u,enabled:e.trim().length>0})})]})}),iu=()=>({listContainer:T.css({display:"grid",gridTemplateColumns:"1fr",gap:w.tokens.spacingVerticalXXS,maxHeight:"400px",overflowY:"auto",overflowX:"hidden",padding:w.tokens.spacingVerticalS,minWidth:"280px","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:w.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:w.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:w.tokens.colorNeutralStroke2}}),suggestionsHeader:T.css({color:w.tokens.colorBrandBackground,padding:w.tokens.spacingVerticalXS}),noResults:T.css({padding:w.tokens.spacingVerticalS,textAlign:"center",color:w.tokens.colorNeutralForeground3})}),ou=({context:e,inputValue:t,parentRef:r,mentionChars:n,onUserSelect:i,theme:o,suggestionsHeader:a,maxSuggestions:s=100,userFilter:l})=>{var c,u;const h=K(),d=e||h,p=null==d?void 0:d.graphClient,g=(null==(u=null==(c=null==d?void 0:d.pageContext)?void 0:c.web)?void 0:u.absoluteUrl)||"",f=b.useMensionsStrings(),m=b.useUserCardStrings(),{verbose:y,warn:C,error:k}=Q(),[S,_]=x.useState(!1),[T,A]=x.useState({top:0,left:0}),[E,P]=x.useState([]),[M,I]=x.useState(""),[B,L]=x.useState(""),j=x.useRef({}),N=iu(),D=x.useCallback(async e=>{if(!p)return C("Graph client not available"),[];const t=`${e}_${s}`;if(j.current[t])return j.current[t];try{const r=e&&e.length>0?`startswith(displayName,'${e}') or startswith(givenName,'${e}') or startswith(surname,'${e}')`:"",n=r?`/users?$filter=${r}&$select=id,displayName,mail,userPrincipalName&$top=${s}`:`/users?$select=id,displayName,mail,userPrincipalName&$orderby=displayName&$top=${s}`;y("[fetchUsers]: API query:",n);const i=await p.get(n);y("[fetchUsers]: Graph response:",i);const o=(i.value||[]).map(e=>({id:e.id||"",displayName:e.displayName||e.userPrincipalName||m.unknownUser,mail:e.mail||e.userPrincipalName||"",avatar:g?`${g}/_layouts/15/userphoto.aspx?size=S&accountname=${e.mail||e.userPrincipalName}`:void 0})).filter(e=>e.id&&e.displayName);return y("[fetchUsers]: Processed users:",o),j.current[t]=o,o}catch(r){return k("[fetchUsers]: Error fetching users from Graph:",r instanceof Error?r:void 0),[]}},[p,g,s]),O=x.useCallback(at(async(e,t)=>{y("[debouncedFetch]: Fetching users for query:",e);const r=await D(e),n=l?r.filter(t=>l(t,e)):r;y("[debouncedFetch]: Filtered users:",n),n.sort((e,t)=>e.displayName.localeCompare(t.displayName)),P(n),I(t),L(e),_(!0),y("[debouncedFetch]: Menu should be shown now")},300),[d,s,l,D]),z=e=>{const t=r.current;if(!t)return{top:0,left:0};if("TEXTAREA"===t.tagName){const r=t,n=R(r,e),i=r.getBoundingClientRect();return{top:i.top+n.top+22,left:i.left+n.left+16}}const n=t.getBoundingClientRect();return{top:n.bottom+5,left:n.left}};x.useEffect(()=>{if(!t)return void _(!1);y("[Mensions]: Analyzing input:",t);let e=!1;for(const r of n){const n=t.lastIndexOf(r);if(y("[Mensions]: Checking mention char:",r),-1!==n&&(0===n||" "===t[n-1])){const i=t.slice(n+1);if(y("[Mensions]: Search text:",i),!i.includes(" ")){e=!0;const t=z(n);y("[Mensions]: Menu position:",t),A(t),O(i,r);break}}}e||(y("[Mensions]: No mention found, hiding menu"),_(!1))},[t,n,r,O]);const F=e=>{i(e,M),_(!1),P([])},$=x.useCallback(({users:e})=>v.jsxs("div",{className:N.listContainer,children:[0===e.length&&v.jsxs(w.Caption1,{className:N.noResults,children:[f.noResults,' "',B,'"']}),e.map(e=>v.jsx(w.Card,{appearance:"subtle",onMouseDown:e=>e.preventDefault(),onClick:()=>F(e),children:v.jsx(w.Persona,{name:e.displayName||m.unknownUser,role:"gridcell",secondaryText:e.mail||e.userPrincipalName||"",avatar:{image:{src:e.avatar}}})},e.id))]}),[N,B,F]);return v.jsxs(wt,{theme:o,anchorPoint:T,isOpen:S,onClose:()=>_(!1),excludeRefs:r?[r]:[],children:[v.jsx(w.CardHeader,{header:v.jsx(w.Body1Strong,{className:N.suggestionsHeader,children:a})}),v.jsx(w.Divider,{}),v.jsx($,{users:E})]})},au=()=>({inputContainer:T.css({marginTop:"auto",marginLeft:"auto","::after":{content:'""',position:"absolute",bottom:0,left:0,right:0,borderBottom:"2px solid transparent",pointerEvents:"none",borderRadius:w.tokens.borderRadiusMedium}}),listContainer:T.css({maxHeight:"400px",overflowY:"auto",overflowX:"hidden","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:w.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:w.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:w.tokens.colorNeutralStroke2}}),sugestionsHeader:T.css({color:w.tokens.colorBrandBackground})}),su=({context:e,onChange:t,value:r,placeholder:n,onSend:i,theme:o=w.webLightTheme,isRunning:a,onAbort:s})=>{const[l,c]=x.useState(r||""),u=x.useRef(null),h=au();x.useEffect(()=>{var e;null==(e=u.current)||e.focus(),c(r||"")},[r]);return v.jsxs(mt,{horizontal:!0,width:"100%",className:h.inputContainer,children:[v.jsx(nu,{ref:u,onSend:i,value:l,onChange:e=>{c(e),t&&t(e)},theme:o,placeholder:n,isRunning:a,onAbort:s}),v.jsx(ou,{context:e,inputValue:l,parentRef:u,mentionChars:["@"],onUserSelect:(e,r)=>{const n=new RegExp(`${r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(\\w*)$`),i=l.replace(n,`${r}${e.mail} `);c(i),t&&t(i),setTimeout(()=>{var e;null==(e=u.current)||e.focus()},0)},theme:o,suggestionsHeader:"Suggestions",maxSuggestions:10})]})},lu=()=>{const e=(()=>{const e=w.tokens.colorBrandBackground,t=T.keyframes`
|
|
123
|
+
0%, 80%, 100% {
|
|
124
|
+
opacity: 0;
|
|
125
|
+
transform: scale(0.8);
|
|
126
|
+
}
|
|
127
|
+
40% {
|
|
128
|
+
opacity: 1;
|
|
129
|
+
transform: scale(1);
|
|
130
|
+
}
|
|
131
|
+
`;return{root:T.css`
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: start;
|
|
134
|
+
justify-content: start;
|
|
135
|
+
height: fit-content;
|
|
136
|
+
padding: 5px 0;
|
|
137
|
+
`,dot:T.css`
|
|
138
|
+
width: 8px;
|
|
139
|
+
height: 8px;
|
|
140
|
+
margin: 0 4px;
|
|
141
|
+
background-color: ${e};
|
|
142
|
+
border-radius: 50%;
|
|
143
|
+
animation: ${t} 1.4s infinite ease-in-out both;
|
|
144
|
+
`,dot1:T.css`
|
|
145
|
+
animation-delay: 0s;
|
|
146
|
+
`,dot2:T.css`
|
|
147
|
+
animation-delay: 0.2s;
|
|
148
|
+
`,dot3:T.css`
|
|
149
|
+
animation-delay: 0.4s;
|
|
150
|
+
`}})();return v.jsxs("div",{className:e.root,children:[v.jsx("div",{className:`${e.dot} ${e.dot1}`}),v.jsx("div",{className:`${e.dot} ${e.dot2}`}),v.jsx("div",{className:`${e.dot} ${e.dot3}`})]})},cu=(e,t)=>{switch(t.type){case"INIT":return{...e,messages:[t.welcomeMessage],isLoading:!1};case"SET_INPUT":return{...e,inputText:t.inputText};case"ADD_USER_MESSAGE":case"ADD_ASSISTANT_MESSAGE":return{...e,messages:[...e.messages,t.message]};case"UPDATE_LAST_ASSISTANT_MESSAGE":{const r=[...e.messages],n=r.length-1;return n>=0&&"Assistant"===r[n].senderName&&(r[n]=t.message),{...e,messages:r}}case"SET_ERROR":return{...e,error:t.error};case"CLEAR_INPUT":return{...e,inputText:""};case"SET_IS_RUNNING":return{...e,isRunning:!e.isRunning};default:return e}},uu=({content:e,className:t})=>{const r={markdown:T.css({fontFamily:w.tokens.fontFamilyBase,fontSize:w.tokens.fontSizeBase300,lineHeight:w.tokens.lineHeightBase300,color:w.tokens.colorNeutralForeground1,"& p":{marginTop:"0",marginBottom:w.tokens.spacingVerticalM},"& h1, & h2, & h3, & h4, & h5, & h6":{marginTop:w.tokens.spacingVerticalL,marginBottom:w.tokens.spacingVerticalM,fontWeight:w.tokens.fontWeightSemibold},"& h1":{fontSize:w.tokens.fontSizeBase500},"& h2":{fontSize:w.tokens.fontSizeBase400},"& h3":{fontSize:w.tokens.fontSizeBase300},"& ul, & ol":{marginTop:"0",marginBottom:w.tokens.spacingVerticalM,paddingLeft:w.tokens.spacingHorizontalXXL},"& li":{marginBottom:w.tokens.spacingVerticalXS},"& code":{fontFamily:w.tokens.fontFamilyMonospace,fontSize:w.tokens.fontSizeBase200,backgroundColor:w.tokens.colorNeutralBackground3,padding:"2px 4px",borderRadius:w.tokens.borderRadiusSmall},"& pre":{backgroundColor:w.tokens.colorNeutralBackground3,padding:w.tokens.spacingVerticalM,borderRadius:w.tokens.borderRadiusMedium,overflowX:"auto",marginBottom:w.tokens.spacingVerticalM},"& pre code":{backgroundColor:"transparent",padding:"0"},"& table":{borderCollapse:"collapse",width:"100%",marginBottom:w.tokens.spacingVerticalM,border:`1px solid ${w.tokens.colorNeutralStroke1}`},"& thead":{backgroundColor:w.tokens.colorNeutralBackground3},"& th":{padding:w.tokens.spacingVerticalS+" "+w.tokens.spacingHorizontalM,textAlign:"left",fontWeight:w.tokens.fontWeightSemibold,borderBottom:`2px solid ${w.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${w.tokens.colorNeutralStroke2}`},"& td":{padding:w.tokens.spacingVerticalS+" "+w.tokens.spacingHorizontalM,borderBottom:`1px solid ${w.tokens.colorNeutralStroke2}`,borderRight:`1px solid ${w.tokens.colorNeutralStroke2}`},"& tr:last-child td":{borderBottom:"none"},"& th:last-child, & td:last-child":{borderRight:"none"},"& blockquote":{borderLeft:`4px solid ${w.tokens.colorBrandStroke1}`,paddingLeft:w.tokens.spacingHorizontalM,marginLeft:"0",marginBottom:w.tokens.spacingVerticalM,color:w.tokens.colorNeutralForeground2},"& a":{color:w.tokens.colorBrandForeground1,textDecoration:"none",":hover":{textDecoration:"underline"}},"& hr":{border:"none",borderTop:`1px solid ${w.tokens.colorNeutralStroke2}`,marginTop:w.tokens.spacingVerticalL,marginBottom:w.tokens.spacingVerticalL}})},[n,i]=H.useState("");return H.useEffect(()=>{const t=new D({html:!1,linkify:!0,typographer:!0,breaks:!0}).render(e);i(t)},[e]),v.jsx("div",{className:`${r.markdown} ${t||""}`,dangerouslySetInnerHTML:{__html:n}})},hu=w.makeStyles({plainText:{fontFamily:w.tokens.fontFamilyBase,fontSize:w.tokens.fontSizeBase300,lineHeight:w.tokens.lineHeightBase300,color:w.tokens.colorNeutralForeground1,whiteSpace:"pre-wrap",wordBreak:"break-word"},htmlContent:{fontFamily:w.tokens.fontFamilyBase,fontSize:w.tokens.fontSizeBase300,lineHeight:w.tokens.lineHeightBase300,color:w.tokens.colorNeutralForeground1,"& p":{marginTop:"0",marginBottom:w.tokens.spacingVerticalM},"& h1, & h2, & h3, & h4, & h5, & h6":{marginTop:w.tokens.spacingVerticalL,marginBottom:w.tokens.spacingVerticalM,fontWeight:w.tokens.fontWeightSemibold},"& table":{borderCollapse:"collapse",width:"100%",marginBottom:w.tokens.spacingVerticalM},"& th, & td":{border:`1px solid ${w.tokens.colorNeutralStroke1}`,padding:w.tokens.spacingHorizontalS,textAlign:"left"},"& th":{backgroundColor:w.tokens.colorNeutralBackground3,fontWeight:w.tokens.fontWeightSemibold}},debugBadge:{display:"inline-block",padding:`${w.tokens.spacingVerticalXS} ${w.tokens.spacingHorizontalS}`,marginBottom:w.tokens.spacingVerticalS,backgroundColor:w.tokens.colorNeutralBackground3,borderRadius:w.tokens.borderRadiusSmall,fontSize:w.tokens.fontSizeBase200,fontFamily:w.tokens.fontFamilyMonospace,color:w.tokens.colorNeutralForeground2},adaptiveCardWrapper:{width:"100%"}}),du=({content:e,forceType:t,onTypeDetected:r,context:n,theme:i=po.SharePoint,fluentTheme:o,onAdaptiveCardAction:a,className:s,debug:l=!1})=>{const c=hu(),{error:u}=Q(),[h,d]=H.useState(null);if(H.useEffect(()=>{if(H.isValidElement(e))return;if("string"!=typeof e&&"object"!=typeof e)return;const t=ct(e);d(t),r&&r(t)},[e,r]),H.isValidElement(e))return v.jsx(v.Fragment,{children:e});const p=t||(null==h?void 0:h.type),g=(null==h?void 0:h.content)||e;return v.jsxs(v.Fragment,{children:[l&&h?v.jsxs("div",{className:c.debugBadge,children:["Type: ",h.type," | Confidence: ",(100*h.confidence).toFixed(0),"%"]}):null,(()=>{switch(p){case st.MARKDOWN:return v.jsx(uu,{content:g,className:s});case st.HTML:return v.jsx("div",{className:`${c.htmlContent} ${s||""}`,dangerouslySetInnerHTML:{__html:g}});case st.ADAPTIVE_CARD:return v.jsx("div",{className:`${c.adaptiveCardWrapper} ${s||""}`,children:v.jsx(Jc,{card:"string"==typeof g?JSON.parse(g):g,context:n,theme:o,themeType:i,onInvokeAction:a||(()=>{}),onError:e=>u("Adaptive Card Error:",e instanceof Error?e:void 0)})});case st.PLAIN_TEXT:default:return v.jsx("div",{className:`${c.plainText} ${s||""}`,children:g})}})()]})},pu=H.forwardRef((e,t)=>{const{messages:r,context:n}=e,i=e=>{if(H.isValidElement(e))return e;if("string"==typeof e){return e.replace(/\{"status"\s*:\s*"executing"\}/gi,"").replace(/\{'status'\s*:\s*'executing'\}/gi,"").trim()}return e},o=T.css({flex:"1 1 0",overflowY:"auto",overflowX:"hidden",padding:"16px",paddingRight:"25px","::-webkit-scrollbar":{width:"6px"},"::-webkit-scrollbar-track":{background:w.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:w.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:w.tokens.colorNeutralStroke2}}),a=T.css({display:"flex",flexDirection:"column",gap:"10px",paddingRight:"30px"});return v.jsx("div",{ref:t,className:o,children:v.jsx($.Chat,{className:a,children:r.map((e,t)=>"User"===e.senderName?v.jsx($.ChatMyMessage,{status:e.status,author:e.senderName,children:i(e.message)},t):v.jsx($.ChatMessage,{decoration:"failed"===e.status?"important":void 0,avatar:v.jsx(M.Icon,{icon:"carbon:ibm-consulting-advantage-assistant",width:"32",height:"32",style:{color:w.tokens.colorBrandBackground}}),author:e.senderName,children:v.jsx(du,{content:i(e.message),context:n})},t))})})});pu.displayName="ChatList";const gu=(e,t)=>{const{getFormatRelative:r}=it(e,t);return r(new Date)};var fu={name:"mermaid",version:"11.12.3",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.23",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},mu={exports:{}};const yu=En(mu.exports=function(){var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",h="year",d="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},y=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},b={s:y,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+y(n,2,"0")+":"+y(i,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,c),o=r-i<0,a=t.clone().add(n+(o?-1:1),c);return+(-(n+(r-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:h,w:l,d:s,D:d,h:a,m:o,s:i,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",x={};x[v]=m;var C="$isDayjsObject",w=function(e){return e instanceof T||!(!e||!e[C])},k=function e(t,r,n){var i;if(!t)return v;if("string"==typeof t){var o=t.toLowerCase();x[o]&&(i=o),r&&(x[o]=r,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;x[s]=t,i=s}return!n&&i&&(v=i),i||!n&&v},S=function(e,t){if(w(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new T(r)},_=b;_.l=k,_.i=w,_.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function m(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[C]=!0}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(g);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return _},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(e,t){var r=S(e);return this.startOf(t)<=r&&r<=this.endOf(t)},y.isAfter=function(e,t){return S(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<S(e)},y.$g=function(e,t,r){return _.u(e)?this[t]:this.set(r,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var r=this,n=!!_.u(t)||t,u=_.p(e),p=function(e,t){var i=_.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?i:i.endOf(s)},g=function(e,t){return _.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},f=this.$W,m=this.$M,y=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case h:return n?p(1,0):p(31,11);case c:return n?p(1,m):p(0,m+1);case l:var v=this.$locale().weekStart||0,x=(f<v?f+7:f)-v;return p(n?y-x:y+(6-x),m);case s:case d:return g(b+"Hours",0);case a:return g(b+"Minutes",1);case o:return g(b+"Seconds",2);case i:return g(b+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var r,l=_.p(e),u="set"+(this.$u?"UTC":""),p=(r={},r[s]=u+"Date",r[d]=u+"Date",r[c]=u+"Month",r[h]=u+"FullYear",r[a]=u+"Hours",r[o]=u+"Minutes",r[i]=u+"Seconds",r[n]=u+"Milliseconds",r)[l],g=l===s?this.$D+(t-this.$W):t;if(l===c||l===h){var f=this.clone().set(d,1);f.$d[p](g),f.init(),this.$d=f.set(d,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](g);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[_.p(e)]()},y.add=function(n,u){var d,p=this;n=Number(n);var g=_.p(u),f=function(e){var t=S(p);return _.w(t.date(t.date()+Math.round(e*n)),p)};if(g===c)return this.set(c,this.$M+n);if(g===h)return this.set(h,this.$y+n);if(g===s)return f(1);if(g===l)return f(7);var m=(d={},d[o]=t,d[a]=r,d[i]=e,d)[g]||1,y=this.$d.getTime()+n*m;return _.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=_.z(this),o=this.$H,a=this.$m,s=this.$M,l=r.weekdays,c=r.months,u=r.meridiem,h=function(e,r,i,o){return e&&(e[r]||e(t,n))||i[r].slice(0,o)},d=function(e){return _.s(o%12||12,e,"0")},g=u||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(f,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return _.s(t.$y,4,"0");case"M":return s+1;case"MM":return _.s(s+1,2,"0");case"MMM":return h(r.monthsShort,s,c,3);case"MMMM":return h(c,s);case"D":return t.$D;case"DD":return _.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(r.weekdaysMin,t.$W,l,2);case"ddd":return h(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return _.s(o,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return g(o,a,!0);case"A":return g(o,a,!1);case"m":return String(a);case"mm":return _.s(a,2,"0");case"s":return String(t.$s);case"ss":return _.s(t.$s,2,"0");case"SSS":return _.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,d,p){var g,f=this,m=_.p(d),y=S(n),b=(y.utcOffset()-this.utcOffset())*t,v=this-y,x=function(){return _.m(f,y)};switch(m){case h:g=x()/12;break;case c:g=x();break;case u:g=x()/3;break;case l:g=(v-b)/6048e5;break;case s:g=(v-b)/864e5;break;case a:g=v/r;break;case o:g=v/t;break;case i:g=v/e;break;default:g=v}return p?g:_.a(g)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return x[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=k(e,t,!0);return n&&(r.$L=n),r},y.clone=function(){return _.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),A=T.prototype;return S.prototype=A,[["$ms",n],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",h],["$D",d]].forEach(function(e){A[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,T,S),e.$i=!0),S},S.locale=k,S.isDayjs=w,S.unix=function(e){return S(1e3*e)},S.en=x[v],S.Ls=x,S.p={},S}());var bu=Object.defineProperty,vu=(e,t)=>bu(e,"name",{value:t,configurable:!0}),xu=(e,t)=>{for(var r in t)bu(e,r,{get:t[r],enumerable:!0})},Cu={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},wu={trace:vu((...e)=>{},"trace"),debug:vu((...e)=>{},"debug"),info:vu((...e)=>{},"info"),warn:vu((...e)=>{},"warn"),error:vu((...e)=>{},"error"),fatal:vu((...e)=>{},"fatal")},ku=vu(function(e="fatal"){let t=Cu.fatal;"string"==typeof e?e.toLowerCase()in Cu&&(t=Cu[e]):"number"==typeof e&&(t=e),wu.trace=()=>{},wu.debug=()=>{},wu.info=()=>{},wu.warn=()=>{},wu.error=()=>{},wu.fatal=()=>{},t<=Cu.fatal&&(wu.fatal=console.error?console.error.bind(console,Su("FATAL"),"color: orange"):console.log.bind(console,"[35m",Su("FATAL"))),t<=Cu.error&&(wu.error=console.error?console.error.bind(console,Su("ERROR"),"color: orange"):console.log.bind(console,"[31m",Su("ERROR"))),t<=Cu.warn&&(wu.warn=console.warn?console.warn.bind(console,Su("WARN"),"color: orange"):console.log.bind(console,"[33m",Su("WARN"))),t<=Cu.info&&(wu.info=console.info?console.info.bind(console,Su("INFO"),"color: lightblue"):console.log.bind(console,"[34m",Su("INFO"))),t<=Cu.debug&&(wu.debug=console.debug?console.debug.bind(console,Su("DEBUG"),"color: lightgreen"):console.log.bind(console,"[32m",Su("DEBUG"))),t<=Cu.trace&&(wu.trace=console.debug?console.debug.bind(console,Su("TRACE"),"color: lightgreen"):console.log.bind(console,"[32m",Su("TRACE")))},"setLogLevel"),Su=vu(e=>`%c${yu().format("ss.SSS")} : ${e} : `,"format");const _u={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},n)=>{if(!t)return 2.55*r;e/=360,t/=100;const i=(r/=100)<.5?r*(1+t):r+t-r*t,o=2*r-i;switch(n){case"r":return 255*_u.hue2rgb(o,i,e+1/3);case"g":return 255*_u.hue2rgb(o,i,e);case"b":return 255*_u.hue2rgb(o,i,e-1/3)}},rgb2hsl:({r:e,g:t,b:r},n)=>{e/=255,t/=255,r/=255;const i=Math.max(e,t,r),o=Math.min(e,t,r),a=(i+o)/2;if("l"===n)return 100*a;if(i===o)return 0;const s=i-o;if("s"===n)return 100*(a>.5?s/(2-i-o):s/(i+o));switch(i){case e:return 60*((t-r)/s+(t<r?6:0));case t:return 60*((r-e)/s+2);case r:return 60*((e-t)/s+4);default:return-1}}},Tu={channel:_u,lang:{clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(1e10*e)/1e10},unit:{dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}}},Au={};for(let VL=0;VL<=255;VL++)Au[VL]=Tu.unit.dec2hex(VL);const Eu=0,Pu=1,Mu=2;class Iu{constructor(){this.type=Eu}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=Eu}is(e){return this.type===e}}const Bu=new class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new Iu}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=Eu,this}_ensureHSL(){const e=this.data,{h:t,s:r,l:n}=e;void 0===t&&(e.h=Tu.channel.rgb2hsl(e,"h")),void 0===r&&(e.s=Tu.channel.rgb2hsl(e,"s")),void 0===n&&(e.l=Tu.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:t,g:r,b:n}=e;void 0===t&&(e.r=Tu.channel.hsl2rgb(e,"r")),void 0===r&&(e.g=Tu.channel.hsl2rgb(e,"g")),void 0===n&&(e.b=Tu.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,t=e.r;return this.type.is(Mu)||void 0===t?(this._ensureHSL(),Tu.channel.hsl2rgb(e,"r")):t}get g(){const e=this.data,t=e.g;return this.type.is(Mu)||void 0===t?(this._ensureHSL(),Tu.channel.hsl2rgb(e,"g")):t}get b(){const e=this.data,t=e.b;return this.type.is(Mu)||void 0===t?(this._ensureHSL(),Tu.channel.hsl2rgb(e,"b")):t}get h(){const e=this.data,t=e.h;return this.type.is(Pu)||void 0===t?(this._ensureRGB(),Tu.channel.rgb2hsl(e,"h")):t}get s(){const e=this.data,t=e.s;return this.type.is(Pu)||void 0===t?(this._ensureRGB(),Tu.channel.rgb2hsl(e,"s")):t}get l(){const e=this.data,t=e.l;return this.type.is(Pu)||void 0===t?(this._ensureRGB(),Tu.channel.rgb2hsl(e,"l")):t}get a(){return this.data.a}set r(e){this.type.set(Pu),this.changed=!0,this.data.r=e}set g(e){this.type.set(Pu),this.changed=!0,this.data.g=e}set b(e){this.type.set(Pu),this.changed=!0,this.data.b=e}set h(e){this.type.set(Mu),this.changed=!0,this.data.h=e}set s(e){this.type.set(Mu),this.changed=!0,this.data.s=e}set l(e){this.type.set(Mu),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}({r:0,g:0,b:0,a:0},"transparent"),Lu={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(35!==e.charCodeAt(0))return;const t=e.match(Lu.re);if(!t)return;const r=t[1],n=parseInt(r,16),i=r.length,o=i%4==0,a=i>4,s=a?1:17,l=a?8:4,c=o?0:-1,u=a?255:15;return Bu.set({r:(n>>l*(c+3)&u)*s,g:(n>>l*(c+2)&u)*s,b:(n>>l*(c+1)&u)*s,a:o?(n&u)*s/255:1},e)},stringify:e=>{const{r:t,g:r,b:n,a:i}=e;return i<1?`#${Au[Math.round(t)]}${Au[Math.round(r)]}${Au[Math.round(n)]}${Au[Math.round(255*i)]}`:`#${Au[Math.round(t)]}${Au[Math.round(r)]}${Au[Math.round(n)]}`}},ju={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(ju.hueRe);if(t){const[,e,r]=t;switch(r){case"grad":return Tu.channel.clamp.h(.9*parseFloat(e));case"rad":return Tu.channel.clamp.h(180*parseFloat(e)/Math.PI);case"turn":return Tu.channel.clamp.h(360*parseFloat(e))}}return Tu.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(104!==t&&72!==t)return;const r=e.match(ju.re);if(!r)return;const[,n,i,o,a,s]=r;return Bu.set({h:ju._hue2deg(n),s:Tu.channel.clamp.s(parseFloat(i)),l:Tu.channel.clamp.l(parseFloat(o)),a:a?Tu.channel.clamp.a(s?parseFloat(a)/100:parseFloat(a)):1},e)},stringify:e=>{const{h:t,s:r,l:n,a:i}=e;return i<1?`hsla(${Tu.lang.round(t)}, ${Tu.lang.round(r)}%, ${Tu.lang.round(n)}%, ${i})`:`hsl(${Tu.lang.round(t)}, ${Tu.lang.round(r)}%, ${Tu.lang.round(n)}%)`}},Nu={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=Nu.colors[e];if(t)return Lu.parse(t)},stringify:e=>{const t=Lu.stringify(e);for(const r in Nu.colors)if(Nu.colors[r]===t)return r}},Du={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(114!==t&&82!==t)return;const r=e.match(Du.re);if(!r)return;const[,n,i,o,a,s,l,c,u]=r;return Bu.set({r:Tu.channel.clamp.r(i?2.55*parseFloat(n):parseFloat(n)),g:Tu.channel.clamp.g(a?2.55*parseFloat(o):parseFloat(o)),b:Tu.channel.clamp.b(l?2.55*parseFloat(s):parseFloat(s)),a:c?Tu.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:n,a:i}=e;return i<1?`rgba(${Tu.lang.round(t)}, ${Tu.lang.round(r)}, ${Tu.lang.round(n)}, ${Tu.lang.round(i)})`:`rgb(${Tu.lang.round(t)}, ${Tu.lang.round(r)}, ${Tu.lang.round(n)})`}},Ou={format:{keyword:Nu,hex:Lu,rgb:Du,rgba:Du,hsl:ju,hsla:ju},parse:e=>{if("string"!=typeof e)return e;const t=Lu.parse(e)||Du.parse(e)||ju.parse(e)||Nu.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Mu)||void 0===e.data.r?ju.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Du.stringify(e):Lu.stringify(e)},zu=(e,t)=>{const r=Ou.parse(e);for(const n in t)r[n]=Tu.channel.clamp[n](t[n]);return Ou.stringify(r)},Fu=(e,t,r=0,n=1)=>{if("number"!=typeof e)return zu(e,{a:t});const i=Bu.set({r:Tu.channel.clamp.r(e),g:Tu.channel.clamp.g(t),b:Tu.channel.clamp.b(r),a:Tu.channel.clamp.a(n)});return Ou.stringify(i)},Ru=e=>(e=>{const{r:t,g:r,b:n}=Ou.parse(e),i=.2126*Tu.channel.toLinear(t)+.7152*Tu.channel.toLinear(r)+.0722*Tu.channel.toLinear(n);return Tu.lang.round(i)})(e)>=.5,$u=e=>!Ru(e),Vu=(e,t,r)=>{const n=Ou.parse(e),i=n[t],o=Tu.channel.clamp[t](i+r);return i!==o&&(n[t]=o),Ou.stringify(n)},Wu=(e,t)=>Vu(e,"l",t),qu=(e,t)=>Vu(e,"l",-t),Hu=(e,t)=>{const r=Ou.parse(e),n={};for(const i in t)t[i]&&(n[i]=r[i]+t[i]);return zu(e,n)},Uu=(e,t=100)=>{const r=Ou.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,((e,t,r=50)=>{const{r:n,g:i,b:o,a:a}=Ou.parse(e),{r:s,g:l,b:c,a:u}=Ou.parse(t),h=r/100,d=2*h-1,p=a-u,g=((d*p===-1?d:(d+p)/(1+d*p))+1)/2,f=1-g;return Fu(n*g+s*f,i*g+l*f,o*g+c*f,a*h+u*(1-h))})(r,e,t)},{entries:Gu,setPrototypeOf:Xu,isFrozen:Ju,getPrototypeOf:Yu,getOwnPropertyDescriptor:Zu}=Object;let{freeze:Ku,seal:Qu,create:eh}=Object,{apply:th,construct:rh}="undefined"!=typeof Reflect&&Reflect;Ku||(Ku=function(e){return e}),Qu||(Qu=function(e){return e}),th||(th=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return e.apply(t,n)}),rh||(rh=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new e(...r)});const nh=bh(Array.prototype.forEach),ih=bh(Array.prototype.lastIndexOf),oh=bh(Array.prototype.pop),ah=bh(Array.prototype.push),sh=bh(Array.prototype.splice),lh=bh(String.prototype.toLowerCase),ch=bh(String.prototype.toString),uh=bh(String.prototype.match),hh=bh(String.prototype.replace),dh=bh(String.prototype.indexOf),ph=bh(String.prototype.trim),gh=bh(Object.prototype.hasOwnProperty),fh=bh(RegExp.prototype.test),mh=(yh=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return rh(yh,t)});var yh;function bh(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return th(e,t,n)}}function vh(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:lh;Xu&&Xu(e,null);let n=t.length;for(;n--;){let i=t[n];if("string"==typeof i){const e=r(i);e!==i&&(Ju(t)||(t[n]=e),i=e)}e[i]=!0}return e}function xh(e){for(let t=0;t<e.length;t++){gh(e,t)||(e[t]=null)}return e}function Ch(e){const t=eh(null);for(const[r,n]of Gu(e)){gh(e,r)&&(Array.isArray(n)?t[r]=xh(n):n&&"object"==typeof n&&n.constructor===Object?t[r]=Ch(n):t[r]=n)}return t}function wh(e,t){for(;null!==e;){const r=Zu(e,t);if(r){if(r.get)return bh(r.get);if("function"==typeof r.value)return bh(r.value)}e=Yu(e)}return function(){return null}}const kh=Ku(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Sh=Ku(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_h=Ku(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Th=Ku(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ah=Ku(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Eh=Ku(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ph=Ku(["#text"]),Mh=Ku(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ih=Ku(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Bh=Ku(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Lh=Ku(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),jh=Qu(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Nh=Qu(/<%[\w\W]*|[\w\W]*%>/gm),Dh=Qu(/\$\{[\w\W]*/gm),Oh=Qu(/^data-[\-\w.\u00B7-\uFFFF]+$/),zh=Qu(/^aria-[\-\w]+$/),Fh=Qu(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Rh=Qu(/^(?:\w+script|data):/i),$h=Qu(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Vh=Qu(/^html$/i),Wh=Qu(/^[a-z][.\w]*(-[.\w]+)+$/i);var qh=Object.freeze({__proto__:null,ARIA_ATTR:zh,ATTR_WHITESPACE:$h,CUSTOM_ELEMENT:Wh,DATA_ATTR:Oh,DOCTYPE_NAME:Vh,ERB_EXPR:Nh,IS_ALLOWED_URI:Fh,IS_SCRIPT_OR_DATA:Rh,MUSTACHE_EXPR:jh,TMPLIT_EXPR:Dh});const Hh=1,Uh=3,Gh=7,Xh=8,Jh=9;var Yh,Zh=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const r=t=>e(t);if(r.version="3.3.1",r.removed=[],!t||!t.document||t.document.nodeType!==Jh||!t.Element)return r.isSupported=!1,r;let{document:n}=t;const i=n,o=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:p,trustedTypes:g}=t,f=c.prototype,m=wh(f,"cloneNode"),y=wh(f,"remove"),b=wh(f,"nextSibling"),v=wh(f,"childNodes"),x=wh(f,"parentNode");if("function"==typeof s){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let C,w="";const{implementation:k,createNodeIterator:S,createDocumentFragment:_,getElementsByTagName:T}=n,{importNode:A}=i;let E={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof Gu&&"function"==typeof x&&k&&void 0!==k.createHTMLDocument;const{MUSTACHE_EXPR:P,ERB_EXPR:M,TMPLIT_EXPR:I,DATA_ATTR:B,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:N,CUSTOM_ELEMENT:D}=qh;let{IS_ALLOWED_URI:O}=qh,z=null;const F=vh({},[...kh,...Sh,..._h,...Ah,...Ph]);let R=null;const $=vh({},[...Mh,...Ih,...Bh,...Lh]);let V=Object.seal(eh(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,q=null;const H=Object.seal(eh(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let U=!0,G=!0,X=!1,J=!0,Y=!1,Z=!0,K=!1,Q=!1,ee=!1,te=!1,re=!1,ne=!1,ie=!0,oe=!1,ae=!0,se=!1,le={},ce=null;const ue=vh({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let he=null;const de=vh({},["audio","video","img","source","image","track"]);let pe=null;const ge=vh({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",ye="http://www.w3.org/1999/xhtml";let be=ye,ve=!1,xe=null;const Ce=vh({},[fe,me,ye],ch);let we=vh({},["mi","mo","mn","ms","mtext"]),ke=vh({},["annotation-xml"]);const Se=vh({},["title","style","font","a","script"]);let _e=null;const Te=["application/xhtml+xml","text/html"];let Ae=null,Ee=null;const Pe=n.createElement("form"),Me=function(e){return e instanceof RegExp||e instanceof Function},Ie=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ee||Ee!==e){if(e&&"object"==typeof e||(e={}),e=Ch(e),_e=-1===Te.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ae="application/xhtml+xml"===_e?ch:lh,z=gh(e,"ALLOWED_TAGS")?vh({},e.ALLOWED_TAGS,Ae):F,R=gh(e,"ALLOWED_ATTR")?vh({},e.ALLOWED_ATTR,Ae):$,xe=gh(e,"ALLOWED_NAMESPACES")?vh({},e.ALLOWED_NAMESPACES,ch):Ce,pe=gh(e,"ADD_URI_SAFE_ATTR")?vh(Ch(ge),e.ADD_URI_SAFE_ATTR,Ae):ge,he=gh(e,"ADD_DATA_URI_TAGS")?vh(Ch(de),e.ADD_DATA_URI_TAGS,Ae):de,ce=gh(e,"FORBID_CONTENTS")?vh({},e.FORBID_CONTENTS,Ae):ue,W=gh(e,"FORBID_TAGS")?vh({},e.FORBID_TAGS,Ae):Ch({}),q=gh(e,"FORBID_ATTR")?vh({},e.FORBID_ATTR,Ae):Ch({}),le=!!gh(e,"USE_PROFILES")&&e.USE_PROFILES,U=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,X=e.ALLOW_UNKNOWN_PROTOCOLS||!1,J=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,Z=!1!==e.SAFE_FOR_XML,K=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,re=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ae=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,O=e.ALLOWED_URI_REGEXP||Fh,be=e.NAMESPACE||ye,we=e.MATHML_TEXT_INTEGRATION_POINTS||we,ke=e.HTML_INTEGRATION_POINTS||ke,V=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Me(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Me(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(G=!1),re&&(te=!0),le&&(z=vh({},Ph),R=[],!0===le.html&&(vh(z,kh),vh(R,Mh)),!0===le.svg&&(vh(z,Sh),vh(R,Ih),vh(R,Lh)),!0===le.svgFilters&&(vh(z,_h),vh(R,Ih),vh(R,Lh)),!0===le.mathMl&&(vh(z,Ah),vh(R,Bh),vh(R,Lh))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?H.tagCheck=e.ADD_TAGS:(z===F&&(z=Ch(z)),vh(z,e.ADD_TAGS,Ae))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?H.attributeCheck=e.ADD_ATTR:(R===$&&(R=Ch(R)),vh(R,e.ADD_ATTR,Ae))),e.ADD_URI_SAFE_ATTR&&vh(pe,e.ADD_URI_SAFE_ATTR,Ae),e.FORBID_CONTENTS&&(ce===ue&&(ce=Ch(ce)),vh(ce,e.FORBID_CONTENTS,Ae)),e.ADD_FORBID_CONTENTS&&(ce===ue&&(ce=Ch(ce)),vh(ce,e.ADD_FORBID_CONTENTS,Ae)),ae&&(z["#text"]=!0),K&&vh(z,["html","head","body"]),z.table&&(vh(z,["tbody"]),delete W.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw mh('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw mh('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=e.TRUSTED_TYPES_POLICY,w=C.createHTML("")}else void 0===C&&(C=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));const i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(o){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(g,o)),null!==C&&"string"==typeof w&&(w=C.createHTML(""));Ku&&Ku(e),Ee=e}},Be=vh({},[...Sh,..._h,...Th]),Le=vh({},[...Ah,...Eh]),je=function(e){ah(r.removed,{element:e});try{x(e).removeChild(e)}catch(t){y(e)}},Ne=function(e,t){try{ah(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(n){ah(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||re)try{je(t)}catch(n){}else try{t.setAttribute(e,"")}catch(n){}},De=function(e){let t=null,r=null;if(ee)e="<remove></remove>"+e;else{const t=uh(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===_e&&be===ye&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=C?C.createHTML(e):e;if(be===ye)try{t=(new p).parseFromString(i,_e)}catch(a){}if(!t||!t.documentElement){t=k.createDocument(be,"template",null);try{t.documentElement.innerHTML=ve?w:i}catch(a){}}const o=t.body||t.documentElement;return e&&r&&o.insertBefore(n.createTextNode(r),o.childNodes[0]||null),be===ye?T.call(t,K?"html":"body")[0]:K?t.documentElement:o},Oe=function(e){return S.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},ze=function(e){return e instanceof d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Fe=function(e){return"function"==typeof l&&e instanceof l};function Re(e,t,n){nh(e,e=>{e.call(r,t,n,Ee)})}const $e=function(e){let t=null;if(Re(E.beforeSanitizeElements,e,null),ze(e))return je(e),!0;const n=Ae(e.nodeName);if(Re(E.uponSanitizeElement,e,{tagName:n,allowedTags:z}),Z&&e.hasChildNodes()&&!Fe(e.firstElementChild)&&fh(/<[/\w!]/g,e.innerHTML)&&fh(/<[/\w!]/g,e.textContent))return je(e),!0;if(e.nodeType===Gh)return je(e),!0;if(Z&&e.nodeType===Xh&&fh(/<[/\w]/g,e.data))return je(e),!0;if(!(H.tagCheck instanceof Function&&H.tagCheck(n))&&(!z[n]||W[n])){if(!W[n]&&We(n)){if(V.tagNameCheck instanceof RegExp&&fh(V.tagNameCheck,n))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(n))return!1}if(ae&&!ce[n]){const t=x(e)||e.parentNode,r=v(e)||e.childNodes;if(r&&t){for(let n=r.length-1;n>=0;--n){const i=m(r[n],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,b(e))}}}return je(e),!0}return e instanceof c&&!function(e){let t=x(e);t&&t.tagName||(t={namespaceURI:be,tagName:"template"});const r=lh(e.tagName),n=lh(t.tagName);return!!xe[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===ye?"svg"===r:t.namespaceURI===fe?"svg"===r&&("annotation-xml"===n||we[n]):Boolean(Be[r]):e.namespaceURI===fe?t.namespaceURI===ye?"math"===r:t.namespaceURI===me?"math"===r&&ke[n]:Boolean(Le[r]):e.namespaceURI===ye?!(t.namespaceURI===me&&!ke[n])&&!(t.namespaceURI===fe&&!we[n])&&!Le[r]&&(Se[r]||!Be[r]):!("application/xhtml+xml"!==_e||!xe[e.namespaceURI]))}(e)?(je(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!fh(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===Uh&&(t=e.textContent,nh([P,M,I],e=>{t=hh(t,e," ")}),e.textContent!==t&&(ah(r.removed,{element:e.cloneNode()}),e.textContent=t)),Re(E.afterSanitizeElements,e,null),!1):(je(e),!0)},Ve=function(e,t,r){if(ie&&("id"===t||"name"===t)&&(r in n||r in Pe))return!1;if(G&&!q[t]&&fh(B,t));else if(U&&fh(L,t));else if(H.attributeCheck instanceof Function&&H.attributeCheck(t,e));else if(!R[t]||q[t]){if(!(We(e)&&(V.tagNameCheck instanceof RegExp&&fh(V.tagNameCheck,e)||V.tagNameCheck instanceof Function&&V.tagNameCheck(e))&&(V.attributeNameCheck instanceof RegExp&&fh(V.attributeNameCheck,t)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(t,e))||"is"===t&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&fh(V.tagNameCheck,r)||V.tagNameCheck instanceof Function&&V.tagNameCheck(r))))return!1}else if(pe[t]);else if(fh(O,hh(r,N,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==dh(r,"data:")||!he[e]){if(X&&!fh(j,hh(r,N,"")));else if(r)return!1}else;return!0},We=function(e){return"annotation-xml"!==e&&uh(e,D)},qe=function(e){Re(E.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||ze(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:R,forceKeepAttr:void 0};let i=t.length;for(;i--;){const a=t[i],{name:s,namespaceURI:l,value:c}=a,u=Ae(s),h=c;let d="value"===s?h:ph(h);if(n.attrName=u,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,Re(E.uponSanitizeAttribute,e,n),d=n.attrValue,!oe||"id"!==u&&"name"!==u||(Ne(s,e),d="user-content-"+d),Z&&fh(/((--!?|])>)|<\/(style|title|textarea)/i,d)){Ne(s,e);continue}if("attributename"===u&&uh(d,"href")){Ne(s,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Ne(s,e);continue}if(!J&&fh(/\/>/i,d)){Ne(s,e);continue}Y&&nh([P,M,I],e=>{d=hh(d,e," ")});const p=Ae(e.nodeName);if(Ve(p,u,d)){if(C&&"object"==typeof g&&"function"==typeof g.getAttributeType)if(l);else switch(g.getAttributeType(p,u)){case"TrustedHTML":d=C.createHTML(d);break;case"TrustedScriptURL":d=C.createScriptURL(d)}if(d!==h)try{l?e.setAttributeNS(l,s,d):e.setAttribute(s,d),ze(e)?je(e):oh(r.removed)}catch(o){Ne(s,e)}}else Ne(s,e)}Re(E.afterSanitizeAttributes,e,null)},He=function e(t){let r=null;const n=Oe(t);for(Re(E.beforeSanitizeShadowDOM,t,null);r=n.nextNode();)Re(E.uponSanitizeShadowNode,r,null),$e(r),qe(r),r.content instanceof a&&e(r.content);Re(E.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,s=null,c=null;if(ve=!e,ve&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Fe(e)){if("function"!=typeof e.toString)throw mh("toString is not a function");if("string"!=typeof(e=e.toString()))throw mh("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Q||Ie(t),r.removed=[],"string"==typeof e&&(se=!1),se){if(e.nodeName){const t=Ae(e.nodeName);if(!z[t]||W[t])throw mh("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)n=De("\x3c!----\x3e"),o=n.ownerDocument.importNode(e,!0),o.nodeType===Hh&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!te&&!Y&&!K&&-1===e.indexOf("<"))return C&&ne?C.createHTML(e):e;if(n=De(e),!n)return te?null:ne?w:""}n&&ee&&je(n.firstChild);const u=Oe(se?e:n);for(;s=u.nextNode();)$e(s),qe(s),s.content instanceof a&&He(s.content);if(se)return e;if(te){if(re)for(c=_.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return(R.shadowroot||R.shadowrootmode)&&(c=A.call(i,c,!0)),c}let h=K?n.outerHTML:n.innerHTML;return K&&z["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&fh(Vh,n.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+h),Y&&nh([P,M,I],e=>{h=hh(h,e," ")}),C&&ne?C.createHTML(h):h},r.setConfig=function(){Ie(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},r.clearConfig=function(){Ee=null,Q=!1},r.isValidAttribute=function(e,t,r){Ee||Ie({});const n=Ae(e),i=Ae(t);return Ve(n,i,r)},r.addHook=function(e,t){"function"==typeof t&&ah(E[e],t)},r.removeHook=function(e,t){if(void 0!==t){const r=ih(E[e],t);return-1===r?void 0:sh(E[e],r,1)[0]}return oh(E[e])},r.removeHooks=function(e){E[e]=[]},r.removeAllHooks=function(){E={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}(),Kh=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Qh=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,ed=/\s*%%.*\n/gm,td=(a=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},vu(a,"UnknownDiagramError"),a),rd={},nd=vu(function(e,t){e=e.replace(Kh,"").replace(Qh,"").replace(ed,"\n");for(const[r,{detector:n}]of Object.entries(rd)){if(n(e,t))return r}throw new td(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),id=vu((...e)=>{for(const{id:t,detector:r,loader:n}of e)od(t,r,n)},"registerLazyLoadedDiagrams"),od=vu((e,t,r)=>{rd[e]&&wu.warn(`Detector with key ${e} already exists. Overwriting.`),rd[e]={detector:t,loader:r},wu.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),ad=vu(e=>rd[e].loader,"getDiagramLoader"),sd=vu((e,t,{depth:r=2,clobber:n=!1}={})=>{const i={depth:r,clobber:n};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(t=>sd(e,t,i)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(t=>{e.includes(t)||e.push(t)}),e):void 0===e||r<=0?null!=e&&"object"==typeof e&&"object"==typeof t?Object.assign(e,t):t:(void 0!==t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).forEach(i=>{"object"!=typeof t[i]||void 0!==e[i]&&"object"!=typeof e[i]?(n||"object"!=typeof e[i]&&"object"!=typeof t[i])&&(e[i]=t[i]):(void 0===e[i]&&(e[i]=Array.isArray(t[i])?[]:{}),e[i]=sd(e[i],t[i],{depth:r-1,clobber:n}))}),e)},"assignWithDepth"),ld=sd,cd="#ffffff",ud="#f2f2f2",hd=vu((e,t)=>Hu(e,t?{s:-40,l:10}:{s:-40,l:-10}),"mkBorder"),dd=(vu(s=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,t,r,n,i,o,a,s,l,c,u,h,d,p,g,f,m,y,b,v,x;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Hu(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Hu(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||hd(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||hd(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||hd(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||hd(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Uu(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Uu(this.tertiaryColor),this.lineColor=this.lineColor||Uu(this.background),this.arrowheadColor=this.arrowheadColor||Uu(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?qu(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||qu(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Uu(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Wu(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||qu(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||qu(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Wu(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Wu(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Hu(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Hu(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Hu(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Hu(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Hu(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Hu(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Hu(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Hu(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Hu(this.primaryColor,{h:330}),this.darkMode)for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScale"+w]=qu(this["cScale"+w],75);else for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScale"+w]=qu(this["cScale"+w],25);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleInv"+w]=this["cScaleInv"+w]||Uu(this["cScale"+w]);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this.darkMode?this["cScalePeer"+w]=this["cScalePeer"+w]||Wu(this["cScale"+w],10):this["cScalePeer"+w]=this["cScalePeer"+w]||qu(this["cScale"+w],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleLabel"+w]=this["cScaleLabel"+w]||this.scaleLabelColor;const C=this.darkMode?-4:-1;for(let w=0;w<5;w++)this["surface"+w]=this["surface"+w]||Hu(this.mainBkg,{h:180,s:-15,l:C*(5+3*w)}),this["surfacePeer"+w]=this["surfacePeer"+w]||Hu(this.mainBkg,{h:180,s:-15,l:C*(8+3*w)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Hu(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Hu(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Hu(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Hu(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Hu(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Hu(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Hu(this.primaryColor,{l:-10}),this.pie5=this.pie5||Hu(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Hu(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Hu(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Hu(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Hu(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Hu(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Hu(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Hu(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:(null==(e=this.radar)?void 0:e.axisColor)||this.lineColor,axisStrokeWidth:(null==(t=this.radar)?void 0:t.axisStrokeWidth)||2,axisLabelFontSize:(null==(r=this.radar)?void 0:r.axisLabelFontSize)||12,curveOpacity:(null==(n=this.radar)?void 0:n.curveOpacity)||.5,curveStrokeWidth:(null==(i=this.radar)?void 0:i.curveStrokeWidth)||2,graticuleColor:(null==(o=this.radar)?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(a=this.radar)?void 0:a.graticuleStrokeWidth)||1,graticuleOpacity:(null==(s=this.radar)?void 0:s.graticuleOpacity)||.3,legendBoxSize:(null==(l=this.radar)?void 0:l.legendBoxSize)||12,legendFontSize:(null==(c=this.radar)?void 0:c.legendFontSize)||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Hu(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Hu(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Hu(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Hu(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Hu(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Hu(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||$u(this.quadrant1Fill)?Wu(this.quadrant1Fill):qu(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(u=this.xyChart)?void 0:u.backgroundColor)||this.background,titleColor:(null==(h=this.xyChart)?void 0:h.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(d=this.xyChart)?void 0:d.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(p=this.xyChart)?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(g=this.xyChart)?void 0:g.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(f=this.xyChart)?void 0:f.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(m=this.xyChart)?void 0:m.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(y=this.xyChart)?void 0:y.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(b=this.xyChart)?void 0:b.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(v=this.xyChart)?void 0:v.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(x=this.xyChart)?void 0:x.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?qu(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Hu(this.primaryColor,{h:-30}),this.git4=this.git4||Hu(this.primaryColor,{h:-60}),this.git5=this.git5||Hu(this.primaryColor,{h:-90}),this.git6=this.git6||Hu(this.primaryColor,{h:60}),this.git7=this.git7||Hu(this.primaryColor,{h:120}),this.darkMode?(this.git0=Wu(this.git0,25),this.git1=Wu(this.git1,25),this.git2=Wu(this.git2,25),this.git3=Wu(this.git3,25),this.git4=Wu(this.git4,25),this.git5=Wu(this.git5,25),this.git6=Wu(this.git6,25),this.git7=Wu(this.git7,25)):(this.git0=qu(this.git0,25),this.git1=qu(this.git1,25),this.git2=qu(this.git2,25),this.git3=qu(this.git3,25),this.git4=qu(this.git4,25),this.git5=qu(this.git5,25),this.git6=qu(this.git6,25),this.git7=qu(this.git7,25)),this.gitInv0=this.gitInv0||Uu(this.git0),this.gitInv1=this.gitInv1||Uu(this.git1),this.gitInv2=this.gitInv2||Uu(this.git2),this.gitInv3=this.gitInv3||Uu(this.git3),this.gitInv4=this.gitInv4||Uu(this.git4),this.gitInv5=this.gitInv5||Uu(this.git5),this.gitInv6=this.gitInv6||Uu(this.git6),this.gitInv7=this.gitInv7||Uu(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||cd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ud}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},"Theme"),s),pd=vu(e=>{const t=new dd;return t.calculate(e),t},"getThemeVariables"),gd=(vu(l=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Wu(this.primaryColor,16),this.tertiaryColor=Hu(this.primaryColor,{h:-160}),this.primaryBorderColor=Uu(this.background),this.secondaryBorderColor=hd(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=hd(this.tertiaryColor,this.darkMode),this.primaryTextColor=Uu(this.primaryColor),this.secondaryTextColor=Uu(this.secondaryColor),this.tertiaryTextColor=Uu(this.tertiaryColor),this.lineColor=Uu(this.background),this.textColor=Uu(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Wu(Uu("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Fu(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=qu("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=qu(this.sectionBkgColor,10),this.taskBorderColor=Fu(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Fu(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Wu(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||qu(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,t,r,n,i,o,a,s,l,c,u,h,d,p,g,f,m,y,b,v,x;this.secondBkg=Wu(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Wu(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Wu(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Hu(this.primaryColor,{h:64}),this.fillType3=Hu(this.secondaryColor,{h:64}),this.fillType4=Hu(this.primaryColor,{h:-64}),this.fillType5=Hu(this.secondaryColor,{h:-64}),this.fillType6=Hu(this.primaryColor,{h:128}),this.fillType7=Hu(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Hu(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Hu(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Hu(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Hu(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Hu(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Hu(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Hu(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Hu(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Hu(this.primaryColor,{h:330});for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||Uu(this["cScale"+C]);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScalePeer"+C]=this["cScalePeer"+C]||Wu(this["cScale"+C],10);for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||Hu(this.mainBkg,{h:30,s:-30,l:-(4*C-10)}),this["surfacePeer"+C]=this["surfacePeer"+C]||Hu(this.mainBkg,{h:30,s:-30,l:-(4*C-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["pie"+C]=this["cScale"+C];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Hu(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Hu(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Hu(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Hu(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Hu(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Hu(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||$u(this.quadrant1Fill)?Wu(this.quadrant1Fill):qu(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(e=this.xyChart)?void 0:e.backgroundColor)||this.background,titleColor:(null==(t=this.xyChart)?void 0:t.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(r=this.xyChart)?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(n=this.xyChart)?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(i=this.xyChart)?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(o=this.xyChart)?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(a=this.xyChart)?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(s=this.xyChart)?void 0:s.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(l=this.xyChart)?void 0:l.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(c=this.xyChart)?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(u=this.xyChart)?void 0:u.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:(null==(h=this.radar)?void 0:h.axisColor)||this.lineColor,axisStrokeWidth:(null==(d=this.radar)?void 0:d.axisStrokeWidth)||2,axisLabelFontSize:(null==(p=this.radar)?void 0:p.axisLabelFontSize)||12,curveOpacity:(null==(g=this.radar)?void 0:g.curveOpacity)||.5,curveStrokeWidth:(null==(f=this.radar)?void 0:f.curveStrokeWidth)||2,graticuleColor:(null==(m=this.radar)?void 0:m.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(y=this.radar)?void 0:y.graticuleStrokeWidth)||1,graticuleOpacity:(null==(b=this.radar)?void 0:b.graticuleOpacity)||.3,legendBoxSize:(null==(v=this.radar)?void 0:v.legendBoxSize)||12,legendFontSize:(null==(x=this.radar)?void 0:x.legendFontSize)||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?qu(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Wu(this.secondaryColor,20),this.git1=Wu(this.pie2||this.secondaryColor,20),this.git2=Wu(this.pie3||this.tertiaryColor,20),this.git3=Wu(this.pie4||Hu(this.primaryColor,{h:-30}),20),this.git4=Wu(this.pie5||Hu(this.primaryColor,{h:-60}),20),this.git5=Wu(this.pie6||Hu(this.primaryColor,{h:-90}),10),this.git6=Wu(this.pie7||Hu(this.primaryColor,{h:60}),10),this.git7=Wu(this.pie8||Hu(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Uu(this.git0),this.gitInv1=this.gitInv1||Uu(this.git1),this.gitInv2=this.gitInv2||Uu(this.git2),this.gitInv3=this.gitInv3||Uu(this.git3),this.gitInv4=this.gitInv4||Uu(this.git4),this.gitInv5=this.gitInv5||Uu(this.git5),this.gitInv6=this.gitInv6||Uu(this.git6),this.gitInv7=this.gitInv7||Uu(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Uu(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Uu(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Wu(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Wu(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},"Theme"),l),fd=vu(e=>{const t=new gd;return t.calculate(e),t},"getThemeVariables"),md=(vu(c=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Hu(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Hu(this.primaryColor,{h:-160}),this.primaryBorderColor=hd(this.primaryColor,this.darkMode),this.secondaryBorderColor=hd(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=hd(this.tertiaryColor,this.darkMode),this.primaryTextColor=Uu(this.primaryColor),this.secondaryTextColor=Uu(this.secondaryColor),this.tertiaryTextColor=Uu(this.tertiaryColor),this.lineColor=Uu(this.background),this.textColor=Uu(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Fu(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,t,r,n,i,o,a,s,l,c,u,h,d,p,g,f,m,y,b,v,x;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Hu(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Hu(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Hu(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Hu(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Hu(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Hu(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Hu(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Hu(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Hu(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||qu(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||qu(this.tertiaryColor,40);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScale"+C]=qu(this["cScale"+C],10),this["cScalePeer"+C]=this["cScalePeer"+C]||qu(this["cScale"+C],25);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||Hu(this["cScale"+C],{h:180});for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||Hu(this.mainBkg,{h:30,l:-(5+5*C)}),this["surfacePeer"+C]=this["surfacePeer"+C]||Hu(this.mainBkg,{h:30,l:-(7+5*C)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||Uu(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||Uu(this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=Wu(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Wu(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||Wu(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Hu(this.primaryColor,{h:64}),this.fillType3=Hu(this.secondaryColor,{h:64}),this.fillType4=Hu(this.primaryColor,{h:-64}),this.fillType5=Hu(this.secondaryColor,{h:-64}),this.fillType6=Hu(this.primaryColor,{h:128}),this.fillType7=Hu(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||Hu(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||Hu(this.primaryColor,{l:-10}),this.pie5=this.pie5||Hu(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Hu(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||Hu(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||Hu(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||Hu(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||Hu(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||Hu(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||Hu(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Hu(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Hu(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Hu(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Hu(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Hu(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Hu(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||$u(this.quadrant1Fill)?Wu(this.quadrant1Fill):qu(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:(null==(e=this.radar)?void 0:e.axisColor)||this.lineColor,axisStrokeWidth:(null==(t=this.radar)?void 0:t.axisStrokeWidth)||2,axisLabelFontSize:(null==(r=this.radar)?void 0:r.axisLabelFontSize)||12,curveOpacity:(null==(n=this.radar)?void 0:n.curveOpacity)||.5,curveStrokeWidth:(null==(i=this.radar)?void 0:i.curveStrokeWidth)||2,graticuleColor:(null==(o=this.radar)?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(a=this.radar)?void 0:a.graticuleStrokeWidth)||1,graticuleOpacity:(null==(s=this.radar)?void 0:s.graticuleOpacity)||.3,legendBoxSize:(null==(l=this.radar)?void 0:l.legendBoxSize)||12,legendFontSize:(null==(c=this.radar)?void 0:c.legendFontSize)||12},this.xyChart={backgroundColor:(null==(u=this.xyChart)?void 0:u.backgroundColor)||this.background,titleColor:(null==(h=this.xyChart)?void 0:h.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(d=this.xyChart)?void 0:d.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(p=this.xyChart)?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(g=this.xyChart)?void 0:g.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(f=this.xyChart)?void 0:f.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(m=this.xyChart)?void 0:m.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(y=this.xyChart)?void 0:y.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(b=this.xyChart)?void 0:b.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(v=this.xyChart)?void 0:v.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(x=this.xyChart)?void 0:x.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Hu(this.primaryColor,{h:-30}),this.git4=this.git4||Hu(this.primaryColor,{h:-60}),this.git5=this.git5||Hu(this.primaryColor,{h:-90}),this.git6=this.git6||Hu(this.primaryColor,{h:60}),this.git7=this.git7||Hu(this.primaryColor,{h:120}),this.darkMode?(this.git0=Wu(this.git0,25),this.git1=Wu(this.git1,25),this.git2=Wu(this.git2,25),this.git3=Wu(this.git3,25),this.git4=Wu(this.git4,25),this.git5=Wu(this.git5,25),this.git6=Wu(this.git6,25),this.git7=Wu(this.git7,25)):(this.git0=qu(this.git0,25),this.git1=qu(this.git1,25),this.git2=qu(this.git2,25),this.git3=qu(this.git3,25),this.git4=qu(this.git4,25),this.git5=qu(this.git5,25),this.git6=qu(this.git6,25),this.git7=qu(this.git7,25)),this.gitInv0=this.gitInv0||qu(Uu(this.git0),25),this.gitInv1=this.gitInv1||Uu(this.git1),this.gitInv2=this.gitInv2||Uu(this.git2),this.gitInv3=this.gitInv3||Uu(this.git3),this.gitInv4=this.gitInv4||Uu(this.git4),this.gitInv5=this.gitInv5||Uu(this.git5),this.gitInv6=this.gitInv6||Uu(this.git6),this.gitInv7=this.gitInv7||Uu(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Uu(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Uu(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||cd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ud}calculate(e){if(Object.keys(this).forEach(e=>{"calculated"===this[e]&&(this[e]=void 0)}),"object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},"Theme"),c),yd=vu(e=>{const t=new md;return t.calculate(e),t},"getThemeVariables"),bd=(vu(u=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Wu("#cde498",10),this.primaryBorderColor=hd(this.primaryColor,this.darkMode),this.secondaryBorderColor=hd(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=hd(this.tertiaryColor,this.darkMode),this.primaryTextColor=Uu(this.primaryColor),this.secondaryTextColor=Uu(this.secondaryColor),this.tertiaryTextColor=Uu(this.primaryColor),this.lineColor=Uu(this.background),this.textColor=Uu(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,t,r,n,i,o,a,s,l,c,u,h,d,p,g,f,m,y,b,v,x;this.actorBorder=qu(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Hu(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Hu(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Hu(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Hu(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Hu(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Hu(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Hu(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Hu(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Hu(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||qu(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||qu(this.tertiaryColor,40);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScale"+C]=qu(this["cScale"+C],10),this["cScalePeer"+C]=this["cScalePeer"+C]||qu(this["cScale"+C],25);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||Hu(this["cScale"+C],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||Hu(this.mainBkg,{h:30,s:-30,l:-(5+5*C)}),this["surfacePeer"+C]=this["surfacePeer"+C]||Hu(this.mainBkg,{h:30,s:-30,l:-(8+5*C)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Wu(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Wu(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Hu(this.primaryColor,{h:64}),this.fillType3=Hu(this.secondaryColor,{h:64}),this.fillType4=Hu(this.primaryColor,{h:-64}),this.fillType5=Hu(this.secondaryColor,{h:-64}),this.fillType6=Hu(this.primaryColor,{h:128}),this.fillType7=Hu(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Hu(this.primaryColor,{l:-30}),this.pie5=this.pie5||Hu(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Hu(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||Hu(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Hu(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Hu(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Hu(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||Hu(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||Hu(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Hu(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Hu(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Hu(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Hu(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Hu(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Hu(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||$u(this.quadrant1Fill)?Wu(this.quadrant1Fill):qu(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:(null==(e=this.radar)?void 0:e.axisColor)||this.lineColor,axisStrokeWidth:(null==(t=this.radar)?void 0:t.axisStrokeWidth)||2,axisLabelFontSize:(null==(r=this.radar)?void 0:r.axisLabelFontSize)||12,curveOpacity:(null==(n=this.radar)?void 0:n.curveOpacity)||.5,curveStrokeWidth:(null==(i=this.radar)?void 0:i.curveStrokeWidth)||2,graticuleColor:(null==(o=this.radar)?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(a=this.radar)?void 0:a.graticuleStrokeWidth)||1,graticuleOpacity:(null==(s=this.radar)?void 0:s.graticuleOpacity)||.3,legendBoxSize:(null==(l=this.radar)?void 0:l.legendBoxSize)||12,legendFontSize:(null==(c=this.radar)?void 0:c.legendFontSize)||12},this.xyChart={backgroundColor:(null==(u=this.xyChart)?void 0:u.backgroundColor)||this.background,titleColor:(null==(h=this.xyChart)?void 0:h.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(d=this.xyChart)?void 0:d.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(p=this.xyChart)?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(g=this.xyChart)?void 0:g.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(f=this.xyChart)?void 0:f.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(m=this.xyChart)?void 0:m.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(y=this.xyChart)?void 0:y.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(b=this.xyChart)?void 0:b.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(v=this.xyChart)?void 0:v.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(x=this.xyChart)?void 0:x.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Hu(this.primaryColor,{h:-30}),this.git4=this.git4||Hu(this.primaryColor,{h:-60}),this.git5=this.git5||Hu(this.primaryColor,{h:-90}),this.git6=this.git6||Hu(this.primaryColor,{h:60}),this.git7=this.git7||Hu(this.primaryColor,{h:120}),this.darkMode?(this.git0=Wu(this.git0,25),this.git1=Wu(this.git1,25),this.git2=Wu(this.git2,25),this.git3=Wu(this.git3,25),this.git4=Wu(this.git4,25),this.git5=Wu(this.git5,25),this.git6=Wu(this.git6,25),this.git7=Wu(this.git7,25)):(this.git0=qu(this.git0,25),this.git1=qu(this.git1,25),this.git2=qu(this.git2,25),this.git3=qu(this.git3,25),this.git4=qu(this.git4,25),this.git5=qu(this.git5,25),this.git6=qu(this.git6,25),this.git7=qu(this.git7,25)),this.gitInv0=this.gitInv0||Uu(this.git0),this.gitInv1=this.gitInv1||Uu(this.git1),this.gitInv2=this.gitInv2||Uu(this.git2),this.gitInv3=this.gitInv3||Uu(this.git3),this.gitInv4=this.gitInv4||Uu(this.git4),this.gitInv5=this.gitInv5||Uu(this.git5),this.gitInv6=this.gitInv6||Uu(this.git6),this.gitInv7=this.gitInv7||Uu(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Uu(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Uu(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||cd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ud}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},"Theme"),u),vd=vu(e=>{const t=new bd;return t.calculate(e),t},"getThemeVariables"),xd=(vu(h=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Wu(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Hu(this.primaryColor,{h:-160}),this.primaryBorderColor=hd(this.primaryColor,this.darkMode),this.secondaryBorderColor=hd(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=hd(this.tertiaryColor,this.darkMode),this.primaryTextColor=Uu(this.primaryColor),this.secondaryTextColor=Uu(this.secondaryColor),this.tertiaryTextColor=Uu(this.tertiaryColor),this.lineColor=Uu(this.background),this.textColor=Uu(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Wu(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,t,r,n,i,o,a,s,l,c,u,h,d,p,g,f,m,y,b,v,x;this.secondBkg=Wu(this.contrast,55),this.border2=this.contrast,this.actorBorder=Wu(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||Uu(this["cScale"+C]);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this.darkMode?this["cScalePeer"+C]=this["cScalePeer"+C]||Wu(this["cScale"+C],10):this["cScalePeer"+C]=this["cScalePeer"+C]||qu(this["cScale"+C],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||Hu(this.mainBkg,{l:-(5+5*C)}),this["surfacePeer"+C]=this["surfacePeer"+C]||Hu(this.mainBkg,{l:-(8+5*C)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=Wu(this.contrast,30),this.sectionBkgColor2=Wu(this.contrast,30),this.taskBorderColor=qu(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=Wu(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=qu(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Hu(this.primaryColor,{h:64}),this.fillType3=Hu(this.secondaryColor,{h:64}),this.fillType4=Hu(this.primaryColor,{h:-64}),this.fillType5=Hu(this.secondaryColor,{h:-64}),this.fillType6=Hu(this.primaryColor,{h:128}),this.fillType7=Hu(this.secondaryColor,{h:128});for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["pie"+C]=this["cScale"+C];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Hu(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Hu(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Hu(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Hu(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Hu(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Hu(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||$u(this.quadrant1Fill)?Wu(this.quadrant1Fill):qu(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(e=this.xyChart)?void 0:e.backgroundColor)||this.background,titleColor:(null==(t=this.xyChart)?void 0:t.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(r=this.xyChart)?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(n=this.xyChart)?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(i=this.xyChart)?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(o=this.xyChart)?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(a=this.xyChart)?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(s=this.xyChart)?void 0:s.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(l=this.xyChart)?void 0:l.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(c=this.xyChart)?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(u=this.xyChart)?void 0:u.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:(null==(h=this.radar)?void 0:h.axisColor)||this.lineColor,axisStrokeWidth:(null==(d=this.radar)?void 0:d.axisStrokeWidth)||2,axisLabelFontSize:(null==(p=this.radar)?void 0:p.axisLabelFontSize)||12,curveOpacity:(null==(g=this.radar)?void 0:g.curveOpacity)||.5,curveStrokeWidth:(null==(f=this.radar)?void 0:f.curveStrokeWidth)||2,graticuleColor:(null==(m=this.radar)?void 0:m.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(y=this.radar)?void 0:y.graticuleStrokeWidth)||1,graticuleOpacity:(null==(b=this.radar)?void 0:b.graticuleOpacity)||.3,legendBoxSize:(null==(v=this.radar)?void 0:v.legendBoxSize)||12,legendFontSize:(null==(x=this.radar)?void 0:x.legendFontSize)||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=qu(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||Hu(this.primaryColor,{h:-30}),this.git4=this.pie5||Hu(this.primaryColor,{h:-60}),this.git5=this.pie6||Hu(this.primaryColor,{h:-90}),this.git6=this.pie7||Hu(this.primaryColor,{h:60}),this.git7=this.pie8||Hu(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Uu(this.git0),this.gitInv1=this.gitInv1||Uu(this.git1),this.gitInv2=this.gitInv2||Uu(this.git2),this.gitInv3=this.gitInv3||Uu(this.git3),this.gitInv4=this.gitInv4||Uu(this.git4),this.gitInv5=this.gitInv5||Uu(this.git5),this.gitInv6=this.gitInv6||Uu(this.git6),this.gitInv7=this.gitInv7||Uu(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||cd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ud}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},"Theme"),h),Cd={base:{getThemeVariables:pd},dark:{getThemeVariables:fd},default:{getThemeVariables:yd},forest:{getThemeVariables:vd},neutral:{getThemeVariables:vu(e=>{const t=new xd;return t.calculate(e),t},"getThemeVariables")}},wd={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},kd={...wd,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Cd.default.getThemeVariables(),sequence:{...wd.sequence,messageFont:vu(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:vu(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:vu(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...wd.gantt,tickInterval:void 0,useWidth:void 0},c4:{...wd.c4,useWidth:void 0,personFont:vu(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...wd.flowchart,inheritDir:!1},external_personFont:vu(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:vu(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:vu(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:vu(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:vu(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:vu(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:vu(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:vu(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:vu(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:vu(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:vu(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:vu(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:vu(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:vu(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:vu(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:vu(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:vu(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:vu(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:vu(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:vu(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:vu(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...wd.pie,useWidth:984},xyChart:{...wd.xyChart,useWidth:void 0},requirement:{...wd.requirement,useWidth:void 0},packet:{...wd.packet},radar:{...wd.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},Sd=vu((e,t="")=>Object.keys(e).reduce((r,n)=>Array.isArray(e[n])?r:"object"==typeof e[n]&&null!==e[n]?[...r,t+n,...Sd(e[n],"")]:[...r,t+n],[]),"keyify"),_d=new Set(Sd(kd,"")),Td=kd,Ad=vu(e=>{if(wu.debug("sanitizeDirective called with",e),"object"==typeof e&&null!=e)if(Array.isArray(e))e.forEach(e=>Ad(e));else{for(const t of Object.keys(e)){if(wu.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!_d.has(t)||null==e[t]){wu.debug("sanitize deleting key: ",t),delete e[t];continue}if("object"==typeof e[t]){wu.debug("sanitizing object",t),Ad(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)t.includes(n)&&(wu.debug("sanitizing css option",t),e[t]=Ed(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];(null==r?void 0:r.match)&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}wu.debug("After sanitization",e)}},"sanitizeDirective"),Ed=vu(e=>{let t=0,r=0;for(const n of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";"{"===n?t++:"}"===n&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),Pd=Object.freeze(Td),Md=ld({},Pd),Id=[],Bd=ld({},Pd),Ld=vu((e,t)=>{let r=ld({},e),n={};for(const i of t)Rd(i),n=ld(n,i);if(r=ld(r,n),n.theme&&n.theme in Cd){const e=ld({},Yh),t=ld(e.themeVariables||{},n.themeVariables);r.theme&&r.theme in Cd&&(r.themeVariables=Cd[r.theme].getThemeVariables(t))}return Ud(Bd=r),Bd},"updateCurrentConfig"),jd=vu(e=>(Md=ld({},Pd),Md=ld(Md,e),e.theme&&Cd[e.theme]&&(Md.themeVariables=Cd[e.theme].getThemeVariables(e.themeVariables)),Ld(Md,Id),Md),"setSiteConfig"),Nd=vu(e=>{Yh=ld({},e)},"saveConfigFromInitialize"),Dd=vu(e=>(Md=ld(Md,e),Ld(Md,Id),Md),"updateSiteConfig"),Od=vu(()=>ld({},Md),"getSiteConfig"),zd=vu(e=>(Ud(e),ld(Bd,e),Fd()),"setConfig"),Fd=vu(()=>ld({},Bd),"getConfig"),Rd=vu(e=>{e&&(["secure",...Md.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(wu.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{"string"==typeof e[t]&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],"object"==typeof e[t]&&Rd(e[t])}))},"sanitize"),$d=vu(e=>{var t;Ad(e),e.fontFamily&&!(null==(t=e.themeVariables)?void 0:t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Id.push(e),Ld(Md,Id)},"addDirective"),Vd=vu((e=Md)=>{Ld(e,Id=[])},"reset"),Wd={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},qd={},Hd=vu(e=>{qd[e]||(wu.warn(Wd[e]),qd[e]=!0)},"issueWarning"),Ud=vu(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Hd("LAZY_LOAD_DEPRECATED")},"checkConfig"),Gd=vu(()=>{let e={};Yh&&(e=ld(e,Yh));for(const t of Id)e=ld(e,t);return e},"getUserDefinedConfig"),Xd=/<br\s*\/?>/gi,Jd=vu(e=>{if(!e)return[""];return op(e).replace(/\\n/g,"#br#").split("#br#")},"getRows"),Yd=(()=>{let e=!1;return()=>{e||(Zd(),e=!0)}})();function Zd(){const e="data-temp-href-target";Zh.addHook("beforeSanitizeAttributes",t=>{"A"===t.tagName&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Zh.addHook("afterSanitizeAttributes",t=>{"A"===t.tagName&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),"_blank"===t.getAttribute("target")&&t.setAttribute("rel","noopener"))})}vu(Zd,"setupDompurifyHooks");var Kd=vu(e=>{Yd();return Zh.sanitize(e)},"removeScript"),Qd=vu((e,t)=>{var r;if(!1!==(null==(r=t.flowchart)?void 0:r.htmlLabels)){const r=t.securityLevel;"antiscript"===r||"strict"===r?e=Kd(e):"loose"!==r&&(e=(e=(e=op(e)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),e=ip(e))}return e},"sanitizeMore"),ep=vu((e,t)=>e?e=t.dompurifyConfig?Zh.sanitize(Qd(e,t),t.dompurifyConfig).toString():Zh.sanitize(Qd(e,t),{FORBID_TAGS:["style"]}).toString():e,"sanitizeText"),tp=vu((e,t)=>"string"==typeof e?ep(e,t):e.flat().map(e=>ep(e,t)),"sanitizeTextOrArray"),rp=vu(e=>Xd.test(e),"hasBreaks"),np=vu(e=>e.split(Xd),"splitBreaks"),ip=vu(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),op=vu(e=>e.replace(Xd,"#br#"),"breakToPlaceholder"),ap=vu(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),sp=vu(e=>!1!==e&&!["false","null","0"].includes(String(e).trim().toLowerCase()),"evaluate"),lp=vu(function(...e){const t=e.filter(e=>!isNaN(e));return Math.max(...t)},"getMax"),cp=vu(function(...e){const t=e.filter(e=>!isNaN(e));return Math.min(...t)},"getMin"),up=vu(function(e){const t=e.split(/(,)/),r=[];for(let n=0;n<t.length;n++){let e=t[n];if(","===e&&n>0&&n+1<t.length){const i=t[n-1],o=t[n+1];dp(i,o)&&(e=i+","+o,n++,r.pop())}r.push(pp(e))}return r.join("")},"parseGenericTypes"),hp=vu((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),dp=vu((e,t)=>{const r=hp(e,"~"),n=hp(t,"~");return 1===r&&1===n},"shouldCombineSets"),pp=vu(e=>{const t=hp(e,"~");let r=!1;if(t<=1)return e;t%2!=0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const n=[...e];let i=n.indexOf("~"),o=n.lastIndexOf("~");for(;-1!==i&&-1!==o&&i!==o;)n[i]="<",n[o]=">",i=n.indexOf("~"),o=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),gp=vu(()=>void 0!==window.MathMLElement,"isMathMLSupported"),fp=/\$\$(.*)\$\$/g,mp=vu(e=>{var t;return((null==(t=e.match(fp))?void 0:t.length)??0)>0},"hasKatex"),yp=vu(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await vp(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const n=document.querySelector("body");null==n||n.insertAdjacentElement("beforeend",r);const i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),bp=vu(async(e,t)=>{if(!mp(e))return e;if(!(gp()||t.legacyMathML||t.forceLegacyMathML))return e.replace(fp,"MathML is unsupported in this environment.");{const{default:r}=await Promise.resolve().then(()=>require("./katex-DPu4QpBP.cjs")),n=t.forceLegacyMathML||!gp()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Xd).map(e=>mp(e)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>`:`<div>${e}</div>`).join("").replace(fp,(e,t)=>r.renderToString(t,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),vp=vu(async(e,t)=>ep(await bp(e,t),t),"renderKatexSanitized"),xp={getRows:Jd,sanitizeText:ep,sanitizeTextOrArray:tp,hasBreaks:rp,splitBreaks:np,lineBreakRegex:Xd,removeScript:Kd,getUrl:ap,evaluate:sp,getMax:lp,getMin:cp},Cp=vu(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),wp=vu(function(e,t,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${t}px;`)):(n.set("height",e),n.set("width",t)),n},"calculateSvgSizeAttrs"),kp=vu(function(e,t,r,n){const i=wp(t,r,n);Cp(e,i)},"configureSvgSize"),Sp=vu(function(e,t,r,n){const i=t.node().getBBox(),o=i.width,a=i.height;wu.info(`SVG bounds: ${o}x${a}`,i);let s=0,l=0;wu.info(`Graph bounds: ${s}x${l}`,e),s=o+2*r,l=a+2*r,wu.info(`Calculated bounds: ${s}x${l}`),kp(t,l,s,n);const c=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;t.attr("viewBox",c)},"setupGraphViewbox"),_p={},Tp=vu((e,t,r)=>{let n="";return e in _p&&_p[e]?n=_p[e](r):wu.warn(`No theme found for ${e}`),` & {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n fill: ${r.textColor}\n }\n @keyframes edge-animation-frame {\n from {\n stroke-dashoffset: 0;\n }\n }\n @keyframes dash {\n to {\n stroke-dashoffset: 0;\n }\n }\n & .edge-animation-slow {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 50s linear infinite;\n stroke-linecap: round;\n }\n & .edge-animation-fast {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 20s linear infinite;\n stroke-linecap: round;\n }\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${r.errorBkgColor};\n }\n & .error-text {\n fill: ${r.errorTextColor};\n stroke: ${r.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 1px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n & .edge-thickness-invisible {\n stroke-width: 0;\n fill: none;\n }\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${r.lineColor};\n stroke: ${r.lineColor};\n }\n & .marker.cross {\n stroke: ${r.lineColor};\n }\n\n & svg {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n }\n & p {\n margin: 0\n }\n\n ${n}\n\n ${t}\n`},"getStyles"),Ap=vu((e,t)=>{void 0!==t&&(_p[e]=t)},"addStylesForDiagram"),Ep=Tp,Pp={};xu(Pp,{clear:()=>jp,getAccDescription:()=>zp,getAccTitle:()=>Dp,getDiagramTitle:()=>Rp,setAccDescription:()=>Op,setAccTitle:()=>Np,setDiagramTitle:()=>Fp});var Mp="",Ip="",Bp="",Lp=vu(e=>ep(e,Fd()),"sanitizeText"),jp=vu(()=>{Mp="",Bp="",Ip=""},"clear"),Np=vu(e=>{Mp=Lp(e).replace(/^\s+/g,"")},"setAccTitle"),Dp=vu(()=>Mp,"getAccTitle"),Op=vu(e=>{Bp=Lp(e).replace(/\n\s+/g,"\n")},"setAccDescription"),zp=vu(()=>Bp,"getAccDescription"),Fp=vu(e=>{Ip=Lp(e)},"setDiagramTitle"),Rp=vu(()=>Ip,"getDiagramTitle"),$p=wu,Vp=ku,Wp=Fd,qp=zd,Hp=Pd,Up=vu(e=>ep(e,Wp()),"sanitizeText"),Gp=Sp,Xp=vu(()=>Pp,"getCommonDb"),Jp={},Yp=vu((e,t,r)=>{var n;Jp[e]&&$p.warn(`Diagram with id ${e} already registered. Overwriting.`),Jp[e]=t,r&&od(e,r),Ap(e,t.styles),null==(n=t.injectUtils)||n.call(t,$p,Vp,Wp,Up,Gp,Xp(),()=>{})},"registerDiagram"),Zp=vu(e=>{if(e in Jp)return Jp[e];throw new Kp(e)},"getDiagram"),Kp=(d=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},vu(d,"DiagramNotFoundError"),d),Qp={value:()=>{}};function eg(){for(var e,t=0,r=arguments.length,n={};t<r;++t){if(!(e=arguments[t]+"")||e in n||/[\s.]/.test(e))throw new Error("illegal type: "+e);n[e]=[]}return new tg(n)}function tg(e){this._=e}function rg(e,t){for(var r,n=0,i=e.length;n<i;++n)if((r=e[n]).name===t)return r.value}function ng(e,t,r){for(var n=0,i=e.length;n<i;++n)if(e[n].name===t){e[n]=Qp,e=e.slice(0,n).concat(e.slice(n+1));break}return null!=r&&e.push({name:t,value:r}),e}tg.prototype=eg.prototype={constructor:tg,on:function(e,t){var r,n,i=this._,o=(n=i,(e+"").trim().split(/^|\s+/).map(function(e){var t="",r=e.indexOf(".");if(r>=0&&(t=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})),a=-1,s=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++a<s;)if(r=(e=o[a]).type)i[r]=ng(i[r],e.name,t);else if(null==t)for(r in i)i[r]=ng(i[r],e.name,null);return this}for(;++a<s;)if((r=(e=o[a]).type)&&(r=rg(i[r],e.name)))return r},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new tg(e)},call:function(e,t){if((r=arguments.length-2)>0)for(var r,n,i=new Array(r),o=0;o<r;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,r=(n=this._[e]).length;o<r;++o)n[o].value.apply(t,i)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],i=0,o=n.length;i<o;++i)n[i].value.apply(t,r)}};var ig="http://www.w3.org/1999/xhtml";const og={svg:"http://www.w3.org/2000/svg",xhtml:ig,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ag(e){var t=e+="",r=t.indexOf(":");return r>=0&&"xmlns"!==(t=e.slice(0,r))&&(e=e.slice(r+1)),og.hasOwnProperty(t)?{space:og[t],local:e}:e}function sg(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===ig&&t.documentElement.namespaceURI===ig?t.createElement(e):t.createElementNS(r,e)}}function lg(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function cg(e){var t=ag(e);return(t.local?lg:sg)(t)}function ug(){}function hg(e){return null==e?ug:function(){return this.querySelector(e)}}function dg(){return[]}function pg(e){return null==e?dg:function(){return this.querySelectorAll(e)}}function gg(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t);var t}}function fg(e){return function(){return this.matches(e)}}function mg(e){return function(t){return t.matches(e)}}var yg=Array.prototype.find;function bg(){return this.firstElementChild}var vg=Array.prototype.filter;function xg(){return Array.from(this.children)}function Cg(e){return new Array(e.length)}function wg(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function kg(e,t,r,n,i,o){for(var a,s=0,l=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],n[s]=a):r[s]=new wg(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function Sg(e,t,r,n,i,o,a){var s,l,c,u=new Map,h=t.length,d=o.length,p=new Array(h);for(s=0;s<h;++s)(l=t[s])&&(p[s]=c=a.call(l,l.__data__,s,t)+"",u.has(c)?i[s]=l:u.set(c,l));for(s=0;s<d;++s)c=a.call(e,o[s],s,o)+"",(l=u.get(c))?(n[s]=l,l.__data__=o[s],u.delete(c)):r[s]=new wg(e,o[s]);for(s=0;s<h;++s)(l=t[s])&&u.get(p[s])===l&&(i[s]=l)}function _g(e){return e.__data__}function Tg(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Ag(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Eg(e){return function(){this.removeAttribute(e)}}function Pg(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Mg(e,t){return function(){this.setAttribute(e,t)}}function Ig(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Bg(e,t){return function(){var r=t.apply(this,arguments);null==r?this.removeAttribute(e):this.setAttribute(e,r)}}function Lg(e,t){return function(){var r=t.apply(this,arguments);null==r?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function jg(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Ng(e){return function(){this.style.removeProperty(e)}}function Dg(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Og(e,t,r){return function(){var n=t.apply(this,arguments);null==n?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function zg(e,t){return e.style.getPropertyValue(t)||jg(e).getComputedStyle(e,null).getPropertyValue(t)}function Fg(e){return function(){delete this[e]}}function Rg(e,t){return function(){this[e]=t}}function $g(e,t){return function(){var r=t.apply(this,arguments);null==r?delete this[e]:this[e]=r}}function Vg(e){return e.trim().split(/^|\s+/)}function Wg(e){return e.classList||new qg(e)}function qg(e){this._node=e,this._names=Vg(e.getAttribute("class")||"")}function Hg(e,t){for(var r=Wg(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function Ug(e,t){for(var r=Wg(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function Gg(e){return function(){Hg(this,e)}}function Xg(e){return function(){Ug(this,e)}}function Jg(e,t){return function(){(t.apply(this,arguments)?Hg:Ug)(this,e)}}function Yg(){this.textContent=""}function Zg(e){return function(){this.textContent=e}}function Kg(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Qg(){this.innerHTML=""}function ef(e){return function(){this.innerHTML=e}}function tf(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function rf(){this.nextSibling&&this.parentNode.appendChild(this)}function nf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function of(){return null}function af(){var e=this.parentNode;e&&e.removeChild(this)}function sf(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function lf(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function cf(e){return function(){var t=this.__on;if(t){for(var r,n=0,i=-1,o=t.length;n<o;++n)r=t[n],e.type&&r.type!==e.type||r.name!==e.name?t[++i]=r:this.removeEventListener(r.type,r.listener,r.options);++i?t.length=i:delete this.__on}}}function uf(e,t,r){return function(){var n,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var a=0,s=i.length;a<s;++a)if((n=i[a]).type===e.type&&n.name===e.name)return this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=o,n.options=r),void(n.value=t);this.addEventListener(e.type,o,r),n={type:e.type,name:e.name,value:t,listener:o,options:r},i?i.push(n):this.__on=[n]}}function hf(e,t,r){var n=jg(e),i=n.CustomEvent;"function"==typeof i?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function df(e,t){return function(){return hf(this,e,t)}}function pf(e,t){return function(){return hf(this,e,t.apply(this,arguments))}}wg.prototype={constructor:wg,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},qg.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var gf=[null];function ff(e,t){this._groups=e,this._parents=t}function mf(){return new ff([[document.documentElement]],gf)}function yf(e){return"string"==typeof e?new ff([[document.querySelector(e)]],[document.documentElement]):new ff([[e]],gf)}function bf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function vf(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function xf(){}ff.prototype=mf.prototype={constructor:ff,select:function(e){"function"!=typeof e&&(e=hg(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var o,a,s=t[i],l=s.length,c=n[i]=new Array(l),u=0;u<l;++u)(o=s[u])&&(a=e.call(o,o.__data__,u,s))&&("__data__"in o&&(a.__data__=o.__data__),c[u]=a);return new ff(n,this._parents)},selectAll:function(e){e="function"==typeof e?gg(e):pg(e);for(var t=this._groups,r=t.length,n=[],i=[],o=0;o<r;++o)for(var a,s=t[o],l=s.length,c=0;c<l;++c)(a=s[c])&&(n.push(e.call(a,a.__data__,c,s)),i.push(a));return new ff(n,i)},selectChild:function(e){return this.select(null==e?bg:function(e){return function(){return yg.call(this.children,e)}}("function"==typeof e?e:mg(e)))},selectChildren:function(e){return this.selectAll(null==e?xg:function(e){return function(){return vg.call(this.children,e)}}("function"==typeof e?e:mg(e)))},filter:function(e){"function"!=typeof e&&(e=fg(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var o,a=t[i],s=a.length,l=n[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new ff(n,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,_g);var r,n=t?Sg:kg,i=this._parents,o=this._groups;"function"!=typeof e&&(r=e,e=function(){return r});for(var a=o.length,s=new Array(a),l=new Array(a),c=new Array(a),u=0;u<a;++u){var h=i[u],d=o[u],p=d.length,g=Tg(e.call(h,h&&h.__data__,u,i)),f=g.length,m=l[u]=new Array(f),y=s[u]=new Array(f);n(h,d,m,y,c[u]=new Array(p),g,t);for(var b,v,x=0,C=0;x<f;++x)if(b=m[x]){for(x>=C&&(C=x+1);!(v=y[C])&&++C<f;);b._next=v||null}}return(s=new ff(s,i))._enter=l,s._exit=c,s},enter:function(){return new ff(this._enter||this._groups.map(Cg),this._parents)},exit:function(){return new ff(this._exit||this._groups.map(Cg),this._parents)},join:function(e,t,r){var n=this.enter(),i=this,o=this.exit();return"function"==typeof e?(n=e(n))&&(n=n.selection()):n=n.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==r?o.remove():r(o),n&&i?n.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,o=n.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var c,u=r[l],h=n[l],d=u.length,p=s[l]=new Array(d),g=0;g<d;++g)(c=u[g]||h[g])&&(p[g]=c);for(;l<i;++l)s[l]=r[l];return new ff(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n,i=e[t],o=i.length-1,a=i[o];--o>=0;)(n=i[o])&&(a&&4^n.compareDocumentPosition(a)&&a.parentNode.insertBefore(n,a),a=n);return this},sort:function(e){function t(t,r){return t&&r?e(t.__data__,r.__data__):!t-!r}e||(e=Ag);for(var r=this._groups,n=r.length,i=new Array(n),o=0;o<n;++o){for(var a,s=r[o],l=s.length,c=i[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(t)}return new ff(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,o=n.length;i<o;++i){var a=n[i];if(a)return a}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var i,o=t[r],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var r=ag(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((null==t?r.local?Pg:Eg:"function"==typeof t?r.local?Lg:Bg:r.local?Ig:Mg)(r,t))},style:function(e,t,r){return arguments.length>1?this.each((null==t?Ng:"function"==typeof t?Og:Dg)(e,t,null==r?"":r)):zg(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Fg:"function"==typeof t?$g:Rg)(e,t)):this.node()[e]},classed:function(e,t){var r=Vg(e+"");if(arguments.length<2){for(var n=Wg(this.node()),i=-1,o=r.length;++i<o;)if(!n.contains(r[i]))return!1;return!0}return this.each(("function"==typeof t?Jg:t?Gg:Xg)(r,t))},text:function(e){return arguments.length?this.each(null==e?Yg:("function"==typeof e?Kg:Zg)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Qg:("function"==typeof e?tf:ef)(e)):this.node().innerHTML},raise:function(){return this.each(rf)},lower:function(){return this.each(nf)},append:function(e){var t="function"==typeof e?e:cg(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var r="function"==typeof e?e:cg(e),n=null==t?of:"function"==typeof t?t:hg(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})},remove:function(){return this.each(af)},clone:function(e){return this.select(e?lf:sf)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,r){var n,i,o=function(e){return e.trim().split(/^|\s+/).map(function(e){var t="",r=e.indexOf(".");return r>=0&&(t=e.slice(r+1),e=e.slice(0,r)),{type:e,name:t}})}(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?uf:cf,n=0;n<a;++n)this.each(s(o[n],t,r));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(n=0,l=s[c];n<a;++n)if((i=o[n]).type===l.type&&i.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?pf:df)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n,i=e[t],o=0,a=i.length;o<a;++o)(n=i[o])&&(yield n)}};var Cf=.7,wf=1/Cf,kf="\\s*([+-]?\\d+)\\s*",Sf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_f="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tf=/^#([0-9a-f]{3,8})$/,Af=new RegExp(`^rgb\\(${kf},${kf},${kf}\\)$`),Ef=new RegExp(`^rgb\\(${_f},${_f},${_f}\\)$`),Pf=new RegExp(`^rgba\\(${kf},${kf},${kf},${Sf}\\)$`),Mf=new RegExp(`^rgba\\(${_f},${_f},${_f},${Sf}\\)$`),If=new RegExp(`^hsl\\(${Sf},${_f},${_f}\\)$`),Bf=new RegExp(`^hsla\\(${Sf},${_f},${_f},${Sf}\\)$`),Lf={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function jf(){return this.rgb().formatHex()}function Nf(){return this.rgb().formatRgb()}function Df(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Tf.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Of(t):3===r?new $f(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?zf(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?zf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Af.exec(e))?new $f(t[1],t[2],t[3],1):(t=Ef.exec(e))?new $f(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Pf.exec(e))?zf(t[1],t[2],t[3],t[4]):(t=Mf.exec(e))?zf(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=If.exec(e))?Gf(t[1],t[2]/100,t[3]/100,1):(t=Bf.exec(e))?Gf(t[1],t[2]/100,t[3]/100,t[4]):Lf.hasOwnProperty(e)?Of(Lf[e]):"transparent"===e?new $f(NaN,NaN,NaN,0):null}function Of(e){return new $f(e>>16&255,e>>8&255,255&e,1)}function zf(e,t,r,n){return n<=0&&(e=t=r=NaN),new $f(e,t,r,n)}function Ff(e){return e instanceof xf||(e=Df(e)),e?new $f((e=e.rgb()).r,e.g,e.b,e.opacity):new $f}function Rf(e,t,r,n){return 1===arguments.length?Ff(e):new $f(e,t,r,null==n?1:n)}function $f(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Vf(){return`#${Uf(this.r)}${Uf(this.g)}${Uf(this.b)}`}function Wf(){const e=qf(this.opacity);return`${1===e?"rgb(":"rgba("}${Hf(this.r)}, ${Hf(this.g)}, ${Hf(this.b)}${1===e?")":`, ${e})`}`}function qf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Hf(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Uf(e){return((e=Hf(e))<16?"0":"")+e.toString(16)}function Gf(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Jf(e,t,r,n)}function Xf(e){if(e instanceof Jf)return new Jf(e.h,e.s,e.l,e.opacity);if(e instanceof xf||(e=Df(e)),!e)return new Jf;if(e instanceof Jf)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(r-n)/s+6*(r<n):r===o?(n-t)/s+2:(t-r)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Jf(a,s,l,e.opacity)}function Jf(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Yf(e){return(e=(e||0)%360)<0?e+360:e}function Zf(e){return Math.max(0,Math.min(1,e||0))}function Kf(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}bf(xf,Df,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:jf,formatHex:jf,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xf(this).formatHsl()},formatRgb:Nf,toString:Nf}),bf($f,Rf,vf(xf,{brighter(e){return e=null==e?wf:Math.pow(wf,e),new $f(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Cf:Math.pow(Cf,e),new $f(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $f(Hf(this.r),Hf(this.g),Hf(this.b),qf(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Vf,formatHex:Vf,formatHex8:function(){return`#${Uf(this.r)}${Uf(this.g)}${Uf(this.b)}${Uf(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Wf,toString:Wf})),bf(Jf,function(e,t,r,n){return 1===arguments.length?Xf(e):new Jf(e,t,r,null==n?1:n)},vf(xf,{brighter(e){return e=null==e?wf:Math.pow(wf,e),new Jf(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Cf:Math.pow(Cf,e),new Jf(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new $f(Kf(e>=240?e-240:e+120,i,n),Kf(e,i,n),Kf(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Jf(Yf(this.h),Zf(this.s),Zf(this.l),qf(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=qf(this.opacity);return`${1===e?"hsl(":"hsla("}${Yf(this.h)}, ${100*Zf(this.s)}%, ${100*Zf(this.l)}%${1===e?")":`, ${e})`}`}}));const Qf=e=>()=>e;function em(e,t){return function(r){return e+r*t}}function tm(e){return 1===(e=+e)?rm:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Qf(isNaN(t)?r:t)}}function rm(e,t){var r=t-e;return r?em(e,r):Qf(isNaN(e)?t:e)}const nm=function e(t){var r=tm(t);function n(e,t){var n=r((e=Rf(e)).r,(t=Rf(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=rm(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);function im(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var om=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,am=new RegExp(om.source,"g");function sm(e,t){var r,n,i,o=om.lastIndex=am.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(r=om.exec(e))&&(n=am.exec(t));)(i=n.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(n=n[0])?s[a]?s[a]+=n:s[++a]=n:(s[++a]=null,l.push({i:a,x:im(r,n)})),o=am.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var r,n=0;n<t;++n)s[(r=l[n]).i]=r.x(e);return s.join("")})}var lm,cm=180/Math.PI,um={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function hm(e,t,r,n,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n<t*r&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*cm,skewX:Math.atan(l)*cm,scaleX:a,scaleY:s}}function dm(e,t,r,n){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],l=[];return o=e(o),a=e(a),function(e,n,i,o,a,s){if(e!==i||n!==o){var l=a.push("translate(",null,t,null,r);s.push({i:l-4,x:im(e,i)},{i:l-2,x:im(n,o)})}else(i||o)&&a.push("translate("+i+t+o+r)}(o.translateX,o.translateY,a.translateX,a.translateY,s,l),function(e,t,r,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:r.push(i(r)+"rotate(",null,n)-2,x:im(e,t)})):t&&r.push(i(r)+"rotate("+t+n)}(o.rotate,a.rotate,s,l),function(e,t,r,o){e!==t?o.push({i:r.push(i(r)+"skewX(",null,n)-2,x:im(e,t)}):t&&r.push(i(r)+"skewX("+t+n)}(o.skewX,a.skewX,s,l),function(e,t,r,n,o,a){if(e!==r||t!==n){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:im(e,r)},{i:s-2,x:im(t,n)})}else 1===r&&1===n||o.push(i(o)+"scale("+r+","+n+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(e){for(var t,r=-1,n=l.length;++r<n;)s[(t=l[r]).i]=t.x(e);return s.join("")}}}var pm,gm,fm=dm(function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?um:hm(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),mm=dm(function(e){return null==e?um:(lm||(lm=document.createElementNS("http://www.w3.org/2000/svg","g")),lm.setAttribute("transform",e),(e=lm.transform.baseVal.consolidate())?hm((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):um)},", ",")",")"),ym=0,bm=0,vm=0,xm=0,Cm=0,wm=0,km="object"==typeof performance&&performance.now?performance:Date,Sm="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function _m(){return Cm||(Sm(Tm),Cm=km.now()+wm)}function Tm(){Cm=0}function Am(){this._call=this._time=this._next=null}function Em(e,t,r){var n=new Am;return n.restart(e,t,r),n}function Pm(){Cm=(xm=km.now())+wm,ym=bm=0;try{!function(){_m(),++ym;for(var e,t=pm;t;)(e=Cm-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ym}()}finally{ym=0,function(){var e,t,r=pm,n=1/0;for(;r;)r._call?(n>r._time&&(n=r._time),e=r,r=r._next):(t=r._next,r._next=null,r=e?e._next=t:pm=t);gm=e,Im(n)}(),Cm=0}}function Mm(){var e=km.now(),t=e-xm;t>1e3&&(wm-=t,xm=e)}function Im(e){ym||(bm&&(bm=clearTimeout(bm)),e-Cm>24?(e<1/0&&(bm=setTimeout(Pm,e-km.now()-wm)),vm&&(vm=clearInterval(vm))):(vm||(xm=km.now(),vm=setInterval(Mm,1e3)),ym=1,Sm(Pm)))}function Bm(e,t,r){var n=new Am;return t=null==t?0:+t,n.restart(r=>{n.stop(),e(r+t)},t,r),n}Am.prototype=Em.prototype={constructor:Am,restart:function(e,t,r){if("function"!=typeof e)throw new TypeError("callback is not a function");r=(null==r?_m():+r)+(null==t?0:+t),this._next||gm===this||(gm?gm._next=this:pm=this,gm=this),this._call=e,this._time=r,Im()},stop:function(){this._call&&(this._call=null,this._time=1/0,Im())}};var Lm=eg("start","end","cancel","interrupt"),jm=[];function Nm(e,t,r,n,i,o){var a=e.__transition;if(a){if(r in a)return}else e.__transition={};!function(e,t,r){var n,i=e.__transition;function o(e){r.state=1,r.timer.restart(a,r.delay,r.time),r.delay<=e&&a(e-r.delay)}function a(o){var c,u,h,d;if(1!==r.state)return l();for(c in i)if((d=i[c]).name===r.name){if(3===d.state)return Bm(a);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[c]):+c<t&&(d.state=6,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[c])}if(Bm(function(){3===r.state&&(r.state=4,r.timer.restart(s,r.delay,r.time),s(o))}),r.state=2,r.on.call("start",e,e.__data__,r.index,r.group),2===r.state){for(r.state=3,n=new Array(h=r.tween.length),c=0,u=-1;c<h;++c)(d=r.tween[c].value.call(e,e.__data__,r.index,r.group))&&(n[++u]=d);n.length=u+1}}function s(t){for(var i=t<r.duration?r.ease.call(null,t/r.duration):(r.timer.restart(l),r.state=5,1),o=-1,a=n.length;++o<a;)n[o].call(e,i);5===r.state&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){for(var n in r.state=6,r.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=r,r.timer=Em(o,0,r.time)}(e,r,{name:t,index:n,group:i,on:Lm,tween:jm,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Dm(e,t){var r=zm(e,t);if(r.state>0)throw new Error("too late; already scheduled");return r}function Om(e,t){var r=zm(e,t);if(r.state>3)throw new Error("too late; already running");return r}function zm(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Fm(e,t){var r,n;return function(){var i=Om(this,e),o=i.tween;if(o!==r)for(var a=0,s=(n=r=o).length;a<s;++a)if(n[a].name===t){(n=n.slice()).splice(a,1);break}i.tween=n}}function Rm(e,t,r){var n,i;if("function"!=typeof r)throw new Error;return function(){var o=Om(this,e),a=o.tween;if(a!==n){i=(n=a).slice();for(var s={name:t,value:r},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=s;break}l===c&&i.push(s)}o.tween=i}}function $m(e,t,r){var n=e._id;return e.each(function(){var e=Om(this,n);(e.value||(e.value={}))[t]=r.apply(this,arguments)}),function(e){return zm(e,n).value[t]}}function Vm(e,t){var r;return("number"==typeof t?im:t instanceof Df?nm:(r=Df(t))?(t=r,nm):sm)(e,t)}function Wm(e){return function(){this.removeAttribute(e)}}function qm(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Hm(e,t,r){var n,i,o=r+"";return function(){var a=this.getAttribute(e);return a===o?null:a===n?i:i=t(n=a,r)}}function Um(e,t,r){var n,i,o=r+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===n?i:i=t(n=a,r)}}function Gm(e,t,r){var n,i,o;return function(){var a,s,l=r(this);if(null!=l)return(a=this.getAttribute(e))===(s=l+"")?null:a===n&&s===i?o:(i=s,o=t(n=a,l));this.removeAttribute(e)}}function Xm(e,t,r){var n,i,o;return function(){var a,s,l=r(this);if(null!=l)return(a=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:a===n&&s===i?o:(i=s,o=t(n=a,l));this.removeAttributeNS(e.space,e.local)}}function Jm(e,t){var r,n;function i(){var i=t.apply(this,arguments);return i!==n&&(r=(n=i)&&function(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}(e,i)),r}return i._value=t,i}function Ym(e,t){var r,n;function i(){var i=t.apply(this,arguments);return i!==n&&(r=(n=i)&&function(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}(e,i)),r}return i._value=t,i}function Zm(e,t){return function(){Dm(this,e).delay=+t.apply(this,arguments)}}function Km(e,t){return t=+t,function(){Dm(this,e).delay=t}}function Qm(e,t){return function(){Om(this,e).duration=+t.apply(this,arguments)}}function ey(e,t){return t=+t,function(){Om(this,e).duration=t}}var ty=mf.prototype.constructor;function ry(e){return function(){this.style.removeProperty(e)}}var ny=0;function iy(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function oy(){return++ny}var ay=mf.prototype;iy.prototype={constructor:iy,select:function(e){var t=this._name,r=this._id;"function"!=typeof e&&(e=hg(e));for(var n=this._groups,i=n.length,o=new Array(i),a=0;a<i;++a)for(var s,l,c=n[a],u=c.length,h=o[a]=new Array(u),d=0;d<u;++d)(s=c[d])&&(l=e.call(s,s.__data__,d,c))&&("__data__"in s&&(l.__data__=s.__data__),h[d]=l,Nm(h[d],t,r,d,h,zm(s,r)));return new iy(o,this._parents,t,r)},selectAll:function(e){var t=this._name,r=this._id;"function"!=typeof e&&(e=pg(e));for(var n=this._groups,i=n.length,o=[],a=[],s=0;s<i;++s)for(var l,c=n[s],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var d,p=e.call(l,l.__data__,h,c),g=zm(l,r),f=0,m=p.length;f<m;++f)(d=p[f])&&Nm(d,t,r,f,p,g);o.push(p),a.push(l)}return new iy(o,a,t,r)},selectChild:ay.selectChild,selectChildren:ay.selectChildren,filter:function(e){"function"!=typeof e&&(e=fg(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var o,a=t[i],s=a.length,l=n[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new iy(n,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,o=Math.min(n,i),a=new Array(n),s=0;s<o;++s)for(var l,c=t[s],u=r[s],h=c.length,d=a[s]=new Array(h),p=0;p<h;++p)(l=c[p]||u[p])&&(d[p]=l);for(;s<n;++s)a[s]=t[s];return new iy(a,this._parents,this._name,this._id)},selection:function(){return new ty(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,r=oy(),n=this._groups,i=n.length,o=0;o<i;++o)for(var a,s=n[o],l=s.length,c=0;c<l;++c)if(a=s[c]){var u=zm(a,t);Nm(a,e,r,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new iy(n,this._parents,e,r)},call:ay.call,nodes:ay.nodes,node:ay.node,size:ay.size,empty:ay.empty,each:ay.each,on:function(e,t){var r=this._id;return arguments.length<2?zm(this.node(),r).on.on(e):this.each(function(e,t,r){var n,i,o=function(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})}(t)?Dm:Om;return function(){var a=o(this,e),s=a.on;s!==n&&(i=(n=s).copy()).on(t,r),a.on=i}}(r,e,t))},attr:function(e,t){var r=ag(e),n="transform"===r?mm:Vm;return this.attrTween(e,"function"==typeof t?(r.local?Xm:Gm)(r,n,$m(this,"attr."+e,t)):null==t?(r.local?qm:Wm)(r):(r.local?Um:Hm)(r,n,t))},attrTween:function(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;var n=ag(e);return this.tween(r,(n.local?Jm:Ym)(n,t))},style:function(e,t,r){var n="transform"==(e+="")?fm:Vm;return null==t?this.styleTween(e,function(e,t){var r,n,i;return function(){var o=zg(this,e),a=(this.style.removeProperty(e),zg(this,e));return o===a?null:o===r&&a===n?i:i=t(r=o,n=a)}}(e,n)).on("end.style."+e,ry(e)):"function"==typeof t?this.styleTween(e,function(e,t,r){var n,i,o;return function(){var a=zg(this,e),s=r(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=zg(this,e)),a===l?null:a===n&&l===i?o:(i=l,o=t(n=a,s))}}(e,n,$m(this,"style."+e,t))).each(function(e,t){var r,n,i,o,a="style."+t,s="end."+a;return function(){var l=Om(this,e),c=l.on,u=null==l.value[a]?o||(o=ry(t)):void 0;c===r&&i===u||(n=(r=c).copy()).on(s,i=u),l.on=n}}(this._id,e)):this.styleTween(e,function(e,t,r){var n,i,o=r+"";return function(){var a=zg(this,e);return a===o?null:a===n?i:i=t(n=a,r)}}(e,n,t),r).on("end.style."+e,null)},styleTween:function(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function(e,t,r){var n,i;function o(){var o=t.apply(this,arguments);return o!==i&&(n=(i=o)&&function(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}(e,o,r)),n}return o._value=t,o}(e,t,null==r?"":r))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}($m(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,r;function n(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&function(e){return function(t){this.textContent=e.call(this,t)}}(n)),t}return n._value=e,n}(e))},remove:function(){return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}));var e},tween:function(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n,i=zm(this.node(),r).tween,o=0,a=i.length;o<a;++o)if((n=i[o]).name===e)return n.value;return null}return this.each((null==t?Fm:Rm)(r,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Zm:Km)(t,e)):zm(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Qm:ey)(t,e)):zm(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){Om(this,e).ease=t}}(t,e)):zm(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error;return this.each(function(e,t){return function(){var r=t.apply(this,arguments);if("function"!=typeof r)throw new Error;Om(this,e).ease=r}}(this._id,e))},end:function(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(o,a){var s={value:a},l={value:function(){0===--i&&o()}};r.each(function(){var r=Om(this,n),i=r.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),r.on=t}),0===i&&o()})},[Symbol.iterator]:ay[Symbol.iterator]};var sy={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function ly(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}mf.prototype.interrupt=function(e){return this.each(function(){!function(e,t){var r,n,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(r=o[i]).name===t?(n=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(n?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete o[i]):a=!1;a&&delete e.__transition}}(this,e)})},mf.prototype.transition=function(e){var t,r;e instanceof iy?(t=e._id,e=e._name):(t=oy(),(r=sy).time=_m(),e=null==e?null:e+"");for(var n=this._groups,i=n.length,o=0;o<i;++o)for(var a,s=n[o],l=s.length,c=0;c<l;++c)(a=s[c])&&Nm(a,e,t,c,s,r||ly(a,t));return new iy(n,this._parents,e,t)};const cy=Math.PI,uy=2*cy,hy=1e-6,dy=uy-hy;function py(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class gy{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?py:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return py;const r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,i,o){this._append`C${+e},${+t},${+r},${+n},${this._x1=+i},${this._y1=+o}`}arcTo(e,t,r,n,i){if(e=+e,t=+t,r=+r,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,s=r-e,l=n-t,c=o-e,u=a-t,h=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(h>hy)if(Math.abs(u*s-l*c)>hy&&i){let d=r-o,p=n-a,g=s*s+l*l,f=d*d+p*p,m=Math.sqrt(g),y=Math.sqrt(h),b=i*Math.tan((cy-Math.acos((g+h-f)/(2*m*y)))/2),v=b/y,x=b/m;Math.abs(v-1)>hy&&this._append`L${e+v*c},${t+v*u}`,this._append`A${i},${i},0,0,${+(u*d>c*p)},${this._x1=e+x*s},${this._y1=t+x*l}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,r,n,i,o){if(e=+e,t=+t,o=!!o,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),s=r*Math.sin(n),l=e+a,c=t+s,u=1^o,h=o?n-i:i-n;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>hy||Math.abs(this._y1-c)>hy)&&this._append`L${l},${c}`,r&&(h<0&&(h=h%uy+uy),h>dy?this._append`A${r},${r},0,1,${u},${e-a},${t-s}A${r},${r},0,1,${u},${this._x1=l},${this._y1=c}`:h>hy&&this._append`A${r},${r},0,${+(h>=cy)},${u},${this._x1=e+r*Math.cos(i)},${this._y1=t+r*Math.sin(i)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function fy(e){return function(){return e}}const my=Math.abs,yy=Math.atan2,by=Math.cos,vy=Math.max,xy=Math.min,Cy=Math.sin,wy=Math.sqrt,ky=1e-12,Sy=Math.PI,_y=Sy/2,Ty=2*Sy;function Ay(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{const e=Math.floor(r);if(!(e>=0))throw new RangeError(`invalid digits: ${r}`);t=e}return e},()=>new gy(t)}function Ey(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Py(e){this._context=e}function My(e){return new Py(e)}function Iy(e){return e[0]}function By(e){return e[1]}function Ly(e,t){var r=fy(!0),n=null,i=My,o=null,a=Ay(s);function s(s){var l,c,u,h=(s=Ey(s)).length,d=!1;for(null==n&&(o=i(u=a())),l=0;l<=h;++l)!(l<h&&r(c=s[l],l,s))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(c,l,s),+t(c,l,s));if(u)return o=null,u+""||null}return e="function"==typeof e?e:void 0===e?Iy:fy(e),t="function"==typeof t?t:void 0===t?By:fy(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:fy(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:fy(+e),s):t},s.defined=function(e){return arguments.length?(r="function"==typeof e?e:fy(!!e),s):r},s.curve=function(e){return arguments.length?(i=e,null!=n&&(o=i(n)),s):i},s.context=function(e){return arguments.length?(null==e?n=o=null:o=i(n=e),s):n},s}Py.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};class jy{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function Ny(e){return new jy(e,!0)}function Dy(e){return new jy(e,!1)}function Oy(){}function zy(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Fy(e){this._context=e}function Ry(e){return new Fy(e)}function $y(e){this._context=e}function Vy(e){this._context=e}function Wy(e,t){this._basis=new Fy(e),this._beta=t}Fy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:zy(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:zy(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},$y.prototype={areaStart:Oy,areaEnd:Oy,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:zy(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Vy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:zy(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Wy.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n,i=e[0],o=t[0],a=e[r]-i,s=t[r]-o,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+n*a),this._beta*t[l]+(1-this._beta)*(o+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const qy=function e(t){function r(e){return 1===t?new Fy(e):new Wy(e,t)}return r.beta=function(t){return e(+t)},r}(.85);function Hy(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function Uy(e,t){this._context=e,this._k=(1-t)/6}Uy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Hy(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Hy(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Gy=function e(t){function r(e){return new Uy(e,t)}return r.tension=function(t){return e(+t)},r}(0);function Xy(e,t){this._context=e,this._k=(1-t)/6}Xy.prototype={areaStart:Oy,areaEnd:Oy,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Hy(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Jy=function e(t){function r(e){return new Xy(e,t)}return r.tension=function(t){return e(+t)},r}(0);function Yy(e,t){this._context=e,this._k=(1-t)/6}Yy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Hy(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Zy=function e(t){function r(e){return new Yy(e,t)}return r.tension=function(t){return e(+t)},r}(0);function Ky(e,t,r){var n=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>ky){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>ky){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-r*e._l12_2a)/u}e._context.bezierCurveTo(n,i,o,a,e._x2,e._y2)}function Qy(e,t){this._context=e,this._alpha=t}Qy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Ky(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const eb=function e(t){function r(e){return t?new Qy(e,t):new Uy(e,0)}return r.alpha=function(t){return e(+t)},r}(.5);function tb(e,t){this._context=e,this._alpha=t}tb.prototype={areaStart:Oy,areaEnd:Oy,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ky(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const rb=function e(t){function r(e){return t?new tb(e,t):new Xy(e,0)}return r.alpha=function(t){return e(+t)},r}(.5);function nb(e,t){this._context=e,this._alpha=t}nb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ky(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ib=function e(t){function r(e){return t?new nb(e,t):new Yy(e,0)}return r.alpha=function(t){return e(+t)},r}(.5);function ob(e){this._context=e}function ab(e){return e<0?-1:1}function sb(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0),s=(o*i+a*n)/(n+i);return(ab(o)+ab(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function lb(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function cb(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-n)/3;e._context.bezierCurveTo(n+s,i+s*t,o-s,a-s*r,o,a)}function ub(e){this._context=e}function hb(e){this._context=new db(e)}function db(e){this._context=e}function pb(e){return new ub(e)}function gb(e){return new hb(e)}function fb(e){this._context=e}function mb(e){var t,r,n=e.length-1,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function yb(e){return new fb(e)}function bb(e,t){this._context=e,this._t=t}function vb(e){return new bb(e,.5)}function xb(e){return new bb(e,0)}function Cb(e){return new bb(e,1)}function wb(e,t,r){this.k=e,this.x=t,this.y=r}ob.prototype={areaStart:Oy,areaEnd:Oy,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},ub.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:cb(this,this._t0,lb(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,cb(this,lb(this,r=sb(this,e,t)),r);break;default:cb(this,this._t0,r=sb(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(hb.prototype=Object.create(ub.prototype)).point=function(e,t){ub.prototype.point.call(this,t,e)},db.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}},fb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===r)this._context.lineTo(e[1],t[1]);else for(var n=mb(e),i=mb(t),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},bb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}},wb.prototype={constructor:wb,scale:function(e){return 1===e?this:new wb(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new wb(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},wb.prototype;var kb=vu(e=>{var t;const{securityLevel:r}=Wp();let n=yf("body");if("sandbox"===r){const r=yf(`#i${e}`);n=yf(((null==(t=r.node())?void 0:t.contentDocument)??document).body)}return n.select(`#${e}`)},"selectSvgElement");function Sb(e){return null==e}function _b(e){return"object"==typeof e&&null!==e}function Tb(e){return Array.isArray(e)?e:Sb(e)?[]:[e]}function Ab(e,t){var r,n,i,o;if(t)for(r=0,n=(o=Object.keys(t)).length;r<n;r+=1)e[i=o[r]]=t[i];return e}function Eb(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n}function Pb(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}vu(Sb,"isNothing"),vu(_b,"isObject"),vu(Tb,"toArray"),vu(Ab,"extend"),vu(Eb,"repeat"),vu(Pb,"isNegativeZero");var Mb={isNothing:Sb,isObject:_b,toArray:Tb,repeat:Eb,isNegativeZero:Pb,extend:Ab};function Ib(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function Bb(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Ib(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}vu(Ib,"formatError"),vu(Bb,"YAMLException$1"),Bb.prototype=Object.create(Error.prototype),Bb.prototype.constructor=Bb,Bb.prototype.toString=vu(function(e){return this.name+": "+Ib(this,e)},"toString");var Lb=Bb;function jb(e,t,r,n,i){var o="",a="",s=Math.floor(i/2)-1;return n-t>s&&(t=n-s+(o=" ... ").length),r-n>s&&(r=n+s-(a=" ...").length),{str:o+e.slice(t,r).replace(/\t/g,"→")+a,pos:n-t+o.length}}function Nb(e,t){return Mb.repeat(" ",t-e.length)+e}function Db(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,i=[0],o=[],a=-1;r=n.exec(e.buffer);)o.push(r.index),i.push(r.index+r[0].length),e.position<=r.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var s,l,c="",u=Math.min(e.line+t.linesAfter,o.length).toString().length,h=t.maxLength-(t.indent+u+3);for(s=1;s<=t.linesBefore&&!(a-s<0);s++)l=jb(e.buffer,i[a-s],o[a-s],e.position-(i[a]-i[a-s]),h),c=Mb.repeat(" ",t.indent)+Nb((e.line-s+1).toString(),u)+" | "+l.str+"\n"+c;for(l=jb(e.buffer,i[a],o[a],e.position,h),c+=Mb.repeat(" ",t.indent)+Nb((e.line+1).toString(),u)+" | "+l.str+"\n",c+=Mb.repeat("-",t.indent+u+3+l.pos)+"^\n",s=1;s<=t.linesAfter&&!(a+s>=o.length);s++)l=jb(e.buffer,i[a+s],o[a+s],e.position-(i[a]-i[a+s]),h),c+=Mb.repeat(" ",t.indent)+Nb((e.line+s+1).toString(),u)+" | "+l.str+"\n";return c.replace(/\n$/,"")}vu(jb,"getLine"),vu(Nb,"padStart"),vu(Db,"makeSnippet");var Ob=Db,zb=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Fb=["scalar","sequence","mapping"];function Rb(e){var t={};return null!==e&&Object.keys(e).forEach(function(r){e[r].forEach(function(e){t[String(e)]=r})}),t}function $b(e,t){if(t=t||{},Object.keys(t).forEach(function(t){if(-1===zb.indexOf(t))throw new Lb('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Rb(t.styleAliases||null),-1===Fb.indexOf(this.kind))throw new Lb('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}vu(Rb,"compileStyleAliases"),vu($b,"Type$1");var Vb=$b;function Wb(e,t){var r=[];return e[t].forEach(function(e){var t=r.length;r.forEach(function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)}),r[t]=e}),r}function qb(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(vu(n,"collectType"),e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}function Hb(e){return this.extend(e)}vu(Wb,"compileList"),vu(qb,"compileMap"),vu(Hb,"Schema$1"),Hb.prototype.extend=vu(function(e){var t=[],r=[];if(e instanceof Vb)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new Lb("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}t.forEach(function(e){if(!(e instanceof Vb))throw new Lb("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new Lb("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new Lb("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(e){if(!(e instanceof Vb))throw new Lb("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Hb.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=Wb(n,"implicit"),n.compiledExplicit=Wb(n,"explicit"),n.compiledTypeMap=qb(n.compiledImplicit,n.compiledExplicit),n},"extend");var Ub=new Hb({explicit:[new Vb("tag:yaml.org,2002:str",{kind:"scalar",construct:vu(function(e){return null!==e?e:""},"construct")}),new Vb("tag:yaml.org,2002:seq",{kind:"sequence",construct:vu(function(e){return null!==e?e:[]},"construct")}),new Vb("tag:yaml.org,2002:map",{kind:"mapping",construct:vu(function(e){return null!==e?e:{}},"construct")})]});function Gb(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function Xb(){return null}function Jb(e){return null===e}vu(Gb,"resolveYamlNull"),vu(Xb,"constructYamlNull"),vu(Jb,"isNull");var Yb=new Vb("tag:yaml.org,2002:null",{kind:"scalar",resolve:Gb,construct:Xb,predicate:Jb,represent:{canonical:vu(function(){return"~"},"canonical"),lowercase:vu(function(){return"null"},"lowercase"),uppercase:vu(function(){return"NULL"},"uppercase"),camelcase:vu(function(){return"Null"},"camelcase"),empty:vu(function(){return""},"empty")},defaultStyle:"lowercase"});function Zb(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)}function Kb(e){return"true"===e||"True"===e||"TRUE"===e}function Qb(e){return"[object Boolean]"===Object.prototype.toString.call(e)}vu(Zb,"resolveYamlBoolean"),vu(Kb,"constructYamlBoolean"),vu(Qb,"isBoolean");var ev=new Vb("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Zb,construct:Kb,predicate:Qb,represent:{lowercase:vu(function(e){return e?"true":"false"},"lowercase"),uppercase:vu(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:vu(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function tv(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function rv(e){return 48<=e&&e<=55}function nv(e){return 48<=e&&e<=57}function iv(e){if(null===e)return!1;var t,r=e.length,n=0,i=!1;if(!r)return!1;if("-"!==(t=e[n])&&"+"!==t||(t=e[++n]),"0"===t){if(n+1===r)return!0;if("b"===(t=e[++n])){for(n++;n<r;n++)if("_"!==(t=e[n])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(n++;n<r;n++)if("_"!==(t=e[n])){if(!tv(e.charCodeAt(n)))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(n++;n<r;n++)if("_"!==(t=e[n])){if(!rv(e.charCodeAt(n)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;n<r;n++)if("_"!==(t=e[n])){if(!nv(e.charCodeAt(n)))return!1;i=!0}return!(!i||"_"===t)}function ov(e){var t,r=e,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(n=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function av(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!Mb.isNegativeZero(e)}vu(tv,"isHexCode"),vu(rv,"isOctCode"),vu(nv,"isDecCode"),vu(iv,"resolveYamlInteger"),vu(ov,"constructYamlInteger"),vu(av,"isInteger");var sv=new Vb("tag:yaml.org,2002:int",{kind:"scalar",resolve:iv,construct:ov,predicate:av,represent:{binary:vu(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:vu(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:vu(function(e){return e.toString(10)},"decimal"),hexadecimal:vu(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),lv=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function cv(e){return null!==e&&!(!lv.test(e)||"_"===e[e.length-1])}function uv(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)}vu(cv,"resolveYamlFloat"),vu(uv,"constructYamlFloat");var hv=/^[-+]?[0-9]+e/;function dv(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Mb.isNegativeZero(e))return"-0.0";return r=e.toString(10),hv.test(r)?r.replace("e",".e"):r}function pv(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||Mb.isNegativeZero(e))}vu(dv,"representYamlFloat"),vu(pv,"isFloat");var gv=new Vb("tag:yaml.org,2002:float",{kind:"scalar",resolve:cv,construct:uv,predicate:pv,represent:dv,defaultStyle:"lowercase"}),fv=Ub.extend({implicit:[Yb,ev,sv,gv]}),mv=fv,yv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),bv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function vv(e){return null!==e&&(null!==yv.exec(e)||null!==bv.exec(e))}function xv(e){var t,r,n,i,o,a,s,l,c=0,u=null;if(null===(t=yv.exec(e))&&(t=bv.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],a=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),l=new Date(Date.UTC(r,n,i,o,a,s,c)),u&&l.setTime(l.getTime()-u),l}function Cv(e){return e.toISOString()}vu(vv,"resolveYamlTimestamp"),vu(xv,"constructYamlTimestamp"),vu(Cv,"representYamlTimestamp");var wv=new Vb("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:vv,construct:xv,instanceOf:Date,represent:Cv});function kv(e){return"<<"===e||null===e}vu(kv,"resolveYamlMerge");var Sv=new Vb("tag:yaml.org,2002:merge",{kind:"scalar",resolve:kv}),_v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function Tv(e){if(null===e)return!1;var t,r,n=0,i=e.length,o=_v;for(r=0;r<i;r++)if(!((t=o.indexOf(e.charAt(r)))>64)){if(t<0)return!1;n+=6}return n%8==0}function Av(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=_v,a=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|o.indexOf(n.charAt(t));return 0===(r=i%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===r?(s.push(a>>10&255),s.push(a>>2&255)):12===r&&s.push(a>>4&255),new Uint8Array(s)}function Ev(e){var t,r,n="",i=0,o=e.length,a=_v;for(t=0;t<o;t++)t%3==0&&t&&(n+=a[i>>18&63],n+=a[i>>12&63],n+=a[i>>6&63],n+=a[63&i]),i=(i<<8)+e[t];return 0===(r=o%3)?(n+=a[i>>18&63],n+=a[i>>12&63],n+=a[i>>6&63],n+=a[63&i]):2===r?(n+=a[i>>10&63],n+=a[i>>4&63],n+=a[i<<2&63],n+=a[64]):1===r&&(n+=a[i>>2&63],n+=a[i<<4&63],n+=a[64],n+=a[64]),n}function Pv(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}vu(Tv,"resolveYamlBinary"),vu(Av,"constructYamlBinary"),vu(Ev,"representYamlBinary"),vu(Pv,"isBinary");var Mv=new Vb("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Tv,construct:Av,predicate:Pv,represent:Ev}),Iv=Object.prototype.hasOwnProperty,Bv=Object.prototype.toString;function Lv(e){if(null===e)return!0;var t,r,n,i,o,a=[],s=e;for(t=0,r=s.length;t<r;t+=1){if(n=s[t],o=!1,"[object Object]"!==Bv.call(n))return!1;for(i in n)if(Iv.call(n,i)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==a.indexOf(i))return!1;a.push(i)}return!0}function jv(e){return null!==e?e:[]}vu(Lv,"resolveYamlOmap"),vu(jv,"constructYamlOmap");var Nv=new Vb("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Lv,construct:jv}),Dv=Object.prototype.toString;function Ov(e){if(null===e)return!0;var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],"[object Object]"!==Dv.call(n))return!1;if(1!==(i=Object.keys(n)).length)return!1;o[t]=[i[0],n[i[0]]]}return!0}function zv(e){if(null===e)return[];var t,r,n,i,o,a=e;for(o=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}vu(Ov,"resolveYamlPairs"),vu(zv,"constructYamlPairs");var Fv=new Vb("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ov,construct:zv}),Rv=Object.prototype.hasOwnProperty;function $v(e){if(null===e)return!0;var t,r=e;for(t in r)if(Rv.call(r,t)&&null!==r[t])return!1;return!0}function Vv(e){return null!==e?e:{}}vu($v,"resolveYamlSet"),vu(Vv,"constructYamlSet");var Wv=new Vb("tag:yaml.org,2002:set",{kind:"mapping",resolve:$v,construct:Vv}),qv=mv.extend({implicit:[wv,Sv],explicit:[Mv,Nv,Fv,Wv]}),Hv=Object.prototype.hasOwnProperty,Uv=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Gv=/[\x85\u2028\u2029]/,Xv=/[,\[\]\{\}]/,Jv=/^(?:!|!!|![a-z\-]+!)$/i,Yv=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Zv(e){return Object.prototype.toString.call(e)}function Kv(e){return 10===e||13===e}function Qv(e){return 9===e||32===e}function ex(e){return 9===e||32===e||10===e||13===e}function tx(e){return 44===e||91===e||93===e||123===e||125===e}function rx(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function nx(e){return 120===e?2:117===e?4:85===e?8:0}function ix(e){return 48<=e&&e<=57?e-48:-1}function ox(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function ax(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}vu(Zv,"_class"),vu(Kv,"is_EOL"),vu(Qv,"is_WHITE_SPACE"),vu(ex,"is_WS_OR_EOL"),vu(tx,"is_FLOW_INDICATOR"),vu(rx,"fromHexCode"),vu(nx,"escapedHexLen"),vu(ix,"fromDecimalCode"),vu(ox,"simpleEscapeSequence"),vu(ax,"charFromCodepoint");var sx,lx=new Array(256),cx=new Array(256);for(sx=0;sx<256;sx++)lx[sx]=ox(sx)?1:0,cx[sx]=ox(sx);function ux(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||qv,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function hx(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=Ob(r),new Lb(t,r)}function dx(e,t){throw hx(e,t)}function px(e,t){e.onWarning&&e.onWarning.call(null,hx(e,t))}vu(ux,"State$1"),vu(hx,"generateError"),vu(dx,"throwError"),vu(px,"throwWarning");var gx={YAML:vu(function(e,t,r){var n,i,o;null!==e.version&&dx(e,"duplication of %YAML directive"),1!==r.length&&dx(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&dx(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),o=parseInt(n[2],10),1!==i&&dx(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&px(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:vu(function(e,t,r){var n,i;2!==r.length&&dx(e,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],Jv.test(n)||dx(e,"ill-formed tag handle (first argument) of the TAG directive"),Hv.call(e.tagMap,n)&&dx(e,'there is a previously declared suffix for "'+n+'" tag handle'),Yv.test(i)||dx(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(o){dx(e,"tag prefix is malformed: "+i)}e.tagMap[n]=i},"handleTagDirective")};function fx(e,t,r,n){var i,o,a,s;if(t<r){if(s=e.input.slice(t,r),n)for(i=0,o=s.length;i<o;i+=1)9===(a=s.charCodeAt(i))||32<=a&&a<=1114111||dx(e,"expected valid JSON character");else Uv.test(s)&&dx(e,"the stream contains non-printable characters");e.result+=s}}function mx(e,t,r,n){var i,o,a,s;for(Mb.isObject(r)||dx(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(i=Object.keys(r)).length;a<s;a+=1)o=i[a],Hv.call(t,o)||(t[o]=r[o],n[o]=!0)}function yx(e,t,r,n,i,o,a,s,l){var c,u;if(Array.isArray(i))for(c=0,u=(i=Array.prototype.slice.call(i)).length;c<u;c+=1)Array.isArray(i[c])&&dx(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===Zv(i[c])&&(i[c]="[object Object]");if("object"==typeof i&&"[object Object]"===Zv(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)mx(e,t,o[c],r);else mx(e,t,o,r);else e.json||Hv.call(r,i)||!Hv.call(t,i)||(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,dx(e,"duplicated mapping key")),"__proto__"===i?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[i]=o,delete r[i];return t}function bx(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):dx(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function vx(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);0!==i;){for(;Qv(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!Kv(i))break;for(bx(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&px(e,"deficient indentation"),n}function xx(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!ex(t)))}function Cx(e,t){1===t?e.result+=" ":t>1&&(e.result+=Mb.repeat("\n",t-1))}function wx(e,t,r){var n,i,o,a,s,l,c,u,h=e.kind,d=e.result;if(ex(u=e.input.charCodeAt(e.position))||tx(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(ex(n=e.input.charCodeAt(e.position+1))||r&&tx(n)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,a=!1;0!==u;){if(58===u){if(ex(n=e.input.charCodeAt(e.position+1))||r&&tx(n))break}else if(35===u){if(ex(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&xx(e)||r&&tx(u))break;if(Kv(u)){if(s=e.line,l=e.lineStart,c=e.lineIndent,vx(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=l,e.lineIndent=c;break}}a&&(fx(e,i,o,!1),Cx(e,e.line-s),i=o=e.position,a=!1),Qv(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return fx(e,i,o,!1),!!e.result||(e.kind=h,e.result=d,!1)}function kx(e,t){var r,n,i;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(fx(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,i=e.position}else Kv(r)?(fx(e,n,i,!0),Cx(e,vx(e,!1,t)),n=i=e.position):e.position===e.lineStart&&xx(e)?dx(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);dx(e,"unexpected end of the stream within a single quoted scalar")}function Sx(e,t){var r,n,i,o,a,s;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return fx(e,r,e.position,!0),e.position++,!0;if(92===s){if(fx(e,r,e.position,!0),Kv(s=e.input.charCodeAt(++e.position)))vx(e,!1,t);else if(s<256&&lx[s])e.result+=cx[s],e.position++;else if((a=nx(s))>0){for(i=a,o=0;i>0;i--)(a=rx(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:dx(e,"expected hexadecimal character");e.result+=ax(o),e.position++}else dx(e,"unknown escape sequence");r=n=e.position}else Kv(s)?(fx(e,r,n,!0),Cx(e,vx(e,!1,t)),r=n=e.position):e.position===e.lineStart&&xx(e)?dx(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}dx(e,"unexpected end of the stream within a double quoted scalar")}function _x(e,t){var r,n,i,o,a,s,l,c,u,h,d,p,g=!0,f=e.tag,m=e.anchor,y=Object.create(null);if(91===(p=e.input.charCodeAt(e.position)))a=93,c=!1,o=[];else{if(123!==p)return!1;a=125,c=!0,o={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),p=e.input.charCodeAt(++e.position);0!==p;){if(vx(e,!0,t),(p=e.input.charCodeAt(e.position))===a)return e.position++,e.tag=f,e.anchor=m,e.kind=c?"mapping":"sequence",e.result=o,!0;g?44===p&&dx(e,"expected the node content, but found ','"):dx(e,"missed comma between flow collection entries"),d=null,s=l=!1,63===p&&ex(e.input.charCodeAt(e.position+1))&&(s=l=!0,e.position++,vx(e,!0,t)),r=e.line,n=e.lineStart,i=e.position,Bx(e,t,1,!1,!0),h=e.tag,u=e.result,vx(e,!0,t),p=e.input.charCodeAt(e.position),!l&&e.line!==r||58!==p||(s=!0,p=e.input.charCodeAt(++e.position),vx(e,!0,t),Bx(e,t,1,!1,!0),d=e.result),c?yx(e,o,y,h,u,d,r,n,i):s?o.push(yx(e,null,y,h,u,d,r,n,i)):o.push(u),vx(e,!0,t),44===(p=e.input.charCodeAt(e.position))?(g=!0,p=e.input.charCodeAt(++e.position)):g=!1}dx(e,"unexpected end of the stream within a flow collection")}function Tx(e,t){var r,n,i,o,a=1,s=!1,l=!1,c=t,u=0,h=!1;if(124===(o=e.input.charCodeAt(e.position)))n=!1;else{if(62!==o)return!1;n=!0}for(e.kind="scalar",e.result="";0!==o;)if(43===(o=e.input.charCodeAt(++e.position))||45===o)1===a?a=43===o?3:2:dx(e,"repeat of a chomping mode identifier");else{if(!((i=ix(o))>=0))break;0===i?dx(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?dx(e,"repeat of an indentation width identifier"):(c=t+i-1,l=!0)}if(Qv(o)){do{o=e.input.charCodeAt(++e.position)}while(Qv(o));if(35===o)do{o=e.input.charCodeAt(++e.position)}while(!Kv(o)&&0!==o)}for(;0!==o;){for(bx(e),e.lineIndent=0,o=e.input.charCodeAt(e.position);(!l||e.lineIndent<c)&&32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>c&&(c=e.lineIndent),Kv(o))u++;else{if(e.lineIndent<c){3===a?e.result+=Mb.repeat("\n",s?1+u:u):1===a&&s&&(e.result+="\n");break}for(n?Qv(o)?(h=!0,e.result+=Mb.repeat("\n",s?1+u:u)):h?(h=!1,e.result+=Mb.repeat("\n",u+1)):0===u?s&&(e.result+=" "):e.result+=Mb.repeat("\n",u):e.result+=Mb.repeat("\n",s?1+u:u),s=!0,l=!0,u=0,r=e.position;!Kv(o)&&0!==o;)o=e.input.charCodeAt(++e.position);fx(e,r,e.position,!1)}}return!0}function Ax(e,t){var r,n,i=e.tag,o=e.anchor,a=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,dx(e,"tab characters must not be used in indentation")),45===n)&&ex(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,vx(e,!0,-1)&&e.lineIndent<=t)a.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,Bx(e,t,3,!1,!0),a.push(e.result),vx(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)dx(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=i,e.anchor=o,e.kind="sequence",e.result=a,!0)}function Ex(e,t,r){var n,i,o,a,s,l,c,u=e.tag,h=e.anchor,d={},p=Object.create(null),g=null,f=null,m=null,y=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),c=e.input.charCodeAt(e.position);0!==c;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,dx(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),o=e.line,63!==c&&58!==c||!ex(n)){if(a=e.line,s=e.lineStart,l=e.position,!Bx(e,r,2,!1,!0))break;if(e.line===o){for(c=e.input.charCodeAt(e.position);Qv(c);)c=e.input.charCodeAt(++e.position);if(58===c)ex(c=e.input.charCodeAt(++e.position))||dx(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(yx(e,d,p,g,f,null,a,s,l),g=f=m=null),b=!0,y=!1,i=!1,g=e.tag,f=e.result;else{if(!b)return e.tag=u,e.anchor=h,!0;dx(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=u,e.anchor=h,!0;dx(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(y&&(yx(e,d,p,g,f,null,a,s,l),g=f=m=null),b=!0,y=!0,i=!0):y?(y=!1,i=!0):dx(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=n;if((e.line===o||e.lineIndent>t)&&(y&&(a=e.line,s=e.lineStart,l=e.position),Bx(e,t,4,!0,i)&&(y?f=e.result:m=e.result),y||(yx(e,d,p,g,f,m,a,s,l),g=f=m=null),vx(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==c)dx(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&yx(e,d,p,g,f,null,a,s,l),b&&(e.tag=u,e.anchor=h,e.kind="mapping",e.result=d),b}function Px(e){var t,r,n,i,o=!1,a=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&dx(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(o=!0,i=e.input.charCodeAt(++e.position)):33===i?(a=!0,r="!!",i=e.input.charCodeAt(++e.position)):r="!",t=e.position,o){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(n=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):dx(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!ex(i);)33===i&&(a?dx(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),Jv.test(r)||dx(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),Xv.test(n)&&dx(e,"tag suffix cannot contain flow indicator characters")}n&&!Yv.test(n)&&dx(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(s){dx(e,"tag name is malformed: "+n)}return o?e.tag=n:Hv.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:dx(e,'undeclared tag handle "'+r+'"'),!0}function Mx(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&dx(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!ex(r)&&!tx(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&dx(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Ix(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!ex(n)&&!tx(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&dx(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Hv.call(e.anchorMap,r)||dx(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],vx(e,!0,-1),!0}function Bx(e,t,r,n,i){var o,a,s,l,c,u,h,d,p,g=1,f=!1,m=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=s=4===r||3===r,n&&vx(e,!0,-1)&&(f=!0,e.lineIndent>t?g=1:e.lineIndent===t?g=0:e.lineIndent<t&&(g=-1)),1===g)for(;Px(e)||Mx(e);)vx(e,!0,-1)?(f=!0,s=o,e.lineIndent>t?g=1:e.lineIndent===t?g=0:e.lineIndent<t&&(g=-1)):s=!1;if(s&&(s=f||i),1!==g&&4!==r||(d=1===r||2===r?t:t+1,p=e.position-e.lineStart,1===g?s&&(Ax(e,p)||Ex(e,p,d))||_x(e,d)?m=!0:(a&&Tx(e,d)||kx(e,d)||Sx(e,d)?m=!0:Ix(e)?(m=!0,null===e.tag&&null===e.anchor||dx(e,"alias node should not have any properties")):wx(e,d,1===r)&&(m=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===g&&(m=s&&Ax(e,p))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&dx(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,c=e.implicitTypes.length;l<c;l+=1)if((h=e.implicitTypes[l]).resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(Hv.call(e.typeMap[e.kind||"fallback"],e.tag))h=e.typeMap[e.kind||"fallback"][e.tag];else for(h=null,l=0,c=(u=e.typeMap.multi[e.kind||"fallback"]).length;l<c;l+=1)if(e.tag.slice(0,u[l].tag.length)===u[l].tag){h=u[l];break}h||dx(e,"unknown tag !<"+e.tag+">"),null!==e.result&&h.kind!==e.kind&&dx(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result,e.tag)?(e.result=h.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):dx(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||m}function Lx(e){var t,r,n,i,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(i=e.input.charCodeAt(e.position))&&(vx(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(a=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!ex(i);)i=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&dx(e,"directive name must not be less than one character in length");0!==i;){for(;Qv(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!Kv(i));break}if(Kv(i))break;for(t=e.position;0!==i&&!ex(i);)i=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==i&&bx(e),Hv.call(gx,r)?gx[r](e,r,n):px(e,'unknown document directive "'+r+'"')}vx(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,vx(e,!0,-1)):a&&dx(e,"directives end mark is expected"),Bx(e,e.lineIndent-1,4,!1,!0),vx(e,!0,-1),e.checkLineBreaks&&Gv.test(e.input.slice(o,e.position))&&px(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&xx(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,vx(e,!0,-1)):e.position<e.length-1&&dx(e,"end of the stream or a document separator is expected")}function jx(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new ux(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,dx(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Lx(r);return r.documents}function Nx(e,t){var r=jx(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new Lb("expected a single document in the stream, but found more")}}vu(fx,"captureSegment"),vu(mx,"mergeMappings"),vu(yx,"storeMappingPair"),vu(bx,"readLineBreak"),vu(vx,"skipSeparationSpace"),vu(xx,"testDocumentSeparator"),vu(Cx,"writeFoldedLines"),vu(wx,"readPlainScalar"),vu(kx,"readSingleQuotedScalar"),vu(Sx,"readDoubleQuotedScalar"),vu(_x,"readFlowCollection"),vu(Tx,"readBlockScalar"),vu(Ax,"readBlockSequence"),vu(Ex,"readBlockMapping"),vu(Px,"readTagProperty"),vu(Mx,"readAnchorProperty"),vu(Ix,"readAlias"),vu(Bx,"composeNode"),vu(Lx,"readDocument"),vu(jx,"loadDocuments"),vu(function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=jx(e,r);if("function"!=typeof t)return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])},"loadAll$1"),vu(Nx,"load$1");var Dx={load:Nx},Ox=Object.prototype.toString,zx=Object.prototype.hasOwnProperty,Fx=65279,Rx={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},$x=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Vx=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Wx(e,t){var r,n,i,o,a,s,l;if(null===t)return{};for(r={},i=0,o=(n=Object.keys(t)).length;i<o;i+=1)a=n[i],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=e.compiledTypeMap.fallback[a])&&zx.call(l.styleAliases,s)&&(s=l.styleAliases[s]),r[a]=s;return r}function qx(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else{if(!(e<=4294967295))throw new Lb("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+Mb.repeat("0",n-t.length)+t}vu(Wx,"compileStyleMap"),vu(qx,"encodeHex");function Hx(e){this.schema=e.schema||qv,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Mb.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Wx(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ux(e,t){for(var r,n=Mb.repeat(" ",t),i=0,o=-1,a="",s=e.length;i<s;)-1===(o=e.indexOf("\n",i))?(r=e.slice(i),i=s):(r=e.slice(i,o+1),i=o+1),r.length&&"\n"!==r&&(a+=n),a+=r;return a}function Gx(e,t){return"\n"+Mb.repeat(" ",e.indent*t)}function Xx(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}function Jx(e){return 32===e||9===e}function Yx(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==Fx||65536<=e&&e<=1114111}function Zx(e){return Yx(e)&&e!==Fx&&13!==e&&10!==e}function Kx(e,t,r){var n=Zx(e),i=n&&!Jx(e);return(r?n:n&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!i)||Zx(t)&&!Jx(t)&&35===e||58===t&&i}function Qx(e){return Yx(e)&&e!==Fx&&!Jx(e)&&45!==e&&63!==e&&58!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&35!==e&&38!==e&&42!==e&&33!==e&&124!==e&&61!==e&&62!==e&&39!==e&&34!==e&&37!==e&&64!==e&&96!==e}function eC(e){return!Jx(e)&&58!==e}function tC(e,t){var r,n=e.charCodeAt(t);return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function rC(e){return/^\n* /.test(e)}vu(Hx,"State"),vu(Ux,"indentString"),vu(Gx,"generateNextLine"),vu(Xx,"testImplicitResolving"),vu(Jx,"isWhitespace"),vu(Yx,"isPrintable"),vu(Zx,"isNsCharOrWhitespace"),vu(Kx,"isPlainSafe"),vu(Qx,"isPlainSafeFirst"),vu(eC,"isPlainSafeLast"),vu(tC,"codePointAt"),vu(rC,"needIndentIndicator");function nC(e,t,r,n,i,o,a,s){var l,c=0,u=null,h=!1,d=!1,p=-1!==n,g=-1,f=Qx(tC(e,0))&&eC(tC(e,e.length-1));if(t||a)for(l=0;l<e.length;c>=65536?l+=2:l++){if(!Yx(c=tC(e,l)))return 5;f=f&&Kx(c,u,s),u=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(10===(c=tC(e,l)))h=!0,p&&(d=d||l-g-1>n&&" "!==e[g+1],g=l);else if(!Yx(c))return 5;f=f&&Kx(c,u,s),u=c}d=d||p&&l-g-1>n&&" "!==e[g+1]}return h||d?r>9&&rC(e)?5:a?2===o?5:2:d?4:3:!f||a||i(e)?2===o?5:2:1}function iC(e,t,r,n,i){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==$x.indexOf(t)||Vx.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,r),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),s=n||e.flowLevel>-1&&r>=e.flowLevel;function l(t){return Xx(e,t)}switch(vu(l,"testAmbiguity"),nC(t,s,e.indent,a,l,e.quotingType,e.forceQuotes&&!n,i)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+oC(t,e.indent)+aC(Ux(t,o));case 4:return">"+oC(t,e.indent)+aC(Ux(sC(t,a),o));case 5:return'"'+cC(t)+'"';default:throw new Lb("impossible error: invalid scalar style")}}()}function oC(e,t){var r=rC(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function aC(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function sC(e,t){for(var r,n,i,o=/(\n+)([^\n]*)/g,a=(r=-1!==(r=e.indexOf("\n"))?r:e.length,o.lastIndex=r,lC(e.slice(0,r),t)),s="\n"===e[0]||" "===e[0];i=o.exec(e);){var l=i[1],c=i[2];n=" "===c[0],a+=l+(s||n||""===c?"":"\n")+lC(c,t),s=n}return a}function lC(e,t){if(""===e||" "===e[0])return e;for(var r,n,i=/ [^ ]/g,o=0,a=0,s=0,l="";r=i.exec(e);)(s=r.index)-o>t&&(n=a>o?a:s,l+="\n"+e.slice(o,n),o=n+1),a=s;return l+="\n",e.length-o>t&&a>o?l+=e.slice(o,a)+"\n"+e.slice(a+1):l+=e.slice(o),l.slice(1)}function cC(e){for(var t,r="",n=0,i=0;i<e.length;n>=65536?i+=2:i++)n=tC(e,i),!(t=Rx[n])&&Yx(n)?(r+=e[i],n>=65536&&(r+=e[i+1])):r+=t||qx(n);return r}function uC(e,t,r){var n,i,o,a="",s=e.tag;for(n=0,i=r.length;n<i;n+=1)o=r[n],e.replacer&&(o=e.replacer.call(r,String(n),o)),(fC(e,t,o,!1,!1)||void 0===o&&fC(e,t,null,!1,!1))&&(""!==a&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=s,e.dump="["+a+"]"}function hC(e,t,r,n){var i,o,a,s="",l=e.tag;for(i=0,o=r.length;i<o;i+=1)a=r[i],e.replacer&&(a=e.replacer.call(r,String(i),a)),(fC(e,t+1,a,!0,!0,!1,!0)||void 0===a&&fC(e,t+1,null,!0,!0,!1,!0))&&(n&&""===s||(s+=Gx(e,t)),e.dump&&10===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=l,e.dump=s||"[]"}function dC(e,t,r){var n,i,o,a,s,l="",c=e.tag,u=Object.keys(r);for(n=0,i=u.length;n<i;n+=1)s="",""!==l&&(s+=", "),e.condenseFlow&&(s+='"'),a=r[o=u[n]],e.replacer&&(a=e.replacer.call(r,o,a)),fC(e,t,o,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),fC(e,t,a,!1,!1)&&(l+=s+=e.dump));e.tag=c,e.dump="{"+l+"}"}function pC(e,t,r,n){var i,o,a,s,l,c,u="",h=e.tag,d=Object.keys(r);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new Lb("sortKeys must be a boolean or a function");for(i=0,o=d.length;i<o;i+=1)c="",n&&""===u||(c+=Gx(e,t)),s=r[a=d[i]],e.replacer&&(s=e.replacer.call(r,a,s)),fC(e,t+1,a,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=Gx(e,t)),fC(e,t+1,s,!0,l)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",u+=c+=e.dump));e.tag=h,e.dump=u||"{}"}function gC(e,t,r){var n,i,o,a,s,l;for(o=0,a=(i=r?e.explicitTypes:e.implicitTypes).length;o<a;o+=1)if(((s=i[o]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof t&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(r?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(l=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===Ox.call(s.represent))n=s.represent(t,l);else{if(!zx.call(s.represent,l))throw new Lb("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');n=s.represent[l](t,l)}e.dump=n}return!0}return!1}function fC(e,t,r,n,i,o,a){e.tag=null,e.dump=r,gC(e,r,!1)||gC(e,r,!0);var s,l=Ox.call(e.dump),c=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var u,h,d="[object Object]"===l||"[object Array]"===l;if(d&&(h=-1!==(u=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||h||2!==e.indent&&t>0)&&(i=!1),h&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(d&&h&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===l)n&&0!==Object.keys(e.dump).length?(pC(e,t,e.dump,i),h&&(e.dump="&ref_"+u+e.dump)):(dC(e,t,e.dump),h&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===l)n&&0!==e.dump.length?(e.noArrayIndent&&!a&&t>0?hC(e,t-1,e.dump,i):hC(e,t,e.dump,i),h&&(e.dump="&ref_"+u+e.dump)):(uC(e,t,e.dump),h&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(e.skipInvalid)return!1;throw new Lb("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&iC(e,e.dump,t,o,c)}null!==e.tag&&"?"!==e.tag&&(s=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),s="!"===e.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",e.dump=s+" "+e.dump)}return!0}function mC(e,t){var r,n,i=[],o=[];for(yC(e,i,o),r=0,n=o.length;r<n;r+=1)t.duplicates.push(i[o[r]]);t.usedDuplicates=new Array(n)}function yC(e,t,r){var n,i,o;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===r.indexOf(i)&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)yC(e[i],t,r);else for(i=0,o=(n=Object.keys(e)).length;i<o;i+=1)yC(e[n[i]],t,r)}vu(nC,"chooseScalarStyle"),vu(iC,"writeScalar"),vu(oC,"blockHeader"),vu(aC,"dropEndingNewline"),vu(sC,"foldString"),vu(lC,"foldLine"),vu(cC,"escapeString"),vu(uC,"writeFlowSequence"),vu(hC,"writeBlockSequence"),vu(dC,"writeFlowMapping"),vu(pC,"writeBlockMapping"),vu(gC,"detectType"),vu(fC,"writeNode"),vu(mC,"getDuplicateReferences"),vu(yC,"inspectNode"),vu(function(e,t){var r=new Hx(t=t||{});r.noRefs||mC(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),fC(r,0,n,!0,!0)?r.dump+"\n":""},"dump$1"),vu(function(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}},"renamed");var bC=fv,vC=Dx.load,xC={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},CC={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function wC(e,t){if(void 0===e||void 0===t)return{angle:0,deltaX:0,deltaY:0};e=kC(e),t=kC(t);const[r,n]=[e.x,e.y],[i,o]=[t.x,t.y],a=i-r,s=o-n;return{angle:Math.atan(s/a),deltaX:a,deltaY:s}}vu(wC,"calculateDeltaAndAngle");var kC=vu(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),SC=vu(e=>({x:vu(function(t,r,n){let i=0;const o=kC(n[0]).x<kC(n[n.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(xC,e.arrowTypeStart)){const{angle:t,deltaX:r}=wC(n[0],n[1]);i=xC[e.arrowTypeStart]*Math.cos(t)*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(xC,e.arrowTypeEnd)){const{angle:t,deltaX:r}=wC(n[n.length-1],n[n.length-2]);i=xC[e.arrowTypeEnd]*Math.cos(t)*(r>=0?1:-1)}const a=Math.abs(kC(t).x-kC(n[n.length-1]).x),s=Math.abs(kC(t).y-kC(n[n.length-1]).y),l=Math.abs(kC(t).x-kC(n[0]).x),c=Math.abs(kC(t).y-kC(n[0]).y),u=xC[e.arrowTypeStart],h=xC[e.arrowTypeEnd];if(a<h&&a>0&&s<h){let e=h+1-a;e*="right"===o?-1:1,i-=e}if(l<u&&l>0&&c<u){let e=u+1-l;e*="right"===o?-1:1,i+=e}return kC(t).x+i},"x"),y:vu(function(t,r,n){let i=0;const o=kC(n[0]).y<kC(n[n.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(xC,e.arrowTypeStart)){const{angle:t,deltaY:r}=wC(n[0],n[1]);i=xC[e.arrowTypeStart]*Math.abs(Math.sin(t))*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(xC,e.arrowTypeEnd)){const{angle:t,deltaY:r}=wC(n[n.length-1],n[n.length-2]);i=xC[e.arrowTypeEnd]*Math.abs(Math.sin(t))*(r>=0?1:-1)}const a=Math.abs(kC(t).y-kC(n[n.length-1]).y),s=Math.abs(kC(t).x-kC(n[n.length-1]).x),l=Math.abs(kC(t).y-kC(n[0]).y),c=Math.abs(kC(t).x-kC(n[0]).x),u=xC[e.arrowTypeStart],h=xC[e.arrowTypeEnd];if(a<h&&a>0&&s<h){let e=h+1-a;e*="up"===o?-1:1,i-=e}if(l<u&&l>0&&c<u){let e=u+1-l;e*="up"===o?-1:1,i+=e}return kC(t).y+i},"y")}),"getLineFunctionsWithOffset"),_C=vu(({flowchart:e})=>{var t,r;const n=(null==(t=null==e?void 0:e.subGraphTitleMargin)?void 0:t.top)??0,i=(null==(r=null==e?void 0:e.subGraphTitleMargin)?void 0:r.bottom)??0;return{subGraphTitleTopMargin:n,subGraphTitleBottomMargin:i,subGraphTitleTotalMargin:n+i}},"getSubGraphTitleMargins"),TC=vu(e=>{const{handDrawnSeed:t}=Wp();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),AC=vu(e=>{const t=EC([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),EC=vu(e=>{const t=new Map;return e.forEach(e=>{const[r,n]=e.split(":");t.set(r.trim(),null==n?void 0:n.trim())}),t},"styles2Map"),PC=vu(e=>"color"===e||"font-size"===e||"font-family"===e||"font-weight"===e||"font-style"===e||"text-decoration"===e||"text-align"===e||"text-transform"===e||"line-height"===e||"letter-spacing"===e||"word-spacing"===e||"text-shadow"===e||"text-overflow"===e||"white-space"===e||"word-wrap"===e||"word-break"===e||"overflow-wrap"===e||"hyphens"===e,"isLabelStyle"),MC=vu(e=>{const{stylesArray:t}=AC(e),r=[],n=[],i=[],o=[];return t.forEach(e=>{const t=e[0];PC(t)?r.push(e.join(":")+" !important"):(n.push(e.join(":")+" !important"),t.includes("stroke")&&i.push(e.join(":")+" !important"),"fill"===t&&o.push(e.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:t,borderStyles:i,backgroundStyles:o}},"styles2String"),IC=vu((e,t)=>{var r;const{themeVariables:n,handDrawnSeed:i}=Wp(),{nodeBorder:o,mainBkg:a}=n,{stylesMap:s}=AC(e);return Object.assign({roughness:.7,fill:s.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||o,seed:i,strokeWidth:(null==(r=s.get("stroke-width"))?void 0:r.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:BC(s.get("stroke-dasharray"))},t)},"userNodeOverrides"),BC=vu(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(1===t.length){const e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},"getStrokeDashArray"),LC={},jC={};Object.defineProperty(jC,"__esModule",{value:!0}),jC.BLANK_URL=jC.relativeFirstCharacters=jC.whitespaceEscapeCharsRegex=jC.urlSchemeRegex=jC.ctrlCharactersRegex=jC.htmlCtrlEntityRegex=jC.htmlEntitiesRegex=jC.invalidProtocolRegex=void 0,jC.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,jC.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,jC.htmlCtrlEntityRegex=/&(newline|tab);/gi,jC.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,jC.urlSchemeRegex=/^.+(:|:)/gim,jC.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,jC.relativeFirstCharacters=[".","/"],jC.BLANK_URL="about:blank",Object.defineProperty(LC,"__esModule",{value:!0});var NC=LC.sanitizeUrl=function(e){if(!e)return DC.BLANK_URL;var t,r=zC(e.trim());do{t=(r=zC(r=OC(r).replace(DC.htmlCtrlEntityRegex,"").replace(DC.ctrlCharactersRegex,"").replace(DC.whitespaceEscapeCharsRegex,"").trim())).match(DC.ctrlCharactersRegex)||r.match(DC.htmlEntitiesRegex)||r.match(DC.htmlCtrlEntityRegex)||r.match(DC.whitespaceEscapeCharsRegex)}while(t&&t.length>0);var n=r;if(!n)return DC.BLANK_URL;if(function(e){return DC.relativeFirstCharacters.indexOf(e[0])>-1}(n))return n;var i=n.trimStart(),o=i.match(DC.urlSchemeRegex);if(!o)return n;var a=o[0].toLowerCase().trim();if(DC.invalidProtocolRegex.test(a))return DC.BLANK_URL;var s=i.replace(/\\/g,"/");if("mailto:"===a||a.includes("://"))return s;if("http:"===a||"https:"===a){if(!function(e){return URL.canParse(e)}(s))return DC.BLANK_URL;var l=new URL(s);return l.protocol=l.protocol.toLowerCase(),l.hostname=l.hostname.toLowerCase(),l.toString()}return s},DC=jC;function OC(e){return e.replace(DC.ctrlCharactersRegex,"").replace(DC.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}function zC(e){try{return decodeURIComponent(e)}catch(t){return e}}var FC="object"==typeof global&&global&&global.Object===Object&&global,RC="object"==typeof self&&self&&self.Object===Object&&self,$C=FC||RC||Function("return this")(),VC=$C.Symbol,WC=Object.prototype,qC=WC.hasOwnProperty,HC=WC.toString,UC=VC?VC.toStringTag:void 0;var GC=Object.prototype.toString;var XC=VC?VC.toStringTag:void 0;function JC(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":XC&&XC in Object(e)?function(e){var t=qC.call(e,UC),r=e[UC];try{e[UC]=void 0;var n=!0}catch(o){}var i=HC.call(e);return n&&(t?e[UC]=r:delete e[UC]),i}(e):function(e){return GC.call(e)}(e)}function YC(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ZC(e){if(!YC(e))return!1;var t=JC(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var KC,QC=$C["__core-js_shared__"],ew=(KC=/[^.]+$/.exec(QC&&QC.keys&&QC.keys.IE_PROTO||""))?"Symbol(src)_1."+KC:"";var tw=Function.prototype.toString;function rw(e){if(null!=e){try{return tw.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var nw=/^\[object .+?Constructor\]$/,iw=Function.prototype,ow=Object.prototype,aw=iw.toString,sw=ow.hasOwnProperty,lw=RegExp("^"+aw.call(sw).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cw(e){return!(!YC(e)||(t=e,ew&&ew in t))&&(ZC(e)?lw:nw).test(rw(e));var t}function uw(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return cw(r)?r:void 0}var hw=uw(Object,"create");var dw=Object.prototype.hasOwnProperty;var pw=Object.prototype.hasOwnProperty;function gw(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function fw(e,t){return e===t||e!=e&&t!=t}function mw(e,t){for(var r=e.length;r--;)if(fw(e[r][0],t))return r;return-1}gw.prototype.clear=function(){this.__data__=hw?hw(null):{},this.size=0},gw.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},gw.prototype.get=function(e){var t=this.__data__;if(hw){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return dw.call(t,e)?t[e]:void 0},gw.prototype.has=function(e){var t=this.__data__;return hw?void 0!==t[e]:pw.call(t,e)},gw.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=hw&&void 0===t?"__lodash_hash_undefined__":t,this};var yw=Array.prototype.splice;function bw(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}bw.prototype.clear=function(){this.__data__=[],this.size=0},bw.prototype.delete=function(e){var t=this.__data__,r=mw(t,e);return!(r<0)&&(r==t.length-1?t.pop():yw.call(t,r,1),--this.size,!0)},bw.prototype.get=function(e){var t=this.__data__,r=mw(t,e);return r<0?void 0:t[r][1]},bw.prototype.has=function(e){return mw(this.__data__,e)>-1},bw.prototype.set=function(e,t){var r=this.__data__,n=mw(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var vw=uw($C,"Map");function xw(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function Cw(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Cw.prototype.clear=function(){this.size=0,this.__data__={hash:new gw,map:new(vw||bw),string:new gw}},Cw.prototype.delete=function(e){var t=xw(this,e).delete(e);return this.size-=t?1:0,t},Cw.prototype.get=function(e){return xw(this,e).get(e)},Cw.prototype.has=function(e){return xw(this,e).has(e)},Cw.prototype.set=function(e,t){var r=xw(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function ww(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(ww.Cache||Cw),r}ww.Cache=Cw;function kw(e){var t=this.__data__=new bw(e);this.size=t.size}kw.prototype.clear=function(){this.__data__=new bw,this.size=0},kw.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},kw.prototype.get=function(e){return this.__data__.get(e)},kw.prototype.has=function(e){return this.__data__.has(e)},kw.prototype.set=function(e,t){var r=this.__data__;if(r instanceof bw){var n=r.__data__;if(!vw||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Cw(n)}return r.set(e,t),this.size=r.size,this};var Sw=function(){try{var e=uw(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();function _w(e,t,r){"__proto__"==t&&Sw?Sw(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Tw(e,t,r){(void 0!==r&&!fw(e[t],r)||void 0===r&&!(t in e))&&_w(e,t,r)}var Aw=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[++n];if(!1===t(i[s],s,i))break}return e},Ew="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pw=Ew&&"object"==typeof module&&module&&!module.nodeType&&module,Mw=Pw&&Pw.exports===Ew?$C.Buffer:void 0,Iw=Mw?Mw.allocUnsafe:void 0;function Bw(e,t){if(t)return e.slice();var r=e.length,n=Iw?Iw(r):new e.constructor(r);return e.copy(n),n}var Lw=$C.Uint8Array;function jw(e){var t=new e.constructor(e.byteLength);return new Lw(t).set(new Lw(e)),t}function Nw(e,t){var r=t?jw(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Dw(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Ow=Object.create,zw=function(){function e(){}return function(t){if(!YC(t))return{};if(Ow)return Ow(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Fw(e,t){return function(r){return e(t(r))}}var Rw=Fw(Object.getPrototypeOf,Object),$w=Object.prototype;function Vw(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$w)}function Ww(e){return"function"!=typeof e.constructor||Vw(e)?{}:zw(Rw(e))}function qw(e){return null!=e&&"object"==typeof e}function Hw(e){return qw(e)&&"[object Arguments]"==JC(e)}var Uw=Object.prototype,Gw=Uw.hasOwnProperty,Xw=Uw.propertyIsEnumerable,Jw=Hw(function(){return arguments}())?Hw:function(e){return qw(e)&&Gw.call(e,"callee")&&!Xw.call(e,"callee")},Yw=Array.isArray;function Zw(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Kw(e){return null!=e&&Zw(e.length)&&!ZC(e)}var Qw="object"==typeof exports&&exports&&!exports.nodeType&&exports,ek=Qw&&"object"==typeof module&&module&&!module.nodeType&&module,tk=ek&&ek.exports===Qw?$C.Buffer:void 0,rk=(tk?tk.isBuffer:void 0)||function(){return!1},nk=Function.prototype,ik=Object.prototype,ok=nk.toString,ak=ik.hasOwnProperty,sk=ok.call(Object);var lk={};function ck(e){return function(t){return e(t)}}lk["[object Float32Array]"]=lk["[object Float64Array]"]=lk["[object Int8Array]"]=lk["[object Int16Array]"]=lk["[object Int32Array]"]=lk["[object Uint8Array]"]=lk["[object Uint8ClampedArray]"]=lk["[object Uint16Array]"]=lk["[object Uint32Array]"]=!0,lk["[object Arguments]"]=lk["[object Array]"]=lk["[object ArrayBuffer]"]=lk["[object Boolean]"]=lk["[object DataView]"]=lk["[object Date]"]=lk["[object Error]"]=lk["[object Function]"]=lk["[object Map]"]=lk["[object Number]"]=lk["[object Object]"]=lk["[object RegExp]"]=lk["[object Set]"]=lk["[object String]"]=lk["[object WeakMap]"]=!1;var uk="object"==typeof exports&&exports&&!exports.nodeType&&exports,hk=uk&&"object"==typeof module&&module&&!module.nodeType&&module,dk=hk&&hk.exports===uk&&FC.process,pk=function(){try{var e=hk&&hk.require&&hk.require("util").types;return e||dk&&dk.binding&&dk.binding("util")}catch(t){}}(),gk=pk&&pk.isTypedArray,fk=gk?ck(gk):function(e){return qw(e)&&Zw(e.length)&&!!lk[JC(e)]};function mk(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var yk=Object.prototype.hasOwnProperty;function bk(e,t,r){var n=e[t];yk.call(e,t)&&fw(n,r)&&(void 0!==r||t in e)||_w(e,t,r)}function vk(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=void 0;void 0===l&&(l=e[s]),i?_w(r,s,l):bk(r,s,l)}return r}var xk=/^(?:0|[1-9]\d*)$/;function Ck(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&xk.test(e))&&e>-1&&e%1==0&&e<t}var wk=Object.prototype.hasOwnProperty;function kk(e,t){var r=Yw(e),n=!r&&Jw(e),i=!r&&!n&&rk(e),o=!r&&!n&&!i&&fk(e),a=r||n||i||o,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=s.length;for(var c in e)!t&&!wk.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ck(c,l))||s.push(c);return s}var Sk=Object.prototype.hasOwnProperty;function _k(e){if(!YC(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=Vw(e),r=[];for(var n in e)("constructor"!=n||!t&&Sk.call(e,n))&&r.push(n);return r}function Tk(e){return Kw(e)?kk(e,!0):_k(e)}function Ak(e,t,r,n,i,o,a){var s=mk(e,r),l=mk(t,r),c=a.get(l);if(c)Tw(e,r,c);else{var u,h=o?o(s,l,r+"",e,t,a):void 0,d=void 0===h;if(d){var p=Yw(l),g=!p&&rk(l),f=!p&&!g&&fk(l);h=l,p||g||f?Yw(s)?h=s:qw(u=s)&&Kw(u)?h=Dw(s):g?(d=!1,h=Bw(l,!0)):f?(d=!1,h=Nw(l,!0)):h=[]:function(e){if(!qw(e)||"[object Object]"!=JC(e))return!1;var t=Rw(e);if(null===t)return!0;var r=ak.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ok.call(r)==sk}(l)||Jw(l)?(h=s,Jw(s)?h=function(e){return vk(e,Tk(e))}(s):YC(s)&&!ZC(s)||(h=Ww(l))):d=!1}d&&(a.set(l,h),i(h,l,n,o,a),a.delete(l)),Tw(e,r,h)}}function Ek(e,t,r,n,i){e!==t&&Aw(t,function(o,a){if(i||(i=new kw),YC(o))Ak(e,t,a,r,Ek,n,i);else{var s=n?n(mk(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),Tw(e,a,s)}},Tk)}function Pk(e){return e}var Mk=Math.max;var Ik=Sw?function(e,t){return Sw(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Pk,Bk=Date.now;var Lk,jk,Nk,Dk=(Lk=Ik,jk=0,Nk=0,function(){var e=Bk(),t=16-(e-Nk);if(Nk=e,t>0){if(++jk>=800)return arguments[0]}else jk=0;return Lk.apply(void 0,arguments)});function Ok(e,t){return Dk(function(e,t,r){return t=Mk(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=Mk(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,s)}}(e,t,Pk),e+"")}var zk,Fk=(zk=function(e,t,r){Ek(e,t,r)},Ok(function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=zk.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!YC(r))return!1;var n=typeof t;return!!("number"==n?Kw(r)&&Ck(t,r.length):"string"==n&&t in r)&&fw(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r<n;){var a=t[r];a&&zk(e,a,r,i)}return e})),Rk={curveBasis:Ry,curveBasisClosed:function(e){return new $y(e)},curveBasisOpen:function(e){return new Vy(e)},curveBumpX:Ny,curveBumpY:Dy,curveBundle:qy,curveCardinalClosed:Jy,curveCardinalOpen:Zy,curveCardinal:Gy,curveCatmullRomClosed:rb,curveCatmullRomOpen:ib,curveCatmullRom:eb,curveLinear:My,curveLinearClosed:function(e){return new ob(e)},curveMonotoneX:pb,curveMonotoneY:gb,curveNatural:yb,curveStep:vb,curveStepAfter:Cb,curveStepBefore:xb},$k=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Vk=vu(function(e,t){const r=Wk(e,/(?:init\b)|(?:initialize\b)/);let n={};if(Array.isArray(r)){const e=r.map(e=>e.args);Ad(e),n=ld(n,[...e])}else n=r.args;if(!n)return;let i=nd(e,t);const o="config";return void 0!==n[o]&&("flowchart-v2"===i&&(i="flowchart"),n[i]=n[o],delete n[o]),n},"detectInit"),Wk=vu(function(e,t=null){var r,n;try{const i=new RegExp(`[%]{2}(?![{]${$k.source})(?=[}][%]{2}).*\n`,"ig");let o;e=e.trim().replace(i,"").replace(/'/gm,'"'),wu.debug(`Detecting diagram directive${null!==t?" type:"+t:""} based on the text:${e}`);const a=[];for(;null!==(o=Qh.exec(e));)if(o.index===Qh.lastIndex&&Qh.lastIndex++,o&&!t||t&&(null==(r=o[1])?void 0:r.match(t))||t&&(null==(n=o[2])?void 0:n.match(t))){const e=o[1]?o[1]:o[2],t=o[3]?o[3].trim():o[4]?JSON.parse(o[4].trim()):null;a.push({type:e,args:t})}return 0===a.length?{type:e,args:null}:1===a.length?a[0]:a}catch(i){return wu.error(`ERROR: ${i.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),qk=vu(function(e){return e.replace(Qh,"")},"removeDirectives"),Hk=vu(function(e,t){for(const[r,n]of t.entries())if(n.match(e))return r;return-1},"isSubstringInArray");function Uk(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return Rk[r]??t}function Gk(e,t){const r=e.trim();if(r)return"loose"!==t.securityLevel?NC(r):r}vu(Uk,"interpolateToCurve"),vu(Gk,"formatUrl");var Xk=vu((e,...t)=>{const r=e.split("."),n=r.length-1,i=r[n];let o=window;for(let a=0;a<n;a++)if(o=o[r[a]],!o)return void wu.error(`Function name: ${e} not found in window`);o[i](...t)},"runFunc");function Jk(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function Yk(e){let t,r=0;e.forEach(e=>{r+=Jk(e,t),t=e});return Qk(e,r/2)}function Zk(e){return 1===e.length?e[0]:Yk(e)}vu(Jk,"distance"),vu(Yk,"traverseEdge"),vu(Zk,"calcLabelPosition");var Kk=vu((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),Qk=vu((e,t)=>{let r,n=t;for(const i of e){if(r){const e=Jk(i,r);if(0===e)return r;if(e<n)n-=e;else{const t=n/e;if(t<=0)return r;if(t>=1)return{x:i.x,y:i.y};if(t>0&&t<1)return{x:Kk((1-t)*r.x+t*i.x,5),y:Kk((1-t)*r.y+t*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),eS=vu((e,t,r)=>{wu.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const n=Qk(t,25),i=e?10:5,o=Math.atan2(t[0].y-n.y,t[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(o)*i+(t[0].x+n.x)/2,a.y=-Math.cos(o)*i+(t[0].y+n.y)/2,a},"calcCardinalityPosition");function tS(e,t,r){const n=structuredClone(r);wu.info("our points",n),"start_left"!==t&&"start_right"!==t&&n.reverse();const i=Qk(n,25+e),o=10+.5*e,a=Math.atan2(n[0].y-i.y,n[0].x-i.x),s={x:0,y:0};return"start_left"===t?(s.x=Math.sin(a+Math.PI)*o+(n[0].x+i.x)/2,s.y=-Math.cos(a+Math.PI)*o+(n[0].y+i.y)/2):"end_right"===t?(s.x=Math.sin(a-Math.PI)*o+(n[0].x+i.x)/2-5,s.y=-Math.cos(a-Math.PI)*o+(n[0].y+i.y)/2-5):"end_left"===t?(s.x=Math.sin(a)*o+(n[0].x+i.x)/2-5,s.y=-Math.cos(a)*o+(n[0].y+i.y)/2-5):(s.x=Math.sin(a)*o+(n[0].x+i.x)/2,s.y=-Math.cos(a)*o+(n[0].y+i.y)/2),s}function rS(e){let t="",r="";for(const n of e)void 0!==n&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":t=t+n+";");return{style:t,labelStyle:r}}vu(tS,"calcTerminalLabelPosition"),vu(rS,"getStylesFromArray");var nS=0,iS=vu(()=>(nS++,"id-"+Math.random().toString(36).substr(2,12)+"-"+nS),"generateId");function oS(e){let t="";const r="0123456789abcdef";for(let n=0;n<e;n++)t+=r.charAt(Math.floor(16*Math.random()));return t}vu(oS,"makeRandomHex");var aS=vu(e=>oS(e.length),"random"),sS=vu(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),lS=vu(function(e,t){const r=t.text.replace(xp.lineBreakRegex," "),[,n]=vS(t.fontSize),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.style("text-anchor",t.anchor),i.style("font-family",t.fontFamily),i.style("font-size",n),i.style("font-weight",t.fontWeight),i.attr("fill",t.fill),void 0!==t.class&&i.attr("class",t.class);const o=i.append("tspan");return o.attr("x",t.x+2*t.textMargin),o.attr("fill",t.fill),o.text(r),i},"drawSimpleText"),cS=ww((e,t,r)=>{if(!e)return e;if(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),xp.lineBreakRegex.test(e))return e;const n=e.split(" ").filter(Boolean),i=[];let o="";return n.forEach((e,a)=>{const s=dS(`${e} `,r),l=dS(o,r);if(s>t){const{hyphenatedStrings:n,remainingWord:a}=uS(e,t,"-",r);i.push(o,...n),o=a}else l+s>=t?(i.push(o),o=e):o=[o,e].filter(Boolean).join(" ");a+1===n.length&&i.push(o)}),i.filter(e=>""!==e).join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),uS=ww((e,t,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const i=[...e],o=[];let a="";return i.forEach((e,s)=>{const l=`${a}${e}`;if(dS(l,n)>=t){const e=s+1,t=i.length===e,n=`${l}${r}`;o.push(t?l:n),a=""}else a=l}),{hyphenatedStrings:o,remainingWord:a}},(e,t,r="-",n)=>`${e}${t}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function hS(e,t){return gS(e,t).height}function dS(e,t){return gS(e,t).width}vu(hS,"calculateTextHeight"),vu(dS,"calculateTextWidth");var pS,gS=ww((e,t)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=t;if(!e)return{width:0,height:0};const[,o]=vS(r),a=["sans-serif",n],s=e.split(xp.lineBreakRegex),l=[],c=yf("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const h of a){let e=0;const t={width:0,height:0,lineHeight:0};for(const r of s){const n=sS();n.text=r||"";const a=lS(u,n).style("font-size",o).style("font-weight",i).style("font-family",h),s=(a._groups||a)[0][0].getBBox();if(0===s.width&&0===s.height)throw new Error("svg element not in render tree");t.width=Math.round(Math.max(t.width,s.width)),e=Math.round(s.height),t.height+=e,t.lineHeight=Math.round(Math.max(t.lineHeight,e))}l.push(t)}u.remove();return l[isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),fS=(vu(p=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}},"InitIDGenerator"),p),mS=vu(function(e){return pS=pS||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),pS.innerHTML=e,unescape(pS.textContent)},"entityDecode");function yS(e){return"str"in e}vu(yS,"isDetailedError");var bS=vu((e,t,r,n)=>{var i;if(!n)return;const o=null==(i=e.node())?void 0:i.getBBox();o&&e.append("text").text(n).attr("text-anchor","middle").attr("x",o.x+o.width/2).attr("y",-r).attr("class",t)},"insertTitle"),vS=vu(e=>{if("number"==typeof e)return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function xS(e,t){return Fk({},e,t)}vu(xS,"cleanAndMerge");var CS={assignWithDepth:ld,wrapLabel:cS,calculateTextHeight:hS,calculateTextWidth:dS,calculateTextDimensions:gS,cleanAndMerge:xS,detectInit:Vk,detectDirective:Wk,isSubstringInArray:Hk,interpolateToCurve:Uk,calcLabelPosition:Zk,calcCardinalityPosition:eS,calcTerminalLabelPosition:tS,formatUrl:Gk,getStylesFromArray:rS,generateId:iS,random:aS,runFunc:Xk,entityDecode:mS,insertTitle:bS,isLabelCoordinateInPath:TS,parseFontSize:vS,InitIDGenerator:fS},wS=vu(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/#\w+;/g,function(e){const t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?"fl°°"+t+"¶ß":"fl°"+t+"¶ß"}),t},"encodeEntities"),kS=vu(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),SS=vu((e,t,{counter:r=0,prefix:n,suffix:i},o)=>o||`${n?`${n}_`:""}${e}_${t}_${r}${i?`_${i}`:""}`,"getEdgeId");function _S(e){return e??null}function TS(e,t){const r=Math.round(e.x),n=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(r.toString())||i.includes(n.toString())}vu(_S,"handleUndefinedAttr"),vu(TS,"isLabelCoordinateInPath");const AS=Object.freeze({left:0,top:0,width:16,height:16}),ES=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),PS=Object.freeze({...AS,...ES}),MS=Object.freeze({...PS,body:"",hidden:!1}),IS=Object.freeze({width:null,height:null}),BS=Object.freeze({...IS,...ES}),LS=(e,t)=>!!e&&!(!(t&&""===e.prefix||e.prefix)||!e.name);function jS(e,t){const r=function(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}(e,t);for(const n in MS)n in ES?n in e&&!(n in r)&&(r[n]=ES[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function NS(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function a(e){o=jS(n[e]||i[e],o)}return a(t),r.forEach(a),jS(e,o)}function DS(e,t){if(e.icons[t])return NS(e,t,[]);const r=function(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);return(t||Object.keys(r).concat(Object.keys(n))).forEach(function e(t){if(r[t])return i[t]=[];if(!(t in i)){i[t]=null;const r=n[t]&&n[t].parent,o=r&&e(r);o&&(i[t]=[r].concat(o))}return i[t]}),i}(e,[t])[t];return r?NS(e,t,r):null}const OS=/(-?[0-9.]*[0-9]+[0-9.]*)/g,zS=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function FS(e,t,r){if(1===t)return e;if(r=r||100,"number"==typeof e)return Math.ceil(e*t*r)/r;if("string"!=typeof e)return e;const n=e.split(OS);if(null===n||!n.length)return e;const i=[];let o=n.shift(),a=zS.test(o);for(;;){if(a){const e=parseFloat(o);isNaN(e)?i.push(o):i.push(Math.ceil(e*t*r)/r)}else i.push(o);if(o=n.shift(),void 0===o)return i.join("");a=!a}}const RS=/\sid="(\S+)"/g,$S=new Map;function VS(e){const t=[];let r;for(;r=RS.exec(e);)t.push(r[1]);if(!t.length)return e;const n="suffix"+(16777216*Math.random()|Date.now()).toString(16);return t.forEach(t=>{const r=function(e){e=e.replace(/[0-9]+$/,"")||"a";const t=$S.get(e)||0;return $S.set(e,t+1),t?`${e}${t}`:e}(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+r+n+"$3")}),e=e.replace(new RegExp(n,"g"),"")}function WS(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var qS={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function HS(e){qS=e}var US={exec:()=>null};function GS(e,t=""){let r="string"==typeof e?e:e.source,n={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(JS.caret,"$1"),r=r.replace(e,i),n},getRegex:()=>new RegExp(r,t)};return n}var XS=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),JS={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},YS=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ZS=/(?:[*+-]|\d{1,9}[.)])/,KS=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,QS=GS(KS).replace(/bull/g,ZS).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),e_=GS(KS).replace(/bull/g,ZS).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),t_=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,r_=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,n_=GS(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",r_).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),i_=GS(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ZS).getRegex(),o_="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",a_=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,s_=GS("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",a_).replace("tag",o_).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),l_=GS(t_).replace("hr",YS).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",o_).getRegex(),c_={blockquote:GS(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",l_).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:n_,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:YS,html:s_,lheading:QS,list:i_,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:l_,table:US,text:/^[^\n]+/},u_=GS("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",YS).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",o_).getRegex(),h_={...c_,lheading:e_,table:u_,paragraph:GS(t_).replace("hr",YS).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",u_).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",o_).getRegex()},d_={...c_,html:GS("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",a_).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:US,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:GS(t_).replace("hr",YS).replace("heading"," *#{1,6} *[^\n]").replace("lheading",QS).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},p_=/^( {2,}|\\)\n(?!\s*$)/,g_=/[\p{P}\p{S}]/u,f_=/[\s\p{P}\p{S}]/u,m_=/[^\s\p{P}\p{S}]/u,y_=GS(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,f_).getRegex(),b_=/(?!~)[\p{P}\p{S}]/u,v_=GS(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",XS?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),x_=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,C_=GS(x_,"u").replace(/punct/g,g_).getRegex(),w_=GS(x_,"u").replace(/punct/g,b_).getRegex(),k_="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",S_=GS(k_,"gu").replace(/notPunctSpace/g,m_).replace(/punctSpace/g,f_).replace(/punct/g,g_).getRegex(),__=GS(k_,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,b_).getRegex(),T_=GS("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,m_).replace(/punctSpace/g,f_).replace(/punct/g,g_).getRegex(),A_=GS(/\\(punct)/,"gu").replace(/punct/g,g_).getRegex(),E_=GS(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),P_=GS(a_).replace("(?:--\x3e|$)","--\x3e").getRegex(),M_=GS("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",P_).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),I_=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,B_=GS(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",I_).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),L_=GS(/^!?\[(label)\]\[(ref)\]/).replace("label",I_).replace("ref",r_).getRegex(),j_=GS(/^!?\[(ref)\](?:\[\])?/).replace("ref",r_).getRegex(),N_=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,D_={_backpedal:US,anyPunctuation:A_,autolink:E_,blockSkip:v_,br:p_,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:US,emStrongLDelim:C_,emStrongRDelimAst:S_,emStrongRDelimUnd:T_,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:B_,nolink:j_,punctuation:y_,reflink:L_,reflinkSearch:GS("reflink|nolink(?!\\()","g").replace("reflink",L_).replace("nolink",j_).getRegex(),tag:M_,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:US},O_={...D_,link:GS(/^!?\[(label)\]\((.*?)\)/).replace("label",I_).getRegex(),reflink:GS(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",I_).getRegex()},z_={...D_,emStrongRDelimAst:__,emStrongLDelim:w_,url:GS(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",N_).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:GS(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",N_).getRegex()},F_={...z_,br:GS(p_).replace("{2,}","*").getRegex(),text:GS(z_.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},R_={normal:c_,gfm:h_,pedantic:d_},$_={normal:D_,gfm:z_,breaks:F_,pedantic:O_},V_={"&":"&","<":"<",">":">",'"':""","'":"'"},W_=e=>V_[e];function q_(e,t){if(t){if(JS.escapeTest.test(e))return e.replace(JS.escapeReplace,W_)}else if(JS.escapeTestNoEncode.test(e))return e.replace(JS.escapeReplaceNoEncode,W_);return e}function H_(e){try{e=encodeURI(e).replace(JS.percentDecode,"%")}catch{return null}return e}function U_(e,t){var r;let n=e.replace(JS.findPipe,(e,t,r)=>{let n=!1,i=t;for(;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"}).split(JS.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!(null==(r=n.at(-1))?void 0:r.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(JS.slashPipe,"|");return n}function G_(e,t,r){let n=e.length;if(0===n)return"";let i=0;for(;i<n;){if(e.charAt(n-i-1)!==t)break;i++}return e.slice(0,n-i)}function X_(e,t,r,n,i){let o=t.href,a=t.title||null,s=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:r,href:o,title:a,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}var J_=class{constructor(e){y(this,"options"),y(this,"rules"),y(this,"lexer"),this.options=e||qS}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:G_(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],r=function(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(null===n)return t;let i=n[1];return t.split("\n").map(e=>{let t=e.match(r.other.beginningSpace);if(null===t)return e;let[n]=t;return n.length>=i.length?e.slice(i.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=G_(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:G_(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=G_(t[0],"\n").split("\n"),r="",n="",i=[];for(;e.length>0;){let t,o=!1,a=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))a.push(e[t]),o=!0;else{if(o)break;a.push(e[t])}e=e.slice(t);let s=a.join("\n"),l=s.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}\n${s}`:s,n=n?`${n}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if("code"===(null==u?void 0:u.type))break;if("blockquote"===(null==u?void 0:u.type)){let t=u,o=t.raw+"\n"+e.join("\n"),a=this.blockquote(o);i[i.length-1]=a,r=r.substring(0,r.length-t.raw.length)+a.raw,n=n.substring(0,n.length-t.text.length)+a.text;break}if("list"===(null==u?void 0:u.type)){let t=u,o=t.raw+"\n"+e.join("\n"),a=this.list(o);i[i.length-1]=a,r=r.substring(0,r.length-u.raw.length)+a.raw,n=n.substring(0,n.length-t.raw.length)+a.raw,e=o.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:r,tokens:i,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let o=this.rules.other.listItemRegex(r),a=!1;for(;e;){let r=!1,n="",s="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;n=t[0],e=e.substring(n.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,s=l.trimStart()):u?h=t[1].length+1:(h=t[2].search(this.rules.other.nonSpaceChar),h=h>4?1:h,s=l.slice(h),h+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),r=!0),!r){let t=this.rules.other.nextBulletRegex(h),r=this.rules.other.hrRegex(h),i=this.rules.other.fencesBeginRegex(h),o=this.rules.other.headingBeginRegex(h),a=this.rules.other.htmlBeginRegex(h);for(;e;){let d,p=e.split("\n",1)[0];if(c=p,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),d=c):d=c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||o.test(c)||a.test(c)||t.test(c)||r.test(c))break;if(d.search(this.rules.other.nonSpaceChar)>=h||!c.trim())s+="\n"+d.slice(h);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||o.test(l)||r.test(l))break;s+="\n"+c}!u&&!c.trim()&&(u=!0),n+=p+"\n",e=e.substring(p.length+1),l=d.slice(h)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(a=!0));let d,p=null;this.options.gfm&&(p=this.rules.other.listIsTask.exec(s),p&&(d="[ ] "!==p[0],s=s.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:n,task:!!p,checked:d,loose:!1,text:s,tokens:[]}),i.raw+=n}let s=i.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>"space"===e.type),r=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=r}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){var t;let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=U_(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(null==(t=r[3])?void 0:t.trim())?r[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],a={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let e of i)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of o)a.rows.push(U_(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=G_(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let r=0;for(let n=0;n<e.length;n++)if("\\"===e[n])n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?r.slice(1):r.slice(1,-1)),X_(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=t[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return X_(r,e,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!n[1]&&!n[2]||!r||this.rules.inline.punctuation.exec(r))){let r,i,o=[...n[0]].length-1,a=o,s=0,l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+o);null!=(n=l.exec(t));){if(r=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!r)continue;if(i=[...r].length,n[3]||n[4]){a+=i;continue}if((n[5]||n[6])&&o%3&&!((o+i)%3)){s+=i;continue}if(a-=i,a>0)continue;i=Math.min(i,i+a+s);let t=[...n[0]][0].length,l=e.slice(0,o+n.index+t+i);if(Math.min(o,i)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(e),n=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return r&&n&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,r;return"@"===t[2]?(e=t[1],r="mailto:"+e):(e=t[1],r=e),{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var t;let r;if(r=this.rules.inline.url.exec(e)){let e,n;if("@"===r[2])e=r[0],n="mailto:"+e;else{let i;do{i=r[0],r[0]=(null==(t=this.rules.inline._backpedal.exec(r[0]))?void 0:t[0])??""}while(i!==r[0]);e=r[0],n="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},Y_=class e{constructor(e){y(this,"tokens"),y(this,"options"),y(this,"state"),y(this,"tokenizer"),y(this,"inlineQueue"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||qS,this.options.tokenizer=this.options.tokenizer||new J_,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:JS,block:R_.normal,inline:$_.normal};this.options.pedantic?(t.block=R_.pedantic,t.inline=$_.pedantic):this.options.gfm&&(t.block=R_.gfm,this.options.breaks?t.inline=$_.breaks:t.inline=$_.gfm),this.tokenizer.rules=t}static get rules(){return{block:R_,inline:$_}}static lex(t,r){return new e(r).lex(t)}static lexInline(t,r){return new e(r).inlineTokens(t)}lex(e){e=e.replace(JS.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],r=!1){var n,i,o;for(this.options.pedantic&&(e=e.replace(JS.tabCharGlobal," ").replace(JS.spaceLine,""));e;){let a;if(null==(i=null==(n=this.options.extensions)?void 0:n.block)?void 0:i.some(r=>!!(a=r.call({lexer:this},e,t))&&(e=e.substring(a.raw.length),t.push(a),!0)))continue;if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length);let r=t.at(-1);1===a.raw.length&&void 0!==r?r.raw+="\n":t.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length);let r=t.at(-1);"paragraph"===(null==r?void 0:r.type)||"text"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+a.raw,r.text+="\n"+a.text,this.inlineQueue.at(-1).src=r.text):t.push(a);continue}if(a=this.tokenizer.fences(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.heading(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.hr(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.blockquote(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.list(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.html(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.def(e)){e=e.substring(a.raw.length);let r=t.at(-1);"paragraph"===(null==r?void 0:r.type)||"text"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+a.raw,r.text+="\n"+a.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},t.push(a));continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),t.push(a);continue}let s=e;if(null==(o=this.options.extensions)?void 0:o.startBlock){let t,r=1/0,n=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(s=e.substring(0,r+1))}if(this.state.top&&(a=this.tokenizer.paragraph(s))){let n=t.at(-1);r&&"paragraph"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+a.raw,n.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(a),r=s.length!==e.length,e=e.substring(a.raw.length);continue}if(a=this.tokenizer.text(e)){e=e.substring(a.raw.length);let r=t.at(-1);"text"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+a.raw,r.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(a);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var r,n,i,o,a;let s,l=e,c=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(c=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(c=this.tokenizer.rules.inline.anyPunctuation.exec(l));)l=l.slice(0,c.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(c=this.tokenizer.rules.inline.blockSkip.exec(l));)s=c[2]?c[2].length:0,l=l.slice(0,c.index+s)+"["+"a".repeat(c[0].length-s-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);l=(null==(n=null==(r=this.options.hooks)?void 0:r.emStrongMask)?void 0:n.call({lexer:this},l))??l;let u=!1,h="";for(;e;){let r;if(u||(h=""),u=!1,null==(o=null==(i=this.options.extensions)?void 0:i.inline)?void 0:o.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===r.type&&"text"===(null==n?void 0:n.type)?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,l,h)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let n=e;if(null==(a=this.options.extensions)?void 0:a.startInline){let t,r=1/0,i=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},i),"number"==typeof t&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(n=e.substring(0,r+1))}if(r=this.tokenizer.inlineText(n)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(h=r.raw.slice(-1)),u=!0;let n=t.at(-1);"text"===(null==n?void 0:n.type)?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},Z_=class{constructor(e){y(this,"options"),y(this,"parser"),this.options=e||qS}space(e){return""}code({text:e,lang:t,escaped:r}){var n;let i=null==(n=(t||"").match(JS.notSpaceStart))?void 0:n[0],o=e.replace(JS.endingNewline,"")+"\n";return i?'<pre><code class="language-'+q_(i)+'">'+(r?o:q_(o,!0))+"</code></pre>\n":"<pre><code>"+(r?o:q_(o,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,r=e.start,n="";for(let o=0;o<e.items.length;o++){let t=e.items[o];n+=this.listitem(t)}let i=t?"ol":"ul";return"<"+i+(t&&1!==r?' start="'+r+'"':"")+">\n"+n+"</"+i+">\n"}listitem(e){var t;let r="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===(null==(t=e.tokens[0])?void 0:t.type)?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+q_(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):r+=n+" "}return r+=this.parser.parse(e.tokens,!!e.loose),`<li>${r}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",r="";for(let i=0;i<e.header.length;i++)r+=this.tablecell(e.header[i]);t+=this.tablerow({text:r});let n="";for(let i=0;i<e.rows.length;i++){let t=e.rows[i];r="";for(let e=0;e<t.length;e++)r+=this.tablecell(t[e]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+n+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${q_(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),i=H_(e);if(null===i)return n;let o='<a href="'+(e=i)+'"';return t&&(o+=' title="'+q_(t)+'"'),o+=">"+n+"</a>",o}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=H_(e);if(null===i)return q_(r);let o=`<img src="${e=i}" alt="${r}"`;return t&&(o+=` title="${q_(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:q_(e.text)}},K_=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Q_=class e{constructor(e){y(this,"options"),y(this,"renderer"),y(this,"textRenderer"),this.options=e||qS,this.options.renderer=this.options.renderer||new Z_,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new K_}static parse(t,r){return new e(r).parse(t)}static parseInline(t,r){return new e(r).parseInline(t)}parse(e,t=!0){var r,n;let i="";for(let o=0;o<e.length;o++){let a=e[o];if(null==(n=null==(r=this.options.extensions)?void 0:r.renderers)?void 0:n[a.type]){let e=a,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){i+=t||"";continue}}let s=a;switch(s.type){case"space":i+=this.renderer.space(s);continue;case"hr":i+=this.renderer.hr(s);continue;case"heading":i+=this.renderer.heading(s);continue;case"code":i+=this.renderer.code(s);continue;case"table":i+=this.renderer.table(s);continue;case"blockquote":i+=this.renderer.blockquote(s);continue;case"list":i+=this.renderer.list(s);continue;case"html":i+=this.renderer.html(s);continue;case"def":i+=this.renderer.def(s);continue;case"paragraph":i+=this.renderer.paragraph(s);continue;case"text":{let r=s,n=this.renderer.text(r);for(;o+1<e.length&&"text"===e[o+1].type;)r=e[++o],n+="\n"+this.renderer.text(r);i+=t?this.renderer.paragraph({type:"paragraph",raw:n,text:n,tokens:[{type:"text",raw:n,text:n,escaped:!0}]}):n;continue}default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return i}parseInline(e,t=this.renderer){var r,n;let i="";for(let o=0;o<e.length;o++){let a=e[o];if(null==(n=null==(r=this.options.extensions)?void 0:r.renderers)?void 0:n[a.type]){let e=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=e||"";continue}}let s=a;switch(s.type){case"escape":case"text":i+=t.text(s);break;case"html":i+=t.html(s);break;case"link":i+=t.link(s);break;case"image":i+=t.image(s);break;case"strong":i+=t.strong(s);break;case"em":i+=t.em(s);break;case"codespan":i+=t.codespan(s);break;case"br":i+=t.br(s);break;case"del":i+=t.del(s);break;default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return i}},eT=(g=class{constructor(e){y(this,"options"),y(this,"block"),this.options=e||qS}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?Y_.lex:Y_.lexInline}provideParser(){return this.block?Q_.parse:Q_.parseInline}},y(g,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),y(g,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),g),tT=new class{constructor(...e){y(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),y(this,"options",this.setOptions),y(this,"parse",this.parseMarkdown(!0)),y(this,"parseInline",this.parseMarkdown(!1)),y(this,"Parser",Q_),y(this,"Renderer",Z_),y(this,"TextRenderer",K_),y(this,"Lexer",Y_),y(this,"Tokenizer",J_),y(this,"Hooks",eT),this.use(...e)}walkTokens(e,t){var r,n;let i=[];for(let o of e)switch(i=i.concat(t.call(this,o)),o.type){case"table":{let e=o;for(let r of e.header)i=i.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)i=i.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=o;i=i.concat(this.walkTokens(e.items,t));break}default:{let e=o;(null==(n=null==(r=this.defaults.extensions)?void 0:r.childTokens)?void 0:n[e.type])?this.defaults.extensions.childTokens[e.type].forEach(r=>{let n=e[r].flat(1/0);i=i.concat(this.walkTokens(n,t))}):e.tokens&&(i=i.concat(this.walkTokens(e.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let r={...e};if(r.async=this.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let r=t.renderers[e.name];t.renderers[e.name]=r?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let r=t[e.level];r?r.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),r.extensions=t),e.renderer){let t=this.defaults.renderer||new Z_(this.defaults);for(let r in e.renderer){if(!(r in t))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let n=r,i=e.renderer[n],o=t[n];t[n]=(...e)=>{let r=i.apply(t,e);return!1===r&&(r=o.apply(t,e)),r||""}}r.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new J_(this.defaults);for(let r in e.tokenizer){if(!(r in t))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let n=r,i=e.tokenizer[n],o=t[n];t[n]=(...e)=>{let r=i.apply(t,e);return!1===r&&(r=o.apply(t,e)),r}}r.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new eT;for(let r in e.hooks){if(!(r in t))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let n=r,i=e.hooks[n],o=t[n];eT.passThroughHooks.has(r)?t[n]=e=>{if(this.defaults.async&&eT.passThroughHooksRespectAsync.has(r))return(async()=>{let r=await i.call(t,e);return o.call(t,r)})();let n=i.call(t,e);return o.call(t,n)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let r=await i.apply(t,e);return!1===r&&(r=await o.apply(t,e)),r})();let r=i.apply(t,e);return!1===r&&(r=o.apply(t,e)),r}}r.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,n=e.walkTokens;r.walkTokens=function(e){let r=[];return r.push(n.call(this,e)),t&&(r=r.concat(t.call(this,e))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Y_.lex(e,t??this.defaults)}parser(e,t){return Q_.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},i={...this.defaults,...n},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===n.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let r=i.hooks?await i.hooks.preprocess(t):t,n=await(i.hooks?await i.hooks.provideLexer():e?Y_.lex:Y_.lexInline)(r,i),o=i.hooks?await i.hooks.processAllTokens(n):n;i.walkTokens&&await Promise.all(this.walkTokens(o,i.walkTokens));let a=await(i.hooks?await i.hooks.provideParser():e?Q_.parse:Q_.parseInline)(o,i);return i.hooks?await i.hooks.postprocess(a):a})().catch(o);try{i.hooks&&(t=i.hooks.preprocess(t));let r=(i.hooks?i.hooks.provideLexer():e?Y_.lex:Y_.lexInline)(t,i);i.hooks&&(r=i.hooks.processAllTokens(r)),i.walkTokens&&this.walkTokens(r,i.walkTokens);let n=(i.hooks?i.hooks.provideParser():e?Q_.parse:Q_.parseInline)(r,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(a){return o(a)}}}onError(e,t){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+q_(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(r);throw r}}};function rT(e,t){return tT.parse(e,t)}function nT(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from("string"==typeof e?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(e,t){var r=t.match(/\n([\t ]+|(?!\s).)/g);return r?e.concat(r.map(function(e){var t,r;return null!==(r=null===(t=e.match(/[\t ]/g))||void 0===t?void 0:t.length)&&void 0!==r?r:0})):e},[]);if(i.length){var o=new RegExp("\n[\t ]{"+Math.min.apply(Math,i)+"}","g");n=n.map(function(e){return e.replace(o,"\n")})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:"",o=e;"string"==typeof e&&e.includes("\n")&&(o=String(e).split("\n").map(function(e,t){return 0===t?e:""+i+e}).join("\n")),a+=o+n[t+1]}),a}rT.options=rT.setOptions=function(e){return tT.setOptions(e),rT.defaults=tT.defaults,HS(rT.defaults),rT},rT.getDefaults=WS,rT.defaults=qS,rT.use=function(...e){return tT.use(...e),rT.defaults=tT.defaults,HS(rT.defaults),rT},rT.walkTokens=function(e,t){return tT.walkTokens(e,t)},rT.parseInline=tT.parseInline,rT.Parser=Q_,rT.parser=Q_.parse,rT.Renderer=Z_,rT.TextRenderer=K_,rT.Lexer=Y_,rT.lexer=Y_.lex,rT.Tokenizer=J_,rT.Hooks=eT,rT.parse=rT,rT.options,rT.setOptions,rT.use,rT.walkTokens,rT.parseInline,Q_.parse,Y_.lex;var iT={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},oT=new Map,aT=new Map,sT=vu(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(wu.debug("Registering icon pack:",t.name),"loader"in t)aT.set(t.name,t.loader);else{if(!("icons"in t))throw wu.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.');oT.set(t.name,t.icons)}}},"registerIconPacks"),lT=vu(async(e,t)=>{const r=((e,t,r,n="")=>{const i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const e=i.pop(),t=i.pop(),r={provider:i.length>0?i[0]:n,prefix:t,name:e};return LS(r)?r:null}const o=i[0],a=o.split("-");if(a.length>1){const e={provider:n,prefix:a.shift(),name:a.join("-")};return LS(e)?e:null}if(r&&""===n){const e={provider:n,prefix:"",name:o};return LS(e,r)?e:null}return null})(e,0,void 0!==t);if(!r)throw new Error(`Invalid icon name: ${e}`);const n=r.prefix||t;if(!n)throw new Error(`Icon name must contain a prefix: ${e}`);let i=oT.get(n);if(!i){const e=aT.get(n);if(!e)throw new Error(`Icon set not found: ${r.prefix}`);try{i={...await e(),prefix:n},oT.set(n,i)}catch(a){throw wu.error(a),new Error(`Failed to load icon set: ${r.prefix}`)}}const o=DS(i,r.name);if(!o)throw new Error(`Icon not found: ${e}`);return o},"getRegisteredIconData"),cT=vu(async e=>{try{return await lT(e),!0}catch{return!1}},"isIconAvailable"),uT=vu(async(e,t,r)=>{let n;try{n=await lT(e,null==t?void 0:t.fallbackPrefix)}catch(a){wu.error(a),n=iT}const i=function(e,t){const r={...PS,...e},n={...BS,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(e=>{const t=[],r=e.hFlip,n=e.vFlip;let a,s=e.rotate;switch(r?n?s+=2:(t.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),t.push("scale(-1 1)"),i.top=i.left=0):n&&(t.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),t.push("scale(1 -1)"),i.top=i.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:a=i.height/2+i.top,t.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:t.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:a=i.width/2+i.left,t.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}s%2==1&&(i.left!==i.top&&(a=i.left,i.left=i.top,i.top=a),i.width!==i.height&&(a=i.width,i.width=i.height,i.height=a)),t.length&&(o=function(e,t,r){const n=function(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const i=e.indexOf(">",n),o=e.indexOf("</"+t);if(-1===i||-1===o)break;const a=e.indexOf(">",o);if(-1===a)break;r+=e.slice(i+1,o).trim(),e=e.slice(0,n).trim()+e.slice(a+1)}return{defs:r,content:e}}(e);return i=n.defs,o=t+n.content+r,i?"<defs>"+i+"</defs>"+o:o;var i,o}(o,'<g transform="'+t.join(" ")+'">',"</g>"))});const a=n.width,s=n.height,l=i.width,c=i.height;let u,h;null===a?(h=null===s?"1em":"auto"===s?c:s,u=FS(h,l/c)):(u="auto"===a?l:a,h=null===s?FS(u,c/l):"auto"===s?c:s);const d={},p=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(d[e]=t.toString())};p("width",u),p("height",h);const g=[i.left,i.top,l,c];return d.viewBox=g.join(" "),{attributes:d,viewBox:g,body:o}}(n,t),o=function(e,t){let r=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}(VS(i.body),{...i.attributes,...r});return ep(o,Fd())},"getIconSVG");function hT(e,{markdownAutoWrap:t}){const r=nT(e.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n"));return!1===t?r.replace(/ /g," "):r}function dT(e,t={}){const r=hT(e,t),n=rT.lexer(r),i=[[]];let o=0;function a(e,t="normal"){if("text"===e.type){e.text.split("\n").forEach((e,r)=>{0!==r&&(o++,i.push([])),e.split(" ").forEach(e=>{(e=e.replace(/'/g,"'"))&&i[o].push({content:e,type:t})})})}else"strong"===e.type||"em"===e.type?e.tokens.forEach(t=>{a(t,e.type)}):"html"===e.type&&i[o].push({content:e.text,type:"normal"})}return vu(a,"processNode"),n.forEach(e=>{var t;"paragraph"===e.type?null==(t=e.tokens)||t.forEach(e=>{a(e)}):"html"===e.type?i[o].push({content:e.text,type:"normal"}):i[o].push({content:e.raw,type:"normal"})}),i}function pT(e,{markdownAutoWrap:t}={}){const r=rT.lexer(e);function n(e){var r,i,o;return"text"===e.type?!1===t?e.text.replace(/\n */g,"<br/>").replace(/ /g," "):e.text.replace(/\n */g,"<br/>"):"strong"===e.type?`<strong>${null==(r=e.tokens)?void 0:r.map(n).join("")}</strong>`:"em"===e.type?`<em>${null==(i=e.tokens)?void 0:i.map(n).join("")}</em>`:"paragraph"===e.type?`<p>${null==(o=e.tokens)?void 0:o.map(n).join("")}</p>`:"space"===e.type?"":"html"===e.type?`${e.text}`:"escape"===e.type?e.text:(wu.warn(`Unsupported markdown: ${e.type}`),e.raw)}return vu(n,"output"),r.map(n).join("")}function gT(e){return Intl.Segmenter?[...(new Intl.Segmenter).segment(e)].map(e=>e.segment):[...e]}function fT(e,t){return mT(e,[],gT(t.content),t.type)}function mT(e,t,r,n){if(0===r.length)return[{content:t.join(""),type:n},{content:"",type:n}];const[i,...o]=r,a=[...t,i];return e([{content:a.join(""),type:n}])?mT(e,a,o,n):(0===t.length&&i&&(t.push(i),r.shift()),[{content:t.join(""),type:n},{content:r.join(""),type:n}])}function yT(e,t){if(e.some(({content:e})=>e.includes("\n")))throw new Error("splitLineToFitWidth does not support newlines in the line");return bT(e,t)}function bT(e,t,r=[],n=[]){if(0===e.length)return n.length>0&&r.push(n),r.length>0?r:[];let i="";" "===e[0].content&&(i=" ",e.shift());const o=e.shift()??{content:" ",type:"normal"},a=[...n];if(""!==i&&a.push({content:i,type:"normal"}),a.push(o),t(a))return bT(e,t,r,a);if(n.length>0)r.push(n),e.unshift(o);else if(o.content){const[n,i]=fT(t,o);r.push([n]),i.content&&e.unshift(i)}return bT(e,t,r)}function vT(e,t){t&&e.attr("style",t)}async function xT(e,t,r,n,i=!1,o=Fd()){const a=e.append("foreignObject");a.attr("width",10*r+"px"),a.attr("height",10*r+"px");const s=a.append("xhtml:div"),l=mp(t.label)?await vp(t.label.replace(xp.lineBreakRegex,"\n"),o):ep(t.label,o),c=t.isNode?"nodeLabel":"edgeLabel",u=s.append("span");u.html(l),vT(u,t.labelStyle),u.attr("class",`${c} ${n}`),vT(s,t.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),s.style("max-width",r+"px"),s.style("text-align","center"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&s.attr("class","labelBkg");let h=s.node().getBoundingClientRect();return h.width===r&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",r+"px"),h=s.node().getBoundingClientRect()),a.node()}function CT(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}function wT(e,t,r){const n=e.append("text"),i=CT(n,1,t);_T(i,r);const o=i.node().getComputedTextLength();return n.remove(),o}function kT(e,t,r){var n;const i=e.append("text"),o=CT(i,1,t);_T(o,[{content:r,type:"normal"}]);const a=null==(n=o.node())?void 0:n.getBoundingClientRect();return a&&i.remove(),a}function ST(e,t,r,n=!1){const i=t.append("g"),o=i.insert("rect").attr("class","background").attr("style","stroke: none"),a=i.append("text").attr("y","-10.1");let s=0;for(const l of r){const t=vu(t=>wT(i,1.1,t)<=e,"checkWidth"),r=t(l)?[l]:yT(l,t);for(const e of r){_T(CT(a,s,1.1),e),s++}}if(n){const e=a.node().getBBox(),t=2;return o.attr("x",e.x-t).attr("y",e.y-t).attr("width",e.width+2*t).attr("height",e.height+2*t),i.node()}return a.node()}function _T(e,t){e.text(""),t.forEach((t,r)=>{const n=e.append("tspan").attr("font-style","em"===t.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===t.type?"bold":"normal");0===r?n.text(t.content):n.text(" "+t.content)})}async function TT(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(e,n,i)=>(r.push((async()=>{const r=`${n}:${i}`;return await cT(r)?await uT(r,void 0,{class:"label-icon"}):`<i class='${ep(e,t).replace(":"," ")}'></i>`})()),e));const n=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>n.shift()??"")}vu(hT,"preprocessMarkdown"),vu(dT,"markdownToLines"),vu(pT,"markdownToHTML"),vu(gT,"splitTextToChars"),vu(fT,"splitWordToFitWidth"),vu(mT,"splitWordToFitWidthRecursion"),vu(yT,"splitLineToFitWidth"),vu(bT,"splitLineToFitWidthRecursion"),vu(vT,"applyStyle"),vu(xT,"addHtmlSpan"),vu(CT,"createTspan"),vu(wT,"computeWidthOfText"),vu(kT,"computeDimensionOfText"),vu(ST,"createFormattedText"),vu(_T,"updateTextContentAndStyles"),vu(TT,"replaceIconSubstring");var AT=vu(async(e,t="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:o=!0,isNode:a=!0,width:s=200,addSvgBackground:l=!1}={},c)=>{if(wu.debug("XYZ createText",t,r,n,i,o,a,"addSvgBackground: ",l),o){const n=pT(t,c),o=await TT(kS(n),c),u=t.replace(/\\\\/g,"\\"),h={isNode:a,label:mp(t)?u:o,labelStyle:r.replace("fill:","color:")};return await xT(e,h,s,i,l,c)}{const n=ST(s,e,dT(t.replace(/<br\s*\/?>/g,"<br/>").replace("<br>","<br/>"),c),!!t&&l);if(a){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");yf(n).attr("style",e)}else{const e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");yf(n).select("rect").attr("style",e.replace(/background:/g,"fill:"));const t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");yf(n).select("text").attr("style",t)}return n}},"createText");function ET(e,t,r){if(e&&e.length){const[n,i]=t,o=Math.PI/180*r,a=Math.cos(o),s=Math.sin(o);for(const t of e){const[e,r]=t;t[0]=(e-n)*a-(r-i)*s+n,t[1]=(e-n)*s+(r-i)*a+i}}}function PT(e,t){return e[0]===t[0]&&e[1]===t[1]}function MT(e,t){var r;const n=t.hachureAngle+90;let i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.round(Math.max(i,.1));let o=1;return t.roughness>=1&&((null===(r=t.randomizer)||void 0===r?void 0:r.next())||Math.random())>.7&&(o=i),function(e,t,r,n=1){const i=r,o=Math.max(t,.1),a=e[0]&&e[0][0]&&"number"==typeof e[0][0]?[e]:e,s=[0,0];if(i)for(const c of a)ET(c,s,i);const l=function(e,t,r){const n=[];for(const c of e){const e=[...c];PT(e[0],e[e.length-1])||e.push([e[0][0],e[0][1]]),e.length>2&&n.push(e)}const i=[];t=Math.max(t,.1);const o=[];for(const c of n)for(let e=0;e<c.length-1;e++){const t=c[e],r=c[e+1];if(t[1]!==r[1]){const e=Math.min(t[1],r[1]);o.push({ymin:e,ymax:Math.max(t[1],r[1]),x:e===t[1]?t[0]:r[0],islope:(r[0]-t[0])/(r[1]-t[1])})}}if(o.sort((e,t)=>e.ymin<t.ymin?-1:e.ymin>t.ymin?1:e.x<t.x?-1:e.x>t.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax)),!o.length)return i;let a=[],s=o[0].ymin,l=0;for(;a.length||o.length;){if(o.length){let e=-1;for(let t=0;t<o.length&&!(o[t].ymin>s);t++)e=t;o.splice(0,e+1).forEach(e=>{a.push({s:s,edge:e})})}if(a=a.filter(e=>!(e.edge.ymax<=s)),a.sort((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x)),(1!==r||l%t==0)&&a.length>1)for(let e=0;e<a.length;e+=2){const t=e+1;if(t>=a.length)break;const r=a[e].edge,n=a[t].edge;i.push([[Math.round(r.x),s],[Math.round(n.x),s]])}s+=r,a.forEach(e=>{e.edge.x=e.edge.x+r*e.edge.islope}),l++}return i}(a,o,n);if(i){for(const e of a)ET(e,s,-i);!function(e,t,r){const n=[];e.forEach(e=>n.push(...e)),ET(n,t,r)}(l,s,-i)}return l}(e,i,n,o||1)}class IT{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){const r=MT(e,t);return{type:"fillSketch",ops:this.renderLines(r,t)}}renderLines(e,t){const r=[];for(const n of e)r.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],t));return r}}function BT(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class LT extends IT{fillPolygons(e,t){let r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);const n=MT(e,Object.assign({},t,{hachureGap:r})),i=Math.PI/180*t.hachureAngle,o=[],a=.5*r*Math.cos(i),s=.5*r*Math.sin(i);for(const[l,c]of n)BT([l,c])&&o.push([[l[0]-a,l[1]+s],[...c]],[[l[0]+a,l[1]-s],[...c]]);return{type:"fillSketch",ops:this.renderLines(o,t)}}}class jT extends IT{fillPolygons(e,t){const r=this._fillPolygons(e,t),n=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,n);return r.ops=r.ops.concat(i.ops),r}}class NT{constructor(e){this.helper=e}fillPolygons(e,t){const r=MT(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(r,t)}dotsOnLines(e,t){const r=[];let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);const o=n/4;for(const a of e){const e=BT(a),s=e/n,l=Math.ceil(s)-1,c=e-l*n,u=(a[0][0]+a[1][0])/2-n/4,h=Math.min(a[0][1],a[1][1]);for(let a=0;a<l;a++){const e=h+c+a*n,s=u-o+2*Math.random()*o,l=e-o+2*Math.random()*o,d=this.helper.ellipse(s,l,i,i,t);r.push(...d.ops)}}return{type:"fillSketch",ops:r}}}class DT{constructor(e){this.helper=e}fillPolygons(e,t){const r=MT(e,t);return{type:"fillSketch",ops:this.dashedLine(r,t)}}dashedLine(e,t){const r=t.dashOffset<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashOffset,n=t.dashGap<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashGap,i=[];return e.forEach(e=>{const o=BT(e),a=Math.floor(o/(r+n)),s=(o+n-a*(r+n))/2;let l=e[0],c=e[1];l[0]>c[0]&&(l=e[1],c=e[0]);const u=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let h=0;h<a;h++){const e=h*(r+n),o=e+r,a=[l[0]+e*Math.cos(u)+s*Math.cos(u),l[1]+e*Math.sin(u)+s*Math.sin(u)],c=[l[0]+o*Math.cos(u)+s*Math.cos(u),l[1]+o*Math.sin(u)+s*Math.sin(u)];i.push(...this.helper.doubleLineOps(a[0],a[1],c[0],c[1],t))}}),i}}class OT{constructor(e){this.helper=e}fillPolygons(e,t){const r=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,n=t.zigzagOffset<0?r:t.zigzagOffset,i=MT(e,t=Object.assign({},t,{hachureGap:r+n}));return{type:"fillSketch",ops:this.zigzagLines(i,n,t)}}zigzagLines(e,t,r){const n=[];return e.forEach(e=>{const i=BT(e),o=Math.round(i/(2*t));let a=e[0],s=e[1];a[0]>s[0]&&(a=e[1],s=e[0]);const l=Math.atan((s[1]-a[1])/(s[0]-a[0]));for(let c=0;c<o;c++){const e=2*c*t,i=2*(c+1)*t,o=Math.sqrt(2*Math.pow(t,2)),s=[a[0]+e*Math.cos(l),a[1]+e*Math.sin(l)],u=[a[0]+i*Math.cos(l),a[1]+i*Math.sin(l)],h=[s[0]+o*Math.cos(l+Math.PI/4),s[1]+o*Math.sin(l+Math.PI/4)];n.push(...this.helper.doubleLineOps(s[0],s[1],h[0],h[1],r),...this.helper.doubleLineOps(h[0],h[1],u[0],u[1],r))}}),n}}const zT={};class FT{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const RT={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function $T(e,t){return e.type===t}function VT(e){const t=[],r=function(e){const t=new Array;for(;""!==e;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:0,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:1,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:2,text:""},t}(e);let n="BOD",i=0,o=r[i];for(;!$T(o,2);){let a=0;const s=[];if("BOD"===n){if("M"!==o.text&&"m"!==o.text)return VT("M0,0"+e);i++,a=RT[o.text],n=o.text}else $T(o,1)?a=RT[n]:(i++,a=RT[o.text],n=o.text);if(!(i+a<r.length))throw new Error("Path data ended short");for(let e=i;e<i+a;e++){const t=r[e];if(!$T(t,1))throw new Error("Param not a number: "+n+","+t.text);s[s.length]=+t.text}if("number"!=typeof RT[n])throw new Error("Bad segment: "+n);{const e={key:n,data:s};t.push(e),i+=a,o=r[i],"M"===n&&(n="L"),"m"===n&&(n="l")}}return t}function WT(e){let t=0,r=0,n=0,i=0;const o=[];for(const{key:a,data:s}of e)switch(a){case"M":o.push({key:"M",data:[...s]}),[t,r]=s,[n,i]=s;break;case"m":t+=s[0],r+=s[1],o.push({key:"M",data:[t,r]}),n=t,i=r;break;case"L":o.push({key:"L",data:[...s]}),[t,r]=s;break;case"l":t+=s[0],r+=s[1],o.push({key:"L",data:[t,r]});break;case"C":o.push({key:"C",data:[...s]}),t=s[4],r=s[5];break;case"c":{const e=s.map((e,n)=>n%2?e+r:e+t);o.push({key:"C",data:e}),t=e[4],r=e[5];break}case"Q":o.push({key:"Q",data:[...s]}),t=s[2],r=s[3];break;case"q":{const e=s.map((e,n)=>n%2?e+r:e+t);o.push({key:"Q",data:e}),t=e[2],r=e[3];break}case"A":o.push({key:"A",data:[...s]}),t=s[5],r=s[6];break;case"a":t+=s[5],r+=s[6],o.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],t,r]});break;case"H":o.push({key:"H",data:[...s]}),t=s[0];break;case"h":t+=s[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],o.push({key:"V",data:[r]});break;case"S":o.push({key:"S",data:[...s]}),t=s[2],r=s[3];break;case"s":{const e=s.map((e,n)=>n%2?e+r:e+t);o.push({key:"S",data:e}),t=e[2],r=e[3];break}case"T":o.push({key:"T",data:[...s]}),t=s[0],r=s[1];break;case"t":t+=s[0],r+=s[1],o.push({key:"T",data:[t,r]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=n,r=i}return o}function qT(e){const t=[];let r="",n=0,i=0,o=0,a=0,s=0,l=0;for(const{key:c,data:u}of e){switch(c){case"M":t.push({key:"M",data:[...u]}),[n,i]=u,[o,a]=u;break;case"C":t.push({key:"C",data:[...u]}),n=u[4],i=u[5],s=u[2],l=u[3];break;case"L":t.push({key:"L",data:[...u]}),[n,i]=u;break;case"H":n=u[0],t.push({key:"L",data:[n,i]});break;case"V":i=u[0],t.push({key:"L",data:[n,i]});break;case"S":{let e=0,o=0;"C"===r||"S"===r?(e=n+(n-s),o=i+(i-l)):(e=n,o=i),t.push({key:"C",data:[e,o,...u]}),s=u[0],l=u[1],n=u[2],i=u[3];break}case"T":{const[e,o]=u;let a=0,c=0;"Q"===r||"T"===r?(a=n+(n-s),c=i+(i-l)):(a=n,c=i);const h=n+2*(a-n)/3,d=i+2*(c-i)/3,p=e+2*(a-e)/3,g=o+2*(c-o)/3;t.push({key:"C",data:[h,d,p,g,e,o]}),s=a,l=c,n=e,i=o;break}case"Q":{const[e,r,o,a]=u,c=n+2*(e-n)/3,h=i+2*(r-i)/3,d=o+2*(e-o)/3,p=a+2*(r-a)/3;t.push({key:"C",data:[c,h,d,p,o,a]}),s=e,l=r,n=o,i=a;break}case"A":{const e=Math.abs(u[0]),r=Math.abs(u[1]),o=u[2],a=u[3],s=u[4],l=u[5],c=u[6];0===e||0===r?(t.push({key:"C",data:[n,i,l,c,l,c]}),n=l,i=c):n===l&&i===c||(UT(n,i,l,c,e,r,o,a,s).forEach(function(e){t.push({key:"C",data:e})}),n=l,i=c);break}case"Z":t.push({key:"Z",data:[]}),n=o,i=a}r=c}return t}function HT(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function UT(e,t,r,n,i,o,a,s,l,c){const u=(h=a,Math.PI*h/180);var h;let d=[],p=0,g=0,f=0,m=0;if(c)[p,g,f,m]=c;else{[e,t]=HT(e,t,-u),[r,n]=HT(r,n,-u);const a=(e-r)/2,c=(t-n)/2;let h=a*a/(i*i)+c*c/(o*o);h>1&&(h=Math.sqrt(h),i*=h,o*=h);const d=i*i,y=o*o,b=d*y-d*c*c-y*a*a,v=d*c*c+y*a*a,x=(s===l?-1:1)*Math.sqrt(Math.abs(b/v));f=x*i*c/o+(e+r)/2,m=x*-o*a/i+(t+n)/2,p=Math.asin(parseFloat(((t-m)/o).toFixed(9))),g=Math.asin(parseFloat(((n-m)/o).toFixed(9))),e<f&&(p=Math.PI-p),r<f&&(g=Math.PI-g),p<0&&(p=2*Math.PI+p),g<0&&(g=2*Math.PI+g),l&&p>g&&(p-=2*Math.PI),!l&&g>p&&(g-=2*Math.PI)}let y=g-p;if(Math.abs(y)>120*Math.PI/180){const e=g,t=r,s=n;g=l&&g>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,d=UT(r=f+i*Math.cos(g),n=m+o*Math.sin(g),t,s,i,o,a,0,l,[g,e,f,m])}y=g-p;const b=Math.cos(p),v=Math.sin(p),x=Math.cos(g),C=Math.sin(g),w=Math.tan(y/4),k=4/3*i*w,S=4/3*o*w,_=[e,t],T=[e+k*v,t-S*b],A=[r+k*C,n-S*x],E=[r,n];if(T[0]=2*_[0]-T[0],T[1]=2*_[1]-T[1],c)return[T,A,E].concat(d);{d=[T,A,E].concat(d);const e=[];for(let t=0;t<d.length;t+=3){const r=HT(d[t][0],d[t][1],u),n=HT(d[t+1][0],d[t+1][1],u),i=HT(d[t+2][0],d[t+2][1],u);e.push([r[0],r[1],n[0],n[1],i[0],i[1]])}return e}}const GT={randOffset:function(e,t){return aA(e,t)},randOffsetWithRange:function(e,t,r){return oA(e,t,r)},ellipse:function(e,t,r,n,i){return KT(e,t,i,ZT(r,n,i)).opset},doubleLineOps:function(e,t,r,n,i){return sA(e,t,r,n,i,!0)}};function XT(e,t,r,n,i){return{type:"path",ops:sA(e,t,r,n,i)}}function JT(e,t,r){const n=(e||[]).length;if(n>2){const i=[];for(let t=0;t<n-1;t++)i.push(...sA(e[t][0],e[t][1],e[t+1][0],e[t+1][1],r));return t&&i.push(...sA(e[n-1][0],e[n-1][1],e[0][0],e[0][1],r)),{type:"path",ops:i}}return 2===n?XT(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function YT(e,t){if(e.length){const r="number"==typeof e[0][0]?[e]:e,n=cA(r[0],1*(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:cA(r[0],1.5*(1+.22*t.roughness),nA(t));for(let e=1;e<r.length;e++){const o=r[e];if(o.length){const e=cA(o,1*(1+.2*t.roughness),t),r=t.disableMultiStroke?[]:cA(o,1.5*(1+.22*t.roughness),nA(t));for(const t of e)"move"!==t.op&&n.push(t);for(const t of r)"move"!==t.op&&i.push(t)}}return{type:"path",ops:n.concat(i)}}return{type:"path",ops:[]}}function ZT(e,t,r){const n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),i=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n)),o=2*Math.PI/i;let a=Math.abs(e/2),s=Math.abs(t/2);const l=1-r.curveFitting;return a+=aA(a*l,r),s+=aA(s*l,r),{increment:o,rx:a,ry:s}}function KT(e,t,r,n){const[i,o]=hA(n.increment,e,t,n.rx,n.ry,1,n.increment*oA(.1,oA(.4,1,r),r),r);let a=uA(i,null,r);if(!r.disableMultiStroke&&0!==r.roughness){const[i]=hA(n.increment,e,t,n.rx,n.ry,1.5,0,r),o=uA(i,null,r);a=a.concat(o)}return{estimatedPoints:o,opset:{type:"path",ops:a}}}function QT(e,t,r,n,i,o,a,s,l){const c=e,u=t;let h=Math.abs(r/2),d=Math.abs(n/2);h+=aA(.01*h,l),d+=aA(.01*d,l);let p=i,g=o;for(;p<0;)p+=2*Math.PI,g+=2*Math.PI;g-p>2*Math.PI&&(p=0,g=2*Math.PI);const f=2*Math.PI/l.curveStepCount,m=Math.min(f/2,(g-p)/2),y=dA(m,c,u,h,d,p,g,1,l);if(!l.disableMultiStroke){const e=dA(m,c,u,h,d,p,g,1.5,l);y.push(...e)}return a&&(s?y.push(...sA(c,u,c+h*Math.cos(p),u+d*Math.sin(p),l),...sA(c,u,c+h*Math.cos(g),u+d*Math.sin(g),l)):y.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+h*Math.cos(p),u+d*Math.sin(p)]})),{type:"path",ops:y}}function eA(e,t){const r=qT(WT(VT(e))),n=[];let i=[0,0],o=[0,0];for(const{key:a,data:s}of r)switch(a){case"M":o=[s[0],s[1]],i=[s[0],s[1]];break;case"L":n.push(...sA(o[0],o[1],s[0],s[1],t)),o=[s[0],s[1]];break;case"C":{const[e,r,i,a,l,c]=s;n.push(...pA(e,r,i,a,l,c,o,t)),o=[l,c];break}case"Z":n.push(...sA(o[0],o[1],i[0],i[1],t)),o=[i[0],i[1]]}return{type:"path",ops:n}}function tA(e,t){const r=[];for(const n of e)if(n.length){const e=t.maxRandomnessOffset||0,i=n.length;if(i>2){r.push({op:"move",data:[n[0][0]+aA(e,t),n[0][1]+aA(e,t)]});for(let o=1;o<i;o++)r.push({op:"lineTo",data:[n[o][0]+aA(e,t),n[o][1]+aA(e,t)]})}}return{type:"fillPath",ops:r}}function rA(e,t){return function(e,t){let r=e.fillStyle||"hachure";if(!zT[r])switch(r){case"zigzag":zT[r]||(zT[r]=new LT(t));break;case"cross-hatch":zT[r]||(zT[r]=new jT(t));break;case"dots":zT[r]||(zT[r]=new NT(t));break;case"dashed":zT[r]||(zT[r]=new DT(t));break;case"zigzag-line":zT[r]||(zT[r]=new OT(t));break;default:r="hachure",zT[r]||(zT[r]=new IT(t))}return zT[r]}(t,GT).fillPolygons(e,t)}function nA(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function iA(e){return e.randomizer||(e.randomizer=new FT(e.seed||0)),e.randomizer.next()}function oA(e,t,r,n=1){return r.roughness*n*(iA(r)*(t-e)+e)}function aA(e,t,r=1){return oA(-e,e,t,r)}function sA(e,t,r,n,i,o=!1){const a=o?i.disableMultiStrokeFill:i.disableMultiStroke,s=lA(e,t,r,n,i,!0,!1);if(a)return s;const l=lA(e,t,r,n,i,!0,!0);return s.concat(l)}function lA(e,t,r,n,i,o,a){const s=Math.pow(e-r,2)+Math.pow(t-n,2),l=Math.sqrt(s);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>s&&(u=l/10);const h=u/2,d=.2+.2*iA(i);let p=i.bowing*i.maxRandomnessOffset*(n-t)/200,g=i.bowing*i.maxRandomnessOffset*(e-r)/200;p=aA(p,i,c),g=aA(g,i,c);const f=[],m=()=>aA(h,i,c),y=()=>aA(u,i,c),b=i.preserveVertices;return a?f.push({op:"move",data:[e+(b?0:m()),t+(b?0:m())]}):f.push({op:"move",data:[e+(b?0:aA(u,i,c)),t+(b?0:aA(u,i,c))]}),a?f.push({op:"bcurveTo",data:[p+e+(r-e)*d+m(),g+t+(n-t)*d+m(),p+e+2*(r-e)*d+m(),g+t+2*(n-t)*d+m(),r+(b?0:m()),n+(b?0:m())]}):f.push({op:"bcurveTo",data:[p+e+(r-e)*d+y(),g+t+(n-t)*d+y(),p+e+2*(r-e)*d+y(),g+t+2*(n-t)*d+y(),r+(b?0:y()),n+(b?0:y())]}),f}function cA(e,t,r){if(!e.length)return[];const n=[];n.push([e[0][0]+aA(t,r),e[0][1]+aA(t,r)]),n.push([e[0][0]+aA(t,r),e[0][1]+aA(t,r)]);for(let i=1;i<e.length;i++)n.push([e[i][0]+aA(t,r),e[i][1]+aA(t,r)]),i===e.length-1&&n.push([e[i][0]+aA(t,r),e[i][1]+aA(t,r)]);return uA(n,null,r)}function uA(e,t,r){const n=e.length,i=[];if(n>3){const t=[],o=1-r.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let r=1;r+2<n;r++){const n=e[r];t[0]=[n[0],n[1]],t[1]=[n[0]+(o*e[r+1][0]-o*e[r-1][0])/6,n[1]+(o*e[r+1][1]-o*e[r-1][1])/6],t[2]=[e[r+1][0]+(o*e[r][0]-o*e[r+2][0])/6,e[r+1][1]+(o*e[r][1]-o*e[r+2][1])/6],t[3]=[e[r+1][0],e[r+1][1]],i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[3][0],t[3][1]]})}}else 3===n?(i.push({op:"move",data:[e[1][0],e[1][1]]}),i.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):2===n&&i.push(...lA(e[0][0],e[0][1],e[1][0],e[1][1],r,0,!0));return i}function hA(e,t,r,n,i,o,a,s){const l=[],c=[];if(0===s.roughness){e/=4,c.push([t+n*Math.cos(-e),r+i*Math.sin(-e)]);for(let o=0;o<=2*Math.PI;o+=e){const e=[t+n*Math.cos(o),r+i*Math.sin(o)];l.push(e),c.push(e)}c.push([t+n*Math.cos(0),r+i*Math.sin(0)]),c.push([t+n*Math.cos(e),r+i*Math.sin(e)])}else{const u=aA(.5,s)-Math.PI/2;c.push([aA(o,s)+t+.9*n*Math.cos(u-e),aA(o,s)+r+.9*i*Math.sin(u-e)]);const h=2*Math.PI+u-.01;for(let a=u;a<h;a+=e){const e=[aA(o,s)+t+n*Math.cos(a),aA(o,s)+r+i*Math.sin(a)];l.push(e),c.push(e)}c.push([aA(o,s)+t+n*Math.cos(u+2*Math.PI+.5*a),aA(o,s)+r+i*Math.sin(u+2*Math.PI+.5*a)]),c.push([aA(o,s)+t+.98*n*Math.cos(u+a),aA(o,s)+r+.98*i*Math.sin(u+a)]),c.push([aA(o,s)+t+.9*n*Math.cos(u+.5*a),aA(o,s)+r+.9*i*Math.sin(u+.5*a)])}return[c,l]}function dA(e,t,r,n,i,o,a,s,l){const c=o+aA(.1,l),u=[];u.push([aA(s,l)+t+.9*n*Math.cos(c-e),aA(s,l)+r+.9*i*Math.sin(c-e)]);for(let h=c;h<=a;h+=e)u.push([aA(s,l)+t+n*Math.cos(h),aA(s,l)+r+i*Math.sin(h)]);return u.push([t+n*Math.cos(a),r+i*Math.sin(a)]),u.push([t+n*Math.cos(a),r+i*Math.sin(a)]),uA(u,0,l)}function pA(e,t,r,n,i,o,a,s){const l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3];let u=[0,0];const h=s.disableMultiStroke?1:2,d=s.preserveVertices;for(let p=0;p<h;p++)0===p?l.push({op:"move",data:[a[0],a[1]]}):l.push({op:"move",data:[a[0]+(d?0:aA(c[0],s)),a[1]+(d?0:aA(c[0],s))]}),u=d?[i,o]:[i+aA(c[p],s),o+aA(c[p],s)],l.push({op:"bcurveTo",data:[e+aA(c[p],s),t+aA(c[p],s),r+aA(c[p],s),n+aA(c[p],s),u[0],u[1]]});return l}function gA(e){return[...e]}function fA(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const n=[];if(3===r)n.push(gA(e[0]),gA(e[1]),gA(e[2]),gA(e[2]));else{const r=[];r.push(e[0],e[0]);for(let t=1;t<e.length;t++)r.push(e[t]),t===e.length-1&&r.push(e[t]);const i=[],o=1-t;n.push(gA(r[0]));for(let e=1;e+2<r.length;e++){const t=r[e];i[0]=[t[0],t[1]],i[1]=[t[0]+(o*r[e+1][0]-o*r[e-1][0])/6,t[1]+(o*r[e+1][1]-o*r[e-1][1])/6],i[2]=[r[e+1][0]+(o*r[e][0]-o*r[e+2][0])/6,r[e+1][1]+(o*r[e][1]-o*r[e+2][1])/6],i[3]=[r[e+1][0],r[e+1][1]],n.push(i[1],i[2],i[3])}}return n}function mA(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function yA(e,t,r){const n=mA(t,r);if(0===n)return mA(e,t);let i=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/n;return i=Math.max(0,Math.min(1,i)),mA(e,bA(t,r,i))}function bA(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function vA(e,t,r,n){const i=n||[];if(function(e,t){const r=e[t+0],n=e[t+1],i=e[t+2],o=e[t+3];let a=3*n[0]-2*r[0]-o[0];a*=a;let s=3*n[1]-2*r[1]-o[1];s*=s;let l=3*i[0]-2*o[0]-r[0];l*=l;let c=3*i[1]-2*o[1]-r[1];return c*=c,a<l&&(a=l),s<c&&(s=c),a+s}(e,t)<r){const r=e[t+0];i.length?(o=i[i.length-1],a=r,Math.sqrt(mA(o,a))>1&&i.push(r)):i.push(r),i.push(e[t+3])}else{const n=.5,o=e[t+0],a=e[t+1],s=e[t+2],l=e[t+3],c=bA(o,a,n),u=bA(a,s,n),h=bA(s,l,n),d=bA(c,u,n),p=bA(u,h,n),g=bA(d,p,n);vA([o,c,d,g],0,r,i),vA([g,p,h,l],0,r,i)}var o,a;return i}function xA(e,t){return CA(e,0,e.length,t)}function CA(e,t,r,n,i){const o=i||[],a=e[t],s=e[r-1];let l=0,c=1;for(let u=t+1;u<r-1;++u){const t=yA(e[u],a,s);t>l&&(l=t,c=u)}return Math.sqrt(l)>n?(CA(e,t,c+1,n,o),CA(e,c,r,n,o)):(o.length||o.push(a),o.push(s)),o}function wA(e,t=.15,r){const n=[],i=(e.length-1)/3;for(let o=0;o<i;o++)vA(e,3*o,t,n);return r&&r>0?CA(n,0,n.length,r):n}const kA="none";class SA{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,r){return{shape:e,sets:t||[],options:r||this.defaultOptions}}line(e,t,r,n,i){const o=this._o(i);return this._d("line",[XT(e,t,r,n,o)],o)}rectangle(e,t,r,n,i){const o=this._o(i),a=[],s=function(e,t,r,n,i){return JT([[e,t],[e+r,t],[e+r,t+n],[e,t+n]],!0,i)}(e,t,r,n,o);if(o.fill){const i=[[e,t],[e+r,t],[e+r,t+n],[e,t+n]];"solid"===o.fillStyle?a.push(tA([i],o)):a.push(rA([i],o))}return o.stroke!==kA&&a.push(s),this._d("rectangle",a,o)}ellipse(e,t,r,n,i){const o=this._o(i),a=[],s=ZT(r,n,o),l=KT(e,t,o,s);if(o.fill)if("solid"===o.fillStyle){const r=KT(e,t,o,s).opset;r.type="fillPath",a.push(r)}else a.push(rA([l.estimatedPoints],o));return o.stroke!==kA&&a.push(l.opset),this._d("ellipse",a,o)}circle(e,t,r,n){const i=this.ellipse(e,t,r,r,n);return i.shape="circle",i}linearPath(e,t){const r=this._o(t);return this._d("linearPath",[JT(e,!1,r)],r)}arc(e,t,r,n,i,o,a=!1,s){const l=this._o(s),c=[],u=QT(e,t,r,n,i,o,a,!0,l);if(a&&l.fill)if("solid"===l.fillStyle){const a=Object.assign({},l);a.disableMultiStroke=!0;const s=QT(e,t,r,n,i,o,!0,!1,a);s.type="fillPath",c.push(s)}else c.push(function(e,t,r,n,i,o,a){const s=e,l=t;let c=Math.abs(r/2),u=Math.abs(n/2);c+=aA(.01*c,a),u+=aA(.01*u,a);let h=i,d=o;for(;h<0;)h+=2*Math.PI,d+=2*Math.PI;d-h>2*Math.PI&&(h=0,d=2*Math.PI);const p=(d-h)/a.curveStepCount,g=[];for(let f=h;f<=d;f+=p)g.push([s+c*Math.cos(f),l+u*Math.sin(f)]);return g.push([s+c*Math.cos(d),l+u*Math.sin(d)]),g.push([s,l]),rA([g],a)}(e,t,r,n,i,o,l));return l.stroke!==kA&&c.push(u),this._d("arc",c,l)}curve(e,t){const r=this._o(t),n=[],i=YT(e,r);if(r.fill&&r.fill!==kA)if("solid"===r.fillStyle){const t=YT(e,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else{const t=[],i=e;if(i.length){const e="number"==typeof i[0][0]?[i]:i;for(const n of e)n.length<3?t.push(...n):3===n.length?t.push(...wA(fA([n[0],n[0],n[1],n[2]]),10,(1+r.roughness)/2)):t.push(...wA(fA(n),10,(1+r.roughness)/2))}t.length&&n.push(rA([t],r))}return r.stroke!==kA&&n.push(i),this._d("curve",n,r)}polygon(e,t){const r=this._o(t),n=[],i=JT(e,!0,r);return r.fill&&("solid"===r.fillStyle?n.push(tA([e],r)):n.push(rA([e],r))),r.stroke!==kA&&n.push(i),this._d("polygon",n,r)}path(e,t){const r=this._o(t),n=[];if(!e)return this._d("path",n,r);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=r.fill&&"transparent"!==r.fill&&r.fill!==kA,o=r.stroke!==kA,a=!!(r.simplification&&r.simplification<1),s=function(e,t,r){const n=qT(WT(VT(e))),i=[];let o=[],a=[0,0],s=[];const l=()=>{s.length>=4&&o.push(...wA(s,1)),s=[]},c=()=>{l(),o.length&&(i.push(o),o=[])};for(const{key:h,data:d}of n)switch(h){case"M":c(),a=[d[0],d[1]],o.push(a);break;case"L":l(),o.push([d[0],d[1]]);break;case"C":if(!s.length){const e=o.length?o[o.length-1]:a;s.push([e[0],e[1]])}s.push([d[0],d[1]]),s.push([d[2],d[3]]),s.push([d[4],d[5]]);break;case"Z":l(),o.push([a[0],a[1]])}if(c(),!r)return i;const u=[];for(const h of i){const e=xA(h,r);e.length&&u.push(e)}return u}(e,0,a?4-4*(r.simplification||1):(1+r.roughness)/2),l=eA(e,r);if(i)if("solid"===r.fillStyle)if(1===s.length){const t=eA(e,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(t.ops)})}else n.push(tA(s,r));else n.push(rA(s,r));return o&&(a?s.forEach(e=>{n.push(JT(e,!1,r))}):n.push(l)),this._d("path",n,r)}opsToPath(e,t){let r="";for(const n of e.ops){const e="number"==typeof t&&t>=0?n.data.map(e=>+e.toFixed(t)):n.data;switch(n.op){case"move":r+=`M${e[0]} ${e[1]} `;break;case"bcurveTo":r+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case"lineTo":r+=`L${e[0]} ${e[1]} `}}return r.trim()}toPaths(e){const t=e.sets||[],r=e.options||this.defaultOptions,n=[];for(const i of t){let e=null;switch(i.type){case"path":e={d:this.opsToPath(i),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:kA};break;case"fillPath":e={d:this.opsToPath(i),stroke:kA,strokeWidth:0,fill:r.fill||kA};break;case"fillSketch":e=this.fillSketch(i,r)}e&&n.push(e)}return n}fillSketch(e,t){let r=t.fillWeight;return r<0&&(r=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||kA,strokeWidth:r,fill:kA}}_mergedShape(e){return e.filter((e,t)=>0===t||"move"!==e.op)}}const _A="http://www.w3.org/2000/svg";class TA{constructor(e,t){this.svg=e,this.gen=new SA(t)}draw(e){const t=e.sets||[],r=e.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,i=n.createElementNS(_A,"g"),o=e.options.fixedDecimalPlaceDigits;for(const a of t){let t=null;switch(a.type){case"path":t=n.createElementNS(_A,"path"),t.setAttribute("d",this.opsToPath(a,o)),t.setAttribute("stroke",r.stroke),t.setAttribute("stroke-width",r.strokeWidth+""),t.setAttribute("fill","none"),r.strokeLineDash&&t.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&t.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":t=n.createElementNS(_A,"path"),t.setAttribute("d",this.opsToPath(a,o)),t.setAttribute("stroke","none"),t.setAttribute("stroke-width","0"),t.setAttribute("fill",r.fill||""),"curve"!==e.shape&&"polygon"!==e.shape||t.setAttribute("fill-rule","evenodd");break;case"fillSketch":t=this.fillSketch(n,a,r)}t&&i.appendChild(t)}return i}fillSketch(e,t,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2);const i=e.createElementNS(_A,"path");return i.setAttribute("d",this.opsToPath(t,r.fixedDecimalPlaceDigits)),i.setAttribute("stroke",r.fill||""),i.setAttribute("stroke-width",n+""),i.setAttribute("fill","none"),r.fillLineDash&&i.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,r,n,i){const o=this.gen.line(e,t,r,n,i);return this.draw(o)}rectangle(e,t,r,n,i){const o=this.gen.rectangle(e,t,r,n,i);return this.draw(o)}ellipse(e,t,r,n,i){const o=this.gen.ellipse(e,t,r,n,i);return this.draw(o)}circle(e,t,r,n){const i=this.gen.circle(e,t,r,n);return this.draw(i)}linearPath(e,t){const r=this.gen.linearPath(e,t);return this.draw(r)}polygon(e,t){const r=this.gen.polygon(e,t);return this.draw(r)}arc(e,t,r,n,i,o,a=!1,s){const l=this.gen.arc(e,t,r,n,i,o,a,s);return this.draw(l)}curve(e,t){const r=this.gen.curve(e,t);return this.draw(r)}path(e,t){const r=this.gen.path(e,t);return this.draw(r)}}var AA=(e,t)=>new TA(e,t),EA=vu(async(e,t,r)=>{var n,i;let o;const a=t.useHtmlLabels||sp(null==(n=Wp())?void 0:n.htmlLabels);o=r||"node default";const s=e.insert("g").attr("class",o).attr("id",t.domId||t.id),l=s.insert("g").attr("class","label").attr("style",_S(t.labelStyle));let c;c=void 0===t.label?"":"string"==typeof t.label?t.label:t.label[0];const u=await AT(l,ep(kS(c),Wp()),{useHtmlLabels:a,width:t.width||(null==(i=Wp().flowchart)?void 0:i.wrappingWidth),cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img});let h=u.getBBox();const d=((null==t?void 0:t.padding)??0)/2;if(a){const e=u.children[0],t=yf(u),r=e.getElementsByTagName("img");if(r){const e=""===c.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map(t=>new Promise(r=>{function n(){if(t.style.display="flex",t.style.flexDirection="column",e){const e=Wp().fontSize?Wp().fontSize:window.getComputedStyle(document.body).fontSize,r=5,[n=Td.fontSize]=vS(e),i=n*r+"px";t.style.minWidth=i,t.style.maxWidth=i}else t.style.width="100%";r(t)}vu(n,"setupImage"),setTimeout(()=>{t.complete&&n()}),t.addEventListener("error",n),t.addEventListener("load",n)})))}h=e.getBoundingClientRect(),t.attr("width",h.width),t.attr("height",h.height)}return a?l.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):l.attr("transform","translate(0, "+-h.height/2+")"),t.centerLabel&&l.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:s,bbox:h,halfPadding:d,label:l}},"labelHelper"),PA=vu(async(e,t,r)=>{var n,i,o,a,s,l;const c=r.useHtmlLabels||sp(null==(i=null==(n=Wp())?void 0:n.flowchart)?void 0:i.htmlLabels),u=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),h=await AT(u,ep(kS(t),Wp()),{useHtmlLabels:c,width:r.width||(null==(a=null==(o=Wp())?void 0:o.flowchart)?void 0:a.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let d=h.getBBox();const p=r.padding/2;if(sp(null==(l=null==(s=Wp())?void 0:s.flowchart)?void 0:l.htmlLabels)){const e=h.children[0],t=yf(h);d=e.getBoundingClientRect(),t.attr("width",d.width),t.attr("height",d.height)}return c?u.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"):u.attr("transform","translate(0, "+-d.height/2+")"),r.centerLabel&&u.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),u.insert("rect",":first-child"),{shapeSvg:e,bbox:d,halfPadding:p,label:u}},"insertLabel"),MA=vu((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),IA=vu((e,t)=>("handDrawn"===e.look?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function BA(e){const t=e.map((e,t)=>`${0===t?"M":"L"}${e.x},${e.y}`);return t.push("Z"),t.join(" ")}function LA(e,t,r,n,i,o){const a=[],s=r-e,l=n-t,c=s/o,u=2*Math.PI/c,h=t+l/2;for(let d=0;d<=50;d++){const t=e+d/50*s,r=h+i*Math.sin(u*(t-e));a.push({x:t,y:r})}return a}function jA(e,t,r,n,i,o){const a=[],s=i*Math.PI/180,l=(o*Math.PI/180-s)/(n-1);for(let c=0;c<n;c++){const n=s+c*l,i=e+r*Math.cos(n),o=t+r*Math.sin(n);a.push({x:-i,y:-o})}return a}vu(BA,"createPathFromPoints"),vu(LA,"generateFullSineWavePoints"),vu(jA,"generateCirclePoints");var NA=vu((e,t)=>{var r,n,i=e.x,o=e.y,a=t.x-i,s=t.y-o,l=e.width/2,c=e.height/2;return Math.abs(s)*l>Math.abs(a)*c?(s<0&&(c=-c),r=0===s?0:c*a/s,n=c):(a<0&&(l=-l),r=l,n=0===a?0:l*s/a),{x:i+r,y:o+n}},"intersectRect");function DA(e,t){t&&e.attr("style",t)}async function OA(e){const t=yf(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),n=Wp();let i=e.label;e.label&&mp(e.label)&&(i=await vp(e.label.replace(xp.lineBreakRegex,"\n"),n));const o='<span class="'+(e.isNode?"nodeLabel":"edgeLabel")+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+i+"</span>";return r.html(ep(o,n)),DA(r,e.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}vu(DA,"applyStyle"),vu(OA,"addHtmlLabel");var zA=vu(async(e,t,r,n)=>{let i=e||"";if("object"==typeof i&&(i=i[0]),sp(Wp().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"<br />"),wu.info("vertexText"+i);const e={isNode:n,label:kS(i).replace(/fa[blrs]?:fa-[\w-]+/g,e=>`<i class='${e.replace(":"," ")}'></i>`),labelStyle:t?t.replace("fill:","color:"):t};return await OA(e)}{const e=document.createElementNS("http://www.w3.org/2000/svg","text");e.setAttribute("style",t.replace("color:","fill:"));let n=[];n="string"==typeof i?i.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(i)?i:[];for(const t of n){const n=document.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),n.setAttribute("dy","1em"),n.setAttribute("x","0"),r?n.setAttribute("class","title-row"):n.setAttribute("class","row"),n.textContent=t.trim(),e.appendChild(n)}return e}},"createLabel"),FA=vu((e,t,r,n,i)=>["M",e+i,t,"H",e+r-i,"A",i,i,0,0,1,e+r,t+i,"V",t+n-i,"A",i,i,0,0,1,e+r-i,t+n,"H",e+i,"A",i,i,0,0,1,e,t+n-i,"V",t+i,"A",i,i,0,0,1,e+i,t,"Z"].join(" "),"createRoundedRectPathD"),RA=vu(async(e,t)=>{wu.info("Creating subgraph rect for ",t.id,t);const r=Wp(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:o,clusterBorder:a}=n,{labelStyles:s,nodeStyles:l,borderStyles:c,backgroundStyles:u}=MC(t),h=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),d=sp(r.flowchart.htmlLabels),p=h.insert("g").attr("class","cluster-label "),g=await AT(p,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0});let f=g.getBBox();if(sp(r.flowchart.htmlLabels)){const e=g.children[0],t=yf(g);f=e.getBoundingClientRect(),t.attr("width",f.width),t.attr("height",f.height)}const m=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(m-t.width)/2-t.padding:t.diff=-t.padding;const y=t.height,b=t.x-m/2,v=t.y-y/2;let x;if(wu.trace("Data ",t,JSON.stringify(t)),"handDrawn"===t.look){const e=AA(h),r=IC(t,{roughness:.7,fill:o,stroke:a,fillWeight:3,seed:i}),n=e.path(FA(b,v,m,y,0),r);x=h.insert(()=>(wu.debug("Rough node insert CXC",n),n),":first-child"),x.select("path:nth-child(2)").attr("style",c.join(";")),x.select("path").attr("style",u.join(";").replace("fill","stroke"))}else x=h.insert("rect",":first-child"),x.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",v).attr("width",m).attr("height",y);const{subGraphTitleTopMargin:C}=_C(r);if(p.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+C})`),s){const e=p.select("span");e&&e.attr("style",s)}const w=x.node().getBBox();return t.offsetX=0,t.width=w.width,t.height=w.height,t.offsetY=f.height-t.padding/2,t.intersect=function(e){return NA(t,e)},{cluster:h,labelBBox:f}},"rect"),$A=vu((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.id),n=r.insert("rect",":first-child"),i=0*t.padding,o=i/2;n.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const a=n.node().getBBox();return t.width=a.width,t.height=a.height,t.intersect=function(e){return NA(t,e)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),VA=vu(async(e,t)=>{const r=Wp(),{themeVariables:n,handDrawnSeed:i}=r,{altBackground:o,compositeBackground:a,compositeTitleBackground:s,nodeBorder:l}=n,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),u=c.insert("g",":first-child"),h=c.insert("g").attr("class","cluster-label");let d=c.append("rect");const p=h.node().appendChild(await zA(t.label,t.labelStyle,void 0,!0));let g=p.getBBox();if(sp(r.flowchart.htmlLabels)){const e=p.children[0],t=yf(p);g=e.getBoundingClientRect(),t.attr("width",g.width),t.attr("height",g.height)}const f=0*t.padding,m=f/2,y=(t.width<=g.width+t.padding?g.width+t.padding:t.width)+f;t.width<=g.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const b=t.height+f,v=t.height+f-g.height-6,x=t.x-y/2,C=t.y-b/2;t.width=y;const w=t.y-t.height/2-m+g.height+2;let k;if("handDrawn"===t.look){const e=t.cssClasses.includes("statediagram-cluster-alt"),r=AA(c),n=t.rx||t.ry?r.path(FA(x,C,y,b,10),{roughness:.7,fill:s,fillStyle:"solid",stroke:l,seed:i}):r.rectangle(x,C,y,b,{seed:i});k=c.insert(()=>n,":first-child");const u=r.rectangle(x,w,y,v,{fill:e?o:a,fillStyle:e?"hachure":"solid",stroke:l,seed:i});k=c.insert(()=>n,":first-child"),d=c.insert(()=>u)}else{k=u.insert("rect",":first-child");const e="outer";k.attr("class",e).attr("x",x).attr("y",C).attr("width",y).attr("height",b).attr("data-look",t.look),d.attr("class","inner").attr("x",x).attr("y",w).attr("width",y).attr("height",v)}h.attr("transform",`translate(${t.x-g.width/2}, ${C+1-(sp(r.flowchart.htmlLabels)?0:3)})`);const S=k.node().getBBox();return t.height=S.height,t.offsetX=0,t.offsetY=g.height-t.padding/2,t.labelBBox=g,t.intersect=function(e){return NA(t,e)},{cluster:c,labelBBox:g}},"roundedWithTitle"),WA=vu(async(e,t)=>{wu.info("Creating subgraph rect for ",t.id,t);const r=Wp(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:o,clusterBorder:a}=n,{labelStyles:s,nodeStyles:l,borderStyles:c,backgroundStyles:u}=MC(t),h=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),d=sp(r.flowchart.htmlLabels),p=h.insert("g").attr("class","cluster-label "),g=await AT(p,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0,width:t.width});let f=g.getBBox();if(sp(r.flowchart.htmlLabels)){const e=g.children[0],t=yf(g);f=e.getBoundingClientRect(),t.attr("width",f.width),t.attr("height",f.height)}const m=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(m-t.width)/2-t.padding:t.diff=-t.padding;const y=t.height,b=t.x-m/2,v=t.y-y/2;let x;if(wu.trace("Data ",t,JSON.stringify(t)),"handDrawn"===t.look){const e=AA(h),r=IC(t,{roughness:.7,fill:o,stroke:a,fillWeight:4,seed:i}),n=e.path(FA(b,v,m,y,t.rx),r);x=h.insert(()=>(wu.debug("Rough node insert CXC",n),n),":first-child"),x.select("path:nth-child(2)").attr("style",c.join(";")),x.select("path").attr("style",u.join(";").replace("fill","stroke"))}else x=h.insert("rect",":first-child"),x.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",v).attr("width",m).attr("height",y);const{subGraphTitleTopMargin:C}=_C(r);if(p.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+C})`),s){const e=p.select("span");e&&e.attr("style",s)}const w=x.node().getBBox();return t.offsetX=0,t.width=w.width,t.height=w.height,t.offsetY=f.height-t.padding/2,t.intersect=function(e){return NA(t,e)},{cluster:h,labelBBox:f}},"kanbanSection"),qA={rect:RA,squareRect:RA,roundedWithTitle:VA,noteGroup:$A,divider:vu((e,t)=>{const r=Wp(),{themeVariables:n,handDrawnSeed:i}=r,{nodeBorder:o}=n,a=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),s=a.insert("g",":first-child"),l=0*t.padding,c=t.width+l;t.diff=-t.padding;const u=t.height+l,h=t.x-c/2,d=t.y-u/2;let p;if(t.width=c,"handDrawn"===t.look){const e=AA(a).rectangle(h,d,c,u,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:o,seed:i});p=a.insert(()=>e,":first-child")}else{p=s.insert("rect",":first-child");const e="divider";p.attr("class",e).attr("x",h).attr("y",d).attr("width",c).attr("height",u).attr("data-look",t.look)}const g=p.node().getBBox();return t.height=g.height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return NA(t,e)},{cluster:a,labelBBox:{}}},"divider"),kanbanSection:WA},HA=new Map,UA=vu(async(e,t)=>{const r=t.shape||"rect",n=await qA[r](e,t);return HA.set(t.id,n),n},"insertCluster"),GA=vu(()=>{HA=new Map},"clear");function XA(e,t){return e.intersect(t)}vu(XA,"intersectNode");var JA=XA;function YA(e,t,r,n){var i=e.x,o=e.y,a=i-n.x,s=o-n.y,l=Math.sqrt(t*t*s*s+r*r*a*a),c=Math.abs(t*r*a/l);n.x<i&&(c=-c);var u=Math.abs(t*r*s/l);return n.y<o&&(u=-u),{x:i+c,y:o+u}}vu(YA,"intersectEllipse");var ZA=YA;function KA(e,t,r){return ZA(e,t,t,r)}vu(KA,"intersectCircle");var QA=KA;function eE(e,t,r,n){{const i=t.y-e.y,o=e.x-t.x,a=t.x*e.y-e.x*t.y,s=i*r.x+o*r.y+a,l=i*n.x+o*n.y+a,c=1e-6;if(0!==s&&0!==l&&tE(s,l))return;const u=n.y-r.y,h=r.x-n.x,d=n.x*r.y-r.x*n.y,p=u*e.x+h*e.y+d,g=u*t.x+h*t.y+d;if(Math.abs(p)<c&&Math.abs(g)<c&&tE(p,g))return;const f=i*h-u*o;if(0===f)return;const m=Math.abs(f/2);let y=o*d-h*a;const b=y<0?(y-m)/f:(y+m)/f;y=u*a-i*d;return{x:b,y:y<0?(y-m)/f:(y+m)/f}}}function tE(e,t){return e*t>0}vu(eE,"intersectLine"),vu(tE,"sameSign");var rE=eE;function nE(e,t,r){let n=e.x,i=e.y,o=[],a=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof t.forEach?t.forEach(function(e){a=Math.min(a,e.x),s=Math.min(s,e.y)}):(a=Math.min(a,t.x),s=Math.min(s,t.y));let l=n-e.width/2-a,c=i-e.height/2-s;for(let u=0;u<t.length;u++){let n=t[u],i=t[u<t.length-1?u+1:0],a=rE(e,r,{x:l+n.x,y:c+n.y},{x:l+i.x,y:c+i.y});a&&o.push(a)}return o.length?(o.length>1&&o.sort(function(e,t){let n=e.x-r.x,i=e.y-r.y,o=Math.sqrt(n*n+i*i),a=t.x-r.x,s=t.y-r.y,l=Math.sqrt(a*a+s*s);return o<l?-1:o===l?0:1}),o[0]):e}vu(nE,"intersectPolygon");var iE={node:JA,circle:QA,ellipse:ZA,polygon:nE,rect:NA};function oE(e,t){const{labelStyles:r}=MC(t);t.labelStyle=r;const n=IA(t);let i=n;n||(i="anchor");const o=e.insert("g").attr("class",i).attr("id",t.domId||t.id),{cssStyles:a}=t,s=AA(o),l=IC(t,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==t.look&&(l.roughness=0);const c=s.circle(0,0,2,l),u=o.insert(()=>c,":first-child");return u.attr("class","anchor").attr("style",_S(a)),MA(t,u),t.intersect=function(e){return wu.info("Circle intersect",t,1,e),iE.circle(t,1,e)},o}function aE(e,t,r,n,i,o,a){const s=(e+r)/2,l=(t+n)/2,c=Math.atan2(n-t,r-e),u=(r-e)/2/i,h=(n-t)/2/o,d=Math.sqrt(u**2+h**2);if(d>1)throw new Error("The given radii are too small to create an arc between the points.");const p=Math.sqrt(1-d**2),g=s+p*o*Math.sin(c)*(a?-1:1),f=l-p*i*Math.cos(c)*(a?-1:1),m=Math.atan2((t-f)/o,(e-g)/i);let y=Math.atan2((n-f)/o,(r-g)/i)-m;a&&y<0&&(y+=2*Math.PI),!a&&y>0&&(y-=2*Math.PI);const b=[];for(let v=0;v<20;v++){const e=m+v/19*y,t=g+i*Math.cos(e),r=f+o*Math.sin(e);b.push({x:t,y:r})}return b}async function sE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await EA(e,t,IA(t)),a=o.width+t.padding+20,s=o.height+t.padding,l=s/2,c=l/(2.5+s/50),{cssStyles:u}=t,h=[{x:a/2,y:-s/2},{x:-a/2,y:-s/2},...aE(-a/2,-s/2,-a/2,s/2,c,l,!1),{x:a/2,y:s/2},...aE(a/2,s/2,a/2,-s/2,c,l,!0)],d=AA(i),p=IC(t,{});"handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid");const g=BA(h),f=d.path(g,p),m=i.insert(()=>f,":first-child");return m.attr("class","basic label-container"),u&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",u),n&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",n),m.attr("transform",`translate(${c/2}, 0)`),MA(t,m),t.intersect=function(e){return iE.polygon(t,h,e)},i}function lE(e,t,r,n){return e.insert("polygon",":first-child").attr("points",n.map(function(e){return e.x+","+e.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}async function cE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await EA(e,t,IA(t)),a=o.height+t.padding,s=o.width+t.padding+12,l=-a,c=[{x:12,y:l},{x:s,y:l},{x:s,y:0},{x:0,y:0},{x:0,y:l+12},{x:12,y:l}];let u;const{cssStyles:h}=t;if("handDrawn"===t.look){const e=AA(i),r=IC(t,{}),n=BA(c),o=e.path(n,r);u=i.insert(()=>o,":first-child").attr("transform",`translate(${-s/2}, ${a/2})`),h&&u.attr("style",h)}else u=lE(i,s,a,c);return n&&u.attr("style",n),MA(t,u),t.intersect=function(e){return iE.polygon(t,c,e)},i}function uE(e,t){const{nodeStyles:r}=MC(t);t.label="";const n=e.insert("g").attr("class",IA(t)).attr("id",t.domId??t.id),{cssStyles:i}=t,o=Math.max(28,t.width??0),a=[{x:0,y:o/2},{x:o/2,y:0},{x:0,y:-o/2},{x:-o/2,y:0}],s=AA(n),l=IC(t,{});"handDrawn"!==t.look&&(l.roughness=0,l.fillStyle="solid");const c=BA(a),u=s.path(c,l),h=n.insert(()=>u,":first-child");return i&&"handDrawn"!==t.look&&h.selectAll("path").attr("style",i),r&&"handDrawn"!==t.look&&h.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(e){return iE.polygon(t,a,e)},n}async function hE(e,t,r){const{labelStyles:n,nodeStyles:i}=MC(t);t.labelStyle=n;const{shapeSvg:o,bbox:a,halfPadding:s}=await EA(e,t,IA(t)),l=(null==r?void 0:r.padding)??s,c=a.width/2+l;let u;const{cssStyles:h}=t;if("handDrawn"===t.look){const e=AA(o),r=IC(t,{}),n=e.circle(0,0,2*c,r);u=o.insert(()=>n,":first-child"),u.attr("class","basic label-container").attr("style",_S(h))}else u=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0);return MA(t,u),t.calcIntersect=function(e,t){const r=e.width/2;return iE.circle(e,r,t)},t.intersect=function(e){return wu.info("Circle intersect",t,c,e),iE.circle(t,c,e)},o}function dE(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),n=2*e;return`M ${-n/2*t},${n/2*r} L ${n/2*t},${-n/2*r}\n M ${n/2*t},${n/2*r} L ${-n/2*t},${-n/2*r}`}function pE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r,t.label="";const i=e.insert("g").attr("class",IA(t)).attr("id",t.domId??t.id),o=Math.max(30,(null==t?void 0:t.width)??0),{cssStyles:a}=t,s=AA(i),l=IC(t,{});"handDrawn"!==t.look&&(l.roughness=0,l.fillStyle="solid");const c=s.circle(0,0,2*o,l),u=dE(o),h=s.path(u,l),d=i.insert(()=>c,":first-child");return d.insert(()=>h),a&&"handDrawn"!==t.look&&d.selectAll("path").attr("style",a),n&&"handDrawn"!==t.look&&d.selectAll("path").attr("style",n),MA(t,d),t.intersect=function(e){wu.info("crossedCircle intersect",t,{radius:o,point:e});return iE.circle(t,o,e)},i}function gE(e,t,r,n=100,i=0,o=180){const a=[],s=i*Math.PI/180,l=(o*Math.PI/180-s)/(n-1);for(let c=0;c<n;c++){const n=s+c*l,i=e+r*Math.cos(n),o=t+r*Math.sin(n);a.push({x:-i,y:-o})}return a}async function fE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:a}=await EA(e,t,IA(t)),s=o.width+(t.padding??0),l=o.height+(t.padding??0),c=Math.max(5,.1*l),{cssStyles:u}=t,h=[...gE(s/2,-l/2,c,30,-90,0),{x:-s/2-c,y:c},...gE(s/2+2*c,-c,c,20,-180,-270),...gE(s/2+2*c,c,c,20,-90,-180),{x:-s/2-c,y:-l/2},...gE(s/2,l/2,c,20,0,90)],d=[{x:s/2,y:-l/2-c},{x:-s/2,y:-l/2-c},...gE(s/2,-l/2,c,20,-90,0),{x:-s/2-c,y:-c},...gE(s/2+.1*s,-c,c,20,-180,-270),...gE(s/2+.1*s,c,c,20,-90,-180),{x:-s/2-c,y:l/2},...gE(s/2,l/2,c,20,0,90),{x:-s/2,y:l/2+c},{x:s/2,y:l/2+c}],p=AA(i),g=IC(t,{fill:"none"});"handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid");const f=BA(h).replace("Z",""),m=p.path(f,g),y=BA(d),b=p.path(y,{...g}),v=i.insert("g",":first-child");return v.insert(()=>b,":first-child").attr("stroke-opacity",0),v.insert(()=>m,":first-child"),v.attr("class","text"),u&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",u),n&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",n),v.attr("transform",`translate(${c}, 0)`),a.attr("transform",`translate(${-s/2+c-(o.x-(o.left??0))},${-l/2+(t.padding??0)/2-(o.y-(o.top??0))})`),MA(t,v),t.intersect=function(e){return iE.polygon(t,d,e)},i}function mE(e,t,r,n=100,i=0,o=180){const a=[],s=i*Math.PI/180,l=(o*Math.PI/180-s)/(n-1);for(let c=0;c<n;c++){const n=s+c*l,i=e+r*Math.cos(n),o=t+r*Math.sin(n);a.push({x:i,y:o})}return a}async function yE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:a}=await EA(e,t,IA(t)),s=o.width+(t.padding??0),l=o.height+(t.padding??0),c=Math.max(5,.1*l),{cssStyles:u}=t,h=[...mE(s/2,-l/2,c,20,-90,0),{x:s/2+c,y:-c},...mE(s/2+2*c,-c,c,20,-180,-270),...mE(s/2+2*c,c,c,20,-90,-180),{x:s/2+c,y:l/2},...mE(s/2,l/2,c,20,0,90)],d=[{x:-s/2,y:-l/2-c},{x:s/2,y:-l/2-c},...mE(s/2,-l/2,c,20,-90,0),{x:s/2+c,y:-c},...mE(s/2+2*c,-c,c,20,-180,-270),...mE(s/2+2*c,c,c,20,-90,-180),{x:s/2+c,y:l/2},...mE(s/2,l/2,c,20,0,90),{x:s/2,y:l/2+c},{x:-s/2,y:l/2+c}],p=AA(i),g=IC(t,{fill:"none"});"handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid");const f=BA(h).replace("Z",""),m=p.path(f,g),y=BA(d),b=p.path(y,{...g}),v=i.insert("g",":first-child");return v.insert(()=>b,":first-child").attr("stroke-opacity",0),v.insert(()=>m,":first-child"),v.attr("class","text"),u&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",u),n&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",n),v.attr("transform",`translate(${-c}, 0)`),a.attr("transform",`translate(${-s/2+(t.padding??0)/2-(o.x-(o.left??0))},${-l/2+(t.padding??0)/2-(o.y-(o.top??0))})`),MA(t,v),t.intersect=function(e){return iE.polygon(t,d,e)},i}function bE(e,t,r,n=100,i=0,o=180){const a=[],s=i*Math.PI/180,l=(o*Math.PI/180-s)/(n-1);for(let c=0;c<n;c++){const n=s+c*l,i=e+r*Math.cos(n),o=t+r*Math.sin(n);a.push({x:-i,y:-o})}return a}async function vE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:a}=await EA(e,t,IA(t)),s=o.width+(t.padding??0),l=o.height+(t.padding??0),c=Math.max(5,.1*l),{cssStyles:u}=t,h=[...bE(s/2,-l/2,c,30,-90,0),{x:-s/2-c,y:c},...bE(s/2+2*c,-c,c,20,-180,-270),...bE(s/2+2*c,c,c,20,-90,-180),{x:-s/2-c,y:-l/2},...bE(s/2,l/2,c,20,0,90)],d=[...bE(-s/2+c+c/2,-l/2,c,20,-90,-180),{x:s/2-c/2,y:c},...bE(-s/2-c/2,-c,c,20,0,90),...bE(-s/2-c/2,c,c,20,-90,0),{x:s/2-c/2,y:-c},...bE(-s/2+c+c/2,l/2,c,30,-180,-270)],p=[{x:s/2,y:-l/2-c},{x:-s/2,y:-l/2-c},...bE(s/2,-l/2,c,20,-90,0),{x:-s/2-c,y:-c},...bE(s/2+2*c,-c,c,20,-180,-270),...bE(s/2+2*c,c,c,20,-90,-180),{x:-s/2-c,y:l/2},...bE(s/2,l/2,c,20,0,90),{x:-s/2,y:l/2+c},{x:s/2-c-c/2,y:l/2+c},...bE(-s/2+c+c/2,-l/2,c,20,-90,-180),{x:s/2-c/2,y:c},...bE(-s/2-c/2,-c,c,20,0,90),...bE(-s/2-c/2,c,c,20,-90,0),{x:s/2-c/2,y:-c},...bE(-s/2+c+c/2,l/2,c,30,-180,-270)],g=AA(i),f=IC(t,{fill:"none"});"handDrawn"!==t.look&&(f.roughness=0,f.fillStyle="solid");const m=BA(h).replace("Z",""),y=g.path(m,f),b=BA(d).replace("Z",""),v=g.path(b,f),x=BA(p),C=g.path(x,{...f}),w=i.insert("g",":first-child");return w.insert(()=>C,":first-child").attr("stroke-opacity",0),w.insert(()=>y,":first-child"),w.insert(()=>v,":first-child"),w.attr("class","text"),u&&"handDrawn"!==t.look&&w.selectAll("path").attr("style",u),n&&"handDrawn"!==t.look&&w.selectAll("path").attr("style",n),w.attr("transform",`translate(${c-c/4}, 0)`),a.attr("transform",`translate(${-s/2+(t.padding??0)/2-(o.x-(o.left??0))},${-l/2+(t.padding??0)/2-(o.y-(o.top??0))})`),MA(t,w),t.intersect=function(e){return iE.polygon(t,p,e)},i}async function xE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await EA(e,t,IA(t)),a=Math.max(80,1.25*(o.width+2*(t.padding??0)),(null==t?void 0:t.width)??0),s=Math.max(20,o.height+2*(t.padding??0),(null==t?void 0:t.height)??0),l=s/2,{cssStyles:c}=t,u=AA(i),h=IC(t,{});"handDrawn"!==t.look&&(h.roughness=0,h.fillStyle="solid");const d=a-l,p=s/4,g=[{x:d,y:0},{x:p,y:0},{x:0,y:s/2},{x:p,y:s},{x:d,y:s},...jA(-d,-s/2,l,50,270,90)],f=BA(g),m=u.path(f,h),y=i.insert(()=>m,":first-child");return y.attr("class","basic label-container"),c&&"handDrawn"!==t.look&&y.selectChildren("path").attr("style",c),n&&"handDrawn"!==t.look&&y.selectChildren("path").attr("style",n),y.attr("transform",`translate(${-a/2}, ${-s/2})`),MA(t,y),t.intersect=function(e){return iE.polygon(t,g,e)},i}vu(oE,"anchor"),vu(aE,"generateArcPoints"),vu(sE,"bowTieRect"),vu(lE,"insertPolygonShape"),vu(cE,"card"),vu(uE,"choice"),vu(hE,"circle"),vu(dE,"createLine"),vu(pE,"crossedCircle"),vu(gE,"generateCirclePoints"),vu(fE,"curlyBraceLeft"),vu(mE,"generateCirclePoints"),vu(yE,"curlyBraceRight"),vu(bE,"generateCirclePoints"),vu(vE,"curlyBraces"),vu(xE,"curvedTrapezoid");var CE=vu((e,t,r,n,i,o)=>[`M${e},${t+o}`,`a${i},${o} 0,0,0 ${r},0`,`a${i},${o} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${o} 0,0,0 ${r},0`,"l0,"+-n].join(" "),"createCylinderPathD"),wE=vu((e,t,r,n,i,o)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${i},${o} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${o} 0,0,0 ${r},0`,"l0,"+-n].join(" "),"createOuterCylinderPathD"),kE=vu((e,t,r,n,i,o)=>[`M${e-r/2},${-n/2}`,`a${i},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function SE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:a}=await EA(e,t,IA(t)),s=Math.max(o.width+t.padding,t.width??0),l=s/2,c=l/(2.5+s/50),u=Math.max(o.height+c+t.padding,t.height??0);let h;const{cssStyles:d}=t;if("handDrawn"===t.look){const e=AA(i),r=wE(0,0,s,u,l,c),n=kE(0,c,s,u,l,c),o=e.path(r,IC(t,{})),a=e.path(n,IC(t,{fill:"none"}));h=i.insert(()=>a,":first-child"),h=i.insert(()=>o,":first-child"),h.attr("class","basic label-container"),d&&h.attr("style",d)}else{const e=CE(0,0,s,u,l,c);h=i.insert("path",":first-child").attr("d",e).attr("class","basic label-container").attr("style",_S(d)).attr("style",n)}return h.attr("label-offset-y",c),h.attr("transform",`translate(${-s/2}, ${-(u/2+c)})`),MA(t,h),a.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-o.height/2+(t.padding??0)/1.5-(o.y-(o.top??0))})`),t.intersect=function(e){const r=iE.rect(t,e),n=r.x-(t.x??0);if(0!=l&&(Math.abs(n)<(t.width??0)/2||Math.abs(n)==(t.width??0)/2&&Math.abs(r.y-(t.y??0))>(t.height??0)/2-c)){let i=c*c*(1-n*n/(l*l));i>0&&(i=Math.sqrt(i)),i=c-i,e.y-(t.y??0)>0&&(i=-i),r.y+=i}return r},i}async function _E(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:a}=await EA(e,t,IA(t)),s=o.width+t.padding,l=o.height+t.padding,c=.2*l,u=-s/2,h=-l/2-c/2,{cssStyles:d}=t,p=AA(i),g=IC(t,{});"handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid");const f=[{x:u,y:h+c},{x:-u,y:h+c},{x:-u,y:-h},{x:u,y:-h},{x:u,y:h},{x:-u,y:h},{x:-u,y:h+c}],m=p.polygon(f.map(e=>[e.x,e.y]),g),y=i.insert(()=>m,":first-child");return y.attr("class","basic label-container"),d&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",d),n&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",n),a.attr("transform",`translate(${u+(t.padding??0)/2-(o.x-(o.left??0))}, ${h+c+(t.padding??0)/2-(o.y-(o.top??0))})`),MA(t,y),t.intersect=function(e){return iE.rect(t,e)},i}async function TE(e,t){var r,n;const{labelStyles:i,nodeStyles:o}=MC(t);t.labelStyle=i;const{shapeSvg:a,bbox:s,halfPadding:l}=await EA(e,t,IA(t)),c=s.width/2+l+5,u=s.width/2+l;let h;const{cssStyles:d}=t;if("handDrawn"===t.look){const e=AA(a),i=IC(t,{roughness:.2,strokeWidth:2.5}),o=IC(t,{roughness:.2,strokeWidth:1.5}),s=e.circle(0,0,2*c,i),l=e.circle(0,0,2*u,o);h=a.insert("g",":first-child"),h.attr("class",_S(t.cssClasses)).attr("style",_S(d)),null==(r=h.node())||r.appendChild(s),null==(n=h.node())||n.appendChild(l)}else{h=a.insert("g",":first-child");const e=h.insert("circle",":first-child"),t=h.insert("circle");h.attr("class","basic label-container").attr("style",o),e.attr("class","outer-circle").attr("style",o).attr("r",c).attr("cx",0).attr("cy",0),t.attr("class","inner-circle").attr("style",o).attr("r",u).attr("cx",0).attr("cy",0)}return MA(t,h),t.intersect=function(e){return wu.info("DoubleCircle intersect",t,c,e),iE.circle(t,c,e)},a}function AE(e,t,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=MC(t);t.label="",t.labelStyle=n;const o=e.insert("g").attr("class",IA(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,s=AA(o),{nodeBorder:l}=r,c=IC(t,{fillStyle:"solid"});"handDrawn"!==t.look&&(c.roughness=0);const u=s.circle(0,0,14,c),h=o.insert(()=>u,":first-child");return h.selectAll("path").attr("style",`fill: ${l} !important;`),a&&a.length>0&&"handDrawn"!==t.look&&h.selectAll("path").attr("style",a),i&&"handDrawn"!==t.look&&h.selectAll("path").attr("style",i),MA(t,h),t.intersect=function(e){wu.info("filledCircle intersect",t,{radius:7,point:e});return iE.circle(t,7,e)},o}async function EE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:a}=await EA(e,t,IA(t)),s=o.width+(t.padding??0),l=s+o.height,c=s+o.height,u=[{x:0,y:-l},{x:c,y:-l},{x:c/2,y:0}],{cssStyles:h}=t,d=AA(i),p=IC(t,{});"handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid");const g=BA(u),f=d.path(g,p),m=i.insert(()=>f,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`);return h&&"handDrawn"!==t.look&&m.selectChildren("path").attr("style",h),n&&"handDrawn"!==t.look&&m.selectChildren("path").attr("style",n),t.width=s,t.height=l,MA(t,m),a.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-l/2+(t.padding??0)/2+(o.y-(o.top??0))})`),t.intersect=function(e){return wu.info("Triangle intersect",t,u,e),iE.polygon(t,u,e)},i}function PE(e,t,{dir:r,config:{state:n,themeVariables:i}}){const{nodeStyles:o}=MC(t);t.label="";const a=e.insert("g").attr("class",IA(t)).attr("id",t.domId??t.id),{cssStyles:s}=t;let l=Math.max(70,(null==t?void 0:t.width)??0),c=Math.max(10,(null==t?void 0:t.height)??0);"LR"===r&&(l=Math.max(10,(null==t?void 0:t.width)??0),c=Math.max(70,(null==t?void 0:t.height)??0));const u=-1*l/2,h=-1*c/2,d=AA(a),p=IC(t,{stroke:i.lineColor,fill:i.lineColor});"handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid");const g=d.rectangle(u,h,l,c,p),f=a.insert(()=>g,":first-child");s&&"handDrawn"!==t.look&&f.selectAll("path").attr("style",s),o&&"handDrawn"!==t.look&&f.selectAll("path").attr("style",o),MA(t,f);const m=(null==n?void 0:n.padding)??0;return t.width&&t.height&&(t.width+=m/2||0,t.height+=m/2||0),t.intersect=function(e){return iE.rect(t,e)},a}async function ME(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await EA(e,t,IA(t)),a=Math.max(80,o.width+2*(t.padding??0),(null==t?void 0:t.width)??0),s=Math.max(50,o.height+2*(t.padding??0),(null==t?void 0:t.height)??0),l=s/2,{cssStyles:c}=t,u=AA(i),h=IC(t,{});"handDrawn"!==t.look&&(h.roughness=0,h.fillStyle="solid");const d=[{x:-a/2,y:-s/2},{x:a/2-l,y:-s/2},...jA(-a/2+l,0,l,50,90,270),{x:a/2-l,y:s/2},{x:-a/2,y:s/2}],p=BA(d),g=u.path(p,h),f=i.insert(()=>g,":first-child");return f.attr("class","basic label-container"),c&&"handDrawn"!==t.look&&f.selectChildren("path").attr("style",c),n&&"handDrawn"!==t.look&&f.selectChildren("path").attr("style",n),MA(t,f),t.intersect=function(e){wu.info("Pill intersect",t,{radius:l,point:e});return iE.polygon(t,d,e)},i}async function IE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await EA(e,t,IA(t)),a=o.height+(t.padding??0),s=o.width+2.5*(t.padding??0),{cssStyles:l}=t,c=AA(i),u=IC(t,{});"handDrawn"!==t.look&&(u.roughness=0,u.fillStyle="solid");let h=s/2;h+=h/6;const d=a/2,p=h-d/2,g=[{x:-p,y:-d},{x:0,y:-d},{x:p,y:-d},{x:h,y:0},{x:p,y:d},{x:0,y:d},{x:-p,y:d},{x:-h,y:0}],f=BA(g),m=c.path(f,u),y=i.insert(()=>m,":first-child");return y.attr("class","basic label-container"),l&&"handDrawn"!==t.look&&y.selectChildren("path").attr("style",l),n&&"handDrawn"!==t.look&&y.selectChildren("path").attr("style",n),t.width=s,t.height=a,MA(t,y),t.intersect=function(e){return iE.polygon(t,g,e)},i}async function BE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.label="",t.labelStyle=r;const{shapeSvg:i}=await EA(e,t,IA(t)),o=Math.max(30,(null==t?void 0:t.width)??0),a=Math.max(30,(null==t?void 0:t.height)??0),{cssStyles:s}=t,l=AA(i),c=IC(t,{});"handDrawn"!==t.look&&(c.roughness=0,c.fillStyle="solid");const u=[{x:0,y:0},{x:o,y:0},{x:0,y:a},{x:o,y:a}],h=BA(u),d=l.path(h,c),p=i.insert(()=>d,":first-child");return p.attr("class","basic label-container"),s&&"handDrawn"!==t.look&&p.selectChildren("path").attr("style",s),n&&"handDrawn"!==t.look&&p.selectChildren("path").attr("style",n),p.attr("transform",`translate(${-o/2}, ${-a/2})`),MA(t,p),t.intersect=function(e){wu.info("Pill intersect",t,{points:u});return iE.polygon(t,u,e)},i}async function LE(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=MC(t);t.labelStyle=i;const o=t.assetHeight??48,a=t.assetWidth??48,s=Math.max(o,a),l=null==n?void 0:n.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:u,label:h}=await EA(e,t,"icon-shape default"),d="t"===t.pos,p=s,g=s,{nodeBorder:f}=r,{stylesMap:m}=AC(t),y=-g/2,b=-p/2,v=t.label?8:0,x=AA(c),C=IC(t,{stroke:"none",fill:"none"});"handDrawn"!==t.look&&(C.roughness=0,C.fillStyle="solid");const w=x.rectangle(y,b,g,p,C),k=Math.max(g,u.width),S=p+u.height+v,_=x.rectangle(-k/2,-S/2,k,S,{...C,fill:"transparent",stroke:"none"}),T=c.insert(()=>w,":first-child"),A=c.insert(()=>_);if(t.icon){const e=c.append("g");e.html(`<g>${await uT(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const r=e.node().getBBox(),n=r.width,i=r.height,o=r.x,a=r.y;e.attr("transform",`translate(${-n/2-o},${d?u.height/2+v/2-i/2-a:-u.height/2-v/2-i/2-a})`),e.attr("style",`color: ${m.get("stroke")??f};`)}return h.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${d?-S/2:S/2-u.height})`),T.attr("transform",`translate(0,${d?u.height/2+v/2:-u.height/2-v/2})`),MA(t,A),t.intersect=function(e){if(wu.info("iconSquare intersect",t,e),!t.label)return iE.rect(t,e);const r=t.x??0,n=t.y??0,i=t.height??0;let o=[];o=d?[{x:r-u.width/2,y:n-i/2},{x:r+u.width/2,y:n-i/2},{x:r+u.width/2,y:n-i/2+u.height+v},{x:r+g/2,y:n-i/2+u.height+v},{x:r+g/2,y:n+i/2},{x:r-g/2,y:n+i/2},{x:r-g/2,y:n-i/2+u.height+v},{x:r-u.width/2,y:n-i/2+u.height+v}]:[{x:r-g/2,y:n-i/2},{x:r+g/2,y:n-i/2},{x:r+g/2,y:n-i/2+p},{x:r+u.width/2,y:n-i/2+p},{x:r+u.width/2/2,y:n+i/2},{x:r-u.width/2,y:n+i/2},{x:r-u.width/2,y:n-i/2+p},{x:r-g/2,y:n-i/2+p}];return iE.polygon(t,o,e)},c}async function jE(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=MC(t);t.labelStyle=i;const o=t.assetHeight??48,a=t.assetWidth??48,s=Math.max(o,a),l=null==n?void 0:n.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:u,label:h}=await EA(e,t,"icon-shape default"),d=t.label?8:0,p="t"===t.pos,{nodeBorder:g,mainBkg:f}=r,{stylesMap:m}=AC(t),y=AA(c),b=IC(t,{});"handDrawn"!==t.look&&(b.roughness=0,b.fillStyle="solid");const v=m.get("fill");b.stroke=v??f;const x=c.append("g");t.icon&&x.html(`<g>${await uT(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const C=x.node().getBBox(),w=C.width,k=C.height,S=C.x,_=C.y,T=Math.max(w,k)*Math.SQRT2+40,A=y.circle(0,0,T,b),E=Math.max(T,u.width),P=T+u.height+d,M=y.rectangle(-E/2,-P/2,E,P,{...b,fill:"transparent",stroke:"none"}),I=c.insert(()=>A,":first-child"),B=c.insert(()=>M);return x.attr("transform",`translate(${-w/2-S},${p?u.height/2+d/2-k/2-_:-u.height/2-d/2-k/2-_})`),x.attr("style",`color: ${m.get("stroke")??g};`),h.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${p?-P/2:P/2-u.height})`),I.attr("transform",`translate(0,${p?u.height/2+d/2:-u.height/2-d/2})`),MA(t,B),t.intersect=function(e){wu.info("iconSquare intersect",t,e);return iE.rect(t,e)},c}async function NE(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=MC(t);t.labelStyle=i;const o=t.assetHeight??48,a=t.assetWidth??48,s=Math.max(o,a),l=null==n?void 0:n.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:u,halfPadding:h,label:d}=await EA(e,t,"icon-shape default"),p="t"===t.pos,g=s+2*h,f=s+2*h,{nodeBorder:m,mainBkg:y}=r,{stylesMap:b}=AC(t),v=-f/2,x=-g/2,C=t.label?8:0,w=AA(c),k=IC(t,{});"handDrawn"!==t.look&&(k.roughness=0,k.fillStyle="solid");const S=b.get("fill");k.stroke=S??y;const _=w.path(FA(v,x,f,g,5),k),T=Math.max(f,u.width),A=g+u.height+C,E=w.rectangle(-T/2,-A/2,T,A,{...k,fill:"transparent",stroke:"none"}),P=c.insert(()=>_,":first-child").attr("class","icon-shape2"),M=c.insert(()=>E);if(t.icon){const e=c.append("g");e.html(`<g>${await uT(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const r=e.node().getBBox(),n=r.width,i=r.height,o=r.x,a=r.y;e.attr("transform",`translate(${-n/2-o},${p?u.height/2+C/2-i/2-a:-u.height/2-C/2-i/2-a})`),e.attr("style",`color: ${b.get("stroke")??m};`)}return d.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${p?-A/2:A/2-u.height})`),P.attr("transform",`translate(0,${p?u.height/2+C/2:-u.height/2-C/2})`),MA(t,M),t.intersect=function(e){if(wu.info("iconSquare intersect",t,e),!t.label)return iE.rect(t,e);const r=t.x??0,n=t.y??0,i=t.height??0;let o=[];o=p?[{x:r-u.width/2,y:n-i/2},{x:r+u.width/2,y:n-i/2},{x:r+u.width/2,y:n-i/2+u.height+C},{x:r+f/2,y:n-i/2+u.height+C},{x:r+f/2,y:n+i/2},{x:r-f/2,y:n+i/2},{x:r-f/2,y:n-i/2+u.height+C},{x:r-u.width/2,y:n-i/2+u.height+C}]:[{x:r-f/2,y:n-i/2},{x:r+f/2,y:n-i/2},{x:r+f/2,y:n-i/2+g},{x:r+u.width/2,y:n-i/2+g},{x:r+u.width/2/2,y:n+i/2},{x:r-u.width/2,y:n+i/2},{x:r-u.width/2,y:n-i/2+g},{x:r-f/2,y:n-i/2+g}];return iE.polygon(t,o,e)},c}async function DE(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=MC(t);t.labelStyle=i;const o=t.assetHeight??48,a=t.assetWidth??48,s=Math.max(o,a),l=null==n?void 0:n.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:u,halfPadding:h,label:d}=await EA(e,t,"icon-shape default"),p="t"===t.pos,g=s+2*h,f=s+2*h,{nodeBorder:m,mainBkg:y}=r,{stylesMap:b}=AC(t),v=-f/2,x=-g/2,C=t.label?8:0,w=AA(c),k=IC(t,{});"handDrawn"!==t.look&&(k.roughness=0,k.fillStyle="solid");const S=b.get("fill");k.stroke=S??y;const _=w.path(FA(v,x,f,g,.1),k),T=Math.max(f,u.width),A=g+u.height+C,E=w.rectangle(-T/2,-A/2,T,A,{...k,fill:"transparent",stroke:"none"}),P=c.insert(()=>_,":first-child"),M=c.insert(()=>E);if(t.icon){const e=c.append("g");e.html(`<g>${await uT(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const r=e.node().getBBox(),n=r.width,i=r.height,o=r.x,a=r.y;e.attr("transform",`translate(${-n/2-o},${p?u.height/2+C/2-i/2-a:-u.height/2-C/2-i/2-a})`),e.attr("style",`color: ${b.get("stroke")??m};`)}return d.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${p?-A/2:A/2-u.height})`),P.attr("transform",`translate(0,${p?u.height/2+C/2:-u.height/2-C/2})`),MA(t,M),t.intersect=function(e){if(wu.info("iconSquare intersect",t,e),!t.label)return iE.rect(t,e);const r=t.x??0,n=t.y??0,i=t.height??0;let o=[];o=p?[{x:r-u.width/2,y:n-i/2},{x:r+u.width/2,y:n-i/2},{x:r+u.width/2,y:n-i/2+u.height+C},{x:r+f/2,y:n-i/2+u.height+C},{x:r+f/2,y:n+i/2},{x:r-f/2,y:n+i/2},{x:r-f/2,y:n-i/2+u.height+C},{x:r-u.width/2,y:n-i/2+u.height+C}]:[{x:r-f/2,y:n-i/2},{x:r+f/2,y:n-i/2},{x:r+f/2,y:n-i/2+g},{x:r+u.width/2,y:n-i/2+g},{x:r+u.width/2/2,y:n+i/2},{x:r-u.width/2,y:n+i/2},{x:r-u.width/2,y:n-i/2+g},{x:r-f/2,y:n-i/2+g}];return iE.polygon(t,o,e)},c}async function OE(e,t,{config:{flowchart:r}}){const n=new Image;n.src=(null==t?void 0:t.img)??"",await n.decode();const i=Number(n.naturalWidth.toString().replace("px","")),o=Number(n.naturalHeight.toString().replace("px",""));t.imageAspectRatio=i/o;const{labelStyles:a}=MC(t);t.labelStyle=a;const s=null==r?void 0:r.wrappingWidth;t.defaultWidth=null==r?void 0:r.wrappingWidth;const l=Math.max(t.label?s??0:0,(null==t?void 0:t.assetWidth)??i),c="on"===t.constraint&&(null==t?void 0:t.assetHeight)?t.assetHeight*t.imageAspectRatio:l,u="on"===t.constraint?c/t.imageAspectRatio:(null==t?void 0:t.assetHeight)??o;t.width=Math.max(c,s??0);const{shapeSvg:h,bbox:d,label:p}=await EA(e,t,"image-shape default"),g="t"===t.pos,f=-c/2,m=-u/2,y=t.label?8:0,b=AA(h),v=IC(t,{});"handDrawn"!==t.look&&(v.roughness=0,v.fillStyle="solid");const x=b.rectangle(f,m,c,u,v),C=Math.max(c,d.width),w=u+d.height+y,k=b.rectangle(-C/2,-w/2,C,w,{...v,fill:"none",stroke:"none"}),S=h.insert(()=>x,":first-child"),_=h.insert(()=>k);if(t.img){const e=h.append("image");e.attr("href",t.img),e.attr("width",c),e.attr("height",u),e.attr("preserveAspectRatio","none"),e.attr("transform",`translate(${-c/2},${g?w/2-u:-w/2})`)}return p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${g?-u/2-d.height/2-y/2:u/2-d.height/2+y/2})`),S.attr("transform",`translate(0,${g?d.height/2+y/2:-d.height/2-y/2})`),MA(t,_),t.intersect=function(e){if(wu.info("iconSquare intersect",t,e),!t.label)return iE.rect(t,e);const r=t.x??0,n=t.y??0,i=t.height??0;let o=[];o=g?[{x:r-d.width/2,y:n-i/2},{x:r+d.width/2,y:n-i/2},{x:r+d.width/2,y:n-i/2+d.height+y},{x:r+c/2,y:n-i/2+d.height+y},{x:r+c/2,y:n+i/2},{x:r-c/2,y:n+i/2},{x:r-c/2,y:n-i/2+d.height+y},{x:r-d.width/2,y:n-i/2+d.height+y}]:[{x:r-c/2,y:n-i/2},{x:r+c/2,y:n-i/2},{x:r+c/2,y:n-i/2+u},{x:r+d.width/2,y:n-i/2+u},{x:r+d.width/2/2,y:n+i/2},{x:r-d.width/2,y:n+i/2},{x:r-d.width/2,y:n-i/2+u},{x:r-c/2,y:n-i/2+u}];return iE.polygon(t,o,e)},h}async function zE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await EA(e,t,IA(t)),a=Math.max(o.width+2*(t.padding??0),(null==t?void 0:t.width)??0),s=Math.max(o.height+2*(t.padding??0),(null==t?void 0:t.height)??0),l=[{x:0,y:0},{x:a,y:0},{x:a+3*s/6,y:-s},{x:-3*s/6,y:-s}];let c;const{cssStyles:u}=t;if("handDrawn"===t.look){const e=AA(i),r=IC(t,{}),n=BA(l),o=e.path(n,r);c=i.insert(()=>o,":first-child").attr("transform",`translate(${-a/2}, ${s/2})`),u&&c.attr("style",u)}else c=lE(i,a,s,l);return n&&c.attr("style",n),t.width=a,t.height=s,MA(t,c),t.intersect=function(e){return iE.polygon(t,l,e)},i}async function FE(e,t,r){const{labelStyles:n,nodeStyles:i}=MC(t);t.labelStyle=n;const{shapeSvg:o,bbox:a}=await EA(e,t,IA(t)),s=Math.max(a.width+2*r.labelPaddingX,(null==t?void 0:t.width)||0),l=Math.max(a.height+2*r.labelPaddingY,(null==t?void 0:t.height)||0),c=-s/2,u=-l/2;let h,{rx:d,ry:p}=t;const{cssStyles:g}=t;if((null==r?void 0:r.rx)&&r.ry&&(d=r.rx,p=r.ry),"handDrawn"===t.look){const e=AA(o),r=IC(t,{}),n=d||p?e.path(FA(c,u,s,l,d||0),r):e.rectangle(c,u,s,l,r);h=o.insert(()=>n,":first-child"),h.attr("class","basic label-container").attr("style",_S(g))}else h=o.insert("rect",":first-child"),h.attr("class","basic label-container").attr("style",i).attr("rx",_S(d)).attr("ry",_S(p)).attr("x",c).attr("y",u).attr("width",s).attr("height",l);return MA(t,h),t.calcIntersect=function(e,t){return iE.rect(e,t)},t.intersect=function(e){return iE.rect(t,e)},o}async function RE(e,t){const{shapeSvg:r,bbox:n,label:i}=await EA(e,t,"label"),o=r.insert("rect",":first-child");return o.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),i.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${-n.height/2-(n.y-(n.top??0))})`),MA(t,o),t.intersect=function(e){return iE.rect(t,e)},r}async function $E(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await EA(e,t,IA(t)),a=Math.max(o.width+(t.padding??0),(null==t?void 0:t.width)??0),s=Math.max(o.height+(t.padding??0),(null==t?void 0:t.height)??0),l=[{x:0,y:0},{x:a+3*s/6,y:0},{x:a,y:-s},{x:-3*s/6,y:-s}];let c;const{cssStyles:u}=t;if("handDrawn"===t.look){const e=AA(i),r=IC(t,{}),n=BA(l),o=e.path(n,r);c=i.insert(()=>o,":first-child").attr("transform",`translate(${-a/2}, ${s/2})`),u&&c.attr("style",u)}else c=lE(i,a,s,l);return n&&c.attr("style",n),t.width=a,t.height=s,MA(t,c),t.intersect=function(e){return iE.polygon(t,l,e)},i}async function VE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await EA(e,t,IA(t)),a=Math.max(o.width+(t.padding??0),(null==t?void 0:t.width)??0),s=Math.max(o.height+(t.padding??0),(null==t?void 0:t.height)??0),l=[{x:-3*s/6,y:0},{x:a,y:0},{x:a+3*s/6,y:-s},{x:0,y:-s}];let c;const{cssStyles:u}=t;if("handDrawn"===t.look){const e=AA(i),r=IC(t,{}),n=BA(l),o=e.path(n,r);c=i.insert(()=>o,":first-child").attr("transform",`translate(${-a/2}, ${s/2})`),u&&c.attr("style",u)}else c=lE(i,a,s,l);return n&&c.attr("style",n),t.width=a,t.height=s,MA(t,c),t.intersect=function(e){return iE.polygon(t,l,e)},i}function WE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.label="",t.labelStyle=r;const i=e.insert("g").attr("class",IA(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,a=Math.max(35,(null==t?void 0:t.width)??0),s=Math.max(35,(null==t?void 0:t.height)??0),l=[{x:a,y:0},{x:0,y:s+3.5},{x:a-14,y:s+3.5},{x:0,y:2*s},{x:a,y:s-3.5},{x:14,y:s-3.5}],c=AA(i),u=IC(t,{});"handDrawn"!==t.look&&(u.roughness=0,u.fillStyle="solid");const h=BA(l),d=c.path(h,u),p=i.insert(()=>d,":first-child");return o&&"handDrawn"!==t.look&&p.selectAll("path").attr("style",o),n&&"handDrawn"!==t.look&&p.selectAll("path").attr("style",n),p.attr("transform",`translate(-${a/2},${-s})`),MA(t,p),t.intersect=function(e){wu.info("lightningBolt intersect",t,e);return iE.polygon(t,l,e)},i}vu(SE,"cylinder"),vu(_E,"dividedRectangle"),vu(TE,"doublecircle"),vu(AE,"filledCircle"),vu(EE,"flippedTriangle"),vu(PE,"forkJoin"),vu(ME,"halfRoundedRectangle"),vu(IE,"hexagon"),vu(BE,"hourglass"),vu(LE,"icon"),vu(jE,"iconCircle"),vu(NE,"iconRounded"),vu(DE,"iconSquare"),vu(OE,"imageSquare"),vu(zE,"inv_trapezoid"),vu(FE,"drawRect"),vu(RE,"labelRect"),vu($E,"lean_left"),vu(VE,"lean_right"),vu(WE,"lightningBolt");var qE=vu((e,t,r,n,i,o,a)=>[`M${e},${t+o}`,`a${i},${o} 0,0,0 ${r},0`,`a${i},${o} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${o} 0,0,0 ${r},0`,"l0,"+-n,`M${e},${t+o+a}`,`a${i},${o} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),HE=vu((e,t,r,n,i,o,a)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${i},${o} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${o} 0,0,0 ${r},0`,"l0,"+-n,`M${e},${t+o+a}`,`a${i},${o} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),UE=vu((e,t,r,n,i,o)=>[`M${e-r/2},${-n/2}`,`a${i},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function GE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:a}=await EA(e,t,IA(t)),s=Math.max(o.width+(t.padding??0),t.width??0),l=s/2,c=l/(2.5+s/50),u=Math.max(o.height+c+(t.padding??0),t.height??0),h=.1*u;let d;const{cssStyles:p}=t;if("handDrawn"===t.look){const e=AA(i),r=HE(0,0,s,u,l,c,h),n=UE(0,c,s,u,l,c),o=IC(t,{}),a=e.path(r,o),g=e.path(n,o);i.insert(()=>g,":first-child").attr("class","line"),d=i.insert(()=>a,":first-child"),d.attr("class","basic label-container"),p&&d.attr("style",p)}else{const e=qE(0,0,s,u,l,c,h);d=i.insert("path",":first-child").attr("d",e).attr("class","basic label-container").attr("style",_S(p)).attr("style",n)}return d.attr("label-offset-y",c),d.attr("transform",`translate(${-s/2}, ${-(u/2+c)})`),MA(t,d),a.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-o.height/2+c-(o.y-(o.top??0))})`),t.intersect=function(e){const r=iE.rect(t,e),n=r.x-(t.x??0);if(0!=l&&(Math.abs(n)<(t.width??0)/2||Math.abs(n)==(t.width??0)/2&&Math.abs(r.y-(t.y??0))>(t.height??0)/2-c)){let i=c*c*(1-n*n/(l*l));i>0&&(i=Math.sqrt(i)),i=c-i,e.y-(t.y??0)>0&&(i=-i),r.y+=i}return r},i}async function XE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:a}=await EA(e,t,IA(t)),s=Math.max(o.width+2*(t.padding??0),(null==t?void 0:t.width)??0),l=Math.max(o.height+2*(t.padding??0),(null==t?void 0:t.height)??0),c=l/4,u=l+c,{cssStyles:h}=t,d=AA(i),p=IC(t,{});"handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid");const g=[{x:-s/2-s/2*.1,y:-u/2},{x:-s/2-s/2*.1,y:u/2},...LA(-s/2-s/2*.1,u/2,s/2+s/2*.1,u/2,c,.8),{x:s/2+s/2*.1,y:-u/2},{x:-s/2-s/2*.1,y:-u/2},{x:-s/2,y:-u/2},{x:-s/2,y:u/2*1.1},{x:-s/2,y:-u/2}],f=d.polygon(g.map(e=>[e.x,e.y]),p),m=i.insert(()=>f,":first-child");return m.attr("class","basic label-container"),h&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",h),n&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",n),m.attr("transform",`translate(0,${-c/2})`),a.attr("transform",`translate(${-s/2+(t.padding??0)+s/2*.1/2-(o.x-(o.left??0))},${-l/2+(t.padding??0)-c/2-(o.y-(o.top??0))})`),MA(t,m),t.intersect=function(e){return iE.polygon(t,g,e)},i}async function JE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:a}=await EA(e,t,IA(t)),s=Math.max(o.width+2*(t.padding??0),(null==t?void 0:t.width)??0),l=Math.max(o.height+2*(t.padding??0),(null==t?void 0:t.height)??0),c=-s/2,u=-l/2,{cssStyles:h}=t,d=AA(i),p=IC(t,{}),g=[{x:c-5,y:u+5},{x:c-5,y:u+l+5},{x:c+s-5,y:u+l+5},{x:c+s-5,y:u+l},{x:c+s,y:u+l},{x:c+s,y:u+l-5},{x:c+s+5,y:u+l-5},{x:c+s+5,y:u-5},{x:c+5,y:u-5},{x:c+5,y:u},{x:c,y:u},{x:c,y:u+5}],f=[{x:c,y:u+5},{x:c+s-5,y:u+5},{x:c+s-5,y:u+l},{x:c+s,y:u+l},{x:c+s,y:u},{x:c,y:u}];"handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid");const m=BA(g),y=d.path(m,p),b=BA(f),v=d.path(b,{...p,fill:"none"}),x=i.insert(()=>v,":first-child");return x.insert(()=>y,":first-child"),x.attr("class","basic label-container"),h&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",h),n&&"handDrawn"!==t.look&&x.selectAll("path").attr("style",n),a.attr("transform",`translate(${-o.width/2-5-(o.x-(o.left??0))}, ${-o.height/2+5-(o.y-(o.top??0))})`),MA(t,x),t.intersect=function(e){return iE.polygon(t,g,e)},i}async function YE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:a}=await EA(e,t,IA(t)),s=Math.max(o.width+2*(t.padding??0),(null==t?void 0:t.width)??0),l=Math.max(o.height+2*(t.padding??0),(null==t?void 0:t.height)??0),c=l/4,u=l+c,h=-s/2,d=-u/2,{cssStyles:p}=t,g=LA(h-5,d+u+5,h+s-5,d+u+5,c,.8),f=null==g?void 0:g[g.length-1],m=[{x:h-5,y:d+5},{x:h-5,y:d+u+5},...g,{x:h+s-5,y:f.y-5},{x:h+s,y:f.y-5},{x:h+s,y:f.y-10},{x:h+s+5,y:f.y-10},{x:h+s+5,y:d-5},{x:h+5,y:d-5},{x:h+5,y:d},{x:h,y:d},{x:h,y:d+5}],y=[{x:h,y:d+5},{x:h+s-5,y:d+5},{x:h+s-5,y:f.y-5},{x:h+s,y:f.y-5},{x:h+s,y:d},{x:h,y:d}],b=AA(i),v=IC(t,{});"handDrawn"!==t.look&&(v.roughness=0,v.fillStyle="solid");const x=BA(m),C=b.path(x,v),w=BA(y),k=b.path(w,v),S=i.insert(()=>C,":first-child");return S.insert(()=>k),S.attr("class","basic label-container"),p&&"handDrawn"!==t.look&&S.selectAll("path").attr("style",p),n&&"handDrawn"!==t.look&&S.selectAll("path").attr("style",n),S.attr("transform",`translate(0,${-c/2})`),a.attr("transform",`translate(${-o.width/2-5-(o.x-(o.left??0))}, ${-o.height/2+5-c/2-(o.y-(o.top??0))})`),MA(t,S),t.intersect=function(e){return iE.polygon(t,m,e)},i}async function ZE(e,t,{config:{themeVariables:r}}){var n;const{labelStyles:i,nodeStyles:o}=MC(t);t.labelStyle=i;t.useHtmlLabels||!1!==(null==(n=Fd().flowchart)?void 0:n.htmlLabels)||(t.centerLabel=!0);const{shapeSvg:a,bbox:s,label:l}=await EA(e,t,IA(t)),c=Math.max(s.width+2*(t.padding??0),(null==t?void 0:t.width)??0),u=Math.max(s.height+2*(t.padding??0),(null==t?void 0:t.height)??0),h=-c/2,d=-u/2,{cssStyles:p}=t,g=AA(a),f=IC(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});"handDrawn"!==t.look&&(f.roughness=0,f.fillStyle="solid");const m=g.rectangle(h,d,c,u,f),y=a.insert(()=>m,":first-child");return y.attr("class","basic label-container"),p&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",p),o&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",o),l.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-s.height/2-(s.y-(s.top??0))})`),MA(t,y),t.intersect=function(e){return iE.rect(t,e)},a}vu(GE,"linedCylinder"),vu(XE,"linedWaveEdgedRect"),vu(JE,"multiRect"),vu(YE,"multiWaveEdgedRectangle"),vu(ZE,"note");var KE=vu((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function QE(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await EA(e,t,IA(t)),a=o.width+t.padding+(o.height+t.padding),s=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];let l;const{cssStyles:c}=t;if("handDrawn"===t.look){const e=AA(i),r=IC(t,{}),n=KE(0,0,a),o=e.path(n,r);l=i.insert(()=>o,":first-child").attr("transform",`translate(${-a/2+.5}, ${a/2})`),c&&l.attr("style",c)}else l=lE(i,a,a,s),l.attr("transform",`translate(${-a/2+.5}, ${a/2})`);return n&&l.attr("style",n),MA(t,l),t.calcIntersect=function(e,t){const r=e.width,n=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}],i=iE.polygon(e,n,t);return{x:i.x-.5,y:i.y-.5}},t.intersect=function(e){return this.calcIntersect(t,e)},i}async function eP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:a}=await EA(e,t,IA(t)),s=-Math.max(o.width+(t.padding??0),(null==t?void 0:t.width)??0)/2,l=-Math.max(o.height+(t.padding??0),(null==t?void 0:t.height)??0)/2,c=l/2,u=[{x:s+c,y:l},{x:s,y:0},{x:s+c,y:-l},{x:-s,y:-l},{x:-s,y:l}],{cssStyles:h}=t,d=AA(i),p=IC(t,{});"handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid");const g=BA(u),f=d.path(g,p),m=i.insert(()=>f,":first-child");return m.attr("class","basic label-container"),h&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",h),n&&"handDrawn"!==t.look&&m.selectAll("path").attr("style",n),m.attr("transform",`translate(${-c/2},0)`),a.attr("transform",`translate(${-c/2-o.width/2-(o.x-(o.left??0))}, ${-o.height/2-(o.y-(o.top??0))})`),MA(t,m),t.intersect=function(e){return iE.polygon(t,u,e)},i}async function tP(e,t){var r,n;const{labelStyles:i,nodeStyles:o}=MC(t);let a;t.labelStyle=i,a=t.cssClasses?"node "+t.cssClasses:"node default";const s=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=s.insert("g"),c=s.insert("g").attr("class","label").attr("style",o),u=t.description,h=t.label,d=c.node().appendChild(await zA(h,t.labelStyle,!0,!0));let p={width:0,height:0};if(sp(null==(n=null==(r=Wp())?void 0:r.flowchart)?void 0:n.htmlLabels)){const e=d.children[0],t=yf(d);p=e.getBoundingClientRect(),t.attr("width",p.width),t.attr("height",p.height)}wu.info("Text 2",u);const g=u||[],f=d.getBBox(),m=c.node().appendChild(await zA(g.join?g.join("<br/>"):g,t.labelStyle,!0,!0)),y=m.children[0],b=yf(m);p=y.getBoundingClientRect(),b.attr("width",p.width),b.attr("height",p.height);const v=(t.padding||0)/2;yf(m).attr("transform","translate( "+(p.width>f.width?0:(f.width-p.width)/2)+", "+(f.height+v+5)+")"),yf(d).attr("transform","translate( "+(p.width<f.width?0:-(f.width-p.width)/2)+", 0)"),p=c.node().getBBox(),c.attr("transform","translate("+-p.width/2+", "+(-p.height/2-v+3)+")");const x=p.width+(t.padding||0),C=p.height+(t.padding||0),w=-p.width/2-v,k=-p.height/2-v;let S,_;if("handDrawn"===t.look){const e=AA(s),r=IC(t,{}),n=e.path(FA(w,k,x,C,t.rx||0),r),i=e.line(-p.width/2-v,-p.height/2-v+f.height+v,p.width/2+v,-p.height/2-v+f.height+v,r);_=s.insert(()=>(wu.debug("Rough node insert CXC",n),i),":first-child"),S=s.insert(()=>(wu.debug("Rough node insert CXC",n),n),":first-child")}else S=l.insert("rect",":first-child"),_=l.insert("line"),S.attr("class","outer title-state").attr("style",o).attr("x",-p.width/2-v).attr("y",-p.height/2-v).attr("width",p.width+(t.padding||0)).attr("height",p.height+(t.padding||0)),_.attr("class","divider").attr("x1",-p.width/2-v).attr("x2",p.width/2+v).attr("y1",-p.height/2-v+f.height+v).attr("y2",-p.height/2-v+f.height+v);return MA(t,S),t.intersect=function(e){return iE.rect(t,e)},s}function rP(e,t,r,n,i,o,a){const s=(e+r)/2,l=(t+n)/2,c=Math.atan2(n-t,r-e),u=(r-e)/2/i,h=(n-t)/2/o,d=Math.sqrt(u**2+h**2);if(d>1)throw new Error("The given radii are too small to create an arc between the points.");const p=Math.sqrt(1-d**2),g=s+p*o*Math.sin(c)*(a?-1:1),f=l-p*i*Math.cos(c)*(a?-1:1),m=Math.atan2((t-f)/o,(e-g)/i);let y=Math.atan2((n-f)/o,(r-g)/i)-m;a&&y<0&&(y+=2*Math.PI),!a&&y>0&&(y-=2*Math.PI);const b=[];for(let v=0;v<20;v++){const e=m+v/19*y,t=g+i*Math.cos(e),r=f+o*Math.sin(e);b.push({x:t,y:r})}return b}async function nP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await EA(e,t,IA(t)),a=(null==t?void 0:t.padding)??0,s=(null==t?void 0:t.padding)??0,l=((null==t?void 0:t.width)?null==t?void 0:t.width:o.width)+2*a,c=((null==t?void 0:t.height)?null==t?void 0:t.height:o.height)+2*s,u=t.radius||5,h=t.taper||5,{cssStyles:d}=t,p=AA(i),g=IC(t,{});t.stroke&&(g.stroke=t.stroke),"handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid");const f=[{x:-l/2+h,y:-c/2},{x:l/2-h,y:-c/2},...rP(l/2-h,-c/2,l/2,-c/2+h,u,u,!0),{x:l/2,y:-c/2+h},{x:l/2,y:c/2-h},...rP(l/2,c/2-h,l/2-h,c/2,u,u,!0),{x:l/2-h,y:c/2},{x:-l/2+h,y:c/2},...rP(-l/2+h,c/2,-l/2,c/2-h,u,u,!0),{x:-l/2,y:c/2-h},{x:-l/2,y:-c/2+h},...rP(-l/2,-c/2+h,-l/2+h,-c/2,u,u,!0)],m=BA(f),y=p.path(m,g),b=i.insert(()=>y,":first-child");return b.attr("class","basic label-container outer-path"),d&&"handDrawn"!==t.look&&b.selectChildren("path").attr("style",d),n&&"handDrawn"!==t.look&&b.selectChildren("path").attr("style",n),MA(t,b),t.intersect=function(e){return iE.polygon(t,f,e)},i}async function iP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:a}=await EA(e,t,IA(t)),s=(null==t?void 0:t.padding)??0,l=Math.max(o.width+2*(t.padding??0),(null==t?void 0:t.width)??0),c=Math.max(o.height+2*(t.padding??0),(null==t?void 0:t.height)??0),u=-o.width/2-s,h=-o.height/2-s,{cssStyles:d}=t,p=AA(i),g=IC(t,{});"handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid");const f=[{x:u,y:h},{x:u+l+8,y:h},{x:u+l+8,y:h+c},{x:u-8,y:h+c},{x:u-8,y:h},{x:u,y:h},{x:u,y:h+c}],m=p.polygon(f.map(e=>[e.x,e.y]),g),y=i.insert(()=>m,":first-child");return y.attr("class","basic label-container").attr("style",_S(d)),n&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",n),d&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",n),a.attr("transform",`translate(${-l/2+4+(t.padding??0)-(o.x-(o.left??0))},${-c/2+(t.padding??0)-(o.y-(o.top??0))})`),MA(t,y),t.intersect=function(e){return iE.rect(t,e)},i}async function oP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:a}=await EA(e,t,IA(t)),s=Math.max(o.width+2*(t.padding??0),(null==t?void 0:t.width)??0),l=Math.max(o.height+2*(t.padding??0),(null==t?void 0:t.height)??0),c=-s/2,u=-l/2,{cssStyles:h}=t,d=AA(i),p=IC(t,{});"handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid");const g=[{x:c,y:u},{x:c,y:u+l},{x:c+s,y:u+l},{x:c+s,y:u-l/2}],f=BA(g),m=d.path(f,p),y=i.insert(()=>m,":first-child");return y.attr("class","basic label-container"),h&&"handDrawn"!==t.look&&y.selectChildren("path").attr("style",h),n&&"handDrawn"!==t.look&&y.selectChildren("path").attr("style",n),y.attr("transform",`translate(0, ${l/4})`),a.attr("transform",`translate(${-s/2+(t.padding??0)-(o.x-(o.left??0))}, ${-l/4+(t.padding??0)-(o.y-(o.top??0))})`),MA(t,y),t.intersect=function(e){return iE.polygon(t,g,e)},i}async function aP(e,t){return FE(e,t,{rx:0,ry:0,labelPaddingX:t.labelPaddingX??2*((null==t?void 0:t.padding)||0),labelPaddingY:1*((null==t?void 0:t.padding)||0)})}async function sP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await EA(e,t,IA(t)),a=o.height+t.padding,s=o.width+a/4+t.padding,l=a/2,{cssStyles:c}=t,u=AA(i),h=IC(t,{});"handDrawn"!==t.look&&(h.roughness=0,h.fillStyle="solid");const d=[{x:-s/2+l,y:-a/2},{x:s/2-l,y:-a/2},...jA(-s/2+l,0,l,50,90,270),{x:s/2-l,y:a/2},...jA(s/2-l,0,l,50,270,450)],p=BA(d),g=u.path(p,h),f=i.insert(()=>g,":first-child");return f.attr("class","basic label-container outer-path"),c&&"handDrawn"!==t.look&&f.selectChildren("path").attr("style",c),n&&"handDrawn"!==t.look&&f.selectChildren("path").attr("style",n),MA(t,f),t.intersect=function(e){return iE.polygon(t,d,e)},i}async function lP(e,t){return FE(e,t,{rx:5,ry:5})}function cP(e,t,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=MC(t);t.labelStyle=n;const{cssStyles:o}=t,{lineColor:a,stateBorder:s,nodeBorder:l}=r,c=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),u=AA(c),h=IC(t,{});"handDrawn"!==t.look&&(h.roughness=0,h.fillStyle="solid");const d=u.circle(0,0,14,{...h,stroke:a,strokeWidth:2}),p=s??l,g=u.circle(0,0,5,{...h,fill:p,stroke:p,strokeWidth:2,fillStyle:"solid"}),f=c.insert(()=>d,":first-child");return f.insert(()=>g),o&&f.selectAll("path").attr("style",o),i&&f.selectAll("path").attr("style",i),MA(t,f),t.intersect=function(e){return iE.circle(t,7,e)},c}function uP(e,t,{config:{themeVariables:r}}){const{lineColor:n}=r,i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let o;if("handDrawn"===t.look){const e=AA(i).circle(0,0,14,TC(n));o=i.insert(()=>e),o.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else o=i.insert("circle",":first-child"),o.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return MA(t,o),t.intersect=function(e){return iE.circle(t,7,e)},i}async function hP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await EA(e,t,IA(t)),a=((null==t?void 0:t.padding)||0)/2,s=o.width+t.padding,l=o.height+t.padding,c=-o.width/2-a,u=-o.height/2-a,h=[{x:0,y:0},{x:s,y:0},{x:s,y:-l},{x:0,y:-l},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-l},{x:-8,y:-l},{x:-8,y:0}];if("handDrawn"===t.look){const e=AA(i),r=IC(t,{}),n=e.rectangle(c-8,u,s+16,l,r),o=e.line(c,u,c,u+l,r),a=e.line(c+s,u,c+s,u+l,r);i.insert(()=>o,":first-child"),i.insert(()=>a,":first-child");const h=i.insert(()=>n,":first-child"),{cssStyles:d}=t;h.attr("class","basic label-container").attr("style",_S(d)),MA(t,h)}else{const e=lE(i,s,l,h);n&&e.attr("style",n),MA(t,e)}return t.intersect=function(e){return iE.polygon(t,h,e)},i}async function dP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await EA(e,t,IA(t)),a=Math.max(o.width+2*(t.padding??0),(null==t?void 0:t.width)??0),s=Math.max(o.height+2*(t.padding??0),(null==t?void 0:t.height)??0),l=-a/2,c=-s/2,u=.2*s,h=.2*s,{cssStyles:d}=t,p=AA(i),g=IC(t,{}),f=[{x:l-u/2,y:c},{x:l+a+u/2,y:c},{x:l+a+u/2,y:c+s},{x:l-u/2,y:c+s}],m=[{x:l+a-u/2,y:c+s},{x:l+a+u/2,y:c+s},{x:l+a+u/2,y:c+s-h}];"handDrawn"!==t.look&&(g.roughness=0,g.fillStyle="solid");const y=BA(f),b=p.path(y,g),v=BA(m),x=p.path(v,{...g,fillStyle:"solid"}),C=i.insert(()=>x,":first-child");return C.insert(()=>b,":first-child"),C.attr("class","basic label-container"),d&&"handDrawn"!==t.look&&C.selectAll("path").attr("style",d),n&&"handDrawn"!==t.look&&C.selectAll("path").attr("style",n),MA(t,C),t.intersect=function(e){return iE.polygon(t,f,e)},i}async function pP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:a}=await EA(e,t,IA(t)),s=Math.max(o.width+2*(t.padding??0),(null==t?void 0:t.width)??0),l=Math.max(o.height+2*(t.padding??0),(null==t?void 0:t.height)??0),c=l/4,u=.2*s,h=.2*l,d=l+c,{cssStyles:p}=t,g=AA(i),f=IC(t,{});"handDrawn"!==t.look&&(f.roughness=0,f.fillStyle="solid");const m=[{x:-s/2-s/2*.1,y:d/2},...LA(-s/2-s/2*.1,d/2,s/2+s/2*.1,d/2,c,.8),{x:s/2+s/2*.1,y:-d/2},{x:-s/2-s/2*.1,y:-d/2}],y=-s/2+s/2*.1,b=-d/2-.4*h,v=[{x:y+s-u,y:1.4*(b+l)},{x:y+s,y:b+l-h},{x:y+s,y:.9*(b+l)},...LA(y+s,1.3*(b+l),y+s-u,1.5*(b+l),.03*-l,.5)],x=BA(m),C=g.path(x,f),w=BA(v),k=g.path(w,{...f,fillStyle:"solid"}),S=i.insert(()=>k,":first-child");return S.insert(()=>C,":first-child"),S.attr("class","basic label-container"),p&&"handDrawn"!==t.look&&S.selectAll("path").attr("style",p),n&&"handDrawn"!==t.look&&S.selectAll("path").attr("style",n),S.attr("transform",`translate(0,${-c/2})`),a.attr("transform",`translate(${-s/2+(t.padding??0)-(o.x-(o.left??0))},${-l/2+(t.padding??0)-c/2-(o.y-(o.top??0))})`),MA(t,S),t.intersect=function(e){return iE.polygon(t,m,e)},i}async function gP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await EA(e,t,IA(t)),a=Math.max(o.width+t.padding,(null==t?void 0:t.width)||0),s=Math.max(o.height+t.padding,(null==t?void 0:t.height)||0),l=-a/2,c=-s/2,u=i.insert("rect",":first-child");return u.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",l).attr("y",c).attr("width",a).attr("height",s),MA(t,u),t.intersect=function(e){return iE.rect(t,e)},i}vu(QE,"question"),vu(eP,"rect_left_inv_arrow"),vu(tP,"rectWithTitle"),vu(rP,"generateArcPoints"),vu(nP,"roundedRect"),vu(iP,"shadedProcess"),vu(oP,"slopedRect"),vu(aP,"squareRect"),vu(sP,"stadium"),vu(lP,"state"),vu(cP,"stateEnd"),vu(uP,"stateStart"),vu(hP,"subroutine"),vu(dP,"taggedRect"),vu(pP,"taggedWaveEdgedRectangle"),vu(gP,"text");var fP=vu((e,t,r,n,i,o)=>`M${e},${t}\n a${i},${o} 0,0,1 0,${-n}\n l${r},0\n a${i},${o} 0,0,1 0,${n}\n M${r},${-n}\n a${i},${o} 0,0,0 0,${n}\n l${-r},0`,"createCylinderPathD"),mP=vu((e,t,r,n,i,o)=>[`M${e},${t}`,`M${e+r},${t}`,`a${i},${o} 0,0,0 0,${-n}`,`l${-r},0`,`a${i},${o} 0,0,0 0,${n}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),yP=vu((e,t,r,n,i,o)=>[`M${e+r/2},${-n/2}`,`a${i},${o} 0,0,0 0,${n}`].join(" "),"createInnerCylinderPathD");async function bP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:a,halfPadding:s}=await EA(e,t,IA(t)),l="neo"===t.look?2*s:s,c=o.height+l,u=c/2,h=u/(2.5+c/50),d=o.width+h+l,{cssStyles:p}=t;let g;if("handDrawn"===t.look){const e=AA(i),r=mP(0,0,d,c,h,u),n=yP(0,0,d,c,h,u),o=e.path(r,IC(t,{})),a=e.path(n,IC(t,{fill:"none"}));g=i.insert(()=>a,":first-child"),g=i.insert(()=>o,":first-child"),g.attr("class","basic label-container"),p&&g.attr("style",p)}else{const e=fP(0,0,d,c,h,u);g=i.insert("path",":first-child").attr("d",e).attr("class","basic label-container").attr("style",_S(p)).attr("style",n),g.attr("class","basic label-container"),p&&g.selectAll("path").attr("style",p),n&&g.selectAll("path").attr("style",n)}return g.attr("label-offset-x",h),g.attr("transform",`translate(${-d/2}, ${c/2} )`),a.attr("transform",`translate(${-o.width/2-h-(o.x-(o.left??0))}, ${-o.height/2-(o.y-(o.top??0))})`),MA(t,g),t.intersect=function(e){const r=iE.rect(t,e),n=r.y-(t.y??0);if(0!=u&&(Math.abs(n)<(t.height??0)/2||Math.abs(n)==(t.height??0)/2&&Math.abs(r.x-(t.x??0))>(t.width??0)/2-h)){let i=h*h*(1-n*n/(u*u));0!=i&&(i=Math.sqrt(Math.abs(i))),i=h-i,e.x-(t.x??0)>0&&(i=-i),r.x+=i}return r},i}async function vP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await EA(e,t,IA(t)),a=o.width+t.padding,s=o.height+t.padding,l=[{x:-3*s/6,y:0},{x:a+3*s/6,y:0},{x:a,y:-s},{x:0,y:-s}];let c;const{cssStyles:u}=t;if("handDrawn"===t.look){const e=AA(i),r=IC(t,{}),n=BA(l),o=e.path(n,r);c=i.insert(()=>o,":first-child").attr("transform",`translate(${-a/2}, ${s/2})`),u&&c.attr("style",u)}else c=lE(i,a,s,l);return n&&c.attr("style",n),t.width=a,t.height=s,MA(t,c),t.intersect=function(e){return iE.polygon(t,l,e)},i}async function xP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await EA(e,t,IA(t)),a=Math.max(60,o.width+2*(t.padding??0),(null==t?void 0:t.width)??0),s=Math.max(20,o.height+2*(t.padding??0),(null==t?void 0:t.height)??0),{cssStyles:l}=t,c=AA(i),u=IC(t,{});"handDrawn"!==t.look&&(u.roughness=0,u.fillStyle="solid");const h=[{x:-a/2*.8,y:-s/2},{x:a/2*.8,y:-s/2},{x:a/2,y:-s/2*.6},{x:a/2,y:s/2},{x:-a/2,y:s/2},{x:-a/2,y:-s/2*.6}],d=BA(h),p=c.path(d,u),g=i.insert(()=>p,":first-child");return g.attr("class","basic label-container"),l&&"handDrawn"!==t.look&&g.selectChildren("path").attr("style",l),n&&"handDrawn"!==t.look&&g.selectChildren("path").attr("style",n),MA(t,g),t.intersect=function(e){return iE.polygon(t,h,e)},i}async function CP(e,t){var r;const{labelStyles:n,nodeStyles:i}=MC(t);t.labelStyle=n;const{shapeSvg:o,bbox:a,label:s}=await EA(e,t,IA(t)),l=sp(null==(r=Wp().flowchart)?void 0:r.htmlLabels),c=a.width+(t.padding??0),u=c+a.height,h=c+a.height,d=[{x:0,y:0},{x:h,y:0},{x:h/2,y:-u}],{cssStyles:p}=t,g=AA(o),f=IC(t,{});"handDrawn"!==t.look&&(f.roughness=0,f.fillStyle="solid");const m=BA(d),y=g.path(m,f),b=o.insert(()=>y,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`);return p&&"handDrawn"!==t.look&&b.selectChildren("path").attr("style",p),i&&"handDrawn"!==t.look&&b.selectChildren("path").attr("style",i),t.width=c,t.height=u,MA(t,b),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${u/2-(a.height+(t.padding??0)/(l?2:1)-(a.y-(a.top??0)))})`),t.intersect=function(e){return wu.info("Triangle intersect",t,d,e),iE.polygon(t,d,e)},o}async function wP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:a}=await EA(e,t,IA(t)),s=Math.max(o.width+2*(t.padding??0),(null==t?void 0:t.width)??0),l=Math.max(o.height+2*(t.padding??0),(null==t?void 0:t.height)??0),c=l/8,u=l+c,{cssStyles:h}=t,d=70-s,p=d>0?d/2:0,g=AA(i),f=IC(t,{});"handDrawn"!==t.look&&(f.roughness=0,f.fillStyle="solid");const m=[{x:-s/2-p,y:u/2},...LA(-s/2-p,u/2,s/2+p,u/2,c,.8),{x:s/2+p,y:-u/2},{x:-s/2-p,y:-u/2}],y=BA(m),b=g.path(y,f),v=i.insert(()=>b,":first-child");return v.attr("class","basic label-container"),h&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",h),n&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",n),v.attr("transform",`translate(0,${-c/2})`),a.attr("transform",`translate(${-s/2+(t.padding??0)-(o.x-(o.left??0))},${-l/2+(t.padding??0)-c-(o.y-(o.top??0))})`),MA(t,v),t.intersect=function(e){return iE.polygon(t,m,e)},i}async function kP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await EA(e,t,IA(t)),a=Math.max(o.width+2*(t.padding??0),(null==t?void 0:t.width)??0),s=Math.max(o.height+2*(t.padding??0),(null==t?void 0:t.height)??0),l=a/s;let c=a,u=s;c>u*l?u=c/l:c=u*l,c=Math.max(c,100),u=Math.max(u,50);const h=Math.min(.2*u,u/4),d=u+2*h,{cssStyles:p}=t,g=AA(i),f=IC(t,{});"handDrawn"!==t.look&&(f.roughness=0,f.fillStyle="solid");const m=[{x:-c/2,y:d/2},...LA(-c/2,d/2,c/2,d/2,h,1),{x:c/2,y:-d/2},...LA(c/2,-d/2,-c/2,-d/2,h,-1)],y=BA(m),b=g.path(y,f),v=i.insert(()=>b,":first-child");return v.attr("class","basic label-container"),p&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",p),n&&"handDrawn"!==t.look&&v.selectAll("path").attr("style",n),MA(t,v),t.intersect=function(e){return iE.polygon(t,m,e)},i}async function SP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:a}=await EA(e,t,IA(t)),s=Math.max(o.width+2*(t.padding??0),(null==t?void 0:t.width)??0),l=Math.max(o.height+2*(t.padding??0),(null==t?void 0:t.height)??0),c=-s/2,u=-l/2,{cssStyles:h}=t,d=AA(i),p=IC(t,{}),g=[{x:c-5,y:u-5},{x:c-5,y:u+l},{x:c+s,y:u+l},{x:c+s,y:u-5}],f=`M${c-5},${u-5} L${c+s},${u-5} L${c+s},${u+l} L${c-5},${u+l} L${c-5},${u-5}\n M${c-5},${u} L${c+s},${u}\n M${c},${u-5} L${c},${u+l}`;"handDrawn"!==t.look&&(p.roughness=0,p.fillStyle="solid");const m=d.path(f,p),y=i.insert(()=>m,":first-child");return y.attr("transform","translate(2.5, 2.5)"),y.attr("class","basic label-container"),h&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",h),n&&"handDrawn"!==t.look&&y.selectAll("path").attr("style",n),a.attr("transform",`translate(${-o.width/2+2.5-(o.x-(o.left??0))}, ${-o.height/2+2.5-(o.y-(o.top??0))})`),MA(t,y),t.intersect=function(e){return iE.polygon(t,g,e)},i}async function _P(e,t){var r,n,i,o;const a=t;if(a.alias&&(t.label=a.alias),"handDrawn"===t.look){const{themeVariables:r}=Fd(),{background:n}=r,i={...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${n}`]};await _P(e,i)}const s=Fd();t.useHtmlLabels=s.htmlLabels;let l=(null==(r=s.er)?void 0:r.diagramPadding)??10,c=(null==(n=s.er)?void 0:n.entityPadding)??6;const{cssStyles:u}=t,{labelStyles:h,nodeStyles:d}=MC(t);if(0===a.attributes.length&&t.label){const r={rx:0,ry:0,labelPaddingX:l,labelPaddingY:1.5*l};dS(t.label,s)+2*r.labelPaddingX<s.er.minEntityWidth&&(t.width=s.er.minEntityWidth);const n=await FE(e,t,r);if(!sp(s.htmlLabels)){const e=n.select("text"),t=null==(i=e.node())?void 0:i.getBBox();e.attr("transform",`translate(${-t.width/2}, 0)`)}return n}s.htmlLabels||(l*=1.25,c*=1.25);let p=IA(t);p||(p="node default");const g=e.insert("g").attr("class",p).attr("id",t.domId||t.id),f=await TP(g,t.label??"",s,0,0,["name"],h);f.height+=c;let m=0;const y=[],b=[];let v=0,x=0,C=0,w=0,k=!0,S=!0;for(const V of a.attributes){const e=await TP(g,V.type,s,0,m,["attribute-type"],h);v=Math.max(v,e.width+l);const t=await TP(g,V.name,s,0,m,["attribute-name"],h);x=Math.max(x,t.width+l);const r=await TP(g,V.keys.join(),s,0,m,["attribute-keys"],h);C=Math.max(C,r.width+l);const n=await TP(g,V.comment,s,0,m,["attribute-comment"],h);w=Math.max(w,n.width+l);const i=Math.max(e.height,t.height,r.height,n.height)+c;b.push({yOffset:m,rowHeight:i}),m+=i}let _=4;C<=l&&(k=!1,C=0,_--),w<=l&&(S=!1,w=0,_--);const T=g.node().getBBox();if(f.width+2*l-(v+x+C+w)>0){const e=f.width+2*l-(v+x+C+w);v+=e/_,x+=e/_,C>0&&(C+=e/_),w>0&&(w+=e/_)}const A=v+x+C+w,E=AA(g),P=IC(t,{});"handDrawn"!==t.look&&(P.roughness=0,P.fillStyle="solid");let M=0;b.length>0&&(M=b.reduce((e,t)=>e+((null==t?void 0:t.rowHeight)??0),0));const I=Math.max(T.width+2*l,(null==t?void 0:t.width)||0,A),B=Math.max((M??0)+f.height,(null==t?void 0:t.height)||0),L=-I/2,j=-B/2;g.selectAll("g:not(:first-child)").each((e,t,r)=>{const n=yf(r[t]),i=n.attr("transform");let o=0,a=0;if(i){const e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);e&&(o=parseFloat(e[1]),a=parseFloat(e[2]),n.attr("class").includes("attribute-name")?o+=v:n.attr("class").includes("attribute-keys")?o+=v+x:n.attr("class").includes("attribute-comment")&&(o+=v+x+C))}n.attr("transform",`translate(${L+l/2+o}, ${a+j+f.height+c/2})`)}),g.select(".name").attr("transform","translate("+-f.width/2+", "+(j+c/2)+")");const N=E.rectangle(L,j,I,B,P),D=g.insert(()=>N,":first-child").attr("style",u.join("")),{themeVariables:O}=Fd(),{rowEven:z,rowOdd:F,nodeBorder:R}=O;y.push(0);for(const[V,W]of b.entries()){const e=(V+1)%2==0&&0!==W.yOffset,t=E.rectangle(L,f.height+j+(null==W?void 0:W.yOffset),I,null==W?void 0:W.rowHeight,{...P,fill:e?z:F,stroke:R});g.insert(()=>t,"g.label").attr("style",u.join("")).attr("class","row-rect-"+(e?"even":"odd"))}let $=E.line(L,f.height+j,I+L,f.height+j,P);g.insert(()=>$).attr("class","divider"),$=E.line(v+L,f.height+j,v+L,B+j,P),g.insert(()=>$).attr("class","divider"),k&&($=E.line(v+x+L,f.height+j,v+x+L,B+j,P),g.insert(()=>$).attr("class","divider")),S&&($=E.line(v+x+C+L,f.height+j,v+x+C+L,B+j,P),g.insert(()=>$).attr("class","divider"));for(const V of y)$=E.line(L,f.height+j+V,I+L,f.height+j+V,P),g.insert(()=>$).attr("class","divider");if(MA(t,D),d&&"handDrawn"!==t.look){const e=d.split(";"),t=null==(o=null==e?void 0:e.filter(e=>e.includes("stroke")))?void 0:o.map(e=>`${e}`).join("; ");g.selectAll("path").attr("style",t??""),g.selectAll(".row-rect-even path").attr("style",d)}return t.intersect=function(e){return iE.rect(t,e)},g}async function TP(e,t,r,n=0,i=0,o=[],a=""){const s=e.insert("g").attr("class",`label ${o.join(" ")}`).attr("transform",`translate(${n}, ${i})`).attr("style",a);t!==up(t)&&(t=(t=up(t)).replaceAll("<","<").replaceAll(">",">"));const l=s.node().appendChild(await AT(s,t,{width:dS(t,r)+100,style:a,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let e=l.children[0];for(e.textContent=e.textContent.replaceAll("<","<").replaceAll(">",">");e.childNodes[0];)e=e.childNodes[0],e.textContent=e.textContent.replaceAll("<","<").replaceAll(">",">")}let c=l.getBBox();if(sp(r.htmlLabels)){const e=l.children[0];e.style.textAlign="start";const t=yf(l);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}return c}async function AP(e,t,r,n,i=r.class.padding??12){const o=n?0:3,a=e.insert("g").attr("class",IA(t)).attr("id",t.domId||t.id);let s=null,l=null,c=null,u=null,h=0,d=0,p=0;if(s=a.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const e=t.annotations[0];await EP(s,{text:`«${e}»`},0);h=s.node().getBBox().height}l=a.insert("g").attr("class","label-group text"),await EP(l,t,0,["font-weight: bolder"]);const g=l.node().getBBox();d=g.height,c=a.insert("g").attr("class","members-group text");let f=0;for(const b of t.members){f+=await EP(c,b,f,[b.parseClassifier()])+o}p=c.node().getBBox().height,p<=0&&(p=i/2),u=a.insert("g").attr("class","methods-group text");let m=0;for(const b of t.methods){m+=await EP(u,b,m,[b.parseClassifier()])+o}let y=a.node().getBBox();if(null!==s){const e=s.node().getBBox();s.attr("transform",`translate(${-e.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${h})`),y=a.node().getBBox(),c.attr("transform",`translate(0, ${h+d+2*i})`),y=a.node().getBBox(),u.attr("transform",`translate(0, ${h+d+(p?p+4*i:2*i)})`),y=a.node().getBBox(),{shapeSvg:a,bbox:y}}async function EP(e,t,r,n=[]){const i=e.insert("g").attr("class","label").attr("style",n.join("; ")),o=Fd();let a="useHtmlLabels"in t?t.useHtmlLabels:sp(o.htmlLabels)??!0,s="";s="text"in t?t.text:t.label,!a&&s.startsWith("\\")&&(s=s.substring(1)),mp(s)&&(a=!0);const l=await AT(i,Up(kS(s)),{width:dS(s,o)+50,classes:"markdown-node-label",useHtmlLabels:a},o);let c,u=1;if(a){const e=l.children[0],t=yf(l);u=e.innerHTML.split("<br>").length,e.innerHTML.includes("</math>")&&(u+=e.innerHTML.split("<mrow>").length-1);const r=e.getElementsByTagName("img");if(r){const e=""===s.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map(t=>new Promise(r=>{function n(){var n;if(t.style.display="flex",t.style.flexDirection="column",e){const e=(null==(n=o.fontSize)?void 0:n.toString())??window.getComputedStyle(document.body).fontSize,r=5,i=parseInt(e,10)*r+"px";t.style.minWidth=i,t.style.maxWidth=i}else t.style.width="100%";r(t)}vu(n,"setupImage"),setTimeout(()=>{t.complete&&n()}),t.addEventListener("error",n),t.addEventListener("load",n)})))}c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}else{n.includes("font-weight: bolder")&&yf(l).selectAll("tspan").attr("font-weight",""),u=l.children.length;const e=l.children[0];if(""===l.textContent||l.textContent.includes(">")){e.textContent=s[0]+s.substring(1).replaceAll(">",">").replaceAll("<","<").trim();" "===s[1]&&(e.textContent=e.textContent[0]+" "+e.textContent.substring(1))}"undefined"===e.textContent&&(e.textContent=""),c=l.getBBox()}return i.attr("transform","translate(0,"+(-c.height/(2*u)+r)+")"),c.height}async function PP(e,t){var r,n;const i=Wp(),o=i.class.padding??12,a=o,s=t.useHtmlLabels??sp(i.htmlLabels)??!0,l=t;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];const{shapeSvg:c,bbox:u}=await AP(e,t,i,s,a),{labelStyles:h,nodeStyles:d}=MC(t);t.labelStyle=h,t.cssStyles=l.styles||"";const p=(null==(r=l.styles)?void 0:r.join(";"))||d||"";t.cssStyles||(t.cssStyles=p.replaceAll("!important","").split(";"));const g=0===l.members.length&&0===l.methods.length&&!(null==(n=i.class)?void 0:n.hideEmptyMembersBox),f=AA(c),m=IC(t,{});"handDrawn"!==t.look&&(m.roughness=0,m.fillStyle="solid");const y=u.width;let b=u.height;0===l.members.length&&0===l.methods.length?b+=a:l.members.length>0&&0===l.methods.length&&(b+=2*a);const v=-y/2,x=-b/2,C=f.rectangle(v-o,x-o-(g?o:0===l.members.length&&0===l.methods.length?-o/2:0),y+2*o,b+2*o+(g?2*o:0===l.members.length&&0===l.methods.length?-o:0),m),w=c.insert(()=>C,":first-child");w.attr("class","basic label-container");const k=w.node().getBBox();c.selectAll(".text").each((e,t,r)=>{var n;const i=yf(r[t]),a=i.attr("transform");let u=0;if(a){const e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(u=parseFloat(e[2]))}let h=u+x+o-(g?o:0===l.members.length&&0===l.methods.length?-o/2:0);s||(h-=4);let d=v;(i.attr("class").includes("label-group")||i.attr("class").includes("annotation-group"))&&(d=-(null==(n=i.node())?void 0:n.getBBox().width)/2||0,c.selectAll("text").each(function(e,t,r){"middle"===window.getComputedStyle(r[t]).textAnchor&&(d=0)})),i.attr("transform",`translate(${d}, ${h})`)});const S=c.select(".annotation-group").node().getBBox().height-(g?o/2:0)||0,_=c.select(".label-group").node().getBBox().height-(g?o/2:0)||0,T=c.select(".members-group").node().getBBox().height-(g?o/2:0)||0;if(l.members.length>0||l.methods.length>0||g){const e=f.line(k.x,S+_+x+o,k.x+k.width,S+_+x+o,m);c.insert(()=>e).attr("class","divider").attr("style",p)}if(g||l.members.length>0||l.methods.length>0){const e=f.line(k.x,S+_+T+x+2*a+o,k.x+k.width,S+_+T+x+o+2*a,m);c.insert(()=>e).attr("class","divider").attr("style",p)}if("handDrawn"!==l.look&&c.selectAll("path").attr("style",p),w.select(":nth-child(2)").attr("style",p),c.selectAll(".divider").select("path").attr("style",p),t.labelStyle?c.selectAll("span").attr("style",t.labelStyle):c.selectAll("span").attr("style",p),!s){const e=RegExp(/color\s*:\s*([^;]*)/),t=e.exec(p);if(t){const e=t[0].replace("color","fill");c.selectAll("tspan").attr("style",e)}else if(h){const t=e.exec(h);if(t){const e=t[0].replace("color","fill");c.selectAll("tspan").attr("style",e)}}}return MA(t,w),t.intersect=function(e){return iE.rect(t,e)},c}async function MP(e,t){var r,n;const{labelStyles:i,nodeStyles:o}=MC(t);t.labelStyle=i;const a=t,s=t,l="verifyMethod"in t,c=IA(t),u=e.insert("g").attr("class",c).attr("id",t.domId??t.id);let h;h=l?await IP(u,`<<${a.type}>>`,0,t.labelStyle):await IP(u,"<<Element>>",0,t.labelStyle);let d=h;const p=await IP(u,a.name,d,t.labelStyle+"; font-weight: bold;");if(d+=p+20,l){d+=await IP(u,""+(a.requirementId?`ID: ${a.requirementId}`:""),d,t.labelStyle);d+=await IP(u,""+(a.text?`Text: ${a.text}`:""),d,t.labelStyle);d+=await IP(u,""+(a.risk?`Risk: ${a.risk}`:""),d,t.labelStyle),await IP(u,""+(a.verifyMethod?`Verification: ${a.verifyMethod}`:""),d,t.labelStyle)}else{d+=await IP(u,""+(s.type?`Type: ${s.type}`:""),d,t.labelStyle),await IP(u,""+(s.docRef?`Doc Ref: ${s.docRef}`:""),d,t.labelStyle)}const g=((null==(r=u.node())?void 0:r.getBBox().width)??200)+20,f=((null==(n=u.node())?void 0:n.getBBox().height)??200)+20,m=-g/2,y=-f/2,b=AA(u),v=IC(t,{});"handDrawn"!==t.look&&(v.roughness=0,v.fillStyle="solid");const x=b.rectangle(m,y,g,f,v),C=u.insert(()=>x,":first-child");if(C.attr("class","basic label-container").attr("style",o),u.selectAll(".label").each((e,t,r)=>{const n=yf(r[t]),i=n.attr("transform");let o=0,a=0;if(i){const e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);e&&(o=parseFloat(e[1]),a=parseFloat(e[2]))}const s=a-f/2;let l=m+10;0!==t&&1!==t||(l=o),n.attr("transform",`translate(${l}, ${s+20})`)}),d>h+p+20){const e=b.line(m,y+h+p+20,m+g,y+h+p+20,v);u.insert(()=>e).attr("style",o)}return MA(t,C),t.intersect=function(e){return iE.rect(t,e)},u}async function IP(e,t,r,n=""){if(""===t)return 0;const i=e.insert("g").attr("class","label").attr("style",n),o=Wp(),a=o.htmlLabels??!0,s=await AT(i,Up(kS(t)),{width:dS(t,o)+50,classes:"markdown-node-label",useHtmlLabels:a,style:n},o);let l;if(a){const e=s.children[0],t=yf(s);l=e.getBoundingClientRect(),t.attr("width",l.width),t.attr("height",l.height)}else{const e=s.children[0];for(const t of e.children)t.textContent=t.textContent.replaceAll(">",">").replaceAll("<","<"),n&&t.setAttribute("style",n);l=s.getBBox(),l.height+=6}return i.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}vu(bP,"tiltedCylinder"),vu(vP,"trapezoid"),vu(xP,"trapezoidalPentagon"),vu(CP,"triangle"),vu(wP,"waveEdgedRectangle"),vu(kP,"waveRectangle"),vu(SP,"windowPane"),vu(_P,"erBox"),vu(TP,"addText"),vu(AP,"textHelper"),vu(EP,"addText"),vu(PP,"classBox"),vu(MP,"requirementBox"),vu(IP,"addText");var BP=vu(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function LP(e,t,{config:r}){var n,i;const{labelStyles:o,nodeStyles:a}=MC(t);t.labelStyle=o||"";const s=t.width;t.width=(t.width??200)-10;const{shapeSvg:l,bbox:c,label:u}=await EA(e,t,IA(t)),h=t.padding||10;let d,p="";"ticket"in t&&t.ticket&&(null==(n=null==r?void 0:r.kanban)?void 0:n.ticketBaseUrl)&&(p=null==(i=null==r?void 0:r.kanban)?void 0:i.ticketBaseUrl.replace("#TICKET#",t.ticket),d=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",p).attr("target","_blank"));const g={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let f,m;({label:f,bbox:m}=d?await PA(d,"ticket"in t&&t.ticket||"",g):await PA(l,"ticket"in t&&t.ticket||"",g));const{label:y,bbox:b}=await PA(l,"assigned"in t&&t.assigned||"",g);t.width=s;const v=(null==t?void 0:t.width)||0,x=Math.max(m.height,b.height)/2,C=Math.max(c.height+20,(null==t?void 0:t.height)||0)+x,w=-v/2,k=-C/2;let S;u.attr("transform","translate("+(h-v/2)+", "+(-x-c.height/2)+")"),f.attr("transform","translate("+(h-v/2)+", "+(-x+c.height/2)+")"),y.attr("transform","translate("+(h+v/2-b.width-20)+", "+(-x+c.height/2)+")");const{rx:_,ry:T}=t,{cssStyles:A}=t;if("handDrawn"===t.look){const e=AA(l),r=IC(t,{}),n=_||T?e.path(FA(w,k,v,C,_||0),r):e.rectangle(w,k,v,C,r);S=l.insert(()=>n,":first-child"),S.attr("class","basic label-container").attr("style",A||null)}else{S=l.insert("rect",":first-child"),S.attr("class","basic label-container __APA__").attr("style",a).attr("rx",_??5).attr("ry",T??5).attr("x",w).attr("y",k).attr("width",v).attr("height",C);const e="priority"in t&&t.priority;if(e){const t=l.append("line"),r=w+2,n=k+Math.floor((_??0)/2),i=k+C-Math.floor((_??0)/2);t.attr("x1",r).attr("y1",n).attr("x2",r).attr("y2",i).attr("stroke-width","4").attr("stroke",BP(e))}}return MA(t,S),t.height=C,t.intersect=function(e){return iE.rect(t,e)},l}async function jP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,halfPadding:a,label:s}=await EA(e,t,IA(t)),l=o.width+10*a,c=o.height+8*a,u=.15*l,{cssStyles:h}=t,d=o.width+20,p=o.height+20,g=Math.max(l,d),f=Math.max(c,p);let m;s.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);const y=`M0 0 \n a${u},${u} 1 0,0 ${.25*g},${-1*f*.1}\n a${u},${u} 1 0,0 ${.25*g},0\n a${u},${u} 1 0,0 ${.25*g},0\n a${u},${u} 1 0,0 ${.25*g},${.1*f}\n\n a${u},${u} 1 0,0 ${.15*g},${.33*f}\n a${.8*u},${.8*u} 1 0,0 0,${.34*f}\n a${u},${u} 1 0,0 ${-1*g*.15},${.33*f}\n\n a${u},${u} 1 0,0 ${-1*g*.25},${.15*f}\n a${u},${u} 1 0,0 ${-1*g*.25},0\n a${u},${u} 1 0,0 ${-1*g*.25},0\n a${u},${u} 1 0,0 ${-1*g*.25},${-1*f*.15}\n\n a${u},${u} 1 0,0 ${-1*g*.1},${-1*f*.33}\n a${.8*u},${.8*u} 1 0,0 0,${-1*f*.34}\n a${u},${u} 1 0,0 ${.1*g},${-1*f*.33}\n H0 V0 Z`;if("handDrawn"===t.look){const e=AA(i),r=IC(t,{}),n=e.path(y,r);m=i.insert(()=>n,":first-child"),m.attr("class","basic label-container").attr("style",_S(h))}else m=i.insert("path",":first-child").attr("class","basic label-container").attr("style",n).attr("d",y);return m.attr("transform",`translate(${-g/2}, ${-f/2})`),MA(t,m),t.calcIntersect=function(e,t){return iE.rect(e,t)},t.intersect=function(e){return wu.info("Bang intersect",t,e),iE.rect(t,e)},i}async function NP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,halfPadding:a,label:s}=await EA(e,t,IA(t)),l=o.width+2*a,c=o.height+2*a,u=.15*l,h=.25*l,d=.35*l,p=.2*l,{cssStyles:g}=t;let f;const m=`M0 0 \n a${u},${u} 0 0,1 ${.25*l},${-1*l*.1}\n a${d},${d} 1 0,1 ${.4*l},${-1*l*.1}\n a${h},${h} 1 0,1 ${.35*l},${.2*l}\n\n a${u},${u} 1 0,1 ${.15*l},${.35*c}\n a${p},${p} 1 0,1 ${-1*l*.15},${.65*c}\n\n a${h},${u} 1 0,1 ${-1*l*.25},${.15*l}\n a${d},${d} 1 0,1 ${-1*l*.5},0\n a${u},${u} 1 0,1 ${-1*l*.25},${-1*l*.15}\n\n a${u},${u} 1 0,1 ${-1*l*.1},${-1*c*.35}\n a${p},${p} 1 0,1 ${.1*l},${-1*c*.65}\n H0 V0 Z`;if("handDrawn"===t.look){const e=AA(i),r=IC(t,{}),n=e.path(m,r);f=i.insert(()=>n,":first-child"),f.attr("class","basic label-container").attr("style",_S(g))}else f=i.insert("path",":first-child").attr("class","basic label-container").attr("style",n).attr("d",m);return s.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),f.attr("transform",`translate(${-l/2}, ${-c/2})`),MA(t,f),t.calcIntersect=function(e,t){return iE.rect(e,t)},t.intersect=function(e){return wu.info("Cloud intersect",t,e),iE.rect(t,e)},i}async function DP(e,t){const{labelStyles:r,nodeStyles:n}=MC(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,halfPadding:a,label:s}=await EA(e,t,IA(t)),l=o.width+8*a,c=o.height+2*a,u=`\n M${-l/2} ${c/2-5}\n v${10-c}\n q0,-5 5,-5\n h${l-10}\n q5,0 5,5\n v${c-10}\n q0,5 -5,5\n h${10-l}\n q-5,0 -5,-5\n Z\n `,h=i.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("style",n).attr("d",u);return i.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",c/2).attr("x2",l/2).attr("y2",c/2),s.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),i.append(()=>s.node()),MA(t,h),t.calcIntersect=function(e,t){return iE.rect(e,t)},t.intersect=function(e){return iE.rect(t,e)},i}async function OP(e,t){return hE(e,t,{padding:t.padding??0})}vu(LP,"kanbanItem"),vu(jP,"bang"),vu(NP,"cloud"),vu(DP,"defaultMindmapNode"),vu(OP,"mindmapCircle");var zP=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:aP},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:nP},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:sP},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:hP},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:SE},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:hE},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:jP},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:NP},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:QE},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:IE},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:VE},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:$E},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:vP},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:zE},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:TE},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:gP},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:cE},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:iP},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:uP},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:cP},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:PE},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:BE},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:fE},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:yE},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:vE},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:WE},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:wP},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:ME},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:bP},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:GE},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:xE},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:_E},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:CP},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:SP},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:AE},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:xP},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:EE},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:oP},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:YE},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:JE},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:sE},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:pE},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:pP},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:dP},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:kP},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:eP},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:XE}],FP=vu(()=>{const e={state:lP,choice:uE,note:ZE,rectWithTitle:tP,labelRect:RE,iconSquare:DE,iconCircle:jE,icon:LE,iconRounded:NE,imageSquare:OE,anchor:oE,kanbanItem:LP,mindmapCircle:OP,defaultMindmapNode:DP,classBox:PP,erBox:_P,requirementBox:MP},t=[...Object.entries(e),...zP.flatMap(e=>[e.shortName,..."aliases"in e?e.aliases:[],..."internalAliases"in e?e.internalAliases:[]].map(t=>[t,e.handler]))];return Object.fromEntries(t)},"generateShapeMap")();function RP(e){return e in FP}vu(RP,"isValidShape");var $P=new Map;async function VP(e,t,r){let n,i;"rect"===t.shape&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const o=t.shape?FP[t.shape]:void 0;if(!o)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let a;"sandbox"===r.config.securityLevel?a="_top":t.linkTarget&&(a=t.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",t.link).attr("target",a??null),i=await o(n,t,r)}else i=await o(e,t,r),n=i;return t.tooltip&&i.attr("title",t.tooltip),$P.set(t.id,n),t.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}vu(VP,"insertNode");var WP=vu((e,t)=>{$P.set(t.id,e)},"setNodeElem"),qP=vu(()=>{$P.clear()},"clear"),HP=vu(e=>{const t=$P.get(e.id);wu.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+r-e.width/2)+", "+(e.y-e.height/2-8)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),r},"positionNode"),UP=vu((e,t,r,n,i,o)=>{t.arrowTypeStart&&XP(e,"start",t.arrowTypeStart,r,n,i,o),t.arrowTypeEnd&&XP(e,"end",t.arrowTypeEnd,r,n,i,o)},"addEdgeMarkers"),GP={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},XP=vu((e,t,r,n,i,o,a)=>{var s;const l=GP[r];if(!l)return void wu.warn(`Unknown arrow type: ${r}`);const c=`${i}_${o}-${l.type}${"start"===t?"Start":"End"}`;if(a&&""!==a.trim()){const r=`${c}_${a.replace(/[^\dA-Za-z]/g,"_")}`;if(!document.getElementById(r)){const e=document.getElementById(c);if(e){const t=e.cloneNode(!0);t.id=r;t.querySelectorAll("path, circle, line").forEach(e=>{e.setAttribute("stroke",a),l.fill&&e.setAttribute("fill",a)}),null==(s=e.parentNode)||s.appendChild(t)}}e.attr(`marker-${t}`,`url(${n}#${r})`)}else e.attr(`marker-${t}`,`url(${n}#${c})`)},"addEdgeMarker"),JP=new Map,YP=new Map,ZP=vu(()=>{JP.clear(),YP.clear()},"clear"),KP=vu(e=>e?e.reduce((e,t)=>e+";"+t,""):"","getLabelStyles"),QP=vu(async(e,t)=>{let r=sp(Wp().flowchart.htmlLabels);const{labelStyles:n}=MC(t);t.labelStyle=n;const i=await AT(e,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0,isNode:!1});wu.info("abc82",t,t.labelType);const o=e.insert("g").attr("class","edgeLabel"),a=o.insert("g").attr("class","label").attr("data-id",t.id);a.node().appendChild(i);let s,l=i.getBBox();if(r){const e=i.children[0],t=yf(i);l=e.getBoundingClientRect(),t.attr("width",l.width),t.attr("height",l.height)}if(a.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),JP.set(t.id,o),t.width=l.width,t.height=l.height,t.startLabelLeft){const r=await zA(t.startLabelLeft,KP(t.labelStyle)),n=e.insert("g").attr("class","edgeTerminals"),i=n.insert("g").attr("class","inner");s=i.node().appendChild(r);const o=r.getBBox();i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),YP.get(t.id)||YP.set(t.id,{}),YP.get(t.id).startLeft=n,eM(s,t.startLabelLeft)}if(t.startLabelRight){const r=await zA(t.startLabelRight,KP(t.labelStyle)),n=e.insert("g").attr("class","edgeTerminals"),i=n.insert("g").attr("class","inner");s=n.node().appendChild(r),i.node().appendChild(r);const o=r.getBBox();i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),YP.get(t.id)||YP.set(t.id,{}),YP.get(t.id).startRight=n,eM(s,t.startLabelRight)}if(t.endLabelLeft){const r=await zA(t.endLabelLeft,KP(t.labelStyle)),n=e.insert("g").attr("class","edgeTerminals"),i=n.insert("g").attr("class","inner");s=i.node().appendChild(r);const o=r.getBBox();i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),n.node().appendChild(r),YP.get(t.id)||YP.set(t.id,{}),YP.get(t.id).endLeft=n,eM(s,t.endLabelLeft)}if(t.endLabelRight){const r=await zA(t.endLabelRight,KP(t.labelStyle)),n=e.insert("g").attr("class","edgeTerminals"),i=n.insert("g").attr("class","inner");s=i.node().appendChild(r);const o=r.getBBox();i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),n.node().appendChild(r),YP.get(t.id)||YP.set(t.id,{}),YP.get(t.id).endRight=n,eM(s,t.endLabelRight)}return i},"insertEdgeLabel");function eM(e,t){Wp().flowchart.htmlLabels&&e&&(e.style.width=9*t.length+"px",e.style.height="12px")}vu(eM,"setTerminalWidth");var tM=vu((e,t)=>{wu.debug("Moving label abc88 ",e.id,e.label,JP.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const n=Wp(),{subGraphTitleTotalMargin:i}=_C(n);if(e.label){const n=JP.get(e.id);let o=e.x,a=e.y;if(r){const n=CS.calcLabelPosition(r);wu.debug("Moving label "+e.label+" from (",o,",",a,") to (",n.x,",",n.y,") abc88"),t.updatedPath&&(o=n.x,a=n.y)}n.attr("transform",`translate(${o}, ${a+i/2})`)}if(e.startLabelLeft){const t=YP.get(e.id).startLeft;let n=e.x,i=e.y;if(r){const t=CS.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);n=t.x,i=t.y}t.attr("transform",`translate(${n}, ${i})`)}if(e.startLabelRight){const t=YP.get(e.id).startRight;let n=e.x,i=e.y;if(r){const t=CS.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);n=t.x,i=t.y}t.attr("transform",`translate(${n}, ${i})`)}if(e.endLabelLeft){const t=YP.get(e.id).endLeft;let n=e.x,i=e.y;if(r){const t=CS.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);n=t.x,i=t.y}t.attr("transform",`translate(${n}, ${i})`)}if(e.endLabelRight){const t=YP.get(e.id).endRight;let n=e.x,i=e.y;if(r){const t=CS.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);n=t.x,i=t.y}t.attr("transform",`translate(${n}, ${i})`)}},"positionEdgeLabel"),rM=vu((e,t)=>{const r=e.x,n=e.y,i=Math.abs(t.x-r),o=Math.abs(t.y-n),a=e.width/2,s=e.height/2;return i>=a||o>=s},"outsideNode"),nM=vu((e,t,r)=>{wu.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(t)}\n insidePoint : ${JSON.stringify(r)}\n node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const n=e.x,i=e.y,o=Math.abs(n-r.x),a=e.width/2;let s=r.x<t.x?a-o:a+o;const l=e.height/2,c=Math.abs(t.y-r.y),u=Math.abs(t.x-r.x);if(Math.abs(i-t.y)*a>Math.abs(n-t.x)*l){let e=r.y<t.y?t.y-l-i:i-l-t.y;s=u*e/c;const n={x:r.x<t.x?r.x+s:r.x-u+s,y:r.y<t.y?r.y+c-e:r.y-c+e};return 0===s&&(n.x=t.x,n.y=t.y),0===u&&(n.x=t.x),0===c&&(n.y=t.y),wu.debug(`abc89 top/bottom calc, Q ${c}, q ${e}, R ${u}, r ${s}`,n),n}{s=r.x<t.x?t.x-a-n:n-a-t.x;let e=c*s/u,i=r.x<t.x?r.x+u-s:r.x-u+s,o=r.y<t.y?r.y+e:r.y-e;return wu.debug(`sides calc abc89, Q ${c}, q ${e}, R ${u}, r ${s}`,{_x:i,_y:o}),0===s&&(i=t.x,o=t.y),0===u&&(i=t.x),0===c&&(o=t.y),{x:i,y:o}}},"intersection"),iM=vu((e,t)=>{wu.warn("abc88 cutPathAtIntersect",e,t);let r=[],n=e[0],i=!1;return e.forEach(e=>{if(wu.info("abc88 checking point",e,t),rM(t,e)||i)wu.warn("abc88 outside",e,n),n=e,i||r.push(e);else{const o=nM(t,n,e);wu.debug("abc88 inside",e,n,o),wu.debug("abc88 intersection",o,t);let a=!1;r.forEach(e=>{a=a||e.x===o.x&&e.y===o.y}),r.some(e=>e.x===o.x&&e.y===o.y)?wu.warn("abc88 no intersect",o,r):r.push(o),i=!0}}),wu.debug("returning points",r),r},"cutPathAtIntersect");function oM(e){const t=[],r=[];for(let n=1;n<e.length-1;n++){const i=e[n-1],o=e[n],a=e[n+1];(i.x===o.x&&o.y===a.y&&Math.abs(o.x-a.x)>5&&Math.abs(o.y-i.y)>5||i.y===o.y&&o.x===a.x&&Math.abs(o.x-i.x)>5&&Math.abs(o.y-a.y)>5)&&(t.push(o),r.push(n))}return{cornerPoints:t,cornerPointPositions:r}}vu(oM,"extractCornerPoints");var aM=vu(function(e,t,r){const n=t.x-e.x,i=t.y-e.y,o=r/Math.sqrt(n*n+i*i);return{x:t.x-o*n,y:t.y-o*i}},"findAdjacentPoint"),sM=vu(function(e){const{cornerPointPositions:t}=oM(e),r=[];for(let n=0;n<e.length;n++)if(t.includes(n)){const t=e[n-1],i=e[n+1],o=e[n],a=aM(t,o,5),s=aM(i,o,5),l=s.x-a.x,c=s.y-a.y;r.push(a);const u=2*Math.sqrt(2);let h={x:o.x,y:o.y};if(Math.abs(i.x-t.x)>10&&Math.abs(i.y-t.y)>=10){wu.debug("Corner point fixing",Math.abs(i.x-t.x),Math.abs(i.y-t.y));const e=5;h=o.x===a.x?{x:l<0?a.x-e+u:a.x+e-u,y:c<0?a.y-u:a.y+u}:{x:l<0?a.x-u:a.x+u,y:c<0?a.y-e+u:a.y+e-u}}else wu.debug("Corner point skipping fixing",Math.abs(i.x-t.x),Math.abs(i.y-t.y));r.push(h,s)}else r.push(e[n]);return r},"fixCorners"),lM=vu((e,t,r)=>{const n=e-t-r,i=Math.floor(n/4);return`0 ${t} ${Array(i).fill("2 2").join(" ")} ${r}`},"generateDashArray"),cM=vu(function(e,t,r,n,i,o,a,s=!1){var l;const{handDrawnSeed:c}=Wp();let u=t.points,h=!1;const d=i;var p=o;const g=[];for(const M in t.cssCompiledStyles)PC(M)||g.push(t.cssCompiledStyles[M]);wu.debug("UIO intersect check",t.points,p.x,d.x),p.intersect&&d.intersect&&!s&&(u=u.slice(1,t.points.length-1),u.unshift(d.intersect(u[0])),wu.debug("Last point UIO",t.start,"--\x3e",t.end,u[u.length-1],p,p.intersect(u[u.length-1])),u.push(p.intersect(u[u.length-1])));const f=btoa(JSON.stringify(u));t.toCluster&&(wu.info("to cluster abc88",r.get(t.toCluster)),u=iM(t.points,r.get(t.toCluster).node),h=!0),t.fromCluster&&(wu.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(u,null,2)),u=iM(u.reverse(),r.get(t.fromCluster).node).reverse(),h=!0);let m=u.filter(e=>!Number.isNaN(e.y));m=sM(m);let y=Ry;switch(y=My,t.curve){case"linear":y=My;break;case"basis":default:y=Ry;break;case"cardinal":y=Gy;break;case"bumpX":y=Ny;break;case"bumpY":y=Dy;break;case"catmullRom":y=eb;break;case"monotoneX":y=pb;break;case"monotoneY":y=gb;break;case"natural":y=yb;break;case"step":y=vb;break;case"stepAfter":y=Cb;break;case"stepBefore":y=xb}const{x:b,y:v}=SC(t),x=Ly().x(b).y(v).curve(y);let C,w;switch(t.thickness){case"normal":default:C="edge-thickness-normal";break;case"thick":C="edge-thickness-thick";break;case"invisible":C="edge-thickness-invisible"}switch(t.pattern){case"solid":default:C+=" edge-pattern-solid";break;case"dotted":C+=" edge-pattern-dotted";break;case"dashed":C+=" edge-pattern-dashed"}let k="rounded"===t.curve?uM(dM(m,t),5):x(m);const S=Array.isArray(t.style)?t.style:[t.style];let _=S.find(e=>null==e?void 0:e.startsWith("stroke:")),T=!1;if("handDrawn"===t.look){const r=AA(e);Object.assign([],m);C+=" transition",w=yf(r.path(k,{roughness:.3,seed:c})).select("path").attr("id",t.id).attr("class"," "+C+(t.classes?" "+t.classes:"")).attr("style",S?S.reduce((e,t)=>e+";"+t,""):"");let n=w.attr("d");w.attr("d",n),e.node().appendChild(w.node())}else{const r=g.join(";"),n=S?S.reduce((e,t)=>e+t+";",""):"";let i="";t.animate&&(i=" edge-animation-fast"),t.animation&&(i=" edge-animation-"+t.animation);const o=(r?r+";"+n+";":n)+";"+(S?S.reduce((e,t)=>e+";"+t,""):"");w=e.append("path").attr("d",k).attr("id",t.id).attr("class"," "+C+(t.classes?" "+t.classes:"")+(i??"")).attr("style",o),_=null==(l=o.match(/stroke:([^;]+)/))?void 0:l[1],T=!0===t.animate||!!t.animation||r.includes("animation");const a=w.node(),s="function"==typeof a.getTotalLength?a.getTotalLength():0,c=CC[t.arrowTypeStart]||0,u=CC[t.arrowTypeEnd]||0;if("neo"===t.look&&!T){const e=`stroke-dasharray: ${"dotted"===t.pattern||"dashed"===t.pattern?lM(s,c,u):`0 ${c} ${s-c-u} ${u}`}; stroke-dashoffset: 0;`;w.attr("style",e+w.attr("style"))}}w.attr("data-edge",!0),w.attr("data-et","edge"),w.attr("data-id",t.id),w.attr("data-points",f),t.showPoints&&m.forEach(t=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",t.x).attr("cy",t.y)});let A="";(Wp().flowchart.arrowMarkerAbsolute||Wp().state.arrowMarkerAbsolute)&&(A=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,A=A.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),wu.info("arrowTypeStart",t.arrowTypeStart),wu.info("arrowTypeEnd",t.arrowTypeEnd),UP(w,t,A,a,n,_);const E=u[Math.floor(u.length/2)];CS.isLabelCoordinateInPath(E,w.attr("d"))||(h=!0);let P={};return h&&(P.updatedPath=u),P.originalPath=t.points,P},"insertEdge");function uM(e,t){if(e.length<2)return"";let r="";const n=e.length,i=1e-5;for(let o=0;o<n;o++){const a=e[o],s=e[o-1],l=e[o+1];if(0===o)r+=`M${a.x},${a.y}`;else if(o===n-1)r+=`L${a.x},${a.y}`;else{const e=a.x-s.x,n=a.y-s.y,o=l.x-a.x,c=l.y-a.y,u=Math.hypot(e,n),h=Math.hypot(o,c);if(u<i||h<i){r+=`L${a.x},${a.y}`;continue}const d=e/u,p=n/u,g=o/h,f=c/h,m=d*g+p*f,y=Math.max(-1,Math.min(1,m)),b=Math.acos(y);if(b<i||Math.abs(Math.PI-b)<i){r+=`L${a.x},${a.y}`;continue}const v=Math.min(t/Math.sin(b/2),u/2,h/2),x=a.x-d*v,C=a.y-p*v,w=a.x+g*v,k=a.y+f*v;r+=`L${x},${C}`,r+=`Q${a.x},${a.y} ${w},${k}`}}return r}function hM(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,n=t.y-e.y;return{angle:Math.atan2(n,r),deltaX:r,deltaY:n}}function dM(e,t){const r=e.map(e=>({...e}));if(e.length>=2&&xC[t.arrowTypeStart]){const n=xC[t.arrowTypeStart],i=e[0],o=e[1],{angle:a}=hM(i,o),s=n*Math.cos(a),l=n*Math.sin(a);r[0].x=i.x+s,r[0].y=i.y+l}const n=e.length;if(n>=2&&xC[t.arrowTypeEnd]){const i=xC[t.arrowTypeEnd],o=e[n-1],a=e[n-2],{angle:s}=hM(a,o),l=i*Math.cos(s),c=i*Math.sin(s);r[n-1].x=o.x-l,r[n-1].y=o.y-c}return r}vu(uM,"generateRoundedPath"),vu(hM,"calculateDeltaAndAngle"),vu(dM,"applyMarkerOffsetsToPoints");var pM=vu((e,t,r,n)=>{t.forEach(t=>{gM[t](e,r,n)})},"insertMarkers"),gM={extension:vu((e,t,r)=>{wu.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),composition:vu((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),aggregation:vu((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),dependency:vu((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),lollipop:vu((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),point:vu((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),circle:vu((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),cross:vu((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),barb:vu((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),only_one:vu((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),zero_or_one:vu((e,t,r)=>{const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),one_or_more:vu((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),zero_or_more:vu((e,t,r)=>{const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),requirement_arrow:vu((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d","M0,0\n L20,10\n M20,10\n L0,20")},"requirement_arrow"),requirement_contains:vu((e,t,r)=>{const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains")},fM=pM,mM={common:xp,getConfig:Fd,insertCluster:UA,insertEdge:cM,insertEdgeLabel:QP,insertMarkers:fM,insertNode:VP,interpolateToCurve:Uk,labelHelper:EA,log:wu,positionEdgeLabel:tM},yM={},bM=vu(e=>{for(const t of e)yM[t.name]=t},"registerLayoutLoaders");vu(()=>{bM([{name:"dagre",loader:vu(async()=>await Promise.resolve().then(()=>require("./dagre-6UL2VRFP-B0QLpgAH.cjs")),"loader")},{name:"cose-bilkent",loader:vu(async()=>await Promise.resolve().then(()=>require("./cose-bilkent-S5V4N54A-CKKVaKER.cjs")),"loader")}])},"registerDefaultLayoutLoaders")();var vM=vu(async(e,t)=>{if(!(e.layoutAlgorithm in yM))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=yM[e.layoutAlgorithm];return(await r.loader()).render(e,t,mM,{algorithm:r.algorithm})},"render"),xM=vu((e="",{fallback:t="dagre"}={})=>{if(e in yM)return e;if(t in yM)return wu.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),CM="comm",wM="rule",kM="decl",SM=Math.abs,_M=String.fromCharCode;function TM(e){return e.trim()}function AM(e,t,r){return e.replace(t,r)}function EM(e,t,r){return e.indexOf(t,r)}function PM(e,t){return 0|e.charCodeAt(t)}function MM(e,t,r){return e.slice(t,r)}function IM(e){return e.length}function BM(e,t){return t.push(e),e}var LM=1,jM=1,NM=0,DM=0,OM=0,zM="";function FM(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:LM,column:jM,length:a,return:"",siblings:s}}function RM(){return OM=DM>0?PM(zM,--DM):0,jM--,10===OM&&(jM=1,LM--),OM}function $M(){return OM=DM<NM?PM(zM,DM++):0,jM++,10===OM&&(jM=1,LM++),OM}function VM(){return PM(zM,DM)}function WM(){return DM}function qM(e,t){return MM(zM,e,t)}function HM(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function UM(e){return TM(qM(DM-1,JM(91===e?e+2:40===e?e+1:e)))}function GM(e){for(;(OM=VM())&&OM<33;)$M();return HM(e)>2||HM(OM)>3?"":" "}function XM(e,t){for(;--t&&$M()&&!(OM<48||OM>102||OM>57&&OM<65||OM>70&&OM<97););return qM(e,WM()+(t<6&&32==VM()&&32==$M()))}function JM(e){for(;$M();)switch(OM){case e:return DM;case 34:case 39:34!==e&&39!==e&&JM(OM);break;case 40:41===e&&JM(e);break;case 92:$M()}return DM}function YM(e,t){for(;$M()&&e+OM!==57&&(e+OM!==84||47!==VM()););return"/*"+qM(t,DM-1)+"*"+_M(47===e?e:$M())}function ZM(e){for(;!HM(VM());)$M();return qM(e,DM)}function KM(e){return function(e){return zM="",e}(QM("",null,null,null,[""],e=function(e){return LM=jM=1,NM=IM(zM=e),DM=0,[]}(e),0,[0],e))}function QM(e,t,r,n,i,o,a,s,l){for(var c=0,u=0,h=a,d=0,p=0,g=0,f=1,m=1,y=1,b=0,v="",x=i,C=o,w=n,k=v;m;)switch(g=b,b=$M()){case 40:if(108!=g&&58==PM(k,h-1)){-1!=EM(k+=AM(UM(b),"&","&\f"),"&\f",SM(c?s[c-1]:0))&&(y=-1);break}case 34:case 39:case 91:k+=UM(b);break;case 9:case 10:case 13:case 32:k+=GM(g);break;case 92:k+=XM(WM()-1,7);continue;case 47:switch(VM()){case 42:case 47:BM(tI(YM($M(),WM()),t,r,l),l),5!=HM(g||1)&&5!=HM(VM()||1)||!IM(k)||" "===MM(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*f:s[c++]=IM(k)*y;case 125*f:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==y&&(k=AM(k,/\f/g,"")),p>0&&(IM(k)-h||0===f&&47===g)&&BM(p>32?rI(k+";",n,r,h-1,l):rI(AM(k," ","")+";",n,r,h-2,l),l);break;case 59:k+=";";default:if(BM(w=eI(k,t,r,c,u,i,s,v,x=[],C=[],h,o),o),123===b)if(0===u)QM(k,t,w,w,x,o,h,s,C);else{switch(d){case 99:if(110===PM(k,3))break;case 108:if(97===PM(k,2))break;default:u=0;case 100:case 109:case 115:}u?QM(e,w,w,n&&BM(eI(e,w,w,0,0,i,s,v,i,x=[],h,C),C),i,C,h,s,n?x:C):QM(k,w,w,w,[""],C,0,s,C)}}c=u=p=0,f=y=1,v=k="",h=a;break;case 58:h=1+IM(k),p=g;default:if(f<1)if(123==b)--f;else if(125==b&&0==f++&&125==RM())continue;switch(k+=_M(b),b*f){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(IM(k)-1)*y,y=1;break;case 64:45===VM()&&(k+=UM($M())),d=VM(),u=h=IM(v=k+=ZM(WM())),b++;break;case 45:45===g&&2==IM(k)&&(f=0)}}return o}function eI(e,t,r,n,i,o,a,s,l,c,u,h){for(var d=i-1,p=0===i?o:[""],g=function(e){return e.length}(p),f=0,m=0,y=0;f<n;++f)for(var b=0,v=MM(e,d+1,d=SM(m=a[f])),x=e;b<g;++b)(x=TM(m>0?p[b]+" "+v:AM(v,/&\f/g,p[b])))&&(l[y++]=x);return FM(e,t,r,0===i?wM:s,l,c,u,h)}function tI(e,t,r,n){return FM(e,t,r,CM,_M(OM),MM(e,2,-2),0,n)}function rI(e,t,r,n,i){return FM(e,t,r,kM,MM(e,0,n),MM(e,n+1,-1),n,i)}function nI(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function iI(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case kM:return e.return=e.return||e.value;case CM:return"";case"@keyframes":return e.return=e.value+"{"+nI(e.children,n)+"}";case wM:if(!IM(e.value=e.props.join(",")))return""}return IM(r=nI(e.children,n))?e.return=e.value+"{"+r+"}":""}var oI=Fw(Object.keys,Object),aI=Object.prototype.hasOwnProperty;function sI(e){if(!Vw(e))return oI(e);var t=[];for(var r in Object(e))aI.call(e,r)&&"constructor"!=r&&t.push(r);return t}var lI=uw($C,"DataView"),cI=uw($C,"Promise"),uI=uw($C,"Set"),hI=uw($C,"WeakMap"),dI="[object Map]",pI="[object Promise]",gI="[object Set]",fI="[object WeakMap]",mI="[object DataView]",yI=rw(lI),bI=rw(vw),vI=rw(cI),xI=rw(uI),CI=rw(hI);exports.getTag=JC,(lI&&exports.getTag(new lI(new ArrayBuffer(1)))!=mI||vw&&exports.getTag(new vw)!=dI||cI&&exports.getTag(cI.resolve())!=pI||uI&&exports.getTag(new uI)!=gI||hI&&exports.getTag(new hI)!=fI)&&(exports.getTag=function(e){var t=JC(e),r="[object Object]"==t?e.constructor:void 0,n=r?rw(r):"";if(n)switch(n){case yI:return mI;case bI:return dI;case vI:return pI;case xI:return gI;case CI:return fI}return t});var wI=Object.prototype.hasOwnProperty;function kI(e){if(null==e)return!0;if(Kw(e)&&(Yw(e)||"string"==typeof e||"function"==typeof e.splice||rk(e)||fk(e)||Jw(e)))return!e.length;var t=exports.getTag(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Vw(e))return!sI(e).length;for(var r in e)if(wI.call(e,r))return!1;return!0}var SI={id:"c4",detector:vu(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./c4Diagram-YG6GDRKO-B-1eU6OG.cjs"));return{id:"c4",diagram:e}},"loader")},_I="flowchart",TI={id:_I,detector:vu((e,t)=>{var r,n;return"dagre-wrapper"!==(null==(r=null==t?void 0:t.flowchart)?void 0:r.defaultRenderer)&&"elk"!==(null==(n=null==t?void 0:t.flowchart)?void 0:n.defaultRenderer)&&/^\s*graph/.test(e)},"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./flowDiagram-NV44I4VS-DpxYrjDI.cjs"));return{id:_I,diagram:e}},"loader")},AI="flowchart-v2",EI={id:AI,detector:vu((e,t)=>{var r,n,i;return"dagre-d3"!==(null==(r=null==t?void 0:t.flowchart)?void 0:r.defaultRenderer)&&("elk"===(null==(n=null==t?void 0:t.flowchart)?void 0:n.defaultRenderer)&&(t.layout="elk"),!(!/^\s*graph/.test(e)||"dagre-wrapper"!==(null==(i=null==t?void 0:t.flowchart)?void 0:i.defaultRenderer))||/^\s*flowchart/.test(e))},"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./flowDiagram-NV44I4VS-DpxYrjDI.cjs"));return{id:AI,diagram:e}},"loader")},PI={id:"er",detector:vu(e=>/^\s*erDiagram/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./erDiagram-Q2GNP2WA-BD25OJ7l.cjs"));return{id:"er",diagram:e}},"loader")},MI="gitGraph",II={id:MI,detector:vu(e=>/^\s*gitGraph/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./gitGraphDiagram-V2S2FVAM-Bjrr2nre.cjs"));return{id:MI,diagram:e}},"loader")},BI="gantt",LI={id:BI,detector:vu(e=>/^\s*gantt/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./ganttDiagram-JELNMOA3-BuEjfD0h.cjs"));return{id:BI,diagram:e}},"loader")},jI="info",NI={id:jI,detector:vu(e=>/^\s*info/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./infoDiagram-HS3SLOUP-DHcFj6RC.cjs"));return{id:jI,diagram:e}},"loader")},DI={id:"pie",detector:vu(e=>/^\s*pie/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./pieDiagram-ADFJNKIX-OI8gruuh.cjs"));return{id:"pie",diagram:e}},"loader")},OI="quadrantChart",zI={id:OI,detector:vu(e=>/^\s*quadrantChart/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./quadrantDiagram-AYHSOK5B-DjOcdqwN.cjs"));return{id:OI,diagram:e}},"loader")},FI="xychart",RI={id:FI,detector:vu(e=>/^\s*xychart(-beta)?/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./xychartDiagram-PRI3JC2R-DPXNUchU.cjs"));return{id:FI,diagram:e}},"loader")},$I="requirement",VI={id:$I,detector:vu(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./requirementDiagram-UZGBJVZJ-CoPWc6eZ.cjs"));return{id:$I,diagram:e}},"loader")},WI="sequence",qI={id:WI,detector:vu(e=>/^\s*sequenceDiagram/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./sequenceDiagram-WL72ISMW-CQFu5gn5.cjs"));return{id:WI,diagram:e}},"loader")},HI="class",UI={id:HI,detector:vu((e,t)=>{var r;return"dagre-wrapper"!==(null==(r=null==t?void 0:t.class)?void 0:r.defaultRenderer)&&/^\s*classDiagram/.test(e)},"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./classDiagram-2ON5EDUG-CZEKavO0.cjs"));return{id:HI,diagram:e}},"loader")},GI="classDiagram",XI={id:GI,detector:vu((e,t)=>{var r;return!(!/^\s*classDiagram/.test(e)||"dagre-wrapper"!==(null==(r=null==t?void 0:t.class)?void 0:r.defaultRenderer))||/^\s*classDiagram-v2/.test(e)},"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./classDiagram-v2-WZHVMYZB-CZEKavO0.cjs"));return{id:GI,diagram:e}},"loader")},JI="state",YI={id:JI,detector:vu((e,t)=>{var r;return"dagre-wrapper"!==(null==(r=null==t?void 0:t.state)?void 0:r.defaultRenderer)&&/^\s*stateDiagram/.test(e)},"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./stateDiagram-FKZM4ZOC-BKlriLiy.cjs"));return{id:JI,diagram:e}},"loader")},ZI="stateDiagram",KI={id:ZI,detector:vu((e,t)=>{var r;return!!/^\s*stateDiagram-v2/.test(e)||!(!/^\s*stateDiagram/.test(e)||"dagre-wrapper"!==(null==(r=null==t?void 0:t.state)?void 0:r.defaultRenderer))},"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./stateDiagram-v2-4FDKWEC3-C3-DQJ_j.cjs"));return{id:ZI,diagram:e}},"loader")},QI="journey",eB={id:QI,detector:vu(e=>/^\s*journey/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./journeyDiagram-XKPGCS4Q-B5mteNXQ.cjs"));return{id:QI,diagram:e}},"loader")},tB={draw:vu((e,t,r)=>{wu.debug("rendering svg for syntax error\n");const n=kb(t),i=n.append("g");n.attr("viewBox","0 0 2412 512"),kp(n,100,512,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw")},rB=tB,nB={db:{},renderer:tB,parser:{parse:vu(()=>{},"parse")}},iB="flowchart-elk",oB={id:iB,detector:vu((e,t={})=>{var r;return!!(/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&"elk"===(null==(r=null==t?void 0:t.flowchart)?void 0:r.defaultRenderer))&&(t.layout="elk",!0)},"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./flowDiagram-NV44I4VS-DpxYrjDI.cjs"));return{id:iB,diagram:e}},"loader")},aB="timeline",sB={id:aB,detector:vu(e=>/^\s*timeline/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./timeline-definition-IT6M3QCI-BUZIaC_t.cjs"));return{id:aB,diagram:e}},"loader")},lB="mindmap",cB={id:lB,detector:vu(e=>/^\s*mindmap/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./mindmap-definition-VGOIOE7T-BPCXwiSh.cjs"));return{id:lB,diagram:e}},"loader")},uB="kanban",hB={id:uB,detector:vu(e=>/^\s*kanban/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./kanban-definition-3W4ZIXB7-BJdCPi_F.cjs"));return{id:uB,diagram:e}},"loader")},dB="sankey",pB={id:dB,detector:vu(e=>/^\s*sankey(-beta)?/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./sankeyDiagram-TZEHDZUN-yGUhPXDs.cjs"));return{id:dB,diagram:e}},"loader")},gB="packet",fB={id:gB,detector:vu(e=>/^\s*packet(-beta)?/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./diagram-S2PKOQOG-Bk91GOvc.cjs"));return{id:gB,diagram:e}},"loader")},mB="radar",yB={id:mB,detector:vu(e=>/^\s*radar-beta/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./diagram-QEK2KX5R-BSfzwv7M.cjs"));return{id:mB,diagram:e}},"loader")},bB="block",vB={id:bB,detector:vu(e=>/^\s*block(-beta)?/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./blockDiagram-VD42YOAC-B-_xQI8-.cjs"));return{id:bB,diagram:e}},"loader")},xB="architecture",CB={id:xB,detector:vu(e=>/^\s*architecture/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./architectureDiagram-VXUJARFQ-BGkw31EW.cjs"));return{id:xB,diagram:e}},"loader")},wB="treemap",kB={id:wB,detector:vu(e=>/^\s*treemap/.test(e),"detector"),loader:vu(async()=>{const{diagram:e}=await Promise.resolve().then(()=>require("./diagram-PSM6KHXK-B8PzNDiz.cjs"));return{id:wB,diagram:e}},"loader")},SB=!1,_B=vu(()=>{SB||(SB=!0,Yp("error",nB,e=>"error"===e.toLowerCase().trim()),Yp("---",{db:{clear:vu(()=>{},"clear")},styles:{},renderer:{draw:vu(()=>{},"draw")},parser:{parse:vu(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:vu(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),id(oB,cB,CB),id(SI,hB,XI,UI,PI,LI,NI,DI,VI,qI,EI,TI,sB,II,KI,YI,eB,zI,pB,fB,RI,vB,yB,kB))},"addDiagrams"),TB=vu(async()=>{wu.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(rd).map(async([e,{detector:t,loader:r}])=>{if(r)try{Zp(e)}catch{try{const{diagram:e,id:n}=await r();Yp(n,e,t)}catch(n){throw wu.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete rd[e],n}}}))).filter(e=>"rejected"===e.status);if(e.length>0){wu.error(`Failed to load ${e.length} external diagrams`);for(const t of e)wu.error(t);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams");function AB(e,t){e.attr("role","graphics-document document"),""!==t&&e.attr("aria-roledescription",t)}function EB(e,t,r,n){if(void 0!==e.insert){if(r){const t=`chart-desc-${n}`;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(r)}if(t){const r=`chart-title-${n}`;e.attr("aria-labelledby",r),e.insert("title",":first-child").attr("id",r).text(t)}}}vu(AB,"setA11yDiagramInfo"),vu(EB,"addSVGa11yTitleDescription");var PB=(vu(f=class{constructor(e,t,r,n,i){this.type=e,this.text=t,this.db=r,this.parser=n,this.renderer=i}static async fromText(e,t={}){var r,n;const i=Fd(),o=nd(e,i);e=wS(e)+"\n";try{Zp(o)}catch{const e=ad(o);if(!e)throw new td(`Diagram ${o} not found.`);const{id:t,diagram:r}=await e();Yp(t,r)}const{db:a,parser:s,renderer:l,init:c}=Zp(o);return s.parser&&(s.parser.yy=a),null==(r=a.clear)||r.call(a),null==c||c(i),t.title&&(null==(n=a.setDiagramTitle)||n.call(a,t.title)),await s.parse(e),new f(o,e,a,s,l)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},"Diagram"),f),MB=[],IB=vu(()=>{MB.forEach(e=>{e()}),MB=[]},"attachFunctions"),BB=vu(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function LB(e){const t=e.match(Kh);if(!t)return{text:e,metadata:{}};let r=vC(t[1],{schema:bC})??{};r="object"!=typeof r||Array.isArray(r)?{}:r;const n={};return r.displayMode&&(n.displayMode=r.displayMode.toString()),r.title&&(n.title=r.title.toString()),r.config&&(n.config=r.config),{text:e.slice(t[0].length),metadata:n}}vu(LB,"extractFrontMatter");var jB=vu(e=>e.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(e,t,r)=>"<"+t+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),NB=vu(e=>{const{text:t,metadata:r}=LB(e),{displayMode:n,title:i,config:o={}}=r;return n&&(o.gantt||(o.gantt={}),o.gantt.displayMode=n),{title:i,config:o,text:t}},"processFrontmatter"),DB=vu(e=>{const t=CS.detectInit(e)??{},r=CS.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:e})=>"wrap"===e):"wrap"===(null==r?void 0:r.type)&&(t.wrap=!0),{text:qk(e),directive:t}},"processDirectives");function OB(e){const t=jB(e),r=NB(t),n=DB(r.text),i=xS(r.config,n.directive);return{code:e=BB(n.text),title:r.title,config:i}}function zB(e){const t=(new TextEncoder).encode(e),r=Array.from(t,e=>String.fromCodePoint(e)).join("");return btoa(r)}vu(OB,"preprocessDiagram"),vu(zB,"toBase64");var FB=["foreignobject"],RB=["dominant-baseline"];function $B(e){const t=OB(e);return Vd(),$d(t.config??{}),t}async function VB(e,t){_B();try{const{code:t,config:r}=$B(e);return{diagramType:(await QB(t)).type,config:r}}catch(r){if(null==t?void 0:t.suppressErrors)return!1;throw r}}vu($B,"processAndSetConfigs"),vu(VB,"parse");var WB=vu((e,t,r=[])=>`\n.${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),qB=vu((e,t=new Map)=>{var r;let n="";if(void 0!==e.themeCSS&&(n+=`\n${e.themeCSS}`),void 0!==e.fontFamily&&(n+=`\n:root { --mermaid-font-family: ${e.fontFamily}}`),void 0!==e.altFontFamily&&(n+=`\n:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const i=e.htmlLabels??(null==(r=e.flowchart)?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(e=>{kI(e.styles)||i.forEach(t=>{n+=WB(e.id,t,e.styles)}),kI(e.textStyles)||(n+=WB(e.id,"tspan",((null==e?void 0:e.textStyles)||[]).map(e=>e.replace("color","fill"))))})}return n},"createCssStyles"),HB=vu((e,t,r,n)=>{const i=qB(e,r);return nI(KM(`${n}{${Ep(t,i,e.themeVariables)}}`),iI)},"createUserStyles"),UB=vu((e="",t,r)=>{let n=e;return r||t||(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=kS(n),n=n.replace(/<br>/g,"<br/>"),n},"cleanUpSvgCode"),GB=vu((e="",t)=>{var r,n;return`<iframe style="width:100%;height:${(null==(n=null==(r=null==t?void 0:t.viewBox)?void 0:r.baseVal)?void 0:n.height)?t.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${zB(`<body style="margin:0">${e}</body>`)}" sandbox="allow-top-navigation-by-user-activation allow-popups">\n The "iframe" tag is not supported by your browser.\n</iframe>`},"putIntoIFrame"),XB=vu((e,t,r,n,i)=>{const o=e.append("div");o.attr("id",r),n&&o.attr("style",n);const a=o.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&a.attr("xmlns:xlink",i),a.append("g"),e},"appendDivSvgG");function JB(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}vu(JB,"sandboxedIframe");var YB=vu((e,t,r,n)=>{var i,o,a;null==(i=e.getElementById(t))||i.remove(),null==(o=e.getElementById(r))||o.remove(),null==(a=e.getElementById(n))||a.remove()},"removeExistingElements"),ZB=vu(async function(e,t,r){var n,i,o,a,s,l;_B();const c=$B(t);t=c.code;const u=Fd();wu.debug(u),t.length>((null==u?void 0:u.maxTextSize)??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");const h="#"+e,d="i"+e,p="#"+d,g="d"+e,f="#"+g,m=vu(()=>{const e=yf(b?p:f).node();e&&"remove"in e&&e.remove()},"removeTempElements");let y=yf("body");const b="sandbox"===u.securityLevel,v="loose"===u.securityLevel,x=u.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),b){const e=JB(yf(r),d);y=yf(e.nodes()[0].contentDocument.body),y.node().style.margin=0}else y=yf(r);XB(y,e,g,`font-family: ${x}`,"http://www.w3.org/1999/xlink")}else{if(YB(document,e,g,d),b){const e=JB(yf("body"),d);y=yf(e.nodes()[0].contentDocument.body),y.node().style.margin=0}else y=yf("body");XB(y,e,g)}let C,w;try{C=await PB.fromText(t,{title:c.title})}catch(I){if(u.suppressErrorRendering)throw m(),I;C=await PB.fromText("error"),w=I}const k=y.select(f).node(),S=C.type,_=k.firstChild,T=_.firstChild,A=null==(i=(n=C.renderer).getClasses)?void 0:i.call(n,t,C),E=HB(u,S,A,h),P=document.createElement("style");P.innerHTML=E,_.insertBefore(P,T);try{await C.renderer.draw(t,e,fu.version,C)}catch(B){throw u.suppressErrorRendering?m():rB.draw(t,e,fu.version),B}eL(S,y.select(`${f} svg`),null==(a=(o=C.db).getAccTitle)?void 0:a.call(o),null==(l=(s=C.db).getAccDescription)?void 0:l.call(s)),y.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let M=y.select(f).node().innerHTML;if(wu.debug("config.arrowMarkerAbsolute",u.arrowMarkerAbsolute),M=UB(M,b,sp(u.arrowMarkerAbsolute)),b){const e=y.select(f+" svg").node();M=GB(M,e)}else v||(M=Zh.sanitize(M,{ADD_TAGS:FB,ADD_ATTR:RB,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(IB(),w)throw w;return m(),{diagramType:S,svg:M,bindFunctions:C.db.bindFunctions}},"render");function KB(e={}){var t;const r=ld({},e);(null==r?void 0:r.fontFamily)&&!(null==(t=r.themeVariables)?void 0:t.fontFamily)&&(r.themeVariables||(r.themeVariables={}),r.themeVariables.fontFamily=r.fontFamily),Nd(r),(null==r?void 0:r.theme)&&r.theme in Cd?r.themeVariables=Cd[r.theme].getThemeVariables(r.themeVariables):r&&(r.themeVariables=Cd.default.getThemeVariables(r.themeVariables));const n="object"==typeof r?jd(r):Od();ku(n.logLevel),_B()}vu(KB,"initialize");var QB=vu((e,t={})=>{const{code:r}=OB(e);return PB.fromText(r,t)},"getDiagramFromText");function eL(e,t,r,n){AB(t,e),EB(t,r,n,t.attr("id"))}vu(eL,"addA11yInfo");var tL=Object.freeze({render:ZB,parse:VB,getDiagramFromText:QB,initialize:KB,getConfig:Fd,setConfig:zd,getSiteConfig:Od,updateSiteConfig:Dd,reset:vu(()=>{Vd()},"reset"),globalReset:vu(()=>{Vd(Pd)},"globalReset"),defaultConfig:Pd});ku(Fd().logLevel),Vd(Fd());var rL=vu((e,t,r)=>{wu.warn(e),yS(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),nL=vu(async function(e={querySelector:".mermaid"}){try{await iL(e)}catch(t){if(yS(t)&&wu.error(t.str),fL.parseError&&fL.parseError(t),!e.suppressErrors)throw wu.error("Use the suppressErrors option to suppress these errors"),t}},"run"),iL=vu(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const n=tL.getConfig();let i;if(wu.debug((e?"":"No ")+"Callback function found"),r)i=r;else{if(!t)throw new Error("Nodes and querySelector are both undefined");i=document.querySelectorAll(t)}wu.debug(`Found ${i.length} diagrams`),void 0!==(null==n?void 0:n.startOnLoad)&&(wu.debug("Start On Load: "+(null==n?void 0:n.startOnLoad)),tL.updateSiteConfig({startOnLoad:null==n?void 0:n.startOnLoad}));const o=new CS.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed);let a;const s=[];for(const c of Array.from(i)){if(wu.info("Rendering diagram: "+c.id),c.getAttribute("data-processed"))continue;c.setAttribute("data-processed","true");const t=`mermaid-${o.next()}`;a=c.innerHTML,a=nT(CS.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");const r=CS.detectInit(a);r&&wu.debug("Detected early reinit: ",r);try{const{svg:r,bindFunctions:n}=await gL(t,a,c);c.innerHTML=r,e&&await e(t),n&&n(c)}catch(l){rL(l,s,fL.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),oL=vu(function(e){tL.initialize(e)},"initialize"),aL=vu(async function(e,t,r){wu.warn("mermaid.init is deprecated. Please use run instead."),e&&oL(e);const n={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof t?n.querySelector=t:t&&(t instanceof HTMLElement?n.nodes=[t]:n.nodes=t),await nL(n)},"init"),sL=vu(async(e,{lazyLoad:t=!0}={})=>{_B(),id(...e),!1===t&&await TB()},"registerExternalDiagrams"),lL=vu(function(){if(fL.startOnLoad){const{startOnLoad:e}=tL.getConfig();e&&fL.run().catch(e=>wu.error("Mermaid failed to initialize",e))}},"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",lL,!1);var cL=vu(function(e){fL.parseError=e},"setParseErrorHandler"),uL=[],hL=!1,dL=vu(async()=>{if(!hL){for(hL=!0;uL.length>0;){const t=uL.shift();if(t)try{await t()}catch(e){wu.error("Error executing queue",e)}}hL=!1}},"executeQueue"),pL=vu(async(e,t)=>new Promise((r,n)=>{const i=vu(()=>new Promise((i,o)=>{tL.parse(e,t).then(e=>{i(e),r(e)},e=>{var t;wu.error("Error parsing",e),null==(t=fL.parseError)||t.call(fL,e),o(e),n(e)})}),"performCall");uL.push(i),dL().catch(n)}),"parse"),gL=vu((e,t,r)=>new Promise((n,i)=>{const o=vu(()=>new Promise((o,a)=>{tL.render(e,t,r).then(e=>{o(e),n(e)},e=>{var t;wu.error("Error parsing",e),null==(t=fL.parseError)||t.call(fL,e),a(e),i(e)})}),"performCall");uL.push(o),dL().catch(i)}),"render"),fL={startOnLoad:!0,mermaidAPI:tL,parse:pL,render:gL,init:aL,run:nL,registerExternalDiagrams:sL,registerLayoutLoaders:bM,initialize:oL,parseError:void 0,contentLoaded:lL,setParseErrorHandler:cL,detectType:nd,registerIconPacks:sT,getRegisteredDiagramsMetadata:vu(()=>Object.keys(rd).map(e=>({id:e})),"getRegisteredDiagramsMetadata")},mL=fL;
|
|
151
|
+
/*! Check if previously processed */
|
|
152
|
+
/*!
|
|
153
|
+
* Wait for document loaded before starting the execution
|
|
154
|
+
*/
|
|
155
|
+
const yL=e=>{const{width:t,height:r,zoomable:n=!1}=e;return{root:T.css({position:"relative",borderRadius:w.tokens.borderRadiusMedium,border:`1px solid ${w.tokens.colorNeutralStroke2}`,width:t??"100%",height:r??"auto",...n?{cursor:"grab"}:{}}),svgContainer:T.css({width:"100%"}),loading:T.css({color:w.tokens.colorNeutralForeground3,fontFamily:w.tokens.fontFamilyBase,fontSize:w.tokens.fontSizeBase300})}};let bL=0;const vL=e=>{const{template:t}=e;return v.jsx(v.Fragment,{children:t})},xL=[{minWidth:1280,gap:100},{minWidth:1024,gap:60},{minWidth:768,gap:40},{minWidth:480,gap:24},{minWidth:0,gap:12}];function CL(e,t,r,n,i=48){const[o,a]=H.useState(n);return H.useEffect(()=>{const o=e.current,s=t.current,l=r.current;if(!o||!l)return;const c=()=>{const e=o.offsetWidth;if(0===e)return;const t=getComputedStyle(o),r=parseFloat(t.paddingLeft||"0"),c=parseFloat(t.paddingRight||"0"),u=parseFloat(t.columnGap||t.gap||"0"),h=function(e){for(const t of xL)if(e>t.minWidth)return t.gap;return xL[xL.length-1].gap}(e),d=s?s.offsetWidth:0,p=e-r-c-(d>0?d+h+u:0);if(p<=0)return;const g=Array.from(l.children);if(0===g.length)return void a(n);const f=parseFloat(getComputedStyle(l).columnGap||"0");let m=0;for(const n of g)m+=n.offsetWidth;if(m+=Math.max(0,g.length-1)*f,m<=p)return void a(g.length);const y=p-i;let b=0,v=0;for(let n=0;n<g.length;n++){const e=g[n].offsetWidth,t=n>0?f:0;if(b+t+e>y)break;b+=t+e,v++}a(Math.max(1,v))},u=requestAnimationFrame(c),h=new ResizeObserver(c);return h.observe(o),()=>{cancelAnimationFrame(u),h.disconnect()}},[e,t,r,n,i]),o}const wL=({item:e,isLoading:t,itemClass:r,labelClass:n})=>{if(!1===e.visible)return null;if(e.onRender)return e.onRender();const i=n?v.jsx("span",{className:n,children:e.label}):e.label,o=e.label?v.jsx(w.ToolbarButton,{className:r,"aria-label":e.ariaLabel||e.tooltip||e.label,icon:e.icon,onClick:e.onClick,disabled:e.disabled||t,appearance:e.appearance,children:i}):v.jsx(w.ToolbarButton,{className:r,"aria-label":e.ariaLabel||e.tooltip||e.key,icon:e.icon,onClick:e.onClick,disabled:e.disabled||t,appearance:e.appearance});return e.tooltip?v.jsx(w.Tooltip,{content:e.tooltip,relationship:"label",children:o}):o};function kL(e){const t=new Map;for(const r of e){const e=r.group||"default";t.has(e)||t.set(e,[]),t.get(e).push(r)}return t}const SL=new Map,_L=3e5;setInterval(()=>{const e=Date.now(),t=[];SL.forEach((r,n)=>{e>r.expiresAt&&t.push(n)}),t.forEach(e=>SL.delete(e))},6e5);const TL=x.memo(({userId:e,avatarSize:t=32,showHoverCard:r=!0,context:n,textPosition:i="after",className:o,avatarOnly:a=!1,secondaryText:s,tertiaryText:l,quaternaryText:c})=>{var u,h;const d={root:T.css({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"flex-start",width:"fit-content",gap:"10px","&[data-fui-focus-within]:focus-within::after":{borderWidth:"0px"}}),personContainer:T.css({display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",width:"100%",maxWidth:"100%",overflow:"hidden",paddingBottom:"0px"}),textStyle:T.css({width:"100%",maxWidth:"100%",overflow:"hidden",display:"-webkit-box",WebkitLineClamp:"1",WebkitBoxOrient:"vertical",paddingBottom:"0px",textAlign:"start",wordBreak:"break-all",textOverflow:"ellipsis",textOverlay:"hidden"}),spinnerContainer:T.css({display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",width:"100%"})},{user:p}=((e,t)=>{const r=K(),n=t||r,i=null==n?void 0:n.graphClient,{error:o,warn:a,verbose:s}=Q(),[l,c]=x.useState(void 0),[u,h]=x.useState(!0),d=x.useCallback(async e=>{if(!i)return a("Graph client not available"),null;try{return await i.get(`/users/${e}`)}catch(t){return o("Error fetching user:",t instanceof Error?t:void 0),null}},[i]),p=x.useCallback(async e=>{if(!i)return a("Graph client not available"),null;try{return await i.get(`/users/${e}/presence`)}catch(t){return o("Error fetching user presence:",t instanceof Error?t:void 0),null}},[i]),g=x.useCallback(async e=>{if(i)try{const t=await i.getBlob(`/users/${e}/photo/$value`);return t?new Promise((e,r)=>{const n=new FileReader;n.onloadend=()=>e(n.result),n.onerror=r,n.readAsDataURL(t)}):void 0}catch(t){return void s("No photo available for user:",e)}else a("Graph client not available")},[i]),f=x.useCallback(async()=>{var t;if(!e)return void h(!1);const r=SL.get(e),n=Date.now();if(r&&n<r.expiresAt)return c(r.data),void h(!1);try{const r=await d(e);if(!r)return;let a,s={availability:"Offline",activity:"Offline"};try{if(r.id){const e=await p(r.id);e&&(s=e)}}catch(i){(null==(t=null==i?void 0:i.message)?void 0:t.toLowerCase().includes("exceed"))?(o("fetchUser: Exceeded resource error during presence check",i,b.ErrorType.Error),s=r.presence||{availability:"Offline",activity:"Offline"}):o("fetchUser: Error fetching user presence",i,b.ErrorType.Error)}try{r.id&&(a=await g(r.id))}catch(i){o("fetchUser: Error fetching user photo",i,b.ErrorType.Warning)}const l={...r,presence:s,userPhoto:a};SL.set(e,{data:l,timestamp:n,expiresAt:n+_L}),c(l)}catch(i){o("fetchUser: Error fetching user",i,b.ErrorType.Error)}finally{h(!1)}},[e,d,p,g,o]),m=x.useCallback(async()=>{var t;if(!e||!l)return;const r=SL.get(e),n=Date.now();if(!(r&&r.data.presence&&n-r.timestamp<12e4))try{let a={availability:"Offline",activity:"Offline"};try{if(l.id){const e=await p(l.id);e&&(a=e)}}catch(i){(null==(t=i.message)?void 0:t.toLowerCase().includes("exceed"))?(o("checkUserPresence: Exceeded resource error during presence check",i,b.ErrorType.Error),a=l.presence||{availability:"Offline",activity:"Offline"}):o("checkUserPresence: Error fetching user presence",i,b.ErrorType.Error)}const s={...l,presence:a};SL.set(e,{data:s,timestamp:n,expiresAt:(null==r?void 0:r.expiresAt)||n+_L}),c(s)}catch(i){o("checkUserPresence: Error in checkUserPresence",i,b.ErrorType.Error)}},[e,l,p,o]);x.useEffect(()=>{(async()=>{await f()})()},[f]);const{startPolling:y,stopPolling:v}=te(m,l?6e4:12e4,!1);return x.useEffect(()=>(l&&y(),()=>{v()}),[l,y,v]),{user:l,loading:u,refetch:f}})(e,n),g=b.useUserCardStrings(),f=x.useMemo(()=>{var e,t,r,n;const i=null==(t=null==(e=null==p?void 0:p.presence)?void 0:e.availability)?void 0:t.toLowerCase(),o=null==(n=null==(r=null==p?void 0:p.presence)?void 0:r.activity)?void 0:n.toLowerCase();switch(i){case"available":return{status:"available",text:g.available};case"availableidle":return{status:"available",text:g.availableIdle};case"away":return{status:"away",text:g.away};case"busy":return{status:"busy",text:g.busy};case"busyidle":return{status:"busy",text:g.busyIdle};case"donotdisturb":return{status:"do-not-disturb",text:g.doNotDisturb};case"berighback":return{status:"away",text:g.beRightBack};case"invisible":return{status:"offline",text:g.appearOffline};case"presenceunknown":return{status:"unknown",text:g.unknown};case"offline":return{status:"offline",text:"outofoffice"===o?g.outOfOffice:g.offline,outOfOffice:"outofoffice"===o};default:return{status:"offline",text:g.offline,outOfOffice:"outofoffice"===o}}},[null==(u=null==p?void 0:p.presence)?void 0:u.availability,null==(h=null==p?void 0:p.presence)?void 0:h.activity,g]);return v.jsx(vL,{upn:r&&(null==p?void 0:p.mail)||"",template:v.jsx("div",{className:w.mergeClasses(d.root,o),children:a?v.jsx(w.Avatar,{color:"colorful",image:{src:null==p?void 0:p.userPhoto,alt:(null==p?void 0:p.displayName)||g.userAvatar},size:t,name:(null==p?void 0:p.displayName)||e||g.unknownUser,badge:{status:f.status,outOfOffice:f.outOfOffice}}):v.jsx(w.Persona,{primaryText:v.jsxs(w.Body1Strong,{className:d.textStyle,children:[" ",(null==p?void 0:p.displayName)||e||g.unknownUser]}),textPosition:i??"after",presence:{status:f.status,outOfOffice:f.outOfOffice},secondaryText:(null==s?void 0:s.showSecondaryText)?s.text?v.jsx(v.Fragment,{children:v.jsx("span",{className:d.textStyle,children:s.text})}):v.jsx(v.Fragment,{children:v.jsx("span",{className:d.textStyle,children:(null==p?void 0:p.jobTitle)||"Unknown Job Title"})}):void 0,tertiaryText:(null==l?void 0:l.showTertiaryText)?l.text?v.jsx(v.Fragment,{children:v.jsx("span",{className:d.textStyle,children:l.text})}):v.jsx(v.Fragment,{children:v.jsx("span",{className:d.textStyle,children:(null==p?void 0:p.mail)||"Unknown Email"})}):void 0,quaternaryText:(null==c?void 0:c.showQuaternaryText)?c.text?v.jsx(v.Fragment,{children:v.jsx("span",{className:d.textStyle,children:c.text})}):v.jsx(v.Fragment,{children:v.jsx("span",{className:d.textStyle,children:f.text})}):void 0,avatar:{color:"colorful",image:{src:null==p?void 0:p.userPhoto,alt:(null==p?void 0:p.displayName)||g.userAvatar},size:t},textAlignment:"start"})})})},(e,t)=>e.userId===t.userId&&e.avatarSize===t.avatarSize&&e.showHoverCard===t.showHoverCard&&e.textPosition===t.textPosition&&e.avatarOnly===t.avatarOnly&&e.className===t.className&&JSON.stringify(e.secondaryText)===JSON.stringify(t.secondaryText)&&JSON.stringify(e.tertiaryText)===JSON.stringify(t.tertiaryText)&&JSON.stringify(e.quaternaryText)===JSON.stringify(t.quaternaryText)),AL={width:"20px",height:"20px",color:w.tokens.colorBrandBackground},EL=["access","comment","create","delete","edit","mention","move","rename","restore","share","version"],PL=new Map([]),ML=e=>v.jsxs("svg",{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[v.jsx("rect",{x:"20",y:"30",width:"60",height:"50",fill:"#0078D4",opacity:"0.1"}),v.jsx("rect",{x:"30",y:"50",width:"10",height:"20",fill:"#0078D4"}),v.jsx("rect",{x:"45",y:"40",width:"10",height:"30",fill:"#0078D4"}),v.jsx("rect",{x:"60",y:"35",width:"10",height:"35",fill:"#0078D4"})]}),IL=e=>{const{height:t}=e,r=b.useAppDashboardStrings();return v.jsxs("div",{style:{height:t||"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[v.jsx(ML,{width:200,height:200}),v.jsx(w.Text,{size:500,weight:"semibold",children:r.noDashboardsAvailable})]})},BL=e=>{const{onChange:t,values:r,maxCols:n,maxRows:i}=e,o=E.bundleIcon(E.Settings20Filled,E.Settings20Regular),a={gridContainer:T.css`
|
|
156
|
+
display: grid;
|
|
157
|
+
gap: 4px;
|
|
158
|
+
padding: 8px;
|
|
159
|
+
justify-content: center;
|
|
160
|
+
`,cell:T.css`
|
|
161
|
+
width: 30px;
|
|
162
|
+
height: 30px;
|
|
163
|
+
border: 1px solid ${w.tokens.colorNeutralStroke1};
|
|
164
|
+
background-color: ${w.tokens.colorNeutralBackground1};
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
transition: background-color 150ms ease, transform 150ms ease;
|
|
167
|
+
will-change: background-color, transform;
|
|
168
|
+
`,hoveredCell:T.css`
|
|
169
|
+
background-color: ${w.tokens.colorNeutralBackground1Hover};
|
|
170
|
+
transform: scale(1.05);
|
|
171
|
+
`,selectedCell:T.css`
|
|
172
|
+
background-color: ${w.tokens.colorNeutralBackground1Selected};
|
|
173
|
+
`,menuPopover:T.css`
|
|
174
|
+
min-width: fit-content;
|
|
175
|
+
`,bottomText:T.css`
|
|
176
|
+
padding-left: 8px;
|
|
177
|
+
padding-right: 8px;
|
|
178
|
+
`,zoomContainer:T.css({display:"flex",flexDirection:"row",alignItems:"center",gap:"6px",width:"100%",boxSizing:"border-box",padding:"8px 0px"})},s=b.useAppDashboardStrings(),[l,c]=H.useState(r),[u,h]=H.useState(null),[d,p]=H.useState(!1);H.useEffect(()=>{c(r)},[r]);const g=(e,r)=>{const n={spanCols:r+1,spanRows:e+1};c(n),null==t||t(n),p(!1)},f=(e,t)=>{h({spanCols:t+1,spanRows:e+1})},m=H.useMemo(()=>30*n+4*(n-1)+32,[n]);return v.jsxs(w.Menu,{open:d,onOpenChange:(e,t)=>{p(t.open),h(null)},children:[v.jsx(w.MenuTrigger,{disableButtonEnhancement:!0,children:v.jsx(w.Tooltip,{content:s.configure,relationship:"label",children:v.jsx(w.MenuButton,{icon:v.jsx(o,{}),size:"small",appearance:"transparent"})})}),v.jsxs(w.MenuPopover,{style:{width:`${m}px`,minWidth:"120px",padding:8},children:[v.jsx("div",{className:a.zoomContainer,children:v.jsx(St,{label:`Span (${l.spanCols} × ${l.spanRows})`})}),v.jsx("div",{className:a.gridContainer,style:{gridTemplateColumns:`repeat(${n}, 30px)`,gridTemplateRows:`repeat(${i}, 30px)`},onMouseLeave:()=>{h(null)},children:(()=>{const e=[];for(let t=0;t<i;t++)for(let r=0;r<n;r++){const n=t<l.spanRows&&r<l.spanCols,i=u&&t<u.spanRows&&r<u.spanCols;e.push(v.jsx("div",{className:`${a.cell} ${i?a.hoveredCell:""} ${n?a.selectedCell:""}`,onMouseEnter:()=>f(t,r),onClick:()=>g(t,r)},`${t}-${r}`))}return e})()}),v.jsx(w.Caption1,{className:a.bottomText,children:s.clickToSetSpan})]})]})},LL=T.keyframes`
|
|
179
|
+
0%, 100% { transform: translateY(0px); }
|
|
180
|
+
50% { transform: translateY(-8px); }
|
|
181
|
+
`,jL=T.keyframes`
|
|
182
|
+
0% { background-position: -200% center; }
|
|
183
|
+
100% { background-position: 200% center; }
|
|
184
|
+
`,NL=()=>({card:T.css({width:"100%",height:"310px",borderRadius:10,background:w.tokens.colorNeutralBackground1,border:`1px solid ${w.tokens.colorNeutralStroke1}`,boxShadow:w.tokens.shadow8,overflow:"visible",position:"relative",padding:"0px 15px !important",transition:"transform 0.25s ease, box-shadow 0.25s ease","&:hover, &:focus-within":{zIndex:10,transform:"translateY(-2px)",boxShadow:w.tokens.shadow16}}),description:T.css({fontSize:w.tokens.fontSizeBase300,color:w.tokens.colorNeutralForeground4,lineHeight:w.tokens.lineHeightBase400,position:"relative",zIndex:1}),footerMetric:T.css({display:"flex",flexDirection:"column",alignItems:"center",gap:w.tokens.spacingVerticalXXS}),footerIcon:T.css({color:w.tokens.colorNeutralForeground3,fontSize:w.tokens.fontSizeBase300}),footerLabel:T.css({fontSize:`${w.tokens.fontSizeBase100} !important`,color:w.tokens.colorNeutralForeground3,textTransform:"uppercase",letterSpacing:"0.8px",fontWeight:w.tokens.fontWeightMedium,textAlign:"center"}),footerValue:T.css({fontSize:`${w.tokens.fontSizeBase400} !important`,fontWeight:w.tokens.fontWeightSemibold,color:w.tokens.colorNeutralForeground2,textAlign:"center"}),footerDivider:T.css({height:"32px",borderColor:w.tokens.colorNeutralStroke1}),glowBlob:T.css({position:"absolute",top:"-60px",right:"-60px",width:"180px",height:"180px",borderRadius:"50%",pointerEvents:"none",zIndex:0,filter:"blur(40px)"}),glowBlobSuccess:T.css({position:"absolute",top:"-40px",right:"-40px",width:"160px",height:"160px",borderRadius:"50%",pointerEvents:"none",zIndex:0,background:`radial-gradient(circle, ${w.tokens.colorPaletteLightGreenBackground2} 0%, transparent 70%)`,opacity:.7,filter:"blur(20px)"}),glowBlobError:T.css({position:"absolute",top:"-40px",right:"-40px",width:"160px",height:"160px",borderRadius:"50%",pointerEvents:"none",zIndex:0,background:`radial-gradient(circle, ${w.tokens.colorPaletteRedBackground2} 0%, transparent 70%)`,opacity:.6,filter:"blur(20px)"}),headerActionBadge:T.css({minWidth:"32px",height:"32px",borderRadius:"50% !important",background:`${w.tokens.colorNeutralBackground3} !important`,border:"none !important",padding:"0 !important",display:"flex",alignItems:"center",justifyContent:"center"}),kpiContainer:T.css({width:"100%",backgroundColor:w.tokens.colorNeutralBackground2,borderRadius:8,display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(min(100%, 280px), 1fr))",gap:16,padding:16}),iconContainer:T.css({width:48,height:48,borderRadius:8,display:"grid",placeItems:"center",background:w.tokens.colorNeutralBackgroundInverted}),noKpiCard:T.css({width:280,minHeight:160,display:"flex",alignItems:"center",justifyContent:"center"}),noKpiCardContainer:T.css({width:"100%",minWidth:"280px",minHeight:"280px",borderRadius:"16px",background:`linear-gradient(135deg, ${w.tokens.colorNeutralBackground1} 0%, ${w.tokens.colorNeutralBackground3} 100%)`,border:`1px solid ${w.tokens.colorNeutralStroke1}`,boxShadow:w.tokens.shadow16,overflow:"hidden",position:"relative",padding:"32px",transition:"transform 0.3s ease, box-shadow 0.3s ease","&:hover":{transform:"translateY(-4px)",boxShadow:w.tokens.shadow28}}),noKpiBackgroundOrb1:T.css({position:"absolute",top:"0px",right:"0px",width:"180px",height:"180px",borderRadius:"50%",background:`radial-gradient(circle, ${w.tokens.colorBrandBackground2} 0%, transparent 70%)`,opacity:.8,pointerEvents:"none",filter:"blur(25px)",transform:"translate(30%, -30%)"}),noKpiBackgroundOrb2:T.css({position:"absolute",bottom:"-30px",left:"-30px",width:"120px",height:"120px",borderRadius:"50%",background:`radial-gradient(circle, ${w.tokens.colorPaletteLavenderBackground2} 0%, transparent 70%)`,opacity:.5,pointerEvents:"none",filter:"blur(20px)"}),noKpiIconContainer:T.css({width:"80px",height:"80px",borderRadius:"20px",background:`linear-gradient(135deg, ${w.tokens.colorBrandBackground} 0%, ${w.tokens.colorBrandBackground2} 100%)`,display:"flex",alignItems:"center",justifyContent:"center",boxShadow:`0 8px 24px ${w.tokens.colorBrandBackground}40`,animation:`${LL} 3s ease-in-out infinite`,position:"relative",zIndex:1}),noKpiIcon:T.css({fontSize:"36px",color:w.tokens.colorNeutralForegroundOnBrand}),noKpiSparkle1:T.css({position:"absolute",top:"-8px",right:"-8px",color:w.tokens.colorPaletteYellowForeground1,fontSize:"20px",animation:`${LL} 2s ease-in-out infinite 0.5s`}),noKpiSparkle2:T.css({position:"absolute",bottom:"-4px",left:"-8px",color:w.tokens.colorPaletteLavenderForeground2,fontSize:"16px",animation:`${LL} 2.5s ease-in-out infinite`}),noKpiTitle:T.css({fontSize:"22px",fontWeight:w.tokens.fontWeightSemibold,color:w.tokens.colorNeutralForeground1,marginTop:"24px",textAlign:"center",position:"relative",zIndex:1}),noKpiSubtitle:T.css({fontSize:"14px",color:w.tokens.colorNeutralForeground3,textAlign:"center",lineHeight:"1.6",maxWidth:"320px",marginTop:"8px",position:"relative",zIndex:1}),noKpiHighlight:T.css({background:`linear-gradient(90deg, ${w.tokens.colorBrandForeground1}, ${w.tokens.colorPaletteLavenderForeground2}, ${w.tokens.colorBrandForeground1})`,backgroundSize:"200% auto",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",fontWeight:w.tokens.fontWeightSemibold,animation:`${jL} 3s linear infinite`}),noKpiButtonContainer:T.css({marginTop:"24px",position:"relative",zIndex:1}),noKpiButton:T.css({borderRadius:"10px",padding:"10px 20px",fontWeight:w.tokens.fontWeightSemibold,transition:"transform 0.2s ease","&:hover":{transform:"scale(1.02)"}}),noKpiDecorativeLine:T.css({width:"60px",height:"4px",borderRadius:"2px",background:`linear-gradient(90deg, ${w.tokens.colorBrandBackground}, ${w.tokens.colorPaletteLavenderBackground2})`,marginTop:"16px",position:"relative",zIndex:1}),footerGrid:T.css({width:"100%",display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(80px, 1fr))",alignItems:"center"})});var DL=(e=>(e[e.LOWER_IS_BETTER=1]="LOWER_IS_BETTER",e[e.HIGHER_IS_BETTER=2]="HIGHER_IS_BETTER",e))(DL||{});const OL=e=>{var t;const{dataCard:r}=e,n=NL(),i=b.useKpiStrings(),[o,a]=H.useState(!1),s=H.useCallback(()=>{a(!1)},[]),l=H.useMemo(()=>r.goalMetric===DL.LOWER_IS_BETTER?r.currentValue<=r.goal:r.currentValue>=r.goal,[r.currentValue,r.goal,r.goalMetric]),c=H.useMemo(()=>l?"success":"error",[l]),u=H.useMemo(()=>r.goal.toLocaleString(),[r.goal]),h=H.useMemo(()=>r.currentValue/r.totalItems*100,[r.currentValue,r.totalItems]),d=H.useMemo(()=>l?w.tokens.colorPaletteLightGreenForeground2:w.tokens.colorPaletteRedForeground2,[l]),p=H.useMemo(()=>l?w.tokens.colorPaletteLightGreenBackground1:w.tokens.colorPaletteRedBackground1,[l]),g=H.useMemo(()=>l?w.tokens.colorPaletteLightGreenBorder1:w.tokens.colorPaletteRedBorder1,[l]),f=H.useMemo(()=>({background:p,border:`1px solid ${g}`,color:d,borderRadius:"20px",padding:"12px 12px",fontSize:w.tokens.fontSizeBase200,fontWeight:w.tokens.fontWeightSemibold,letterSpacing:"0.3px",maxWidth:"fit-content"}),[p,g,d]);return v.jsx(v.Fragment,{children:v.jsxs(w.Card,{className:n.card,onMouseLeave:s,children:[v.jsx("div",{className:l?n.glowBlobSuccess:n.glowBlobError}),v.jsxs(Ct,{gap:"m",padding:"m",children:[v.jsx(w.CardHeader,{header:v.jsxs(Ct,{direction:"vertical",gap:"2px",children:[v.jsx(Ct,{direction:"horizontal",alignItems:"center",gap:"8px",children:v.jsx(w.InfoLabel,{style:{zIndex:99999},infoButton:{popover:{open:o,onOpenChange:(e,t)=>a(t.open)}},info:v.jsx(v.Fragment,{children:v.jsx(w.Text,{size:300,color:"neutralSecondary",children:r.description||i.noDescription})}),children:v.jsx(w.Text,{weight:"bold",size:300,children:(null==(t=r.title)?void 0:t.toUpperCase())||i.defaultTitle})})}),v.jsx(w.Text,{size:200,style:{color:w.tokens.colorNeutralForeground3,fontStyle:"italic"},children:r.goalMetric===DL.LOWER_IS_BETTER?i.lowerIsBetter:i.higherIsBetter})]}),action:v.jsx(w.Tooltip,{content:l?`✓ ${i.withinGoalThreshold}`:`⚠ ${i.exceedsGoalThreshold}`,relationship:"inaccessible",children:v.jsx(w.Badge,{className:n.headerActionBadge,appearance:"ghost",size:"small",icon:l?v.jsx(E.CheckmarkCircleRegular,{style:{color:d,fontSize:"22px"}}):v.jsx(E.AlertFilled,{style:{color:d,fontSize:"22px"}})})})}),v.jsxs(Ct,{gap:"s",direction:"horizontal",alignItems:"baseline",paddingTop:"s",children:[v.jsxs(w.Text,{weight:"bold",size:900,children:[r.currentValue," ",v.jsx("br",{})]}),v.jsxs(w.Text,{weight:"semibold",size:300,color:"neutralSecondary",children:["/ ",r.goal," ",i.goal]})]}),v.jsxs(Ct,{gap:"s",children:[v.jsxs(Ct,{direction:"horizontal",justifyContent:"space-between",children:[v.jsx(w.Text,{size:300,color:"neutralSecondary",children:i.progressGoal}),v.jsxs(w.Text,{size:300,color:"neutralSecondary",weight:"bold",children:[(r.currentValue/r.goal*100).toFixed(2),"%"]})]}),v.jsx(w.ProgressBar,{value:r.currentValue/r.goal,color:c,style:{height:"8px"},shape:"rounded"})]}),v.jsxs(w.CardFooter,{children:[v.jsx(w.Tooltip,{content:i.maxAllowedThreshold,relationship:"inaccessible",children:v.jsxs(Ct,{alignItems:"center",gap:w.tokens.spacingVerticalXXS,children:[v.jsx(E.TargetRegular,{className:n.footerIcon}),v.jsx(w.Text,{className:n.footerLabel,children:"Goal"}),v.jsx(w.Text,{className:n.footerValue,children:u})]})}),v.jsx(w.Divider,{vertical:!0,className:n.footerDivider}),v.jsx(w.Tooltip,{content:i.totalItemsInScope,relationship:"inaccessible",children:v.jsxs(Ct,{alignItems:"center",gap:w.tokens.spacingVerticalXXS,children:[v.jsx(E.DocumentRegular,{className:n.footerIcon}),v.jsx(w.Text,{className:n.footerLabel,children:i.totalItems}),v.jsx(w.Text,{className:n.footerValue,children:r.totalItems.toLocaleString()})]})}),v.jsx(w.Divider,{vertical:!0,className:n.footerDivider}),v.jsx(w.Tooltip,{content:i.currentValueAsPercent,relationship:"inaccessible",children:v.jsxs(Ct,{alignItems:"center",gap:w.tokens.spacingVerticalXXS,children:[v.jsx(E.CalculatorRegular,{className:n.footerIcon}),v.jsx(w.Text,{className:n.footerLabel,children:i.percentOfTotal}),v.jsxs(w.Text,{className:n.footerValue,children:[h.toFixed(2),"%"]})]})})]}),v.jsx(Ct,{children:v.jsx(w.Badge,{appearance:"outline",size:"small",style:f,icon:l?v.jsx(E.CheckmarkCircleRegular,{style:{fontSize:"14px"}}):v.jsx(E.AlertFilled,{style:{fontSize:"14px"}}),children:l?i.onTrack:i.exceedGoal})})]})]})})},zL=()=>{const e=NL(),t={headerTitle:T.css({width:"120px",height:"16px"}),headerBadge:T.css({width:"32px",height:"32px",borderRadius:"50%"}),mainValue:T.css({width:"80px",height:"42px"}),goalText:T.css({width:"70px",height:"16px"}),progressLabel:T.css({width:"80px",height:"12px"}),progressValue:T.css({width:"50px",height:"12px"}),progressBar:T.css({width:"100%",height:"8px",borderRadius:"4px"}),footerIcon:T.css({width:"16px",height:"16px",borderRadius:"4px"}),footerLabel:T.css({width:"50px",height:"10px"}),footerValue:T.css({width:"40px",height:"14px"}),badge:T.css({width:"90px",height:"32px",borderRadius:"20px"})};return v.jsx(w.Card,{className:e.card,children:v.jsx(w.Skeleton,{animation:"pulse",children:v.jsxs(Ct,{gap:"m",padding:"m",children:[v.jsx(w.CardHeader,{header:v.jsx(Ct,{direction:"horizontal",alignItems:"center",gap:"8px",children:v.jsx(w.SkeletonItem,{className:t.headerTitle})}),action:v.jsx(w.SkeletonItem,{className:t.headerBadge,shape:"circle"})}),v.jsxs(Ct,{gap:"s",direction:"horizontal",alignItems:"baseline",paddingTop:"s",children:[v.jsx(w.SkeletonItem,{className:t.mainValue}),v.jsx(w.SkeletonItem,{className:t.goalText})]}),v.jsxs(Ct,{gap:"s",children:[v.jsxs(Ct,{direction:"horizontal",justifyContent:"space-between",children:[v.jsx(w.SkeletonItem,{className:t.progressLabel}),v.jsx(w.SkeletonItem,{className:t.progressValue})]}),v.jsx(w.SkeletonItem,{className:t.progressBar})]}),v.jsxs(w.CardFooter,{children:[v.jsxs(Ct,{direction:"vertical",alignItems:"center",gap:"xs",children:[v.jsx(w.SkeletonItem,{className:t.footerIcon}),v.jsx(w.SkeletonItem,{className:t.footerLabel}),v.jsx(w.SkeletonItem,{className:t.footerValue})]}),v.jsx(w.Divider,{vertical:!0,style:{height:"32px",borderColor:w.tokens.colorNeutralStroke1}}),v.jsxs(Ct,{direction:"vertical",alignItems:"center",gap:"xs",children:[v.jsx(w.SkeletonItem,{className:t.footerIcon}),v.jsx(w.SkeletonItem,{className:t.footerLabel}),v.jsx(w.SkeletonItem,{className:t.footerValue})]}),v.jsx(w.Divider,{vertical:!0,style:{height:"32px",borderColor:w.tokens.colorNeutralStroke1}}),v.jsxs(Ct,{direction:"vertical",alignItems:"center",gap:"xs",children:[v.jsx(w.SkeletonItem,{className:t.footerIcon}),v.jsx(w.SkeletonItem,{className:t.footerLabel}),v.jsx(w.SkeletonItem,{className:t.footerValue})]})]}),v.jsx(Ct,{children:v.jsx(w.SkeletonItem,{className:t.badge})})]})})})},FL=()=>{const e=NL(),t=b.useNoKpiStrings(),r="/sites/mock-site/Lists/Directory Status Config",n=H.useCallback(()=>{const e=`${window.location.origin}${r}/AllItems.aspx`;window.open(e,"_blank")},[r]);return v.jsxs(w.Card,{className:e.noKpiCardContainer,children:[v.jsx("div",{className:e.noKpiBackgroundOrb1}),v.jsx("div",{className:e.noKpiBackgroundOrb2}),v.jsxs(Ct,{alignItems:"center",justifyContent:"center",gap:"s",children:[v.jsxs("div",{className:e.noKpiIconContainer,children:[v.jsx(E.DataBarVerticalStarRegular,{className:e.noKpiIcon}),v.jsx(E.SparkleRegular,{className:e.noKpiSparkle1}),v.jsx(E.SparkleRegular,{className:e.noKpiSparkle2})]}),v.jsx(w.Text,{className:e.noKpiTitle,children:t.title}),v.jsx("div",{className:e.noKpiDecorativeLine}),v.jsxs(w.Text,{className:e.noKpiSubtitle,children:[t.subtitle.split("{highlight}")[0],v.jsx("span",{className:e.noKpiHighlight,children:t.highlightText}),t.subtitle.split("{highlight}")[1]]}),v.jsx("div",{className:e.noKpiButtonContainer,children:v.jsx(w.Button,{appearance:"outline",icon:v.jsx(E.SettingsRegular,{}),className:e.noKpiButton,onClick:n,children:t.configureButton})})]})]})},RL=e=>{var t;const{dataCard:r}=e,n=NL(),i=b.useKpiStrings(),[o,a]=H.useState(!1),s=H.useCallback(()=>{a(!1)},[]),l=H.useMemo(()=>r.goalMetric===DL.LOWER_IS_BETTER?r.currentValue<=r.goal:r.currentValue>=r.goal,[r.currentValue,r.goal,r.goalMetric]),c=H.useMemo(()=>l?"success":"error",[l]),u=H.useMemo(()=>l?w.tokens.colorPaletteLightGreenForeground2:w.tokens.colorPaletteRedForeground2,[l]);return v.jsx(v.Fragment,{children:v.jsxs(w.Card,{className:n.card,style:{height:"168px"},onMouseLeave:s,children:[v.jsx("div",{className:l?n.glowBlobSuccess:n.glowBlobError}),v.jsxs(Ct,{gap:"0px",padding:"m",children:[v.jsx(w.CardHeader,{header:v.jsxs(Ct,{direction:"vertical",gap:"2px",children:[v.jsx(Ct,{direction:"horizontal",alignItems:"center",gap:"8px",children:v.jsx(w.InfoLabel,{infoButton:{popover:{open:o,onOpenChange:(e,t)=>a(t.open)}},info:v.jsx(v.Fragment,{children:v.jsx(w.Text,{size:300,color:"neutralSecondary",children:r.description||i.noDescription})}),children:v.jsx(w.Text,{weight:"bold",size:300,children:(null==(t=r.title)?void 0:t.toUpperCase())||i.defaultTitle})})}),v.jsx(w.Text,{size:200,style:{color:w.tokens.colorNeutralForeground3,fontStyle:"italic"},children:r.goalMetric===DL.LOWER_IS_BETTER?i.lowerIsBetter:i.higherIsBetter})]}),action:v.jsx(w.Tooltip,{content:l?`✓ ${i.withinGoalThreshold}`:`⚠ ${i.exceedsGoalThreshold}`,relationship:"inaccessible",children:v.jsx(w.Badge,{className:n.headerActionBadge,appearance:"ghost",size:"small",icon:l?v.jsx(E.CheckmarkCircleRegular,{style:{color:u,fontSize:"22px"}}):v.jsx(E.AlertFilled,{style:{color:u,fontSize:"22px"}})})})}),v.jsxs(Ct,{gap:"s",direction:"horizontal",alignItems:"baseline",children:[v.jsxs(w.Text,{weight:"bold",size:900,children:[r.currentValue," ",v.jsx("br",{})]}),v.jsxs(w.Text,{weight:"semibold",size:300,color:"neutralSecondary",children:["/ ",r.goal," ",i.goal]})]}),v.jsxs(Ct,{gap:"s",children:[v.jsxs(Ct,{direction:"horizontal",justifyContent:"space-between",children:[v.jsx(w.Text,{size:300,color:"neutralSecondary",children:i.progressGoal}),v.jsxs(w.Text,{size:300,color:"neutralSecondary",weight:"bold",children:[(r.currentValue/r.goal*100).toFixed(2),"%"]})]}),v.jsx(w.ProgressBar,{value:r.currentValue/r.goal,color:c,style:{height:"3px"},shape:"rounded"})]})]})]})})},$L=[{identifier:"kpi-1",title:"Sales Revenue",currentValue:125,goal:150,totalItems:200,description:"This is a comprehensive description of the Total Sales Revenue KPI for Q1. This metric tracks all revenue generated from product sales, service contracts, and recurring subscriptions across all business units and geographic regions. The goal is set based on historical performance, market conditions, and strategic growth objectives. Performance is evaluated weekly with detailed breakdowns by product category, sales team, and customer segment. This KPI is critical for quarterly business reviews and investor reporting.",goalMetric:2},{identifier:"kpi-2",title:"Customer Satisfaction",currentValue:87,goal:90,totalItems:100,description:"Customer satisfaction score",goalMetric:1},{identifier:"kpi-3",title:"Tasks Completed",currentValue:42,goal:50,totalItems:60,description:"Number of tasks completed this month",goalMetric:2},{identifier:"kpi-4",title:"New Customers",currentValue:156,goal:200,totalItems:250,description:"New customer acquisitions this quarter",goalMetric:1},{identifier:"kpi-5",title:"Response Time",currentValue:2.5,goal:2,totalItems:5,description:"Average response time in hours",goalMetric:2},{identifier:"kpi-6",title:"Employee Engagement",currentValue:78,goal:85,totalItems:100,description:"Employee engagement score percentage",goalMetric:1}];exports.AIAssistant=e=>{const{instrutions:t,timezone:r,locale:n,onResponse:i,openAIConfig:o,theme:a,placeholder:s,context:l}=e,[c,u]=H.useReducer(cu,{messages:[],inputText:"",isLoading:!0,error:void 0,isRunning:!1}),{messages:h,inputText:d,isLoading:p,error:g,isRunning:f}=c,m=H.useRef([]),y=H.useRef(null),x={container:T.css({display:"flex",flexDirection:"column",padding:"10px",width:"100%",height:"600px",borderRadius:"8px",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.1)",overflowY:"auto",overflowX:"hidden",position:"relative",zIndex:1e3}),chatList:T.css({display:"flex",flexDirection:"column",gap:"10px",paddingRight:"30px",width:"100%","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:w.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:w.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:w.tokens.colorNeutralStroke2}}),chatAIAssistantRoot:T.css({padding:"10px",display:"flex",flexDirection:"column",position:"relative",height:"calc(100% - 20px)"}),inputContainer:T.css({display:"flex",flexDirection:"row",flex:1,marginTop:"10px",gap:"10px",alignItems:"center"}),input:T.css({width:"100%",fontSize:"14px"}),aiAssistantContainer:T.css({display:"flex",flexDirection:"column",height:"100%",width:"100%",boxSizing:"border-box"}),aiAssistantInputContainer:T.css({flex:"0 0 auto",padding:"16px",paddingBottom:"20px",borderTop:`1px solid ${w.tokens.colorNeutralStroke2}`,backgroundColor:w.tokens.colorNeutralBackground1,boxSizing:"border-box"})},C=b.useAIAssistantStrings(),{error:k}=Q(),{sendMessage:S,cancelRequest:_}=re({endpoint:null==o?void 0:o.endpoint,mcpServers:null==o?void 0:o.mcpServers,requestHeaders:null==o?void 0:o.requestHeaders}),A=H.useCallback(()=>{y.current&&(y.current.scrollTop=y.current.scrollHeight-y.current.clientHeight)},[]);H.useEffect(()=>{const e=setTimeout(()=>{A()},100);return()=>clearTimeout(e)},[h,A]),H.useEffect(()=>{var e,t;const n={message:"Welcome to AI Assistant! How can I help you today?",senderName:"Assistant",timeStamp:gu(r,(null==(t=null==(e=null==l?void 0:l.pageContext)?void 0:e.cultureInfo)?void 0:t.currentUICultureName)||"en-US"),status:"received"};u({type:"INIT",welcomeMessage:n})},[]);const E=H.useCallback(async()=>{var e,a,s,c;if(!d.trim())return;const h={message:d,senderName:"User",timeStamp:gu(r,(null==(a=null==(e=null==l?void 0:l.pageContext)?void 0:e.cultureInfo)?void 0:a.currentUICultureName)||"en-US"),status:"received"},p=d;u({type:"ADD_USER_MESSAGE",message:h}),u({type:"CLEAR_INPUT"}),u({type:"SET_IS_RUNNING"});const g={message:v.jsx(lu,{}),senderName:"Assistant",timeStamp:gu(r,(null==(c=null==(s=null==l?void 0:l.pageContext)?void 0:s.cultureInfo)?void 0:c.currentUICultureName)||"en-US"),status:"sending"};u({type:"ADD_ASSISTANT_MESSAGE",message:g});try{const e=await S({instructions:t,input:p,timezone:r,locale:n,history:m.current,mcpServers:null==o?void 0:o.mcpServers});if(i){const t=await i(e),{message:r,status:n}=t;u({type:"UPDATE_LAST_ASSISTANT_MESSAGE",message:{...g,message:r||e,status:n||"received"}})}else u({type:"UPDATE_LAST_ASSISTANT_MESSAGE",message:{...g,message:e,status:"received"}});u({type:"SET_IS_RUNNING"}),m.current.push(p),m.current.push(e)}catch(f){k("Error during streaming:",f instanceof Error?f:void 0);let e="Error occurred while processing your request.";f instanceof Error&&(e=f.message.includes("Rate limit")||f.message.includes("429")?"Rate limit exceeded. Please wait a moment before sending another message.":f.message.includes("quota")?"API quota exceeded. Please try again later.":f.message.includes("abort")?"Request was cancelled.":f.message),u({type:"UPDATE_LAST_ASSISTANT_MESSAGE",message:{...g,message:e,status:"failed"}}),u({type:"SET_IS_RUNNING"})}},[d,t,n,i,o,r,S,A,l]),P=H.useCallback(e=>{u({type:"SET_INPUT",inputText:e})},[]);return p?v.jsx(w.Spinner,{size:"medium"}):g?v.jsx(Ai,{message:C.processingError,messageType:Y.INFO}):v.jsxs("div",{className:x.aiAssistantContainer,children:[v.jsx(pu,{ref:y,messages:h,context:l}),v.jsx("div",{className:x.aiAssistantInputContainer,children:v.jsx(su,{context:l,value:d,onChange:P,placeholder:s,onSend:E,onAbort:_,theme:a,isRunning:f})})]})},exports.AISearchControl=({systemPromptTemplate:e,azureOpenAIConfig:t,placeholder:r,onSearchQueryGenerated:n,onSearchStart:i,onSearchError:o,disabled:a=!1,className:s,width:l})=>{const{error:c}=Q(),u=b.useAISearchControlStrings(),h=r||u.placeholder,{generateText:d,isConfigured:p}={generateText:async(e,t)=>"Azure OpenAI not configured - please provide configuration",isConfigured:!1},[g,f]=x.useState(!1),[m,y]=x.useState(""),v=x.useRef(null),{searchBoxStyles:C,iconWrapperStyles:k}={searchBoxStyles:li`
|
|
185
|
+
border: 1px solid ${w.tokens.colorNeutralStroke2};
|
|
186
|
+
border-radius: 50px; /* Fully circular/pill shape */
|
|
187
|
+
background-color: ${w.tokens.colorNeutralBackground1};
|
|
188
|
+
padding: 5px 10px;
|
|
189
|
+
box-shadow: none;
|
|
190
|
+
transition: all 0.2s ease;
|
|
191
|
+
position: relative;
|
|
192
|
+
|
|
193
|
+
/* Remove default FluentUI focus styling */
|
|
194
|
+
&::after {
|
|
195
|
+
display: none !important;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&:hover {
|
|
199
|
+
border-color: ${w.tokens.colorBrandStroke1};
|
|
200
|
+
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&:focus-within {
|
|
204
|
+
outline: none;
|
|
205
|
+
border-color: ${w.tokens.colorBrandStroke1};
|
|
206
|
+
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&:disabled {
|
|
210
|
+
opacity: 0.6;
|
|
211
|
+
cursor: not-allowed;
|
|
212
|
+
border-color: ${w.tokens.colorNeutralStroke3};
|
|
213
|
+
background-color: ${w.tokens.colorNeutralBackground3};
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* Style the input directly */
|
|
217
|
+
input {
|
|
218
|
+
border: none !important;
|
|
219
|
+
outline: none !important;
|
|
220
|
+
background: transparent !important;
|
|
221
|
+
font-size: ${w.tokens.fontSizeBase300};
|
|
222
|
+
color: ${w.tokens.colorNeutralForeground1};
|
|
223
|
+
box-shadow: none !important;
|
|
224
|
+
|
|
225
|
+
&::placeholder {
|
|
226
|
+
color: ${w.tokens.colorNeutralForeground3};
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
&:focus {
|
|
230
|
+
border: none !important;
|
|
231
|
+
outline: none !important;
|
|
232
|
+
box-shadow: none !important;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/* Remove any internal focus indicators */
|
|
237
|
+
* {
|
|
238
|
+
&:focus {
|
|
239
|
+
outline: none !important;
|
|
240
|
+
box-shadow: none !important;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
`,iconWrapperStyles:li`
|
|
244
|
+
display: flex;
|
|
245
|
+
align-items: center;
|
|
246
|
+
padding: 2px;
|
|
247
|
+
margin-right: 8px;
|
|
248
|
+
`},S=x.useCallback(async e=>{if(e.trim()){const t=u.notConfiguredError;return void(null==o||o(t,e.trim()))}},[d,e,n,i,o,c,p]),_=x.useCallback((e,t)=>{y(t.value)},[]),T=x.useCallback(()=>{var e;y(""),null==(e=v.current)||e.blur(),null==n||n("","")},[n]),A=x.useCallback(e=>{var t;"Enter"===e.key&&!g&&m.trim()?S(m).catch(e=>{c("Error in handleAISearch:",e)}):"Escape"===e.key&&(null==(t=v.current)||t.blur(),y(""),null==n||n("",""))},[S,g,m,n]);return oi(w.SearchBox,{ref:v,css:C,className:s,style:{width:l},placeholder:h,value:m,onChange:_,onKeyDown:A,disabled:a||g,contentBefore:oi("span",{css:k,children:oi(tu,{size:20})}),dismiss:{onClick:T}})},exports.AISearchIcon=tu,exports.AISearchIconExample=()=>{const e=ru();return v.jsxs("div",{className:e.container,children:[v.jsx("h2",{children:"AI Search Icon Examples"}),v.jsxs("div",{className:e.section,children:[v.jsx("h3",{children:"Standard AI Search Icon"}),v.jsxs("div",{className:e.iconRow,children:[v.jsx("span",{className:e.label,children:"Small (16px):"}),v.jsx(tu,{size:16})]}),v.jsxs("div",{className:e.iconRow,children:[v.jsx("span",{className:e.label,children:"Medium (20px):"}),v.jsx(tu,{size:20})]}),v.jsxs("div",{className:e.iconRow,children:[v.jsx("span",{className:e.label,children:"Large (24px):"}),v.jsx(tu,{size:24})]}),v.jsxs("div",{className:e.iconRow,children:[v.jsx("span",{className:e.label,children:"Extra Large (32px):"}),v.jsx(tu,{size:32})]}),v.jsxs("div",{className:e.iconRow,children:[v.jsx("span",{className:e.label,children:"Custom Colors:"}),v.jsx(tu,{size:24,color:w.tokens.colorPaletteBlueForeground2,aiIndicatorColor:w.tokens.colorPaletteGreenForeground2})]})]}),v.jsxs("div",{className:e.section,children:[v.jsx("h3",{children:"Usage in Buttons"}),v.jsxs("div",{className:e.iconRow,children:[v.jsx("span",{className:e.label,children:"Primary Button:"}),v.jsx(w.Button,{appearance:"primary",icon:v.jsx(tu,{size:16}),children:"AI Search"})]}),v.jsxs("div",{className:e.iconRow,children:[v.jsx("span",{className:e.label,children:"Secondary Button:"}),v.jsx(w.Button,{appearance:"secondary",icon:v.jsx(tu,{size:16}),children:"Smart Search"})]}),v.jsxs("div",{className:e.iconRow,children:[v.jsx("span",{className:e.label,children:"Icon Only Button:"}),v.jsx(w.Button,{appearance:"subtle",icon:v.jsx(tu,{size:20}),title:"AI Search"})]})]}),v.jsxs("div",{className:e.section,children:[v.jsx("h3",{children:"Usage Example Code"}),v.jsx("pre",{className:e.codeBlock,children:"// Basic usage\nimport { AISearchIcon } from './AISearchIcon';\n\n// Standard icon with AI badge\n<AISearchIcon size={20} />\n\n// Icon with custom colors\n<AISearchIcon \n size={24} \n color={tokens.colorPaletteBlueForeground2}\n aiIndicatorColor={tokens.colorPaletteGreenForeground2}\n/>\n\n// In a button\n<Button \n appearance=\"primary\"\n icon={<AISearchIcon size={16} />}\n>\n AI Search\n</Button>"})]})]})},exports.AdaptiveCardHost=Jc,exports.AdaptiveCardHostThemeType=po,exports.AppDashboard=({cards:e,containerWidth:t,containerHeight:r="100%",maxSpanRows:n=4,enableDragAndDrop:i=!0,enableCache:o=!0,cacheKeyPrefix:a="app-dashboard",onCardsReorder:s,onCardResize:l})=>{const{warn:c}=Q(),u={dashboardContainer:T.css({display:"grid",padding:"20px",gap:"16px",backgroundColor:w.tokens.colorNeutralBackground2,gridTemplateColumns:"repeat(auto-fill, minmax(350px, 1fr))",gridAutoRows:"350px",overflowY:"auto",overflowX:"hidden","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:w.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:w.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:w.tokens.colorNeutralStroke2},justifyContent:"center",gridAutoFlow:"dense"}),cardBody:T.css({display:"flex",flexDirection:"column",height:"100%",minHeight:"320px"}),chartContainer:T.css({flex:1,width:"100%",minHeight:"280px"}),cardDescription:T.css({color:`${w.tokens.colorNeutralForeground2}`}),cardWrapper:T.css({position:"relative",height:"100%",minHeight:"300px",borderRadius:w.tokens.borderRadiusMedium,transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:`${w.tokens.shadow16}`},"&:active":{transform:"translateY(0)",boxShadow:`${w.tokens.shadow8}`}})},h=`${a}-layout-settings`,d=`${a}-card-order`,{getCachedData:p,setCachedData:g}=ee(),f=x.useCallback(e=>p(e),[p]),m=x.useCallback((e,t)=>g(e,t,43200),[g]),{getCachedData:y,setCachedData:b}=ee(),C=x.useCallback(e=>y(e),[y]),k=x.useCallback((e,t)=>b(e,t,43200),[b]),[S,_]=x.useState([]),[A,E]=x.useState({}),P=x.useRef(null),M=x.useRef(null),I=x.useRef(null);x.useEffect(()=>{(async()=>{try{let t=e;const r={};if(o){const[n,i]=await Promise.all([f(h),C(d)]);if(i&&i.length>0){const r=new Map(e.map(e=>[e.id,e])),n=i.filter(e=>r.has(e)),o=e.filter(e=>!i.includes(e.id));t=[...n.map(e=>r.get(e)),...o]}e.forEach(e=>{var t,i;const o=null==n?void 0:n[e.id];r[e.id]={spanCols:(null==o?void 0:o.spanCols)??(null==(t=e.defaultSpan)?void 0:t.spanCols)??1,spanRows:(null==o?void 0:o.spanRows)??(null==(i=e.defaultSpan)?void 0:i.spanRows)??1}})}else e.forEach(e=>{var t,n;r[e.id]={spanCols:(null==(t=e.defaultSpan)?void 0:t.spanCols)??1,spanRows:(null==(n=e.defaultSpan)?void 0:n.spanRows)??1}});_(t),E(r)}catch(t){c("Failed to load dashboard data from cache:",t),_(e);const r={};e.forEach(e=>{var t,n;r[e.id]={spanCols:(null==(t=e.defaultSpan)?void 0:t.spanCols)??1,spanRows:(null==(n=e.defaultSpan)?void 0:n.spanRows)??1}}),E(r)}})()},[e,o,h,d,f,C]),x.useEffect(()=>{if(!o||0===Object.keys(A).length)return;(async()=>{try{await m(h,A)}catch(e){c("Failed to save dashboard layout to cache:",e)}})()},[A,o,h,m]),x.useEffect(()=>{if(!o||0===S.length)return;(async()=>{try{const e=S.map(e=>e.id);await k(d,e)}catch(e){c("Failed to save dashboard order to cache:",e)}})()},[S,o,d,k]),x.useEffect(()=>{t<=600&&E(()=>{const e={};return S.forEach(t=>{e[t.id]={spanCols:1,spanRows:1}}),e})},[t,S]);const B=x.useMemo(()=>t>600,[t]),{minCardWidth:L,gridGap:j,containerPadding:N}=x.useMemo(()=>({minCardWidth:350,gridGap:16,containerPadding:20}),[]),D=t-2*N,O=x.useMemo(()=>Math.floor((D+j)/(L+j)),[D,j,L]),z=Math.max(O,1),F=x.useCallback(()=>{if(null!==P.current&&null!==M.current&&P.current!==M.current){const e=[...S],[t]=e.splice(P.current,1);e.splice(M.current,0,t),_(e),s&&s(e)}P.current=null,M.current=null},[S,s]),R=x.useCallback((e,t)=>{const r={spanCols:Math.min(Math.max(t.spanCols,1),z),spanRows:Math.min(Math.max(t.spanRows,1),n)};E(t=>({...t,[e]:r})),l&&l(e,r)},[z,n,l]),$=x.useMemo(()=>S.reduce((e,t)=>{var r,n;return e[t.id]={spanCols:Math.min((null==(r=t.defaultSpan)?void 0:r.spanCols)??1,O),spanRows:(null==(n=t.defaultSpan)?void 0:n.spanRows)??1},e},{}),[S,O]),V=x.useMemo(()=>S.map((e,t)=>{var o,a,s,l;const c=!1!==e.showZoom&&B,h=e.headerAction||(c?v.jsx(BL,{values:A[e.id]||$[e.id]||{spanCols:1,spanRows:1},maxCols:z,maxRows:n,IsOpen:!1,onChange:t=>R(e.id,t)}):void 0);return v.jsx("div",{className:u.cardWrapper,draggable:i,onDragStart:()=>i&&(P.current=t),onDragEnter:()=>i&&(M.current=t),onDragOver:e=>i&&e.preventDefault(),onDragEnd:i?F:void 0,style:{gridColumnEnd:(null==(o=A[e.id])?void 0:o.spanCols)?`span ${A[e.id].spanCols}`:`span ${(null==(a=$[e.id])?void 0:a.spanCols)||1}`,gridRowEnd:(null==(s=A[e.id])?void 0:s.spanRows)?`span ${A[e.id].spanRows}`:`span ${(null==(l=$[e.id])?void 0:l.spanRows)||1}`,cursor:i?"grab":"default"},children:v.jsxs(w.Card,{className:`${u.cardBody} ${e.className||""}`,children:[v.jsx(w.CardHeader,{header:v.jsxs(Ct,{gap:"0px",children:[v.jsx(w.Text,{weight:"semibold",size:400,children:e.cardTitle}),e.cardDescription&&v.jsx(w.Text,{className:u.cardDescription,size:200,children:e.cardDescription})]}),action:h}),v.jsx("div",{className:u.chartContainer,style:{height:r,...e.style},children:e.content})]})},e.id)}),[S,i,F,A,u.cardBody,u.cardDescription,u.chartContainer,u.cardWrapper,B,z,n,R,r,$]);return 0===S.length?v.jsx(IL,{}):v.jsx("div",{ref:I,className:u.dashboardContainer,style:{height:r},children:V})},exports.AspectRatio=({ratio:e,children:t,maxWidth:r,maxHeight:n,style:i={},...o})=>{const a={position:"relative",width:"100%",paddingTop:100/e+"%",maxWidth:r||"none",maxHeight:n||"none",...i};return v.jsx("div",{style:a,...o,children:v.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},children:t})})},exports.Breadcrumb=({items:e,maxWidth:t="100%",styles:r,theme:n,size:i="medium",currentIndex:o=e.length-1,className:a})=>{const{styles:s,getStyles:l}=It(),c=x.useRef(null),[u,h]=x.useState([]),[d,p]=x.useState([]);return x.useEffect(()=>{const t=()=>{if(!c.current)return;const t=c.current.offsetWidth;let r=0;const n=[],i=[];e.forEach(e=>{r+80<=t-50?(n.push(e),r+=80):i.push(e)}),h(n),p(i)},r=((e,t)=>{let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e(...n),t)}})(t,100),n=new _.ResizeObserver(()=>{r()});return c.current&&n.observe(c.current),t(),()=>{n.disconnect()}},[e]),v.jsx("div",{ref:c,className:w.mergeClasses(s.container,a),style:{maxWidth:t,...r},children:v.jsxs(mt,{horizontal:!0,verticalAlign:"center",horizontalAlign:"start",children:[u.map((e,t)=>v.jsxs(x.Fragment,{children:[t===o?v.jsxs(mt,{horizontal:!0,verticalAlign:"center",horizontalAlign:"start",columnGap:5,styles:{overflow:"hidden"},children:[e.icon?x.cloneElement(e.icon,{style:{fontSize:"large"===i?"20px":"medium"===i?"16px":"12px"}}):null,v.jsx(w.Text,{className:w.mergeClasses(s.breadcrumbItem,l(e,i),l(e,"current")),"aria-current":"page",children:e.label},e.label)]}):v.jsx(w.Button,{icon:e.icon?e.icon:null,appearance:"transparent",className:`${s.breadcrumbItem}`,onClick:e.onClick,children:v.jsx(w.Text,{className:l(e,i),children:e.label})},e.label),t<u.length-1&&v.jsx(E.ChevronRightRegular,{style:{fontSize:"large"===i?"20px":"medium"===i?"16px":"12px"}})]},e.label??`breadcrumb-${t}`)),d.length>0&&v.jsx(Bt,{items:d,theme:n})]})})},exports.ButtonMenu=Mt,exports.CalendarControl=({events:e,height:t=800,theme:r,onDayChange:n,onMonthChange:i,onWeekChange:o,onViewChange:a,onDaySlotClick:s,defaultView:l,strings:c})=>{const{styles:u}=Rt(),h=x.useRef(null),[d,p]=x.useState(null),g=x.useRef(0),[f,m]=x.useState(new Date),[y,b]=x.useState(l??ir.Month),{getMonthCalendar:C}=er(Intl.DateTimeFormat().resolvedOptions().timeZone),S=H.useCallback(e=>{const t=e.getMonth(),r=k.startOfMonth(e),n=k.startOfWeek(r);return Array.from({length:42},(e,r)=>{const i=k.addDays(n,r);return{day:i.getDate(),currentMonth:i.getMonth()===t,date:i}})},[42]),T=H.useCallback(e=>{i&&i(e),m(e)},[i]),A=H.useCallback(e=>{n&&n(e),m(e)},[n]),E=H.useCallback(e=>{o&&o(e),m(e)},[o]),P=H.useCallback(e=>{a&&a(e),b(e)},[a]),M=H.useCallback(t=>{var r;const{date:n}=t;return(null==(r=C(e,f.getFullYear(),f.getMonth())[k.format(n,"yyyy-MM-dd")])?void 0:r.flatMap(e=>e))||[]},[f,e]),I=H.useCallback(()=>{h.current&&requestAnimationFrame(()=>{if(h.current){const e=h.current.querySelector(`.${u.calendarWrapper} > div:nth-child(8)`);e&&(p(e.offsetHeight),g.current=e.offsetHeight)}})},[u.calendarWrapper]);x.useEffect(()=>{const e=new _.ResizeObserver(I);return h.current&&e.observe(h.current),I(),window.addEventListener("resize",I),()=>{e.disconnect(),window.removeEventListener("resize",I)}},[I,y]),x.useEffect(()=>{b(l||ir.Month)},[l]);const B=H.useCallback(()=>{switch(y){case ir.Month:return v.jsx(xr,{events:e,currentDate:f,rowHeight:d,getCalendarDays:S,getEventsForDay:M,styles:u,onDaySlotClick:s,height:t,calendarRef:h,strings:null==c?void 0:c.calendarControl});case ir.Week:return v.jsx(Cr,{events:e,currentDay:f,height:t,strings:null==c?void 0:c.weekView});case ir.Day:return v.jsx(wr,{events:e,currentDay:f,height:t,strings:null==c?void 0:c.dayView});default:return v.jsx(xr,{events:e,currentDate:f,rowHeight:d,getCalendarDays:S,getEventsForDay:M,styles:u,onDaySlotClick:s,height:t,calendarRef:h,strings:null==c?void 0:c.calendarControl})}},[y,e,f,d,S,M,u,s,t]),L=v.jsxs(mt,{height:"100%",verticalAlign:"start",children:[v.jsx(mr,{selectedView:y,onSelectedView:P,currentDate:f,setCurrentDate:m,onWeekChange:E,onMonthChange:T,onDayChange:A,strings:null==c?void 0:c.toolbar}),v.jsx(B,{})]});return v.jsx(w.IdPrefixProvider,{value:"calendarControl-",children:r?v.jsx(w.FluentProvider,{theme:r,applyStylesToPortals:!0,style:{width:"100%"},children:L}):v.jsx("div",{style:{width:"100%"},children:L})})},exports.CalendarMonth=cr,exports.Card=ut,exports.Carousel=e=>{const{className:t,items:r,title:n}=e,i=H.useRef(null),[o,a]=H.useState(0),[s,l]=H.useState(0),{carouselStyles:c}=(e=>{const{styles:t}=e,{getBaseStyles:r}=oe();return{carouselStyles:H.useCallback((n,i)=>({...r(e,n,i),...t}),[r,e,t])}})(e),[u,h]=A(),d={titleStyles:T.css({display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:"1",WebkitBoxOrient:"vertical",textAlign:"start",height:"25px"})},{enableControls:p,embla__slide:g,embla__container:f,embla__viewport:m,embla__buttons:y}=((e,t)=>{const{getCurrentDevice:r}=oe(),n=H.useCallback(()=>{let e="95%";switch(r(t)){case"Medium":e="45%";break;case"Large":e="calc(95% / 4)";break;case"ExtraLarge":e="calc(95% / 5)";break;case"ExtraExtraLarge":e="calc(95% / 6)";break;default:e="95%"}return e},[t,r]),i=H.useCallback(()=>{const e=r(t);let n=w.tokens.spacingVerticalM;switch(e){case"Medium":default:n=w.tokens.spacingVerticalM;break;case"Large":n=w.tokens.spacingVerticalL;break;case"ExtraLarge":n=w.tokens.spacingVerticalXL}return n},[t,r]);return{enableControls:T.css({display:"flex",justifyContent:"space-between",alignItems:"stretch",gap:10,padding:5}),embla__viewport:T.css({overflow:"hidden",paddingTop:"10px",paddingBottom:"20px"}),embla__container:T.css({backfaceVisibility:"hidden",display:"flex",touchAction:"pan-y"}),embla:T.css({".embla":{}}),embla__slide:T.css({minWidth:0,flex:`0 0 ${n()}`,paddingLeft:`${i()}`}),embla__buttons:T.css({display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:0,alignItems:"center"})}})(0,o),{prevBtnDisabled:b,nextBtnDisabled:C,onPrevButtonClick:k,onNextButtonClick:S}=(e=>{const[t,r]=x.useState(!0),[n,i]=x.useState(!0),o=x.useCallback(()=>{e&&e.scrollPrev()},[e]),a=x.useCallback(()=>{e&&e.scrollNext()},[e]),s=x.useCallback(e=>{r(!e.canScrollPrev()),i(!e.canScrollNext())},[]);return x.useEffect(()=>{e&&(s(e),e.on("reInit",s),e.on("select",s))},[e,s]),{prevBtnDisabled:t,nextBtnDisabled:n,onPrevButtonClick:o,onNextButtonClick:a}})(h);return H.useEffect(()=>{let e;return i.current&&(e=new _.ResizeObserver(e=>{for(const t of e){const{width:e,height:r}=t.contentRect;a(e),l(r)}}),a(i.current.clientWidth),l(i.current.clientHeight),e.observe(i.current)),()=>{e&&e.disconnect()}},[]),v.jsx(v.Fragment,{children:v.jsxs("div",{id:"-carousel",className:w.mergeClasses(t,"embla"),style:{...c(o,s)},ref:i,children:[v.jsxs("div",{className:p,children:[v.jsx(w.Subtitle2,{className:d.titleStyles,children:n}),v.jsxs("div",{className:y,children:[v.jsx(w.Button,{onClick:k,disabled:b,appearance:"subtle",icon:v.jsx(E.ChevronLeftRegular,{})}),v.jsx(w.Button,{onClick:S,disabled:C,appearance:"subtle",icon:v.jsx(E.ChevronRightRegular,{})})]})]}),v.jsx("div",{className:m,ref:u,children:v.jsx("div",{className:f,children:r.map((e,t)=>v.jsx("div",{className:g,children:e},t))})})]})})},exports.Center=bt,exports.ChatInput=nu,exports.ChatInputWithMensions=su,exports.ChatInputWithMensionsV1=({context:e,onChange:t,value:r,placeholder:n,onSend:i,theme:o,isRunning:a,onAbort:s})=>{const[l,c]=x.useState(r||""),[u,h]=x.useState(!1),d=x.useRef(null),p=b.useAIAssistantStrings(),[g,f]=x.useState({top:0,left:0}),[m,y]=x.useState([]),C=x.useRef({}),k=au(),{warn:S,error:_}=Q();x.useEffect(()=>{var e;null==(e=d.current)||e.focus(),c(r||"")},[r]);const T=x.useCallback(at(async t=>{const r=await(async t=>{var r,n;if(C.current[t])return C.current[t];if(!(null==e?void 0:e.graphClient))return S("Graph client not available"),[];try{const i=t&&t.length>0?`/users?$filter=startswith(displayName,'${t}')`:"/users?$orderby=displayName&$top=10",o=await e.graphClient.get(i),a=(null==o?void 0:o.value)||[],s=(null==(n=null==(r=e.pageContext)?void 0:r.web)?void 0:n.absoluteUrl)||"";return a.forEach(e=>{e.avatar=s?`${s}/_layouts/15/userphoto.aspx?size=S&accountname=${e.mail}`:`https://graph.microsoft.com/v1.0/users/${e.id}/photo/$value`}),C.current[t]=a,a}catch(i){return _("Error fetching users from Graph:",i instanceof Error?i:void 0),[]}})(t);r.sort((e,t)=>e.displayName.localeCompare(t.displayName)),y(r),h(!0),setTimeout(()=>{var e;null==(e=d.current)||e.focus()},0)},300),[e]),A=e=>{var r;const n=l.replace(/@(\w*)$/,`@${e} `);c(n),t&&t(n),h(!1),y([]),null==(r=d.current)||r.focus()},E=x.useCallback(({users:e})=>v.jsxs("div",{className:k.listContainer,children:[0===e.length&&v.jsx(w.Caption1,{children:p.noUsersFound}),e.map(e=>v.jsx(w.Card,{size:"small",appearance:"subtle",onMouseDown:e=>e.preventDefault(),onClick:()=>A(e.mail),children:v.jsx(w.Persona,{name:e.displayName,role:"gridcell",secondaryText:e.mail,avatar:{image:{src:e.avatar}}})},e.id))]}),[k.listContainer,A]);return v.jsxs(mt,{horizontal:!0,width:"100%",className:k.inputContainer,children:[v.jsx(nu,{ref:d,onSend:i,value:l,onChange:async e=>{var r;c(e),t&&t(e),null==(r=d.current)||r.focus();const n=e.lastIndexOf("@");if(-1===n||0!==n&&" "!==e[n-1])h(!1);else{const t=e.slice(n+1);await T(t);const r=d.current;if(r){const e=R(r,n),t=r.getBoundingClientRect(),i=t.top+e.top+22,o=t.left+e.left+16;f({top:i,left:o})}}},theme:o,placeholder:n,isRunning:a,onAbort:s}),v.jsxs(wt,{theme:o,anchorPoint:g,isOpen:u,onClose:()=>h(!1),excludeRefs:[d],children:[v.jsx(w.CardHeader,{header:v.jsx(w.Body1Strong,{className:k.sugestionsHeader,children:"Sugestions"})}),v.jsx(w.Divider,{}),v.jsx(E,{users:m})]})]})},exports.ChatList=pu,exports.Color=Ou,exports.Color$1=xf,exports.Container=e=>{const{className:t,children:r,style:n,alignItems:i="center",justifyContent:o="center",flexDirection:a="row",centerContent:s=!0}=e,l=H.useRef(null),[c,u]=H.useState(0),[h,d]=H.useState(0),{containerStyles:p}=(e=>{const{maxWidth:t}=e,{getBaseStyles:r}=oe();return{containerStyles:H.useCallback((n,i)=>n&&i?{...r(e,n,i),maxWidth:t}:{},[r,t,e])}})(e),g=H.useMemo(()=>S.debounce(e=>{for(const t of e){const{width:e,height:r}=t.contentRect;u(e),d(r)}},200),[]);H.useEffect(()=>{const e=new _.ResizeObserver(e=>{g(e)});return l.current&&e.observe(l.current),()=>{e.disconnect(),g.cancel()}},[g]);const f=H.useMemo(()=>{if(!n)return;const{padding:e,margin:t,...r}=n;return r},[n]);return v.jsx("div",{id:"container",className:t,style:{...p(c,h),display:"flex",justifyContent:o,alignItems:i,flexDirection:a,...f},ref:l,children:s?v.jsx(bt,{children:r}):r})},exports.ContentRenderer=du,exports.ContentType=st,exports.CustomControlBar=({items:e,selectedItemId:t,onSelectedItem:r,renderControl:n,theme:i})=>{const o={container:T.css({display:"flex",flexWrap:"nowrap",minWidth:0,overflow:"hidden",gap:10,marginBottom:20,width:"100%"}),text1LineStyle:T.css({display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",textAlign:"start",textOverflow:"ellipsis",wordBreak:"break-word"}),button:T.css({cursor:"pointer",minWidth:107})},a=H.useCallback(e=>{r&&r(e)},[r]);return v.jsx(w.Overflow,{children:v.jsxs(w.FluentProvider,{theme:i,children:[" ",v.jsxs("div",{className:w.mergeClasses(o.container),children:[e.map(e=>{const r=e.id===t;return v.jsx(w.OverflowItem,{id:e.id,priority:r?2:1,children:n(e,r,()=>a(e.id))},e.id)}),v.jsx(Pi,{items:e,onSelectedItem:a,theme:i})," "]})]})})},exports.DataGrid=e=>{const{items:t,columns:r,defaultSelectedItems:n=[],enableSorting:i=!1,selectionMode:o="none",onSelectionChange:a,onSortChange:s,defaultSortState:l,columnSizingOptions:c,enableResizing:u=!1,noItemsMessage:h,isLoadingData:d,isLoadingDataMessage:p,dataGridBodyClassName:g,dataGridBodyStyles:f,refreshData:m}=e,y=e=>t.findIndex(t=>t===e),[b,x]=H.useState(new Set(n.map(e=>y(e)))),C=H.useRef(null),{styles:k}=vi();H.useEffect(()=>{n.length>0&&x(new Set(n.map(e=>y(e))))},[n,t]),H.useEffect(()=>{m&&x(new Set)},[m]);const S=r.map(e=>w.createTableColumn({columnId:e.column,renderHeaderCell:()=>v.jsx(w.Body1Strong,{children:e.header}),renderCell:t=>v.jsx(w.TableCellLayout,{media:e.media?e.media(t):void 0,className:null==e?void 0:e.className,style:null==e?void 0:e.style,children:e.onRender?e.onRender(t):String(t[null==e?void 0:e.column]??"")}),compare:e.order})),_=H.useCallback((e,t)=>{e.stopPropagation(),"row"===o&&a&&a([t])},[o,a]),T=H.useMemo(()=>"row"===o?k.rowSelection:"",[o,k.rowSelection]),A=H.useCallback(()=>v.jsx(w.DataGridBody,{style:f??{},className:g??"",children:({item:e,rowId:t})=>v.jsx(w.DataGridRow,{className:T,onClick:t=>_(t,e),children:({renderCell:t})=>v.jsx(w.DataGridCell,{children:t(e)})},t)}),[_,T,f,g]),E=H.useMemo(()=>t.length&&!d,[t,d]),P=H.useCallback(()=>d?v.jsx(v.Fragment,{children:p??v.jsx(bi,{direction:"vertical",gap:"s",justifyContent:"center",alignItems:"center",style:{height:"100%",minHeight:200,width:"100%"},children:v.jsx(w.Spinner,{})})}):E?v.jsx(A,{}):d||t.length?v.jsx(v.Fragment,{}):v.jsx("div",{children:h}),[E,d,t,h]);return v.jsx("div",{ref:C,children:v.jsxs(w.DataGrid,{as:"div",items:t,onSelectionChange:(e,r)=>{const n=new Set;if(r.selectedItems.forEach(e=>{const t=Number(e);isNaN(t)||n.add(t)}),x(n),a){const e=Array.from(n).map(e=>t[e]);a(e)}},sortable:i,columns:S,selectionMode:"none"===o||"row"===o?void 0:"multiple"===o?"multiselect":"single"===o?"single":void 0,selectedItems:b,defaultSortState:l,onSortChange:(e,t)=>{s&&s(t)},columnSizingOptions:c,resizableColumns:u,resizableColumnsOptions:{autoFitColumns:!1},children:[v.jsx(w.DataGridHeader,{children:v.jsx(w.DataGridRow,{children:({renderHeaderCell:e})=>v.jsx(w.DataGridHeaderCell,{children:e()})})}),v.jsx(P,{})]})})},exports.DataGridV2=Ci,exports.DropdownField=({options:e,onChange:t,renderItem:r,validate:n,label:i,placeholder:o,message:a,messageType:s,required:l,size:c,hint:u})=>{const[h,d]=x.useState(""),[p,g]=x.useState(""),[f,m]=x.useState(""),y={tagPickerControl:T.css({border:`1px solid ${w.tokens.colorNeutralStroke2} !important`,borderRadius:"50px !important",backgroundColor:`${w.tokens.colorNeutralBackground1} !important`,padding:"0px 10px",boxShadow:"none",transition:"all 0.2s ease !important","&::after":{display:"none !important"},"&:hover":{borderColor:`${w.tokens.colorBrandStroke1} !important`},"&:focus-within":{borderColor:`${w.tokens.colorBrandStroke1} !important`,boxShadow:`0 0 0 2px ${w.tokens.colorBrandBackground2} !important`}})},b=H.useMemo(()=>f?"error":"warning"===s?"warning":"info"===s?"success":"none",[f,s]),C=H.useMemo(()=>f||a,[f,a]),k=H.useCallback(()=>{switch(b){case"error":return v.jsx(E.ErrorCircle12Filled,{});case"warning":return v.jsx(E.Warning12Filled,{});case"success":return v.jsx(E.CheckmarkCircle12Filled,{});default:return null}},[b]);return v.jsx(w.Field,{label:i,required:l,validationMessage:C,validationMessageIcon:k(),size:c,hint:u,validationState:b,children:v.jsx(w.Dropdown,{placeholder:o,onOptionSelect:(e,r)=>{const i=r.optionValue||"",o=r.optionText||"";d(i),g(o);const a=n?n(i):"";m(a),!a&&t&&t(i)},value:p,selectedOptions:h?[h]:[],className:y.tagPickerControl,children:e.map(e=>v.jsxs(w.Option,{value:e.value,disabled:e.disabled,checkIcon:e.checkIcon,as:e.as,text:e.text||"",children:[r&&r(e)," "]},e.value))})})},exports.EBreakPoints=J,exports.ECalendarViews=ir,exports.EGoalMetric=DL,exports.EMessageType=Y,exports.FluentUIProvider=e=>{const t=(()=>{const e=H.useRef("");return e.current||(e.current="fui-"+Math.random().toString(36).slice(2,9)),e.current})(),{theme:r=w.webLightTheme,applicationName:n=t,targetDocument:i=document,applyStylesToPortals:o=!0,className:a,styles:s,children:l}=e;return v.jsx(w.IdPrefixProvider,{value:n,children:v.jsx(w.FluentProvider,{theme:r,applyStylesToPortals:o,targetDocument:i,className:a,style:s,children:l})})},exports.GenericOverFlowMenu=({items:e,renderItem:t,keyExtractor:r})=>{const{ref:n,overflowCount:i,isOverflowing:o}=w.useOverflowMenu();return o?v.jsxs(w.Menu,{children:[v.jsx(w.MenuTrigger,{disableButtonEnhancement:!0,children:v.jsxs(w.MenuButton,{ref:n,children:["+",i," items"]})}),v.jsx(w.MenuPopover,{children:v.jsx(w.MenuList,{children:e.map(e=>v.jsx(Mi,{id:r(e),children:t(e)},r(e)))})})]}):null},exports.Grid=e=>{const{children:t,className:r}=e,{gridStyles:n}=ht(e),i=H.useRef(null),[o,a]=H.useState(0),[s,l]=H.useState(0);return H.useEffect(()=>{let e;return i.current&&(e=new _.ResizeObserver(e=>{for(const t of e){const{width:e,height:r}=t.contentRect;a(e),l(r)}}),e.observe(i.current)),()=>{e&&e.disconnect()}},[]),v.jsx(v.Fragment,{children:v.jsx("div",{className:r,style:n(o,s),ref:i,children:t})})},exports.IconButton=Lt,exports.InputField=({value:e,type:t="text",shape:r="normal",onChange:n,validate:i,label:o,placeholder:a,message:s,messageType:l,required:c,size:u,hint:h,disabled:d,readOnly:p,min:g,max:f,step:m,contentBefore:y,contentAfter:C})=>{const[k,S]=x.useState(void 0!==e?String(e):""),[_,A]=x.useState(""),P={inputRoot:T.css({border:`1px solid ${w.tokens.colorNeutralStroke2} !important`,borderBottom:`1px solid ${w.tokens.colorNeutralStroke2} !important`,borderRadius:"50px !important",backgroundColor:`${w.tokens.colorNeutralBackground1} !important`,padding:"0px 10px !important",boxShadow:"none !important",transition:"all 0.2s ease","&::after":{display:"none !important",borderWidth:"0 !important",content:'"none !important"'},"&:hover":{borderColor:`${w.tokens.colorBrandStroke1} !important`},"&:focus-within":{borderColor:`${w.tokens.colorBrandStroke1} !important`,boxShadow:`0 0 0 2px ${w.tokens.colorBrandBackground2} !important`}})},M=b.useInputFieldStrings(),I=void 0!==e,B=I?String(e):k,L=x.useCallback(e=>{if(c&&""===e.trim())return"number"===t?M.numberRequired:M.fieldRequired;if("number"===t&&""!==e.trim()){const t=Number(e);if(isNaN(t))return M.invalidNumber;if(void 0!==g&&t<g)return M.valueMustBeAtLeast.replace("{0}",String(g));if(void 0!==f&&t>f)return M.valueMustBeAtMost.replace("{0}",String(f))}if(i){const r="number"===t&&""!==e.trim()?Number(e):e;return i(r)}return""},[c,t,i,g,f,M]),j=x.useCallback((e,r)=>{const i=r.value;if("number"===t&&""!==i&&!/^-?\d*\.?\d*$/.test(i))return;I||S(i);const o=L(i);if(A(o),!o&&n){const e="number"===t&&""!==i.trim()?Number(i):i;n(e)}},[t,I,L,n]),N=x.useCallback(()=>{const e=L(B);A(e)},[L,B]),D=x.useMemo(()=>_?"error":"warning"===l?"warning":"info"===l?"success":"none",[_,l]),O=x.useMemo(()=>_||s,[_,s]),z=x.useCallback(()=>{switch(D){case"error":return v.jsx(E.ErrorCircle12Filled,{});case"warning":return v.jsx(E.Warning12Filled,{});case"success":return v.jsx(E.CheckmarkCircle12Filled,{});default:return null}},[D]),F="circular"===r?P.inputRoot:void 0;return v.jsx(w.Field,{label:o,required:c,validationMessage:O,validationMessageIcon:z(),size:u,hint:h,validationState:D,children:v.jsx(w.Input,{value:B,placeholder:a,onChange:j,onBlur:N,disabled:d,readOnly:p,type:"text",inputMode:"number"===t?"decimal":"text",step:"number"===t?m:void 0,className:F,contentBefore:y,contentAfter:C})})},exports.ItemPicker=({options:e,selectedOptions:t=[],onSelectionChange:r,onSearchChange:n,onLoadMore:i,pagingInfo:o,placeholder:a,disabled:s=!1,maxSelectedOptions:l,width:c,className:u,noResultsMessage:h,loadingMessage:d,loadingMoreMessage:p,searchDebounceMs:g=300})=>{const f={container:T.css({display:"flex",flexDirection:"column",gap:w.tokens.spacingVerticalS,position:"relative"}),pickerList:T.css({maxHeight:300,overflowY:"auto",backgroundColor:w.tokens.colorNeutralBackground1,border:`1px solid ${w.tokens.colorNeutralStroke2}`,borderRadius:w.tokens.borderRadiusMedium,boxShadow:w.tokens.shadow16,scrollbarColor:`${w.tokens.colorBrandForeground1} ${w.tokens.colorNeutralBackground1}`,scrollbarWidth:"thin","&::-webkit-scrollbar-track":{borderRadius:10,borderWidth:1},"&::-webkit-scrollbar-thumb":{borderRadius:10,borderWidth:1},"&::-webkit-scrollbar":{height:7,width:7}}),optionContent:T.css({display:"flex",flexDirection:"column",gap:w.tokens.spacingVerticalXXS}),optionSecondary:T.css({fontSize:w.tokens.fontSizeBase200,color:w.tokens.colorNeutralForeground3,fontWeight:w.tokens.fontWeightRegular}),tagPickerControl:T.css({}),tagPickerInput:T.css({backgroundColor:"transparent",border:"none",outline:"none",fontSize:w.tokens.fontSizeBase300,"&::placeholder":{color:w.tokens.colorNeutralForeground4},"&:focus":{outline:"none"}})},m=b.useItemPickerStrings(),y=a||m.placeholder,C=h||m.noResultsFound,k=d||m.searching,S=p||m.loadingMore,[_,A]=x.useState(""),E=x.useRef(null),P=x.useRef(null),M=t.map(e=>e.value),I=(null==o?void 0:o.isLoading)??!1,B=(null==o?void 0:o.isLoadingMore)??!1,L=(null==o?void 0:o.hasMore)??!1,j=e.filter(e=>!M.includes(e.value)),N=x.useCallback(e=>{A(e),E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{null==n||n(e)},g)},[n,g]),D=x.useCallback(e=>{if(!L||B)return;const{scrollTop:t,scrollHeight:r,clientHeight:n}=e.currentTarget;t+n>=r-100&&(null==i||i())},[L,B,i]),O=x.useCallback((i,o)=>{if("no-options"===o.value||"loading"===o.value||"loading-more"===o.value)return;const a=o.selectedOptions,s=t.filter(e=>a.includes(e.value));if(a.length>M.length){const r=a.find(e=>!M.includes(e));if(r){const n=e.find(e=>e.value===r);if(n){if(l&&t.length>=l)return;s.push(n)}}A(""),null==n||n("")}null==r||r(s)},[e,t,M,r,n,l]);return x.useEffect(()=>()=>{E.current&&clearTimeout(E.current)},[]),v.jsx("div",{className:`${f.container} ${u||""}`,...c&&{style:{width:c}},children:v.jsxs(w.TagPicker,{onOptionSelect:O,selectedOptions:M,disabled:s,children:[v.jsxs(w.TagPickerControl,{className:f.tagPickerControl,children:[v.jsx(w.TagPickerGroup,{"aria-label":m.selectedItems,children:t.map(e=>v.jsx(w.Tag,{shape:"circular",media:e.tagMedia??e.media,value:e.value,dismissible:!0,disabled:s,style:{minHeight:30},children:e.text},e.value))}),v.jsx(w.TagPickerInput,{className:f.tagPickerInput,"aria-label":m.searchItems,placeholder:y,value:_,onChange:e=>N(e.target.value),disabled:s})]}),v.jsx(w.TagPickerList,{ref:P,onScroll:D,className:f.pickerList,children:I?v.jsx(w.TagPickerOption,{value:"loading",children:k}):j.length>0?v.jsxs(v.Fragment,{children:[j.map(e=>v.jsx(w.TagPickerOption,{value:e.value,text:e.text,media:e.media,children:v.jsxs("div",{className:f.optionContent,children:[v.jsx(w.Text,{weight:"semibold",children:e.text}),e.secondaryText&&v.jsx(w.Text,{size:200,className:f.optionSecondary,children:e.secondaryText})]})},e.value)),B&&v.jsx(w.TagPickerOption,{value:"loading-more",children:S})]}):v.jsx(w.TagPickerOption,{value:"no-options",children:C})})]})})},exports.JSON_SCHEMA=bC,exports.KPICard=OL,exports.KPICardCompact=RL,exports.KPICardSkeleton=zL,exports.Kpis=e=>{const{skeletonCount:t=3,compact:r=!1}=e,n=NL(),i=$L;return H.useCallback(()=>Array.from({length:t}).map((e,t)=>v.jsx(zL,{},`kpi-skeleton-${t}`)),[t]),v.jsx(v.Fragment,{children:v.jsx(Ct,{gap:"l",direction:"horizontal",padding:"l",paddingTop:"s",children:v.jsx(v.Fragment,{children:v.jsx("div",{className:n.kpiContainer,children:i.length>0?i.map(e=>r?v.jsx(RL,{dataCard:e},e.identifier):v.jsx(OL,{dataCard:e},e.identifier)):v.jsx(FL,{})})})})})},exports.Layout=e=>{const{className:t,children:r,layoutConfig:n=pt}=e,i=H.useRef(null),[o,a]=H.useState(0),[s,l]=H.useState(0),{rootStyles:c,layoutGridStyles:u}=dt({...e,layoutConfig:n}),h=((e,t)=>{let r;return H.useCallback((...n)=>{clearTimeout(r),r=setTimeout(()=>e(...n),t)},[e,t])})((e,t)=>{a(e),l(t)},200);return H.useEffect(()=>{if(!i.current)return;const e=new _.ResizeObserver(e=>{for(const t of e){const{width:e,height:r}=t.contentRect;h(e,r)}});return e.observe(i.current),()=>e.disconnect()},[h]),v.jsx("div",{id:"-Layout",className:w.mergeClasses(t,u),style:{...c(o,s),gridTemplateAreas:n.areas.join(" "),gridTemplateColumns:n.columns,gridTemplateRows:n.rows},ref:i,children:H.Children.map(r,(e,t)=>{var r;if(H.isValidElement(e)){const n=e;return v.jsx("div",{style:{gridArea:(null==(r=n.props)?void 0:r.area)??`area-${t}`},children:e},t)}return e})})},exports.LayoutItem=e=>{const{area:t,children:r}=e;return v.jsx(v.Fragment,{children:v.jsx("div",{style:{gridArea:t},children:r})})},exports.ListItemActivityMessage=({siteId:e,listId:t,itemId:r,currentUserEmail:n,strings:i,context:o})=>{var a,s,l,c,u,h,d,p,g,f,m;const{getItemActivities:y}=(e=>{const t=K(),r=e||t,n=null==r?void 0:r.graphClient,{warn:i,error:o}=Q();return{getItemActivities:x.useCallback(async(e,t,r)=>{if(!n)return i("Graph client not available for SharePoint activities"),{activities:[]};try{const i=await n.get(`/sites/${e}/lists/${t}/items/${r}/getActivitiesByInterval(startDateTime='',endDateTime='',interval='')`);return i&&i.value?{activities:i.value.map(e=>({action:e.action||{},actor:e.actor||{},times:e.times||{}}))}:{activities:[]}}catch(a){throw o("Error fetching SharePoint activities:",a instanceof Error?a:void 0),a}},[n])}})(o),C=b.useListItemActivityStrings(),{warn:w,error:k}=Q(),S=new Map([["access",{message:(null==i?void 0:i.access)||C.accessed||(null==(a=PL.get("access"))?void 0:a.message)||"",icon:v.jsx(E.OpenRegular,{style:AL})}],["comment",{message:(null==i?void 0:i.comment)||C.commented||(null==(s=PL.get("comment"))?void 0:s.message)||"",icon:v.jsx(E.CommentRegular,{style:AL})}],["create",{message:(null==i?void 0:i.create)||C.created||(null==(l=PL.get("create"))?void 0:l.message)||"",icon:v.jsx(E.AddRegular,{style:AL})}],["delete",{message:(null==i?void 0:i.delete)||C.deleted||(null==(c=PL.get("delete"))?void 0:c.message)||"",icon:v.jsx(E.DeleteRegular,{style:AL})}],["edit",{message:(null==i?void 0:i.edit)||C.edited||(null==(u=PL.get("edit"))?void 0:u.message)||"",icon:v.jsx(E.EditRegular,{style:AL})}],["mention",{message:(null==i?void 0:i.mention)||C.mentioned||(null==(h=PL.get("mention"))?void 0:h.message)||"",icon:v.jsx(E.MentionRegular,{style:AL})}],["move",{message:(null==i?void 0:i.move)||C.moved||(null==(d=PL.get("move"))?void 0:d.message)||"",icon:v.jsx(E.ArrowMoveRegular,{style:AL})}],["rename",{message:(null==i?void 0:i.rename)||C.renamed||(null==(p=PL.get("rename"))?void 0:p.message)||"",icon:v.jsx(E.RenameRegular,{style:AL})}],["restore",{message:(null==i?void 0:i.restore)||C.restored||(null==(g=PL.get("restore"))?void 0:g.message)||"",icon:v.jsx(E.ArrowSyncRegular,{style:AL})}],["share",{message:(null==i?void 0:i.share)||C.shared||(null==(f=PL.get("share"))?void 0:f.message)||"",icon:v.jsx(E.PeopleRegular,{style:AL})}],["version",{message:(null==i?void 0:i.version)||C.versioned||(null==(m=PL.get("version"))?void 0:m.message)||"",icon:v.jsx(E.HistoryRegular,{style:AL})}]]),[_,T]=H.useState({message:"",icon:v.jsx(v.Fragment,{})}),[A,P]=H.useState(!0),M=H.useRef(void 0),I=H.useRef(void 0),[B]=H.useState(30),L=H.useCallback(e=>e.user.email===n,[n]),j=H.useCallback(e=>{if(!e)return{message:"",icon:v.jsx(v.Fragment,{})};const{action:t,actor:r}=e,{displayName:n}=(null==r?void 0:r.user)||{displayName:""},i=EL.find(e=>t[e]);if(i){const e=S.get(i);if(e){return{message:`${L(r)?C.you:n} ${e.message}`,icon:e.icon}}}return{message:"",icon:v.jsx(v.Fragment,{})}},[S,L]);return H.useEffect(()=>{var e;null==(e=I.current)||e.setPlaybackRate(B/100)},[B,A]),H.useEffect(()=>{let n=!1;const i=async(o=1e3)=>{var a;if(e&&t&&r)try{const i=await y(e,t,r);if(n)return;const o=i.activities[0];M.current&&JSON.stringify(M.current)===JSON.stringify(o)||(M.current=o,T(j(o)))}catch(s){if(429===s.status){const e=null==(a=s.headers)?void 0:a.get("Retry-After"),t=e?1e3*parseInt(e,10):o;return w(`Throttled. Retrying after ${t}ms`),void setTimeout(()=>i(2*t),t)}k("Activity Error",s instanceof Error?s:void 0)}finally{n||P(!1)}},o=setTimeout(()=>{i()},1e3);return()=>{clearTimeout(o),n=!0}},[e,t,r,y,j]),v.jsx(V.Fade,{imperativeRef:I,visible:!A,children:v.jsx("div",{children:v.jsxs(mt,{horizontal:!0,verticalAlign:"center",horizontalAlign:"center",RowGap:4,columnGap:4,children:[_.icon," ",_.message]})})})},exports.ListToolbar=({items:e,farItems:t=[],isLoading:r=!1,ariaLabel:n="Toolbar",totalCount:i,className:o,showGroupDividers:a=!0})=>{const s={toolbar:T.css`
|
|
249
|
+
display: flex !important;
|
|
250
|
+
flex-wrap: nowrap !important;
|
|
251
|
+
align-items: center !important;
|
|
252
|
+
padding: ${w.tokens.spacingVerticalS} ${w.tokens.spacingHorizontalM};
|
|
253
|
+
background-color: ${w.tokens.colorNeutralBackground1};
|
|
254
|
+
border-bottom: 1px solid ${w.tokens.colorNeutralStroke2};
|
|
255
|
+
min-height: 48px;
|
|
256
|
+
gap: ${w.tokens.spacingHorizontalXS};
|
|
257
|
+
white-space: nowrap;
|
|
258
|
+
position: relative;
|
|
259
|
+
`,leftSection:T.css`
|
|
260
|
+
display: flex !important;
|
|
261
|
+
flex-wrap: nowrap !important;
|
|
262
|
+
align-items: center !important;
|
|
263
|
+
gap: ${w.tokens.spacingHorizontalXS};
|
|
264
|
+
flex: 0 0 auto !important;
|
|
265
|
+
min-width: 0;
|
|
266
|
+
`,measureSection:T.css`
|
|
267
|
+
display: flex;
|
|
268
|
+
flex-wrap: nowrap;
|
|
269
|
+
align-items: center;
|
|
270
|
+
gap: ${w.tokens.spacingHorizontalXS};
|
|
271
|
+
position: absolute;
|
|
272
|
+
top: 0;
|
|
273
|
+
left: 0;
|
|
274
|
+
visibility: hidden;
|
|
275
|
+
pointer-events: none;
|
|
276
|
+
height: 0;
|
|
277
|
+
overflow: visible;
|
|
278
|
+
z-index: -1;
|
|
279
|
+
`,rightGroup:T.css`
|
|
280
|
+
display: flex !important;
|
|
281
|
+
flex-wrap: nowrap !important;
|
|
282
|
+
align-items: center !important;
|
|
283
|
+
gap: ${w.tokens.spacingHorizontalXS};
|
|
284
|
+
flex: 0 0 auto !important;
|
|
285
|
+
margin-left: auto;
|
|
286
|
+
white-space: nowrap;
|
|
287
|
+
`,farItemsContainer:T.css`
|
|
288
|
+
display: flex;
|
|
289
|
+
flex-wrap: nowrap;
|
|
290
|
+
align-items: center;
|
|
291
|
+
gap: inherit;
|
|
292
|
+
`,toolbarButtonBase:T.css`
|
|
293
|
+
min-width: auto;
|
|
294
|
+
`,overflowButton:T.css`
|
|
295
|
+
flex-shrink: 0;
|
|
296
|
+
`,countBadge:T.css`
|
|
297
|
+
flex-shrink: 0;
|
|
298
|
+
@media (max-width: 768px) {
|
|
299
|
+
display: none;
|
|
300
|
+
}
|
|
301
|
+
`,divider:T.css`
|
|
302
|
+
height: 24px;
|
|
303
|
+
margin: 0 ${w.tokens.spacingHorizontalXS};
|
|
304
|
+
`,toolbarItem:T.css`
|
|
305
|
+
flex-shrink: 0;
|
|
306
|
+
width: fit-content;
|
|
307
|
+
white-space: nowrap;
|
|
308
|
+
`,farItemButton:T.css`
|
|
309
|
+
flex-shrink: 0;
|
|
310
|
+
`,farItemLabel:T.css`
|
|
311
|
+
@media (max-width: 768px) {
|
|
312
|
+
display: none;
|
|
313
|
+
}
|
|
314
|
+
`},l=H.useRef(null),c=H.useRef(null),u=H.useRef(null),h=H.useRef(null),d=H.useMemo(()=>e.filter(e=>!e.isFarItem&&!1!==e.visible),[e]),p=H.useMemo(()=>[...e.filter(e=>e.isFarItem&&!1!==e.visible),...t.filter(e=>!1!==e.visible)],[e,t]),g=H.useMemo(()=>kL(p),[p]),f=H.useMemo(()=>function(e,t){const r=[],n=kL(e),i=Array.from(n.entries());for(let o=0;o<i.length;o++){const[,e]=i[o],n=o===i.length-1;for(const t of e)t.dividerBefore&&r.push({type:"divider",key:`${t.key}-div-before`}),r.push({type:"item",item:t,key:t.key}),t.dividerAfter&&r.push({type:"divider",key:`${t.key}-div-after`});t&&!n&&r.push({type:"divider",key:`group-div-${o}`})}return r}(d,a),[d,a]),m=CL(l,u,h,f.length),y=H.useMemo(()=>{const e=new Set;for(let t=0;t<m&&t<f.length;t++)"item"===f[t].type&&e.add(f[t].key);return e},[f,m]),b=H.useMemo(()=>d.filter(e=>!y.has(e.key)),[d,y]),x=b.length>0;return v.jsxs("div",{ref:l,role:"toolbar","aria-label":n,className:`${s.toolbar} ${o||""}`,children:[v.jsx("div",{ref:h,className:s.measureSection,"aria-hidden":"true",children:f.map(e=>"divider"===e.type?v.jsx(w.ToolbarDivider,{},e.key):v.jsx(wL,{item:e.item,isLoading:r,itemClass:s.toolbarItem},e.key))}),v.jsxs("div",{ref:c,className:s.leftSection,children:[f.map((e,t)=>t>=m?null:"divider"===e.type?v.jsx(w.ToolbarDivider,{},e.key):v.jsx(wL,{item:e.item,isLoading:r,itemClass:s.toolbarItem},e.key)),x&&v.jsxs(w.Menu,{children:[v.jsx(w.MenuTrigger,{disableButtonEnhancement:!0,children:v.jsx(w.Tooltip,{content:`${b.length} more actions`,relationship:"label",children:v.jsx(w.ToolbarButton,{className:s.overflowButton,icon:v.jsx(E.MoreHorizontalRegular,{}),"aria-label":`${b.length} more actions`})})}),v.jsx(w.MenuPopover,{children:v.jsx(w.MenuList,{children:b.map(e=>v.jsx(w.MenuItem,{icon:e.icon,disabled:e.disabled||r,onClick:e.onClick,children:e.label||e.tooltip||e.key},e.key))})})]}),void 0!==i&&i>0&&v.jsx(w.Badge,{appearance:"filled",color:"informative",className:s.countBadge,children:v.jsxs(w.Text,{size:200,children:[i," items"]})})]}),v.jsx("div",{ref:u,className:s.rightGroup,children:p.length>0&&v.jsx("div",{className:s.farItemsContainer,children:Array.from(g.entries()).map(([e,t],n)=>((e,t,n)=>{const i=[];for(const o of e)o.dividerBefore&&i.push(v.jsx(w.ToolbarDivider,{},`${o.key}-divider-before`)),i.push(v.jsx(wL,{item:o,isLoading:r,itemClass:s.farItemButton,labelClass:s.farItemLabel},o.key)),o.dividerAfter&&i.push(v.jsx(w.ToolbarDivider,{},`${o.key}-divider-after`));return a&&!n&&i.push(v.jsx(w.ToolbarDivider,{},`group-divider-${t}`)),i})(t,n,n===g.size-1))})})]})},exports.LivePersona=vL,exports.MapCache=Cw,exports.MaplibreWorldMap=({data:e,onClick:t,mapStyleUrl:r="https://api.maptiler.com/maps/topo-v2/style.json?key=fYK99t1qjkKbINH0saMD",style:n,fitPadding:i=20})=>{(()=>{const e="undefined"!=typeof document?document:void 0;if(!e||e.getElementById(no))return;const t=e.createElement("style");t.id=no,t.textContent=".maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0,0,0,0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:#0000000d}}.maplibregl-ctrl button:not(:disabled):active{background-color:#0000000d}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E\")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E\")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23333' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%2333b5e5' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E\")}}@keyframes maplibregl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E\");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E\")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:#ffffff80;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:#0000000d}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\")}}.maplibregl-ctrl-attrib a{color:#000000bf;text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:#0000000d}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:\"\";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:\"\";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:#0006;color:#fff;display:flex;font-size:1.4em;top:0;right:0;bottom:0;left:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}",e.head.appendChild(t)})();const o=x.useRef(null),a=(e=>{const[t,r]=x.useState(void 0),{error:n}=Q();return x.useEffect(()=>{let t=!1;return(async()=>{try{const n=await fetch(e),i=await n.json();t||r(i)}catch(i){n("Error loading style:",i instanceof Error?i:void 0)}})(),()=>{t=!0}},[e]),t})(r),s=e,{defaultMapStyles:l,flagClass:c}={defaultMapStyles:x.useMemo(()=>({width:"100%",height:"600px",fontFamily:w.tokens.fontFamilyBase}),[]),flagClass:x.useMemo(()=>T.css({width:"32px",height:"20px",border:`1px solid ${w.tokens.colorNeutralBackground1}`,borderRadius:w.tokens.borderRadiusSmall,boxShadow:w.tokens.shadow4,transition:"transform 0.1s ease"}),[])},u=b.useWorldMapStrings();return x.useEffect(()=>{if(!o.current||0===s.length)return;const e=s.map(e=>e.coordinates[0]),t=s.map(e=>e.coordinates[1]);o.current.getMap().fitBounds([[Math.min(...e),Math.min(...t)],[Math.max(...e),Math.max(...t)]],{padding:i})},[s,i]),a?v.jsxs(Yi,{ref:o,initialViewState:{longitude:0,latitude:20,zoom:1},style:{...n??l},mapStyle:a,pixelRatio:window.devicePixelRatio,children:[v.jsx(so,{mapRef:o,initialViewState:{longitude:0,latitude:20,zoom:1}}),s.map(e=>v.jsx(to,{longitude:e.coordinates[0],latitude:e.coordinates[1],anchor:"center",children:v.jsx(ho,{data:e,onClick:t,flagClass:c})},e.id))]}):v.jsx(w.Text,{children:u.loadingMapStyle})},exports.MarkdownRenderer=uu,exports.Mensions=ou,exports.MensionsExample=({context:e})=>{const[t,r]=x.useState(""),[n,i]=x.useState(""),o=x.useRef(null),a=x.useRef(null);return v.jsxs(mt,{RowGap:20,children:[v.jsxs("div",{children:[v.jsx("h3",{children:"Input with @ mentions"}),v.jsx(w.Input,{ref:o,value:t,onChange:(e,t)=>r(t.value),placeholder:"Type @ to mention someone..."}),v.jsx(ou,{context:e,inputValue:t,parentRef:o,mentionChars:["@"],onUserSelect:(e,n)=>{const i=new RegExp(`${n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(\\w*)$`),a=t.replace(i,`${n}${e.displayName} `);r(a),setTimeout(()=>{var e;null==(e=o.current)||e.focus()},0)},theme:w.webLightTheme,suggestionsHeader:"Mention User",maxSuggestions:8})]}),v.jsxs("div",{children:[v.jsx("h3",{children:"Textarea with @ and # mentions"}),v.jsx(w.Textarea,{ref:a,value:n,onChange:(e,t)=>i(t.value),placeholder:"Type @ to mention someone or # for tags...",rows:4}),v.jsx(ou,{context:e,inputValue:n,parentRef:a,mentionChars:["@","#"],onUserSelect:(e,t)=>{const r=new RegExp(`${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(\\w*)$`),o=n.replace(r,`${t}${e.displayName} `);i(o),setTimeout(()=>{var e;null==(e=a.current)||e.focus()},0)},theme:w.webLightTheme,suggestionsHeader:"Select User or Tag",maxSuggestions:10,userFilter:(e,t)=>{var r;return e.displayName.toLowerCase().includes(t.toLowerCase())||((null==(r=e.mail)?void 0:r.toLowerCase().includes(t.toLowerCase()))??!1)}})]})]})},exports.MermaidDiagram=e=>{const{source:t,url:r,theme:n,backgroundColor:i,className:o,styles:a,zoomable:s=!1,onRendered:l,onError:c,loadingContent:u,errorContent:h}=e,d=yL(e),p=H.useRef(null),g=H.useRef(null),f=(e=>{const[t,r]=H.useState(!1);return H.useEffect(()=>{const t=e.current;if(!t)return;const n=getComputedStyle(t).getPropertyValue("--colorNeutralBackground1").trim();if(n&&n.startsWith("#")&&n.length>=7){const e=parseInt(n.substring(1,3),16),t=parseInt(n.substring(3,5),16),i=parseInt(n.substring(5,7),16);r(.299*e+.587*t+.114*i<128)}}),t})(p),m=n??(f?"dark":"default"),[y,x]=H.useState(null),[C,k]=H.useState(null),[S,_]=H.useState(!1),[T,A]=H.useState(null),{loading:E,errorMessage:P,noSource:M}=b.useMermaidDiagramStrings();H.useEffect(()=>{if(t)return A(t),void k(null);if(r){let e=!1;return _(!0),k(null),fetch(r).then(e=>{if(!e.ok)throw new Error(`Failed to fetch ${r}: ${e.status} ${e.statusText}`);return e.text()}).then(t=>{e||(A(t),_(!1))}).catch(t=>{if(!e){const e=t instanceof Error?t:new Error(String(t));k(e),_(!1),null==c||c(e)}}),()=>{e=!0}}A(null)},[t,r,c]),H.useEffect(()=>{if(!T)return void x(null);let e=!1;const t="mermaid-diagram-"+ ++bL;return mL.initialize({startOnLoad:!1,theme:m,securityLevel:"loose",fontFamily:w.tokens.fontFamilyBase,suppressErrorRendering:!0}),mL.render(t,T).then(({svg:t})=>{e||(x(t),k(null),null==l||l(t))}).catch(r=>{if(!e){const e=r instanceof Error?r:new Error(String(r));k(e),x(null),null==c||c(e)}const n=document.getElementById(t);null==n||n.remove()}),()=>{e=!0;const r=document.getElementById(t);null==r||r.remove()}},[T,m,l,c]);const[I,B]=H.useState(1),[L,j]=H.useState({x:0,y:0}),N=H.useRef(!1),D=H.useRef({x:0,y:0});H.useEffect(()=>{const e=p.current;if(!e||!s)return;const t=e=>{e.preventDefault();const t=e.deltaY>0?-.1:.1;B(e=>Math.min(Math.max(e+t,.25),4))},r=e=>{N.current=!0,D.current={x:e.clientX,y:e.clientY}},n=e=>{if(!N.current)return;const t=e.clientX-D.current.x,r=e.clientY-D.current.y;D.current={x:e.clientX,y:e.clientY},j(e=>({x:e.x+t,y:e.y+r}))},i=()=>{N.current=!1};return e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("mousedown",r),e.addEventListener("mousemove",n),e.addEventListener("mouseup",i),e.addEventListener("mouseleave",i),()=>{e.removeEventListener("wheel",t),e.removeEventListener("mousedown",r),e.removeEventListener("mousemove",n),e.removeEventListener("mouseup",i),e.removeEventListener("mouseleave",i)}},[s]),H.useEffect(()=>{B(1),j({x:0,y:0})},[T]),H.useEffect(()=>{const e=g.current;e&&(e.innerHTML=y??"")},[y]);const O=[d.root,o].filter(Boolean).join(" ");if(S)return v.jsx(Ct,{className:O,style:a,alignItems:"center",justifyContent:"center",overflow:"hidden",background:i,children:v.jsx(Ct,{className:d.loading,alignItems:"center",justifyContent:"center",padding:"xxl",children:u??v.jsx(Tt,{size:"small",label:E})})});if(C)return v.jsx(Ct,{className:O,style:a,alignItems:"center",justifyContent:"center",overflow:"hidden",background:i,children:h?h(C):v.jsx(Ai,{message:P,messageType:Y.ERROR})});if(!y)return v.jsx(Ct,{className:O,style:a,alignItems:"center",justifyContent:"center",overflow:"hidden",background:i,children:v.jsx(Ct,{className:d.loading,alignItems:"center",justifyContent:"center",padding:"xxl",children:v.jsx(w.Text,{children:M})})});const z=s?{transform:`translate(${L.x}px, ${L.y}px) scale(${I})`,transformOrigin:"center center"}:void 0;return v.jsx(Ct,{ref:p,className:O,style:a,alignItems:"center",justifyContent:"center",overflow:s?"auto":"hidden",background:i,children:v.jsx(Ct,{ref:g,className:d.svgContainer,alignItems:"center",justifyContent:"center",style:z,children:v.jsx(v.Fragment,{})})})},exports.Navigation=Ii,exports.NoKpisCard=FL,exports.OptionTime=fi,exports.Popup=wt,exports.RenderAdaptiveCard=({card:e,data:t})=>{const r=x.useRef(null);return x.useEffect(()=>{if(!r.current)return;r.current.innerHTML="";const n=new F.Template(e).expand({$root:t}),i=new G.AdaptiveCard;null==i||i.parse(n);const o=i.render();o&&r.current.appendChild(o)},[e,t]),v.jsx("div",{ref:r})},exports.RenderDialog=ki,exports.RenderDrawer=e=>{const{isOpen:t,onOpenChange:r,title:n,headerActions:i,footerActions:o,size:a,separator:s,type:l,style:c,children:u,position:h,classNameHeader:d="",classNameBody:p="",classNameFooter:g=""}=e,f=H.useCallback((e,t)=>{r&&r(t.open)},[r]),m=v.jsxs(v.Fragment,{children:[v.jsx(w.DrawerHeader,{className:d,children:v.jsx(w.DrawerHeaderTitle,{style:{width:"100%"},action:i,children:n})}),v.jsx(w.DrawerBody,{className:p,children:u}),v.jsx(w.DrawerFooter,{className:g,children:o})]});return"inline"===l?v.jsx(w.InlineDrawer,{separator:s,open:t,size:a,style:c,position:h,children:m}):v.jsx(w.OverlayDrawer,{open:t,onOpenChange:f,size:a,style:c,position:h,children:m})},exports.RenderHeader=e=>{const{onDismiss:t,title:r,description:n,icon:i,showCloseButton:o=!0}=e,a=Si();return v.jsx(v.Fragment,{children:v.jsxs("div",{id:"RenderHedaermain",className:a.renderHeaderContent,children:[v.jsxs("div",{className:a.renderHeaderHeader,children:[v.jsx(w.Button,{style:{display:o?"block":"none"},appearance:"subtle",className:a.closeButton,onClick:e=>{e.stopPropagation(),e.preventDefault(),t(!1)},icon:v.jsx(E.Dismiss24Regular,{})}),v.jsxs("div",{className:a.renderHeaderTitleContainer,children:[H.isValidElement(i)?i:v.jsx(M.Icon,{icon:i}),v.jsxs("div",{className:a.dialogTitleAndDescriptionContainer,children:[H.isValidElement(r)?r:v.jsx(w.Subtitle1,{className:a.renderHeaderTitle,children:r}),H.isValidElement(n)?n:v.jsx(w.Caption1,{className:a.renderHeaderDescription,children:n})]})]})]}),v.jsx("div",{className:a.divider})]})})},exports.RenderLabel=St,exports.RenderSpinner=Tt,exports.Rgb=$f,exports.SearchControl=({placeholder:e,onSearch:t,onChange:r,onClear:n,disabled:i=!1,className:o,width:a,value:s,shape:l="circular",contentBefore:c,size:u})=>{const[h,d]=x.useState(""),p=x.useRef(null),{searchBoxStyles:g,searchBoxNormalStyles:f,iconWrapperStyles:m}={searchBoxStyles:li`
|
|
315
|
+
border: 1px solid ${w.tokens.colorNeutralStroke2};
|
|
316
|
+
border-radius: 50px;
|
|
317
|
+
background-color: ${w.tokens.colorNeutralBackground1};
|
|
318
|
+
padding: 5px 10px;
|
|
319
|
+
box-shadow: none;
|
|
320
|
+
transition: all 0.2s ease;
|
|
321
|
+
position: relative;
|
|
322
|
+
|
|
323
|
+
&::after {
|
|
324
|
+
display: none !important;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
&:hover {
|
|
328
|
+
border-color: ${w.tokens.colorBrandStroke1};
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
&:focus-within {
|
|
332
|
+
outline: none;
|
|
333
|
+
border-color: ${w.tokens.colorBrandStroke1};
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
&:disabled {
|
|
337
|
+
opacity: 0.6;
|
|
338
|
+
cursor: not-allowed;
|
|
339
|
+
border-color: ${w.tokens.colorNeutralStroke3};
|
|
340
|
+
background-color: ${w.tokens.colorNeutralBackground3};
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
input {
|
|
344
|
+
border: none !important;
|
|
345
|
+
outline: none !important;
|
|
346
|
+
background: transparent !important;
|
|
347
|
+
font-size: ${w.tokens.fontSizeBase300};
|
|
348
|
+
color: ${w.tokens.colorNeutralForeground1};
|
|
349
|
+
box-shadow: none !important;
|
|
350
|
+
|
|
351
|
+
&::placeholder {
|
|
352
|
+
color: ${w.tokens.colorNeutralForeground3};
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
&:focus {
|
|
356
|
+
border: none !important;
|
|
357
|
+
outline: none !important;
|
|
358
|
+
box-shadow: none !important;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
* {
|
|
363
|
+
&:focus {
|
|
364
|
+
outline: none !important;
|
|
365
|
+
box-shadow: none !important;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
`,searchBoxNormalStyles:li`
|
|
369
|
+
border: 1px solid ${w.tokens.colorNeutralStroke2};
|
|
370
|
+
border-radius: ${w.tokens.borderRadiusMedium};
|
|
371
|
+
background-color: ${w.tokens.colorNeutralBackground1};
|
|
372
|
+
padding: 5px 10px;
|
|
373
|
+
box-shadow: none;
|
|
374
|
+
transition: all 0.2s ease;
|
|
375
|
+
position: relative;
|
|
376
|
+
|
|
377
|
+
&::after {
|
|
378
|
+
display: none !important;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
&:hover {
|
|
382
|
+
border-color: ${w.tokens.colorBrandStroke1};
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
&:focus-within {
|
|
386
|
+
outline: none;
|
|
387
|
+
border-color: ${w.tokens.colorBrandStroke1};
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
&:disabled {
|
|
391
|
+
opacity: 0.6;
|
|
392
|
+
cursor: not-allowed;
|
|
393
|
+
border-color: ${w.tokens.colorNeutralStroke3};
|
|
394
|
+
background-color: ${w.tokens.colorNeutralBackground3};
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
input {
|
|
398
|
+
border: none !important;
|
|
399
|
+
outline: none !important;
|
|
400
|
+
background: transparent !important;
|
|
401
|
+
font-size: ${w.tokens.fontSizeBase300};
|
|
402
|
+
color: ${w.tokens.colorNeutralForeground1};
|
|
403
|
+
box-shadow: none !important;
|
|
404
|
+
|
|
405
|
+
&::placeholder {
|
|
406
|
+
color: ${w.tokens.colorNeutralForeground3};
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
&:focus {
|
|
410
|
+
border: none !important;
|
|
411
|
+
outline: none !important;
|
|
412
|
+
box-shadow: none !important;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
* {
|
|
417
|
+
&:focus {
|
|
418
|
+
outline: none !important;
|
|
419
|
+
box-shadow: none !important;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
`,iconWrapperStyles:li`
|
|
423
|
+
display: flex;
|
|
424
|
+
align-items: center;
|
|
425
|
+
padding: 2px;
|
|
426
|
+
margin-right: 8px;
|
|
427
|
+
`},y=b.useSearchControlStrings(),v=e||y.placeholder,C=void 0!==s,k=C?s:h,S="circular"===l?g:f,_=x.useCallback((e,t)=>{C||d(t.value),null==r||r(t.value)},[C,r]),T=x.useCallback(()=>{var e;C||d(""),null==(e=p.current)||e.blur(),null==n||n(),null==t||t("")},[C,n,t]),A=x.useCallback(e=>{var r;"Enter"===e.key&&k.trim()?null==t||t(k.trim()):"Escape"===e.key&&(null==(r=p.current)||r.blur(),C||d(""),null==n||n())},[k,C,t,n]),P=c??oi("span",{css:m,children:oi(E.SearchRegular,{})});return oi(w.SearchBox,{ref:p,css:S,className:o,style:{width:a},placeholder:v,value:k,onChange:_,onKeyDown:A,disabled:i,size:u,contentBefore:P,dismiss:{onClick:T}})},exports.SelectDay=sr,exports.SelectMonth=ur,exports.SelectTime=mi,exports.SelectView=({onChange:e,defaultKey:t,label:r,options:n=[]})=>{const[i,o]=x.useState(()=>n.map(e=>({...e,selected:e.key===(t??"status")})));x.useEffect(()=>{const t=i.find(e=>e.selected);t&&e(t.key)},[]);const a=x.useCallback(t=>{const r=i.map(e=>({...e,selected:e.key===t.key}));o(r),e(t.key)},[i,e]);return v.jsxs(Ct,{gap:"s",alignItems:"center",children:[r&&v.jsx(w.Label,{children:r}),v.jsx(Mt,{options:i,onSelected:a,styles:{width:220}})]})},exports.SelectWeek=gr,exports.Set=uI,exports.ShareDialog=({isOpen:e,options:t,onClose:r})=>{const{log:n}=Q(),[i,o]=x.useState(void 0);n(i||"");const a=x.useRef(null),[s,l]=x.useState(400),{siteUrl:c,listId:u,itemId:h,name:d}=t,p=x.useCallback(()=>{r()},[r]),g=x.useCallback(e=>{if(e.origin!==window.location.origin)return;n("Message from iframe:",e.data);const{name:t,height:r}=JSON.parse(e.data);switch(t){case"share_dismiss":p();break;case"share_resize":l(r)}},[p]);return x.useEffect(()=>(window.addEventListener("message",g),()=>{window.removeEventListener("message",g)}),[g]),x.useEffect(()=>{if(e){const e="sharePoint",t=0,r="",i=(new Date).getTime(),a=!1,s=encodeURIComponent(window.location.origin),l=encodeURIComponent(d),p=`${c}/_layouts/15/sharedialog.aspx?listId=${u}&listItemId=${h}&clientId=${e}&policyTip=${t}&folderColor=${r}&clickTime=${i}&ma=0&fullScreenMode=${a}&itemName= ${l}&channelId=&origin=${s}`;n(p),o(p)}else o(void 0)},[e,c,u,h]),v.jsx(ki,{isOpen:e,onDismiss:p,maxHeight:"fit-content",children:v.jsx("iframe",{ref:a,src:i||"",style:{width:"100%",height:s,border:"none"},onLoad:()=>n("Iframe loaded")})})},exports.ShowError=({title:e,message:t})=>{const r=_i();return v.jsx(w.Card,{className:r.container,children:v.jsxs(Ct,{gap:"l",alignItems:"center",children:[v.jsx(E.ErrorCircleRegular,{className:r.icon}),v.jsxs(Ct,{gap:"s",alignItems:"center",children:[v.jsx(w.Title3,{className:r.title,children:e}),v.jsx(w.Body1,{className:r.message,children:t})]})]})})},exports.ShowMessage=Ai,exports.Space=e=>{const t=H.useRef(null),[r,n]=H.useState(0),{spaceStyles:i}=gt(e);return H.useEffect(()=>{let e;return t.current&&(e=new _.ResizeObserver(e=>{for(const t of e){const{width:e}=t.contentRect;n(e)}}),e.observe(t.current)),()=>{e&&e.disconnect()}},[]),v.jsx(v.Fragment,{children:v.jsx("div",{id:"-space",style:i(r),ref:t})})},exports.SplitPane=e=>{const{direction:t="horizontal",defaultSize:r="50%",minSize:n=100,maxSize:i=1/0,minSecondarySize:o=100,resizable:a=!0,onResize:s,onResizeEnd:l,primaryContent:c,secondaryContent:u,className:h,styles:d}=e,p=vt(e),g="horizontal"===t,f=H.useRef(null),m=H.useRef(null),[y,b]=H.useState(null),[x,C]=H.useState(!1),[w,k]=H.useState(!1);H.useEffect(()=>{if(null!==y)return;if(!f.current)return;const e=f.current.getBoundingClientRect(),t=g?e.width:e.height;if("number"==typeof r)b(Math.min(Math.max(r,n),i));else if("string"==typeof r&&r.endsWith("%")){const e=parseFloat(r)/100;b(Math.min(Math.max(t*e,n),i))}else b(t/2)},[r,n,i,g,y]);const S=H.useCallback(t=>{if(!f.current)return t;const r=f.current.getBoundingClientRect(),a=(g?r.width:r.height)-(e.resizerSize??6)-o,s=Math.min(i,a);return Math.min(Math.max(t,n),s)},[g,i,n,o,e.resizerSize]),_=H.useCallback(e=>{if(!a)return;e.preventDefault(),C(!0);const t=g?e.clientX:e.clientY,r=y??0,n=e=>{const n=g?e.clientX:e.clientY,i=S(r+(n-t));b(i),null==s||s(i)},i=()=>{if(C(!1),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",i),m.current){const e=g?m.current.getBoundingClientRect().width:m.current.getBoundingClientRect().height;null==l||l(e)}};document.addEventListener("mousemove",n),document.addEventListener("mouseup",i)},[a,g,y,S,s,l]),T=H.useCallback(e=>{if(!a)return;C(!0);const t=e.touches[0],r=g?t.clientX:t.clientY,n=y??0,i=e=>{const t=e.touches[0],i=g?t.clientX:t.clientY,o=S(n+(i-r));b(o),null==s||s(o)},o=()=>{if(C(!1),document.removeEventListener("touchmove",i),document.removeEventListener("touchend",o),m.current){const e=g?m.current.getBoundingClientRect().width:m.current.getBoundingClientRect().height;null==l||l(e)}};document.addEventListener("touchmove",i,{passive:!1}),document.addEventListener("touchend",o)},[a,g,y,S,s,l]),A=H.useCallback(e=>{if(!a||null===y)return;const t=e.shiftKey?50:10;let r=0;if(g?"ArrowLeft"===e.key?r=-t:"ArrowRight"===e.key&&(r=t):"ArrowUp"===e.key?r=-t:"ArrowDown"===e.key&&(r=t),0!==r){e.preventDefault();const t=S(y+r);b(t),null==s||s(t),null==l||l(t)}},[a,y,g,S,s,l]);H.useEffect(()=>(x?(document.body.style.userSelect="none",document.body.style.cursor=g?"col-resize":"row-resize"):(document.body.style.userSelect="",document.body.style.cursor=""),()=>{document.body.style.userSelect="",document.body.style.cursor=""}),[x,g]);const E=H.useRef(null),P=[p.resizer,w||x?p.resizerActive:""].filter(Boolean).join(" ");return H.useEffect(()=>{if(!a||!E.current)return;const e=E.current,t=e=>_(e),r=e=>T(e),n=e=>A(e),i=()=>k(!0),o=()=>k(!1);return e.addEventListener("mousedown",t),e.addEventListener("touchstart",r),e.addEventListener("keydown",n),e.addEventListener("mouseenter",i),e.addEventListener("mouseleave",o),()=>{e.removeEventListener("mousedown",t),e.removeEventListener("touchstart",r),e.removeEventListener("keydown",n),e.removeEventListener("mouseenter",i),e.removeEventListener("mouseleave",o)}},[a,_,T,A]),v.jsxs(Ct,{ref:f,className:[p.root,h].filter(Boolean).join(" "),style:{height:"100%",width:"100%",...d},direction:g?"horizontal":"vertical",overflow:"hidden",children:[v.jsx(Ct,{ref:m,className:p.pane(y??void 0),style:{flex:"0 0 auto"},children:c}),a&&v.jsx(Ct,{ref:E,className:P,alignItems:"center",justifyContent:"center",style:{flex:"0 0 auto"},children:v.jsxs(Ct,{className:p.resizerGrip,direction:g?"vertical":"horizontal",alignItems:"center",justifyContent:"center",children:[v.jsx(Ct,{className:p.gripDot,children:""}),v.jsx(Ct,{className:p.gripDot,children:""}),v.jsx(Ct,{className:p.gripDot,children:""})]})}),v.jsx(Ct,{className:p.secondaryPane,style:{flex:1,minWidth:0,minHeight:0},children:u})]})},exports.Stack=kw,exports.Stack$1=mt,exports.StackItem=e=>{const{children:t,grow:r,disableShrink:n,shrink:i,order:o,alignSelf:a,verticalFill:s}=e,{getBaseStyles:l}=oe(),c=H.useRef(null),[u,h]=H.useState(0),[d,p]=H.useState(0),g=l(e,u,d);H.useEffect(()=>{let e;return c.current&&(e=new _.ResizeObserver(e=>{for(const t of e){const{width:e,height:r}=t.contentRect;h(e),p(r)}}),e.observe(c.current)),()=>{e&&e.disconnect()}},[]);const f={...g,alignSelf:a,order:o,height:s?"100%":"auto",flexGrow:r?"boolean"==typeof r?1:r:void 0,flexShrink:n||!r&&!i?0:1,minWidth:0,minHeight:0,width:"auto"};return v.jsx(v.Fragment,{children:v.jsx("div",{ref:c,style:f,children:t})})},exports.StackV2=Ct,exports.StackedUsers=({users:e,maxVisible:t=5,avatarSize:r=32,showHoverCard:n=!0,context:i,className:o,layout:a="stack",overflowText:s})=>{const l={container:T.css({display:"flex",alignItems:"center",gap:"4px"}),stackLayout:T.css({"& > *:not(:first-child)":{marginLeft:"-8px"}}),spreadLayout:T.css({display:"flex",flexDirection:"row",gap:"8px","& > *":{marginLeft:"0"}}),userCardWrapper:T.css({position:"relative",zIndex:1,transition:"transform 0.2s ease, z-index 0.2s ease","&:hover":{transform:"scale(1.1)",zIndex:10}}),overflowButton:T.css({backgroundColor:w.tokens.colorNeutralBackground1,border:`2px solid ${w.tokens.colorNeutralStroke1}`,borderRadius:"50%",color:w.tokens.colorNeutralForeground1,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"12px",fontWeight:600,minWidth:"32px",minHeight:"32px",position:"relative",zIndex:1,transition:"all 0.2s ease","&:hover":{backgroundColor:w.tokens.colorNeutralBackground1Hover,zIndex:10}}),popover:T.css({maxWidth:"300px",padding:"12px"}),popoverUserList:T.css({display:"flex",flexDirection:"column",gap:"8px"}),popoverUserCard:T.css({padding:"4px",borderRadius:"4px",transition:"background-color 0.2s ease","&:hover":{backgroundColor:w.tokens.colorNeutralBackground1Hover}})},{warn:c}=Q(),{visibleUsers:u,overflowUsers:h}=x.useMemo(()=>{if(!e||0===e.length)return{visibleUsers:[],overflowUsers:[]};return{visibleUsers:e.slice(0,t),overflowUsers:e.slice(t)}},[e,t]),d=x.useMemo(()=>s||`+${h.length}`,[s,h.length]);return e&&0!==e.length?i?v.jsxs(Ct,{direction:"horizontal",alignItems:"start",gap:"stack"===a?"4px":"12px",className:`${"stack"===a?l.stackLayout:l.spreadLayout} ${o||""}`,children:[u.map((e,t)=>v.jsx("div",{className:l.userCardWrapper,children:v.jsx(TL,{userId:e.id,avatarSize:r,showHoverCard:n??!0,context:i,avatarOnly:!0})},`user-${e.id||t}`)),h.length>0&&v.jsxs(w.Popover,{withArrow:!0,children:[v.jsx(w.PopoverTrigger,{disableButtonEnhancement:!0,children:v.jsx(w.Button,{className:l.overflowButton,style:{width:`${r}px`,height:`${r}px`,fontSize:r>40?"14px":"12px"},appearance:"subtle",children:d})}),v.jsx(w.PopoverSurface,{className:l.popover,children:v.jsx("div",{className:l.popoverUserList,children:h.map((e,t)=>v.jsx("div",{className:l.popoverUserCard,children:v.jsx(TL,{userId:e.id,avatarSize:32,showHoverCard:n??!0,context:i,textPosition:"after",avatarOnly:!1})},`overflow-user-${e.id||t}`))})})]})]}):(c("StackedUsers: context is required to display user cards"),null):null},exports.Symbol=VC,exports.TIME_RADIO_GROUP=hi,exports.TypographyControl=e=>{const{fontSize:t,fontFamily:r,fontWeight:n,numberOfLines:i,as:o,padding:a,paddingTop:s,paddingBottom:l,paddingLeft:c,paddingRight:u,margin:h,marginTop:d,marginBottom:p,marginLeft:g,marginRight:f,children:m,style:y,className:b,color:x,block:C,truncate:k,wrap:S}=e,_=T.css({color:x,padding:a&&Et[a]?Et[a]:a,paddingTop:s&&Et[s]?Et[s]:s,paddingBottom:l&&Et[l]?Et[l]:l,paddingLeft:c&&Et[c]?Et[c]:c,paddingRight:u&&Et[u]?Et[u]:u,margin:h&&Et[h]?Et[h]:h,marginTop:d&&Et[d]?Et[d]:d,marginBottom:p&&Et[p]?Et[p]:p,marginLeft:g&&Et[g]?Et[g]:g,marginRight:f&&Et[f]?Et[f]:f}),A={...y,...r?{fontFamily:r}:{},...t?{fontSize:At[t]?At[t]:t}:{},...n?{fontWeight:Pt[n]?Pt[n]:n}:{},...i?{display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",WebkitLineClamp:i}:{}};return v.jsx(w.Text,{as:o,className:w.mergeClasses(b,_),style:A,block:C,truncate:k,wrap:S,children:m})},exports.Uint8Array=Lw,exports.UniversalProvider=({context:e,children:t})=>v.jsx(Z.Provider,{value:e,children:t}),exports.UserCard=TL,exports.Utils=Tu,exports.VideoPlayer=e=>{const{url:t,controls:r=!0,width:n="100%",height:i="100%",loop:o=!1,muted:a=!1}=e,[s,l]=x.useState(!1),c=Bi(e);return v.jsx("div",{className:c.videoPlayerContainer,children:v.jsx(L,{url:t,controls:r,width:n,height:i,playing:s,loop:o,muted:a,onPause:()=>l(!1),onPlay:()=>l(!0),className:c.reactPlayer})})},exports.ZERO_WIDTH_SPACE="",exports.__export=xu,exports.__name=vu,exports.abs=my,exports.acos=function(e){return e>1?0:e<-1?Sy:Math.acos(e)},exports.array=Ey,exports.arrayLikeKeys=kk,exports.asin=function(e){return e>=1?_y:e<=-1?-_y:Math.asin(e)},exports.assignValue=bk,exports.assignWithDepth_default=ld,exports.atan2=yy,exports.baseFor=Aw,exports.baseGetTag=JC,exports.baseKeys=sI,exports.baseUnary=ck,exports.calculateMathMLDimensions=yp,exports.calculateTextHeight=hS,exports.calculateTextWidth=dS,exports.cleanAndMerge=xS,exports.clear=jp,exports.clear$1=ZP,exports.clear$2=GA,exports.clear2=qP,exports.cloneArrayBuffer=jw,exports.cloneBuffer=Bw,exports.cloneDeep=function e(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array)return t.map(t=>e(t));if(t instanceof Object){const r={};for(const n in t)t.hasOwnProperty(n)&&(r[n]=e(t[n]));return r}return t},exports.cloneTypedArray=Nw,exports.color=Df,exports.commonDb_exports=Pp,exports.common_default=xp,exports.commonjsGlobal=An,exports.computeDimensionOfText=kT,exports.configureSvgSize=kp,exports.constant=fy,exports.constant$1=Qf,exports.copyArray=Dw,exports.copyObject=vk,exports.cos=by,exports.createText=AT,exports.curveBasis=Ry,exports.darken=qu,exports.dayjs2=yu,exports.debounce=at,exports.decodeEntities=kS,exports.defaultCalendarControlStrings=vr,exports.defaultCalendarMonthStrings=lr,exports.defaultConfig2=Hp,exports.defaultConfig_default=Td,exports.defaultSelectWeekStrings=hr,exports.define=bf,exports.detectContentType=ct,exports.epsilon=ky,exports.eq=fw,exports.evaluate=sp,exports.every=function(e,t){return e.every(t)},exports.extend=vf,exports.filter=function(e,t){return e.filter(t)},exports.formatTime=pi,exports.generateId=iS,exports.get=function(e,t,r){const n=Array.isArray(t)?t:t.split(".");let i=e;for(const o of n){if(null==i)return r;i=i[o]}return void 0===i?r:i},exports.getAccDescription=zp,exports.getAccTitle=Dp,exports.getAugmentedNamespace=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r},exports.getConfig=Fd,exports.getConfig2=Wp,exports.getContentType=e=>ct(e).type,exports.getDefaultExportFromCjs=En,exports.getDiagramTitle=Rp,exports.getEdgeId=SS,exports.getIconSVG=uT,exports.getLineFunctionsWithOffset=SC,exports.getRegisteredLayoutAlgorithm=xM,exports.getStylesFromArray=rS,exports.getSubGraphTitleMargins=_C,exports.getThemeVariables3=yd,exports.getUrl=ap,exports.getUserDefinedConfig=Gd,exports.groupBy=function(e,t){return e.reduce((e,r)=>{const n=String(t(r));return e[n]||(e[n]=[]),e[n].push(r),e},{})},exports.halfPi=_y,exports.hasKatex=mp,exports.hue=function(e,t){var r=t-e;return r?em(e,r>180||r<-180?r-360*Math.round(r/360):r):Qf(isNaN(e)?t:e)},exports.identity=Pk,exports.initCloneObject=Ww,exports.insertCluster=UA,exports.insertEdge=cM,exports.insertEdgeLabel=QP,exports.insertNode=VP,exports.interpolateNumber=im,exports.interpolateRgb=nm,exports.interpolateString=sm,exports.isArguments=Jw,exports.isArray=Yw,exports.isArrayLike=Kw,exports.isBuffer=rk,exports.isDark=$u,exports.isEmpty=kI,exports.isEmpty$1=function(e){return null==e||("string"==typeof e||Array.isArray(e)?0===e.length:"object"==typeof e&&0===Object.keys(e).length)},exports.isIndex=Ck,exports.isLabelStyle=PC,exports.isLength=Zw,exports.isObject=YC,exports.isObjectLike=qw,exports.isTypedArray=fk,exports.isValidShape=RP,exports.lighten=Wu,exports.line=Ly,exports.lineBreakRegex=Xd,exports.load=vC,exports.log=wu,exports.map=function(e,t){return e.map(t)},exports.markers_default=fM,exports.max=vy,exports.memoize=ww,exports.min=xy,exports.nodeUtil=pk,exports.nogamma=rm,exports.package_default=fu,exports.parseFontSize=vS,exports.parseGenericTypes=up,exports.pi=Sy,exports.positionEdgeLabel=tM,exports.positionNode=HP,exports.random=aS,exports.registerIconPacks=sT,exports.render=vM,exports.renderKatexSanitized=vp,exports.replaceIconSubstring=TT,exports.rgbConvert=Ff,exports.rgba=Fu,exports.sanitizeText=ep,exports.sanitizeUrl_1=NC,exports.select=yf,exports.selectSvgElement=kb,exports.set=function(e,t,r){const n=Array.isArray(t)?t:t.split("."),i=n.pop();if(!i)return e;let o=e;for(const a of n)a in o&&"object"==typeof o[a]||(o[a]={}),o=o[a];return o[i]=r,e},exports.setAccDescription=Op,exports.setAccTitle=Np,exports.setConfig2=qp,exports.setDiagramTitle=Fp,exports.setNodeElem=WP,exports.setupGraphViewbox=Sp,exports.setupGraphViewbox2=Gp,exports.sin=Cy,exports.some=function(e,t){return e.some(t)},exports.sqrt=wy,exports.styles2String=MC,exports.tau=Ty,exports.throttle=function(e,t=0){let r=null,n=0;return function(...i){const o=this,a=Date.now();n||(n=a);const s=t-(a-n);s<=0||s>t?(r&&(clearTimeout(r),r=null),n=a,e.apply(o,i)):r||(r=setTimeout(()=>{n=Date.now(),r=null,e.apply(o,i)},s))}},exports.timeKey=gi,exports.uniq=function(e){return Array.from(new Set(e))},exports.uniqBy=function(e,t){const r=new Set;return e.filter(e=>{const n=t(e);return!r.has(n)&&(r.add(n),!0)})},exports.unknownIcon=iT,exports.updateNodeBounds=MA,exports.useApplicationContext=K,exports.useAspectRatioStyles=e=>{const{styles:t}=e,{getBaseStyles:r}=oe();return{aspectRatioStyles:H.useCallback((n,i)=>({...r(e,n,i),...t}),[r,e,t])}},exports.useBrandCenterFonts=(e={})=>{var t,r;const{siteUrl:n,disabled:i,fonts:o}=e,a=K(),{warn:s,error:l}=Q(),[c,u]=x.useState(o??[]),[h,d]=x.useState(!i&&!o),[p,g]=x.useState(),f=x.useRef(!1),m=x.useCallback(async()=>{var e,t;if(i)return;const r=n??(null==(t=null==(e=null==a?void 0:a.pageContext)?void 0:e.web)?void 0:t.absoluteUrl);if(!r){const e="useBrandCenterFonts: no siteUrl provided and pageContext.web.absoluteUrl is not available.";return s(e),g(e),void d(!1)}d(!0),g(void 0);try{let e;if(null==a?void 0:a.graphClient){const t=`${r}/_api/v2.1/brandCenter/brandFonts`;e=await a.graphClient.get(t)}else if(null==a?void 0:a.authProvider){const t=await a.authProvider.getAccessToken([`${new URL(r).origin}/.default`]),n=`${r}/_api/v2.1/brandCenter/brandFonts`,i=await fetch(n,{headers:{Authorization:`Bearer ${t}`,Accept:"application/json"}});if(!i.ok)throw new Error(`Brand Center API returned ${i.status}`);e=await i.json()}else{const t=`${r}/_api/v2.1/brandCenter/brandFonts`,n=await fetch(t,{credentials:"include",headers:{Accept:"application/json"}});if(!n.ok)throw new Error(`Brand Center API returned ${n.status}`);e=await n.json()}const t=(null==e?void 0:e.value)??[];t.forEach(ie),u(t)}catch(o){const e=o instanceof Error?o.message:String(o);l("useBrandCenterFonts: failed to load fonts",o instanceof Error?o:void 0),g(e)}finally{d(!1)}},[i,n,null==(r=null==(t=null==a?void 0:a.pageContext)?void 0:t.web)?void 0:r.absoluteUrl,null==a?void 0:a.graphClient,null==a?void 0:a.authProvider]);x.useEffect(()=>{o?o.forEach(ie):f.current||i||(f.current=!0,m())},[m,o,i]);const y=c.find(e=>e.isDefault),b=c.map(e=>e.name);return{fonts:c,fontFamilyNames:b,defaultFont:y,loading:h,error:p,refresh:m}},exports.useCalendar=er,exports.useCalendarStyles=Rt,exports.useCenterStyles=yt,exports.useComponentUtils=oe,exports.useDataGridStyles=vi,exports.useDateUtils=(e,t,r)=>{const{getFormatRelative:n,formatDate:i}=it(t,e);return{formatUtcDate:(e,t="PP")=>{const r=k.differenceInDays(new Date,k.parseISO(e));let o="";return void 0!==e&&(o=r>7?i(e,t):n(e)),o},formatTime:r=>r.toLocaleTimeString(e,{timeZone:t}),convertDateToUTC:r=>{const n="string"==typeof r?new Date(r):r,i=new Intl.DateTimeFormat(e,{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(n);let o,a,s,l,c,u;for(const e of i)switch(e.type){case"year":o=e.value;break;case"month":a=e.value;break;case"day":s=e.value;break;case"hour":l=e.value;break;case"minute":c=e.value;break;case"second":u=e.value}return new Date(`${o}-${a}-${s}T${l}:${c}:${u}Z`)}}},exports.useDayViewStyles=tr,exports.useGraphAPI=()=>{const e=K(),t=null==e?void 0:e.graphClient,{warn:r,error:n}=Q();return{getUser:x.useCallback(async e=>{if(!t)return r("Graph client not available"),null;try{return await t.get(`/users/${e}`)}catch(i){return n("Error fetching user:",i instanceof Error?i:void 0),null}},[t]),getCurrentUser:x.useCallback(async()=>{if(!t)return r("Graph client not available"),null;try{return await t.get("/me")}catch(e){return n("Error fetching current user:",e instanceof Error?e:void 0),null}},[t]),searchUsers:x.useCallback(async(e,i=10)=>{if(!t)return r("Graph client not available"),[];try{return(await t.get(`/users?$search="displayName:${e}" OR "mail:${e}"&$top=${i}`)).value||[]}catch(o){return n("Error searching users:",o instanceof Error?o:void 0),[]}},[t]),getUserPhoto:x.useCallback(async e=>{if(!t)return r("Graph client not available"),null;try{const r=await t.get(`/users/${e}/photo/$value`);return URL.createObjectURL(r)}catch(i){return n("Error fetching user photo:",i instanceof Error?i:void 0),null}},[t]),graphClient:t}},exports.useGridStyles=ht,exports.useImageUtils=()=>{const{error:e}=Q(),t=x.useCallback(async e=>{const t=await fetch(e).then(e=>e.text());return"data:image/svg+xml;base64,"+btoa(t)},[]),r=x.useCallback(async(t,r,n)=>new Promise((i,o)=>{const a=new Image;a.crossOrigin="anonymous",a.addEventListener("load",()=>{var t;const s=document.createElement("canvas");let l;s.width=r??a.width,s.height=n??a.height,null==(t=null==s?void 0:s.getContext("2d"))||t.drawImage(a,0,0,r??a.width,n??a.height);try{l=s.toDataURL("image/png",1),i(l)}catch(c){ot&&e(`[ImageService.getBase64Image]: Err='${c.message}'`),o(c)}}),a.addEventListener("error",t=>{ot&&e(`[ImageService.getBase64Image]: Image load error='${t.message}'`),o(t)}),a.src=t}),[]),n=x.useCallback(e=>!S.isEmpty(e)&&e.indexOf("data:image/")>=0,[]);return{getBase64ImageFromDOMImg:x.useCallback(t=>{try{const e=document.getElementById(t),r=document.createElement("canvas");r.width=e.width,r.height=e.height;const n=r.getContext("2d");null==n||n.drawImage(e,0,0);return r.toDataURL("image/png")}catch(r){return void(ot&&e(`[getBase64ImageFromDOMImg]: Err='${r.message}'`))}},[]),isBase64Image:n,getImageBase64:r,base64FromSVGUrl:t}},exports.useIndexedDBCache=ee,exports.useLayoutStyles=dt,exports.useLogging=Q,exports.useMensionsStyles=iu,exports.useMermaidDiagramStyles=yL,exports.useNavigationStyles=()=>({root:T.css({width:"100%"}),sectionHeader:T.css({color:w.tokens.colorNeutralForeground3,fontSize:w.tokens.fontSizeBase200,fontWeight:w.tokens.fontWeightSemibold,padding:`${w.tokens.spacingVerticalS} ${w.tokens.spacingHorizontalM}`,textTransform:"uppercase",letterSpacing:"0.5px"})}),exports.useOptionTimeStyles=ui,exports.usePolling=te,exports.useRenderHeaderStyles=Si,exports.useSelectTimeStyles=ci,exports.useShowErrorStyles=_i,exports.useShowMessageStyles=Ti,exports.useSpaceStyles=gt,exports.useSplitPaneStyles=vt,exports.useStackStyles=ft,exports.useStyles=()=>({inputContainer:T.css({marginTop:"auto",marginLeft:"auto","::after":{content:'""',position:"absolute",bottom:0,left:0,right:0,borderBottom:"2px solid transparent",pointerEvents:"none",borderRadius:w.tokens.borderRadiusMedium}}),listContainer:T.css({maxHeight:"400px",overflowY:"auto",overflowX:"hidden","::-webkit-scrollbar":{width:"5px",height:"5px"},"::-webkit-scrollbar-track":{background:w.tokens.colorNeutralBackground4,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:w.tokens.colorBrandStroke2Hover,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:w.tokens.colorNeutralStroke2}}),sugestionsHeader:T.css({color:w.tokens.colorBrandBackground})}),exports.useTimeZoneHelper=()=>{const e=K(),t=x.useMemo(()=>Intl.DateTimeFormat().resolvedOptions().timeZone,[]);return{timeZone:t,convertToUserTimeZone:(e,r)=>{const n=r||t;return C.toZonedTime(e,n)},convertFromUserTimeZone:(e,r)=>{const n=r||t;return C.fromZonedTime(e,n)},formatInTimeZone:(e,r,n)=>{const i=n||t;return C.format(C.toZonedTime(e,i),r,{timeZone:i})},getUserTimeZone:()=>{var r,n;return null==(n=null==(r=null==e?void 0:e.pageContext)?void 0:r.user)||n.preferUserTimeZone,t}}},exports.useUtils=Nt,exports.useVideoStyles=Bi,exports.useWeekViewStyles=Wt,exports.utils_default=CS,exports.withPath=Ay,exports.wrapLabel=cS;
|
|
428
|
+
//# sourceMappingURL=index-CAoOhLkP.cjs.map
|