From 5202c3de215438c29a178d3168e9a0f408c837be Mon Sep 17 00:00:00 2001 From: naiyunzhang <112638343+naiyunzhang@users.noreply.github.com> Date: Mon, 29 Apr 2024 15:12:25 +0800 Subject: [PATCH] Update the chat window UI (#3051) # Description [Pull Request 1338826](https://msdata.visualstudio.com/Vienna/_git/prompt-flow-vsc/pullrequest/1338826): fix: Missing PF icon on the tab [Pull Request 1337516](https://msdata.visualstudio.com/Vienna/_git/prompt-flow-vsc/pullrequest/1337516): fix: Switch connection dropdown should not filter [Pull Request 1335321](https://msdata.visualstudio.com/Vienna/_git/prompt-flow-vsc/pullrequest/1335321): fix: image file path is incorrect in the chat history [Pull Request 1335259](https://msdata.visualstudio.com/Vienna/_git/prompt-flow-vsc/pullrequest/1335259): fix: treat unknown value type as object type in the "init" config # All Promptflow Contribution checklist: - [ ] **The pull request does not introduce [breaking changes].** - [ ] **CHANGELOG is updated for new features, bug fixes or other significant changes.** - [ ] **I have read the [contribution guidelines](../CONTRIBUTING.md).** - [ ] **Create an issue and link to the pull request to get dedicated review from promptflow team. Learn more: [suggested workflow](../CONTRIBUTING.md#suggested-workflow).** ## General Guidelines and Best Practices - [ ] Title of the pull request is clear and informative. - [ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, [see this page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md). ### Testing Guidelines - [ ] Pull request includes test coverage for the included changes. --- .../chat-window/assets/icon-IVYk8x5p.svg | 4 + .../assets/icon_for_dark-3C8HbOu4.svg | 4 + .../{index-T-QEXlSH.js => index-iVCtt0ds.js} | 416 +++++++++--------- .../_service/static/chat-window/index.html | 7 +- 4 files changed, 219 insertions(+), 212 deletions(-) create mode 100644 src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/icon-IVYk8x5p.svg create mode 100644 src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/icon_for_dark-3C8HbOu4.svg rename src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/{index-T-QEXlSH.js => index-iVCtt0ds.js} (71%) diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/icon-IVYk8x5p.svg b/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/icon-IVYk8x5p.svg new file mode 100644 index 00000000000..94763869e9c --- /dev/null +++ b/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/icon-IVYk8x5p.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/icon_for_dark-3C8HbOu4.svg b/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/icon_for_dark-3C8HbOu4.svg new file mode 100644 index 00000000000..d3b60fa41ea --- /dev/null +++ b/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/icon_for_dark-3C8HbOu4.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/index-T-QEXlSH.js b/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/index-iVCtt0ds.js similarity index 71% rename from src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/index-T-QEXlSH.js rename to src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/index-iVCtt0ds.js index 9e6984bdf91..bd9e4d64003 100644 --- a/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/index-T-QEXlSH.js +++ b/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/assets/index-iVCtt0ds.js @@ -1,5 +1,5 @@ (function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('@layer rdg.MeasuringCell{.m1l09lto7-0-0-beta-39{contain:strict;grid-row:1;visibility:hidden}}@layer rdg.Cell{.c1wupbe7-0-0-beta-39{position:relative;padding-block:0;padding-inline:8px;border-inline-end:1px solid var(--rdg-border-color);border-block-end:1px solid var(--rdg-border-color);grid-row-start:var(--rdg-grid-row-start);background-color:inherit;white-space:nowrap;overflow:clip;text-overflow:ellipsis;outline:none}.c1wupbe7-0-0-beta-39[aria-selected=true]{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.Cell{.cd0kgiy7-0-0-beta-39{position:sticky;z-index:1}}@layer rdg.Cell{.c1730fa47-0-0-beta-39{box-shadow:calc(2px * var(--rdg-sign)) 0 5px -2px #8888884d}}@layer rdg.CheckboxLabel{.c1hs68w07-0-0-beta-39{cursor:pointer;display:flex;align-items:center;justify-content:center;position:absolute;top:0;right:0;bottom:0;left:0;margin-inline-end:1px}}@layer rdg.CheckboxInput{.cojpd0n7-0-0-beta-39{all:unset}}@layer rdg.CheckboxIcon{.cwsfieb7-0-0-beta-39{content:"";inline-size:20px;block-size:20px;border:2px solid var(--rdg-border-color);background-color:var(--rdg-background-color)}.cojpd0n7-0-0-beta-39:checked+.cwsfieb7-0-0-beta-39{background-color:var(--rdg-checkbox-color);outline:4px solid var(--rdg-background-color);outline-offset:-6px}.cojpd0n7-0-0-beta-39:focus+.cwsfieb7-0-0-beta-39{border-color:var(--rdg-checkbox-focus-color)}}@layer rdg.CheckboxLabel{.c1fgadbl7-0-0-beta-39{cursor:default}.c1fgadbl7-0-0-beta-39 .cwsfieb7-0-0-beta-39{border-color:var(--rdg-checkbox-disabled-border-color);background-color:var(--rdg-checkbox-disabled-background-color)}}@layer rdg.GroupCellContent{.g1w3c5217-0-0-beta-39{outline:none}}@layer rdg.GroupCellCaret{.cm5tyhw7-0-0-beta-39{margin-inline-start:4px;stroke:currentColor;stroke-width:1.5px;fill:transparent;vertical-align:middle}.cm5tyhw7-0-0-beta-39>path{transition:d .1s}}@layer rdg.DragHandle{.cadd3bp7-0-0-beta-39{--rdg-drag-handle-size: 8px;z-index:0;cursor:move;inline-size:var(--rdg-drag-handle-size);block-size:var(--rdg-drag-handle-size);background-color:var(--rdg-selection-color);place-self:end}.cadd3bp7-0-0-beta-39:hover{--rdg-drag-handle-size: 16px;border:2px solid var(--rdg-selection-color);background-color:var(--rdg-background-color)}}@layer rdg.DragHandle{.ccmuez27-0-0-beta-39{z-index:1;position:sticky}}@layer rdg.EditCell{.c1tngyp17-0-0-beta-39{padding:0}}@layer rdg.SortableHeaderCell{.hizp7y17-0-0-beta-39{display:flex}}@layer rdg.SortableHeaderCellName{.h14cojrm7-0-0-beta-39{flex-grow:1;overflow:clip;text-overflow:ellipsis}}@layer rdg.HeaderCell{.celq7o97-0-0-beta-39{cursor:pointer}}@layer rdg.HeaderCell{.ceqw94e7-0-0-beta-39{touch-action:none}}@layer rdg.HeaderCell{.r12jy2ca7-0-0-beta-39{cursor:col-resize;position:absolute;inset-block-start:0;inset-inline-end:0;inset-block-end:0;inline-size:10px}}.c1j3os1p7-0-0-beta-39{opacity:.5}.c1ui3nad7-0-0-beta-39{background-color:var(--rdg-header-draggable-background-color)}@layer rdg.Row{.r1otpg647-0-0-beta-39{display:contents;line-height:var(--rdg-row-height);background-color:var(--rdg-background-color)}.r1otpg647-0-0-beta-39:hover{background-color:var(--rdg-row-hover-background-color)}.r1otpg647-0-0-beta-39[aria-selected=true]{background-color:var(--rdg-row-selected-background-color)}.r1otpg647-0-0-beta-39[aria-selected=true]:hover{background-color:var(--rdg-row-selected-hover-background-color)}}@layer rdg.FocusSink{.rel5gk27-0-0-beta-39{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.FocusSink{.r1qymf1z7-0-0-beta-39:before{content:"";display:inline-block;height:100%;position:sticky;inset-inline-start:0;border-inline-start:2px solid var(--rdg-selection-color)}}@layer rdg.HeaderRow{.h197vzie7-0-0-beta-39{display:contents;line-height:var(--rdg-header-row-height);background-color:var(--rdg-header-background-color);font-weight:700}.h197vzie7-0-0-beta-39>.c1wupbe7-0-0-beta-39{z-index:2;position:sticky}.h197vzie7-0-0-beta-39>.cd0kgiy7-0-0-beta-39{z-index:3}}@layer rdg.Cell{.ccpfvsn7-0-0-beta-39{background-color:#ccf}}@layer rdg.Cell{.c1bmg16t7-0-0-beta-39{background-color:#ccf}.c1bmg16t7-0-0-beta-39.ccpfvsn7-0-0-beta-39{background-color:#99f}}@layer rdg.SortIcon{.a1mygwml7-0-0-beta-39{fill:currentColor}.a1mygwml7-0-0-beta-39>path{transition:d .1s}}@layer rdg{@layer Defaults,FocusSink,CheckboxInput,CheckboxIcon,CheckboxLabel,Cell,HeaderCell,SummaryCell,EditCell,Row,HeaderRow,SummaryRow,GroupedRow,Root;@layer Defaults{.r104f42s7-0-0-beta-39 *,.r104f42s7-0-0-beta-39 *:before,.r104f42s7-0-0-beta-39 *:after{box-sizing:inherit}}@layer Root{.r104f42s7-0-0-beta-39{--rdg-color: #000;--rdg-border-color: #ddd;--rdg-summary-border-color: #aaa;--rdg-background-color: hsl(0deg 0% 100%);--rdg-header-background-color: hsl(0deg 0% 97.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 90.5%);--rdg-row-hover-background-color: hsl(0deg 0% 96%);--rdg-row-selected-background-color: hsl(207deg 76% 92%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 88%);--rdg-checkbox-color: hsl(207deg 100% 29%);--rdg-checkbox-focus-color: hsl(207deg 100% 69%);--rdg-checkbox-disabled-border-color: #ccc;--rdg-checkbox-disabled-background-color: #ddd;--rdg-selection-color: #66afe9;--rdg-font-size: 14px;display:grid;color-scheme:var(--rdg-color-scheme, light dark);contain:content;content-visibility:auto;block-size:350px;border:1px solid var(--rdg-border-color);box-sizing:border-box;overflow:auto;background-color:var(--rdg-background-color);color:var(--rdg-color);font-size:var(--rdg-font-size)}.r104f42s7-0-0-beta-39:before{content:"";grid-column:1/-1;grid-row:1/-1}.r104f42s7-0-0-beta-39.rdg-dark{--rdg-color-scheme: dark;--rdg-color: #ddd;--rdg-border-color: #444;--rdg-summary-border-color: #555;--rdg-background-color: hsl(0deg 0% 13%);--rdg-header-background-color: hsl(0deg 0% 10.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 17.5%);--rdg-row-hover-background-color: hsl(0deg 0% 9%);--rdg-row-selected-background-color: hsl(207deg 76% 42%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 38%);--rdg-checkbox-color: hsl(207deg 100% 79%);--rdg-checkbox-focus-color: hsl(207deg 100% 89%);--rdg-checkbox-disabled-border-color: #000;--rdg-checkbox-disabled-background-color: #333}.r104f42s7-0-0-beta-39.rdg-light{--rdg-color-scheme: light}@media (prefers-color-scheme: dark){.r104f42s7-0-0-beta-39:not(.rdg-light){--rdg-color: #ddd;--rdg-border-color: #444;--rdg-summary-border-color: #555;--rdg-background-color: hsl(0deg 0% 13%);--rdg-header-background-color: hsl(0deg 0% 10.5%);--rdg-header-draggable-background-color: hsl(0deg 0% 17.5%);--rdg-row-hover-background-color: hsl(0deg 0% 9%);--rdg-row-selected-background-color: hsl(207deg 76% 42%);--rdg-row-selected-hover-background-color: hsl(207deg 76% 38%);--rdg-checkbox-color: hsl(207deg 100% 79%);--rdg-checkbox-focus-color: hsl(207deg 100% 89%);--rdg-checkbox-disabled-border-color: #000;--rdg-checkbox-disabled-background-color: #333}}}}@layer rdg.Root{.v7ly7s7-0-0-beta-39{-webkit-user-select:none;user-select:none}.v7ly7s7-0-0-beta-39 .r1otpg647-0-0-beta-39{cursor:move}}@layer rdg.FocusSink{.fc4f4zb7-0-0-beta-39{grid-column:1/-1;pointer-events:none;z-index:1}}@layer rdg.FocusSink{.fq51q037-0-0-beta-39{z-index:3}}@layer rdg.SummaryCell{.s1n3hxke7-0-0-beta-39{inset-block-start:var(--rdg-summary-row-top);inset-block-end:var(--rdg-summary-row-bottom)}}@layer rdg.SummaryRow{.snfqesz7-0-0-beta-39{line-height:var(--rdg-summary-row-height)}.snfqesz7-0-0-beta-39>.c1wupbe7-0-0-beta-39{position:sticky}}@layer rdg.SummaryRow{.t1jijrjz7-0-0-beta-39>.c1wupbe7-0-0-beta-39{z-index:2}.t1jijrjz7-0-0-beta-39>.cd0kgiy7-0-0-beta-39{z-index:3}}@layer rdg.SummaryRow{.t14bmecc7-0-0-beta-39>.c1wupbe7-0-0-beta-39{border-block-end:2px solid var(--rdg-summary-border-color)}}@layer rdg.SummaryRow{.b1odhhml7-0-0-beta-39>.c1wupbe7-0-0-beta-39{border-block-start:2px solid var(--rdg-summary-border-color)}}@layer rdg.GroupedRow{.gyxx7e97-0-0-beta-39:not([aria-selected=true]){background-color:var(--rdg-header-background-color)}.gyxx7e97-0-0-beta-39>.c1wupbe7-0-0-beta-39:not(:last-child):not(.c1730fa47-0-0-beta-39){border-inline-end:none}}@layer rdg.TextEditor{.tlmcuo07-0-0-beta-39{-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;inline-size:100%;block-size:100%;padding-block:0;padding-inline:6px;border:2px solid #ccc;vertical-align:top;color:var(--rdg-color);background-color:var(--rdg-background-color);font-family:inherit;font-size:var(--rdg-font-size)}.tlmcuo07-0-0-beta-39:focus{border-color:var(--rdg-selection-color);outline:none}.tlmcuo07-0-0-beta-39::placeholder{color:#999;opacity:1}}')),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})(); -var Mke=Object.defineProperty;var Lke=(e,t,r)=>t in e?Mke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var jke=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Be=(e,t,r)=>(Lke(e,typeof t!="symbol"?t+"":t,r),r);var v_t=jke((I_t,h8)=>{function Fre(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var Ns=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bre={exports:{}},Qx={},Mre={exports:{}},br={};/** +var $ke=Object.defineProperty;var Pke=(e,t,r)=>t in e?$ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var qke=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Be=(e,t,r)=>(Pke(e,typeof t!="symbol"?t+"":t,r),r);var w_t=qke((B_t,p8)=>{function Bre(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var Ns=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mre={exports:{}},Zx={},Lre={exports:{}},Er={};/** * @license React * react.production.min.js * @@ -7,7 +7,7 @@ var Mke=Object.defineProperty;var Lke=(e,t,r)=>t in e?Mke(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var L_=Symbol.for("react.element"),zke=Symbol.for("react.portal"),Hke=Symbol.for("react.fragment"),$ke=Symbol.for("react.strict_mode"),Pke=Symbol.for("react.profiler"),qke=Symbol.for("react.provider"),Wke=Symbol.for("react.context"),Gke=Symbol.for("react.forward_ref"),Kke=Symbol.for("react.suspense"),Vke=Symbol.for("react.memo"),Uke=Symbol.for("react.lazy"),RP=Symbol.iterator;function Yke(e){return e===null||typeof e!="object"?null:(e=RP&&e[RP]||e["@@iterator"],typeof e=="function"?e:null)}var Lre={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jre=Object.assign,zre={};function sv(e,t,r){this.props=e,this.context=t,this.refs=zre,this.updater=r||Lre}sv.prototype.isReactComponent={};sv.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};sv.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Hre(){}Hre.prototype=sv.prototype;function p8(e,t,r){this.props=e,this.context=t,this.refs=zre,this.updater=r||Lre}var g8=p8.prototype=new Hre;g8.constructor=p8;jre(g8,sv.prototype);g8.isPureReactComponent=!0;var OP=Array.isArray,$re=Object.prototype.hasOwnProperty,v8={current:null},Pre={key:!0,ref:!0,__self:!0,__source:!0};function qre(e,t,r){var n,o={},i=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)$re.call(t,n)&&!Pre.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(a===1)o.children=r;else if(1t in e?Mke(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var eAe=A,tAe=Symbol.for("react.element"),rAe=Symbol.for("react.fragment"),nAe=Object.prototype.hasOwnProperty,oAe=eAe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,iAe={key:!0,ref:!0,__self:!0,__source:!0};function Wre(e,t,r){var n,o={},i=null,s=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)nAe.call(t,n)&&!iAe.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:tAe,type:e,key:i,ref:s,props:o,_owner:oAe.current}}Qx.Fragment=rAe;Qx.jsx=Wre;Qx.jsxs=Wre;Bre.exports=Qx;var N=Bre.exports;const sAe=zf(N),aAe=Fre({__proto__:null,default:sAe},[N]);var FP={},uk=void 0;try{uk=window}catch{}function y8(e,t){if(typeof uk<"u"){var r=uk.__packages__=uk.__packages__||{};if(!r[e]||!FP[e]){FP[e]=t;var n=r[e]=r[e]||[];n.push(t)}}}y8("@fluentui/set-version","6.0.0");var dF=function(e,t){return dF=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},dF(e,t)};function Sc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");dF(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _e=function(){return _e=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function cu(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n"u"?mm.none:mm.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=(n=r==null?void 0:r.classNameToArgs)!==null&&n!==void 0?n:this._classNameToArgs,this._counter=(o=r==null?void 0:r.counter)!==null&&o!==void 0?o:this._counter,this._keyToClassName=(s=(i=this._config.classNameCache)!==null&&i!==void 0?i:r==null?void 0:r.keyToClassName)!==null&&s!==void 0?s:this._keyToClassName,this._preservedRules=(a=r==null?void 0:r.preservedRules)!==null&&a!==void 0?a:this._preservedRules,this._rules=(l=r==null?void 0:r.rules)!==null&&l!==void 0?l:this._rules}return e.getInstance=function(){if(Hp=c0[BP],!Hp||Hp._lastStyleElement&&Hp._lastStyleElement.ownerDocument!==document){var t=(c0==null?void 0:c0.FabricConfig)||{},r=new e(t.mergeStyles,t.serializedStylesheet);Hp=r,c0[BP]=r}return Hp},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(t){this._config=_e(_e({},this._config),t)},e.prototype.onReset=function(t){var r=this;return this._onResetCallbacks.push(t),function(){r._onResetCallbacks=r._onResetCallbacks.filter(function(n){return n!==t})}},e.prototype.onInsertRule=function(t){var r=this;return this._onInsertRuleCallbacks.push(t),function(){r._onInsertRuleCallbacks=r._onInsertRuleCallbacks.filter(function(n){return n!==t})}},e.prototype.getClassName=function(t){var r=this._config.namespace,n=t||this._config.defaultPrefix;return"".concat(r?r+"-":"").concat(n,"-").concat(this._counter++)},e.prototype.cacheClassName=function(t,r,n,o){this._keyToClassName[r]=t,this._classNameToArgs[t]={args:n,rules:o}},e.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.args},e.prototype.insertedRulesFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.rules},e.prototype.insertRule=function(t,r){var n=this._config.injectionMode,o=n!==mm.none?this._getStyleElement():void 0;if(r&&this._preservedRules.push(t),o)switch(n){case mm.insertNode:var i=o.sheet;try{i.insertRule(t,i.cssRules.length)}catch{}break;case mm.appendChild:o.appendChild(document.createTextNode(t));break}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach(function(s){return s()})},e.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(t){return t()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var t=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),uAe||window.requestAnimationFrame(function(){t._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var t=document.head,r=document.createElement("style"),n=null;r.setAttribute("data-merge-styles","true");var o=this._config.cspSettings;if(o&&o.nonce&&r.setAttribute("nonce",o.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();i?n=i.nextElementSibling:n=t.childNodes[0]}return t.insertBefore(r,t.contains(n)?n:null),this._lastStyleElement=r,r},e.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},e}();function Gre(){for(var e=[],t=0;t=0)i(u.split(" "));else{var c=o.argsFromClassName(u);c?i(c):r.indexOf(u)===-1&&r.push(u)}else Array.isArray(u)?i(u):typeof u=="object"&&n.push(u)}}return i(e),{classes:r,objects:n}}function Kre(e){Y0!==e&&(Y0=e)}function Vre(){return Y0===void 0&&(Y0=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),Y0}var Y0;Y0=Vre();function Zx(){return{rtl:Vre()}}var MP={};function cAe(e,t){var r=e[t];r.charAt(0)!=="-"&&(e[t]=MP[r]=MP[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase())}var DS;function fAe(){var e;if(!DS){var t=typeof document<"u"?document:void 0,r=typeof navigator<"u"?navigator:void 0,n=(e=r==null?void 0:r.userAgent)===null||e===void 0?void 0:e.toLowerCase();t?DS={isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!!(r&&(/rv:11.0/i.test(r.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:DS={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return DS}var LP={"user-select":1};function dAe(e,t){var r=fAe(),n=e[t];if(LP[n]){var o=e[t+1];LP[n]&&(r.isWebkit&&e.push("-webkit-"+n,o),r.isMoz&&e.push("-moz-"+n,o),r.isMs&&e.push("-ms-"+n,o),r.isOpera&&e.push("-o-"+n,o))}}var hAe=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function pAe(e,t){var r=e[t],n=e[t+1];if(typeof n=="number"){var o=hAe.indexOf(r)>-1,i=r.indexOf("--")>-1,s=o||i?"":"px";e[t+1]="".concat(n).concat(s)}}var FS,yd="left",bd="right",gAe="@noflip",jP=(FS={},FS[yd]=bd,FS[bd]=yd,FS),zP={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function vAe(e,t,r){if(e.rtl){var n=t[r];if(!n)return;var o=t[r+1];if(typeof o=="string"&&o.indexOf(gAe)>=0)t[r+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(n.indexOf(yd)>=0)t[r]=n.replace(yd,bd);else if(n.indexOf(bd)>=0)t[r]=n.replace(bd,yd);else if(String(o).indexOf(yd)>=0)t[r+1]=o.replace(yd,bd);else if(String(o).indexOf(bd)>=0)t[r+1]=o.replace(bd,yd);else if(jP[n])t[r]=jP[n];else if(zP[o])t[r+1]=zP[o];else switch(n){case"margin":case"padding":t[r+1]=yAe(o);break;case"box-shadow":t[r+1]=mAe(o,0);break}}}function mAe(e,t){var r=e.split(" "),n=parseInt(r[t],10);return r[0]=r[0].replace(String(n),String(n*-1)),r.join(" ")}function yAe(e){if(typeof e=="string"){var t=e.split(" ");if(t.length===4)return"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}function bAe(e){for(var t=[],r=0,n=0,o=0;or&&t.push(e.substring(r,o)),r=o+1);break}return r-1&&t.push([n.index,n.index+n[0].length,n[1].split(",").map(function(o){return":global(".concat(o.trim(),")")}).join(", ")]);return t.reverse().reduce(function(o,i){var s=i[0],a=i[1],l=i[2],u=o.slice(0,s),c=o.slice(a);return u+l+c},e)}function HP(e,t){return e.indexOf(":global(")>=0?e.replace(Ure,"$1"):e.indexOf(":")===0?t+e:e.indexOf("&")<0?t+" "+e:e}function $P(e,t,r,n){t===void 0&&(t={__order:[]}),r.indexOf("@")===0?(r=r+"{"+e,X0([n],t,r)):r.indexOf(",")>-1?SAe(r).split(",").map(function(o){return o.trim()}).forEach(function(o){return X0([n],t,HP(o,e))}):X0([n],t,HP(r,e))}function X0(e,t,r){t===void 0&&(t={__order:[]}),r===void 0&&(r="&");var n=yl.getInstance(),o=t[r];o||(o={},t[r]=o,t.__order.push(r));for(var i=0,s=e;i0){r.subComponentStyles={};var d=r.subComponentStyles,h=function(g){if(n.hasOwnProperty(g)){var v=n[g];d[g]=function(y){return j_.apply(void 0,v.map(function(E){return typeof E=="function"?E(y):E}))}}};for(var u in n)h(u)}return r}function mi(){for(var e=[],t=0;t"u")){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:hF}}var rne=function(){function e(t,r){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=r,this._noop=function(){}}return e.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(t,r){var n=this,o=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),o=setTimeout(function(){try{n._timeoutIds&&delete n._timeoutIds[o],t.apply(n._parent)}catch(i){n._logError(i)}},r),this._timeoutIds[o]=!0),o},e.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},e.prototype.setImmediate=function(t,r){var n=this,o=0,i=ho(r);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var s=function(){try{n._immediateIds&&delete n._immediateIds[o],t.apply(n._parent)}catch(a){n._logError(a)}};o=i.setTimeout(s,0),this._immediateIds[o]=!0}return o},e.prototype.clearImmediate=function(t,r){var n=ho(r);this._immediateIds&&this._immediateIds[t]&&(n.clearTimeout(t),delete this._immediateIds[t])},e.prototype.setInterval=function(t,r){var n=this,o=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),o=setInterval(function(){try{t.apply(n._parent)}catch(i){n._logError(i)}},r),this._intervalIds[o]=!0),o},e.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},e.prototype.throttle=function(t,r,n){var o=this;if(this._isDisposed)return this._noop;var i=r||0,s=!0,a=!0,l=0,u,c,f=null;n&&typeof n.leading=="boolean"&&(s=n.leading),n&&typeof n.trailing=="boolean"&&(a=n.trailing);var d=function(g){var v=Date.now(),y=v-l,E=s?i-y:i;return y>=i&&(!g||s)?(l=v,f&&(o.clearTimeout(f),f=null),u=t.apply(o._parent,c)):f===null&&a&&(f=o.setTimeout(d,E)),u},h=function(){for(var g=[],v=0;v=s&&(I=!0),c=x);var C=x-c,R=s-C,D=x-f,L=!1;return u!==null&&(D>=u&&g?L=!0:R=Math.min(R,u-D)),C>=s||L||I?y(x):(g===null||!T)&&l&&(g=o.setTimeout(E,R)),d},_=function(){return!!g},S=function(){_()&&v(Date.now())},b=function(){return _()&&y(Date.now()),d},k=function(){for(var T=[],x=0;x-1)for(var s=r.split(/[ ,]+/),a=0;a"u")){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var u2,Cy=0,one=mr({overflow:"hidden !important"}),PP="data-is-scrollable",IAe=function(e,t){if(e){var r=0,n=null,o=function(s){s.targetTouches.length===1&&(r=s.targetTouches[0].clientY)},i=function(s){if(s.targetTouches.length===1&&(s.stopPropagation(),!!n)){var a=s.targetTouches[0].clientY-r,l=sne(s.target);l&&(n=l),n.scrollTop===0&&a>0&&s.preventDefault(),n.scrollHeight-Math.ceil(n.scrollTop)<=n.clientHeight&&a<0&&s.preventDefault()}};t.on(e,"touchstart",o,{passive:!1}),t.on(e,"touchmove",i,{passive:!1}),n=e}},CAe=function(e,t){if(e){var r=function(n){n.stopPropagation()};t.on(e,"touchmove",r,{passive:!1})}},ine=function(e){e.preventDefault()};function NAe(){var e=cs();e&&e.body&&!Cy&&(e.body.classList.add(one),e.body.addEventListener("touchmove",ine,{passive:!1,capture:!1})),Cy++}function RAe(){if(Cy>0){var e=cs();e&&e.body&&Cy===1&&(e.body.classList.remove(one),e.body.removeEventListener("touchmove",ine)),Cy--}}function OAe(){if(u2===void 0){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),u2=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return u2}function sne(e){for(var t=e,r=cs(e);t&&t!==r.body;){if(t.getAttribute(PP)==="true")return t;t=t.parentElement}for(t=e;t&&t!==r.body;){if(t.getAttribute(PP)!=="false"){var n=getComputedStyle(t),o=n?n.getPropertyValue("overflow-y"):"";if(o&&(o==="scroll"||o==="auto"))return t}t=t.parentElement}return(!t||t===r.body)&&(t=ho(e)),t}var DAe=void 0;function ane(e){console&&console.warn&&console.warn(e)}var c2="__globalSettings__",S8="__callbacks__",FAe=0,lne=function(){function e(){}return e.getValue=function(t,r){var n=pF();return n[t]===void 0&&(n[t]=typeof r=="function"?r():r),n[t]},e.setValue=function(t,r){var n=pF(),o=n[S8],i=n[t];if(r!==i){n[t]=r;var s={oldValue:i,value:r,key:t};for(var a in o)o.hasOwnProperty(a)&&o[a](s)}return r},e.addChangeListener=function(t){var r=t.__id__,n=qP();r||(r=t.__id__=String(FAe++)),n[r]=t},e.removeChangeListener=function(t){var r=qP();delete r[t.__id__]},e}();function pF(){var e,t=ho(),r=t||{};return r[c2]||(r[c2]=(e={},e[S8]={},e)),r[c2]}function qP(){var e=pF();return e[S8]}var Kt={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pauseBreak:19,capslock:20,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,del:46,zero:48,one:49,two:50,three:51,four:52,five:53,six:54,seven:55,eight:56,nine:57,colon:58,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftWindow:91,rightWindow:92,select:93,zero_numpad:96,one_numpad:97,two_numpad:98,three_numpad:99,four_numpad:100,five_numpad:101,six_numpad:102,seven_numpad:103,eight_numpad:104,nine_numpad:105,multiply:106,add:107,subtract:109,decimalPoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrollLock:145,semicolon:186,equalSign:187,comma:188,dash:189,period:190,forwardSlash:191,graveAccent:192,openBracket:219,backSlash:220,closeBracket:221,singleQuote:222},dl=function(){function e(t,r,n,o){t===void 0&&(t=0),r===void 0&&(r=0),n===void 0&&(n=0),o===void 0&&(o=0),this.top=n,this.bottom=o,this.left=t,this.right=r}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),e.prototype.equals=function(t){return parseFloat(this.top.toFixed(4))===parseFloat(t.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(t.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(t.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(t.right.toFixed(4))},e}();function BAe(e){for(var t=[],r=1;r-1&&o._virtual.children.splice(i,1)}r._virtual.parent=n||void 0,n&&(n._virtual||(n._virtual={children:[]}),n._virtual.children.push(r))}var KAe="data-is-focusable",VAe="data-is-visible",UAe="data-focuszone-id",YAe="data-is-sub-focuszone";function XAe(e,t,r){return Xi(e,t,!0,!1,!1,r)}function QAe(e,t,r){return xs(e,t,!0,!1,!0,r)}function ZAe(e,t,r,n){return n===void 0&&(n=!0),Xi(e,t,n,!1,!1,r,!1,!0)}function JAe(e,t,r,n){return n===void 0&&(n=!0),xs(e,t,n,!1,!0,r,!1,!0)}function exe(e,t){var r=Xi(e,e,!0,!1,!1,!0,void 0,void 0,t);return r?(hne(r),!0):!1}function xs(e,t,r,n,o,i,s,a){if(!t||!s&&t===e)return null;var l=eT(t);if(o&&l&&(i||!(Jc(t)||k8(t)))){var u=xs(e,t.lastElementChild,!0,!0,!0,i,s,a);if(u){if(a&&qu(u,!0)||!a)return u;var c=xs(e,u.previousElementSibling,!0,!0,!0,i,s,a);if(c)return c;for(var f=u.parentElement;f&&f!==t;){var d=xs(e,f.previousElementSibling,!0,!0,!0,i,s,a);if(d)return d;f=f.parentElement}}}if(r&&l&&qu(t,a))return t;var h=xs(e,t.previousElementSibling,!0,!0,!0,i,s,a);return h||(n?null:xs(e,t.parentElement,!0,!1,!1,i,s,a))}function Xi(e,t,r,n,o,i,s,a,l){if(!t||t===e&&o&&!s)return null;var u=l?fne:eT,c=u(t);if(r&&c&&qu(t,a))return t;if(!o&&c&&(i||!(Jc(t)||k8(t)))){var f=Xi(e,t.firstElementChild,!0,!0,!1,i,s,a,l);if(f)return f}if(t===e)return null;var d=Xi(e,t.nextElementSibling,!0,!0,!1,i,s,a,l);return d||(n?null:Xi(e,t.parentElement,!1,!1,!0,i,s,a,l))}function eT(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(VAe);return t!=null?t==="true":e.offsetHeight!==0||e.offsetParent!==null||e.isVisible===!0}function fne(e){return!!e&&eT(e)&&!e.hidden&&window.getComputedStyle(e).visibility!=="hidden"}function qu(e,t){if(!e||e.disabled)return!1;var r=0,n=null;e&&e.getAttribute&&(n=e.getAttribute("tabIndex"),n&&(r=parseInt(n,10)));var o=e.getAttribute?e.getAttribute(KAe):null,i=n!==null&&r>=0,s=!!e&&o!=="false"&&(e.tagName==="A"||e.tagName==="BUTTON"||e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.tagName==="SELECT"||o==="true"||i);return t?r!==-1&&s:s}function Jc(e){return!!(e&&e.getAttribute&&e.getAttribute(UAe))}function k8(e){return!!(e&&e.getAttribute&&e.getAttribute(YAe)==="true")}function txe(e){var t=cs(e),r=t&&t.activeElement;return!!(r&&Rs(e,r))}function dne(e,t){return PAe(e,t)!=="true"}var BS=void 0;function hne(e){if(e){var t=ho(e);t&&(BS!==void 0&&t.cancelAnimationFrame(BS),BS=t.requestAnimationFrame(function(){e&&e.focus(),BS=void 0}))}}function rxe(e,t){for(var r=e,n=0,o=t;n(e.cacheSize||oxe)){var h=ho();!((l=h==null?void 0:h.FabricConfig)===null||l===void 0)&&l.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(r,"/").concat(n,".")),console.trace()),t.clear(),r=0,e.disableCaching=!0}return u[MS]};return i}function d2(e,t){return t=sxe(t),e.has(t)||e.set(t,new Map),e.get(t)}function WP(e,t){if(typeof t=="function"){var r=t.__cachedInputs__;if(r)for(var n=0,o=t.__cachedInputs__;n"u"?null:WeakMap;function lxe(){fk++}function gs(e,t,r){if(t===void 0&&(t=100),r===void 0&&(r=!1),!pb)return e;if(!GP){var n=yl.getInstance();n&&n.onReset&&yl.getInstance().onReset(lxe),GP=!0}var o,i=0,s=fk;return function(){for(var l=[],u=0;u0&&i>t)&&(o=KP(),i=0,s=fk),c=o;for(var f=0;f=0||l.indexOf("data-")===0||l.indexOf("aria-")===0;u&&(!r||(r==null?void 0:r.indexOf(l))===-1)&&(o[l]=e[l])}return o}function tT(e){Sxe(e,{componentDidMount:Nxe,componentDidUpdate:Rxe,componentWillUnmount:Oxe})}function Nxe(){oA(this.props.componentRef,this)}function Rxe(e){e.componentRef!==this.props.componentRef&&(oA(e.componentRef,null),oA(this.props.componentRef,this))}function Oxe(){oA(this.props.componentRef,null)}function oA(e,t){e&&(typeof e=="object"?e.current=t:typeof e=="function"&&e(t))}var ql,Dxe=(ql={},ql[Kt.up]=1,ql[Kt.down]=1,ql[Kt.left]=1,ql[Kt.right]=1,ql[Kt.home]=1,ql[Kt.end]=1,ql[Kt.tab]=1,ql[Kt.pageUp]=1,ql[Kt.pageDown]=1,ql);function gne(e){return!!Dxe[e]}var Ti="ms-Fabric--isFocusVisible",UP="ms-Fabric--isFocusHidden";function YP(e,t){e&&(e.classList.add(t?Ti:UP),e.classList.remove(t?UP:Ti))}function rT(e,t,r){var n;r?r.forEach(function(o){return YP(o.current,e)}):YP((n=ho(t))===null||n===void 0?void 0:n.document.body,e)}var XP=new WeakMap,QP=new WeakMap;function ZP(e,t){var r,n=XP.get(e);return n?r=n+t:r=1,XP.set(e,r),r}function Fxe(e){var t=QP.get(e);if(t)return t;var r=function(s){return vne(s,e.registeredProviders)},n=function(s){return mne(s,e.registeredProviders)},o=function(s){return yne(s,e.registeredProviders)},i=function(s){return bne(s,e.registeredProviders)};return t={onMouseDown:r,onPointerDown:n,onKeyDown:o,onKeyUp:i},QP.set(e,t),t}var iA=A.createContext(void 0);function Bxe(e){var t=A.useContext(iA);A.useEffect(function(){var r,n,o,i,s=ho(e==null?void 0:e.current);if(!(!s||((r=s.FabricConfig)===null||r===void 0?void 0:r.disableFocusRects)===!0)){var a=s,l,u,c,f;if(!((n=t==null?void 0:t.providerRef)===null||n===void 0)&&n.current&&(!((i=(o=t==null?void 0:t.providerRef)===null||o===void 0?void 0:o.current)===null||i===void 0)&&i.addEventListener)){a=t.providerRef.current;var d=Fxe(t);l=d.onMouseDown,u=d.onPointerDown,c=d.onKeyDown,f=d.onKeyUp}else l=vne,u=mne,c=yne,f=bne;var h=ZP(a,1);return h<=1&&(a.addEventListener("mousedown",l,!0),a.addEventListener("pointerdown",u,!0),a.addEventListener("keydown",c,!0),a.addEventListener("keyup",f,!0)),function(){var g;!s||((g=s.FabricConfig)===null||g===void 0?void 0:g.disableFocusRects)===!0||(h=ZP(a,-1),h===0&&(a.removeEventListener("mousedown",l,!0),a.removeEventListener("pointerdown",u,!0),a.removeEventListener("keydown",c,!0),a.removeEventListener("keyup",f,!0)))}}},[t,e])}var Mxe=function(e){return Bxe(e.rootRef),null};function vne(e,t){rT(!1,e.target,t)}function mne(e,t){e.pointerType!=="mouse"&&rT(!1,e.target,t)}function yne(e,t){gne(e.which)&&rT(!0,e.target,t)}function bne(e,t){gne(e.which)&&rT(!0,e.target,t)}var _ne=function(e){var t=e.providerRef,r=e.layerRoot,n=A.useState([])[0],o=A.useContext(iA),i=o!==void 0&&!r,s=A.useMemo(function(){return i?void 0:{providerRef:t,registeredProviders:n,registerProvider:function(a){n.push(a),o==null||o.registerProvider(a)},unregisterProvider:function(a){o==null||o.unregisterProvider(a);var l=n.indexOf(a);l>=0&&n.splice(l,1)}}},[t,n,o,i]);return A.useEffect(function(){if(s)return s.registerProvider(s.providerRef),function(){return s.unregisterProvider(s.providerRef)}},[s]),s?A.createElement(iA.Provider,{value:s},e.children):A.createElement(A.Fragment,null,e.children)};function Lxe(e){var t=null;try{var r=ho();t=r?r.localStorage.getItem(e):null}catch{}return t}var U1,JP="language";function jxe(e){if(e===void 0&&(e="sessionStorage"),U1===void 0){var t=cs(),r=e==="localStorage"?Lxe(JP):e==="sessionStorage"?une(JP):void 0;r&&(U1=r),U1===void 0&&t&&(U1=t.documentElement.getAttribute("lang")),U1===void 0&&(U1="en")}return U1}function eq(e){for(var t=[],r=1;r-1;e[n]=i?o:Ene(e[n]||{},o,r)}else e[n]=o}return r.pop(),e}var tq=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},zxe=["TEMPLATE","STYLE","SCRIPT"];function Sne(e){var t=cs(e);if(!t)return function(){};for(var r=[];e!==t.body&&e.parentElement;){for(var n=0,o=e.parentElement.children;n"u"||e){var r=ho(),n=(t=r==null?void 0:r.navigator)===null||t===void 0?void 0:t.userAgent;p2=!!n&&n.indexOf("Macintosh")!==-1}return!!p2}function $xe(e){var t=bg(function(r){var n=bg(function(o){return function(i){return r(i,o)}});return function(o,i){return e(o,i?n(i):r)}});return t}var Pxe=bg($xe);function qxe(e,t){return Pxe(e)(t)}var Wxe=["theme","styles"];function kc(e,t,r,n,o){n=n||{scope:"",fields:void 0};var i=n.scope,s=n.fields,a=s===void 0?Wxe:s,l=A.forwardRef(function(c,f){var d=A.useRef(),h=_xe(a,i),g=h.styles;h.dir;var v=av(h,["styles","dir"]),y=r?r(c):void 0,E=d.current&&d.current.__cachedInputs__||[],_=c.styles;if(!d.current||g!==E[1]||_!==E[2]){var S=function(b){return ene(b,t,g,_)};S.__cachedInputs__=[t,g,_],S.__noStyleOverride__=!g&&!_,d.current=S}return A.createElement(e,_e({ref:f},v,y,c,{styles:d.current}))});l.displayName="Styled".concat(e.displayName||e.name);var u=o?A.memo(l):l;return l.displayName&&(u.displayName=l.displayName),u}function z_(e,t){for(var r=_e({},t),n=0,o=Object.keys(e);nn?" (+ ".concat(ym.length-n," more)"):"")),v2=void 0,ym=[]},r)))}function Xxe(e,t,r,n,o){o===void 0&&(o=!1);var i=_e({primaryButtonBorder:"transparent",errorText:n?"#F1707B":"#a4262c",messageText:n?"#F3F2F1":"#323130",messageLink:n?"#6CB8F6":"#005A9E",messageLinkHovered:n?"#82C7FF":"#004578",infoIcon:n?"#C8C6C4":"#605e5c",errorIcon:n?"#F1707B":"#A80000",blockingIcon:n?"#442726":"#FDE7E9",warningIcon:n?"#C8C6C4":"#797775",severeWarningIcon:n?"#FCE100":"#D83B01",successIcon:n?"#92C353":"#107C10",infoBackground:n?"#323130":"#f3f2f1",errorBackground:n?"#442726":"#FDE7E9",blockingBackground:n?"#442726":"#FDE7E9",warningBackground:n?"#433519":"#FFF4CE",severeWarningBackground:n?"#4F2A0F":"#FED9CC",successBackground:n?"#393D1B":"#DFF6DD",warningHighlight:n?"#fff100":"#ffb900",successText:n?"#92c353":"#107C10"},r),s=wne(e,t,i,n);return Qxe(s,o)}function wne(e,t,r,n,o){var i={},s=e||{},a=s.white,l=s.black,u=s.themePrimary,c=s.themeDark,f=s.themeDarker,d=s.themeDarkAlt,h=s.themeLighter,g=s.neutralLight,v=s.neutralLighter,y=s.neutralDark,E=s.neutralQuaternary,_=s.neutralQuaternaryAlt,S=s.neutralPrimary,b=s.neutralSecondary,k=s.neutralSecondaryAlt,T=s.neutralTertiary,x=s.neutralTertiaryAlt,I=s.neutralLighterAlt,C=s.accent;return a&&(i.bodyBackground=a,i.bodyFrameBackground=a,i.accentButtonText=a,i.buttonBackground=a,i.primaryButtonText=a,i.primaryButtonTextHovered=a,i.primaryButtonTextPressed=a,i.inputBackground=a,i.inputForegroundChecked=a,i.listBackground=a,i.menuBackground=a,i.cardStandoutBackground=a),l&&(i.bodyTextChecked=l,i.buttonTextCheckedHovered=l),u&&(i.link=u,i.primaryButtonBackground=u,i.inputBackgroundChecked=u,i.inputIcon=u,i.inputFocusBorderAlt=u,i.menuIcon=u,i.menuHeader=u,i.accentButtonBackground=u),c&&(i.primaryButtonBackgroundPressed=c,i.inputBackgroundCheckedHovered=c,i.inputIconHovered=c),f&&(i.linkHovered=f),d&&(i.primaryButtonBackgroundHovered=d),h&&(i.inputPlaceholderBackgroundChecked=h),g&&(i.bodyBackgroundChecked=g,i.bodyFrameDivider=g,i.bodyDivider=g,i.variantBorder=g,i.buttonBackgroundCheckedHovered=g,i.buttonBackgroundPressed=g,i.listItemBackgroundChecked=g,i.listHeaderBackgroundPressed=g,i.menuItemBackgroundPressed=g,i.menuItemBackgroundChecked=g),v&&(i.bodyBackgroundHovered=v,i.buttonBackgroundHovered=v,i.buttonBackgroundDisabled=v,i.buttonBorderDisabled=v,i.primaryButtonBackgroundDisabled=v,i.disabledBackground=v,i.listItemBackgroundHovered=v,i.listHeaderBackgroundHovered=v,i.menuItemBackgroundHovered=v),E&&(i.primaryButtonTextDisabled=E,i.disabledSubtext=E),_&&(i.listItemBackgroundCheckedHovered=_),T&&(i.disabledBodyText=T,i.variantBorderHovered=(r==null?void 0:r.variantBorderHovered)||T,i.buttonTextDisabled=T,i.inputIconDisabled=T,i.disabledText=T),S&&(i.bodyText=S,i.actionLink=S,i.buttonText=S,i.inputBorderHovered=S,i.inputText=S,i.listText=S,i.menuItemText=S),I&&(i.bodyStandoutBackground=I,i.defaultStateBackground=I),y&&(i.actionLinkHovered=y,i.buttonTextHovered=y,i.buttonTextChecked=y,i.buttonTextPressed=y,i.inputTextHovered=y,i.menuItemTextHovered=y),b&&(i.bodySubtext=b,i.focusBorder=b,i.inputBorder=b,i.smallInputBorder=b,i.inputPlaceholderText=b),k&&(i.buttonBorder=k),x&&(i.disabledBodySubtext=x,i.disabledBorder=x,i.buttonBackgroundChecked=x,i.menuDivider=x),C&&(i.accentButtonBackground=C),t!=null&&t.elevation4&&(i.cardShadow=t.elevation4),!n&&(t!=null&&t.elevation8)?i.cardShadowHovered=t.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),i=_e(_e({},i),r),i}function Qxe(e,t){var r="";return t===!0&&(r=" /* @deprecated */"),e.listTextColor=e.listText+r,e.menuItemBackgroundChecked+=r,e.warningHighlight+=r,e.warningText=e.messageText+r,e.successText+=r,e}function Zxe(e,t){var r,n,o;t===void 0&&(t={});var i=eq({},e,t,{semanticColors:wne(t.palette,t.effects,t.semanticColors,t.isInverted===void 0?e.isInverted:t.isInverted)});if(!((r=t.palette)===null||r===void 0)&&r.themePrimary&&!(!((n=t.palette)===null||n===void 0)&&n.accent)&&(i.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var s=0,a=Object.keys(i.fonts);s"u"?global:window,aq=Ny&&Ny.CSPSettings&&Ny.CSPSettings.nonce,ha=KTe();function KTe(){var e=Ny.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return e.runState||(e=w0(w0({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),e.registeredThemableStyles||(e=w0(w0({},e),{registeredThemableStyles:[]})),Ny.__themeState__=e,e}function VTe(e,t){ha.loadStyles?ha.loadStyles(xne(e).styleString,e):QTe(e)}function UTe(e){ha.theme=e,XTe()}function YTe(e){e===void 0&&(e=3),(e===3||e===2)&&(lq(ha.registeredStyles),ha.registeredStyles=[]),(e===3||e===1)&&(lq(ha.registeredThemableStyles),ha.registeredThemableStyles=[])}function lq(e){e.forEach(function(t){var r=t&&t.styleElement;r&&r.parentElement&&r.parentElement.removeChild(r)})}function XTe(){if(ha.theme){for(var e=[],t=0,r=ha.registeredThemableStyles;t0&&(YTe(1),VTe([].concat.apply([],e)))}}function xne(e){var t=ha.theme,r=!1,n=(e||[]).map(function(o){var i=o.theme;if(i){r=!0;var s=t?t[i]:void 0,a=o.defaultValue||"inherit";return t&&!s&&console&&!(i in t)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(i,'". Falling back to "').concat(a,'".')),s||a}else return o.rawString});return{styleString:n.join(""),themable:r}}function QTe(e){if(!(typeof document>"u")){var t=document.getElementsByTagName("head")[0],r=document.createElement("style"),n=xne(e),o=n.styleString,i=n.themable;r.setAttribute("data-load-themed-styles","true"),aq&&r.setAttribute("nonce",aq),r.appendChild(document.createTextNode(o)),ha.perf.count++,t.appendChild(r);var s=document.createEvent("HTMLEvents");s.initEvent("styleinsert",!0,!1),s.args={newStyle:r},document.dispatchEvent(s);var a={styleElement:r,themableStyle:e};i?ha.registeredThemableStyles.push(a):ha.registeredStyles.push(a)}}var el=H_({}),ZTe=[],yF="theme";function Tne(){var e,t,r,n=ho();!((t=n==null?void 0:n.FabricConfig)===null||t===void 0)&&t.legacyTheme?e9e(n.FabricConfig.legacyTheme):hf.getSettings([yF]).theme||(!((r=n==null?void 0:n.FabricConfig)===null||r===void 0)&&r.theme&&(el=H_(n.FabricConfig.theme)),hf.applySettings((e={},e[yF]=el,e)))}Tne();function JTe(e){return e===void 0&&(e=!1),e===!0&&(el=H_({},e)),el}function e9e(e,t){var r;return t===void 0&&(t=!1),el=H_(e,t),UTe(_e(_e(_e(_e({},el.palette),el.semanticColors),el.effects),t9e(el))),hf.applySettings((r={},r[yF]=el,r)),ZTe.forEach(function(n){try{n(el)}catch{}}),el}function t9e(e){for(var t={},r=0,n=Object.keys(e.fonts);rt.bottom||e.leftt.right)}function aA(e,t){var r=[];return e.topt.bottom&&r.push(kt.bottom),e.leftt.right&&r.push(kt.right),r}function Li(e,t){return e[kt[t]]}function fq(e,t,r){return e[kt[t]]=r,e}function gb(e,t){var r=uv(t);return(Li(e,r.positiveEdge)+Li(e,r.negativeEdge))/2}function iT(e,t){return e>0?t:t*-1}function bF(e,t){return iT(e,Li(t,e))}function ec(e,t,r){var n=Li(e,r)-Li(t,r);return iT(r,n)}function wg(e,t,r,n){n===void 0&&(n=!0);var o=Li(e,t)-r,i=fq(e,t,r);return n&&(i=fq(e,t*-1,Li(e,t*-1)-o)),i}function vb(e,t,r,n){return n===void 0&&(n=0),wg(e,r,Li(t,r)+iT(r,n))}function n9e(e,t,r,n){n===void 0&&(n=0);var o=r*-1,i=iT(o,n);return wg(e,r*-1,Li(t,r)+i)}function lA(e,t,r){var n=bF(r,e);return n>bF(r,t)}function o9e(e,t){for(var r=aA(e,t),n=0,o=0,i=r;o=n}function s9e(e,t,r,n,o,i,s){o===void 0&&(o=!1),s===void 0&&(s=0);var a=[kt.left,kt.right,kt.bottom,kt.top];rs()&&(a[0]*=-1,a[1]*=-1);for(var l=e,u=n.targetEdge,c=n.alignmentEdge,f,d=u,h=c,g=0;g<4;g++){if(lA(l,r,u))return{elementRectangle:l,targetEdge:u,alignmentEdge:c};if(o&&i9e(t,r,u,i)){switch(u){case kt.bottom:l.bottom=r.bottom;break;case kt.top:l.top=r.top;break}return{elementRectangle:l,targetEdge:u,alignmentEdge:c,forcedInBounds:!0}}else{var v=o9e(l,r);(!f||v0&&(a.indexOf(u*-1)>-1?u=u*-1:(c=u,u=a.slice(-1)[0]),l=uA(e,t,{targetEdge:u,alignmentEdge:c},s))}}return l=uA(e,t,{targetEdge:d,alignmentEdge:h},s),{elementRectangle:l,targetEdge:d,alignmentEdge:h}}function a9e(e,t,r,n){var o=e.alignmentEdge,i=e.targetEdge,s=e.elementRectangle,a=o*-1,l=uA(s,t,{targetEdge:i,alignmentEdge:a},r,n);return{elementRectangle:l,targetEdge:i,alignmentEdge:a}}function l9e(e,t,r,n,o,i,s,a,l){o===void 0&&(o=!1),s===void 0&&(s=0);var u=n.alignmentEdge,c=n.alignTargetEdge,f={elementRectangle:e,targetEdge:n.targetEdge,alignmentEdge:u};!a&&!l&&(f=s9e(e,t,r,n,o,i,s));var d=aA(f.elementRectangle,r),h=a?-f.targetEdge:void 0;if(d.length>0)if(c)if(f.alignmentEdge&&d.indexOf(f.alignmentEdge*-1)>-1){var g=a9e(f,t,s,l);if(A8(g.elementRectangle,r))return g;f=y2(aA(g.elementRectangle,r),f,r,h)}else f=y2(d,f,r,h);else f=y2(d,f,r,h);return f}function y2(e,t,r,n){for(var o=0,i=e;oMath.abs(ec(e,r,t*-1))?t*-1:t}function u9e(e,t,r){return r!==void 0&&Li(e,t)===Li(r,t)}function c9e(e,t,r,n,o,i,s,a){var l={},u=sT(t),c=i?r:r*-1,f=o||uv(r).positiveEdge;return(!s||u9e(e,A9e(f),n))&&(f=Cne(e,f,n)),l[kt[c]]=ec(e,u,c),l[kt[f]]=ec(e,u,f),a&&(l[kt[c*-1]]=ec(e,u,c*-1),l[kt[f*-1]]=ec(e,u,f*-1)),l}function f9e(e){return Math.sqrt(e*e*2)}function d9e(e,t,r){if(e===void 0&&(e=_o.bottomAutoEdge),r)return{alignmentEdge:r.alignmentEdge,isAuto:r.isAuto,targetEdge:r.targetEdge};var n=_e({},cq[e]);return rs()?(n.alignmentEdge&&n.alignmentEdge%2===0&&(n.alignmentEdge=n.alignmentEdge*-1),t!==void 0?cq[t]:n):n}function h9e(e,t,r,n,o){return e.isAuto&&(e.alignmentEdge=Nne(e.targetEdge,t,r)),e.alignTargetEdge=o,e}function Nne(e,t,r){var n=gb(t,e),o=gb(r,e),i=uv(e),s=i.positiveEdge,a=i.negativeEdge;return n<=o?s:a}function p9e(e,t,r,n,o,i,s,a,l){i===void 0&&(i=!1);var u=uA(e,t,n,o,l);return A8(u,r)?{elementRectangle:u,targetEdge:n.targetEdge,alignmentEdge:n.alignmentEdge}:l9e(u,t,r,n,i,s,o,a,l)}function g9e(e,t,r){var n=e.targetEdge*-1,o=new dl(0,e.elementRectangle.width,0,e.elementRectangle.height),i={},s=Cne(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:uv(n).positiveEdge,r),a=ec(e.elementRectangle,e.targetRectangle,n),l=a>Math.abs(Li(t,n));return i[kt[n]]=Li(t,n),i[kt[s]]=ec(t,o,s),{elementPosition:_e({},i),closestEdge:Nne(e.targetEdge,t,o),targetEdge:n,hideBeak:!l}}function v9e(e,t){var r=t.targetRectangle,n=uv(t.targetEdge),o=n.positiveEdge,i=n.negativeEdge,s=gb(r,t.targetEdge),a=new dl(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new dl(0,e,0,e);return l=wg(l,t.targetEdge*-1,-e/2),l=Ine(l,t.targetEdge*-1,s-bF(o,t.elementRectangle)),lA(l,a,o)?lA(l,a,i)||(l=vb(l,a,i)):l=vb(l,a,o),l}function sT(e){var t=e.getBoundingClientRect();return new dl(t.left,t.right,t.top,t.bottom)}function m9e(e){return new dl(e.left,e.right,e.top,e.bottom)}function y9e(e,t){var r;if(t){if(t.preventDefault){var n=t;r=new dl(n.clientX,n.clientX,n.clientY,n.clientY)}else if(t.getBoundingClientRect)r=sT(t);else{var o=t,i=o.left||o.x,s=o.top||o.y,a=o.right||i,l=o.bottom||s;r=new dl(i,a,s,l)}if(!A8(r,e))for(var u=aA(r,e),c=0,f=u;c=n&&o&&u.top<=o&&u.bottom>=o&&(s={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return s}function T9e(e,t){return x9e(e,t)}function I9e(e,t,r){return Rne(e,t,r)}function C9e(e){return S9e(e)}function cv(){var e=A.useRef();return e.current||(e.current=new rne),A.useEffect(function(){return function(){var t;(t=e.current)===null||t===void 0||t.dispose(),e.current=void 0}},[]),e.current}function ic(e){var t=A.useRef();return t.current===void 0&&(t.current={value:typeof e=="function"?e():e}),t.current.value}function N9e(e){var t=A.useState(e),r=t[0],n=t[1],o=ic(function(){return function(){n(!0)}}),i=ic(function(){return function(){n(!1)}}),s=ic(function(){return function(){n(function(a){return!a})}});return[r,{setTrue:o,setFalse:i,toggle:s}]}function b2(e){var t=A.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return Eg(function(){t.current=e},[e]),ic(function(){return function(){for(var r=[],n=0;n0&&u>l&&(a=u-l>1)}o!==a&&i(a)}}),function(){return r.dispose()}}),o}function F9e(e){var t=e.originalElement,r=e.containsFocus;t&&r&&t!==ho()&&setTimeout(function(){var n;(n=t.focus)===null||n===void 0||n.call(t)},0)}function B9e(e,t){var r=e.onRestoreFocus,n=r===void 0?F9e:r,o=A.useRef(),i=A.useRef(!1);A.useEffect(function(){return o.current=cs().activeElement,txe(t.current)&&(i.current=!0),function(){var s;n==null||n({originalElement:o.current,containsFocus:i.current,documentContainsFocus:((s=cs())===null||s===void 0?void 0:s.hasFocus())||!1}),o.current=void 0}},[]),mb(t,"focus",A.useCallback(function(){i.current=!0},[]),!0),mb(t,"blur",A.useCallback(function(s){t.current&&s.relatedTarget&&!t.current.contains(s.relatedTarget)&&(i.current=!1)},[]),!0)}function M9e(e,t){var r=String(e["aria-modal"]).toLowerCase()==="true"&&e.enableAriaHiddenSiblings;A.useEffect(function(){if(r&&t.current){var n=Sne(t.current);return n}},[t,r])}var T8=A.forwardRef(function(e,t){var r=z_({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),n=A.useRef(),o=dc(n,t);M9e(r,n),B9e(r,n);var i=r.role,s=r.className,a=r.ariaLabel,l=r.ariaLabelledBy,u=r.ariaDescribedBy,c=r.style,f=r.children,d=r.onDismiss,h=D9e(r,n),g=A.useCallback(function(y){switch(y.which){case Kt.escape:d&&(d(y),y.preventDefault(),y.stopPropagation());break}},[d]),v=$_();return mb(v,"keydown",g),A.createElement("div",_e({ref:o},Mi(r,lv),{className:s,role:i,"aria-label":a,"aria-labelledby":l,"aria-describedby":u,onKeyDown:g,style:_e({overflowY:h?"scroll":void 0,outline:"none"},c)}),f)});T8.displayName="Popup";var $p,L9e="CalloutContentBase",j9e=($p={},$p[kt.top]=Jm.slideUpIn10,$p[kt.bottom]=Jm.slideDownIn10,$p[kt.left]=Jm.slideLeftIn10,$p[kt.right]=Jm.slideRightIn10,$p),dq={top:0,left:0},z9e={opacity:0,filter:"opacity(0)",pointerEvents:"none"},H9e=["role","aria-roledescription"],Mne={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:_o.bottomAutoEdge},$9e=wc({disableCaching:!0});function P9e(e,t,r){var n=e.bounds,o=e.minPagePadding,i=o===void 0?Mne.minPagePadding:o,s=e.target,a=A.useState(!1),l=a[0],u=a[1],c=A.useRef(),f=A.useCallback(function(){if(!c.current||l){var h=typeof n=="function"?r?n(s,r):void 0:n;!h&&r&&(h=T9e(t.current,r),h={top:h.top+i,left:h.left+i,right:h.right-i,bottom:h.bottom-i,width:h.width-i*2,height:h.height-i*2}),c.current=h,l&&u(!1)}return c.current},[n,i,s,t,r,l]),d=cv();return mb(r,"resize",d.debounce(function(){u(!0)},500,{leading:!0})),f}function q9e(e,t,r,n){var o,i=e.calloutMaxHeight,s=e.finalHeight,a=e.directionalHint,l=e.directionalHintFixed,u=e.hidden,c=e.gapSpace,f=e.beakWidth,d=e.isBeakVisible,h=A.useState(),g=h[0],v=h[1],y=(o=n==null?void 0:n.elementPosition)!==null&&o!==void 0?o:{},E=y.top,_=y.bottom,S=r!=null&&r.current?C9e(r.current):void 0;return A.useEffect(function(){var b,k=(b=t())!==null&&b!==void 0?b:{},T=k.top,x=k.bottom,I;(n==null?void 0:n.targetEdge)===kt.top&&(S!=null&&S.top)&&(x=S.top-I9e(d,f,c)),typeof E=="number"&&x?I=x-E:typeof _=="number"&&typeof T=="number"&&x&&(I=x-T-_),!i&&!u||i&&I&&i>I?v(I):v(i||void 0)},[_,i,s,a,l,t,u,n,E,c,f,d,S]),g}function W9e(e,t,r,n,o,i){var s=A.useState(),a=s[0],l=s[1],u=A.useRef(0),c=A.useRef(),f=cv(),d=e.hidden,h=e.target,g=e.finalHeight,v=e.calloutMaxHeight,y=e.onPositioned,E=e.directionalHint,_=e.hideOverflow,S=e.preferScrollResizePositioning,b=$_(),k=A.useRef(),T;k.current!==i.current&&(k.current=i.current,T=i.current?b==null?void 0:b.getComputedStyle(i.current):void 0);var x=T==null?void 0:T.overflowY;return A.useEffect(function(){if(d)l(void 0),u.current=0;else{var I=f.requestAnimationFrame(function(){var C,R;if(t.current&&r){var D=_e(_e({},e),{target:n.current,bounds:o()}),L=r.cloneNode(!0);L.style.maxHeight=v?"".concat(v):"",L.style.visibility="hidden",(C=r.parentElement)===null||C===void 0||C.appendChild(L);var M=c.current===h?a:void 0,W=_||x==="clip"||x==="hidden",z=S&&!W,F=g?k9e(D,t.current,L,M):w9e(D,t.current,L,M,z);(R=r.parentElement)===null||R===void 0||R.removeChild(L),!a&&F||a&&F&&!U9e(a,F)&&u.current<5?(u.current++,l(F)):u.current>0&&(u.current=0,y==null||y(a))}},r);return c.current=h,function(){f.cancelAnimationFrame(I),c.current=void 0}}},[d,E,f,r,v,t,n,g,o,y,a,e,h,_,S,x]),a}function G9e(e,t,r){var n=e.hidden,o=e.setInitialFocus,i=cv(),s=!!t;A.useEffect(function(){if(!n&&o&&s&&r){var a=i.requestAnimationFrame(function(){return exe(r)},r);return function(){return i.cancelAnimationFrame(a)}}},[n,s,i,r,o])}function K9e(e,t,r,n,o){var i=e.hidden,s=e.onDismiss,a=e.preventDismissOnScroll,l=e.preventDismissOnResize,u=e.preventDismissOnLostFocus,c=e.dismissOnTargetClick,f=e.shouldDismissOnWindowFocus,d=e.preventDismissOnEvent,h=A.useRef(!1),g=cv(),v=ic([function(){h.current=!0},function(){h.current=!1}]),y=!!t;return A.useEffect(function(){var E=function(x){y&&!a&&b(x)},_=function(x){!l&&!(d&&d(x))&&(s==null||s(x))},S=function(x){u||b(x)},b=function(x){var I=x.composedPath?x.composedPath():[],C=I.length>0?I[0]:x.target,R=r.current&&!Rs(r.current,C);if(R&&h.current){h.current=!1;return}if(!n.current&&R||x.target!==o&&R&&(!n.current||"stopPropagation"in n.current||c||C!==n.current&&!Rs(n.current,C))){if(d&&d(x))return;s==null||s(x)}},k=function(x){f&&(d&&!d(x)||!d&&!u)&&!(o!=null&&o.document.hasFocus())&&x.relatedTarget===null&&(s==null||s(x))},T=new Promise(function(x){g.setTimeout(function(){if(!i&&o){var I=[Xu(o,"scroll",E,!0),Xu(o,"resize",_,!0),Xu(o.document.documentElement,"focus",S,!0),Xu(o.document.documentElement,"click",S,!0),Xu(o,"blur",k,!0)];x(function(){I.forEach(function(C){return C()})})}},0)});return function(){T.then(function(x){return x()})}},[i,g,r,n,o,s,f,c,u,l,a,y,d]),v}var Lne=A.memo(A.forwardRef(function(e,t){var r=z_(Mne,e),n=r.styles,o=r.style,i=r.ariaLabel,s=r.ariaDescribedBy,a=r.ariaLabelledBy,l=r.className,u=r.isBeakVisible,c=r.children,f=r.beakWidth,d=r.calloutWidth,h=r.calloutMaxWidth,g=r.calloutMinWidth,v=r.doNotLayer,y=r.finalHeight,E=r.hideOverflow,_=E===void 0?!!y:E,S=r.backgroundColor,b=r.calloutMaxHeight,k=r.onScroll,T=r.shouldRestoreFocus,x=T===void 0?!0:T,I=r.target,C=r.hidden,R=r.onLayerMounted,D=r.popupProps,L=A.useRef(null),M=A.useRef(null),W=dc(M,D==null?void 0:D.ref),z=A.useState(null),F=z[0],P=z[1],K=A.useCallback(function(ot){P(ot)},[]),V=dc(L,t),Z=Fne(r.target,{current:F}),J=Z[0],ee=Z[1],de=P9e(r,J,ee),ge=W9e(r,L,F,J,de,W),Se=q9e(r,de,J,ge),Re=K9e(r,ge,L,J,ee),ve=Re[0],Ee=Re[1],me=(ge==null?void 0:ge.elementPosition.top)&&(ge==null?void 0:ge.elementPosition.bottom),we=_e(_e({},ge==null?void 0:ge.elementPosition),{maxHeight:Se});if(me&&(we.bottom=void 0),G9e(r,ge,F),A.useEffect(function(){C||R==null||R()},[C]),!ee)return null;var Ge=_,nt=u&&!!I,Qe=$9e(n,{theme:r.theme,className:l,overflowYHidden:Ge,calloutWidth:d,positions:ge,beakWidth:f,backgroundColor:S,calloutMaxWidth:h,calloutMinWidth:g,doNotLayer:v}),Ze=_e(_e({maxHeight:b||"100%"},o),Ge&&{overflowY:"hidden"}),Fe=r.hidden?{visibility:"hidden"}:void 0;return A.createElement("div",{ref:V,className:Qe.container,style:Fe},A.createElement("div",_e({},Mi(r,lv,H9e),{className:a1(Qe.root,ge&&ge.targetEdge&&j9e[ge.targetEdge]),style:ge?_e({},we):z9e,tabIndex:-1,ref:K}),nt&&A.createElement("div",{className:Qe.beak,style:V9e(ge)}),nt&&A.createElement("div",{className:Qe.beakCurtain}),A.createElement(T8,_e({role:r.role,"aria-roledescription":r["aria-roledescription"],ariaDescribedBy:s,ariaLabel:i,ariaLabelledBy:a,className:Qe.calloutMain,onDismiss:r.onDismiss,onMouseDown:ve,onMouseUp:Ee,onRestoreFocus:r.onRestoreFocus,onScroll:k,shouldRestoreFocus:x,style:Ze},D,{ref:W}),c)))}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:E8(e,t)});function V9e(e){var t,r,n=_e(_e({},(t=e==null?void 0:e.beakPosition)===null||t===void 0?void 0:t.elementPosition),{display:!((r=e==null?void 0:e.beakPosition)===null||r===void 0)&&r.hideBeak?"none":void 0});return!n.top&&!n.bottom&&!n.left&&!n.right&&(n.left=dq.left,n.top=dq.top),n}function U9e(e,t){return hq(e.elementPosition,t.elementPosition)&&hq(e.beakPosition.elementPosition,t.beakPosition.elementPosition)}function hq(e,t){for(var r in t)if(t.hasOwnProperty(r)){var n=e[r],o=t[r];if(n!==void 0&&o!==void 0){if(n.toFixed(2)!==o.toFixed(2))return!1}else return!1}return!0}Lne.displayName=L9e;function Y9e(e){return{height:e,width:e}}var X9e={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},Q9e=function(e){var t,r=e.theme,n=e.className,o=e.overflowYHidden,i=e.calloutWidth,s=e.beakWidth,a=e.backgroundColor,l=e.calloutMaxWidth,u=e.calloutMinWidth,c=e.doNotLayer,f=Ac(X9e,r),d=r.semanticColors,h=r.effects;return{container:[f.container,{position:"relative"}],root:[f.root,r.fonts.medium,{position:"absolute",display:"flex",zIndex:c?Sg.Layer:void 0,boxSizing:"border-box",borderRadius:h.roundedCorner2,boxShadow:h.elevation16,selectors:(t={},t[Q0]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},qTe(),n,!!i&&{width:i},!!l&&{maxWidth:l},!!u&&{minWidth:u}],beak:[f.beak,{position:"absolute",backgroundColor:d.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Y9e(s),a&&{backgroundColor:a}],beakCurtain:[f.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:d.menuBackground,borderRadius:h.roundedCorner2}],calloutMain:[f.calloutMain,{backgroundColor:d.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:h.roundedCorner2},o&&{overflowY:"hidden"},a&&{backgroundColor:a}]}},Z9e=kc(Lne,Q9e,void 0,{scope:"CalloutContent"});const jne=A.createContext(void 0),J9e=()=>()=>{};jne.Provider;function e5e(){var e;return(e=A.useContext(jne))!==null&&e!==void 0?e:J9e}var zne={exports:{}},Oa={},Hne={exports:{}},$ne={};/** + */var iAe=A,sAe=Symbol.for("react.element"),aAe=Symbol.for("react.fragment"),lAe=Object.prototype.hasOwnProperty,uAe=iAe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cAe={key:!0,ref:!0,__self:!0,__source:!0};function Gre(e,t,r){var n,o={},i=null,s=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)lAe.call(t,n)&&!cAe.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:sAe,type:e,key:i,ref:s,props:o,_owner:uAe.current}}Zx.Fragment=aAe;Zx.jsx=Gre;Zx.jsxs=Gre;Mre.exports=Zx;var N=Mre.exports;const fAe=zf(N),dAe=Bre({__proto__:null,default:fAe},[N]);var BP={},ck=void 0;try{ck=window}catch{}function b8(e,t){if(typeof ck<"u"){var r=ck.__packages__=ck.__packages__||{};if(!r[e]||!BP[e]){BP[e]=t;var n=r[e]=r[e]||[];n.push(t)}}}b8("@fluentui/set-version","6.0.0");var hF=function(e,t){return hF=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},hF(e,t)};function Sc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");hF(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _e=function(){return _e=Object.assign||function(t){for(var r,n=1,o=arguments.length;n=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function cu(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n"u"?mm.none:mm.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=(n=r==null?void 0:r.classNameToArgs)!==null&&n!==void 0?n:this._classNameToArgs,this._counter=(o=r==null?void 0:r.counter)!==null&&o!==void 0?o:this._counter,this._keyToClassName=(s=(i=this._config.classNameCache)!==null&&i!==void 0?i:r==null?void 0:r.keyToClassName)!==null&&s!==void 0?s:this._keyToClassName,this._preservedRules=(a=r==null?void 0:r.preservedRules)!==null&&a!==void 0?a:this._preservedRules,this._rules=(l=r==null?void 0:r.rules)!==null&&l!==void 0?l:this._rules}return e.getInstance=function(){if(Hp=c0[MP],!Hp||Hp._lastStyleElement&&Hp._lastStyleElement.ownerDocument!==document){var t=(c0==null?void 0:c0.FabricConfig)||{},r=new e(t.mergeStyles,t.serializedStylesheet);Hp=r,c0[MP]=r}return Hp},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(t){this._config=_e(_e({},this._config),t)},e.prototype.onReset=function(t){var r=this;return this._onResetCallbacks.push(t),function(){r._onResetCallbacks=r._onResetCallbacks.filter(function(n){return n!==t})}},e.prototype.onInsertRule=function(t){var r=this;return this._onInsertRuleCallbacks.push(t),function(){r._onInsertRuleCallbacks=r._onInsertRuleCallbacks.filter(function(n){return n!==t})}},e.prototype.getClassName=function(t){var r=this._config.namespace,n=t||this._config.defaultPrefix;return"".concat(r?r+"-":"").concat(n,"-").concat(this._counter++)},e.prototype.cacheClassName=function(t,r,n,o){this._keyToClassName[r]=t,this._classNameToArgs[t]={args:n,rules:o}},e.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.args},e.prototype.insertedRulesFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.rules},e.prototype.insertRule=function(t,r){var n=this._config.injectionMode,o=n!==mm.none?this._getStyleElement():void 0;if(r&&this._preservedRules.push(t),o)switch(n){case mm.insertNode:var i=o.sheet;try{i.insertRule(t,i.cssRules.length)}catch{}break;case mm.appendChild:o.appendChild(document.createTextNode(t));break}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach(function(s){return s()})},e.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(t){return t()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var t=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),pAe||window.requestAnimationFrame(function(){t._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var t=document.head,r=document.createElement("style"),n=null;r.setAttribute("data-merge-styles","true");var o=this._config.cspSettings;if(o&&o.nonce&&r.setAttribute("nonce",o.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();i?n=i.nextElementSibling:n=t.childNodes[0]}return t.insertBefore(r,t.contains(n)?n:null),this._lastStyleElement=r,r},e.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},e}();function Kre(){for(var e=[],t=0;t=0)i(u.split(" "));else{var c=o.argsFromClassName(u);c?i(c):r.indexOf(u)===-1&&r.push(u)}else Array.isArray(u)?i(u):typeof u=="object"&&n.push(u)}}return i(e),{classes:r,objects:n}}function Vre(e){Y0!==e&&(Y0=e)}function Ure(){return Y0===void 0&&(Y0=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),Y0}var Y0;Y0=Ure();function Jx(){return{rtl:Ure()}}var LP={};function gAe(e,t){var r=e[t];r.charAt(0)!=="-"&&(e[t]=LP[r]=LP[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase())}var FS;function vAe(){var e;if(!FS){var t=typeof document<"u"?document:void 0,r=typeof navigator<"u"?navigator:void 0,n=(e=r==null?void 0:r.userAgent)===null||e===void 0?void 0:e.toLowerCase();t?FS={isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!!(r&&(/rv:11.0/i.test(r.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:FS={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return FS}var jP={"user-select":1};function mAe(e,t){var r=vAe(),n=e[t];if(jP[n]){var o=e[t+1];jP[n]&&(r.isWebkit&&e.push("-webkit-"+n,o),r.isMoz&&e.push("-moz-"+n,o),r.isMs&&e.push("-ms-"+n,o),r.isOpera&&e.push("-o-"+n,o))}}var yAe=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function bAe(e,t){var r=e[t],n=e[t+1];if(typeof n=="number"){var o=yAe.indexOf(r)>-1,i=r.indexOf("--")>-1,s=o||i?"":"px";e[t+1]="".concat(n).concat(s)}}var BS,yd="left",bd="right",_Ae="@noflip",zP=(BS={},BS[yd]=bd,BS[bd]=yd,BS),HP={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function EAe(e,t,r){if(e.rtl){var n=t[r];if(!n)return;var o=t[r+1];if(typeof o=="string"&&o.indexOf(_Ae)>=0)t[r+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(n.indexOf(yd)>=0)t[r]=n.replace(yd,bd);else if(n.indexOf(bd)>=0)t[r]=n.replace(bd,yd);else if(String(o).indexOf(yd)>=0)t[r+1]=o.replace(yd,bd);else if(String(o).indexOf(bd)>=0)t[r+1]=o.replace(bd,yd);else if(zP[n])t[r]=zP[n];else if(HP[o])t[r+1]=HP[o];else switch(n){case"margin":case"padding":t[r+1]=wAe(o);break;case"box-shadow":t[r+1]=SAe(o,0);break}}}function SAe(e,t){var r=e.split(" "),n=parseInt(r[t],10);return r[0]=r[0].replace(String(n),String(n*-1)),r.join(" ")}function wAe(e){if(typeof e=="string"){var t=e.split(" ");if(t.length===4)return"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}function kAe(e){for(var t=[],r=0,n=0,o=0;or&&t.push(e.substring(r,o)),r=o+1);break}return r-1&&t.push([n.index,n.index+n[0].length,n[1].split(",").map(function(o){return":global(".concat(o.trim(),")")}).join(", ")]);return t.reverse().reduce(function(o,i){var s=i[0],a=i[1],l=i[2],u=o.slice(0,s),c=o.slice(a);return u+l+c},e)}function $P(e,t){return e.indexOf(":global(")>=0?e.replace(Yre,"$1"):e.indexOf(":")===0?t+e:e.indexOf("&")<0?t+" "+e:e}function PP(e,t,r,n){t===void 0&&(t={__order:[]}),r.indexOf("@")===0?(r=r+"{"+e,X0([n],t,r)):r.indexOf(",")>-1?TAe(r).split(",").map(function(o){return o.trim()}).forEach(function(o){return X0([n],t,$P(o,e))}):X0([n],t,$P(r,e))}function X0(e,t,r){t===void 0&&(t={__order:[]}),r===void 0&&(r="&");var n=bl.getInstance(),o=t[r];o||(o={},t[r]=o,t.__order.push(r));for(var i=0,s=e;i0){r.subComponentStyles={};var d=r.subComponentStyles,h=function(g){if(n.hasOwnProperty(g)){var v=n[g];d[g]=function(y){return j_.apply(void 0,v.map(function(E){return typeof E=="function"?E(y):E}))}}};for(var u in n)h(u)}return r}function mi(){for(var e=[],t=0;t"u")){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:pF}}var nne=function(){function e(t,r){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=r,this._noop=function(){}}return e.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(t,r){var n=this,o=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),o=setTimeout(function(){try{n._timeoutIds&&delete n._timeoutIds[o],t.apply(n._parent)}catch(i){n._logError(i)}},r),this._timeoutIds[o]=!0),o},e.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},e.prototype.setImmediate=function(t,r){var n=this,o=0,i=ho(r);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var s=function(){try{n._immediateIds&&delete n._immediateIds[o],t.apply(n._parent)}catch(a){n._logError(a)}};o=i.setTimeout(s,0),this._immediateIds[o]=!0}return o},e.prototype.clearImmediate=function(t,r){var n=ho(r);this._immediateIds&&this._immediateIds[t]&&(n.clearTimeout(t),delete this._immediateIds[t])},e.prototype.setInterval=function(t,r){var n=this,o=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),o=setInterval(function(){try{t.apply(n._parent)}catch(i){n._logError(i)}},r),this._intervalIds[o]=!0),o},e.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},e.prototype.throttle=function(t,r,n){var o=this;if(this._isDisposed)return this._noop;var i=r||0,s=!0,a=!0,l=0,u,c,f=null;n&&typeof n.leading=="boolean"&&(s=n.leading),n&&typeof n.trailing=="boolean"&&(a=n.trailing);var d=function(g){var v=Date.now(),y=v-l,E=s?i-y:i;return y>=i&&(!g||s)?(l=v,f&&(o.clearTimeout(f),f=null),u=t.apply(o._parent,c)):f===null&&a&&(f=o.setTimeout(d,E)),u},h=function(){for(var g=[],v=0;v=s&&(I=!0),c=x);var C=x-c,R=s-C,D=x-f,L=!1;return u!==null&&(D>=u&&g?L=!0:R=Math.min(R,u-D)),C>=s||L||I?y(x):(g===null||!T)&&l&&(g=o.setTimeout(E,R)),d},_=function(){return!!g},S=function(){_()&&v(Date.now())},b=function(){return _()&&y(Date.now()),d},k=function(){for(var T=[],x=0;x-1)for(var s=r.split(/[ ,]+/),a=0;a"u")){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var u2,Cy=0,ine=br({overflow:"hidden !important"}),qP="data-is-scrollable",DAe=function(e,t){if(e){var r=0,n=null,o=function(s){s.targetTouches.length===1&&(r=s.targetTouches[0].clientY)},i=function(s){if(s.targetTouches.length===1&&(s.stopPropagation(),!!n)){var a=s.targetTouches[0].clientY-r,l=ane(s.target);l&&(n=l),n.scrollTop===0&&a>0&&s.preventDefault(),n.scrollHeight-Math.ceil(n.scrollTop)<=n.clientHeight&&a<0&&s.preventDefault()}};t.on(e,"touchstart",o,{passive:!1}),t.on(e,"touchmove",i,{passive:!1}),n=e}},FAe=function(e,t){if(e){var r=function(n){n.stopPropagation()};t.on(e,"touchmove",r,{passive:!1})}},sne=function(e){e.preventDefault()};function BAe(){var e=cs();e&&e.body&&!Cy&&(e.body.classList.add(ine),e.body.addEventListener("touchmove",sne,{passive:!1,capture:!1})),Cy++}function MAe(){if(Cy>0){var e=cs();e&&e.body&&Cy===1&&(e.body.classList.remove(ine),e.body.removeEventListener("touchmove",sne)),Cy--}}function LAe(){if(u2===void 0){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),u2=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return u2}function ane(e){for(var t=e,r=cs(e);t&&t!==r.body;){if(t.getAttribute(qP)==="true")return t;t=t.parentElement}for(t=e;t&&t!==r.body;){if(t.getAttribute(qP)!=="false"){var n=getComputedStyle(t),o=n?n.getPropertyValue("overflow-y"):"";if(o&&(o==="scroll"||o==="auto"))return t}t=t.parentElement}return(!t||t===r.body)&&(t=ho(e)),t}var jAe=void 0;function lne(e){console&&console.warn&&console.warn(e)}var c2="__globalSettings__",w8="__callbacks__",zAe=0,une=function(){function e(){}return e.getValue=function(t,r){var n=gF();return n[t]===void 0&&(n[t]=typeof r=="function"?r():r),n[t]},e.setValue=function(t,r){var n=gF(),o=n[w8],i=n[t];if(r!==i){n[t]=r;var s={oldValue:i,value:r,key:t};for(var a in o)o.hasOwnProperty(a)&&o[a](s)}return r},e.addChangeListener=function(t){var r=t.__id__,n=WP();r||(r=t.__id__=String(zAe++)),n[r]=t},e.removeChangeListener=function(t){var r=WP();delete r[t.__id__]},e}();function gF(){var e,t=ho(),r=t||{};return r[c2]||(r[c2]=(e={},e[w8]={},e)),r[c2]}function WP(){var e=gF();return e[w8]}var Kt={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pauseBreak:19,capslock:20,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,del:46,zero:48,one:49,two:50,three:51,four:52,five:53,six:54,seven:55,eight:56,nine:57,colon:58,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftWindow:91,rightWindow:92,select:93,zero_numpad:96,one_numpad:97,two_numpad:98,three_numpad:99,four_numpad:100,five_numpad:101,six_numpad:102,seven_numpad:103,eight_numpad:104,nine_numpad:105,multiply:106,add:107,subtract:109,decimalPoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrollLock:145,semicolon:186,equalSign:187,comma:188,dash:189,period:190,forwardSlash:191,graveAccent:192,openBracket:219,backSlash:220,closeBracket:221,singleQuote:222},hl=function(){function e(t,r,n,o){t===void 0&&(t=0),r===void 0&&(r=0),n===void 0&&(n=0),o===void 0&&(o=0),this.top=n,this.bottom=o,this.left=t,this.right=r}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),e.prototype.equals=function(t){return parseFloat(this.top.toFixed(4))===parseFloat(t.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(t.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(t.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(t.right.toFixed(4))},e}();function HAe(e){for(var t=[],r=1;r-1&&o._virtual.children.splice(i,1)}r._virtual.parent=n||void 0,n&&(n._virtual||(n._virtual={children:[]}),n._virtual.children.push(r))}var QAe="data-is-focusable",ZAe="data-is-visible",JAe="data-focuszone-id",exe="data-is-sub-focuszone";function txe(e,t,r){return Xi(e,t,!0,!1,!1,r)}function rxe(e,t,r){return xs(e,t,!0,!1,!0,r)}function nxe(e,t,r,n){return n===void 0&&(n=!0),Xi(e,t,n,!1,!1,r,!1,!0)}function oxe(e,t,r,n){return n===void 0&&(n=!0),xs(e,t,n,!1,!0,r,!1,!0)}function ixe(e,t){var r=Xi(e,e,!0,!1,!1,!0,void 0,void 0,t);return r?(pne(r),!0):!1}function xs(e,t,r,n,o,i,s,a){if(!t||!s&&t===e)return null;var l=tT(t);if(o&&l&&(i||!(Jc(t)||A8(t)))){var u=xs(e,t.lastElementChild,!0,!0,!0,i,s,a);if(u){if(a&&qu(u,!0)||!a)return u;var c=xs(e,u.previousElementSibling,!0,!0,!0,i,s,a);if(c)return c;for(var f=u.parentElement;f&&f!==t;){var d=xs(e,f.previousElementSibling,!0,!0,!0,i,s,a);if(d)return d;f=f.parentElement}}}if(r&&l&&qu(t,a))return t;var h=xs(e,t.previousElementSibling,!0,!0,!0,i,s,a);return h||(n?null:xs(e,t.parentElement,!0,!1,!1,i,s,a))}function Xi(e,t,r,n,o,i,s,a,l){if(!t||t===e&&o&&!s)return null;var u=l?dne:tT,c=u(t);if(r&&c&&qu(t,a))return t;if(!o&&c&&(i||!(Jc(t)||A8(t)))){var f=Xi(e,t.firstElementChild,!0,!0,!1,i,s,a,l);if(f)return f}if(t===e)return null;var d=Xi(e,t.nextElementSibling,!0,!0,!1,i,s,a,l);return d||(n?null:Xi(e,t.parentElement,!1,!1,!0,i,s,a,l))}function tT(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(ZAe);return t!=null?t==="true":e.offsetHeight!==0||e.offsetParent!==null||e.isVisible===!0}function dne(e){return!!e&&tT(e)&&!e.hidden&&window.getComputedStyle(e).visibility!=="hidden"}function qu(e,t){if(!e||e.disabled)return!1;var r=0,n=null;e&&e.getAttribute&&(n=e.getAttribute("tabIndex"),n&&(r=parseInt(n,10)));var o=e.getAttribute?e.getAttribute(QAe):null,i=n!==null&&r>=0,s=!!e&&o!=="false"&&(e.tagName==="A"||e.tagName==="BUTTON"||e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.tagName==="SELECT"||o==="true"||i);return t?r!==-1&&s:s}function Jc(e){return!!(e&&e.getAttribute&&e.getAttribute(JAe))}function A8(e){return!!(e&&e.getAttribute&&e.getAttribute(exe)==="true")}function sxe(e){var t=cs(e),r=t&&t.activeElement;return!!(r&&Rs(e,r))}function hne(e,t){return VAe(e,t)!=="true"}var MS=void 0;function pne(e){if(e){var t=ho(e);t&&(MS!==void 0&&t.cancelAnimationFrame(MS),MS=t.requestAnimationFrame(function(){e&&e.focus(),MS=void 0}))}}function axe(e,t){for(var r=e,n=0,o=t;n(e.cacheSize||uxe)){var h=ho();!((l=h==null?void 0:h.FabricConfig)===null||l===void 0)&&l.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(r,"/").concat(n,".")),console.trace()),t.clear(),r=0,e.disableCaching=!0}return u[LS]};return i}function d2(e,t){return t=fxe(t),e.has(t)||e.set(t,new Map),e.get(t)}function GP(e,t){if(typeof t=="function"){var r=t.__cachedInputs__;if(r)for(var n=0,o=t.__cachedInputs__;n"u"?null:WeakMap;function hxe(){dk++}function gs(e,t,r){if(t===void 0&&(t=100),r===void 0&&(r=!1),!pb)return e;if(!KP){var n=bl.getInstance();n&&n.onReset&&bl.getInstance().onReset(hxe),KP=!0}var o,i=0,s=dk;return function(){for(var l=[],u=0;u0&&i>t)&&(o=VP(),i=0,s=dk),c=o;for(var f=0;f=0||l.indexOf("data-")===0||l.indexOf("aria-")===0;u&&(!r||(r==null?void 0:r.indexOf(l))===-1)&&(o[l]=e[l])}return o}function rT(e){Txe(e,{componentDidMount:Bxe,componentDidUpdate:Mxe,componentWillUnmount:Lxe})}function Bxe(){iA(this.props.componentRef,this)}function Mxe(e){e.componentRef!==this.props.componentRef&&(iA(e.componentRef,null),iA(this.props.componentRef,this))}function Lxe(){iA(this.props.componentRef,null)}function iA(e,t){e&&(typeof e=="object"?e.current=t:typeof e=="function"&&e(t))}var ql,jxe=(ql={},ql[Kt.up]=1,ql[Kt.down]=1,ql[Kt.left]=1,ql[Kt.right]=1,ql[Kt.home]=1,ql[Kt.end]=1,ql[Kt.tab]=1,ql[Kt.pageUp]=1,ql[Kt.pageDown]=1,ql);function vne(e){return!!jxe[e]}var xi="ms-Fabric--isFocusVisible",YP="ms-Fabric--isFocusHidden";function XP(e,t){e&&(e.classList.add(t?xi:YP),e.classList.remove(t?YP:xi))}function nT(e,t,r){var n;r?r.forEach(function(o){return XP(o.current,e)}):XP((n=ho(t))===null||n===void 0?void 0:n.document.body,e)}var QP=new WeakMap,ZP=new WeakMap;function JP(e,t){var r,n=QP.get(e);return n?r=n+t:r=1,QP.set(e,r),r}function zxe(e){var t=ZP.get(e);if(t)return t;var r=function(s){return mne(s,e.registeredProviders)},n=function(s){return yne(s,e.registeredProviders)},o=function(s){return bne(s,e.registeredProviders)},i=function(s){return _ne(s,e.registeredProviders)};return t={onMouseDown:r,onPointerDown:n,onKeyDown:o,onKeyUp:i},ZP.set(e,t),t}var sA=A.createContext(void 0);function Hxe(e){var t=A.useContext(sA);A.useEffect(function(){var r,n,o,i,s=ho(e==null?void 0:e.current);if(!(!s||((r=s.FabricConfig)===null||r===void 0?void 0:r.disableFocusRects)===!0)){var a=s,l,u,c,f;if(!((n=t==null?void 0:t.providerRef)===null||n===void 0)&&n.current&&(!((i=(o=t==null?void 0:t.providerRef)===null||o===void 0?void 0:o.current)===null||i===void 0)&&i.addEventListener)){a=t.providerRef.current;var d=zxe(t);l=d.onMouseDown,u=d.onPointerDown,c=d.onKeyDown,f=d.onKeyUp}else l=mne,u=yne,c=bne,f=_ne;var h=JP(a,1);return h<=1&&(a.addEventListener("mousedown",l,!0),a.addEventListener("pointerdown",u,!0),a.addEventListener("keydown",c,!0),a.addEventListener("keyup",f,!0)),function(){var g;!s||((g=s.FabricConfig)===null||g===void 0?void 0:g.disableFocusRects)===!0||(h=JP(a,-1),h===0&&(a.removeEventListener("mousedown",l,!0),a.removeEventListener("pointerdown",u,!0),a.removeEventListener("keydown",c,!0),a.removeEventListener("keyup",f,!0)))}}},[t,e])}var $xe=function(e){return Hxe(e.rootRef),null};function mne(e,t){nT(!1,e.target,t)}function yne(e,t){e.pointerType!=="mouse"&&nT(!1,e.target,t)}function bne(e,t){vne(e.which)&&nT(!0,e.target,t)}function _ne(e,t){vne(e.which)&&nT(!0,e.target,t)}var Ene=function(e){var t=e.providerRef,r=e.layerRoot,n=A.useState([])[0],o=A.useContext(sA),i=o!==void 0&&!r,s=A.useMemo(function(){return i?void 0:{providerRef:t,registeredProviders:n,registerProvider:function(a){n.push(a),o==null||o.registerProvider(a)},unregisterProvider:function(a){o==null||o.unregisterProvider(a);var l=n.indexOf(a);l>=0&&n.splice(l,1)}}},[t,n,o,i]);return A.useEffect(function(){if(s)return s.registerProvider(s.providerRef),function(){return s.unregisterProvider(s.providerRef)}},[s]),s?A.createElement(sA.Provider,{value:s},e.children):A.createElement(A.Fragment,null,e.children)};function Pxe(e){var t=null;try{var r=ho();t=r?r.localStorage.getItem(e):null}catch{}return t}var Y1,eq="language";function qxe(e){if(e===void 0&&(e="sessionStorage"),Y1===void 0){var t=cs(),r=e==="localStorage"?Pxe(eq):e==="sessionStorage"?cne(eq):void 0;r&&(Y1=r),Y1===void 0&&t&&(Y1=t.documentElement.getAttribute("lang")),Y1===void 0&&(Y1="en")}return Y1}function tq(e){for(var t=[],r=1;r-1;e[n]=i?o:Sne(e[n]||{},o,r)}else e[n]=o}return r.pop(),e}var rq=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},Wxe=["TEMPLATE","STYLE","SCRIPT"];function wne(e){var t=cs(e);if(!t)return function(){};for(var r=[];e!==t.body&&e.parentElement;){for(var n=0,o=e.parentElement.children;n"u"||e){var r=ho(),n=(t=r==null?void 0:r.navigator)===null||t===void 0?void 0:t.userAgent;p2=!!n&&n.indexOf("Macintosh")!==-1}return!!p2}function Kxe(e){var t=bg(function(r){var n=bg(function(o){return function(i){return r(i,o)}});return function(o,i){return e(o,i?n(i):r)}});return t}var Vxe=bg(Kxe);function Uxe(e,t){return Vxe(e)(t)}var Yxe=["theme","styles"];function kc(e,t,r,n,o){n=n||{scope:"",fields:void 0};var i=n.scope,s=n.fields,a=s===void 0?Yxe:s,l=A.forwardRef(function(c,f){var d=A.useRef(),h=Axe(a,i),g=h.styles;h.dir;var v=av(h,["styles","dir"]),y=r?r(c):void 0,E=d.current&&d.current.__cachedInputs__||[],_=c.styles;if(!d.current||g!==E[1]||_!==E[2]){var S=function(b){return tne(b,t,g,_)};S.__cachedInputs__=[t,g,_],S.__noStyleOverride__=!g&&!_,d.current=S}return A.createElement(e,_e({ref:f},v,y,c,{styles:d.current}))});l.displayName="Styled".concat(e.displayName||e.name);var u=o?A.memo(l):l;return l.displayName&&(u.displayName=l.displayName),u}function z_(e,t){for(var r=_e({},t),n=0,o=Object.keys(e);nn?" (+ ".concat(ym.length-n," more)"):"")),v2=void 0,ym=[]},r)))}function tTe(e,t,r,n,o){o===void 0&&(o=!1);var i=_e({primaryButtonBorder:"transparent",errorText:n?"#F1707B":"#a4262c",messageText:n?"#F3F2F1":"#323130",messageLink:n?"#6CB8F6":"#005A9E",messageLinkHovered:n?"#82C7FF":"#004578",infoIcon:n?"#C8C6C4":"#605e5c",errorIcon:n?"#F1707B":"#A80000",blockingIcon:n?"#442726":"#FDE7E9",warningIcon:n?"#C8C6C4":"#797775",severeWarningIcon:n?"#FCE100":"#D83B01",successIcon:n?"#92C353":"#107C10",infoBackground:n?"#323130":"#f3f2f1",errorBackground:n?"#442726":"#FDE7E9",blockingBackground:n?"#442726":"#FDE7E9",warningBackground:n?"#433519":"#FFF4CE",severeWarningBackground:n?"#4F2A0F":"#FED9CC",successBackground:n?"#393D1B":"#DFF6DD",warningHighlight:n?"#fff100":"#ffb900",successText:n?"#92c353":"#107C10"},r),s=kne(e,t,i,n);return rTe(s,o)}function kne(e,t,r,n,o){var i={},s=e||{},a=s.white,l=s.black,u=s.themePrimary,c=s.themeDark,f=s.themeDarker,d=s.themeDarkAlt,h=s.themeLighter,g=s.neutralLight,v=s.neutralLighter,y=s.neutralDark,E=s.neutralQuaternary,_=s.neutralQuaternaryAlt,S=s.neutralPrimary,b=s.neutralSecondary,k=s.neutralSecondaryAlt,T=s.neutralTertiary,x=s.neutralTertiaryAlt,I=s.neutralLighterAlt,C=s.accent;return a&&(i.bodyBackground=a,i.bodyFrameBackground=a,i.accentButtonText=a,i.buttonBackground=a,i.primaryButtonText=a,i.primaryButtonTextHovered=a,i.primaryButtonTextPressed=a,i.inputBackground=a,i.inputForegroundChecked=a,i.listBackground=a,i.menuBackground=a,i.cardStandoutBackground=a),l&&(i.bodyTextChecked=l,i.buttonTextCheckedHovered=l),u&&(i.link=u,i.primaryButtonBackground=u,i.inputBackgroundChecked=u,i.inputIcon=u,i.inputFocusBorderAlt=u,i.menuIcon=u,i.menuHeader=u,i.accentButtonBackground=u),c&&(i.primaryButtonBackgroundPressed=c,i.inputBackgroundCheckedHovered=c,i.inputIconHovered=c),f&&(i.linkHovered=f),d&&(i.primaryButtonBackgroundHovered=d),h&&(i.inputPlaceholderBackgroundChecked=h),g&&(i.bodyBackgroundChecked=g,i.bodyFrameDivider=g,i.bodyDivider=g,i.variantBorder=g,i.buttonBackgroundCheckedHovered=g,i.buttonBackgroundPressed=g,i.listItemBackgroundChecked=g,i.listHeaderBackgroundPressed=g,i.menuItemBackgroundPressed=g,i.menuItemBackgroundChecked=g),v&&(i.bodyBackgroundHovered=v,i.buttonBackgroundHovered=v,i.buttonBackgroundDisabled=v,i.buttonBorderDisabled=v,i.primaryButtonBackgroundDisabled=v,i.disabledBackground=v,i.listItemBackgroundHovered=v,i.listHeaderBackgroundHovered=v,i.menuItemBackgroundHovered=v),E&&(i.primaryButtonTextDisabled=E,i.disabledSubtext=E),_&&(i.listItemBackgroundCheckedHovered=_),T&&(i.disabledBodyText=T,i.variantBorderHovered=(r==null?void 0:r.variantBorderHovered)||T,i.buttonTextDisabled=T,i.inputIconDisabled=T,i.disabledText=T),S&&(i.bodyText=S,i.actionLink=S,i.buttonText=S,i.inputBorderHovered=S,i.inputText=S,i.listText=S,i.menuItemText=S),I&&(i.bodyStandoutBackground=I,i.defaultStateBackground=I),y&&(i.actionLinkHovered=y,i.buttonTextHovered=y,i.buttonTextChecked=y,i.buttonTextPressed=y,i.inputTextHovered=y,i.menuItemTextHovered=y),b&&(i.bodySubtext=b,i.focusBorder=b,i.inputBorder=b,i.smallInputBorder=b,i.inputPlaceholderText=b),k&&(i.buttonBorder=k),x&&(i.disabledBodySubtext=x,i.disabledBorder=x,i.buttonBackgroundChecked=x,i.menuDivider=x),C&&(i.accentButtonBackground=C),t!=null&&t.elevation4&&(i.cardShadow=t.elevation4),!n&&(t!=null&&t.elevation8)?i.cardShadowHovered=t.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),i=_e(_e({},i),r),i}function rTe(e,t){var r="";return t===!0&&(r=" /* @deprecated */"),e.listTextColor=e.listText+r,e.menuItemBackgroundChecked+=r,e.warningHighlight+=r,e.warningText=e.messageText+r,e.successText+=r,e}function nTe(e,t){var r,n,o;t===void 0&&(t={});var i=tq({},e,t,{semanticColors:kne(t.palette,t.effects,t.semanticColors,t.isInverted===void 0?e.isInverted:t.isInverted)});if(!((r=t.palette)===null||r===void 0)&&r.themePrimary&&!(!((n=t.palette)===null||n===void 0)&&n.accent)&&(i.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var s=0,a=Object.keys(i.fonts);s"u"?global:window,lq=Ny&&Ny.CSPSettings&&Ny.CSPSettings.nonce,ha=QTe();function QTe(){var e=Ny.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return e.runState||(e=w0(w0({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),e.registeredThemableStyles||(e=w0(w0({},e),{registeredThemableStyles:[]})),Ny.__themeState__=e,e}function ZTe(e,t){ha.loadStyles?ha.loadStyles(Tne(e).styleString,e):r9e(e)}function JTe(e){ha.theme=e,t9e()}function e9e(e){e===void 0&&(e=3),(e===3||e===2)&&(uq(ha.registeredStyles),ha.registeredStyles=[]),(e===3||e===1)&&(uq(ha.registeredThemableStyles),ha.registeredThemableStyles=[])}function uq(e){e.forEach(function(t){var r=t&&t.styleElement;r&&r.parentElement&&r.parentElement.removeChild(r)})}function t9e(){if(ha.theme){for(var e=[],t=0,r=ha.registeredThemableStyles;t0&&(e9e(1),ZTe([].concat.apply([],e)))}}function Tne(e){var t=ha.theme,r=!1,n=(e||[]).map(function(o){var i=o.theme;if(i){r=!0;var s=t?t[i]:void 0,a=o.defaultValue||"inherit";return t&&!s&&console&&!(i in t)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(i,'". Falling back to "').concat(a,'".')),s||a}else return o.rawString});return{styleString:n.join(""),themable:r}}function r9e(e){if(!(typeof document>"u")){var t=document.getElementsByTagName("head")[0],r=document.createElement("style"),n=Tne(e),o=n.styleString,i=n.themable;r.setAttribute("data-load-themed-styles","true"),lq&&r.setAttribute("nonce",lq),r.appendChild(document.createTextNode(o)),ha.perf.count++,t.appendChild(r);var s=document.createEvent("HTMLEvents");s.initEvent("styleinsert",!0,!1),s.args={newStyle:r},document.dispatchEvent(s);var a={styleElement:r,themableStyle:e};i?ha.registeredThemableStyles.push(a):ha.registeredStyles.push(a)}}var tl=H_({}),n9e=[],bF="theme";function Ine(){var e,t,r,n=ho();!((t=n==null?void 0:n.FabricConfig)===null||t===void 0)&&t.legacyTheme?i9e(n.FabricConfig.legacyTheme):hf.getSettings([bF]).theme||(!((r=n==null?void 0:n.FabricConfig)===null||r===void 0)&&r.theme&&(tl=H_(n.FabricConfig.theme)),hf.applySettings((e={},e[bF]=tl,e)))}Ine();function o9e(e){return e===void 0&&(e=!1),e===!0&&(tl=H_({},e)),tl}function i9e(e,t){var r;return t===void 0&&(t=!1),tl=H_(e,t),JTe(_e(_e(_e(_e({},tl.palette),tl.semanticColors),tl.effects),s9e(tl))),hf.applySettings((r={},r[bF]=tl,r)),n9e.forEach(function(n){try{n(tl)}catch{}}),tl}function s9e(e){for(var t={},r=0,n=Object.keys(e.fonts);rt.bottom||e.leftt.right)}function lA(e,t){var r=[];return e.topt.bottom&&r.push(kt.bottom),e.leftt.right&&r.push(kt.right),r}function Mi(e,t){return e[kt[t]]}function dq(e,t,r){return e[kt[t]]=r,e}function gb(e,t){var r=uv(t);return(Mi(e,r.positiveEdge)+Mi(e,r.negativeEdge))/2}function sT(e,t){return e>0?t:t*-1}function _F(e,t){return sT(e,Mi(t,e))}function ec(e,t,r){var n=Mi(e,r)-Mi(t,r);return sT(r,n)}function wg(e,t,r,n){n===void 0&&(n=!0);var o=Mi(e,t)-r,i=dq(e,t,r);return n&&(i=dq(e,t*-1,Mi(e,t*-1)-o)),i}function vb(e,t,r,n){return n===void 0&&(n=0),wg(e,r,Mi(t,r)+sT(r,n))}function l9e(e,t,r,n){n===void 0&&(n=0);var o=r*-1,i=sT(o,n);return wg(e,r*-1,Mi(t,r)+i)}function uA(e,t,r){var n=_F(r,e);return n>_F(r,t)}function u9e(e,t){for(var r=lA(e,t),n=0,o=0,i=r;o=n}function f9e(e,t,r,n,o,i,s){o===void 0&&(o=!1),s===void 0&&(s=0);var a=[kt.left,kt.right,kt.bottom,kt.top];rs()&&(a[0]*=-1,a[1]*=-1);for(var l=e,u=n.targetEdge,c=n.alignmentEdge,f,d=u,h=c,g=0;g<4;g++){if(uA(l,r,u))return{elementRectangle:l,targetEdge:u,alignmentEdge:c};if(o&&c9e(t,r,u,i)){switch(u){case kt.bottom:l.bottom=r.bottom;break;case kt.top:l.top=r.top;break}return{elementRectangle:l,targetEdge:u,alignmentEdge:c,forcedInBounds:!0}}else{var v=u9e(l,r);(!f||v0&&(a.indexOf(u*-1)>-1?u=u*-1:(c=u,u=a.slice(-1)[0]),l=cA(e,t,{targetEdge:u,alignmentEdge:c},s))}}return l=cA(e,t,{targetEdge:d,alignmentEdge:h},s),{elementRectangle:l,targetEdge:d,alignmentEdge:h}}function d9e(e,t,r,n){var o=e.alignmentEdge,i=e.targetEdge,s=e.elementRectangle,a=o*-1,l=cA(s,t,{targetEdge:i,alignmentEdge:a},r,n);return{elementRectangle:l,targetEdge:i,alignmentEdge:a}}function h9e(e,t,r,n,o,i,s,a,l){o===void 0&&(o=!1),s===void 0&&(s=0);var u=n.alignmentEdge,c=n.alignTargetEdge,f={elementRectangle:e,targetEdge:n.targetEdge,alignmentEdge:u};!a&&!l&&(f=f9e(e,t,r,n,o,i,s));var d=lA(f.elementRectangle,r),h=a?-f.targetEdge:void 0;if(d.length>0)if(c)if(f.alignmentEdge&&d.indexOf(f.alignmentEdge*-1)>-1){var g=d9e(f,t,s,l);if(x8(g.elementRectangle,r))return g;f=y2(lA(g.elementRectangle,r),f,r,h)}else f=y2(d,f,r,h);else f=y2(d,f,r,h);return f}function y2(e,t,r,n){for(var o=0,i=e;oMath.abs(ec(e,r,t*-1))?t*-1:t}function p9e(e,t,r){return r!==void 0&&Mi(e,t)===Mi(r,t)}function g9e(e,t,r,n,o,i,s,a){var l={},u=aT(t),c=i?r:r*-1,f=o||uv(r).positiveEdge;return(!s||p9e(e,N9e(f),n))&&(f=Nne(e,f,n)),l[kt[c]]=ec(e,u,c),l[kt[f]]=ec(e,u,f),a&&(l[kt[c*-1]]=ec(e,u,c*-1),l[kt[f*-1]]=ec(e,u,f*-1)),l}function v9e(e){return Math.sqrt(e*e*2)}function m9e(e,t,r){if(e===void 0&&(e=_o.bottomAutoEdge),r)return{alignmentEdge:r.alignmentEdge,isAuto:r.isAuto,targetEdge:r.targetEdge};var n=_e({},fq[e]);return rs()?(n.alignmentEdge&&n.alignmentEdge%2===0&&(n.alignmentEdge=n.alignmentEdge*-1),t!==void 0?fq[t]:n):n}function y9e(e,t,r,n,o){return e.isAuto&&(e.alignmentEdge=Rne(e.targetEdge,t,r)),e.alignTargetEdge=o,e}function Rne(e,t,r){var n=gb(t,e),o=gb(r,e),i=uv(e),s=i.positiveEdge,a=i.negativeEdge;return n<=o?s:a}function b9e(e,t,r,n,o,i,s,a,l){i===void 0&&(i=!1);var u=cA(e,t,n,o,l);return x8(u,r)?{elementRectangle:u,targetEdge:n.targetEdge,alignmentEdge:n.alignmentEdge}:h9e(u,t,r,n,i,s,o,a,l)}function _9e(e,t,r){var n=e.targetEdge*-1,o=new hl(0,e.elementRectangle.width,0,e.elementRectangle.height),i={},s=Nne(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:uv(n).positiveEdge,r),a=ec(e.elementRectangle,e.targetRectangle,n),l=a>Math.abs(Mi(t,n));return i[kt[n]]=Mi(t,n),i[kt[s]]=ec(t,o,s),{elementPosition:_e({},i),closestEdge:Rne(e.targetEdge,t,o),targetEdge:n,hideBeak:!l}}function E9e(e,t){var r=t.targetRectangle,n=uv(t.targetEdge),o=n.positiveEdge,i=n.negativeEdge,s=gb(r,t.targetEdge),a=new hl(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new hl(0,e,0,e);return l=wg(l,t.targetEdge*-1,-e/2),l=Cne(l,t.targetEdge*-1,s-_F(o,t.elementRectangle)),uA(l,a,o)?uA(l,a,i)||(l=vb(l,a,i)):l=vb(l,a,o),l}function aT(e){var t=e.getBoundingClientRect();return new hl(t.left,t.right,t.top,t.bottom)}function S9e(e){return new hl(e.left,e.right,e.top,e.bottom)}function w9e(e,t){var r;if(t){if(t.preventDefault){var n=t;r=new hl(n.clientX,n.clientX,n.clientY,n.clientY)}else if(t.getBoundingClientRect)r=aT(t);else{var o=t,i=o.left||o.x,s=o.top||o.y,a=o.right||i,l=o.bottom||s;r=new hl(i,a,s,l)}if(!x8(r,e))for(var u=lA(r,e),c=0,f=u;c=n&&o&&u.top<=o&&u.bottom>=o&&(s={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return s}function O9e(e,t){return R9e(e,t)}function D9e(e,t,r){return One(e,t,r)}function F9e(e){return T9e(e)}function cv(){var e=A.useRef();return e.current||(e.current=new nne),A.useEffect(function(){return function(){var t;(t=e.current)===null||t===void 0||t.dispose(),e.current=void 0}},[]),e.current}function ic(e){var t=A.useRef();return t.current===void 0&&(t.current={value:typeof e=="function"?e():e}),t.current.value}function B9e(e){var t=A.useState(e),r=t[0],n=t[1],o=ic(function(){return function(){n(!0)}}),i=ic(function(){return function(){n(!1)}}),s=ic(function(){return function(){n(function(a){return!a})}});return[r,{setTrue:o,setFalse:i,toggle:s}]}function b2(e){var t=A.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return Eg(function(){t.current=e},[e]),ic(function(){return function(){for(var r=[],n=0;n0&&u>l&&(a=u-l>1)}o!==a&&i(a)}}),function(){return r.dispose()}}),o}function z9e(e){var t=e.originalElement,r=e.containsFocus;t&&r&&t!==ho()&&setTimeout(function(){var n;(n=t.focus)===null||n===void 0||n.call(t)},0)}function H9e(e,t){var r=e.onRestoreFocus,n=r===void 0?z9e:r,o=A.useRef(),i=A.useRef(!1);A.useEffect(function(){return o.current=cs().activeElement,sxe(t.current)&&(i.current=!0),function(){var s;n==null||n({originalElement:o.current,containsFocus:i.current,documentContainsFocus:((s=cs())===null||s===void 0?void 0:s.hasFocus())||!1}),o.current=void 0}},[]),mb(t,"focus",A.useCallback(function(){i.current=!0},[]),!0),mb(t,"blur",A.useCallback(function(s){t.current&&s.relatedTarget&&!t.current.contains(s.relatedTarget)&&(i.current=!1)},[]),!0)}function $9e(e,t){var r=String(e["aria-modal"]).toLowerCase()==="true"&&e.enableAriaHiddenSiblings;A.useEffect(function(){if(r&&t.current){var n=wne(t.current);return n}},[t,r])}var I8=A.forwardRef(function(e,t){var r=z_({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),n=A.useRef(),o=dc(n,t);$9e(r,n),H9e(r,n);var i=r.role,s=r.className,a=r.ariaLabel,l=r.ariaLabelledBy,u=r.ariaDescribedBy,c=r.style,f=r.children,d=r.onDismiss,h=j9e(r,n),g=A.useCallback(function(y){switch(y.which){case Kt.escape:d&&(d(y),y.preventDefault(),y.stopPropagation());break}},[d]),v=$_();return mb(v,"keydown",g),A.createElement("div",_e({ref:o},Bi(r,lv),{className:s,role:i,"aria-label":a,"aria-labelledby":l,"aria-describedby":u,onKeyDown:g,style:_e({overflowY:h?"scroll":void 0,outline:"none"},c)}),f)});I8.displayName="Popup";var $p,P9e="CalloutContentBase",q9e=($p={},$p[kt.top]=Jm.slideUpIn10,$p[kt.bottom]=Jm.slideDownIn10,$p[kt.left]=Jm.slideLeftIn10,$p[kt.right]=Jm.slideRightIn10,$p),hq={top:0,left:0},W9e={opacity:0,filter:"opacity(0)",pointerEvents:"none"},G9e=["role","aria-roledescription"],Lne={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:_o.bottomAutoEdge},K9e=wc({disableCaching:!0});function V9e(e,t,r){var n=e.bounds,o=e.minPagePadding,i=o===void 0?Lne.minPagePadding:o,s=e.target,a=A.useState(!1),l=a[0],u=a[1],c=A.useRef(),f=A.useCallback(function(){if(!c.current||l){var h=typeof n=="function"?r?n(s,r):void 0:n;!h&&r&&(h=O9e(t.current,r),h={top:h.top+i,left:h.left+i,right:h.right-i,bottom:h.bottom-i,width:h.width-i*2,height:h.height-i*2}),c.current=h,l&&u(!1)}return c.current},[n,i,s,t,r,l]),d=cv();return mb(r,"resize",d.debounce(function(){u(!0)},500,{leading:!0})),f}function U9e(e,t,r,n){var o,i=e.calloutMaxHeight,s=e.finalHeight,a=e.directionalHint,l=e.directionalHintFixed,u=e.hidden,c=e.gapSpace,f=e.beakWidth,d=e.isBeakVisible,h=A.useState(),g=h[0],v=h[1],y=(o=n==null?void 0:n.elementPosition)!==null&&o!==void 0?o:{},E=y.top,_=y.bottom,S=r!=null&&r.current?F9e(r.current):void 0;return A.useEffect(function(){var b,k=(b=t())!==null&&b!==void 0?b:{},T=k.top,x=k.bottom,I;(n==null?void 0:n.targetEdge)===kt.top&&(S!=null&&S.top)&&(x=S.top-D9e(d,f,c)),typeof E=="number"&&x?I=x-E:typeof _=="number"&&typeof T=="number"&&x&&(I=x-T-_),!i&&!u||i&&I&&i>I?v(I):v(i||void 0)},[_,i,s,a,l,t,u,n,E,c,f,d,S]),g}function Y9e(e,t,r,n,o,i){var s=A.useState(),a=s[0],l=s[1],u=A.useRef(0),c=A.useRef(),f=cv(),d=e.hidden,h=e.target,g=e.finalHeight,v=e.calloutMaxHeight,y=e.onPositioned,E=e.directionalHint,_=e.hideOverflow,S=e.preferScrollResizePositioning,b=$_(),k=A.useRef(),T;k.current!==i.current&&(k.current=i.current,T=i.current?b==null?void 0:b.getComputedStyle(i.current):void 0);var x=T==null?void 0:T.overflowY;return A.useEffect(function(){if(d)l(void 0),u.current=0;else{var I=f.requestAnimationFrame(function(){var C,R;if(t.current&&r){var D=_e(_e({},e),{target:n.current,bounds:o()}),L=r.cloneNode(!0);L.style.maxHeight=v?"".concat(v):"",L.style.visibility="hidden",(C=r.parentElement)===null||C===void 0||C.appendChild(L);var M=c.current===h?a:void 0,W=_||x==="clip"||x==="hidden",z=S&&!W,F=g?C9e(D,t.current,L,M):I9e(D,t.current,L,M,z);(R=r.parentElement)===null||R===void 0||R.removeChild(L),!a&&F||a&&F&&!J9e(a,F)&&u.current<5?(u.current++,l(F)):u.current>0&&(u.current=0,y==null||y(a))}},r);return c.current=h,function(){f.cancelAnimationFrame(I),c.current=void 0}}},[d,E,f,r,v,t,n,g,o,y,a,e,h,_,S,x]),a}function X9e(e,t,r){var n=e.hidden,o=e.setInitialFocus,i=cv(),s=!!t;A.useEffect(function(){if(!n&&o&&s&&r){var a=i.requestAnimationFrame(function(){return ixe(r)},r);return function(){return i.cancelAnimationFrame(a)}}},[n,s,i,r,o])}function Q9e(e,t,r,n,o){var i=e.hidden,s=e.onDismiss,a=e.preventDismissOnScroll,l=e.preventDismissOnResize,u=e.preventDismissOnLostFocus,c=e.dismissOnTargetClick,f=e.shouldDismissOnWindowFocus,d=e.preventDismissOnEvent,h=A.useRef(!1),g=cv(),v=ic([function(){h.current=!0},function(){h.current=!1}]),y=!!t;return A.useEffect(function(){var E=function(x){y&&!a&&b(x)},_=function(x){!l&&!(d&&d(x))&&(s==null||s(x))},S=function(x){u||b(x)},b=function(x){var I=x.composedPath?x.composedPath():[],C=I.length>0?I[0]:x.target,R=r.current&&!Rs(r.current,C);if(R&&h.current){h.current=!1;return}if(!n.current&&R||x.target!==o&&R&&(!n.current||"stopPropagation"in n.current||c||C!==n.current&&!Rs(n.current,C))){if(d&&d(x))return;s==null||s(x)}},k=function(x){f&&(d&&!d(x)||!d&&!u)&&!(o!=null&&o.document.hasFocus())&&x.relatedTarget===null&&(s==null||s(x))},T=new Promise(function(x){g.setTimeout(function(){if(!i&&o){var I=[Xu(o,"scroll",E,!0),Xu(o,"resize",_,!0),Xu(o.document.documentElement,"focus",S,!0),Xu(o.document.documentElement,"click",S,!0),Xu(o,"blur",k,!0)];x(function(){I.forEach(function(C){return C()})})}},0)});return function(){T.then(function(x){return x()})}},[i,g,r,n,o,s,f,c,u,l,a,y,d]),v}var jne=A.memo(A.forwardRef(function(e,t){var r=z_(Lne,e),n=r.styles,o=r.style,i=r.ariaLabel,s=r.ariaDescribedBy,a=r.ariaLabelledBy,l=r.className,u=r.isBeakVisible,c=r.children,f=r.beakWidth,d=r.calloutWidth,h=r.calloutMaxWidth,g=r.calloutMinWidth,v=r.doNotLayer,y=r.finalHeight,E=r.hideOverflow,_=E===void 0?!!y:E,S=r.backgroundColor,b=r.calloutMaxHeight,k=r.onScroll,T=r.shouldRestoreFocus,x=T===void 0?!0:T,I=r.target,C=r.hidden,R=r.onLayerMounted,D=r.popupProps,L=A.useRef(null),M=A.useRef(null),W=dc(M,D==null?void 0:D.ref),z=A.useState(null),F=z[0],P=z[1],K=A.useCallback(function(ot){P(ot)},[]),V=dc(L,t),Z=Bne(r.target,{current:F}),J=Z[0],ee=Z[1],de=V9e(r,J,ee),ge=Y9e(r,L,F,J,de,W),Se=U9e(r,de,J,ge),Re=Q9e(r,ge,L,J,ee),ve=Re[0],Ee=Re[1],me=(ge==null?void 0:ge.elementPosition.top)&&(ge==null?void 0:ge.elementPosition.bottom),we=_e(_e({},ge==null?void 0:ge.elementPosition),{maxHeight:Se});if(me&&(we.bottom=void 0),X9e(r,ge,F),A.useEffect(function(){C||R==null||R()},[C]),!ee)return null;var Ge=_,nt=u&&!!I,Qe=K9e(n,{theme:r.theme,className:l,overflowYHidden:Ge,calloutWidth:d,positions:ge,beakWidth:f,backgroundColor:S,calloutMaxWidth:h,calloutMinWidth:g,doNotLayer:v}),Ze=_e(_e({maxHeight:b||"100%"},o),Ge&&{overflowY:"hidden"}),Fe=r.hidden?{visibility:"hidden"}:void 0;return A.createElement("div",{ref:V,className:Qe.container,style:Fe},A.createElement("div",_e({},Bi(r,lv,G9e),{className:a1(Qe.root,ge&&ge.targetEdge&&q9e[ge.targetEdge]),style:ge?_e({},we):W9e,tabIndex:-1,ref:K}),nt&&A.createElement("div",{className:Qe.beak,style:Z9e(ge)}),nt&&A.createElement("div",{className:Qe.beakCurtain}),A.createElement(I8,_e({role:r.role,"aria-roledescription":r["aria-roledescription"],ariaDescribedBy:s,ariaLabel:i,ariaLabelledBy:a,className:Qe.calloutMain,onDismiss:r.onDismiss,onMouseDown:ve,onMouseUp:Ee,onRestoreFocus:r.onRestoreFocus,onScroll:k,shouldRestoreFocus:x,style:Ze},D,{ref:W}),c)))}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:S8(e,t)});function Z9e(e){var t,r,n=_e(_e({},(t=e==null?void 0:e.beakPosition)===null||t===void 0?void 0:t.elementPosition),{display:!((r=e==null?void 0:e.beakPosition)===null||r===void 0)&&r.hideBeak?"none":void 0});return!n.top&&!n.bottom&&!n.left&&!n.right&&(n.left=hq.left,n.top=hq.top),n}function J9e(e,t){return pq(e.elementPosition,t.elementPosition)&&pq(e.beakPosition.elementPosition,t.beakPosition.elementPosition)}function pq(e,t){for(var r in t)if(t.hasOwnProperty(r)){var n=e[r],o=t[r];if(n!==void 0&&o!==void 0){if(n.toFixed(2)!==o.toFixed(2))return!1}else return!1}return!0}jne.displayName=P9e;function e5e(e){return{height:e,width:e}}var t5e={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},r5e=function(e){var t,r=e.theme,n=e.className,o=e.overflowYHidden,i=e.calloutWidth,s=e.beakWidth,a=e.backgroundColor,l=e.calloutMaxWidth,u=e.calloutMinWidth,c=e.doNotLayer,f=Ac(t5e,r),d=r.semanticColors,h=r.effects;return{container:[f.container,{position:"relative"}],root:[f.root,r.fonts.medium,{position:"absolute",display:"flex",zIndex:c?Sg.Layer:void 0,boxSizing:"border-box",borderRadius:h.roundedCorner2,boxShadow:h.elevation16,selectors:(t={},t[Q0]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},UTe(),n,!!i&&{width:i},!!l&&{maxWidth:l},!!u&&{minWidth:u}],beak:[f.beak,{position:"absolute",backgroundColor:d.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},e5e(s),a&&{backgroundColor:a}],beakCurtain:[f.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:d.menuBackground,borderRadius:h.roundedCorner2}],calloutMain:[f.calloutMain,{backgroundColor:d.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:h.roundedCorner2},o&&{overflowY:"hidden"},a&&{backgroundColor:a}]}},n5e=kc(jne,r5e,void 0,{scope:"CalloutContent"});const zne=A.createContext(void 0),o5e=()=>()=>{};zne.Provider;function i5e(){var e;return(e=A.useContext(zne))!==null&&e!==void 0?e:o5e}var Hne={exports:{}},Oa={},$ne={exports:{}},Pne={};/** * @license React * scheduler.production.min.js * @@ -24,7 +24,7 @@ var Mke=Object.defineProperty;var Lke=(e,t,r)=>t in e?Mke(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(K,V){var Z=K.length;K.push(V);e:for(;0>>1,ee=K[J];if(0>>1;Jo(Se,Z))Reo(ve,Se)?(K[J]=ve,K[Re]=Z,J=Re):(K[J]=Se,K[ge]=Z,J=ge);else if(Reo(ve,Z))K[J]=ve,K[Re]=Z,J=Re;else break e}}return V}function o(K,V){var Z=K.sortIndex-V.sortIndex;return Z!==0?Z:K.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,h=!1,g=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(K){for(var V=r(u);V!==null;){if(V.callback===null)n(u);else if(V.startTime<=K)n(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=r(u)}}function b(K){if(v=!1,S(K),!g)if(r(l)!==null)g=!0,F(k);else{var V=r(u);V!==null&&P(b,V.startTime-K)}}function k(K,V){g=!1,v&&(v=!1,E(I),I=-1),h=!0;var Z=d;try{for(S(V),f=r(l);f!==null&&(!(f.expirationTime>V)||K&&!D());){var J=f.callback;if(typeof J=="function"){f.callback=null,d=f.priorityLevel;var ee=J(f.expirationTime<=V);V=e.unstable_now(),typeof ee=="function"?f.callback=ee:f===r(l)&&n(l),S(V)}else n(l);f=r(l)}if(f!==null)var de=!0;else{var ge=r(u);ge!==null&&P(b,ge.startTime-V),de=!1}return de}finally{f=null,d=Z,h=!1}}var T=!1,x=null,I=-1,C=5,R=-1;function D(){return!(e.unstable_now()-RK||125J?(K.sortIndex=Z,t(u,K),r(l)===null&&K===r(u)&&(v?(E(I),I=-1):v=!0,P(b,Z-J))):(K.sortIndex=ee,t(l,K),g||h||(g=!0,F(k))),K},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(K){var V=d;return function(){var Z=d;d=V;try{return K.apply(this,arguments)}finally{d=Z}}}})($ne);Hne.exports=$ne;var _F=Hne.exports;/** + */(function(e){function t(K,V){var Z=K.length;K.push(V);e:for(;0>>1,ee=K[J];if(0>>1;Jo(Se,Z))Reo(ve,Se)?(K[J]=ve,K[Re]=Z,J=Re):(K[J]=Se,K[ge]=Z,J=ge);else if(Reo(ve,Z))K[J]=ve,K[Re]=Z,J=Re;else break e}}return V}function o(K,V){var Z=K.sortIndex-V.sortIndex;return Z!==0?Z:K.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,h=!1,g=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(K){for(var V=r(u);V!==null;){if(V.callback===null)n(u);else if(V.startTime<=K)n(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=r(u)}}function b(K){if(v=!1,S(K),!g)if(r(l)!==null)g=!0,F(k);else{var V=r(u);V!==null&&P(b,V.startTime-K)}}function k(K,V){g=!1,v&&(v=!1,E(I),I=-1),h=!0;var Z=d;try{for(S(V),f=r(l);f!==null&&(!(f.expirationTime>V)||K&&!D());){var J=f.callback;if(typeof J=="function"){f.callback=null,d=f.priorityLevel;var ee=J(f.expirationTime<=V);V=e.unstable_now(),typeof ee=="function"?f.callback=ee:f===r(l)&&n(l),S(V)}else n(l);f=r(l)}if(f!==null)var de=!0;else{var ge=r(u);ge!==null&&P(b,ge.startTime-V),de=!1}return de}finally{f=null,d=Z,h=!1}}var T=!1,x=null,I=-1,C=5,R=-1;function D(){return!(e.unstable_now()-RK||125J?(K.sortIndex=Z,t(u,K),r(l)===null&&K===r(u)&&(v?(E(I),I=-1):v=!0,P(b,Z-J))):(K.sortIndex=ee,t(l,K),g||h||(g=!0,F(k))),K},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(K){var V=d;return function(){var Z=d;d=V;try{return K.apply(this,arguments)}finally{d=Z}}}})(Pne);$ne.exports=Pne;var EF=$ne.exports;/** * @license React * react-dom.production.min.js * @@ -32,14 +32,14 @@ var Mke=Object.defineProperty;var Lke=(e,t,r)=>t in e?Mke(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Pne=A,Aa=_F;function We(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),EF=Object.prototype.hasOwnProperty,t5e=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pq={},gq={};function r5e(e){return EF.call(gq,e)?!0:EF.call(pq,e)?!1:t5e.test(e)?gq[e]=!0:(pq[e]=!0,!1)}function n5e(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function o5e(e,t,r,n){if(t===null||typeof t>"u"||n5e(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function vs(e,t,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var vi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){vi[e]=new vs(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];vi[t]=new vs(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){vi[e]=new vs(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vi[e]=new vs(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){vi[e]=new vs(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){vi[e]=new vs(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){vi[e]=new vs(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){vi[e]=new vs(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){vi[e]=new vs(e,5,!1,e.toLowerCase(),null,!1,!1)});var I8=/[\-:]([a-z])/g;function C8(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(I8,C8);vi[t]=new vs(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(I8,C8);vi[t]=new vs(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(I8,C8);vi[t]=new vs(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){vi[e]=new vs(e,1,!1,e.toLowerCase(),null,!1,!1)});vi.xlinkHref=new vs("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){vi[e]=new vs(e,1,!1,e.toLowerCase(),null,!0,!0)});function N8(e,t,r,n){var o=vi.hasOwnProperty(t)?vi[t]:null;(o!==null?o.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),SF=Object.prototype.hasOwnProperty,s5e=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,gq={},vq={};function a5e(e){return SF.call(vq,e)?!0:SF.call(gq,e)?!1:s5e.test(e)?vq[e]=!0:(gq[e]=!0,!1)}function l5e(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function u5e(e,t,r,n){if(t===null||typeof t>"u"||l5e(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function vs(e,t,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var vi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){vi[e]=new vs(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];vi[t]=new vs(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){vi[e]=new vs(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vi[e]=new vs(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){vi[e]=new vs(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){vi[e]=new vs(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){vi[e]=new vs(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){vi[e]=new vs(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){vi[e]=new vs(e,5,!1,e.toLowerCase(),null,!1,!1)});var C8=/[\-:]([a-z])/g;function N8(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(C8,N8);vi[t]=new vs(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(C8,N8);vi[t]=new vs(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(C8,N8);vi[t]=new vs(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){vi[e]=new vs(e,1,!1,e.toLowerCase(),null,!1,!1)});vi.xlinkHref=new vs("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){vi[e]=new vs(e,1,!1,e.toLowerCase(),null,!0,!0)});function R8(e,t,r,n){var o=vi.hasOwnProperty(t)?vi[t]:null;(o!==null?o.type!==0:n||!(2a||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{E2=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ey(e):""}function i5e(e){switch(e.tag){case 5:return ey(e.type);case 16:return ey("Lazy");case 13:return ey("Suspense");case 19:return ey("SuspenseList");case 0:case 2:case 15:return e=S2(e.type,!1),e;case 11:return e=S2(e.type.render,!1),e;case 1:return e=S2(e.type,!0),e;default:return""}}function AF(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A0:return"Fragment";case k0:return"Portal";case SF:return"Profiler";case R8:return"StrictMode";case wF:return"Suspense";case kF:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gne:return(e.displayName||"Context")+".Consumer";case Wne:return(e._context.displayName||"Context")+".Provider";case O8:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case D8:return t=e.displayName||null,t!==null?t:AF(e.type)||"Memo";case Sd:t=e._payload,e=e._init;try{return AF(e(t))}catch{}}return null}function s5e(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return AF(t);case 8:return t===R8?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function l1(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vne(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function a5e(e){var t=Vne(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zS(e){e._valueTracker||(e._valueTracker=a5e(e))}function Une(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Vne(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function cA(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function xF(e,t){var r=t.checked;return Qn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function mq(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=l1(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Yne(e,t){t=t.checked,t!=null&&N8(e,"checked",t,!1)}function TF(e,t){Yne(e,t);var r=l1(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?IF(e,t.type,r):t.hasOwnProperty("defaultValue")&&IF(e,t.type,l1(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yq(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function IF(e,t,r){(t!=="number"||cA(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ty=Array.isArray;function Z0(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=HS.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bb(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ry={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},l5e=["Webkit","ms","Moz","O"];Object.keys(Ry).forEach(function(e){l5e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ry[t]=Ry[e]})});function Jne(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ry.hasOwnProperty(e)&&Ry[e]?(""+t).trim():t+"px"}function eoe(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Jne(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var u5e=Qn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function RF(e,t){if(t){if(u5e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(We(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(We(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(We(61))}if(t.style!=null&&typeof t.style!="object")throw Error(We(62))}}function OF(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var DF=null;function F8(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var FF=null,J0=null,eg=null;function Eq(e){if(e=W_(e)){if(typeof FF!="function")throw Error(We(280));var t=e.stateNode;t&&(t=dT(t),FF(e.stateNode,e.type,t))}}function toe(e){J0?eg?eg.push(e):eg=[e]:J0=e}function roe(){if(J0){var e=J0,t=eg;if(eg=J0=null,Eq(e),t)for(e=0;e>>=0,e===0?32:31-(_5e(e)/E5e|0)|0}var $S=64,PS=4194304;function ry(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pA(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~o;a!==0?n=ry(a):(i&=s,i!==0&&(n=ry(i)))}else s=r&~o,s!==0?n=ry(s):i!==0&&(n=ry(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function P_(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-su(t),e[t]=r}function A5e(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Dy),Nq=" ",Rq=!1;function Soe(e,t){switch(e){case"keyup":return J5e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function woe(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var x0=!1;function tIe(e,t){switch(e){case"compositionend":return woe(t);case"keypress":return t.which!==32?null:(Rq=!0,Nq);case"textInput":return e=t.data,e===Nq&&Rq?null:e;default:return null}}function rIe(e,t){if(x0)return e==="compositionend"||!P8&&Soe(e,t)?(e=_oe(),hk=z8=Fd=null,x0=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Bq(r)}}function Toe(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Toe(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ioe(){for(var e=window,t=cA();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=cA(e.document)}return t}function q8(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function fIe(e){var t=Ioe(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Toe(r.ownerDocument.documentElement,r)){if(n!==null&&q8(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Mq(r,i);var s=Mq(r,n);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,T0=null,HF=null,By=null,$F=!1;function Lq(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;$F||T0==null||T0!==cA(n)||(n=T0,"selectionStart"in n&&q8(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),By&&Ab(By,n)||(By=n,n=mA(HF,"onSelect"),0N0||(e.current=VF[N0],VF[N0]=null,N0--)}function pn(e,t){N0++,VF[N0]=e.current,e.current=t}var u1={},ji=I1(u1),Fs=I1(!1),qh=u1;function Ag(e,t){var r=e.type.contextTypes;if(!r)return u1;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Bs(e){return e=e.childContextTypes,e!=null}function bA(){xn(Fs),xn(ji)}function Wq(e,t,r){if(ji.current!==u1)throw Error(We(168));pn(ji,t),pn(Fs,r)}function Loe(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(We(108,s5e(e)||"Unknown",o));return Qn({},r,n)}function _A(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||u1,qh=ji.current,pn(ji,e),pn(Fs,Fs.current),!0}function Gq(e,t,r){var n=e.stateNode;if(!n)throw Error(We(169));r?(e=Loe(e,t,qh),n.__reactInternalMemoizedMergedChildContext=e,xn(Fs),xn(ji),pn(ji,e)):xn(Fs),pn(Fs,r)}var rf=null,hT=!1,M2=!1;function joe(e){rf===null?rf=[e]:rf.push(e)}function wIe(e){hT=!0,joe(e)}function C1(){if(!M2&&rf!==null){M2=!0;var e=0,t=Qr;try{var r=rf;for(Qr=1;e>=s,o-=s,sf=1<<32-su(t)+o|r<I?(C=x,x=null):C=x.sibling;var R=d(E,x,S[I],b);if(R===null){x===null&&(x=C);break}e&&x&&R.alternate===null&&t(E,x),_=i(R,_,I),T===null?k=R:T.sibling=R,T=R,x=C}if(I===S.length)return r(E,x),Fn&&J1(E,I),k;if(x===null){for(;II?(C=x,x=null):C=x.sibling;var D=d(E,x,R.value,b);if(D===null){x===null&&(x=C);break}e&&x&&D.alternate===null&&t(E,x),_=i(D,_,I),T===null?k=D:T.sibling=D,T=D,x=C}if(R.done)return r(E,x),Fn&&J1(E,I),k;if(x===null){for(;!R.done;I++,R=S.next())R=f(E,R.value,b),R!==null&&(_=i(R,_,I),T===null?k=R:T.sibling=R,T=R);return Fn&&J1(E,I),k}for(x=n(E,x);!R.done;I++,R=S.next())R=h(x,E,I,R.value,b),R!==null&&(e&&R.alternate!==null&&x.delete(R.key===null?I:R.key),_=i(R,_,I),T===null?k=R:T.sibling=R,T=R);return e&&x.forEach(function(L){return t(E,L)}),Fn&&J1(E,I),k}function y(E,_,S,b){if(typeof S=="object"&&S!==null&&S.type===A0&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case jS:e:{for(var k=S.key,T=_;T!==null;){if(T.key===k){if(k=S.type,k===A0){if(T.tag===7){r(E,T.sibling),_=o(T,S.props.children),_.return=E,E=_;break e}}else if(T.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Sd&&Zq(k)===T.type){r(E,T.sibling),_=o(T,S.props),_.ref=km(E,T,S),_.return=E,E=_;break e}r(E,T);break}else t(E,T);T=T.sibling}S.type===A0?(_=Oh(S.props.children,E.mode,b,S.key),_.return=E,E=_):(b=Ek(S.type,S.key,S.props,null,E.mode,b),b.ref=km(E,_,S),b.return=E,E=b)}return s(E);case k0:e:{for(T=S.key;_!==null;){if(_.key===T)if(_.tag===4&&_.stateNode.containerInfo===S.containerInfo&&_.stateNode.implementation===S.implementation){r(E,_.sibling),_=o(_,S.children||[]),_.return=E,E=_;break e}else{r(E,_);break}else t(E,_);_=_.sibling}_=W2(S,E.mode,b),_.return=E,E=_}return s(E);case Sd:return T=S._init,y(E,_,T(S._payload),b)}if(ty(S))return g(E,_,S,b);if(bm(S))return v(E,_,S,b);YS(E,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,_!==null&&_.tag===6?(r(E,_.sibling),_=o(_,S),_.return=E,E=_):(r(E,_),_=q2(S,E.mode,b),_.return=E,E=_),s(E)):r(E,_)}return y}var Tg=Koe(!0),Voe=Koe(!1),G_={},ac=I1(G_),Cb=I1(G_),Nb=I1(G_);function Eh(e){if(e===G_)throw Error(We(174));return e}function Z8(e,t){switch(pn(Nb,t),pn(Cb,e),pn(ac,G_),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:NF(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=NF(t,e)}xn(ac),pn(ac,t)}function Ig(){xn(ac),xn(Cb),xn(Nb)}function Uoe(e){Eh(Nb.current);var t=Eh(ac.current),r=NF(t,e.type);t!==r&&(pn(Cb,e),pn(ac,r))}function J8(e){Cb.current===e&&(xn(ac),xn(Cb))}var Gn=I1(0);function xA(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var L2=[];function eL(){for(var e=0;er?r:4,e(!0);var n=j2.transition;j2.transition={};try{e(!1),t()}finally{Qr=r,j2.transition=n}}function cie(){return _l().memoizedState}function TIe(e,t,r){var n=Yd(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},fie(e))die(t,r);else if(r=Poe(e,t,r,n),r!==null){var o=as();au(r,e,n,o),hie(r,t,n)}}function IIe(e,t,r){var n=Yd(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(fie(e))die(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,r);if(o.hasEagerState=!0,o.eagerState=a,fu(a,s)){var l=t.interleaved;l===null?(o.next=o,X8(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=Poe(e,t,o,n),r!==null&&(o=as(),au(r,e,n,o),hie(r,t,n))}}function fie(e){var t=e.alternate;return e===Yn||t!==null&&t===Yn}function die(e,t){My=TA=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function hie(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,M8(e,r)}}var IA={readContext:bl,useCallback:Si,useContext:Si,useEffect:Si,useImperativeHandle:Si,useInsertionEffect:Si,useLayoutEffect:Si,useMemo:Si,useReducer:Si,useRef:Si,useState:Si,useDebugValue:Si,useDeferredValue:Si,useTransition:Si,useMutableSource:Si,useSyncExternalStore:Si,useId:Si,unstable_isNewReconciler:!1},CIe={readContext:bl,useCallback:function(e,t){return Lu().memoizedState=[e,t===void 0?null:t],e},useContext:bl,useEffect:eW,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,mk(4194308,4,iie.bind(null,t,e),r)},useLayoutEffect:function(e,t){return mk(4194308,4,e,t)},useInsertionEffect:function(e,t){return mk(4,2,e,t)},useMemo:function(e,t){var r=Lu();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Lu();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=TIe.bind(null,Yn,e),[n.memoizedState,e]},useRef:function(e){var t=Lu();return e={current:e},t.memoizedState=e},useState:Jq,useDebugValue:iL,useDeferredValue:function(e){return Lu().memoizedState=e},useTransition:function(){var e=Jq(!1),t=e[0];return e=xIe.bind(null,e[1]),Lu().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Yn,o=Lu();if(Fn){if(r===void 0)throw Error(We(407));r=r()}else{if(r=t(),ei===null)throw Error(We(349));Gh&30||Qoe(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,eW(Joe.bind(null,n,i,e),[e]),n.flags|=2048,Db(9,Zoe.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Lu(),t=ei.identifierPrefix;if(Fn){var r=af,n=sf;r=(n&~(1<<32-su(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Rb++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{E2=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ey(e):""}function c5e(e){switch(e.tag){case 5:return ey(e.type);case 16:return ey("Lazy");case 13:return ey("Suspense");case 19:return ey("SuspenseList");case 0:case 2:case 15:return e=S2(e.type,!1),e;case 11:return e=S2(e.type.render,!1),e;case 1:return e=S2(e.type,!0),e;default:return""}}function xF(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A0:return"Fragment";case k0:return"Portal";case wF:return"Profiler";case O8:return"StrictMode";case kF:return"Suspense";case AF:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Kne:return(e.displayName||"Context")+".Consumer";case Gne:return(e._context.displayName||"Context")+".Provider";case D8:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F8:return t=e.displayName||null,t!==null?t:xF(e.type)||"Memo";case Sd:t=e._payload,e=e._init;try{return xF(e(t))}catch{}}return null}function f5e(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xF(t);case 8:return t===O8?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function l1(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Une(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function d5e(e){var t=Une(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function HS(e){e._valueTracker||(e._valueTracker=d5e(e))}function Yne(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Une(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function fA(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function TF(e,t){var r=t.checked;return Zn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function yq(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=l1(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xne(e,t){t=t.checked,t!=null&&R8(e,"checked",t,!1)}function IF(e,t){Xne(e,t);var r=l1(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?CF(e,t.type,r):t.hasOwnProperty("defaultValue")&&CF(e,t.type,l1(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bq(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function CF(e,t,r){(t!=="number"||fA(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ty=Array.isArray;function Z0(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=$S.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bb(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ry={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},h5e=["Webkit","ms","Moz","O"];Object.keys(Ry).forEach(function(e){h5e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ry[t]=Ry[e]})});function eoe(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ry.hasOwnProperty(e)&&Ry[e]?(""+t).trim():t+"px"}function toe(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=eoe(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var p5e=Zn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function OF(e,t){if(t){if(p5e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(We(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(We(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(We(61))}if(t.style!=null&&typeof t.style!="object")throw Error(We(62))}}function DF(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var FF=null;function B8(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var BF=null,J0=null,eg=null;function Sq(e){if(e=W_(e)){if(typeof BF!="function")throw Error(We(280));var t=e.stateNode;t&&(t=hT(t),BF(e.stateNode,e.type,t))}}function roe(e){J0?eg?eg.push(e):eg=[e]:J0=e}function noe(){if(J0){var e=J0,t=eg;if(eg=J0=null,Sq(e),t)for(e=0;e>>=0,e===0?32:31-(A5e(e)/x5e|0)|0}var PS=64,qS=4194304;function ry(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function gA(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~o;a!==0?n=ry(a):(i&=s,i!==0&&(n=ry(i)))}else s=r&~o,s!==0?n=ry(s):i!==0&&(n=ry(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function P_(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-su(t),e[t]=r}function N5e(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Dy),Rq=" ",Oq=!1;function woe(e,t){switch(e){case"keyup":return oIe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function koe(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var x0=!1;function sIe(e,t){switch(e){case"compositionend":return koe(t);case"keypress":return t.which!==32?null:(Oq=!0,Rq);case"textInput":return e=t.data,e===Rq&&Oq?null:e;default:return null}}function aIe(e,t){if(x0)return e==="compositionend"||!q8&&woe(e,t)?(e=Eoe(),pk=H8=Fd=null,x0=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Mq(r)}}function Ioe(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ioe(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Coe(){for(var e=window,t=fA();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=fA(e.document)}return t}function W8(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function vIe(e){var t=Coe(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Ioe(r.ownerDocument.documentElement,r)){if(n!==null&&W8(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Lq(r,i);var s=Lq(r,n);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,T0=null,$F=null,By=null,PF=!1;function jq(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;PF||T0==null||T0!==fA(n)||(n=T0,"selectionStart"in n&&W8(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),By&&Ab(By,n)||(By=n,n=yA($F,"onSelect"),0N0||(e.current=UF[N0],UF[N0]=null,N0--)}function hn(e,t){N0++,UF[N0]=e.current,e.current=t}var u1={},Li=I1(u1),Fs=I1(!1),Wh=u1;function Ag(e,t){var r=e.type.contextTypes;if(!r)return u1;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Bs(e){return e=e.childContextTypes,e!=null}function _A(){xn(Fs),xn(Li)}function Gq(e,t,r){if(Li.current!==u1)throw Error(We(168));hn(Li,t),hn(Fs,r)}function joe(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(We(108,f5e(e)||"Unknown",o));return Zn({},r,n)}function EA(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||u1,Wh=Li.current,hn(Li,e),hn(Fs,Fs.current),!0}function Kq(e,t,r){var n=e.stateNode;if(!n)throw Error(We(169));r?(e=joe(e,t,Wh),n.__reactInternalMemoizedMergedChildContext=e,xn(Fs),xn(Li),hn(Li,e)):xn(Fs),hn(Fs,r)}var rf=null,pT=!1,M2=!1;function zoe(e){rf===null?rf=[e]:rf.push(e)}function IIe(e){pT=!0,zoe(e)}function C1(){if(!M2&&rf!==null){M2=!0;var e=0,t=Qr;try{var r=rf;for(Qr=1;e>=s,o-=s,sf=1<<32-su(t)+o|r<I?(C=x,x=null):C=x.sibling;var R=d(E,x,S[I],b);if(R===null){x===null&&(x=C);break}e&&x&&R.alternate===null&&t(E,x),_=i(R,_,I),T===null?k=R:T.sibling=R,T=R,x=C}if(I===S.length)return r(E,x),Fn&&eh(E,I),k;if(x===null){for(;II?(C=x,x=null):C=x.sibling;var D=d(E,x,R.value,b);if(D===null){x===null&&(x=C);break}e&&x&&D.alternate===null&&t(E,x),_=i(D,_,I),T===null?k=D:T.sibling=D,T=D,x=C}if(R.done)return r(E,x),Fn&&eh(E,I),k;if(x===null){for(;!R.done;I++,R=S.next())R=f(E,R.value,b),R!==null&&(_=i(R,_,I),T===null?k=R:T.sibling=R,T=R);return Fn&&eh(E,I),k}for(x=n(E,x);!R.done;I++,R=S.next())R=h(x,E,I,R.value,b),R!==null&&(e&&R.alternate!==null&&x.delete(R.key===null?I:R.key),_=i(R,_,I),T===null?k=R:T.sibling=R,T=R);return e&&x.forEach(function(L){return t(E,L)}),Fn&&eh(E,I),k}function y(E,_,S,b){if(typeof S=="object"&&S!==null&&S.type===A0&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case zS:e:{for(var k=S.key,T=_;T!==null;){if(T.key===k){if(k=S.type,k===A0){if(T.tag===7){r(E,T.sibling),_=o(T,S.props.children),_.return=E,E=_;break e}}else if(T.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Sd&&Jq(k)===T.type){r(E,T.sibling),_=o(T,S.props),_.ref=km(E,T,S),_.return=E,E=_;break e}r(E,T);break}else t(E,T);T=T.sibling}S.type===A0?(_=Dh(S.props.children,E.mode,b,S.key),_.return=E,E=_):(b=Sk(S.type,S.key,S.props,null,E.mode,b),b.ref=km(E,_,S),b.return=E,E=b)}return s(E);case k0:e:{for(T=S.key;_!==null;){if(_.key===T)if(_.tag===4&&_.stateNode.containerInfo===S.containerInfo&&_.stateNode.implementation===S.implementation){r(E,_.sibling),_=o(_,S.children||[]),_.return=E,E=_;break e}else{r(E,_);break}else t(E,_);_=_.sibling}_=W2(S,E.mode,b),_.return=E,E=_}return s(E);case Sd:return T=S._init,y(E,_,T(S._payload),b)}if(ty(S))return g(E,_,S,b);if(bm(S))return v(E,_,S,b);XS(E,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,_!==null&&_.tag===6?(r(E,_.sibling),_=o(_,S),_.return=E,E=_):(r(E,_),_=q2(S,E.mode,b),_.return=E,E=_),s(E)):r(E,_)}return y}var Tg=Voe(!0),Uoe=Voe(!1),G_={},ac=I1(G_),Cb=I1(G_),Nb=I1(G_);function Sh(e){if(e===G_)throw Error(We(174));return e}function J8(e,t){switch(hn(Nb,t),hn(Cb,e),hn(ac,G_),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:RF(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=RF(t,e)}xn(ac),hn(ac,t)}function Ig(){xn(ac),xn(Cb),xn(Nb)}function Yoe(e){Sh(Nb.current);var t=Sh(ac.current),r=RF(t,e.type);t!==r&&(hn(Cb,e),hn(ac,r))}function eL(e){Cb.current===e&&(xn(ac),xn(Cb))}var Gn=I1(0);function TA(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var L2=[];function tL(){for(var e=0;er?r:4,e(!0);var n=j2.transition;j2.transition={};try{e(!1),t()}finally{Qr=r,j2.transition=n}}function fie(){return El().memoizedState}function OIe(e,t,r){var n=Yd(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},die(e))hie(t,r);else if(r=qoe(e,t,r,n),r!==null){var o=as();au(r,e,n,o),pie(r,t,n)}}function DIe(e,t,r){var n=Yd(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(die(e))hie(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,r);if(o.hasEagerState=!0,o.eagerState=a,fu(a,s)){var l=t.interleaved;l===null?(o.next=o,Q8(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=qoe(e,t,o,n),r!==null&&(o=as(),au(r,e,n,o),pie(r,t,n))}}function die(e){var t=e.alternate;return e===Xn||t!==null&&t===Xn}function hie(e,t){My=IA=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function pie(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,L8(e,r)}}var CA={readContext:_l,useCallback:Ei,useContext:Ei,useEffect:Ei,useImperativeHandle:Ei,useInsertionEffect:Ei,useLayoutEffect:Ei,useMemo:Ei,useReducer:Ei,useRef:Ei,useState:Ei,useDebugValue:Ei,useDeferredValue:Ei,useTransition:Ei,useMutableSource:Ei,useSyncExternalStore:Ei,useId:Ei,unstable_isNewReconciler:!1},FIe={readContext:_l,useCallback:function(e,t){return Lu().memoizedState=[e,t===void 0?null:t],e},useContext:_l,useEffect:tW,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,yk(4194308,4,sie.bind(null,t,e),r)},useLayoutEffect:function(e,t){return yk(4194308,4,e,t)},useInsertionEffect:function(e,t){return yk(4,2,e,t)},useMemo:function(e,t){var r=Lu();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Lu();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=OIe.bind(null,Xn,e),[n.memoizedState,e]},useRef:function(e){var t=Lu();return e={current:e},t.memoizedState=e},useState:eW,useDebugValue:sL,useDeferredValue:function(e){return Lu().memoizedState=e},useTransition:function(){var e=eW(!1),t=e[0];return e=RIe.bind(null,e[1]),Lu().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Xn,o=Lu();if(Fn){if(r===void 0)throw Error(We(407));r=r()}else{if(r=t(),ei===null)throw Error(We(349));Kh&30||Zoe(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,tW(eie.bind(null,n,i,e),[e]),n.flags|=2048,Db(9,Joe.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Lu(),t=ei.identifierPrefix;if(Fn){var r=af,n=sf;r=(n&~(1<<32-su(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Rb++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[Qu]=t,e[Ib]=n,Sie(e,t,!1,!1),t.stateNode=e;e:{switch(s=OF(r,n),r){case"dialog":Sn("cancel",e),Sn("close",e),o=n;break;case"iframe":case"object":case"embed":Sn("load",e),o=n;break;case"video":case"audio":for(o=0;oNg&&(t.flags|=128,n=!0,Am(i,!1),t.lanes=4194304)}else{if(!n)if(e=xA(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Am(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Fn)return wi(t),null}else 2*fo()-i.renderingStartTime>Ng&&r!==1073741824&&(t.flags|=128,n=!0,Am(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(r=i.last,r!==null?r.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=fo(),t.sibling=null,r=Gn.current,pn(Gn,n?r&1|2:r&1),t):(wi(t),null);case 22:case 23:return fL(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?oa&1073741824&&(wi(t),t.subtreeFlags&6&&(t.flags|=8192)):wi(t),null;case 24:return null;case 25:return null}throw Error(We(156,t.tag))}function LIe(e,t){switch(G8(t),t.tag){case 1:return Bs(t.type)&&bA(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ig(),xn(Fs),xn(ji),eL(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return J8(t),null;case 13:if(xn(Gn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(We(340));xg()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xn(Gn),null;case 4:return Ig(),null;case 10:return Y8(t.type._context),null;case 22:case 23:return fL(),null;case 24:return null;default:return null}}var QS=!1,Ni=!1,jIe=typeof WeakSet=="function"?WeakSet:Set,gt=null;function F0(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){eo(e,t,n)}else r.current=null}function iB(e,t,r){try{r()}catch(n){eo(e,t,n)}}var uW=!1;function zIe(e,t){if(PF=gA,e=Ioe(),q8(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||o!==0&&f.nodeType!==3||(a=s+o),f!==i||n!==0&&f.nodeType!==3||(l=s+n),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++u===o&&(a=s),d===i&&++c===n&&(l=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(qF={focusedElem:e,selectionRange:r},gA=!1,gt=t;gt!==null;)if(t=gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,gt=e;else for(;gt!==null;){t=gt;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,y=g.memoizedState,E=t.stateNode,_=E.getSnapshotBeforeUpdate(t.elementType===t.type?v:Zl(t.type,v),y);E.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(We(163))}}catch(b){eo(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,gt=e;break}gt=t.return}return g=uW,uW=!1,g}function Ly(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&iB(t,r,i)}o=o.next}while(o!==n)}}function vT(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function sB(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Aie(e){var t=e.alternate;t!==null&&(e.alternate=null,Aie(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qu],delete t[Ib],delete t[KF],delete t[EIe],delete t[SIe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function xie(e){return e.tag===5||e.tag===3||e.tag===4}function cW(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xie(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function aB(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=yA));else if(n!==4&&(e=e.child,e!==null))for(aB(e,t,r),e=e.sibling;e!==null;)aB(e,t,r),e=e.sibling}function lB(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(lB(e,t,r),e=e.sibling;e!==null;)lB(e,t,r),e=e.sibling}var li=null,tu=!1;function ad(e,t,r){for(r=r.child;r!==null;)Tie(e,t,r),r=r.sibling}function Tie(e,t,r){if(sc&&typeof sc.onCommitFiberUnmount=="function")try{sc.onCommitFiberUnmount(lT,r)}catch{}switch(r.tag){case 5:Ni||F0(r,t);case 6:var n=li,o=tu;li=null,ad(e,t,r),li=n,tu=o,li!==null&&(tu?(e=li,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):li.removeChild(r.stateNode));break;case 18:li!==null&&(tu?(e=li,r=r.stateNode,e.nodeType===8?B2(e.parentNode,r):e.nodeType===1&&B2(e,r),wb(e)):B2(li,r.stateNode));break;case 4:n=li,o=tu,li=r.stateNode.containerInfo,tu=!0,ad(e,t,r),li=n,tu=o;break;case 0:case 11:case 14:case 15:if(!Ni&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&iB(r,t,s),o=o.next}while(o!==n)}ad(e,t,r);break;case 1:if(!Ni&&(F0(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){eo(r,t,a)}ad(e,t,r);break;case 21:ad(e,t,r);break;case 22:r.mode&1?(Ni=(n=Ni)||r.memoizedState!==null,ad(e,t,r),Ni=n):ad(e,t,r);break;default:ad(e,t,r)}}function fW(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new jIe),t.forEach(function(n){var o=UIe.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Gl(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=s),n&=~i}if(n=o,n=fo()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*$Ie(n/1960))-n,10e?16:e,Bd===null)var n=!1;else{if(e=Bd,Bd=null,RA=0,Tr&6)throw Error(We(331));var o=Tr;for(Tr|=4,gt=e.current;gt!==null;){var i=gt,s=i.child;if(gt.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lfo()-uL?Rh(e,0):lL|=r),Ms(e,t)}function Bie(e,t){t===0&&(e.mode&1?(t=PS,PS<<=1,!(PS&130023424)&&(PS=4194304)):t=1);var r=as();e=_f(e,t),e!==null&&(P_(e,t,r),Ms(e,r))}function VIe(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Bie(e,r)}function UIe(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(We(314))}n!==null&&n.delete(t),Bie(e,r)}var Mie;Mie=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fs.current)Os=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Os=!1,BIe(e,t,r);Os=!!(e.flags&131072)}else Os=!1,Fn&&t.flags&1048576&&zoe(t,SA,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;yk(e,t),e=t.pendingProps;var o=Ag(t,ji.current);rg(t,r),o=rL(null,t,n,e,o,r);var i=nL();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Bs(n)?(i=!0,_A(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Q8(t),o.updater=pT,t.stateNode=o,o._reactInternals=t,ZF(t,n,e,r),t=tB(null,t,n,!0,i,r)):(t.tag=0,Fn&&i&&W8(t),Ui(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(yk(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=XIe(n),e=Zl(n,e),o){case 0:t=eB(null,t,n,e,r);break e;case 1:t=sW(null,t,n,e,r);break e;case 11:t=oW(null,t,n,e,r);break e;case 14:t=iW(null,t,n,Zl(n.type,e),r);break e}throw Error(We(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Zl(n,o),eB(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Zl(n,o),sW(e,t,n,o,r);case 3:e:{if(bie(t),e===null)throw Error(We(387));n=t.pendingProps,i=t.memoizedState,o=i.element,qoe(e,t),AA(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Cg(Error(We(423)),t),t=aW(e,t,n,r,o);break e}else if(n!==o){o=Cg(Error(We(424)),t),t=aW(e,t,n,r,o);break e}else for(pa=Kd(t.stateNode.containerInfo.firstChild),ya=t,Fn=!0,ru=null,r=Voe(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(xg(),n===o){t=Ef(e,t,r);break e}Ui(e,t,n,r)}t=t.child}return t;case 5:return Uoe(t),e===null&&YF(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,WF(n,o)?s=null:i!==null&&WF(n,i)&&(t.flags|=32),yie(e,t),Ui(e,t,s,r),t.child;case 6:return e===null&&YF(t),null;case 13:return _ie(e,t,r);case 4:return Z8(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Tg(t,null,n,r):Ui(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Zl(n,o),oW(e,t,n,o,r);case 7:return Ui(e,t,t.pendingProps,r),t.child;case 8:return Ui(e,t,t.pendingProps.children,r),t.child;case 12:return Ui(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,pn(wA,n._currentValue),n._currentValue=s,i!==null)if(fu(i.value,s)){if(i.children===o.children&&!Fs.current){t=Ef(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=pf(-1,r&-r),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),XF(i.return,r,t),a.lanes|=r;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(We(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),XF(s,r,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ui(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,rg(t,r),o=bl(o),n=n(o),t.flags|=1,Ui(e,t,n,r),t.child;case 14:return n=t.type,o=Zl(n,t.pendingProps),o=Zl(n.type,o),iW(e,t,n,o,r);case 15:return vie(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Zl(n,o),yk(e,t),t.tag=1,Bs(n)?(e=!0,_A(t)):e=!1,rg(t,r),Goe(t,n,o),ZF(t,n,o,r),tB(null,t,n,!0,e,r);case 19:return Eie(e,t,r);case 22:return mie(e,t,r)}throw Error(We(156,t.tag))};function Lie(e,t){return uoe(e,t)}function YIe(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ll(e,t,r,n){return new YIe(e,t,r,n)}function hL(e){return e=e.prototype,!(!e||!e.isReactComponent)}function XIe(e){if(typeof e=="function")return hL(e)?1:0;if(e!=null){if(e=e.$$typeof,e===O8)return 11;if(e===D8)return 14}return 2}function Xd(e,t){var r=e.alternate;return r===null?(r=ll(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ek(e,t,r,n,o,i){var s=2;if(n=e,typeof e=="function")hL(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case A0:return Oh(r.children,o,i,t);case R8:s=8,o|=8;break;case SF:return e=ll(12,r,t,o|2),e.elementType=SF,e.lanes=i,e;case wF:return e=ll(13,r,t,o),e.elementType=wF,e.lanes=i,e;case kF:return e=ll(19,r,t,o),e.elementType=kF,e.lanes=i,e;case Kne:return yT(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wne:s=10;break e;case Gne:s=9;break e;case O8:s=11;break e;case D8:s=14;break e;case Sd:s=16,n=null;break e}throw Error(We(130,e==null?e:typeof e,""))}return t=ll(s,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Oh(e,t,r,n){return e=ll(7,e,n,t),e.lanes=r,e}function yT(e,t,r,n){return e=ll(22,e,n,t),e.elementType=Kne,e.lanes=r,e.stateNode={isHidden:!1},e}function q2(e,t,r){return e=ll(6,e,null,t),e.lanes=r,e}function W2(e,t,r){return t=ll(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function QIe(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=k2(0),this.expirationTimes=k2(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=k2(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function pL(e,t,r,n,o,i,s,a,l){return e=new QIe(e,t,r,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ll(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Q8(i),e}function ZIe(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($ie)}catch(e){console.error(e)}}$ie(),zne.exports=Oa;var pi=zne.exports;const oy=zf(pi);var n2e=wc(),o2e=gs(function(e,t){return H_(_e(_e({},e),{rtl:t}))}),i2e=function(e){var t=e.theme,r=e.dir,n=rs(t)?"rtl":"ltr",o=rs()?"rtl":"ltr",i=r||n;return{rootDir:i!==n||i!==o?i:r,needsTheme:i!==n}},Pie=A.forwardRef(function(e,t){var r=e.className,n=e.theme,o=e.applyTheme,i=e.applyThemeToBody,s=e.styles,a=n2e(s,{theme:n,applyTheme:o,className:r}),l=A.useRef(null);return a2e(i,a,l),A.createElement(A.Fragment,null,s2e(e,a,l,t))});Pie.displayName="FabricBase";function s2e(e,t,r,n){var o=t.root,i=e.as,s=i===void 0?"div":i,a=e.dir,l=e.theme,u=Mi(e,lv,["dir"]),c=i2e(e),f=c.rootDir,d=c.needsTheme,h=A.createElement(_ne,{providerRef:r},A.createElement(s,_e({dir:f},u,{className:o,ref:dc(r,n)})));return d&&(h=A.createElement(bxe,{settings:{theme:o2e(l,a==="rtl")}},h)),h}function a2e(e,t,r){var n=t.bodyThemed;return A.useEffect(function(){if(e){var o=cs(r.current);if(o)return o.body.classList.add(n),function(){o.body.classList.remove(n)}}},[n,e,r]),r}var G2={fontFamily:"inherit"},l2e={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},u2e=function(e){var t=e.applyTheme,r=e.className,n=e.preventBlanketFontInheritance,o=e.theme,i=Ac(l2e,o);return{root:[i.root,o.fonts.medium,{color:o.palette.neutralPrimary},!n&&{"& button":G2,"& input":G2,"& textarea":G2},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},r],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}},c2e=kc(Pie,u2e,void 0,{scope:"Fabric"}),Hy={},yL={},qie="fluent-default-layer-host",f2e="#".concat(qie);function d2e(e,t){Hy[e]||(Hy[e]=[]),Hy[e].push(t);var r=yL[e];if(r)for(var n=0,o=r;n=0&&(r.splice(n,1),r.length===0&&delete Hy[e])}var o=yL[e];if(o)for(var i=0,s=o;i0&&t.current.naturalHeight>0||t.current.complete&&T2e.test(i):!1;f&&l(Zi.loaded)}}),A.useEffect(function(){r==null||r(a)},[a]);var u=A.useCallback(function(f){n==null||n(f),i&&l(Zi.loaded)},[i,n]),c=A.useCallback(function(f){o==null||o(f),l(Zi.error)},[o]);return[a,u,c]}var Vie=A.forwardRef(function(e,t){var r=A.useRef(),n=A.useRef(),o=C2e(e,n),i=o[0],s=o[1],a=o[2],l=Mi(e,Cxe,["width","height"]),u=e.src,c=e.alt,f=e.width,d=e.height,h=e.shouldFadeIn,g=h===void 0?!0:h,v=e.shouldStartVisible,y=e.className,E=e.imageFit,_=e.role,S=e.maximizeFrame,b=e.styles,k=e.theme,T=e.loading,x=N2e(e,i,n,r),I=x2e(b,{theme:k,className:y,width:f,height:d,maximizeFrame:S,shouldFadeIn:g,shouldStartVisible:v,isLoaded:i===Zi.loaded||i===Zi.notLoaded&&e.shouldStartVisible,isLandscape:x===Bb.landscape,isCenter:E===Is.center,isCenterContain:E===Is.centerContain,isCenterCover:E===Is.centerCover,isContain:E===Is.contain,isCover:E===Is.cover,isNone:E===Is.none,isError:i===Zi.error,isNotImageFit:E===void 0});return A.createElement("div",{className:I.root,style:{width:f,height:d},ref:r},A.createElement("img",_e({},l,{onLoad:s,onError:a,key:I2e+e.src||"",className:I.image,ref:dc(n,t),src:u,alt:c,role:_,loading:T})))});Vie.displayName="ImageBase";function N2e(e,t,r,n){var o=A.useRef(t),i=A.useRef();return(i===void 0||o.current===Zi.notLoaded&&t===Zi.loaded)&&(i.current=R2e(e,t,r,n)),o.current=t,i.current}function R2e(e,t,r,n){var o=e.imageFit,i=e.width,s=e.height;if(e.coverStyle!==void 0)return e.coverStyle;if(t===Zi.loaded&&(o===Is.cover||o===Is.contain||o===Is.centerContain||o===Is.centerCover)&&r.current&&n.current){var a=void 0;typeof i=="number"&&typeof s=="number"&&o!==Is.centerContain&&o!==Is.centerCover?a=i/s:a=n.current.clientWidth/n.current.clientHeight;var l=r.current.naturalWidth/r.current.naturalHeight;if(l>a)return Bb.landscape}return Bb.portrait}var O2e={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},D2e=function(e){var t=e.className,r=e.width,n=e.height,o=e.maximizeFrame,i=e.isLoaded,s=e.shouldFadeIn,a=e.shouldStartVisible,l=e.isLandscape,u=e.isCenter,c=e.isContain,f=e.isCover,d=e.isCenterContain,h=e.isCenterCover,g=e.isNone,v=e.isError,y=e.isNotImageFit,E=e.theme,_=Ac(O2e,E),S={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},b=ho(),k=b!==void 0&&b.navigator.msMaxTouchPoints===void 0,T=c&&l||f&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[_.root,E.fonts.medium,{overflow:"hidden"},o&&[_.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&s&&!a&&Jm.fadeIn400,(u||c||f||d||h)&&{position:"relative"},t],image:[_.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],u&&[_.imageCenter,S],c&&[_.imageContain,k&&{width:"100%",height:"100%",objectFit:"contain"},!k&&T,!k&&S],f&&[_.imageCover,k&&{width:"100%",height:"100%",objectFit:"cover"},!k&&T,!k&&S],d&&[_.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},S],h&&[_.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},S],g&&[_.imageNone,{width:"auto",height:"auto"}],y&&[!!r&&!n&&{height:"auto",width:"100%"},!r&&!!n&&{height:"100%",width:"auto"},!!r&&!!n&&{height:"100%",width:"100%"}],l&&_.imageLandscape,!l&&_.imagePortrait,!i&&"is-notLoaded",s&&"is-fadeIn",v&&"is-error"]}},Uie=kc(Vie,D2e,void 0,{scope:"Image"},!0);Uie.displayName="Image";var $y=mi({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),F2e="ms-Icon",B2e=function(e){var t=e.className,r=e.iconClassName,n=e.isPlaceholder,o=e.isImage,i=e.styles;return{root:[n&&$y.placeholder,$y.root,o&&$y.image,r,t,i&&i.root,i&&i.imageContainer]}},Yie=gs(function(e){var t=Uxe(e)||{subset:{},code:void 0},r=t.code,n=t.subset;return r?{children:r,iconClassName:n.className,fontFamily:n.fontFace&&n.fontFace.fontFamily,mergeImageProps:n.mergeImageProps}:null},void 0,!0),M2e=function(e){var t=e.iconName,r=e.className,n=e.style,o=n===void 0?{}:n,i=Yie(t)||{},s=i.iconClassName,a=i.children,l=i.fontFamily,u=i.mergeImageProps,c=Mi(e,vo),f=e["aria-label"]||e.title,d=e["aria-label"]||e["aria-labelledby"]||e.title?{role:u?void 0:"img"}:{"aria-hidden":!0},h=a;return u&&typeof a=="object"&&typeof a.props=="object"&&f&&(h=A.cloneElement(a,{alt:f})),A.createElement("i",_e({"data-icon-name":t},d,c,u?{title:void 0,"aria-label":void 0}:{},{className:a1(F2e,$y.root,s,!t&&$y.placeholder,r),style:_e({fontFamily:l},o)}),h)};gs(function(e,t,r){return M2e({iconName:e,className:t,"aria-label":r})});var L2e=wc({cacheSize:100}),j2e=function(e){Sc(t,e);function t(r){var n=e.call(this,r)||this;return n._onImageLoadingStateChange=function(o){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(o),o===Zi.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return t.prototype.render=function(){var r=this.props,n=r.children,o=r.className,i=r.styles,s=r.iconName,a=r.imageErrorAs,l=r.theme,u=typeof s=="string"&&s.length===0,c=!!this.props.imageProps||this.props.iconType===FA.image||this.props.iconType===FA.Image,f=Yie(s)||{},d=f.iconClassName,h=f.children,g=f.mergeImageProps,v=L2e(i,{theme:l,className:o,iconClassName:d,isImage:c,isPlaceholder:u}),y=c?"span":"i",E=Mi(this.props,vo,["aria-label"]),_=this.state.imageLoadError,S=_e(_e({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),b=_&&a||Uie,k=this.props["aria-label"]||this.props.ariaLabel,T=S.alt||k||this.props.title,x=!!(T||this.props["aria-labelledby"]||S["aria-label"]||S["aria-labelledby"]),I=x?{role:c||g?void 0:"img","aria-label":c||g?void 0:T}:{"aria-hidden":!0},C=h;return g&&h&&typeof h=="object"&&T&&(C=A.cloneElement(h,{alt:T})),A.createElement(y,_e({"data-icon-name":s},I,E,g?{title:void 0,"aria-label":void 0}:{},{className:v.root}),c?A.createElement(b,_e({},S)):n||C)},t}(A.Component),Rg=kc(j2e,B2e,void 0,{scope:"Icon"},!0);Rg.displayName="Icon";var hB={none:0,all:1,inputOnly:2},Vi;(function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"})(Vi||(Vi={}));var tw="data-is-focusable",z2e="data-disable-click-on-enter",K2="data-focuszone-id",Bu="tabindex",V2="data-no-vertical-wrap",U2="data-no-horizontal-wrap",Y2=999999999,Tm=-999999999,X2,H2e="ms-FocusZone";function $2e(e,t){var r;typeof MouseEvent=="function"?r=new MouseEvent("click",{ctrlKey:t==null?void 0:t.ctrlKey,metaKey:t==null?void 0:t.metaKey,shiftKey:t==null?void 0:t.shiftKey,altKey:t==null?void 0:t.altKey,bubbles:t==null?void 0:t.bubbles,cancelable:t==null?void 0:t.cancelable}):(r=document.createEvent("MouseEvents"),r.initMouseEvent("click",t?t.bubbles:!1,t?t.cancelable:!1,window,0,0,0,0,0,t?t.ctrlKey:!1,t?t.altKey:!1,t?t.shiftKey:!1,t?t.metaKey:!1,0,null)),e.dispatchEvent(r)}function P2e(){return X2||(X2=mr({selectors:{":focus":{outline:"none"}}},H2e)),X2}var Im={},rw=new Set,q2e=["text","number","password","email","tel","url","search","textarea"],Vc=!1,W2e=function(e){Sc(t,e);function t(r){var n=this,o,i,s,a;n=e.call(this,r)||this,n._root=A.createRef(),n._mergedRef=Kxe(),n._onFocus=function(u){if(!n._portalContainsElement(u.target)){var c=n.props,f=c.onActiveElementChanged,d=c.doNotAllowFocusEventToPropagate,h=c.stopFocusPropagation,g=c.onFocusNotification,v=c.onFocus,y=c.shouldFocusInnerElementWhenReceivedFocus,E=c.defaultTabbableElement,_=n._isImmediateDescendantOfZone(u.target),S;if(_)S=u.target;else for(var b=u.target;b&&b!==n._root.current;){if(qu(b)&&n._isImmediateDescendantOfZone(b)){S=b;break}b=$u(b,Vc)}if(y&&u.target===n._root.current){var k=E&&typeof E=="function"&&n._root.current&&E(n._root.current);k&&qu(k)?(S=k,k.focus()):(n.focus(!0),n._activeElement&&(S=null))}var T=!n._activeElement;S&&S!==n._activeElement&&((_||T)&&n._setFocusAlignment(S,!0,!0),n._activeElement=S,T&&n._updateTabIndexes()),f&&f(n._activeElement,u),(h||d)&&u.stopPropagation(),v?v(u):g&&g()}},n._onBlur=function(){n._setParkedFocus(!1)},n._onMouseDown=function(u){if(!n._portalContainsElement(u.target)){var c=n.props.disabled;if(!c){for(var f=u.target,d=[];f&&f!==n._root.current;)d.push(f),f=$u(f,Vc);for(;d.length&&(f=d.pop(),f&&qu(f)&&n._setActiveElement(f,!0),!Jc(f)););}}},n._onKeyDown=function(u,c){if(!n._portalContainsElement(u.target)){var f=n.props,d=f.direction,h=f.disabled,g=f.isInnerZoneKeystroke,v=f.pagingSupportDisabled,y=f.shouldEnterInnerZone;if(!h&&(n.props.onKeyDown&&n.props.onKeyDown(u),!u.isDefaultPrevented()&&!(n._getDocument().activeElement===n._root.current&&n._isInnerZone))){if((y&&y(u)||g&&g(u))&&n._isImmediateDescendantOfZone(u.target)){var E=n._getFirstInnerZone();if(E){if(!E.focus(!0))return}else if(k8(u.target)){if(!n.focusElement(Xi(u.target,u.target.firstChild,!0)))return}else return}else{if(u.altKey)return;switch(u.which){case Kt.space:if(n._shouldRaiseClicksOnSpace&&n._tryInvokeClickForFocusable(u.target,u))break;return;case Kt.left:if(d!==Vi.vertical&&(n._preventDefaultWhenHandled(u),n._moveFocusLeft(c)))break;return;case Kt.right:if(d!==Vi.vertical&&(n._preventDefaultWhenHandled(u),n._moveFocusRight(c)))break;return;case Kt.up:if(d!==Vi.horizontal&&(n._preventDefaultWhenHandled(u),n._moveFocusUp()))break;return;case Kt.down:if(d!==Vi.horizontal&&(n._preventDefaultWhenHandled(u),n._moveFocusDown()))break;return;case Kt.pageDown:if(!v&&n._moveFocusPaging(!0))break;return;case Kt.pageUp:if(!v&&n._moveFocusPaging(!1))break;return;case Kt.tab:if(n.props.allowTabKey||n.props.handleTabKey===hB.all||n.props.handleTabKey===hB.inputOnly&&n._isElementInput(u.target)){var _=!1;if(n._processingTabKey=!0,d===Vi.vertical||!n._shouldWrapFocus(n._activeElement,U2))_=u.shiftKey?n._moveFocusUp():n._moveFocusDown();else{var S=rs(c)?!u.shiftKey:u.shiftKey;_=S?n._moveFocusLeft(c):n._moveFocusRight(c)}if(n._processingTabKey=!1,_)break;n.props.shouldResetActiveElementWhenTabFromZone&&(n._activeElement=null)}return;case Kt.home:if(n._isContentEditableElement(u.target)||n._isElementInput(u.target)&&!n._shouldInputLoseFocus(u.target,!1))return!1;var b=n._root.current&&n._root.current.firstChild;if(n._root.current&&b&&n.focusElement(Xi(n._root.current,b,!0)))break;return;case Kt.end:if(n._isContentEditableElement(u.target)||n._isElementInput(u.target)&&!n._shouldInputLoseFocus(u.target,!0))return!1;var k=n._root.current&&n._root.current.lastChild;if(n._root.current&&n.focusElement(xs(n._root.current,k,!0,!0,!0)))break;return;case Kt.enter:if(n._shouldRaiseClicksOnEnter&&n._tryInvokeClickForFocusable(u.target,u))break;return;default:return}}u.preventDefault(),u.stopPropagation()}}},n._getHorizontalDistanceFromCenter=function(u,c,f){var d=n._focusAlignment.left||n._focusAlignment.x||0,h=Math.floor(f.top),g=Math.floor(c.bottom),v=Math.floor(f.bottom),y=Math.floor(c.top),E=u&&h>g,_=!u&&v=f.left&&d<=f.left+f.width?0:Math.abs(f.left+f.width/2-d):n._shouldWrapFocus(n._activeElement,V2)?Y2:Tm},tT(n),n._id=Ph("FocusZone"),n._focusAlignment={left:0,top:0},n._processingTabKey=!1;var l=(i=(o=r.shouldRaiseClicks)!==null&&o!==void 0?o:t.defaultProps.shouldRaiseClicks)!==null&&i!==void 0?i:!0;return n._shouldRaiseClicksOnEnter=(s=r.shouldRaiseClicksOnEnter)!==null&&s!==void 0?s:l,n._shouldRaiseClicksOnSpace=(a=r.shouldRaiseClicksOnSpace)!==null&&a!==void 0?a:l,n}return t.getOuterZones=function(){return rw.size},t._onKeyDownCapture=function(r){r.which===Kt.tab&&rw.forEach(function(n){return n._updateTabIndexes()})},t.prototype.componentDidMount=function(){var r=this._root.current;if(Im[this._id]=this,r){for(var n=$u(r,Vc);n&&n!==this._getDocument().body&&n.nodeType===1;){if(Jc(n)){this._isInnerZone=!0;break}n=$u(n,Vc)}this._isInnerZone||(rw.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="string"?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var r=this._root.current,n=this._getDocument();if((this._activeElement&&!Rs(this._root.current,this._activeElement,Vc)||this._defaultFocusElement&&!Rs(this._root.current,this._defaultFocusElement,Vc))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&n&&this._lastIndexPath&&(n.activeElement===n.body||n.activeElement===null||n.activeElement===r)){var o=rxe(r,this._lastIndexPath);o?(this._setActiveElement(o,!0),o.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete Im[this._id],this._isInnerZone||(rw.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var r=this,n=this.props,o=n.as,i=n.elementType,s=n.rootProps,a=n.ariaDescribedBy,l=n.ariaLabelledBy,u=n.className,c=Mi(this.props,vo),f=o||i||"div";this._evaluateFocusBeforeRender();var d=JTe();return A.createElement(f,_e({"aria-labelledby":l,"aria-describedby":a},c,s,{className:a1(P2e(),u),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(h){return r._onKeyDown(h,d)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(r,n){if(r===void 0&&(r=!1),n===void 0&&(n=!1),this._root.current)if(!r&&this._root.current.getAttribute(tw)==="true"&&this._isInnerZone){var o=this._getOwnerZone(this._root.current);if(o!==this._root.current){var i=Im[o.getAttribute(K2)];return!!i&&i.focusElement(this._root.current)}return!1}else{if(!r&&this._activeElement&&Rs(this._root.current,this._activeElement)&&qu(this._activeElement)&&(!n||fne(this._activeElement)))return this._activeElement.focus(),!0;var s=this._root.current.firstChild;return this.focusElement(Xi(this._root.current,s,!0,void 0,void 0,void 0,void 0,void 0,n))}return!1},t.prototype.focusLast=function(){if(this._root.current){var r=this._root.current&&this._root.current.lastChild;return this.focusElement(xs(this._root.current,r,!0,!0,!0))}return!1},t.prototype.focusElement=function(r,n){var o=this.props,i=o.onBeforeFocus,s=o.shouldReceiveFocus;return s&&!s(r)||i&&!i(r)?!1:r?(this._setActiveElement(r,n),this._activeElement&&this._activeElement.focus(),!0):!1},t.prototype.setFocusAlignment=function(r){this._focusAlignment=r},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var r=this._root.current,n=this._getDocument();if(n){var o=n.activeElement;if(o!==r){var i=Rs(r,o,!1);this._lastIndexPath=i?nxe(r,o):void 0}}},t.prototype._setParkedFocus=function(r){var n=this._root.current;n&&this._isParked!==r&&(this._isParked=r,r?(this.props.allowFocusRoot||(this._parkedTabIndex=n.getAttribute("tabindex"),n.setAttribute("tabindex","-1")),n.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(n.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):n.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(r,n){var o=this._activeElement;this._activeElement=r,o&&(Jc(o)&&this._updateTabIndexes(o),o.tabIndex=-1),this._activeElement&&((!this._focusAlignment||n)&&this._setFocusAlignment(r,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(r){this.props.preventDefaultWhenHandled&&r.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(r,n){var o=r;if(o===this._root.current)return!1;do{if(o.tagName==="BUTTON"||o.tagName==="A"||o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(o)&&o.getAttribute(tw)==="true"&&o.getAttribute(z2e)!=="true")return $2e(o,n),!0;o=$u(o,Vc)}while(o!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(r){if(r=r||this._activeElement||this._root.current,!r)return null;if(Jc(r))return Im[r.getAttribute(K2)];for(var n=r.firstElementChild;n;){if(Jc(n))return Im[n.getAttribute(K2)];var o=this._getFirstInnerZone(n);if(o)return o;n=n.nextElementSibling}return null},t.prototype._moveFocus=function(r,n,o,i){i===void 0&&(i=!0);var s=this._activeElement,a=-1,l=void 0,u=!1,c=this.props.direction===Vi.bidirectional;if(!s||!this._root.current||this._isElementInput(s)&&!this._shouldInputLoseFocus(s,r))return!1;var f=c?s.getBoundingClientRect():null;do if(s=r?Xi(this._root.current,s):xs(this._root.current,s),c){if(s){var d=s.getBoundingClientRect(),h=n(f,d);if(h===-1&&a===-1){l=s;break}if(h>-1&&(a===-1||h=0&&h<0)break}}else{l=s;break}while(s);if(l&&l!==this._activeElement)u=!0,this.focusElement(l);else if(this.props.isCircularNavigation&&i)return r?this.focusElement(Xi(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(xs(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return u},t.prototype._moveFocusDown=function(){var r=this,n=-1,o=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(i,s){var a=-1,l=Math.floor(s.top),u=Math.floor(i.bottom);return l=u||l===n)&&(n=l,o>=s.left&&o<=s.left+s.width?a=0:a=Math.abs(s.left+s.width/2-o)),a)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusUp=function(){var r=this,n=-1,o=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(i,s){var a=-1,l=Math.floor(s.bottom),u=Math.floor(s.top),c=Math.floor(i.top);return l>c?r._shouldWrapFocus(r._activeElement,V2)?Y2:Tm:((n===-1&&l<=c||u===n)&&(n=u,o>=s.left&&o<=s.left+s.width?a=0:a=Math.abs(s.left+s.width/2-o)),a)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusLeft=function(r){var n=this,o=this._shouldWrapFocus(this._activeElement,U2);return this._moveFocus(rs(r),function(i,s){var a=-1,l;return rs(r)?l=parseFloat(s.top.toFixed(3))parseFloat(i.top.toFixed(3)),l&&s.right<=i.right&&n.props.direction!==Vi.vertical?a=i.right-s.right:o||(a=Tm),a},void 0,o)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusRight=function(r){var n=this,o=this._shouldWrapFocus(this._activeElement,U2);return this._moveFocus(!rs(r),function(i,s){var a=-1,l;return rs(r)?l=parseFloat(s.bottom.toFixed(3))>parseFloat(i.top.toFixed(3)):l=parseFloat(s.top.toFixed(3))=i.left&&n.props.direction!==Vi.vertical?a=s.left-i.left:o||(a=Tm),a},void 0,o)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusPaging=function(r,n){n===void 0&&(n=!0);var o=this._activeElement;if(!o||!this._root.current||this._isElementInput(o)&&!this._shouldInputLoseFocus(o,r))return!1;var i=sne(o);if(!i)return!1;var s=-1,a=void 0,l=-1,u=-1,c=i.clientHeight,f=o.getBoundingClientRect();do if(o=r?Xi(this._root.current,o):xs(this._root.current,o),o){var d=o.getBoundingClientRect(),h=Math.floor(d.top),g=Math.floor(f.bottom),v=Math.floor(d.bottom),y=Math.floor(f.top),E=this._getHorizontalDistanceFromCenter(r,f,d),_=r&&h>g+c,S=!r&&v-1&&(r&&h>l?(l=h,s=E,a=o):!r&&v-1){var o=r.selectionStart,i=r.selectionEnd,s=o!==i,a=r.value,l=r.readOnly;if(s||o>0&&!n&&!l||o!==a.length&&n&&!l||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(r)))return!1}return!0},t.prototype._shouldWrapFocus=function(r,n){return this.props.checkForNoWrap?dne(r,n):!0},t.prototype._portalContainsElement=function(r){return r&&!!this._root.current&&WAe(r,this._root.current)},t.prototype._getDocument=function(){return cs(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:Vi.bidirectional,shouldRaiseClicks:!0},t}(A.Component),Ii;(function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"})(Ii||(Ii={}));function Og(e){return e.canCheck?!!(e.isChecked||e.checked):typeof e.isChecked=="boolean"?e.isChecked:typeof e.checked=="boolean"?e.checked:null}function Sf(e){return!!(e.subMenuProps||e.items)}function tc(e){return!!(e.isDisabled||e.disabled)}function Xie(e){var t=Og(e),r=t!==null;return r?"menuitemcheckbox":"menuitem"}var bW=function(e){var t=e.item,r=e.classNames,n=t.iconProps;return A.createElement(Rg,_e({},n,{className:r.icon}))},G2e=function(e){var t=e.item,r=e.hasIcons;return r?t.onRenderIcon?t.onRenderIcon(e,bW):bW(e):null},K2e=function(e){var t=e.onCheckmarkClick,r=e.item,n=e.classNames,o=Og(r);if(t){var i=function(s){return t(r,s)};return A.createElement(Rg,{iconName:r.canCheck!==!1&&o?"CheckMark":"",className:n.checkmarkIcon,onClick:i})}return null},V2e=function(e){var t=e.item,r=e.classNames;return t.text||t.name?A.createElement("span",{className:r.label},t.text||t.name):null},U2e=function(e){var t=e.item,r=e.classNames;return t.secondaryText?A.createElement("span",{className:r.secondaryText},t.secondaryText):null},Y2e=function(e){var t=e.item,r=e.classNames,n=e.theme;return Sf(t)?A.createElement(Rg,_e({iconName:rs(n)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:r.subMenuIcon})):null},X2e=function(e){Sc(t,e);function t(r){var n=e.call(this,r)||this;return n.openSubMenu=function(){var o=n.props,i=o.item,s=o.openSubMenu,a=o.getSubmenuTarget;if(a){var l=a();Sf(i)&&s&&l&&s(i,l)}},n.dismissSubMenu=function(){var o=n.props,i=o.item,s=o.dismissSubMenu;Sf(i)&&s&&s()},n.dismissMenu=function(o){var i=n.props.dismissMenu;i&&i(void 0,o)},tT(n),n}return t.prototype.render=function(){var r=this.props,n=r.item,o=r.classNames,i=n.onRenderContent||this._renderLayout;return A.createElement("div",{className:n.split?o.linkContentMenu:o.linkContent},i(this.props,{renderCheckMarkIcon:K2e,renderItemIcon:G2e,renderItemName:V2e,renderSecondaryText:U2e,renderSubMenuIcon:Y2e}))},t.prototype._renderLayout=function(r,n){return A.createElement(A.Fragment,null,n.renderCheckMarkIcon(r),n.renderItemIcon(r),n.renderItemName(r),n.renderSecondaryText(r),n.renderSubMenuIcon(r))},t}(A.Component),Q2e=gs(function(e){return mi({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),kd=36,_W=Ane(0,kne),Z2e=gs(function(e){var t,r,n,o,i,s=e.semanticColors,a=e.fonts,l=e.palette,u=s.menuItemBackgroundHovered,c=s.menuItemTextHovered,f=s.menuItemBackgroundPressed,d=s.bodyDivider,h={item:[a.medium,{color:s.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:d,position:"relative"},root:[iq(e),a.medium,{color:s.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:kd,lineHeight:kd,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:s.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[Q0]={color:"GrayText",opacity:1},t)},rootHovered:{backgroundColor:u,color:c,selectors:{".ms-ContextualMenu-icon":{color:l.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootFocused:{backgroundColor:l.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:l.neutralPrimary}}},rootPressed:{backgroundColor:f,selectors:{".ms-ContextualMenu-icon":{color:l.themeDark},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootExpanded:{backgroundColor:f,color:s.bodyTextChecked,selectors:(r={".ms-ContextualMenu-submenuIcon":(n={},n[Q0]={color:"inherit"},n)},r[Q0]=_e({},PTe()),r)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:kd,fontSize:Ed.medium,width:Ed.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(o={},o[_W]={fontSize:Ed.large,width:Ed.large},o)},iconColor:{color:s.menuIcon},iconDisabled:{color:s.disabledBodyText},checkmarkIcon:{color:s.bodySubtext},subMenuIcon:{height:kd,lineHeight:kd,color:l.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Ed.small,selectors:(i={":hover":{color:l.neutralPrimary},":active":{color:l.neutralPrimary}},i[_W]={fontSize:Ed.medium},i)},splitButtonFlexContainer:[iq(e),{display:"flex",height:kd,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return j_(h)}),EW="28px",J2e=Ane(0,kne),eCe=gs(function(e){var t;return mi(Q2e(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[J2e]={right:32},t)},divider:{height:16,width:1}})}),tCe={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},rCe=gs(function(e,t,r,n,o,i,s,a,l,u,c,f){var d,h,g,v,y=Z2e(e),E=Ac(tCe,e);return mi({item:[E.item,y.item,s],divider:[E.divider,y.divider,a],root:[E.root,y.root,n&&[E.isChecked,y.rootChecked],o&&y.anchorLink,r&&[E.isExpanded,y.rootExpanded],t&&[E.isDisabled,y.rootDisabled],!t&&!r&&[{selectors:(d={":hover":y.rootHovered,":active":y.rootPressed},d[".".concat(Ti," &:focus, .").concat(Ti," &:focus:hover")]=y.rootFocused,d[".".concat(Ti," &:hover")]={background:"inherit;"},d)}],f],splitPrimary:[y.root,{width:"calc(100% - ".concat(EW,")")},n&&["is-checked",y.rootChecked],(t||c)&&["is-disabled",y.rootDisabled],!(t||c)&&!n&&[{selectors:(h={":hover":y.rootHovered},h[":hover ~ .".concat(E.splitMenu)]=y.rootHovered,h[":active"]=y.rootPressed,h[".".concat(Ti," &:focus, .").concat(Ti," &:focus:hover")]=y.rootFocused,h[".".concat(Ti," &:hover")]={background:"inherit;"},h)}]],splitMenu:[E.splitMenu,y.root,{flexBasis:"0",padding:"0 8px",minWidth:EW},r&&["is-expanded",y.rootExpanded],t&&["is-disabled",y.rootDisabled],!t&&!r&&[{selectors:(g={":hover":y.rootHovered,":active":y.rootPressed},g[".".concat(Ti," &:focus, .").concat(Ti," &:focus:hover")]=y.rootFocused,g[".".concat(Ti," &:hover")]={background:"inherit;"},g)}]],anchorLink:y.anchorLink,linkContent:[E.linkContent,y.linkContent],linkContentMenu:[E.linkContentMenu,y.linkContent,{justifyContent:"center"}],icon:[E.icon,i&&y.iconColor,y.icon,l,t&&[E.isDisabled,y.iconDisabled]],iconColor:y.iconColor,checkmarkIcon:[E.checkmarkIcon,i&&y.checkmarkIcon,y.icon,l],subMenuIcon:[E.subMenuIcon,y.subMenuIcon,u,r&&{color:e.palette.neutralPrimary},t&&[y.iconDisabled]],label:[E.label,y.label],secondaryText:[E.secondaryText,y.secondaryText],splitContainer:[y.splitButtonFlexContainer,!t&&!n&&[{selectors:(v={},v[".".concat(Ti," &:focus, .").concat(Ti," &:focus:hover")]=y.rootFocused,v)}]],screenReaderText:[E.screenReaderText,y.screenReaderText,WTe,{visibility:"hidden"}]})}),Qie=function(e){var t=e.theme,r=e.disabled,n=e.expanded,o=e.checked,i=e.isAnchorLink,s=e.knownIcon,a=e.itemClassName,l=e.dividerClassName,u=e.iconClassName,c=e.subMenuClassName,f=e.primaryDisabled,d=e.className;return rCe(t,r,n,o,i,s,a,l,u,c,f,d)},Mb=kc(X2e,Qie,void 0,{scope:"ContextualMenuItem"}),bL=function(e){Sc(t,e);function t(r){var n=e.call(this,r)||this;return n._onItemMouseEnter=function(o){var i=n.props,s=i.item,a=i.onItemMouseEnter;a&&a(s,o,o.currentTarget)},n._onItemClick=function(o){var i=n.props,s=i.item,a=i.onItemClickBase;a&&a(s,o,o.currentTarget)},n._onItemMouseLeave=function(o){var i=n.props,s=i.item,a=i.onItemMouseLeave;a&&a(s,o)},n._onItemKeyDown=function(o){var i=n.props,s=i.item,a=i.onItemKeyDown;a&&a(s,o)},n._onItemMouseMove=function(o){var i=n.props,s=i.item,a=i.onItemMouseMove;a&&a(s,o,o.currentTarget)},n._getSubmenuTarget=function(){},tT(n),n}return t.prototype.shouldComponentUpdate=function(r){return!E8(r,this.props)},t}(A.Component),nCe="ktp",SW="-",oCe="data-ktp-target",iCe="data-ktp-execute-target",sCe="ktp-layer-id",ju;(function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"})(ju||(ju={}));var aCe=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(t){this.delayUpdatingKeytipChange=t},e.prototype.register=function(t,r){r===void 0&&(r=!1);var n=t;r||(n=this.addParentOverflow(t),this.sequenceMapping[n.keySequences.toString()]=n);var o=this._getUniqueKtp(n);if(r?this.persistedKeytips[o.uniqueID]=o:this.keytips[o.uniqueID]=o,this.inKeytipMode||!this.delayUpdatingKeytipChange){var i=r?ju.PERSISTED_KEYTIP_ADDED:ju.KEYTIP_ADDED;_d.raise(this,i,{keytip:n,uniqueID:o.uniqueID})}return o.uniqueID},e.prototype.update=function(t,r){var n=this.addParentOverflow(t),o=this._getUniqueKtp(n,r),i=this.keytips[r];i&&(o.keytip.visible=i.keytip.visible,this.keytips[r]=o,delete this.sequenceMapping[i.keytip.keySequences.toString()],this.sequenceMapping[o.keytip.keySequences.toString()]=o.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&_d.raise(this,ju.KEYTIP_UPDATED,{keytip:o.keytip,uniqueID:o.uniqueID}))},e.prototype.unregister=function(t,r,n){n===void 0&&(n=!1),n?delete this.persistedKeytips[r]:delete this.keytips[r],!n&&delete this.sequenceMapping[t.keySequences.toString()];var o=n?ju.PERSISTED_KEYTIP_REMOVED:ju.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&_d.raise(this,o,{keytip:t,uniqueID:r})},e.prototype.enterKeytipMode=function(){_d.raise(this,ju.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){_d.raise(this,ju.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map(function(r){return t.keytips[r].keytip})},e.prototype.addParentOverflow=function(t){var r=cu([],t.keySequences,!0);if(r.pop(),r.length!==0){var n=this.sequenceMapping[r.toString()];if(n&&n.overflowSetSequence)return _e(_e({},t),{overflowSetSequence:n.overflowSetSequence})}return t},e.prototype.menuExecute=function(t,r){_d.raise(this,ju.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:r})},e.prototype._getUniqueKtp=function(t,r){return r===void 0&&(r=Ph()),{keytip:_e({},t),uniqueID:r}},e._instance=new e,e}();function Zie(e){return e.reduce(function(t,r){return t+SW+r.split("").join(SW)},nCe)}function lCe(e,t){var r=t.length,n=cu([],t,!0).pop(),o=cu([],e,!0);return MAe(o,r-1,n)}function uCe(e){var t=" "+sCe;return e.length?t+" "+Zie(e):t}function cCe(e){var t=A.useRef(),r=e.keytipProps?_e({disabled:e.disabled},e.keytipProps):void 0,n=ic(aCe.getInstance()),o=x8(e);Eg(function(){t.current&&r&&((o==null?void 0:o.keytipProps)!==e.keytipProps||(o==null?void 0:o.disabled)!==e.disabled)&&n.update(r,t.current)}),Eg(function(){return r&&(t.current=n.register(r)),function(){r&&n.unregister(r,t.current)}},[]);var i={ariaDescribedBy:void 0,keytipId:void 0};return r&&(i=fCe(n,r,e.ariaDescribedBy)),i}function fCe(e,t,r){var n=e.addParentOverflow(t),o=Jx(r,uCe(n.keySequences)),i=cu([],n.keySequences,!0);n.overflowSetSequence&&(i=lCe(i,n.overflowSetSequence));var s=Zie(i);return{ariaDescribedBy:o,keytipId:s}}var _L=function(e){var t,r=e.children,n=av(e,["children"]),o=cCe(n),i=o.keytipId,s=o.ariaDescribedBy;return r((t={},t[oCe]=i,t[iCe]=i,t["aria-describedby"]=s,t))},dCe=function(e){Sc(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._anchor=A.createRef(),r._getMemoizedMenuButtonKeytipProps=gs(function(n){return _e(_e({},n),{hasMenu:!0})}),r._getSubmenuTarget=function(){return r._anchor.current?r._anchor.current:void 0},r._onItemClick=function(n){var o=r.props,i=o.item,s=o.onItemClick;s&&s(i,n)},r._renderAriaDescription=function(n,o){return n?A.createElement("span",{id:r._ariaDescriptionId,className:o},n):null},r}return t.prototype.render=function(){var r=this,n=this.props,o=n.item,i=n.classNames,s=n.index,a=n.focusableElementIndex,l=n.totalItemCount,u=n.hasCheckmarks,c=n.hasIcons,f=n.expandedMenuItemKey,d=n.onItemClick,h=n.openSubMenu,g=n.dismissSubMenu,v=n.dismissMenu,y=Mb;this.props.item.contextualMenuItemAs&&(y=nu(this.props.item.contextualMenuItemAs,y)),this.props.contextualMenuItemAs&&(y=nu(this.props.contextualMenuItemAs,y));var E=o.rel;o.target&&o.target.toLowerCase()==="_blank"&&(E=E||"nofollow noopener noreferrer");var _=Sf(o),S=Mi(o,Ixe),b=tc(o),k=o.itemProps,T=o.ariaDescription,x=o.keytipProps;x&&_&&(x=this._getMemoizedMenuButtonKeytipProps(x)),T&&(this._ariaDescriptionId=Ph());var I=Jx(o.ariaDescribedBy,T?this._ariaDescriptionId:void 0,S["aria-describedby"]),C={"aria-describedby":I};return A.createElement("div",null,A.createElement(_L,{keytipProps:o.keytipProps,ariaDescribedBy:I,disabled:b},function(R){return A.createElement("a",_e({},C,S,R,{ref:r._anchor,href:o.href,target:o.target,rel:E,className:i.root,role:"menuitem","aria-haspopup":_||void 0,"aria-expanded":_?o.key===f:void 0,"aria-posinset":a+1,"aria-setsize":l,"aria-disabled":tc(o),style:o.style,onClick:r._onItemClick,onMouseEnter:r._onItemMouseEnter,onMouseLeave:r._onItemMouseLeave,onMouseMove:r._onItemMouseMove,onKeyDown:_?r._onItemKeyDown:void 0}),A.createElement(y,_e({componentRef:o.componentRef,item:o,classNames:i,index:s,onCheckmarkClick:u&&d?d:void 0,hasIcons:c,openSubMenu:h,dismissSubMenu:g,dismissMenu:v,getSubmenuTarget:r._getSubmenuTarget},k)),r._renderAriaDescription(T,i.screenReaderText))}))},t}(bL),hCe=function(e){Sc(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._btn=A.createRef(),r._getMemoizedMenuButtonKeytipProps=gs(function(n){return _e(_e({},n),{hasMenu:!0})}),r._renderAriaDescription=function(n,o){return n?A.createElement("span",{id:r._ariaDescriptionId,className:o},n):null},r._getSubmenuTarget=function(){return r._btn.current?r._btn.current:void 0},r}return t.prototype.render=function(){var r=this,n=this.props,o=n.item,i=n.classNames,s=n.index,a=n.focusableElementIndex,l=n.totalItemCount,u=n.hasCheckmarks,c=n.hasIcons,f=n.contextualMenuItemAs,d=n.expandedMenuItemKey,h=n.onItemMouseDown,g=n.onItemClick,v=n.openSubMenu,y=n.dismissSubMenu,E=n.dismissMenu,_=Mb;o.contextualMenuItemAs&&(_=nu(o.contextualMenuItemAs,_)),f&&(_=nu(f,_));var S=Og(o),b=S!==null,k=Xie(o),T=Sf(o),x=o.itemProps,I=o.ariaLabel,C=o.ariaDescription,R=Mi(o,_g);delete R.disabled;var D=o.role||k;C&&(this._ariaDescriptionId=Ph());var L=Jx(o.ariaDescribedBy,C?this._ariaDescriptionId:void 0,R["aria-describedby"]),M={className:i.root,onClick:this._onItemClick,onKeyDown:T?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(z){return h?h(o,z):void 0},onMouseMove:this._onItemMouseMove,href:o.href,title:o.title,"aria-label":I,"aria-describedby":L,"aria-haspopup":T||void 0,"aria-expanded":T?o.key===d:void 0,"aria-posinset":a+1,"aria-setsize":l,"aria-disabled":tc(o),"aria-checked":(D==="menuitemcheckbox"||D==="menuitemradio")&&b?!!S:void 0,"aria-selected":D==="menuitem"&&b?!!S:void 0,role:D,style:o.style},W=o.keytipProps;return W&&T&&(W=this._getMemoizedMenuButtonKeytipProps(W)),A.createElement(_L,{keytipProps:W,ariaDescribedBy:L,disabled:tc(o)},function(z){return A.createElement("button",_e({ref:r._btn},R,M,z),A.createElement(_,_e({componentRef:o.componentRef,item:o,classNames:i,index:s,onCheckmarkClick:u&&g?g:void 0,hasIcons:c,openSubMenu:v,dismissSubMenu:y,dismissMenu:E,getSubmenuTarget:r._getSubmenuTarget},x)),r._renderAriaDescription(C,i.screenReaderText))})},t}(bL),pCe=function(e){var t=e.theme,r=e.getClassNames,n=e.className;if(!t)throw new Error("Theme is undefined or null.");if(r){var o=r(t);return{wrapper:[o.wrapper],divider:[o.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},n],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}},gCe=wc(),Jie=A.forwardRef(function(e,t){var r=e.styles,n=e.theme,o=e.getClassNames,i=e.className,s=gCe(r,{theme:n,getClassNames:o,className:i});return A.createElement("span",{className:s.wrapper,ref:t},A.createElement("span",{className:s.divider}))});Jie.displayName="VerticalDividerBase";var vCe=kc(Jie,pCe,void 0,{scope:"VerticalDivider"}),mCe=500,yCe=function(e){Sc(t,e);function t(r){var n=e.call(this,r)||this;return n._getMemoizedMenuButtonKeytipProps=gs(function(o){return _e(_e({},o),{hasMenu:!0})}),n._onItemKeyDown=function(o){var i=n.props,s=i.item,a=i.onItemKeyDown;o.which===Kt.enter?(n._executeItemClick(o),o.preventDefault(),o.stopPropagation()):a&&a(s,o)},n._getSubmenuTarget=function(){return n._splitButton},n._renderAriaDescription=function(o,i){return o?A.createElement("span",{id:n._ariaDescriptionId,className:i},o):null},n._onItemMouseEnterPrimary=function(o){var i=n.props,s=i.item,a=i.onItemMouseEnter;a&&a(_e(_e({},s),{subMenuProps:void 0,items:void 0}),o,n._splitButton)},n._onItemMouseEnterIcon=function(o){var i=n.props,s=i.item,a=i.onItemMouseEnter;a&&a(s,o,n._splitButton)},n._onItemMouseMovePrimary=function(o){var i=n.props,s=i.item,a=i.onItemMouseMove;a&&a(_e(_e({},s),{subMenuProps:void 0,items:void 0}),o,n._splitButton)},n._onItemMouseMoveIcon=function(o){var i=n.props,s=i.item,a=i.onItemMouseMove;a&&a(s,o,n._splitButton)},n._onIconItemClick=function(o){var i=n.props,s=i.item,a=i.onItemClickBase;a&&a(s,o,n._splitButton?n._splitButton:o.currentTarget)},n._executeItemClick=function(o){var i=n.props,s=i.item,a=i.executeItemClick,l=i.onItemClick;if(!(s.disabled||s.isDisabled)){if(n._processingTouch&&!s.canCheck&&l)return l(s,o);a&&a(s,o)}},n._onTouchStart=function(o){n._splitButton&&!("onpointerdown"in n._splitButton)&&n._handleTouchAndPointerEvent(o)},n._onPointerDown=function(o){o.pointerType==="touch"&&(n._handleTouchAndPointerEvent(o),o.preventDefault(),o.stopImmediatePropagation())},n._async=new rne(n),n._events=new _d(n),n._dismissLabelId=Ph(),n}return t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var r=this,n,o=this.props,i=o.item,s=o.classNames,a=o.index,l=o.focusableElementIndex,u=o.totalItemCount,c=o.hasCheckmarks,f=o.hasIcons,d=o.onItemMouseLeave,h=o.expandedMenuItemKey,g=Sf(i),v=i.keytipProps;v&&(v=this._getMemoizedMenuButtonKeytipProps(v));var y=i.ariaDescription;y&&(this._ariaDescriptionId=Ph());var E=(n=Og(i))!==null&&n!==void 0?n:void 0;return A.createElement(_L,{keytipProps:v,disabled:tc(i)},function(_){return A.createElement("div",{"data-ktp-target":_["data-ktp-target"],ref:function(S){return r._splitButton=S},role:Xie(i),"aria-label":i.ariaLabel,className:s.splitContainer,"aria-disabled":tc(i),"aria-expanded":g?i.key===h:void 0,"aria-haspopup":!0,"aria-describedby":Jx(i.ariaDescribedBy,y?r._ariaDescriptionId:void 0,_["aria-describedby"]),"aria-checked":E,"aria-posinset":l+1,"aria-setsize":u,onMouseEnter:r._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(r,_e(_e({},i),{subMenuProps:null,items:null})):void 0,onMouseMove:r._onItemMouseMovePrimary,onKeyDown:r._onItemKeyDown,onClick:r._executeItemClick,onTouchStart:r._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":i["aria-roledescription"]},r._renderSplitPrimaryButton(i,s,a,c,f),r._renderSplitDivider(i),r._renderSplitIconButton(i,s,a,_),r._renderAriaDescription(y,s.screenReaderText))})},t.prototype._renderSplitPrimaryButton=function(r,n,o,i,s){var a=this.props,l=a.contextualMenuItemAs,u=l===void 0?Mb:l,c=a.onItemClick,f={key:r.key,disabled:tc(r)||r.primaryDisabled,name:r.name,text:r.text||r.name,secondaryText:r.secondaryText,className:n.splitPrimary,canCheck:r.canCheck,isChecked:r.isChecked,checked:r.checked,iconProps:r.iconProps,id:this._dismissLabelId,onRenderIcon:r.onRenderIcon,data:r.data,"data-is-focusable":!1},d=r.itemProps;return A.createElement("button",_e({},Mi(f,_g)),A.createElement(u,_e({"data-is-focusable":!1,item:f,classNames:n,index:o,onCheckmarkClick:i&&c?c:void 0,hasIcons:s},d)))},t.prototype._renderSplitDivider=function(r){var n=r.getSplitButtonVerticalDividerClassNames||eCe;return A.createElement(vCe,{getClassNames:n})},t.prototype._renderSplitIconButton=function(r,n,o,i){var s=this.props,a=s.onItemMouseLeave,l=s.onItemMouseDown,u=s.openSubMenu,c=s.dismissSubMenu,f=s.dismissMenu,d=Mb;this.props.item.contextualMenuItemAs&&(d=nu(this.props.item.contextualMenuItemAs,d)),this.props.contextualMenuItemAs&&(d=nu(this.props.contextualMenuItemAs,d));var h={onClick:this._onIconItemClick,disabled:tc(r),className:n.splitMenu,subMenuProps:r.subMenuProps,submenuIconProps:r.submenuIconProps,split:!0,key:r.key,"aria-labelledby":this._dismissLabelId},g=_e(_e({},Mi(h,_g)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:a?a.bind(this,r):void 0,onMouseDown:function(y){return l?l(r,y):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":i["data-ktp-execute-target"],"aria-haspopup":!0}),v=r.itemProps;return A.createElement("button",_e({},g),A.createElement(d,_e({componentRef:r.componentRef,item:h,classNames:n,index:o,hasIcons:!1,openSubMenu:u,dismissSubMenu:c,dismissMenu:f,getSubmenuTarget:this._getSubmenuTarget},v)))},t.prototype._handleTouchAndPointerEvent=function(r){var n=this,o=this.props.onTap;o&&o(r),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){n._processingTouch=!1,n._lastTouchTimeoutId=void 0},mCe)},t}(bL),Dg;(function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"})(Dg||(Dg={}));var bCe=[479,639,1023,1365,1919,99999999],Q2,ese;function tse(){var e;return(e=Q2??ese)!==null&&e!==void 0?e:Dg.large}function _Ce(e){try{return e.document.documentElement.clientWidth}catch{return e.innerWidth}}function ECe(e){var t=Dg.small;if(e){try{for(;_Ce(e)>bCe[t];)t++}catch{t=tse()}ese=t}else throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return t}var rse=function(e,t){var r=A.useState(tse()),n=r[0],o=r[1],i=A.useCallback(function(){var a=ECe(ho(e.current));n!==a&&o(a)},[e,n]),s=$_();return mb(s,"resize",i),A.useEffect(function(){t===void 0&&i()},[t]),t??n},SCe=A.createContext({}),wCe=wc(),kCe=wc(),ACe={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:_o.bottomAutoEdge,beakWidth:16};function wW(e){for(var t=0,r=0,n=e;r0){var Dt=0;return A.createElement("li",{role:"presentation",key:Q.key||He.key||"section-".concat($)},A.createElement("div",_e({},ae),A.createElement("ul",{className:X.list,role:"presentation"},Q.topDivider&&Qe($,Y,!0,!0),ie&&nt(ie,He.key||$,Y,He.title),Q.items.map(function(wt,Et){var Gt=me(wt,Et,Dt,wW(Q.items),q,B,X);if(wt.itemType!==Ii.Divider&&wt.itemType!==Ii.Header){var $r=wt.customOnRenderListLength?wt.customOnRenderListLength:1;Dt+=$r}return Gt}),Q.bottomDivider&&Qe($,Y,!1,!0))))}}},nt=function(He,Y,X,$){return A.createElement("li",{role:"presentation",title:$,key:Y,className:X.item},He)},Qe=function(He,Y,X,$){return $||He>0?A.createElement("li",{role:"separator",key:"separator-"+He+(X===void 0?"":X?"-top":"-bottom"),className:Y.divider,"aria-hidden":"true"}):null},Ze=function(He,Y,X,$,q,B,Q){if(He.onRender)return He.onRender(_e({"aria-posinset":$+1,"aria-setsize":q},He),l);var ie=o.contextualMenuItemAs,ae={item:He,classNames:Y,index:X,focusableElementIndex:$,totalItemCount:q,hasCheckmarks:B,hasIcons:Q,contextualMenuItemAs:ie,onItemMouseEnter:Z,onItemMouseLeave:ee,onItemMouseMove:J,onItemMouseDown:LCe,executeItemClick:Se,onItemKeyDown:K,expandedMenuItemKey:g,openSubMenu:v,dismissSubMenu:E,dismissMenu:l};if(He.href){var ne=dCe;return He.contextualMenuItemWrapperAs&&(ne=nu(He.contextualMenuItemWrapperAs,ne)),A.createElement(ne,_e({},ae,{onItemClick:ge}))}if(He.split&&Sf(He)){var ye=yCe;return He.contextualMenuItemWrapperAs&&(ye=nu(He.contextualMenuItemWrapperAs,ye)),A.createElement(ye,_e({},ae,{onItemClick:de,onItemClickBase:Re,onTap:R}))}var Pe=hCe;return He.contextualMenuItemWrapperAs&&(Pe=nu(He.contextualMenuItemWrapperAs,Pe)),A.createElement(Pe,_e({},ae,{onItemClick:de,onItemClickBase:Re}))},Fe=function(He,Y,X,$,q,B){var Q=Mb;He.contextualMenuItemAs&&(Q=nu(He.contextualMenuItemAs,Q)),o.contextualMenuItemAs&&(Q=nu(o.contextualMenuItemAs,Q));var ie=He.itemProps,ae=He.id,ne=ie&&Mi(ie,lv);return A.createElement("div",_e({id:ae,className:X.header},ne,{style:He.style}),A.createElement(Q,_e({item:He,classNames:Y,index:$,onCheckmarkClick:q?de:void 0,hasIcons:B},ie)))},ot=o.isBeakVisible,Me=o.items,_t=o.labelElementId,qt=o.id,Nt=o.className,ut=o.beakWidth,xe=o.directionalHint,Ve=o.directionalHintForRTL,Xt=o.alignTargetEdge,he=o.gapSpace,le=o.coverTarget,se=o.ariaLabel,pe=o.doNotLayer,Oe=o.target,je=o.bounds,ke=o.useTargetWidth,Ie=o.useTargetAsMinWidth,$e=o.directionalHintFixed,lt=o.shouldFocusOnMount,mt=o.shouldFocusOnContainer,Rt=o.title,dr=o.styles,Cr=o.theme,Lt=o.calloutProps,Wr=o.onRenderSubMenu,dn=Wr===void 0?AW:Wr,tr=o.onRenderMenuList,Ot=tr===void 0?function(He,Y){return ve(He,Kr)}:tr,Gr=o.focusZoneProps,Nr=o.getMenuClassNames,Kr=Nr?Nr(Cr,Nt):wCe(dr,{theme:Cr,className:Nt}),gr=Bt(Me);function Bt(He){for(var Y=0,X=He;Y0){var mo=wW(Me),ja=Kr.subComponentStyles?Kr.subComponentStyles.callout:void 0;return A.createElement(SCe.Consumer,null,function(He){return A.createElement(Kie,_e({styles:ja,onRestoreFocus:d},Lt,{target:Oe||He.target,isBeakVisible:ot,beakWidth:ut,directionalHint:xe,directionalHintForRTL:Ve,gapSpace:he,coverTarget:le,doNotLayer:pe,className:a1("ms-ContextualMenu-Callout",Lt&&Lt.className),setInitialFocus:lt,onDismiss:o.onDismiss||He.onDismiss,onScroll:x,bounds:je,directionalHintFixed:$e,alignTargetEdge:Xt,hidden:o.hidden||He.hidden,ref:t}),A.createElement("div",{style:No,ref:i,id:qt,className:Kr.container,tabIndex:mt?0:-1,onKeyDown:P,onKeyUp:F,onFocusCapture:k,"aria-label":se,"aria-labelledby":_t,role:"menu"},Rt&&A.createElement("div",{className:Kr.title}," ",Rt," "),Me&&Me.length?Ee(Ot({ariaLabel:se,items:Me,totalItemCount:mo,hasCheckmarks:Ue,hasIcons:gr,defaultMenuItemRenderer:function(Y){return we(Y,Kr)},labelElementId:_t},function(Y,X){return ve(Y,Kr)}),dt):null,Vr&&dn(Vr,AW)),A.createElement(Mxe,null))})}else return null}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:E8(e,t)});sse.displayName="ContextualMenuBase";function kW(e){return e.which===Kt.alt||e.key==="Meta"}function LCe(e,t){var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,e,t)}function AW(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function ase(e,t){for(var r=0,n=t;r=(F||Dg.small)&&A.createElement(Gie,_e({ref:ve},Rt),A.createElement(T8,_e({role:$e?"alertdialog":"dialog",ariaLabelledBy:D,ariaDescribedBy:M,onDismiss:x,shouldRestoreFocus:!_,enableAriaHiddenSiblings:J,"aria-modal":!K},ee),A.createElement("div",{className:mt.root,role:K?void 0:"document"},!K&&A.createElement(KCe,_e({"aria-hidden":!0,isDarkThemed:T,onClick:S?void 0:x,allowTouchBodyScroll:l},C)),V?A.createElement(UCe,{handleSelector:V.dragHandleSelector||"#".concat(me),preventDragSelector:"button",onStart:dn,onDragChange:tr,onStop:Ot,position:ut},gr):gr)))||null});hse.displayName="Modal";var pse=kc(hse,$Ce,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});pse.displayName="Modal";function JCe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('".concat(e,"fabric-icons-a13498cf.woff') format('woff')")},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}};xo(r,t)}function eNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('".concat(e,"fabric-icons-0-467ee27f.woff') format('woff')")},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}};xo(r,t)}function tNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('".concat(e,"fabric-icons-1-4d521695.woff') format('woff')")},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}};xo(r,t)}function rNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('".concat(e,"fabric-icons-2-63c99abf.woff') format('woff')")},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}};xo(r,t)}function nNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('".concat(e,"fabric-icons-3-089e217a.woff') format('woff')")},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}};xo(r,t)}function oNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('".concat(e,"fabric-icons-4-a656cc0a.woff') format('woff')")},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}};xo(r,t)}function iNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('".concat(e,"fabric-icons-5-f95ba260.woff') format('woff')")},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}};xo(r,t)}function sNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('".concat(e,"fabric-icons-6-ef6fd590.woff') format('woff')")},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}};xo(r,t)}function aNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('".concat(e,"fabric-icons-7-2b97bb99.woff') format('woff')")},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}};xo(r,t)}function lNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('".concat(e,"fabric-icons-8-6fdf1528.woff') format('woff')")},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}};xo(r,t)}function uNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('".concat(e,"fabric-icons-9-c6162b42.woff') format('woff')")},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}};xo(r,t)}function cNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('".concat(e,"fabric-icons-10-c4ded8e4.woff') format('woff')")},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}};xo(r,t)}function fNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('".concat(e,"fabric-icons-11-2a8393d6.woff') format('woff')")},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}};xo(r,t)}function dNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('".concat(e,"fabric-icons-12-7e945a1e.woff') format('woff')")},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}};xo(r,t)}function hNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('".concat(e,"fabric-icons-13-c3989a02.woff') format('woff')")},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}};xo(r,t)}function pNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('".concat(e,"fabric-icons-14-5cf58db8.woff') format('woff')")},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}};xo(r,t)}function gNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('".concat(e,"fabric-icons-15-3807251b.woff') format('woff')")},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}};xo(r,t)}function vNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('".concat(e,"fabric-icons-16-9cf93f3b.woff') format('woff')")},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}};xo(r,t)}function mNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('".concat(e,"fabric-icons-17-0c4ed701.woff') format('woff')")},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}};xo(r,t)}var yNe=function(){Y1("trash","delete"),Y1("onedrive","onedrivelogo"),Y1("alertsolid12","eventdatemissed12"),Y1("sixpointstar","6pointstar"),Y1("twelvepointstar","12pointstar"),Y1("toggleon","toggleleft"),Y1("toggleoff","toggleright")};y8("@fluentui/font-icons-mdl2","8.5.28");var bNe="".concat(r9e,"/assets/icons/"),Wp=ho();function _Ne(e,t){var r,n;e===void 0&&(e=((r=Wp==null?void 0:Wp.FabricConfig)===null||r===void 0?void 0:r.iconBaseUrl)||((n=Wp==null?void 0:Wp.FabricConfig)===null||n===void 0?void 0:n.fontBaseUrl)||bNe),[JCe,eNe,tNe,rNe,nNe,oNe,iNe,sNe,aNe,lNe,uNe,cNe,fNe,dNe,hNe,pNe,gNe,vNe,mNe].forEach(function(o){return o(e,t)}),yNe()}var EL=_e;function Sk(e,t){for(var r=[],n=2;n0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return kNe(t[s],l,n[s],n.slots&&n.slots[s],n._defaultStyles&&n._defaultStyles[s],n.theme)};a.isSlot=!0,r[s]=a}};for(var i in t)o(i);return r}function SNe(e,t){var r,n;return typeof t=="string"||typeof t=="number"||typeof t=="boolean"?n=(r={},r[e]=t,r):n=t,n}function wNe(e,t){for(var r=[],n=2;n2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(r.length===2)return{rowGap:Z2(og(r[0],t)),columnGap:Z2(og(r[1],t))};var n=Z2(og(e,t));return{rowGap:n,columnGap:n}},TW=function(e,t){if(e===void 0||typeof e=="number"||e==="")return e;var r=e.split(" ");return r.length<2?og(e,t):r.reduce(function(n,o){return og(n,t)+" "+og(o,t)})},Gp={start:"flex-start",end:"flex-end"},pB={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},RNe=function(e,t,r){var n,o,i,s,a,l,u,c,f,d,h,g,v,y=e.className,E=e.disableShrink,_=e.enableScopedSelectors,S=e.grow,b=e.horizontal,k=e.horizontalAlign,T=e.reversed,x=e.verticalAlign,I=e.verticalFill,C=e.wrap,R=Ac(pB,t),D=r&&r.childrenGap?r.childrenGap:e.gap,L=r&&r.maxHeight?r.maxHeight:e.maxHeight,M=r&&r.maxWidth?r.maxWidth:e.maxWidth,W=r&&r.padding?r.padding:e.padding,z=NNe(D,t),F=z.rowGap,P=z.columnGap,K="".concat(-.5*P.value).concat(P.unit),V="".concat(-.5*F.value).concat(F.unit),Z={textOverflow:"ellipsis"},J="> "+(_?"."+pB.child:"*"),ee=(n={},n["".concat(J,":not(.").concat(bse.root,")")]={flexShrink:0},n);return C?{root:[R.root,{flexWrap:"wrap",maxWidth:M,maxHeight:L,width:"auto",overflow:"visible",height:"100%"},k&&(o={},o[b?"justifyContent":"alignItems"]=Gp[k]||k,o),x&&(i={},i[b?"alignItems":"justifyContent"]=Gp[x]||x,i),y,{display:"flex"},b&&{height:I?"100%":"auto"}],inner:[R.inner,(s={display:"flex",flexWrap:"wrap",marginLeft:K,marginRight:K,marginTop:V,marginBottom:V,overflow:"visible",boxSizing:"border-box",padding:TW(W,t),width:P.value===0?"100%":"calc(100% + ".concat(P.value).concat(P.unit,")"),maxWidth:"100vw"},s[J]=_e({margin:"".concat(.5*F.value).concat(F.unit," ").concat(.5*P.value).concat(P.unit)},Z),s),E&&ee,k&&(a={},a[b?"justifyContent":"alignItems"]=Gp[k]||k,a),x&&(l={},l[b?"alignItems":"justifyContent"]=Gp[x]||x,l),b&&(u={flexDirection:T?"row-reverse":"row",height:F.value===0?"100%":"calc(100% + ".concat(F.value).concat(F.unit,")")},u[J]={maxWidth:P.value===0?"100%":"calc(100% - ".concat(P.value).concat(P.unit,")")},u),!b&&(c={flexDirection:T?"column-reverse":"column",height:"calc(100% + ".concat(F.value).concat(F.unit,")")},c[J]={maxHeight:F.value===0?"100%":"calc(100% - ".concat(F.value).concat(F.unit,")")},c)]}:{root:[R.root,(f={display:"flex",flexDirection:b?T?"row-reverse":"row":T?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:I?"100%":"auto",maxWidth:M,maxHeight:L,padding:TW(W,t),boxSizing:"border-box"},f[J]=Z,f),E&&ee,S&&{flexGrow:S===!0?1:S},k&&(d={},d[b?"justifyContent":"alignItems"]=Gp[k]||k,d),x&&(h={},h[b?"alignItems":"justifyContent"]=Gp[x]||x,h),b&&P.value>0&&(g={},g[T?"".concat(J,":not(:last-child)"):"".concat(J,":not(:first-child)")]={marginLeft:"".concat(P.value).concat(P.unit)},g),!b&&F.value>0&&(v={},v[T?"".concat(J,":not(:last-child)"):"".concat(J,":not(:first-child)")]={marginTop:"".concat(F.value).concat(F.unit)},v),y]}},ONe=function(e){var t=e.as,r=t===void 0?"div":t,n=e.disableShrink,o=n===void 0?!1:n,i=e.doNotRenderFalsyValues,s=i===void 0?!1:i,a=e.enableScopedSelectors,l=a===void 0?!1:a,u=e.wrap,c=av(e,["as","disableShrink","doNotRenderFalsyValues","enableScopedSelectors","wrap"]),f=Ese(e.children,{disableShrink:o,enableScopedSelectors:l,doNotRenderFalsyValues:s}),d=Mi(c,vo),h=vse(e,{root:r,inner:"div"});return u?Sk(h.root,_e({},d),Sk(h.inner,null,f)):Sk(h.root,_e({},d),f)};function Ese(e,t){var r=t.disableShrink,n=t.enableScopedSelectors,o=t.doNotRenderFalsyValues,i=A.Children.toArray(e);return i=A.Children.map(i,function(s){if(!s)return o?null:s;if(!A.isValidElement(s))return s;if(s.type===A.Fragment)return s.props.children?Ese(s.props.children,{disableShrink:r,enableScopedSelectors:n,doNotRenderFalsyValues:o}):null;var a=s,l={};DNe(s)&&(l={shrink:!r});var u=a.props.className;return A.cloneElement(a,_e(_e(_e(_e({},l),a.props),u&&{className:u}),n&&{className:a1(pB.child,u)}))}),i}function DNe(e){return!!e&&typeof e=="object"&&!!e.type&&e.type.displayName===_se.displayName}var FNe={Item:_se},BNe=mse(ONe,{displayName:"Stack",styles:RNe,statics:FNe});const c1=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();c1.trustedTypes===void 0&&(c1.trustedTypes={createPolicy:(e,t)=>t});const Sse={configurable:!1,enumerable:!1,writable:!1};c1.FAST===void 0&&Reflect.defineProperty(c1,"FAST",Object.assign({value:Object.create(null)},Sse));const Lb=c1.FAST;if(Lb.getById===void 0){const e=Object.create(null);Reflect.defineProperty(Lb,"getById",Object.assign({value(t,r){let n=e[t];return n===void 0&&(n=r?e[t]=r():null),n}},Sse))}const Py=Object.freeze([]);function wse(){const e=new WeakMap;return function(t){let r=e.get(t);if(r===void 0){let n=Reflect.getPrototypeOf(t);for(;r===void 0&&n!==null;)r=e.get(n),n=Reflect.getPrototypeOf(n);r=r===void 0?[]:r.slice(0),e.set(t,r)}return r}}const J2=c1.FAST.getById(1,()=>{const e=[],t=[];function r(){if(t.length)throw t.shift()}function n(s){try{s.call()}catch(a){t.push(a),setTimeout(r,0)}}function o(){let a=0;for(;a1024){for(let l=0,u=e.length-a;le});let eC=kse;const qy=`fast-${Math.random().toString(36).substring(2,8)}`,Ase=`${qy}{`,SL=`}${qy}`,rn=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(eC!==kse)throw new Error("The HTML policy can only be set once.");eC=e},createHTML(e){return eC.createHTML(e)},isMarker(e){return e&&e.nodeType===8&&e.data.startsWith(qy)},extractDirectiveIndexFromMarker(e){return parseInt(e.data.replace(`${qy}:`,""))},createInterpolationPlaceholder(e){return`${Ase}${e}${SL}`},createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(e){return``},queueUpdate:J2.enqueue,processUpdates:J2.process,nextUpdate(){return new Promise(J2.enqueue)},setAttribute(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)},setBooleanAttribute(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;t!==null;t=e.firstChild)e.removeChild(t)},createTemplateWalker(e){return document.createTreeWalker(e,133,null,!1)}});class gB{constructor(t,r){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=r}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const r=this.spillover;if(r===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else r.indexOf(t)===-1&&r.push(t)}unsubscribe(t){const r=this.spillover;if(r===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const n=r.indexOf(t);n!==-1&&r.splice(n,1)}}notify(t){const r=this.spillover,n=this.source;if(r===void 0){const o=this.sub1,i=this.sub2;o!==void 0&&o.handleChange(n,t),i!==void 0&&i.handleChange(n,t)}else for(let o=0,i=r.length;o{const e=/(:|&&|\|\||if)/,t=new WeakMap,r=rn.queueUpdate;let n,o=u=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function i(u){let c=u.$fastController||t.get(u);return c===void 0&&(Array.isArray(u)?c=o(u):t.set(u,c=new xse(u))),c}const s=wse();class a{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return n!==void 0&&n.watch(c,this.name),c[this.field]}setValue(c,f){const d=this.field,h=c[d];if(h!==f){c[d]=f;const g=c[this.callback];typeof g=="function"&&g.call(c,h,f),i(c).notify(this.name)}}}class l extends gB{constructor(c,f,d=!1){super(c,f),this.binding=c,this.isVolatileBinding=d,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(c,f){this.needsRefresh&&this.last!==null&&this.disconnect();const d=n;n=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const h=this.binding(c,f);return n=d,h}disconnect(){if(this.last!==null){let c=this.first;for(;c!==void 0;)c.notifier.unsubscribe(this,c.propertyName),c=c.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(c,f){const d=this.last,h=i(c),g=d===null?this.first:{};if(g.propertySource=c,g.propertyName=f,g.notifier=h,h.subscribe(this,f),d!==null){if(!this.needsRefresh){let v;n=void 0,v=d.propertySource[d.propertyName],n=this,c===v&&(this.needsRefresh=!0)}d.next=g}this.last=g}handleChange(){this.needsQueue&&(this.needsQueue=!1,r(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let c=this.first;return{next:()=>{const f=c;return f===void 0?{value:void 0,done:!0}:(c=c.next,{value:f,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(u){o=u},getNotifier:i,track(u,c){n!==void 0&&n.watch(u,c)},trackVolatile(){n!==void 0&&(n.needsRefresh=!0)},notify(u,c){i(u).notify(c)},defineProperty(u,c){typeof c=="string"&&(c=new a(c)),s(u).push(c),Reflect.defineProperty(u,c.name,{enumerable:!0,get:function(){return c.getValue(this)},set:function(f){c.setValue(this,f)}})},getAccessors:s,binding(u,c,f=this.isVolatileBinding(u)){return new l(u,c,f)},isVolatileBinding(u){return e.test(u.toString())}})});function hv(e,t){ti.defineProperty(e,t)}const IW=Lb.getById(3,()=>{let e=null;return{get(){return e},set(t){e=t}}});class jb{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return IW.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){IW.set(t)}}ti.defineProperty(jb.prototype,"index");ti.defineProperty(jb.prototype,"length");const Wy=Object.seal(new jb);class wL{constructor(){this.targetIndex=0}}class Tse extends wL{constructor(){super(...arguments),this.createPlaceholder=rn.createInterpolationPlaceholder}}class Ise extends wL{constructor(t,r,n){super(),this.name=t,this.behavior=r,this.options=n}createPlaceholder(t){return rn.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function MNe(e,t){this.source=e,this.context=t,this.bindingObserver===null&&(this.bindingObserver=ti.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function LNe(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function jNe(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function zNe(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function HNe(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function $Ne(e){rn.setAttribute(this.target,this.targetName,e)}function PNe(e){rn.setBooleanAttribute(this.target,this.targetName,e)}function qNe(e){if(e==null&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;t===void 0?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function WNe(e){this.target[this.targetName]=e}function GNe(e){const t=this.classVersions||Object.create(null),r=this.target;let n=this.version||0;if(e!=null&&e.length){const o=e.split(/\s+/);for(let i=0,s=o.length;irn.createHTML(r(n,o))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=PNe;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=LNe,this.unbind=HNe;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=GNe);break}}targetAtContent(){this.updateTarget=qNe,this.unbind=zNe}createBehavior(t){return new KNe(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class KNe{constructor(t,r,n,o,i,s,a){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=r,this.isBindingVolatile=n,this.bind=o,this.unbind=i,this.updateTarget=s,this.targetName=a}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){jb.setEvent(t);const r=this.binding(this.source,this.context);jb.setEvent(null),r!==!0&&t.preventDefault()}}let tC=null;class AL{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){tC=this}static borrow(t){const r=tC||new AL;return r.directives=t,r.reset(),tC=null,r}}function VNe(e){if(e.length===1)return e[0];let t;const r=e.length,n=e.map(s=>typeof s=="string"?()=>s:(t=s.targetName||t,s.binding)),o=(s,a)=>{let l="";for(let u=0;ua),u.targetName=s.name):u=VNe(l),u!==null&&(t.removeAttributeNode(s),o--,i--,e.addFactory(u))}}function YNe(e,t,r){const n=Cse(e,t.textContent);if(n!==null){let o=t;for(let i=0,s=n.length;i0}const r=this.fragment.cloneNode(!0),n=this.viewBehaviorFactories,o=new Array(this.behaviorCount),i=rn.createTemplateWalker(r);let s=0,a=this.targetOffset,l=i.nextNode();for(let u=n.length;s=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function K_(e,...t){const r=[];let n="";for(let o=0,i=e.length-1;ol}if(typeof a=="function"&&(a=new kL(a)),a instanceof Tse){const l=ZNe.exec(s);l!==null&&(a.targetName=l[2])}a instanceof wL?(n+=a.createPlaceholder(r.length),r.push(a)):n+=a}return n+=e[e.length-1],new NW(n,r)}class Ls{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}}Ls.create=(()=>{if(rn.supportsAdoptedStyleSheets){const e=new Map;return t=>new JNe(t,e)}return e=>new rRe(e)})();function xL(e){return e.map(t=>t instanceof Ls?xL(t.styles):[t]).reduce((t,r)=>t.concat(r),[])}function Nse(e){return e.map(t=>t instanceof Ls?t.behaviors:null).reduce((t,r)=>r===null?t:(t===null&&(t=[]),t.concat(r)),null)}let Rse=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},Ose=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(r=>t.indexOf(r)===-1)};if(rn.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Rse=(e,t)=>{e.adoptedStyleSheets.push(...t)},Ose=(e,t)=>{for(const r of t){const n=e.adoptedStyleSheets.indexOf(r);n!==-1&&e.adoptedStyleSheets.splice(n,1)}}}catch{}class JNe extends Ls{constructor(t,r){super(),this.styles=t,this.styleSheetCache=r,this._styleSheets=void 0,this.behaviors=Nse(t)}get styleSheets(){if(this._styleSheets===void 0){const t=this.styles,r=this.styleSheetCache;this._styleSheets=xL(t).map(n=>{if(n instanceof CSSStyleSheet)return n;let o=r.get(n);return o===void 0&&(o=new CSSStyleSheet,o.replaceSync(n),r.set(n,o)),o})}return this._styleSheets}addStylesTo(t){Rse(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){Ose(t,this.styleSheets),super.removeStylesFrom(t)}}let eRe=0;function tRe(){return`fast-style-class-${++eRe}`}class rRe extends Ls{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=Nse(t),this.styleSheets=xL(t),this.styleClass=tRe()}addStylesTo(t){const r=this.styleSheets,n=this.styleClass;t=this.normalizeTarget(t);for(let o=0;o{n.add(t);const o=t[this.fieldName];switch(r){case"reflect":const i=this.converter;rn.setAttribute(t,this.attribute,i!==void 0?i.toView(o):o);break;case"boolean":rn.setBooleanAttribute(t,this.attribute,o);break}n.delete(t)})}static collect(t,...r){const n=[];r.push(BA.locate(t));for(let o=0,i=r.length;o1&&(r.property=i),BA.locate(o.constructor).push(r)}if(arguments.length>1){r={},n(e,t);return}return r=e===void 0?{}:e,n}const RW={mode:"open"},OW={},vB=Lb.getById(4,()=>{const e=new Map;return Object.freeze({register(t){return e.has(t.type)?!1:(e.set(t.type,t),!0)},getByType(t){return e.get(t)}})});class wT{constructor(t,r=t.definition){typeof r=="string"&&(r={name:r}),this.type=t,this.name=r.name,this.template=r.template;const n=MA.collect(t,r.attributes),o=new Array(n.length),i={},s={};for(let a=0,l=n.length;a0){const i=this.boundObservables=Object.create(null);for(let s=0,a=o.length;sn.name===r),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(Py),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return this.options.filter!==void 0&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class lRe extends aRe{constructor(t,r){super(t,r)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function uRe(e){return typeof e=="string"&&(e={property:e}),new Ise("fast-slotted",lRe,e)}class cRe{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const fRe=(e,t)=>K_` +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function $2(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function eB(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var LIe=typeof WeakMap=="function"?WeakMap:Map;function gie(e,t,r){r=pf(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){RA||(RA=!0,cB=n),eB(e,t)},r}function vie(e,t,r){r=pf(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){eB(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){eB(e,t),typeof n!="function"&&(Ud===null?Ud=new Set([this]):Ud.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function rW(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new LIe;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=QIe.bind(null,e,t,r),t.then(e,e))}function nW(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function oW(e,t,r,n,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=pf(-1,1),t.tag=2,Vd(r,t,1))),r.lanes|=1),e)}var jIe=Hf.ReactCurrentOwner,Os=!1;function Ui(e,t,r,n){t.child=e===null?Uoe(t,null,r,n):Tg(t,e.child,r,n)}function iW(e,t,r,n,o){r=r.render;var i=t.ref;return rg(t,o),n=nL(e,t,r,n,i,o),r=oL(),e!==null&&!Os?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ef(e,t,o)):(Fn&&r&&G8(t),t.flags|=1,Ui(e,t,n,o),t.child)}function sW(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!pL(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,mie(e,t,i,n,o)):(e=Sk(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(r=r.compare,r=r!==null?r:Ab,r(s,n)&&e.ref===t.ref)return Ef(e,t,o)}return t.flags|=1,e=Xd(i,n),e.ref=t.ref,e.return=t,t.child=e}function mie(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(Ab(i,n)&&e.ref===t.ref)if(Os=!1,t.pendingProps=n=i,(e.lanes&o)!==0)e.flags&131072&&(Os=!0);else return t.lanes=e.lanes,Ef(e,t,o)}return tB(e,t,r,n,o)}function yie(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},hn(B0,oa),oa|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,hn(B0,oa),oa|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,hn(B0,oa),oa|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,hn(B0,oa),oa|=n;return Ui(e,t,o,r),t.child}function bie(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function tB(e,t,r,n,o){var i=Bs(r)?Wh:Li.current;return i=Ag(t,i),rg(t,o),r=nL(e,t,r,n,i,o),n=oL(),e!==null&&!Os?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ef(e,t,o)):(Fn&&n&&G8(t),t.flags|=1,Ui(e,t,r,o),t.child)}function aW(e,t,r,n,o){if(Bs(r)){var i=!0;EA(t)}else i=!1;if(rg(t,o),t.stateNode===null)bk(e,t),Koe(t,r,n),JF(t,r,n,o),n=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=r.contextType;typeof u=="object"&&u!==null?u=_l(u):(u=Bs(r)?Wh:Li.current,u=Ag(t,u));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==n||l!==u)&&Zq(t,s,n,u),wd=!1;var d=t.memoizedState;s.state=d,xA(t,n,s,o),l=t.memoizedState,a!==n||d!==l||Fs.current||wd?(typeof c=="function"&&(ZF(t,r,c,n),l=t.memoizedState),(a=wd||Qq(t,r,a,n,d,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),s.props=n,s.state=l,s.context=u,n=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,Woe(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Zl(t.type,a),s.props=u,f=t.pendingProps,d=s.context,l=r.contextType,typeof l=="object"&&l!==null?l=_l(l):(l=Bs(r)?Wh:Li.current,l=Ag(t,l));var h=r.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||d!==l)&&Zq(t,s,n,l),wd=!1,d=t.memoizedState,s.state=d,xA(t,n,s,o);var g=t.memoizedState;a!==f||d!==g||Fs.current||wd?(typeof h=="function"&&(ZF(t,r,h,n),g=t.memoizedState),(u=wd||Qq(t,r,u,n,d,g,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,g,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,g,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=g),s.props=n,s.state=g,s.context=l,n=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return rB(e,t,r,n,i,o)}function rB(e,t,r,n,o,i){bie(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return o&&Kq(t,r,!1),Ef(e,t,i);n=t.stateNode,jIe.current=t;var a=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=Tg(t,e.child,null,i),t.child=Tg(t,null,a,i)):Ui(e,t,a,i),t.memoizedState=n.state,o&&Kq(t,r,!0),t.child}function _ie(e){var t=e.stateNode;t.pendingContext?Gq(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Gq(e,t.context,!1),J8(e,t.containerInfo)}function lW(e,t,r,n,o){return xg(),V8(o),t.flags|=256,Ui(e,t,r,n),t.child}var nB={dehydrated:null,treeContext:null,retryLane:0};function oB(e){return{baseLanes:e,cachePool:null,transitions:null}}function Eie(e,t,r){var n=t.pendingProps,o=Gn.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),hn(Gn,o&1),e===null)return XF(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=n.children,e=n.fallback,i?(n=t.mode,i=t.child,s={mode:"hidden",children:s},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=bT(s,n,0,null),e=Dh(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=oB(r),t.memoizedState=nB,e):aL(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return zIe(e,t,s,n,a,o,r);if(i){i=n.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:n.children};return!(s&1)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Xd(o,l),n.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Xd(a,i):(i=Dh(i,s,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,s=e.child.memoizedState,s=s===null?oB(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=nB,n}return i=e.child,e=i.sibling,n=Xd(i,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function aL(e,t){return t=bT({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function QS(e,t,r,n){return n!==null&&V8(n),Tg(t,e.child,null,r),e=aL(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function zIe(e,t,r,n,o,i,s){if(r)return t.flags&256?(t.flags&=-257,n=$2(Error(We(422))),QS(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=bT({mode:"visible",children:n.children},o,0,null),i=Dh(i,o,s,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&Tg(t,e.child,null,s),t.child.memoizedState=oB(s),t.memoizedState=nB,i);if(!(t.mode&1))return QS(e,t,s,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var a=n.dgst;return n=a,i=Error(We(419)),n=$2(i,n,void 0),QS(e,t,s,n)}if(a=(s&e.childLanes)!==0,Os||a){if(n=ei,n!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(n.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,_f(e,o),au(n,e,o,-1))}return hL(),n=$2(Error(We(421))),QS(e,t,s,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=ZIe.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,pa=Kd(o.nextSibling),ya=t,Fn=!0,ru=null,e!==null&&(nl[ol++]=sf,nl[ol++]=af,nl[ol++]=Gh,sf=e.id,af=e.overflow,Gh=t),t=aL(t,n.children),t.flags|=4096,t)}function uW(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),QF(e.return,t,r)}function P2(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function Sie(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(Ui(e,t,n.children,r),n=Gn.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uW(e,r,t);else if(e.tag===19)uW(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(hn(Gn,n),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&TA(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),P2(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&TA(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}P2(t,!0,r,null,i);break;case"together":P2(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function bk(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ef(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Vh|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(We(153));if(t.child!==null){for(e=t.child,r=Xd(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Xd(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function HIe(e,t,r){switch(t.tag){case 3:_ie(t),xg();break;case 5:Yoe(t);break;case 1:Bs(t.type)&&EA(t);break;case 4:J8(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;hn(kA,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(hn(Gn,Gn.current&1),t.flags|=128,null):r&t.child.childLanes?Eie(e,t,r):(hn(Gn,Gn.current&1),e=Ef(e,t,r),e!==null?e.sibling:null);hn(Gn,Gn.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return Sie(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),hn(Gn,Gn.current),n)break;return null;case 22:case 23:return t.lanes=0,yie(e,t,r)}return Ef(e,t,r)}var wie,iB,kie,Aie;wie=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};iB=function(){};kie=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Sh(ac.current);var i=null;switch(r){case"input":o=TF(e,o),n=TF(e,n),i=[];break;case"select":o=Zn({},o,{value:void 0}),n=Zn({},n,{value:void 0}),i=[];break;case"textarea":o=NF(e,o),n=NF(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=bA)}OF(r,n);var s;r=null;for(u in o)if(!n.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(yb.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var l=n[u];if(a=o!=null?o[u]:void 0,n.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(r||(r={}),r[s]=l[s])}else r||(i||(i=[]),i.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(yb.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Sn("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Aie=function(e,t,r,n){r!==n&&(t.flags|=4)};function Am(e,t){if(!Fn)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Si(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function $Ie(e,t,r){var n=t.pendingProps;switch(K8(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Si(t),null;case 1:return Bs(t.type)&&_A(),Si(t),null;case 3:return n=t.stateNode,Ig(),xn(Fs),xn(Li),tL(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(YS(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ru!==null&&(hB(ru),ru=null))),iB(e,t),Si(t),null;case 5:eL(t);var o=Sh(Nb.current);if(r=t.type,e!==null&&t.stateNode!=null)kie(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(We(166));return Si(t),null}if(e=Sh(ac.current),YS(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Qu]=t,n[Ib]=i,e=(t.mode&1)!==0,r){case"dialog":Sn("cancel",n),Sn("close",n);break;case"iframe":case"object":case"embed":Sn("load",n);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[Qu]=t,e[Ib]=n,wie(e,t,!1,!1),t.stateNode=e;e:{switch(s=DF(r,n),r){case"dialog":Sn("cancel",e),Sn("close",e),o=n;break;case"iframe":case"object":case"embed":Sn("load",e),o=n;break;case"video":case"audio":for(o=0;oNg&&(t.flags|=128,n=!0,Am(i,!1),t.lanes=4194304)}else{if(!n)if(e=TA(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Am(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Fn)return Si(t),null}else 2*fo()-i.renderingStartTime>Ng&&r!==1073741824&&(t.flags|=128,n=!0,Am(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(r=i.last,r!==null?r.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=fo(),t.sibling=null,r=Gn.current,hn(Gn,n?r&1|2:r&1),t):(Si(t),null);case 22:case 23:return dL(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?oa&1073741824&&(Si(t),t.subtreeFlags&6&&(t.flags|=8192)):Si(t),null;case 24:return null;case 25:return null}throw Error(We(156,t.tag))}function PIe(e,t){switch(K8(t),t.tag){case 1:return Bs(t.type)&&_A(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ig(),xn(Fs),xn(Li),tL(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return eL(t),null;case 13:if(xn(Gn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(We(340));xg()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xn(Gn),null;case 4:return Ig(),null;case 10:return X8(t.type._context),null;case 22:case 23:return dL(),null;case 24:return null;default:return null}}var ZS=!1,Ci=!1,qIe=typeof WeakSet=="function"?WeakSet:Set,gt=null;function F0(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){to(e,t,n)}else r.current=null}function sB(e,t,r){try{r()}catch(n){to(e,t,n)}}var cW=!1;function WIe(e,t){if(qF=vA,e=Coe(),W8(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||o!==0&&f.nodeType!==3||(a=s+o),f!==i||n!==0&&f.nodeType!==3||(l=s+n),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++u===o&&(a=s),d===i&&++c===n&&(l=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(WF={focusedElem:e,selectionRange:r},vA=!1,gt=t;gt!==null;)if(t=gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,gt=e;else for(;gt!==null;){t=gt;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,y=g.memoizedState,E=t.stateNode,_=E.getSnapshotBeforeUpdate(t.elementType===t.type?v:Zl(t.type,v),y);E.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(We(163))}}catch(b){to(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,gt=e;break}gt=t.return}return g=cW,cW=!1,g}function Ly(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&sB(t,r,i)}o=o.next}while(o!==n)}}function mT(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function aB(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function xie(e){var t=e.alternate;t!==null&&(e.alternate=null,xie(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qu],delete t[Ib],delete t[VF],delete t[xIe],delete t[TIe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tie(e){return e.tag===5||e.tag===3||e.tag===4}function fW(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tie(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lB(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=bA));else if(n!==4&&(e=e.child,e!==null))for(lB(e,t,r),e=e.sibling;e!==null;)lB(e,t,r),e=e.sibling}function uB(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(uB(e,t,r),e=e.sibling;e!==null;)uB(e,t,r),e=e.sibling}var li=null,tu=!1;function ad(e,t,r){for(r=r.child;r!==null;)Iie(e,t,r),r=r.sibling}function Iie(e,t,r){if(sc&&typeof sc.onCommitFiberUnmount=="function")try{sc.onCommitFiberUnmount(uT,r)}catch{}switch(r.tag){case 5:Ci||F0(r,t);case 6:var n=li,o=tu;li=null,ad(e,t,r),li=n,tu=o,li!==null&&(tu?(e=li,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):li.removeChild(r.stateNode));break;case 18:li!==null&&(tu?(e=li,r=r.stateNode,e.nodeType===8?B2(e.parentNode,r):e.nodeType===1&&B2(e,r),wb(e)):B2(li,r.stateNode));break;case 4:n=li,o=tu,li=r.stateNode.containerInfo,tu=!0,ad(e,t,r),li=n,tu=o;break;case 0:case 11:case 14:case 15:if(!Ci&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&sB(r,t,s),o=o.next}while(o!==n)}ad(e,t,r);break;case 1:if(!Ci&&(F0(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){to(r,t,a)}ad(e,t,r);break;case 21:ad(e,t,r);break;case 22:r.mode&1?(Ci=(n=Ci)||r.memoizedState!==null,ad(e,t,r),Ci=n):ad(e,t,r);break;default:ad(e,t,r)}}function dW(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new qIe),t.forEach(function(n){var o=JIe.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Gl(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=s),n&=~i}if(n=o,n=fo()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*KIe(n/1960))-n,10e?16:e,Bd===null)var n=!1;else{if(e=Bd,Bd=null,OA=0,Tr&6)throw Error(We(331));var o=Tr;for(Tr|=4,gt=e.current;gt!==null;){var i=gt,s=i.child;if(gt.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lfo()-cL?Oh(e,0):uL|=r),Ms(e,t)}function Mie(e,t){t===0&&(e.mode&1?(t=qS,qS<<=1,!(qS&130023424)&&(qS=4194304)):t=1);var r=as();e=_f(e,t),e!==null&&(P_(e,t,r),Ms(e,r))}function ZIe(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Mie(e,r)}function JIe(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(We(314))}n!==null&&n.delete(t),Mie(e,r)}var Lie;Lie=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fs.current)Os=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Os=!1,HIe(e,t,r);Os=!!(e.flags&131072)}else Os=!1,Fn&&t.flags&1048576&&Hoe(t,wA,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;bk(e,t),e=t.pendingProps;var o=Ag(t,Li.current);rg(t,r),o=nL(null,t,n,e,o,r);var i=oL();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Bs(n)?(i=!0,EA(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Z8(t),o.updater=gT,t.stateNode=o,o._reactInternals=t,JF(t,n,e,r),t=rB(null,t,n,!0,i,r)):(t.tag=0,Fn&&i&&G8(t),Ui(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(bk(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=t2e(n),e=Zl(n,e),o){case 0:t=tB(null,t,n,e,r);break e;case 1:t=aW(null,t,n,e,r);break e;case 11:t=iW(null,t,n,e,r);break e;case 14:t=sW(null,t,n,Zl(n.type,e),r);break e}throw Error(We(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Zl(n,o),tB(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Zl(n,o),aW(e,t,n,o,r);case 3:e:{if(_ie(t),e===null)throw Error(We(387));n=t.pendingProps,i=t.memoizedState,o=i.element,Woe(e,t),xA(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Cg(Error(We(423)),t),t=lW(e,t,n,r,o);break e}else if(n!==o){o=Cg(Error(We(424)),t),t=lW(e,t,n,r,o);break e}else for(pa=Kd(t.stateNode.containerInfo.firstChild),ya=t,Fn=!0,ru=null,r=Uoe(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(xg(),n===o){t=Ef(e,t,r);break e}Ui(e,t,n,r)}t=t.child}return t;case 5:return Yoe(t),e===null&&XF(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,GF(n,o)?s=null:i!==null&&GF(n,i)&&(t.flags|=32),bie(e,t),Ui(e,t,s,r),t.child;case 6:return e===null&&XF(t),null;case 13:return Eie(e,t,r);case 4:return J8(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Tg(t,null,n,r):Ui(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Zl(n,o),iW(e,t,n,o,r);case 7:return Ui(e,t,t.pendingProps,r),t.child;case 8:return Ui(e,t,t.pendingProps.children,r),t.child;case 12:return Ui(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,hn(kA,n._currentValue),n._currentValue=s,i!==null)if(fu(i.value,s)){if(i.children===o.children&&!Fs.current){t=Ef(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=pf(-1,r&-r),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),QF(i.return,r,t),a.lanes|=r;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(We(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),QF(s,r,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ui(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,rg(t,r),o=_l(o),n=n(o),t.flags|=1,Ui(e,t,n,r),t.child;case 14:return n=t.type,o=Zl(n,t.pendingProps),o=Zl(n.type,o),sW(e,t,n,o,r);case 15:return mie(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Zl(n,o),bk(e,t),t.tag=1,Bs(n)?(e=!0,EA(t)):e=!1,rg(t,r),Koe(t,n,o),JF(t,n,o,r),rB(null,t,n,!0,e,r);case 19:return Sie(e,t,r);case 22:return yie(e,t,r)}throw Error(We(156,t.tag))};function jie(e,t){return coe(e,t)}function e2e(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ul(e,t,r,n){return new e2e(e,t,r,n)}function pL(e){return e=e.prototype,!(!e||!e.isReactComponent)}function t2e(e){if(typeof e=="function")return pL(e)?1:0;if(e!=null){if(e=e.$$typeof,e===D8)return 11;if(e===F8)return 14}return 2}function Xd(e,t){var r=e.alternate;return r===null?(r=ul(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Sk(e,t,r,n,o,i){var s=2;if(n=e,typeof e=="function")pL(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case A0:return Dh(r.children,o,i,t);case O8:s=8,o|=8;break;case wF:return e=ul(12,r,t,o|2),e.elementType=wF,e.lanes=i,e;case kF:return e=ul(13,r,t,o),e.elementType=kF,e.lanes=i,e;case AF:return e=ul(19,r,t,o),e.elementType=AF,e.lanes=i,e;case Vne:return bT(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gne:s=10;break e;case Kne:s=9;break e;case D8:s=11;break e;case F8:s=14;break e;case Sd:s=16,n=null;break e}throw Error(We(130,e==null?e:typeof e,""))}return t=ul(s,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Dh(e,t,r,n){return e=ul(7,e,n,t),e.lanes=r,e}function bT(e,t,r,n){return e=ul(22,e,n,t),e.elementType=Vne,e.lanes=r,e.stateNode={isHidden:!1},e}function q2(e,t,r){return e=ul(6,e,null,t),e.lanes=r,e}function W2(e,t,r){return t=ul(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function r2e(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=k2(0),this.expirationTimes=k2(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=k2(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function gL(e,t,r,n,o,i,s,a,l){return e=new r2e(e,t,r,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ul(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Z8(i),e}function n2e(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Pie)}catch(e){console.error(e)}}Pie(),Hne.exports=Oa;var pi=Hne.exports;const oy=zf(pi);var l2e=wc(),u2e=gs(function(e,t){return H_(_e(_e({},e),{rtl:t}))}),c2e=function(e){var t=e.theme,r=e.dir,n=rs(t)?"rtl":"ltr",o=rs()?"rtl":"ltr",i=r||n;return{rootDir:i!==n||i!==o?i:r,needsTheme:i!==n}},qie=A.forwardRef(function(e,t){var r=e.className,n=e.theme,o=e.applyTheme,i=e.applyThemeToBody,s=e.styles,a=l2e(s,{theme:n,applyTheme:o,className:r}),l=A.useRef(null);return d2e(i,a,l),A.createElement(A.Fragment,null,f2e(e,a,l,t))});qie.displayName="FabricBase";function f2e(e,t,r,n){var o=t.root,i=e.as,s=i===void 0?"div":i,a=e.dir,l=e.theme,u=Bi(e,lv,["dir"]),c=c2e(e),f=c.rootDir,d=c.needsTheme,h=A.createElement(Ene,{providerRef:r},A.createElement(s,_e({dir:f},u,{className:o,ref:dc(r,n)})));return d&&(h=A.createElement(kxe,{settings:{theme:u2e(l,a==="rtl")}},h)),h}function d2e(e,t,r){var n=t.bodyThemed;return A.useEffect(function(){if(e){var o=cs(r.current);if(o)return o.body.classList.add(n),function(){o.body.classList.remove(n)}}},[n,e,r]),r}var G2={fontFamily:"inherit"},h2e={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},p2e=function(e){var t=e.applyTheme,r=e.className,n=e.preventBlanketFontInheritance,o=e.theme,i=Ac(h2e,o);return{root:[i.root,o.fonts.medium,{color:o.palette.neutralPrimary},!n&&{"& button":G2,"& input":G2,"& textarea":G2},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},r],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}},g2e=kc(qie,p2e,void 0,{scope:"Fabric"}),Hy={},bL={},Wie="fluent-default-layer-host",v2e="#".concat(Wie);function m2e(e,t){Hy[e]||(Hy[e]=[]),Hy[e].push(t);var r=bL[e];if(r)for(var n=0,o=r;n=0&&(r.splice(n,1),r.length===0&&delete Hy[e])}var o=bL[e];if(o)for(var i=0,s=o;i0&&t.current.naturalHeight>0||t.current.complete&&O2e.test(i):!1;f&&l(Zi.loaded)}}),A.useEffect(function(){r==null||r(a)},[a]);var u=A.useCallback(function(f){n==null||n(f),i&&l(Zi.loaded)},[i,n]),c=A.useCallback(function(f){o==null||o(f),l(Zi.error)},[o]);return[a,u,c]}var Uie=A.forwardRef(function(e,t){var r=A.useRef(),n=A.useRef(),o=F2e(e,n),i=o[0],s=o[1],a=o[2],l=Bi(e,Fxe,["width","height"]),u=e.src,c=e.alt,f=e.width,d=e.height,h=e.shouldFadeIn,g=h===void 0?!0:h,v=e.shouldStartVisible,y=e.className,E=e.imageFit,_=e.role,S=e.maximizeFrame,b=e.styles,k=e.theme,T=e.loading,x=B2e(e,i,n,r),I=R2e(b,{theme:k,className:y,width:f,height:d,maximizeFrame:S,shouldFadeIn:g,shouldStartVisible:v,isLoaded:i===Zi.loaded||i===Zi.notLoaded&&e.shouldStartVisible,isLandscape:x===Bb.landscape,isCenter:E===Is.center,isCenterContain:E===Is.centerContain,isCenterCover:E===Is.centerCover,isContain:E===Is.contain,isCover:E===Is.cover,isNone:E===Is.none,isError:i===Zi.error,isNotImageFit:E===void 0});return A.createElement("div",{className:I.root,style:{width:f,height:d},ref:r},A.createElement("img",_e({},l,{onLoad:s,onError:a,key:D2e+e.src||"",className:I.image,ref:dc(n,t),src:u,alt:c,role:_,loading:T})))});Uie.displayName="ImageBase";function B2e(e,t,r,n){var o=A.useRef(t),i=A.useRef();return(i===void 0||o.current===Zi.notLoaded&&t===Zi.loaded)&&(i.current=M2e(e,t,r,n)),o.current=t,i.current}function M2e(e,t,r,n){var o=e.imageFit,i=e.width,s=e.height;if(e.coverStyle!==void 0)return e.coverStyle;if(t===Zi.loaded&&(o===Is.cover||o===Is.contain||o===Is.centerContain||o===Is.centerCover)&&r.current&&n.current){var a=void 0;typeof i=="number"&&typeof s=="number"&&o!==Is.centerContain&&o!==Is.centerCover?a=i/s:a=n.current.clientWidth/n.current.clientHeight;var l=r.current.naturalWidth/r.current.naturalHeight;if(l>a)return Bb.landscape}return Bb.portrait}var L2e={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},j2e=function(e){var t=e.className,r=e.width,n=e.height,o=e.maximizeFrame,i=e.isLoaded,s=e.shouldFadeIn,a=e.shouldStartVisible,l=e.isLandscape,u=e.isCenter,c=e.isContain,f=e.isCover,d=e.isCenterContain,h=e.isCenterCover,g=e.isNone,v=e.isError,y=e.isNotImageFit,E=e.theme,_=Ac(L2e,E),S={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},b=ho(),k=b!==void 0&&b.navigator.msMaxTouchPoints===void 0,T=c&&l||f&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[_.root,E.fonts.medium,{overflow:"hidden"},o&&[_.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&s&&!a&&Jm.fadeIn400,(u||c||f||d||h)&&{position:"relative"},t],image:[_.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],u&&[_.imageCenter,S],c&&[_.imageContain,k&&{width:"100%",height:"100%",objectFit:"contain"},!k&&T,!k&&S],f&&[_.imageCover,k&&{width:"100%",height:"100%",objectFit:"cover"},!k&&T,!k&&S],d&&[_.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},S],h&&[_.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},S],g&&[_.imageNone,{width:"auto",height:"auto"}],y&&[!!r&&!n&&{height:"auto",width:"100%"},!r&&!!n&&{height:"100%",width:"auto"},!!r&&!!n&&{height:"100%",width:"100%"}],l&&_.imageLandscape,!l&&_.imagePortrait,!i&&"is-notLoaded",s&&"is-fadeIn",v&&"is-error"]}},Yie=kc(Uie,j2e,void 0,{scope:"Image"},!0);Yie.displayName="Image";var $y=mi({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),z2e="ms-Icon",H2e=function(e){var t=e.className,r=e.iconClassName,n=e.isPlaceholder,o=e.isImage,i=e.styles;return{root:[n&&$y.placeholder,$y.root,o&&$y.image,r,t,i&&i.root,i&&i.imageContainer]}},Xie=gs(function(e){var t=Jxe(e)||{subset:{},code:void 0},r=t.code,n=t.subset;return r?{children:r,iconClassName:n.className,fontFamily:n.fontFace&&n.fontFace.fontFamily,mergeImageProps:n.mergeImageProps}:null},void 0,!0),$2e=function(e){var t=e.iconName,r=e.className,n=e.style,o=n===void 0?{}:n,i=Xie(t)||{},s=i.iconClassName,a=i.children,l=i.fontFamily,u=i.mergeImageProps,c=Bi(e,vo),f=e["aria-label"]||e.title,d=e["aria-label"]||e["aria-labelledby"]||e.title?{role:u?void 0:"img"}:{"aria-hidden":!0},h=a;return u&&typeof a=="object"&&typeof a.props=="object"&&f&&(h=A.cloneElement(a,{alt:f})),A.createElement("i",_e({"data-icon-name":t},d,c,u?{title:void 0,"aria-label":void 0}:{},{className:a1(z2e,$y.root,s,!t&&$y.placeholder,r),style:_e({fontFamily:l},o)}),h)};gs(function(e,t,r){return $2e({iconName:e,className:t,"aria-label":r})});var P2e=wc({cacheSize:100}),q2e=function(e){Sc(t,e);function t(r){var n=e.call(this,r)||this;return n._onImageLoadingStateChange=function(o){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(o),o===Zi.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return t.prototype.render=function(){var r=this.props,n=r.children,o=r.className,i=r.styles,s=r.iconName,a=r.imageErrorAs,l=r.theme,u=typeof s=="string"&&s.length===0,c=!!this.props.imageProps||this.props.iconType===BA.image||this.props.iconType===BA.Image,f=Xie(s)||{},d=f.iconClassName,h=f.children,g=f.mergeImageProps,v=P2e(i,{theme:l,className:o,iconClassName:d,isImage:c,isPlaceholder:u}),y=c?"span":"i",E=Bi(this.props,vo,["aria-label"]),_=this.state.imageLoadError,S=_e(_e({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),b=_&&a||Yie,k=this.props["aria-label"]||this.props.ariaLabel,T=S.alt||k||this.props.title,x=!!(T||this.props["aria-labelledby"]||S["aria-label"]||S["aria-labelledby"]),I=x?{role:c||g?void 0:"img","aria-label":c||g?void 0:T}:{"aria-hidden":!0},C=h;return g&&h&&typeof h=="object"&&T&&(C=A.cloneElement(h,{alt:T})),A.createElement(y,_e({"data-icon-name":s},I,E,g?{title:void 0,"aria-label":void 0}:{},{className:v.root}),c?A.createElement(b,_e({},S)):n||C)},t}(A.Component),Rg=kc(q2e,H2e,void 0,{scope:"Icon"},!0);Rg.displayName="Icon";var pB={none:0,all:1,inputOnly:2},Vi;(function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"})(Vi||(Vi={}));var rw="data-is-focusable",W2e="data-disable-click-on-enter",K2="data-focuszone-id",Bu="tabindex",V2="data-no-vertical-wrap",U2="data-no-horizontal-wrap",Y2=999999999,Tm=-999999999,X2,G2e="ms-FocusZone";function K2e(e,t){var r;typeof MouseEvent=="function"?r=new MouseEvent("click",{ctrlKey:t==null?void 0:t.ctrlKey,metaKey:t==null?void 0:t.metaKey,shiftKey:t==null?void 0:t.shiftKey,altKey:t==null?void 0:t.altKey,bubbles:t==null?void 0:t.bubbles,cancelable:t==null?void 0:t.cancelable}):(r=document.createEvent("MouseEvents"),r.initMouseEvent("click",t?t.bubbles:!1,t?t.cancelable:!1,window,0,0,0,0,0,t?t.ctrlKey:!1,t?t.altKey:!1,t?t.shiftKey:!1,t?t.metaKey:!1,0,null)),e.dispatchEvent(r)}function V2e(){return X2||(X2=br({selectors:{":focus":{outline:"none"}}},G2e)),X2}var Im={},nw=new Set,U2e=["text","number","password","email","tel","url","search","textarea"],Vc=!1,Y2e=function(e){Sc(t,e);function t(r){var n=this,o,i,s,a;n=e.call(this,r)||this,n._root=A.createRef(),n._mergedRef=Qxe(),n._onFocus=function(u){if(!n._portalContainsElement(u.target)){var c=n.props,f=c.onActiveElementChanged,d=c.doNotAllowFocusEventToPropagate,h=c.stopFocusPropagation,g=c.onFocusNotification,v=c.onFocus,y=c.shouldFocusInnerElementWhenReceivedFocus,E=c.defaultTabbableElement,_=n._isImmediateDescendantOfZone(u.target),S;if(_)S=u.target;else for(var b=u.target;b&&b!==n._root.current;){if(qu(b)&&n._isImmediateDescendantOfZone(b)){S=b;break}b=$u(b,Vc)}if(y&&u.target===n._root.current){var k=E&&typeof E=="function"&&n._root.current&&E(n._root.current);k&&qu(k)?(S=k,k.focus()):(n.focus(!0),n._activeElement&&(S=null))}var T=!n._activeElement;S&&S!==n._activeElement&&((_||T)&&n._setFocusAlignment(S,!0,!0),n._activeElement=S,T&&n._updateTabIndexes()),f&&f(n._activeElement,u),(h||d)&&u.stopPropagation(),v?v(u):g&&g()}},n._onBlur=function(){n._setParkedFocus(!1)},n._onMouseDown=function(u){if(!n._portalContainsElement(u.target)){var c=n.props.disabled;if(!c){for(var f=u.target,d=[];f&&f!==n._root.current;)d.push(f),f=$u(f,Vc);for(;d.length&&(f=d.pop(),f&&qu(f)&&n._setActiveElement(f,!0),!Jc(f)););}}},n._onKeyDown=function(u,c){if(!n._portalContainsElement(u.target)){var f=n.props,d=f.direction,h=f.disabled,g=f.isInnerZoneKeystroke,v=f.pagingSupportDisabled,y=f.shouldEnterInnerZone;if(!h&&(n.props.onKeyDown&&n.props.onKeyDown(u),!u.isDefaultPrevented()&&!(n._getDocument().activeElement===n._root.current&&n._isInnerZone))){if((y&&y(u)||g&&g(u))&&n._isImmediateDescendantOfZone(u.target)){var E=n._getFirstInnerZone();if(E){if(!E.focus(!0))return}else if(A8(u.target)){if(!n.focusElement(Xi(u.target,u.target.firstChild,!0)))return}else return}else{if(u.altKey)return;switch(u.which){case Kt.space:if(n._shouldRaiseClicksOnSpace&&n._tryInvokeClickForFocusable(u.target,u))break;return;case Kt.left:if(d!==Vi.vertical&&(n._preventDefaultWhenHandled(u),n._moveFocusLeft(c)))break;return;case Kt.right:if(d!==Vi.vertical&&(n._preventDefaultWhenHandled(u),n._moveFocusRight(c)))break;return;case Kt.up:if(d!==Vi.horizontal&&(n._preventDefaultWhenHandled(u),n._moveFocusUp()))break;return;case Kt.down:if(d!==Vi.horizontal&&(n._preventDefaultWhenHandled(u),n._moveFocusDown()))break;return;case Kt.pageDown:if(!v&&n._moveFocusPaging(!0))break;return;case Kt.pageUp:if(!v&&n._moveFocusPaging(!1))break;return;case Kt.tab:if(n.props.allowTabKey||n.props.handleTabKey===pB.all||n.props.handleTabKey===pB.inputOnly&&n._isElementInput(u.target)){var _=!1;if(n._processingTabKey=!0,d===Vi.vertical||!n._shouldWrapFocus(n._activeElement,U2))_=u.shiftKey?n._moveFocusUp():n._moveFocusDown();else{var S=rs(c)?!u.shiftKey:u.shiftKey;_=S?n._moveFocusLeft(c):n._moveFocusRight(c)}if(n._processingTabKey=!1,_)break;n.props.shouldResetActiveElementWhenTabFromZone&&(n._activeElement=null)}return;case Kt.home:if(n._isContentEditableElement(u.target)||n._isElementInput(u.target)&&!n._shouldInputLoseFocus(u.target,!1))return!1;var b=n._root.current&&n._root.current.firstChild;if(n._root.current&&b&&n.focusElement(Xi(n._root.current,b,!0)))break;return;case Kt.end:if(n._isContentEditableElement(u.target)||n._isElementInput(u.target)&&!n._shouldInputLoseFocus(u.target,!0))return!1;var k=n._root.current&&n._root.current.lastChild;if(n._root.current&&n.focusElement(xs(n._root.current,k,!0,!0,!0)))break;return;case Kt.enter:if(n._shouldRaiseClicksOnEnter&&n._tryInvokeClickForFocusable(u.target,u))break;return;default:return}}u.preventDefault(),u.stopPropagation()}}},n._getHorizontalDistanceFromCenter=function(u,c,f){var d=n._focusAlignment.left||n._focusAlignment.x||0,h=Math.floor(f.top),g=Math.floor(c.bottom),v=Math.floor(f.bottom),y=Math.floor(c.top),E=u&&h>g,_=!u&&v=f.left&&d<=f.left+f.width?0:Math.abs(f.left+f.width/2-d):n._shouldWrapFocus(n._activeElement,V2)?Y2:Tm},rT(n),n._id=qh("FocusZone"),n._focusAlignment={left:0,top:0},n._processingTabKey=!1;var l=(i=(o=r.shouldRaiseClicks)!==null&&o!==void 0?o:t.defaultProps.shouldRaiseClicks)!==null&&i!==void 0?i:!0;return n._shouldRaiseClicksOnEnter=(s=r.shouldRaiseClicksOnEnter)!==null&&s!==void 0?s:l,n._shouldRaiseClicksOnSpace=(a=r.shouldRaiseClicksOnSpace)!==null&&a!==void 0?a:l,n}return t.getOuterZones=function(){return nw.size},t._onKeyDownCapture=function(r){r.which===Kt.tab&&nw.forEach(function(n){return n._updateTabIndexes()})},t.prototype.componentDidMount=function(){var r=this._root.current;if(Im[this._id]=this,r){for(var n=$u(r,Vc);n&&n!==this._getDocument().body&&n.nodeType===1;){if(Jc(n)){this._isInnerZone=!0;break}n=$u(n,Vc)}this._isInnerZone||(nw.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="string"?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var r=this._root.current,n=this._getDocument();if((this._activeElement&&!Rs(this._root.current,this._activeElement,Vc)||this._defaultFocusElement&&!Rs(this._root.current,this._defaultFocusElement,Vc))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&n&&this._lastIndexPath&&(n.activeElement===n.body||n.activeElement===null||n.activeElement===r)){var o=axe(r,this._lastIndexPath);o?(this._setActiveElement(o,!0),o.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete Im[this._id],this._isInnerZone||(nw.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var r=this,n=this.props,o=n.as,i=n.elementType,s=n.rootProps,a=n.ariaDescribedBy,l=n.ariaLabelledBy,u=n.className,c=Bi(this.props,vo),f=o||i||"div";this._evaluateFocusBeforeRender();var d=o9e();return A.createElement(f,_e({"aria-labelledby":l,"aria-describedby":a},c,s,{className:a1(V2e(),u),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(h){return r._onKeyDown(h,d)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(r,n){if(r===void 0&&(r=!1),n===void 0&&(n=!1),this._root.current)if(!r&&this._root.current.getAttribute(rw)==="true"&&this._isInnerZone){var o=this._getOwnerZone(this._root.current);if(o!==this._root.current){var i=Im[o.getAttribute(K2)];return!!i&&i.focusElement(this._root.current)}return!1}else{if(!r&&this._activeElement&&Rs(this._root.current,this._activeElement)&&qu(this._activeElement)&&(!n||dne(this._activeElement)))return this._activeElement.focus(),!0;var s=this._root.current.firstChild;return this.focusElement(Xi(this._root.current,s,!0,void 0,void 0,void 0,void 0,void 0,n))}return!1},t.prototype.focusLast=function(){if(this._root.current){var r=this._root.current&&this._root.current.lastChild;return this.focusElement(xs(this._root.current,r,!0,!0,!0))}return!1},t.prototype.focusElement=function(r,n){var o=this.props,i=o.onBeforeFocus,s=o.shouldReceiveFocus;return s&&!s(r)||i&&!i(r)?!1:r?(this._setActiveElement(r,n),this._activeElement&&this._activeElement.focus(),!0):!1},t.prototype.setFocusAlignment=function(r){this._focusAlignment=r},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var r=this._root.current,n=this._getDocument();if(n){var o=n.activeElement;if(o!==r){var i=Rs(r,o,!1);this._lastIndexPath=i?lxe(r,o):void 0}}},t.prototype._setParkedFocus=function(r){var n=this._root.current;n&&this._isParked!==r&&(this._isParked=r,r?(this.props.allowFocusRoot||(this._parkedTabIndex=n.getAttribute("tabindex"),n.setAttribute("tabindex","-1")),n.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(n.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):n.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(r,n){var o=this._activeElement;this._activeElement=r,o&&(Jc(o)&&this._updateTabIndexes(o),o.tabIndex=-1),this._activeElement&&((!this._focusAlignment||n)&&this._setFocusAlignment(r,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(r){this.props.preventDefaultWhenHandled&&r.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(r,n){var o=r;if(o===this._root.current)return!1;do{if(o.tagName==="BUTTON"||o.tagName==="A"||o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(o)&&o.getAttribute(rw)==="true"&&o.getAttribute(W2e)!=="true")return K2e(o,n),!0;o=$u(o,Vc)}while(o!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(r){if(r=r||this._activeElement||this._root.current,!r)return null;if(Jc(r))return Im[r.getAttribute(K2)];for(var n=r.firstElementChild;n;){if(Jc(n))return Im[n.getAttribute(K2)];var o=this._getFirstInnerZone(n);if(o)return o;n=n.nextElementSibling}return null},t.prototype._moveFocus=function(r,n,o,i){i===void 0&&(i=!0);var s=this._activeElement,a=-1,l=void 0,u=!1,c=this.props.direction===Vi.bidirectional;if(!s||!this._root.current||this._isElementInput(s)&&!this._shouldInputLoseFocus(s,r))return!1;var f=c?s.getBoundingClientRect():null;do if(s=r?Xi(this._root.current,s):xs(this._root.current,s),c){if(s){var d=s.getBoundingClientRect(),h=n(f,d);if(h===-1&&a===-1){l=s;break}if(h>-1&&(a===-1||h=0&&h<0)break}}else{l=s;break}while(s);if(l&&l!==this._activeElement)u=!0,this.focusElement(l);else if(this.props.isCircularNavigation&&i)return r?this.focusElement(Xi(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(xs(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return u},t.prototype._moveFocusDown=function(){var r=this,n=-1,o=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(i,s){var a=-1,l=Math.floor(s.top),u=Math.floor(i.bottom);return l=u||l===n)&&(n=l,o>=s.left&&o<=s.left+s.width?a=0:a=Math.abs(s.left+s.width/2-o)),a)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusUp=function(){var r=this,n=-1,o=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(i,s){var a=-1,l=Math.floor(s.bottom),u=Math.floor(s.top),c=Math.floor(i.top);return l>c?r._shouldWrapFocus(r._activeElement,V2)?Y2:Tm:((n===-1&&l<=c||u===n)&&(n=u,o>=s.left&&o<=s.left+s.width?a=0:a=Math.abs(s.left+s.width/2-o)),a)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusLeft=function(r){var n=this,o=this._shouldWrapFocus(this._activeElement,U2);return this._moveFocus(rs(r),function(i,s){var a=-1,l;return rs(r)?l=parseFloat(s.top.toFixed(3))parseFloat(i.top.toFixed(3)),l&&s.right<=i.right&&n.props.direction!==Vi.vertical?a=i.right-s.right:o||(a=Tm),a},void 0,o)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusRight=function(r){var n=this,o=this._shouldWrapFocus(this._activeElement,U2);return this._moveFocus(!rs(r),function(i,s){var a=-1,l;return rs(r)?l=parseFloat(s.bottom.toFixed(3))>parseFloat(i.top.toFixed(3)):l=parseFloat(s.top.toFixed(3))=i.left&&n.props.direction!==Vi.vertical?a=s.left-i.left:o||(a=Tm),a},void 0,o)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusPaging=function(r,n){n===void 0&&(n=!0);var o=this._activeElement;if(!o||!this._root.current||this._isElementInput(o)&&!this._shouldInputLoseFocus(o,r))return!1;var i=ane(o);if(!i)return!1;var s=-1,a=void 0,l=-1,u=-1,c=i.clientHeight,f=o.getBoundingClientRect();do if(o=r?Xi(this._root.current,o):xs(this._root.current,o),o){var d=o.getBoundingClientRect(),h=Math.floor(d.top),g=Math.floor(f.bottom),v=Math.floor(d.bottom),y=Math.floor(f.top),E=this._getHorizontalDistanceFromCenter(r,f,d),_=r&&h>g+c,S=!r&&v-1&&(r&&h>l?(l=h,s=E,a=o):!r&&v-1){var o=r.selectionStart,i=r.selectionEnd,s=o!==i,a=r.value,l=r.readOnly;if(s||o>0&&!n&&!l||o!==a.length&&n&&!l||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(r)))return!1}return!0},t.prototype._shouldWrapFocus=function(r,n){return this.props.checkForNoWrap?hne(r,n):!0},t.prototype._portalContainsElement=function(r){return r&&!!this._root.current&&YAe(r,this._root.current)},t.prototype._getDocument=function(){return cs(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:Vi.bidirectional,shouldRaiseClicks:!0},t}(A.Component),Ti;(function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"})(Ti||(Ti={}));function Og(e){return e.canCheck?!!(e.isChecked||e.checked):typeof e.isChecked=="boolean"?e.isChecked:typeof e.checked=="boolean"?e.checked:null}function Sf(e){return!!(e.subMenuProps||e.items)}function tc(e){return!!(e.isDisabled||e.disabled)}function Qie(e){var t=Og(e),r=t!==null;return r?"menuitemcheckbox":"menuitem"}var _W=function(e){var t=e.item,r=e.classNames,n=t.iconProps;return A.createElement(Rg,_e({},n,{className:r.icon}))},X2e=function(e){var t=e.item,r=e.hasIcons;return r?t.onRenderIcon?t.onRenderIcon(e,_W):_W(e):null},Q2e=function(e){var t=e.onCheckmarkClick,r=e.item,n=e.classNames,o=Og(r);if(t){var i=function(s){return t(r,s)};return A.createElement(Rg,{iconName:r.canCheck!==!1&&o?"CheckMark":"",className:n.checkmarkIcon,onClick:i})}return null},Z2e=function(e){var t=e.item,r=e.classNames;return t.text||t.name?A.createElement("span",{className:r.label},t.text||t.name):null},J2e=function(e){var t=e.item,r=e.classNames;return t.secondaryText?A.createElement("span",{className:r.secondaryText},t.secondaryText):null},eCe=function(e){var t=e.item,r=e.classNames,n=e.theme;return Sf(t)?A.createElement(Rg,_e({iconName:rs(n)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:r.subMenuIcon})):null},tCe=function(e){Sc(t,e);function t(r){var n=e.call(this,r)||this;return n.openSubMenu=function(){var o=n.props,i=o.item,s=o.openSubMenu,a=o.getSubmenuTarget;if(a){var l=a();Sf(i)&&s&&l&&s(i,l)}},n.dismissSubMenu=function(){var o=n.props,i=o.item,s=o.dismissSubMenu;Sf(i)&&s&&s()},n.dismissMenu=function(o){var i=n.props.dismissMenu;i&&i(void 0,o)},rT(n),n}return t.prototype.render=function(){var r=this.props,n=r.item,o=r.classNames,i=n.onRenderContent||this._renderLayout;return A.createElement("div",{className:n.split?o.linkContentMenu:o.linkContent},i(this.props,{renderCheckMarkIcon:Q2e,renderItemIcon:X2e,renderItemName:Z2e,renderSecondaryText:J2e,renderSubMenuIcon:eCe}))},t.prototype._renderLayout=function(r,n){return A.createElement(A.Fragment,null,n.renderCheckMarkIcon(r),n.renderItemIcon(r),n.renderItemName(r),n.renderSecondaryText(r),n.renderSubMenuIcon(r))},t}(A.Component),rCe=gs(function(e){return mi({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),kd=36,EW=xne(0,Ane),nCe=gs(function(e){var t,r,n,o,i,s=e.semanticColors,a=e.fonts,l=e.palette,u=s.menuItemBackgroundHovered,c=s.menuItemTextHovered,f=s.menuItemBackgroundPressed,d=s.bodyDivider,h={item:[a.medium,{color:s.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:d,position:"relative"},root:[sq(e),a.medium,{color:s.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:kd,lineHeight:kd,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:s.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[Q0]={color:"GrayText",opacity:1},t)},rootHovered:{backgroundColor:u,color:c,selectors:{".ms-ContextualMenu-icon":{color:l.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootFocused:{backgroundColor:l.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:l.neutralPrimary}}},rootPressed:{backgroundColor:f,selectors:{".ms-ContextualMenu-icon":{color:l.themeDark},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootExpanded:{backgroundColor:f,color:s.bodyTextChecked,selectors:(r={".ms-ContextualMenu-submenuIcon":(n={},n[Q0]={color:"inherit"},n)},r[Q0]=_e({},VTe()),r)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:kd,fontSize:Ed.medium,width:Ed.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(o={},o[EW]={fontSize:Ed.large,width:Ed.large},o)},iconColor:{color:s.menuIcon},iconDisabled:{color:s.disabledBodyText},checkmarkIcon:{color:s.bodySubtext},subMenuIcon:{height:kd,lineHeight:kd,color:l.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Ed.small,selectors:(i={":hover":{color:l.neutralPrimary},":active":{color:l.neutralPrimary}},i[EW]={fontSize:Ed.medium},i)},splitButtonFlexContainer:[sq(e),{display:"flex",height:kd,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return j_(h)}),SW="28px",oCe=xne(0,Ane),iCe=gs(function(e){var t;return mi(rCe(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[oCe]={right:32},t)},divider:{height:16,width:1}})}),sCe={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},aCe=gs(function(e,t,r,n,o,i,s,a,l,u,c,f){var d,h,g,v,y=nCe(e),E=Ac(sCe,e);return mi({item:[E.item,y.item,s],divider:[E.divider,y.divider,a],root:[E.root,y.root,n&&[E.isChecked,y.rootChecked],o&&y.anchorLink,r&&[E.isExpanded,y.rootExpanded],t&&[E.isDisabled,y.rootDisabled],!t&&!r&&[{selectors:(d={":hover":y.rootHovered,":active":y.rootPressed},d[".".concat(xi," &:focus, .").concat(xi," &:focus:hover")]=y.rootFocused,d[".".concat(xi," &:hover")]={background:"inherit;"},d)}],f],splitPrimary:[y.root,{width:"calc(100% - ".concat(SW,")")},n&&["is-checked",y.rootChecked],(t||c)&&["is-disabled",y.rootDisabled],!(t||c)&&!n&&[{selectors:(h={":hover":y.rootHovered},h[":hover ~ .".concat(E.splitMenu)]=y.rootHovered,h[":active"]=y.rootPressed,h[".".concat(xi," &:focus, .").concat(xi," &:focus:hover")]=y.rootFocused,h[".".concat(xi," &:hover")]={background:"inherit;"},h)}]],splitMenu:[E.splitMenu,y.root,{flexBasis:"0",padding:"0 8px",minWidth:SW},r&&["is-expanded",y.rootExpanded],t&&["is-disabled",y.rootDisabled],!t&&!r&&[{selectors:(g={":hover":y.rootHovered,":active":y.rootPressed},g[".".concat(xi," &:focus, .").concat(xi," &:focus:hover")]=y.rootFocused,g[".".concat(xi," &:hover")]={background:"inherit;"},g)}]],anchorLink:y.anchorLink,linkContent:[E.linkContent,y.linkContent],linkContentMenu:[E.linkContentMenu,y.linkContent,{justifyContent:"center"}],icon:[E.icon,i&&y.iconColor,y.icon,l,t&&[E.isDisabled,y.iconDisabled]],iconColor:y.iconColor,checkmarkIcon:[E.checkmarkIcon,i&&y.checkmarkIcon,y.icon,l],subMenuIcon:[E.subMenuIcon,y.subMenuIcon,u,r&&{color:e.palette.neutralPrimary},t&&[y.iconDisabled]],label:[E.label,y.label],secondaryText:[E.secondaryText,y.secondaryText],splitContainer:[y.splitButtonFlexContainer,!t&&!n&&[{selectors:(v={},v[".".concat(xi," &:focus, .").concat(xi," &:focus:hover")]=y.rootFocused,v)}]],screenReaderText:[E.screenReaderText,y.screenReaderText,YTe,{visibility:"hidden"}]})}),Zie=function(e){var t=e.theme,r=e.disabled,n=e.expanded,o=e.checked,i=e.isAnchorLink,s=e.knownIcon,a=e.itemClassName,l=e.dividerClassName,u=e.iconClassName,c=e.subMenuClassName,f=e.primaryDisabled,d=e.className;return aCe(t,r,n,o,i,s,a,l,u,c,f,d)},Mb=kc(tCe,Zie,void 0,{scope:"ContextualMenuItem"}),_L=function(e){Sc(t,e);function t(r){var n=e.call(this,r)||this;return n._onItemMouseEnter=function(o){var i=n.props,s=i.item,a=i.onItemMouseEnter;a&&a(s,o,o.currentTarget)},n._onItemClick=function(o){var i=n.props,s=i.item,a=i.onItemClickBase;a&&a(s,o,o.currentTarget)},n._onItemMouseLeave=function(o){var i=n.props,s=i.item,a=i.onItemMouseLeave;a&&a(s,o)},n._onItemKeyDown=function(o){var i=n.props,s=i.item,a=i.onItemKeyDown;a&&a(s,o)},n._onItemMouseMove=function(o){var i=n.props,s=i.item,a=i.onItemMouseMove;a&&a(s,o,o.currentTarget)},n._getSubmenuTarget=function(){},rT(n),n}return t.prototype.shouldComponentUpdate=function(r){return!S8(r,this.props)},t}(A.Component),lCe="ktp",wW="-",uCe="data-ktp-target",cCe="data-ktp-execute-target",fCe="ktp-layer-id",ju;(function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"})(ju||(ju={}));var dCe=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(t){this.delayUpdatingKeytipChange=t},e.prototype.register=function(t,r){r===void 0&&(r=!1);var n=t;r||(n=this.addParentOverflow(t),this.sequenceMapping[n.keySequences.toString()]=n);var o=this._getUniqueKtp(n);if(r?this.persistedKeytips[o.uniqueID]=o:this.keytips[o.uniqueID]=o,this.inKeytipMode||!this.delayUpdatingKeytipChange){var i=r?ju.PERSISTED_KEYTIP_ADDED:ju.KEYTIP_ADDED;_d.raise(this,i,{keytip:n,uniqueID:o.uniqueID})}return o.uniqueID},e.prototype.update=function(t,r){var n=this.addParentOverflow(t),o=this._getUniqueKtp(n,r),i=this.keytips[r];i&&(o.keytip.visible=i.keytip.visible,this.keytips[r]=o,delete this.sequenceMapping[i.keytip.keySequences.toString()],this.sequenceMapping[o.keytip.keySequences.toString()]=o.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&_d.raise(this,ju.KEYTIP_UPDATED,{keytip:o.keytip,uniqueID:o.uniqueID}))},e.prototype.unregister=function(t,r,n){n===void 0&&(n=!1),n?delete this.persistedKeytips[r]:delete this.keytips[r],!n&&delete this.sequenceMapping[t.keySequences.toString()];var o=n?ju.PERSISTED_KEYTIP_REMOVED:ju.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&_d.raise(this,o,{keytip:t,uniqueID:r})},e.prototype.enterKeytipMode=function(){_d.raise(this,ju.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){_d.raise(this,ju.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map(function(r){return t.keytips[r].keytip})},e.prototype.addParentOverflow=function(t){var r=cu([],t.keySequences,!0);if(r.pop(),r.length!==0){var n=this.sequenceMapping[r.toString()];if(n&&n.overflowSetSequence)return _e(_e({},t),{overflowSetSequence:n.overflowSetSequence})}return t},e.prototype.menuExecute=function(t,r){_d.raise(this,ju.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:r})},e.prototype._getUniqueKtp=function(t,r){return r===void 0&&(r=qh()),{keytip:_e({},t),uniqueID:r}},e._instance=new e,e}();function Jie(e){return e.reduce(function(t,r){return t+wW+r.split("").join(wW)},lCe)}function hCe(e,t){var r=t.length,n=cu([],t,!0).pop(),o=cu([],e,!0);return $Ae(o,r-1,n)}function pCe(e){var t=" "+fCe;return e.length?t+" "+Jie(e):t}function gCe(e){var t=A.useRef(),r=e.keytipProps?_e({disabled:e.disabled},e.keytipProps):void 0,n=ic(dCe.getInstance()),o=T8(e);Eg(function(){t.current&&r&&((o==null?void 0:o.keytipProps)!==e.keytipProps||(o==null?void 0:o.disabled)!==e.disabled)&&n.update(r,t.current)}),Eg(function(){return r&&(t.current=n.register(r)),function(){r&&n.unregister(r,t.current)}},[]);var i={ariaDescribedBy:void 0,keytipId:void 0};return r&&(i=vCe(n,r,e.ariaDescribedBy)),i}function vCe(e,t,r){var n=e.addParentOverflow(t),o=eT(r,pCe(n.keySequences)),i=cu([],n.keySequences,!0);n.overflowSetSequence&&(i=hCe(i,n.overflowSetSequence));var s=Jie(i);return{ariaDescribedBy:o,keytipId:s}}var EL=function(e){var t,r=e.children,n=av(e,["children"]),o=gCe(n),i=o.keytipId,s=o.ariaDescribedBy;return r((t={},t[uCe]=i,t[cCe]=i,t["aria-describedby"]=s,t))},mCe=function(e){Sc(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._anchor=A.createRef(),r._getMemoizedMenuButtonKeytipProps=gs(function(n){return _e(_e({},n),{hasMenu:!0})}),r._getSubmenuTarget=function(){return r._anchor.current?r._anchor.current:void 0},r._onItemClick=function(n){var o=r.props,i=o.item,s=o.onItemClick;s&&s(i,n)},r._renderAriaDescription=function(n,o){return n?A.createElement("span",{id:r._ariaDescriptionId,className:o},n):null},r}return t.prototype.render=function(){var r=this,n=this.props,o=n.item,i=n.classNames,s=n.index,a=n.focusableElementIndex,l=n.totalItemCount,u=n.hasCheckmarks,c=n.hasIcons,f=n.expandedMenuItemKey,d=n.onItemClick,h=n.openSubMenu,g=n.dismissSubMenu,v=n.dismissMenu,y=Mb;this.props.item.contextualMenuItemAs&&(y=nu(this.props.item.contextualMenuItemAs,y)),this.props.contextualMenuItemAs&&(y=nu(this.props.contextualMenuItemAs,y));var E=o.rel;o.target&&o.target.toLowerCase()==="_blank"&&(E=E||"nofollow noopener noreferrer");var _=Sf(o),S=Bi(o,Dxe),b=tc(o),k=o.itemProps,T=o.ariaDescription,x=o.keytipProps;x&&_&&(x=this._getMemoizedMenuButtonKeytipProps(x)),T&&(this._ariaDescriptionId=qh());var I=eT(o.ariaDescribedBy,T?this._ariaDescriptionId:void 0,S["aria-describedby"]),C={"aria-describedby":I};return A.createElement("div",null,A.createElement(EL,{keytipProps:o.keytipProps,ariaDescribedBy:I,disabled:b},function(R){return A.createElement("a",_e({},C,S,R,{ref:r._anchor,href:o.href,target:o.target,rel:E,className:i.root,role:"menuitem","aria-haspopup":_||void 0,"aria-expanded":_?o.key===f:void 0,"aria-posinset":a+1,"aria-setsize":l,"aria-disabled":tc(o),style:o.style,onClick:r._onItemClick,onMouseEnter:r._onItemMouseEnter,onMouseLeave:r._onItemMouseLeave,onMouseMove:r._onItemMouseMove,onKeyDown:_?r._onItemKeyDown:void 0}),A.createElement(y,_e({componentRef:o.componentRef,item:o,classNames:i,index:s,onCheckmarkClick:u&&d?d:void 0,hasIcons:c,openSubMenu:h,dismissSubMenu:g,dismissMenu:v,getSubmenuTarget:r._getSubmenuTarget},k)),r._renderAriaDescription(T,i.screenReaderText))}))},t}(_L),yCe=function(e){Sc(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._btn=A.createRef(),r._getMemoizedMenuButtonKeytipProps=gs(function(n){return _e(_e({},n),{hasMenu:!0})}),r._renderAriaDescription=function(n,o){return n?A.createElement("span",{id:r._ariaDescriptionId,className:o},n):null},r._getSubmenuTarget=function(){return r._btn.current?r._btn.current:void 0},r}return t.prototype.render=function(){var r=this,n=this.props,o=n.item,i=n.classNames,s=n.index,a=n.focusableElementIndex,l=n.totalItemCount,u=n.hasCheckmarks,c=n.hasIcons,f=n.contextualMenuItemAs,d=n.expandedMenuItemKey,h=n.onItemMouseDown,g=n.onItemClick,v=n.openSubMenu,y=n.dismissSubMenu,E=n.dismissMenu,_=Mb;o.contextualMenuItemAs&&(_=nu(o.contextualMenuItemAs,_)),f&&(_=nu(f,_));var S=Og(o),b=S!==null,k=Qie(o),T=Sf(o),x=o.itemProps,I=o.ariaLabel,C=o.ariaDescription,R=Bi(o,_g);delete R.disabled;var D=o.role||k;C&&(this._ariaDescriptionId=qh());var L=eT(o.ariaDescribedBy,C?this._ariaDescriptionId:void 0,R["aria-describedby"]),M={className:i.root,onClick:this._onItemClick,onKeyDown:T?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(z){return h?h(o,z):void 0},onMouseMove:this._onItemMouseMove,href:o.href,title:o.title,"aria-label":I,"aria-describedby":L,"aria-haspopup":T||void 0,"aria-expanded":T?o.key===d:void 0,"aria-posinset":a+1,"aria-setsize":l,"aria-disabled":tc(o),"aria-checked":(D==="menuitemcheckbox"||D==="menuitemradio")&&b?!!S:void 0,"aria-selected":D==="menuitem"&&b?!!S:void 0,role:D,style:o.style},W=o.keytipProps;return W&&T&&(W=this._getMemoizedMenuButtonKeytipProps(W)),A.createElement(EL,{keytipProps:W,ariaDescribedBy:L,disabled:tc(o)},function(z){return A.createElement("button",_e({ref:r._btn},R,M,z),A.createElement(_,_e({componentRef:o.componentRef,item:o,classNames:i,index:s,onCheckmarkClick:u&&g?g:void 0,hasIcons:c,openSubMenu:v,dismissSubMenu:y,dismissMenu:E,getSubmenuTarget:r._getSubmenuTarget},x)),r._renderAriaDescription(C,i.screenReaderText))})},t}(_L),bCe=function(e){var t=e.theme,r=e.getClassNames,n=e.className;if(!t)throw new Error("Theme is undefined or null.");if(r){var o=r(t);return{wrapper:[o.wrapper],divider:[o.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},n],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}},_Ce=wc(),ese=A.forwardRef(function(e,t){var r=e.styles,n=e.theme,o=e.getClassNames,i=e.className,s=_Ce(r,{theme:n,getClassNames:o,className:i});return A.createElement("span",{className:s.wrapper,ref:t},A.createElement("span",{className:s.divider}))});ese.displayName="VerticalDividerBase";var ECe=kc(ese,bCe,void 0,{scope:"VerticalDivider"}),SCe=500,wCe=function(e){Sc(t,e);function t(r){var n=e.call(this,r)||this;return n._getMemoizedMenuButtonKeytipProps=gs(function(o){return _e(_e({},o),{hasMenu:!0})}),n._onItemKeyDown=function(o){var i=n.props,s=i.item,a=i.onItemKeyDown;o.which===Kt.enter?(n._executeItemClick(o),o.preventDefault(),o.stopPropagation()):a&&a(s,o)},n._getSubmenuTarget=function(){return n._splitButton},n._renderAriaDescription=function(o,i){return o?A.createElement("span",{id:n._ariaDescriptionId,className:i},o):null},n._onItemMouseEnterPrimary=function(o){var i=n.props,s=i.item,a=i.onItemMouseEnter;a&&a(_e(_e({},s),{subMenuProps:void 0,items:void 0}),o,n._splitButton)},n._onItemMouseEnterIcon=function(o){var i=n.props,s=i.item,a=i.onItemMouseEnter;a&&a(s,o,n._splitButton)},n._onItemMouseMovePrimary=function(o){var i=n.props,s=i.item,a=i.onItemMouseMove;a&&a(_e(_e({},s),{subMenuProps:void 0,items:void 0}),o,n._splitButton)},n._onItemMouseMoveIcon=function(o){var i=n.props,s=i.item,a=i.onItemMouseMove;a&&a(s,o,n._splitButton)},n._onIconItemClick=function(o){var i=n.props,s=i.item,a=i.onItemClickBase;a&&a(s,o,n._splitButton?n._splitButton:o.currentTarget)},n._executeItemClick=function(o){var i=n.props,s=i.item,a=i.executeItemClick,l=i.onItemClick;if(!(s.disabled||s.isDisabled)){if(n._processingTouch&&!s.canCheck&&l)return l(s,o);a&&a(s,o)}},n._onTouchStart=function(o){n._splitButton&&!("onpointerdown"in n._splitButton)&&n._handleTouchAndPointerEvent(o)},n._onPointerDown=function(o){o.pointerType==="touch"&&(n._handleTouchAndPointerEvent(o),o.preventDefault(),o.stopImmediatePropagation())},n._async=new nne(n),n._events=new _d(n),n._dismissLabelId=qh(),n}return t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var r=this,n,o=this.props,i=o.item,s=o.classNames,a=o.index,l=o.focusableElementIndex,u=o.totalItemCount,c=o.hasCheckmarks,f=o.hasIcons,d=o.onItemMouseLeave,h=o.expandedMenuItemKey,g=Sf(i),v=i.keytipProps;v&&(v=this._getMemoizedMenuButtonKeytipProps(v));var y=i.ariaDescription;y&&(this._ariaDescriptionId=qh());var E=(n=Og(i))!==null&&n!==void 0?n:void 0;return A.createElement(EL,{keytipProps:v,disabled:tc(i)},function(_){return A.createElement("div",{"data-ktp-target":_["data-ktp-target"],ref:function(S){return r._splitButton=S},role:Qie(i),"aria-label":i.ariaLabel,className:s.splitContainer,"aria-disabled":tc(i),"aria-expanded":g?i.key===h:void 0,"aria-haspopup":!0,"aria-describedby":eT(i.ariaDescribedBy,y?r._ariaDescriptionId:void 0,_["aria-describedby"]),"aria-checked":E,"aria-posinset":l+1,"aria-setsize":u,onMouseEnter:r._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(r,_e(_e({},i),{subMenuProps:null,items:null})):void 0,onMouseMove:r._onItemMouseMovePrimary,onKeyDown:r._onItemKeyDown,onClick:r._executeItemClick,onTouchStart:r._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":i["aria-roledescription"]},r._renderSplitPrimaryButton(i,s,a,c,f),r._renderSplitDivider(i),r._renderSplitIconButton(i,s,a,_),r._renderAriaDescription(y,s.screenReaderText))})},t.prototype._renderSplitPrimaryButton=function(r,n,o,i,s){var a=this.props,l=a.contextualMenuItemAs,u=l===void 0?Mb:l,c=a.onItemClick,f={key:r.key,disabled:tc(r)||r.primaryDisabled,name:r.name,text:r.text||r.name,secondaryText:r.secondaryText,className:n.splitPrimary,canCheck:r.canCheck,isChecked:r.isChecked,checked:r.checked,iconProps:r.iconProps,id:this._dismissLabelId,onRenderIcon:r.onRenderIcon,data:r.data,"data-is-focusable":!1},d=r.itemProps;return A.createElement("button",_e({},Bi(f,_g)),A.createElement(u,_e({"data-is-focusable":!1,item:f,classNames:n,index:o,onCheckmarkClick:i&&c?c:void 0,hasIcons:s},d)))},t.prototype._renderSplitDivider=function(r){var n=r.getSplitButtonVerticalDividerClassNames||iCe;return A.createElement(ECe,{getClassNames:n})},t.prototype._renderSplitIconButton=function(r,n,o,i){var s=this.props,a=s.onItemMouseLeave,l=s.onItemMouseDown,u=s.openSubMenu,c=s.dismissSubMenu,f=s.dismissMenu,d=Mb;this.props.item.contextualMenuItemAs&&(d=nu(this.props.item.contextualMenuItemAs,d)),this.props.contextualMenuItemAs&&(d=nu(this.props.contextualMenuItemAs,d));var h={onClick:this._onIconItemClick,disabled:tc(r),className:n.splitMenu,subMenuProps:r.subMenuProps,submenuIconProps:r.submenuIconProps,split:!0,key:r.key,"aria-labelledby":this._dismissLabelId},g=_e(_e({},Bi(h,_g)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:a?a.bind(this,r):void 0,onMouseDown:function(y){return l?l(r,y):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":i["data-ktp-execute-target"],"aria-haspopup":!0}),v=r.itemProps;return A.createElement("button",_e({},g),A.createElement(d,_e({componentRef:r.componentRef,item:h,classNames:n,index:o,hasIcons:!1,openSubMenu:u,dismissSubMenu:c,dismissMenu:f,getSubmenuTarget:this._getSubmenuTarget},v)))},t.prototype._handleTouchAndPointerEvent=function(r){var n=this,o=this.props.onTap;o&&o(r),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){n._processingTouch=!1,n._lastTouchTimeoutId=void 0},SCe)},t}(_L),Dg;(function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"})(Dg||(Dg={}));var kCe=[479,639,1023,1365,1919,99999999],Q2,tse;function rse(){var e;return(e=Q2??tse)!==null&&e!==void 0?e:Dg.large}function ACe(e){try{return e.document.documentElement.clientWidth}catch{return e.innerWidth}}function xCe(e){var t=Dg.small;if(e){try{for(;ACe(e)>kCe[t];)t++}catch{t=rse()}tse=t}else throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return t}var nse=function(e,t){var r=A.useState(rse()),n=r[0],o=r[1],i=A.useCallback(function(){var a=xCe(ho(e.current));n!==a&&o(a)},[e,n]),s=$_();return mb(s,"resize",i),A.useEffect(function(){t===void 0&&i()},[t]),t??n},TCe=A.createContext({}),ICe=wc(),CCe=wc(),NCe={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:_o.bottomAutoEdge,beakWidth:16};function kW(e){for(var t=0,r=0,n=e;r0){var Dt=0;return A.createElement("li",{role:"presentation",key:Q.key||He.key||"section-".concat($)},A.createElement("div",_e({},ae),A.createElement("ul",{className:X.list,role:"presentation"},Q.topDivider&&Qe($,Y,!0,!0),ie&&nt(ie,He.key||$,Y,He.title),Q.items.map(function(wt,Et){var Gt=me(wt,Et,Dt,kW(Q.items),q,B,X);if(wt.itemType!==Ti.Divider&&wt.itemType!==Ti.Header){var $r=wt.customOnRenderListLength?wt.customOnRenderListLength:1;Dt+=$r}return Gt}),Q.bottomDivider&&Qe($,Y,!1,!0))))}}},nt=function(He,Y,X,$){return A.createElement("li",{role:"presentation",title:$,key:Y,className:X.item},He)},Qe=function(He,Y,X,$){return $||He>0?A.createElement("li",{role:"separator",key:"separator-"+He+(X===void 0?"":X?"-top":"-bottom"),className:Y.divider,"aria-hidden":"true"}):null},Ze=function(He,Y,X,$,q,B,Q){if(He.onRender)return He.onRender(_e({"aria-posinset":$+1,"aria-setsize":q},He),l);var ie=o.contextualMenuItemAs,ae={item:He,classNames:Y,index:X,focusableElementIndex:$,totalItemCount:q,hasCheckmarks:B,hasIcons:Q,contextualMenuItemAs:ie,onItemMouseEnter:Z,onItemMouseLeave:ee,onItemMouseMove:J,onItemMouseDown:PCe,executeItemClick:Se,onItemKeyDown:K,expandedMenuItemKey:g,openSubMenu:v,dismissSubMenu:E,dismissMenu:l};if(He.href){var ne=mCe;return He.contextualMenuItemWrapperAs&&(ne=nu(He.contextualMenuItemWrapperAs,ne)),A.createElement(ne,_e({},ae,{onItemClick:ge}))}if(He.split&&Sf(He)){var ye=wCe;return He.contextualMenuItemWrapperAs&&(ye=nu(He.contextualMenuItemWrapperAs,ye)),A.createElement(ye,_e({},ae,{onItemClick:de,onItemClickBase:Re,onTap:R}))}var Pe=yCe;return He.contextualMenuItemWrapperAs&&(Pe=nu(He.contextualMenuItemWrapperAs,Pe)),A.createElement(Pe,_e({},ae,{onItemClick:de,onItemClickBase:Re}))},Fe=function(He,Y,X,$,q,B){var Q=Mb;He.contextualMenuItemAs&&(Q=nu(He.contextualMenuItemAs,Q)),o.contextualMenuItemAs&&(Q=nu(o.contextualMenuItemAs,Q));var ie=He.itemProps,ae=He.id,ne=ie&&Bi(ie,lv);return A.createElement("div",_e({id:ae,className:X.header},ne,{style:He.style}),A.createElement(Q,_e({item:He,classNames:Y,index:$,onCheckmarkClick:q?de:void 0,hasIcons:B},ie)))},ot=o.isBeakVisible,Me=o.items,_t=o.labelElementId,qt=o.id,Nt=o.className,ut=o.beakWidth,xe=o.directionalHint,Ue=o.directionalHintForRTL,Xt=o.alignTargetEdge,he=o.gapSpace,le=o.coverTarget,se=o.ariaLabel,pe=o.doNotLayer,Oe=o.target,je=o.bounds,ke=o.useTargetWidth,Ie=o.useTargetAsMinWidth,$e=o.directionalHintFixed,lt=o.shouldFocusOnMount,mt=o.shouldFocusOnContainer,Rt=o.title,hr=o.styles,Cr=o.theme,Lt=o.calloutProps,Wr=o.onRenderSubMenu,fn=Wr===void 0?xW:Wr,tr=o.onRenderMenuList,Ot=tr===void 0?function(He,Y){return ve(He,Kr)}:tr,Gr=o.focusZoneProps,Nr=o.getMenuClassNames,Kr=Nr?Nr(Cr,Nt):ICe(hr,{theme:Cr,className:Nt}),mr=Bt(Me);function Bt(He){for(var Y=0,X=He;Y0){var mo=kW(Me),za=Kr.subComponentStyles?Kr.subComponentStyles.callout:void 0;return A.createElement(TCe.Consumer,null,function(He){return A.createElement(Vie,_e({styles:za,onRestoreFocus:d},Lt,{target:Oe||He.target,isBeakVisible:ot,beakWidth:ut,directionalHint:xe,directionalHintForRTL:Ue,gapSpace:he,coverTarget:le,doNotLayer:pe,className:a1("ms-ContextualMenu-Callout",Lt&&Lt.className),setInitialFocus:lt,onDismiss:o.onDismiss||He.onDismiss,onScroll:x,bounds:je,directionalHintFixed:$e,alignTargetEdge:Xt,hidden:o.hidden||He.hidden,ref:t}),A.createElement("div",{style:No,ref:i,id:qt,className:Kr.container,tabIndex:mt?0:-1,onKeyDown:P,onKeyUp:F,onFocusCapture:k,"aria-label":se,"aria-labelledby":_t,role:"menu"},Rt&&A.createElement("div",{className:Kr.title}," ",Rt," "),Me&&Me.length?Ee(Ot({ariaLabel:se,items:Me,totalItemCount:mo,hasCheckmarks:Ye,hasIcons:mr,defaultMenuItemRenderer:function(Y){return we(Y,Kr)},labelElementId:_t},function(Y,X){return ve(Y,Kr)}),dt):null,Vr&&fn(Vr,xW)),A.createElement($xe,null))})}else return null}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:S8(e,t)});ase.displayName="ContextualMenuBase";function AW(e){return e.which===Kt.alt||e.key==="Meta"}function PCe(e,t){var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,e,t)}function xW(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function lse(e,t){for(var r=0,n=t;r=(F||Dg.small)&&A.createElement(Kie,_e({ref:ve},Rt),A.createElement(I8,_e({role:$e?"alertdialog":"dialog",ariaLabelledBy:D,ariaDescribedBy:M,onDismiss:x,shouldRestoreFocus:!_,enableAriaHiddenSiblings:J,"aria-modal":!K},ee),A.createElement("div",{className:mt.root,role:K?void 0:"document"},!K&&A.createElement(QCe,_e({"aria-hidden":!0,isDarkThemed:T,onClick:S?void 0:x,allowTouchBodyScroll:l},C)),V?A.createElement(JCe,{handleSelector:V.dragHandleSelector||"#".concat(me),preventDragSelector:"button",onStart:fn,onDragChange:tr,onStop:Ot,position:ut},mr):mr)))||null});pse.displayName="Modal";var gse=kc(pse,KCe,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});gse.displayName="Modal";function oNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('".concat(e,"fabric-icons-a13498cf.woff') format('woff')")},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}};xo(r,t)}function iNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('".concat(e,"fabric-icons-0-467ee27f.woff') format('woff')")},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}};xo(r,t)}function sNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('".concat(e,"fabric-icons-1-4d521695.woff') format('woff')")},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}};xo(r,t)}function aNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('".concat(e,"fabric-icons-2-63c99abf.woff') format('woff')")},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}};xo(r,t)}function lNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('".concat(e,"fabric-icons-3-089e217a.woff') format('woff')")},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}};xo(r,t)}function uNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('".concat(e,"fabric-icons-4-a656cc0a.woff') format('woff')")},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}};xo(r,t)}function cNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('".concat(e,"fabric-icons-5-f95ba260.woff') format('woff')")},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}};xo(r,t)}function fNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('".concat(e,"fabric-icons-6-ef6fd590.woff') format('woff')")},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}};xo(r,t)}function dNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('".concat(e,"fabric-icons-7-2b97bb99.woff') format('woff')")},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}};xo(r,t)}function hNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('".concat(e,"fabric-icons-8-6fdf1528.woff') format('woff')")},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}};xo(r,t)}function pNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('".concat(e,"fabric-icons-9-c6162b42.woff') format('woff')")},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}};xo(r,t)}function gNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('".concat(e,"fabric-icons-10-c4ded8e4.woff') format('woff')")},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}};xo(r,t)}function vNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('".concat(e,"fabric-icons-11-2a8393d6.woff') format('woff')")},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}};xo(r,t)}function mNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('".concat(e,"fabric-icons-12-7e945a1e.woff') format('woff')")},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}};xo(r,t)}function yNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('".concat(e,"fabric-icons-13-c3989a02.woff') format('woff')")},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}};xo(r,t)}function bNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('".concat(e,"fabric-icons-14-5cf58db8.woff') format('woff')")},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}};xo(r,t)}function _Ne(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('".concat(e,"fabric-icons-15-3807251b.woff') format('woff')")},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}};xo(r,t)}function ENe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('".concat(e,"fabric-icons-16-9cf93f3b.woff') format('woff')")},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}};xo(r,t)}function SNe(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('".concat(e,"fabric-icons-17-0c4ed701.woff') format('woff')")},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}};xo(r,t)}var wNe=function(){X1("trash","delete"),X1("onedrive","onedrivelogo"),X1("alertsolid12","eventdatemissed12"),X1("sixpointstar","6pointstar"),X1("twelvepointstar","12pointstar"),X1("toggleon","toggleleft"),X1("toggleoff","toggleright")};b8("@fluentui/font-icons-mdl2","8.5.28");var kNe="".concat(a9e,"/assets/icons/"),Wp=ho();function ANe(e,t){var r,n;e===void 0&&(e=((r=Wp==null?void 0:Wp.FabricConfig)===null||r===void 0?void 0:r.iconBaseUrl)||((n=Wp==null?void 0:Wp.FabricConfig)===null||n===void 0?void 0:n.fontBaseUrl)||kNe),[oNe,iNe,sNe,aNe,lNe,uNe,cNe,fNe,dNe,hNe,pNe,gNe,vNe,mNe,yNe,bNe,_Ne,ENe,SNe].forEach(function(o){return o(e,t)}),wNe()}var SL=_e;function wk(e,t){for(var r=[],n=2;n0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return CNe(t[s],l,n[s],n.slots&&n.slots[s],n._defaultStyles&&n._defaultStyles[s],n.theme)};a.isSlot=!0,r[s]=a}};for(var i in t)o(i);return r}function TNe(e,t){var r,n;return typeof t=="string"||typeof t=="number"||typeof t=="boolean"?n=(r={},r[e]=t,r):n=t,n}function INe(e,t){for(var r=[],n=2;n2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(r.length===2)return{rowGap:Z2(og(r[0],t)),columnGap:Z2(og(r[1],t))};var n=Z2(og(e,t));return{rowGap:n,columnGap:n}},IW=function(e,t){if(e===void 0||typeof e=="number"||e==="")return e;var r=e.split(" ");return r.length<2?og(e,t):r.reduce(function(n,o){return og(n,t)+" "+og(o,t)})},Gp={start:"flex-start",end:"flex-end"},gB={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},MNe=function(e,t,r){var n,o,i,s,a,l,u,c,f,d,h,g,v,y=e.className,E=e.disableShrink,_=e.enableScopedSelectors,S=e.grow,b=e.horizontal,k=e.horizontalAlign,T=e.reversed,x=e.verticalAlign,I=e.verticalFill,C=e.wrap,R=Ac(gB,t),D=r&&r.childrenGap?r.childrenGap:e.gap,L=r&&r.maxHeight?r.maxHeight:e.maxHeight,M=r&&r.maxWidth?r.maxWidth:e.maxWidth,W=r&&r.padding?r.padding:e.padding,z=BNe(D,t),F=z.rowGap,P=z.columnGap,K="".concat(-.5*P.value).concat(P.unit),V="".concat(-.5*F.value).concat(F.unit),Z={textOverflow:"ellipsis"},J="> "+(_?"."+gB.child:"*"),ee=(n={},n["".concat(J,":not(.").concat(_se.root,")")]={flexShrink:0},n);return C?{root:[R.root,{flexWrap:"wrap",maxWidth:M,maxHeight:L,width:"auto",overflow:"visible",height:"100%"},k&&(o={},o[b?"justifyContent":"alignItems"]=Gp[k]||k,o),x&&(i={},i[b?"alignItems":"justifyContent"]=Gp[x]||x,i),y,{display:"flex"},b&&{height:I?"100%":"auto"}],inner:[R.inner,(s={display:"flex",flexWrap:"wrap",marginLeft:K,marginRight:K,marginTop:V,marginBottom:V,overflow:"visible",boxSizing:"border-box",padding:IW(W,t),width:P.value===0?"100%":"calc(100% + ".concat(P.value).concat(P.unit,")"),maxWidth:"100vw"},s[J]=_e({margin:"".concat(.5*F.value).concat(F.unit," ").concat(.5*P.value).concat(P.unit)},Z),s),E&&ee,k&&(a={},a[b?"justifyContent":"alignItems"]=Gp[k]||k,a),x&&(l={},l[b?"alignItems":"justifyContent"]=Gp[x]||x,l),b&&(u={flexDirection:T?"row-reverse":"row",height:F.value===0?"100%":"calc(100% + ".concat(F.value).concat(F.unit,")")},u[J]={maxWidth:P.value===0?"100%":"calc(100% - ".concat(P.value).concat(P.unit,")")},u),!b&&(c={flexDirection:T?"column-reverse":"column",height:"calc(100% + ".concat(F.value).concat(F.unit,")")},c[J]={maxHeight:F.value===0?"100%":"calc(100% - ".concat(F.value).concat(F.unit,")")},c)]}:{root:[R.root,(f={display:"flex",flexDirection:b?T?"row-reverse":"row":T?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:I?"100%":"auto",maxWidth:M,maxHeight:L,padding:IW(W,t),boxSizing:"border-box"},f[J]=Z,f),E&&ee,S&&{flexGrow:S===!0?1:S},k&&(d={},d[b?"justifyContent":"alignItems"]=Gp[k]||k,d),x&&(h={},h[b?"alignItems":"justifyContent"]=Gp[x]||x,h),b&&P.value>0&&(g={},g[T?"".concat(J,":not(:last-child)"):"".concat(J,":not(:first-child)")]={marginLeft:"".concat(P.value).concat(P.unit)},g),!b&&F.value>0&&(v={},v[T?"".concat(J,":not(:last-child)"):"".concat(J,":not(:first-child)")]={marginTop:"".concat(F.value).concat(F.unit)},v),y]}},LNe=function(e){var t=e.as,r=t===void 0?"div":t,n=e.disableShrink,o=n===void 0?!1:n,i=e.doNotRenderFalsyValues,s=i===void 0?!1:i,a=e.enableScopedSelectors,l=a===void 0?!1:a,u=e.wrap,c=av(e,["as","disableShrink","doNotRenderFalsyValues","enableScopedSelectors","wrap"]),f=Sse(e.children,{disableShrink:o,enableScopedSelectors:l,doNotRenderFalsyValues:s}),d=Bi(c,vo),h=mse(e,{root:r,inner:"div"});return u?wk(h.root,_e({},d),wk(h.inner,null,f)):wk(h.root,_e({},d),f)};function Sse(e,t){var r=t.disableShrink,n=t.enableScopedSelectors,o=t.doNotRenderFalsyValues,i=A.Children.toArray(e);return i=A.Children.map(i,function(s){if(!s)return o?null:s;if(!A.isValidElement(s))return s;if(s.type===A.Fragment)return s.props.children?Sse(s.props.children,{disableShrink:r,enableScopedSelectors:n,doNotRenderFalsyValues:o}):null;var a=s,l={};jNe(s)&&(l={shrink:!r});var u=a.props.className;return A.cloneElement(a,_e(_e(_e(_e({},l),a.props),u&&{className:u}),n&&{className:a1(gB.child,u)}))}),i}function jNe(e){return!!e&&typeof e=="object"&&!!e.type&&e.type.displayName===Ese.displayName}var zNe={Item:Ese},HNe=yse(LNe,{displayName:"Stack",styles:MNe,statics:zNe});const c1=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();c1.trustedTypes===void 0&&(c1.trustedTypes={createPolicy:(e,t)=>t});const wse={configurable:!1,enumerable:!1,writable:!1};c1.FAST===void 0&&Reflect.defineProperty(c1,"FAST",Object.assign({value:Object.create(null)},wse));const Lb=c1.FAST;if(Lb.getById===void 0){const e=Object.create(null);Reflect.defineProperty(Lb,"getById",Object.assign({value(t,r){let n=e[t];return n===void 0&&(n=r?e[t]=r():null),n}},wse))}const Py=Object.freeze([]);function kse(){const e=new WeakMap;return function(t){let r=e.get(t);if(r===void 0){let n=Reflect.getPrototypeOf(t);for(;r===void 0&&n!==null;)r=e.get(n),n=Reflect.getPrototypeOf(n);r=r===void 0?[]:r.slice(0),e.set(t,r)}return r}}const J2=c1.FAST.getById(1,()=>{const e=[],t=[];function r(){if(t.length)throw t.shift()}function n(s){try{s.call()}catch(a){t.push(a),setTimeout(r,0)}}function o(){let a=0;for(;a1024){for(let l=0,u=e.length-a;le});let eC=Ase;const qy=`fast-${Math.random().toString(36).substring(2,8)}`,xse=`${qy}{`,wL=`}${qy}`,rn=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(eC!==Ase)throw new Error("The HTML policy can only be set once.");eC=e},createHTML(e){return eC.createHTML(e)},isMarker(e){return e&&e.nodeType===8&&e.data.startsWith(qy)},extractDirectiveIndexFromMarker(e){return parseInt(e.data.replace(`${qy}:`,""))},createInterpolationPlaceholder(e){return`${xse}${e}${wL}`},createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(e){return``},queueUpdate:J2.enqueue,processUpdates:J2.process,nextUpdate(){return new Promise(J2.enqueue)},setAttribute(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)},setBooleanAttribute(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;t!==null;t=e.firstChild)e.removeChild(t)},createTemplateWalker(e){return document.createTreeWalker(e,133,null,!1)}});class vB{constructor(t,r){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=r}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const r=this.spillover;if(r===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else r.indexOf(t)===-1&&r.push(t)}unsubscribe(t){const r=this.spillover;if(r===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const n=r.indexOf(t);n!==-1&&r.splice(n,1)}}notify(t){const r=this.spillover,n=this.source;if(r===void 0){const o=this.sub1,i=this.sub2;o!==void 0&&o.handleChange(n,t),i!==void 0&&i.handleChange(n,t)}else for(let o=0,i=r.length;o{const e=/(:|&&|\|\||if)/,t=new WeakMap,r=rn.queueUpdate;let n,o=u=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function i(u){let c=u.$fastController||t.get(u);return c===void 0&&(Array.isArray(u)?c=o(u):t.set(u,c=new Tse(u))),c}const s=kse();class a{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return n!==void 0&&n.watch(c,this.name),c[this.field]}setValue(c,f){const d=this.field,h=c[d];if(h!==f){c[d]=f;const g=c[this.callback];typeof g=="function"&&g.call(c,h,f),i(c).notify(this.name)}}}class l extends vB{constructor(c,f,d=!1){super(c,f),this.binding=c,this.isVolatileBinding=d,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(c,f){this.needsRefresh&&this.last!==null&&this.disconnect();const d=n;n=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const h=this.binding(c,f);return n=d,h}disconnect(){if(this.last!==null){let c=this.first;for(;c!==void 0;)c.notifier.unsubscribe(this,c.propertyName),c=c.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(c,f){const d=this.last,h=i(c),g=d===null?this.first:{};if(g.propertySource=c,g.propertyName=f,g.notifier=h,h.subscribe(this,f),d!==null){if(!this.needsRefresh){let v;n=void 0,v=d.propertySource[d.propertyName],n=this,c===v&&(this.needsRefresh=!0)}d.next=g}this.last=g}handleChange(){this.needsQueue&&(this.needsQueue=!1,r(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let c=this.first;return{next:()=>{const f=c;return f===void 0?{value:void 0,done:!0}:(c=c.next,{value:f,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(u){o=u},getNotifier:i,track(u,c){n!==void 0&&n.watch(u,c)},trackVolatile(){n!==void 0&&(n.needsRefresh=!0)},notify(u,c){i(u).notify(c)},defineProperty(u,c){typeof c=="string"&&(c=new a(c)),s(u).push(c),Reflect.defineProperty(u,c.name,{enumerable:!0,get:function(){return c.getValue(this)},set:function(f){c.setValue(this,f)}})},getAccessors:s,binding(u,c,f=this.isVolatileBinding(u)){return new l(u,c,f)},isVolatileBinding(u){return e.test(u.toString())}})});function hv(e,t){ti.defineProperty(e,t)}const CW=Lb.getById(3,()=>{let e=null;return{get(){return e},set(t){e=t}}});class jb{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return CW.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){CW.set(t)}}ti.defineProperty(jb.prototype,"index");ti.defineProperty(jb.prototype,"length");const Wy=Object.seal(new jb);class kL{constructor(){this.targetIndex=0}}class Ise extends kL{constructor(){super(...arguments),this.createPlaceholder=rn.createInterpolationPlaceholder}}class Cse extends kL{constructor(t,r,n){super(),this.name=t,this.behavior=r,this.options=n}createPlaceholder(t){return rn.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function $Ne(e,t){this.source=e,this.context=t,this.bindingObserver===null&&(this.bindingObserver=ti.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function PNe(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function qNe(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function WNe(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function GNe(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function KNe(e){rn.setAttribute(this.target,this.targetName,e)}function VNe(e){rn.setBooleanAttribute(this.target,this.targetName,e)}function UNe(e){if(e==null&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;t===void 0?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function YNe(e){this.target[this.targetName]=e}function XNe(e){const t=this.classVersions||Object.create(null),r=this.target;let n=this.version||0;if(e!=null&&e.length){const o=e.split(/\s+/);for(let i=0,s=o.length;irn.createHTML(r(n,o))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=VNe;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=PNe,this.unbind=GNe;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=XNe);break}}targetAtContent(){this.updateTarget=UNe,this.unbind=WNe}createBehavior(t){return new QNe(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class QNe{constructor(t,r,n,o,i,s,a){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=r,this.isBindingVolatile=n,this.bind=o,this.unbind=i,this.updateTarget=s,this.targetName=a}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){jb.setEvent(t);const r=this.binding(this.source,this.context);jb.setEvent(null),r!==!0&&t.preventDefault()}}let tC=null;class xL{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){tC=this}static borrow(t){const r=tC||new xL;return r.directives=t,r.reset(),tC=null,r}}function ZNe(e){if(e.length===1)return e[0];let t;const r=e.length,n=e.map(s=>typeof s=="string"?()=>s:(t=s.targetName||t,s.binding)),o=(s,a)=>{let l="";for(let u=0;ua),u.targetName=s.name):u=ZNe(l),u!==null&&(t.removeAttributeNode(s),o--,i--,e.addFactory(u))}}function eRe(e,t,r){const n=Nse(e,t.textContent);if(n!==null){let o=t;for(let i=0,s=n.length;i0}const r=this.fragment.cloneNode(!0),n=this.viewBehaviorFactories,o=new Array(this.behaviorCount),i=rn.createTemplateWalker(r);let s=0,a=this.targetOffset,l=i.nextNode();for(let u=n.length;s=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function K_(e,...t){const r=[];let n="";for(let o=0,i=e.length-1;ol}if(typeof a=="function"&&(a=new AL(a)),a instanceof Ise){const l=nRe.exec(s);l!==null&&(a.targetName=l[2])}a instanceof kL?(n+=a.createPlaceholder(r.length),r.push(a)):n+=a}return n+=e[e.length-1],new RW(n,r)}class Ls{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}}Ls.create=(()=>{if(rn.supportsAdoptedStyleSheets){const e=new Map;return t=>new oRe(t,e)}return e=>new aRe(e)})();function TL(e){return e.map(t=>t instanceof Ls?TL(t.styles):[t]).reduce((t,r)=>t.concat(r),[])}function Rse(e){return e.map(t=>t instanceof Ls?t.behaviors:null).reduce((t,r)=>r===null?t:(t===null&&(t=[]),t.concat(r)),null)}let Ose=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},Dse=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(r=>t.indexOf(r)===-1)};if(rn.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Ose=(e,t)=>{e.adoptedStyleSheets.push(...t)},Dse=(e,t)=>{for(const r of t){const n=e.adoptedStyleSheets.indexOf(r);n!==-1&&e.adoptedStyleSheets.splice(n,1)}}}catch{}class oRe extends Ls{constructor(t,r){super(),this.styles=t,this.styleSheetCache=r,this._styleSheets=void 0,this.behaviors=Rse(t)}get styleSheets(){if(this._styleSheets===void 0){const t=this.styles,r=this.styleSheetCache;this._styleSheets=TL(t).map(n=>{if(n instanceof CSSStyleSheet)return n;let o=r.get(n);return o===void 0&&(o=new CSSStyleSheet,o.replaceSync(n),r.set(n,o)),o})}return this._styleSheets}addStylesTo(t){Ose(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){Dse(t,this.styleSheets),super.removeStylesFrom(t)}}let iRe=0;function sRe(){return`fast-style-class-${++iRe}`}class aRe extends Ls{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=Rse(t),this.styleSheets=TL(t),this.styleClass=sRe()}addStylesTo(t){const r=this.styleSheets,n=this.styleClass;t=this.normalizeTarget(t);for(let o=0;o{n.add(t);const o=t[this.fieldName];switch(r){case"reflect":const i=this.converter;rn.setAttribute(t,this.attribute,i!==void 0?i.toView(o):o);break;case"boolean":rn.setBooleanAttribute(t,this.attribute,o);break}n.delete(t)})}static collect(t,...r){const n=[];r.push(MA.locate(t));for(let o=0,i=r.length;o1&&(r.property=i),MA.locate(o.constructor).push(r)}if(arguments.length>1){r={},n(e,t);return}return r=e===void 0?{}:e,n}const OW={mode:"open"},DW={},mB=Lb.getById(4,()=>{const e=new Map;return Object.freeze({register(t){return e.has(t.type)?!1:(e.set(t.type,t),!0)},getByType(t){return e.get(t)}})});class kT{constructor(t,r=t.definition){typeof r=="string"&&(r={name:r}),this.type=t,this.name=r.name,this.template=r.template;const n=LA.collect(t,r.attributes),o=new Array(n.length),i={},s={};for(let a=0,l=n.length;a0){const i=this.boundObservables=Object.create(null);for(let s=0,a=o.length;sn.name===r),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(Py),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return this.options.filter!==void 0&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class hRe extends dRe{constructor(t,r){super(t,r)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function pRe(e){return typeof e=="string"&&(e={property:e}),new Cse("fast-slotted",hRe,e)}class gRe{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const vRe=(e,t)=>K_` -`,dRe=(e,t)=>K_` +`,mRe=(e,t)=>K_` =0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}const oC=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(r){Reflect.defineMetadata(e,t,r)}},Reflect.defineMetadata=function(e,t,r){let n=oC.get(r);n===void 0&&oC.set(r,n=new Map),n.set(e,t)},Reflect.getOwnMetadata=function(e,t){const r=oC.get(t);if(r!==void 0)return r.get(e)});class hRe{constructor(t,r){this.container=t,this.key=r}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,Mse(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,r){const{container:n,key:o}=this;return this.container=this.key=void 0,n.registerResolver(o,new ol(o,t,r))}}function Nm(e){const t=e.slice(),r=Object.keys(e),n=r.length;let o;for(let i=0;inull,responsibleForOwnerRequests:!1,defaultResolver:pRe.singleton})}),FW=new Map;function BW(e){return t=>Reflect.getOwnMetadata(e,t)}let MW=null;const qn=Object.freeze({createContainer(e){return new Gy(null,Object.assign({},iC.default,e))},findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:qn.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(Bse,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||qn.getOrCreateDOMContainer()},getOrCreateDOMContainer(e,t){return e?e.$$container$$||new Gy(e,Object.assign({},iC.default,t,{parentLocator:qn.findParentContainer})):MW||(MW=new Gy(null,Object.assign({},iC.default,t,{parentLocator:()=>null})))},getDesignParamtypes:BW("design:paramtypes"),getAnnotationParamtypes:BW("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=FW.get(e);if(t===void 0){const r=e.inject;if(r===void 0){const n=qn.getDesignParamtypes(e),o=qn.getAnnotationParamtypes(e);if(n===void 0)if(o===void 0){const i=Object.getPrototypeOf(e);typeof i=="function"&&i!==Function.prototype?t=Nm(qn.getDependencies(i)):t=[]}else t=Nm(o);else if(o===void 0)t=Nm(n);else{t=Nm(n);let i=o.length,s;for(let u=0;u{const c=qn.findResponsibleContainer(this).get(r),f=this[o];c!==f&&(this[o]=i,a.notify(t))};a.subscribe({handleChange:l},"isConnected")}return i}})},createInterface(e,t){const r=typeof e=="function"?e:t,n=typeof e=="string"?e:e&&"friendlyName"in e&&e.friendlyName||HW,o=typeof e=="string"?!1:e&&"respectConnection"in e&&e.respectConnection||!1,i=function(s,a,l){if(s==null||new.target!==void 0)throw new Error(`No registration for interface: '${i.friendlyName}'`);if(a)qn.defineProperty(s,a,i,o);else{const u=qn.getOrCreateAnnotationParamTypes(s);u[l]=i}};return i.$isInterface=!0,i.friendlyName=n??"(anonymous)",r!=null&&(i.register=function(s,a){return r(new hRe(s,a??i))}),i.toString=function(){return`InterfaceSymbol<${i.friendlyName}>`},i},inject(...e){return function(t,r,n){if(typeof n=="number"){const o=qn.getOrCreateAnnotationParamTypes(t),i=e[0];i!==void 0&&(o[n]=i)}else if(r)qn.defineProperty(t,r,e[0]);else{const o=n?qn.getOrCreateAnnotationParamTypes(n.value):qn.getOrCreateAnnotationParamTypes(t);let i;for(let s=0;s{n.composedPath()[0]!==this.owner&&(n.detail.container=this,n.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...r){return this.context=t,this.register(...r),this.context=null,this}register(...t){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let r,n,o,i,s;const a=this.context;for(let l=0,u=t.length;lthis}))}jitRegister(t,r){if(typeof t!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(SRe.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(wk(t)){const n=t.register(r);if(!(n instanceof Object)||n.resolve==null){const o=r.resolvers.get(t);if(o!=null)return o;throw new Error("A valid resolver was not returned from the static register method")}return n}else{if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{const n=this.config.defaultResolver(t,r);return r.resolvers.set(t,n),n}}}}const aC=new WeakMap;function Mse(e){return function(t,r,n){if(aC.has(n))return aC.get(n);const o=e(t,r,n);return aC.set(n,o),o}}const zb=Object.freeze({instance(e,t){return new ol(e,0,t)},singleton(e,t){return new ol(e,1,t)},transient(e,t){return new ol(e,2,t)},callback(e,t){return new ol(e,3,t)},cachedCallback(e,t){return new ol(e,3,Mse(t))},aliasTo(e,t){return new ol(t,5,e)}});function nw(e){if(e==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function zW(e,t,r){if(e instanceof ol&&e.strategy===4){const n=e.state;let o=n.length;const i=new Array(o);for(;o--;)i[o]=n[o].resolve(t,r);return i}return[e.resolve(t,r)]}const HW="(anonymous)";function $W(e){return typeof e=="object"&&e!==null||typeof e=="function"}const wRe=function(){const e=new WeakMap;let t=!1,r="",n=0;return function(o){return t=e.get(o),t===void 0&&(r=o.toString(),n=r.length,t=n>=29&&n<=100&&r.charCodeAt(n-1)===125&&r.charCodeAt(n-2)<=32&&r.charCodeAt(n-3)===93&&r.charCodeAt(n-4)===101&&r.charCodeAt(n-5)===100&&r.charCodeAt(n-6)===111&&r.charCodeAt(n-7)===99&&r.charCodeAt(n-8)===32&&r.charCodeAt(n-9)===101&&r.charCodeAt(n-10)===118&&r.charCodeAt(n-11)===105&&r.charCodeAt(n-12)===116&&r.charCodeAt(n-13)===97&&r.charCodeAt(n-14)===110&&r.charCodeAt(n-15)===88,e.set(o,t)),t}}(),ow={};function Lse(e){switch(typeof e){case"number":return e>=0&&(e|0)===e;case"string":{const t=ow[e];if(t!==void 0)return t;const r=e.length;if(r===0)return ow[e]=!1;let n=0;for(let o=0;o1||n<48||n>57)return ow[e]=!1;return ow[e]=!0}default:return!1}}function PW(e){return`${e.toLowerCase()}:presentation`}const iw=new Map,jse=Object.freeze({define(e,t,r){const n=PW(e);iw.get(n)===void 0?iw.set(n,t):iw.set(n,!1),r.register(zb.instance(n,t))},forTag(e,t){const r=PW(e),n=iw.get(r);return n===!1?qn.findResponsibleContainer(t).get(r):n||null}});class kRe{constructor(t,r){this.template=t||null,this.styles=r===void 0?null:Array.isArray(r)?Ls.create(r):r instanceof Ls?r:Ls.create([r])}applyTo(t){const r=t.$fastController;r.template===null&&(r.template=this.template),r.styles===null&&(r.styles=this.styles)}}class Uh extends kT{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=jse.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(r={})=>new ARe(this===Uh?class extends Uh{}:this,t,r)}}kr([hv],Uh.prototype,"template",void 0);kr([hv],Uh.prototype,"styles",void 0);function Rm(e,t,r){return typeof e=="function"?e(t,r):e}class ARe{constructor(t,r,n){this.type=t,this.elementDefinition=r,this.overrideDefinition=n,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,r){const n=this.definition,o=this.overrideDefinition,s=`${n.prefix||r.elementPrefix}-${n.baseName}`;r.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:a=>{const l=new kRe(Rm(n.template,a,n),Rm(n.styles,a,n));a.definePresentation(l);let u=Rm(n.shadowOptions,a,n);a.shadowRootMode&&(u?o.shadowOptions||(u.mode=a.shadowRootMode):u!==null&&(u={mode:a.shadowRootMode})),a.defineElement({elementOptions:Rm(n.elementOptions,a,n),shadowOptions:u,attributes:Rm(n.attributes,a,n)})}})}}function zse(e,...t){const r=BA.locate(e);t.forEach(n=>{Object.getOwnPropertyNames(n.prototype).forEach(i=>{i!=="constructor"&&Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(n.prototype,i))}),BA.locate(n).forEach(i=>r.push(i))})}function xRe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function TRe(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}let X1;function IRe(){if(typeof X1=="boolean")return X1;if(!xRe())return X1=!1,X1;const e=document.createElement("style"),t=TRe();t!==null&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),X1=!0}catch{X1=!1}finally{document.head.removeChild(e)}return X1}var qW;(function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"})(qW||(qW={}));const CRe="Enter";class To{}kr([Sr({attribute:"aria-atomic"})],To.prototype,"ariaAtomic",void 0);kr([Sr({attribute:"aria-busy"})],To.prototype,"ariaBusy",void 0);kr([Sr({attribute:"aria-controls"})],To.prototype,"ariaControls",void 0);kr([Sr({attribute:"aria-current"})],To.prototype,"ariaCurrent",void 0);kr([Sr({attribute:"aria-describedby"})],To.prototype,"ariaDescribedby",void 0);kr([Sr({attribute:"aria-details"})],To.prototype,"ariaDetails",void 0);kr([Sr({attribute:"aria-disabled"})],To.prototype,"ariaDisabled",void 0);kr([Sr({attribute:"aria-errormessage"})],To.prototype,"ariaErrormessage",void 0);kr([Sr({attribute:"aria-flowto"})],To.prototype,"ariaFlowto",void 0);kr([Sr({attribute:"aria-haspopup"})],To.prototype,"ariaHaspopup",void 0);kr([Sr({attribute:"aria-hidden"})],To.prototype,"ariaHidden",void 0);kr([Sr({attribute:"aria-invalid"})],To.prototype,"ariaInvalid",void 0);kr([Sr({attribute:"aria-keyshortcuts"})],To.prototype,"ariaKeyshortcuts",void 0);kr([Sr({attribute:"aria-label"})],To.prototype,"ariaLabel",void 0);kr([Sr({attribute:"aria-labelledby"})],To.prototype,"ariaLabelledby",void 0);kr([Sr({attribute:"aria-live"})],To.prototype,"ariaLive",void 0);kr([Sr({attribute:"aria-owns"})],To.prototype,"ariaOwns",void 0);kr([Sr({attribute:"aria-relevant"})],To.prototype,"ariaRelevant",void 0);kr([Sr({attribute:"aria-roledescription"})],To.prototype,"ariaRoledescription",void 0);const NRe=(e,t)=>K_` +***************************************************************************** */function xr(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}const oC=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(r){Reflect.defineMetadata(e,t,r)}},Reflect.defineMetadata=function(e,t,r){let n=oC.get(r);n===void 0&&oC.set(r,n=new Map),n.set(e,t)},Reflect.getOwnMetadata=function(e,t){const r=oC.get(t);if(r!==void 0)return r.get(e)});class yRe{constructor(t,r){this.container=t,this.key=r}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,Lse(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,r){const{container:n,key:o}=this;return this.container=this.key=void 0,n.registerResolver(o,new il(o,t,r))}}function Nm(e){const t=e.slice(),r=Object.keys(e),n=r.length;let o;for(let i=0;inull,responsibleForOwnerRequests:!1,defaultResolver:bRe.singleton})}),BW=new Map;function MW(e){return t=>Reflect.getOwnMetadata(e,t)}let LW=null;const qn=Object.freeze({createContainer(e){return new Gy(null,Object.assign({},iC.default,e))},findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:qn.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(Mse,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||qn.getOrCreateDOMContainer()},getOrCreateDOMContainer(e,t){return e?e.$$container$$||new Gy(e,Object.assign({},iC.default,t,{parentLocator:qn.findParentContainer})):LW||(LW=new Gy(null,Object.assign({},iC.default,t,{parentLocator:()=>null})))},getDesignParamtypes:MW("design:paramtypes"),getAnnotationParamtypes:MW("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=BW.get(e);if(t===void 0){const r=e.inject;if(r===void 0){const n=qn.getDesignParamtypes(e),o=qn.getAnnotationParamtypes(e);if(n===void 0)if(o===void 0){const i=Object.getPrototypeOf(e);typeof i=="function"&&i!==Function.prototype?t=Nm(qn.getDependencies(i)):t=[]}else t=Nm(o);else if(o===void 0)t=Nm(n);else{t=Nm(n);let i=o.length,s;for(let u=0;u{const c=qn.findResponsibleContainer(this).get(r),f=this[o];c!==f&&(this[o]=i,a.notify(t))};a.subscribe({handleChange:l},"isConnected")}return i}})},createInterface(e,t){const r=typeof e=="function"?e:t,n=typeof e=="string"?e:e&&"friendlyName"in e&&e.friendlyName||$W,o=typeof e=="string"?!1:e&&"respectConnection"in e&&e.respectConnection||!1,i=function(s,a,l){if(s==null||new.target!==void 0)throw new Error(`No registration for interface: '${i.friendlyName}'`);if(a)qn.defineProperty(s,a,i,o);else{const u=qn.getOrCreateAnnotationParamTypes(s);u[l]=i}};return i.$isInterface=!0,i.friendlyName=n??"(anonymous)",r!=null&&(i.register=function(s,a){return r(new yRe(s,a??i))}),i.toString=function(){return`InterfaceSymbol<${i.friendlyName}>`},i},inject(...e){return function(t,r,n){if(typeof n=="number"){const o=qn.getOrCreateAnnotationParamTypes(t),i=e[0];i!==void 0&&(o[n]=i)}else if(r)qn.defineProperty(t,r,e[0]);else{const o=n?qn.getOrCreateAnnotationParamTypes(n.value):qn.getOrCreateAnnotationParamTypes(t);let i;for(let s=0;s{n.composedPath()[0]!==this.owner&&(n.detail.container=this,n.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...r){return this.context=t,this.register(...r),this.context=null,this}register(...t){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let r,n,o,i,s;const a=this.context;for(let l=0,u=t.length;lthis}))}jitRegister(t,r){if(typeof t!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(TRe.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(kk(t)){const n=t.register(r);if(!(n instanceof Object)||n.resolve==null){const o=r.resolvers.get(t);if(o!=null)return o;throw new Error("A valid resolver was not returned from the static register method")}return n}else{if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{const n=this.config.defaultResolver(t,r);return r.resolvers.set(t,n),n}}}}const aC=new WeakMap;function Lse(e){return function(t,r,n){if(aC.has(n))return aC.get(n);const o=e(t,r,n);return aC.set(n,o),o}}const zb=Object.freeze({instance(e,t){return new il(e,0,t)},singleton(e,t){return new il(e,1,t)},transient(e,t){return new il(e,2,t)},callback(e,t){return new il(e,3,t)},cachedCallback(e,t){return new il(e,3,Lse(t))},aliasTo(e,t){return new il(t,5,e)}});function ow(e){if(e==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function HW(e,t,r){if(e instanceof il&&e.strategy===4){const n=e.state;let o=n.length;const i=new Array(o);for(;o--;)i[o]=n[o].resolve(t,r);return i}return[e.resolve(t,r)]}const $W="(anonymous)";function PW(e){return typeof e=="object"&&e!==null||typeof e=="function"}const IRe=function(){const e=new WeakMap;let t=!1,r="",n=0;return function(o){return t=e.get(o),t===void 0&&(r=o.toString(),n=r.length,t=n>=29&&n<=100&&r.charCodeAt(n-1)===125&&r.charCodeAt(n-2)<=32&&r.charCodeAt(n-3)===93&&r.charCodeAt(n-4)===101&&r.charCodeAt(n-5)===100&&r.charCodeAt(n-6)===111&&r.charCodeAt(n-7)===99&&r.charCodeAt(n-8)===32&&r.charCodeAt(n-9)===101&&r.charCodeAt(n-10)===118&&r.charCodeAt(n-11)===105&&r.charCodeAt(n-12)===116&&r.charCodeAt(n-13)===97&&r.charCodeAt(n-14)===110&&r.charCodeAt(n-15)===88,e.set(o,t)),t}}(),iw={};function jse(e){switch(typeof e){case"number":return e>=0&&(e|0)===e;case"string":{const t=iw[e];if(t!==void 0)return t;const r=e.length;if(r===0)return iw[e]=!1;let n=0;for(let o=0;o1||n<48||n>57)return iw[e]=!1;return iw[e]=!0}default:return!1}}function qW(e){return`${e.toLowerCase()}:presentation`}const sw=new Map,zse=Object.freeze({define(e,t,r){const n=qW(e);sw.get(n)===void 0?sw.set(n,t):sw.set(n,!1),r.register(zb.instance(n,t))},forTag(e,t){const r=qW(e),n=sw.get(r);return n===!1?qn.findResponsibleContainer(t).get(r):n||null}});class CRe{constructor(t,r){this.template=t||null,this.styles=r===void 0?null:Array.isArray(r)?Ls.create(r):r instanceof Ls?r:Ls.create([r])}applyTo(t){const r=t.$fastController;r.template===null&&(r.template=this.template),r.styles===null&&(r.styles=this.styles)}}class Yh extends AT{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=zse.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(r={})=>new NRe(this===Yh?class extends Yh{}:this,t,r)}}xr([hv],Yh.prototype,"template",void 0);xr([hv],Yh.prototype,"styles",void 0);function Rm(e,t,r){return typeof e=="function"?e(t,r):e}class NRe{constructor(t,r,n){this.type=t,this.elementDefinition=r,this.overrideDefinition=n,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,r){const n=this.definition,o=this.overrideDefinition,s=`${n.prefix||r.elementPrefix}-${n.baseName}`;r.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:a=>{const l=new CRe(Rm(n.template,a,n),Rm(n.styles,a,n));a.definePresentation(l);let u=Rm(n.shadowOptions,a,n);a.shadowRootMode&&(u?o.shadowOptions||(u.mode=a.shadowRootMode):u!==null&&(u={mode:a.shadowRootMode})),a.defineElement({elementOptions:Rm(n.elementOptions,a,n),shadowOptions:u,attributes:Rm(n.attributes,a,n)})}})}}function Hse(e,...t){const r=MA.locate(e);t.forEach(n=>{Object.getOwnPropertyNames(n.prototype).forEach(i=>{i!=="constructor"&&Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(n.prototype,i))}),MA.locate(n).forEach(i=>r.push(i))})}function RRe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ORe(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}let Q1;function DRe(){if(typeof Q1=="boolean")return Q1;if(!RRe())return Q1=!1,Q1;const e=document.createElement("style"),t=ORe();t!==null&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),Q1=!0}catch{Q1=!1}finally{document.head.removeChild(e)}return Q1}var WW;(function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"})(WW||(WW={}));const FRe="Enter";class To{}xr([wr({attribute:"aria-atomic"})],To.prototype,"ariaAtomic",void 0);xr([wr({attribute:"aria-busy"})],To.prototype,"ariaBusy",void 0);xr([wr({attribute:"aria-controls"})],To.prototype,"ariaControls",void 0);xr([wr({attribute:"aria-current"})],To.prototype,"ariaCurrent",void 0);xr([wr({attribute:"aria-describedby"})],To.prototype,"ariaDescribedby",void 0);xr([wr({attribute:"aria-details"})],To.prototype,"ariaDetails",void 0);xr([wr({attribute:"aria-disabled"})],To.prototype,"ariaDisabled",void 0);xr([wr({attribute:"aria-errormessage"})],To.prototype,"ariaErrormessage",void 0);xr([wr({attribute:"aria-flowto"})],To.prototype,"ariaFlowto",void 0);xr([wr({attribute:"aria-haspopup"})],To.prototype,"ariaHaspopup",void 0);xr([wr({attribute:"aria-hidden"})],To.prototype,"ariaHidden",void 0);xr([wr({attribute:"aria-invalid"})],To.prototype,"ariaInvalid",void 0);xr([wr({attribute:"aria-keyshortcuts"})],To.prototype,"ariaKeyshortcuts",void 0);xr([wr({attribute:"aria-label"})],To.prototype,"ariaLabel",void 0);xr([wr({attribute:"aria-labelledby"})],To.prototype,"ariaLabelledby",void 0);xr([wr({attribute:"aria-live"})],To.prototype,"ariaLive",void 0);xr([wr({attribute:"aria-owns"})],To.prototype,"ariaOwns",void 0);xr([wr({attribute:"aria-relevant"})],To.prototype,"ariaRelevant",void 0);xr([wr({attribute:"aria-roledescription"})],To.prototype,"ariaRoledescription",void 0);const BRe=(e,t)=>K_` -`,WW="form-associated-proxy",GW="ElementInternals",KW=GW in window&&"setFormValue"in window[GW].prototype,VW=new WeakMap;function RRe(e){const t=class extends e{constructor(...r){super(...r),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return KW}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const r=this.proxy.labels,n=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),o=r?n.concat(Array.from(r)):n;return Object.freeze(o)}else return Py}valueChanged(r,n){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(r,n){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(r,n){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),rn.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(r,n){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(r,n){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),rn.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!KW)return null;let r=VW.get(this);return r||(r=this.attachInternals(),VW.set(this,r)),r}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(r=>this.proxy.removeEventListener(r,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(r,n,o){this.elementInternals?this.elementInternals.setValidity(r,n,o):typeof n=="string"&&this.proxy.setCustomValidity(n)}formDisabledCallback(r){this.disabled=r}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var r;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(n=>this.proxy.addEventListener(n,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",WW),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",WW)),(r=this.shadowRoot)===null||r===void 0||r.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var r;this.removeChild(this.proxy),(r=this.shadowRoot)===null||r===void 0||r.removeChild(this.proxySlot)}validate(r){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,r)}setFormValue(r,n){this.elementInternals&&this.elementInternals.setFormValue(r,n||r)}_keypressHandler(r){switch(r.key){case CRe:if(this.form instanceof HTMLFormElement){const n=this.form.querySelector("[type=submit]");n==null||n.click()}break}}stopPropagation(r){r.stopPropagation()}};return Sr({mode:"boolean"})(t.prototype,"disabled"),Sr({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),Sr({attribute:"current-value"})(t.prototype,"currentValue"),Sr(t.prototype,"name"),Sr({mode:"boolean"})(t.prototype,"required"),hv(t.prototype,"value"),t}class ORe extends Uh{}class DRe extends RRe(ORe){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let yu=class extends DRe{constructor(){super(...arguments),this.handleClick=t=>{var r;this.disabled&&((r=this.defaultSlottedContent)===null||r===void 0?void 0:r.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;(t=this.form)===null||t===void 0||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,r){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),r==="submit"&&this.addEventListener("click",this.handleSubmission),t==="submit"&&this.removeEventListener("click",this.handleSubmission),r==="reset"&&this.addEventListener("click",this.handleFormReset),t==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const r=Array.from((t=this.control)===null||t===void 0?void 0:t.children);r&&r.forEach(n=>{n.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();const r=Array.from((t=this.control)===null||t===void 0?void 0:t.children);r&&r.forEach(n=>{n.removeEventListener("click",this.handleClick)})}};kr([Sr({mode:"boolean"})],yu.prototype,"autofocus",void 0);kr([Sr({attribute:"form"})],yu.prototype,"formId",void 0);kr([Sr],yu.prototype,"formaction",void 0);kr([Sr],yu.prototype,"formenctype",void 0);kr([Sr],yu.prototype,"formmethod",void 0);kr([Sr({mode:"boolean"})],yu.prototype,"formnovalidate",void 0);kr([Sr],yu.prototype,"formtarget",void 0);kr([Sr],yu.prototype,"type",void 0);kr([hv],yu.prototype,"defaultSlottedContent",void 0);class AT{}kr([Sr({attribute:"aria-expanded"})],AT.prototype,"ariaExpanded",void 0);kr([Sr({attribute:"aria-pressed"})],AT.prototype,"ariaPressed",void 0);zse(AT,To);zse(yu,cRe,AT);function mB(e){const t=e.parentElement;if(t)return t;{const r=e.getRootNode();if(r.host instanceof HTMLElement)return r.host}return null}function FRe(e,t){let r=t;for(;r!==null;){if(r===e)return!0;r=mB(r)}return!1}const lf=document.createElement("div");function BRe(e){return e instanceof kT}class IL{setProperty(t,r){rn.queueUpdate(()=>this.target.setProperty(t,r))}removeProperty(t){rn.queueUpdate(()=>this.target.removeProperty(t))}}class MRe extends IL{constructor(t){super();const r=new CSSStyleSheet;this.target=r.cssRules[r.insertRule(":host{}")].style,t.$fastController.addStyles(Ls.create([r]))}}class LRe extends IL{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class jRe extends IL{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const r=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[r].style}}}class Hse{constructor(t){this.store=new Map,this.target=null;const r=t.$fastController;this.style=document.createElement("style"),r.addStyles(this.style),ti.getNotifier(r).subscribe(this,"isConnected"),this.handleChange(r,"isConnected")}targetChanged(){if(this.target!==null)for(const[t,r]of this.store.entries())this.target.setProperty(t,r)}setProperty(t,r){this.store.set(t,r),rn.queueUpdate(()=>{this.target!==null&&this.target.setProperty(t,r)})}removeProperty(t){this.store.delete(t),rn.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(t)})}handleChange(t,r){const{sheet:n}=this.style;if(n){const o=n.insertRule(":host{}",n.cssRules.length);this.target=n.cssRules[o].style}else this.target=null}}kr([hv],Hse.prototype,"target",void 0);class zRe{constructor(t){this.target=t.style}setProperty(t,r){rn.queueUpdate(()=>this.target.setProperty(t,r))}removeProperty(t){rn.queueUpdate(()=>this.target.removeProperty(t))}}class Go{setProperty(t,r){Go.properties[t]=r;for(const n of Go.roots.values())M0.getOrCreate(Go.normalizeRoot(n)).setProperty(t,r)}removeProperty(t){delete Go.properties[t];for(const r of Go.roots.values())M0.getOrCreate(Go.normalizeRoot(r)).removeProperty(t)}static registerRoot(t){const{roots:r}=Go;if(!r.has(t)){r.add(t);const n=M0.getOrCreate(this.normalizeRoot(t));for(const o in Go.properties)n.setProperty(o,Go.properties[o])}}static unregisterRoot(t){const{roots:r}=Go;if(r.has(t)){r.delete(t);const n=M0.getOrCreate(Go.normalizeRoot(t));for(const o in Go.properties)n.removeProperty(o)}}static normalizeRoot(t){return t===lf?document:t}}Go.roots=new Set;Go.properties={};const lC=new WeakMap,HRe=rn.supportsAdoptedStyleSheets?MRe:Hse,M0=Object.freeze({getOrCreate(e){if(lC.has(e))return lC.get(e);let t;return e===lf?t=new Go:e instanceof Document?t=rn.supportsAdoptedStyleSheets?new LRe:new jRe:BRe(e)?t=new HRe(e):t=new zRe(e),lC.set(e,t),t}});class Ji extends Fse{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,t.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=Ji.uniqueId(),Ji.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new Ji({name:typeof t=="string"?t:t.name,cssCustomPropertyName:typeof t=="string"?t:t.cssCustomPropertyName===void 0?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return typeof t.cssCustomProperty=="string"}static isDerivedDesignTokenValue(t){return typeof t=="function"}static getTokenById(t){return Ji.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const r=co.getOrCreate(t).get(this);if(r!==void 0)return r;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,r){return this._appliedTo.add(t),r instanceof Ji&&(r=this.alias(r)),co.getOrCreate(t).set(this,r),this}deleteValueFor(t){return this._appliedTo.delete(t),co.existsFor(t)&&co.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(lf,t),this}subscribe(t,r){const n=this.getOrCreateSubscriberSet(r);r&&!co.existsFor(r)&&co.getOrCreate(r),n.has(t)||n.add(t)}unsubscribe(t,r){const n=this.subscribers.get(r||this);n&&n.has(t)&&n.delete(t)}notify(t){const r=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(n=>n.handleChange(r)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(n=>n.handleChange(r))}alias(t){return r=>t.getValueFor(r)}}Ji.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})();Ji.tokensById=new Map;class $Re{startReflection(t,r){t.subscribe(this,r),this.handleChange({token:t,target:r})}stopReflection(t,r){t.unsubscribe(this,r),this.remove(t,r)}handleChange(t){const{token:r,target:n}=t;this.add(r,n)}add(t,r){M0.getOrCreate(r).setProperty(t.cssCustomProperty,this.resolveCSSValue(co.getOrCreate(r).get(t)))}remove(t,r){M0.getOrCreate(r).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}}class PRe{constructor(t,r,n){this.source=t,this.token=r,this.node=n,this.dependencies=new Set,this.observer=ti.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,Wy))}}class qRe{constructor(){this.values=new Map}set(t,r){this.values.get(t)!==r&&(this.values.set(t,r),ti.getNotifier(this).notify(t.id))}get(t){return ti.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const Om=new WeakMap,Dm=new WeakMap;class co{constructor(t){this.target=t,this.store=new qRe,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(r,n)=>{const o=Ji.getTokenById(n);if(o&&(o.notify(this.target),Ji.isCSSDesignToken(o))){const i=this.parent,s=this.isReflecting(o);if(i){const a=i.get(o),l=r.get(o);a!==l&&!s?this.reflectToCSS(o):a===l&&s&&this.stopReflectToCSS(o)}else s||this.reflectToCSS(o)}}},Om.set(t,this),ti.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof kT?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return Om.get(t)||new co(t)}static existsFor(t){return Om.has(t)}static findParent(t){if(lf!==t.target){let r=mB(t.target);for(;r!==null;){if(Om.has(r))return Om.get(r);r=mB(r)}return co.getOrCreate(lf)}return null}static findClosestAssignedNode(t,r){let n=r;do{if(n.has(t))return n;n=n.parent?n.parent:n.target!==lf?co.getOrCreate(lf):null}while(n!==null);return null}get parent(){return Dm.get(this)||null}has(t){return this.assignedValues.has(t)}get(t){const r=this.store.get(t);if(r!==void 0)return r;const n=this.getRaw(t);if(n!==void 0)return this.hydrate(t,n),this.get(t)}getRaw(t){var r;return this.assignedValues.has(t)?this.assignedValues.get(t):(r=co.findClosestAssignedNode(t,this))===null||r===void 0?void 0:r.getRaw(t)}set(t,r){Ji.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,r),Ji.isDerivedDesignTokenValue(r)?this.setupBindingObserver(t,r):this.store.set(t,r)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const r=this.getRaw(t);r?this.hydrate(t,r):this.store.delete(t)}bind(){const t=co.findParent(this);t&&t.appendChild(this);for(const r of this.assignedValues.keys())r.notify(this.target)}unbind(){this.parent&&Dm.get(this).removeChild(this)}appendChild(t){t.parent&&Dm.get(t).removeChild(t);const r=this.children.filter(n=>t.contains(n));Dm.set(t,this),this.children.push(t),r.forEach(n=>t.appendChild(n)),ti.getNotifier(this.store).subscribe(t);for(const[n,o]of this.store.all())t.hydrate(n,this.bindingObservers.has(n)?this.getRaw(n):o)}removeChild(t){const r=this.children.indexOf(t);return r!==-1&&this.children.splice(r,1),ti.getNotifier(this.store).unsubscribe(t),t.parent===this?Dm.delete(t):!1}contains(t){return FRe(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),co.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),co.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,r){const n=Ji.getTokenById(r);n&&this.hydrate(n,this.getRaw(n))}hydrate(t,r){if(!this.has(t)){const n=this.bindingObservers.get(t);Ji.isDerivedDesignTokenValue(r)?n?n.source!==r&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,r)):this.setupBindingObserver(t,r):(n&&this.tearDownBindingObserver(t),this.store.set(t,r))}}setupBindingObserver(t,r){const n=new PRe(r,t,this);return this.bindingObservers.set(t,n),n}tearDownBindingObserver(t){return this.bindingObservers.has(t)?(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0):!1}}co.cssCustomPropertyReflector=new $Re;kr([hv],co.prototype,"children",void 0);function WRe(e){return Ji.from(e)}const $se=Object.freeze({create:WRe,notifyConnection(e){return!e.isConnected||!co.existsFor(e)?!1:(co.getOrCreate(e).bind(),!0)},notifyDisconnection(e){return e.isConnected||!co.existsFor(e)?!1:(co.getOrCreate(e).unbind(),!0)},registerRoot(e=lf){Go.registerRoot(e)},unregisterRoot(e=lf){Go.unregisterRoot(e)}}),uC=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),cC=new Map,kk=new Map;let ig=null;const Fm=qn.createInterface(e=>e.cachedCallback(t=>(ig===null&&(ig=new qse(null,t)),ig))),Pse=Object.freeze({tagFor(e){return kk.get(e)},responsibleFor(e){const t=e.$$designSystem$$;return t||qn.findResponsibleContainer(e).get(Fm)},getOrCreate(e){if(!e)return ig===null&&(ig=qn.getOrCreateDOMContainer().get(Fm)),ig;const t=e.$$designSystem$$;if(t)return t;const r=qn.getOrCreateDOMContainer(e);if(r.has(Fm,!1))return r.get(Fm);{const n=new qse(e,r);return r.register(zb.instance(Fm,n)),n}}});function GRe(e,t,r){return typeof e=="string"?{name:e,type:t,callback:r}:e}class qse{constructor(t,r){this.owner=t,this.container=r,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>uC.definitionCallbackOnly,t!==null&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const r=this.container,n=[],o=this.disambiguate,i=this.shadowRootMode,s={elementPrefix:this.prefix,tryDefineElement(a,l,u){const c=GRe(a,l,u),{name:f,callback:d,baseClass:h}=c;let{type:g}=c,v=f,y=cC.get(v),E=!0;for(;y;){const _=o(v,g,y);switch(_){case uC.ignoreDuplicate:return;case uC.definitionCallbackOnly:E=!1,y=void 0;break;default:v=_,y=cC.get(v);break}}E&&((kk.has(g)||g===Uh)&&(g=class extends g{}),cC.set(v,g),kk.set(g,v),h&&kk.set(h,v)),n.push(new KRe(r,v,g,i,d,E))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&$se.registerRoot(this.designTokenRoot)),r.registerWithContext(s,...t);for(const a of n)a.callback(a),a.willDefine&&a.definition!==null&&a.definition.define();return this}}class KRe{constructor(t,r,n,o,i,s){this.container=t,this.name=r,this.type=n,this.shadowRootMode=o,this.callback=i,this.willDefine=s,this.definition=null}definePresentation(t){jse.define(this.name,t,this.container)}defineElement(t){this.definition=new wT(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return Pse.tagFor(t)}}const VRe="not-allowed",URe=":host([hidden]){display:none}";function YRe(e){return`${URe}:host{display:${e}}`}const xT=IRe()?"focus-visible":"focus";function XRe(e){return Pse.getOrCreate(e).withPrefix("vscode")}function QRe(e){window.addEventListener("load",()=>{new MutationObserver(()=>{UW(e)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),UW(e)})}function UW(e){const t=getComputedStyle(document.body),r=document.querySelector("body");if(r){const n=r.getAttribute("data-vscode-theme-kind");for(const[o,i]of e){let s=t.getPropertyValue(o).toString();if(n==="vscode-high-contrast")s.length===0&&i.name.includes("background")&&(s="transparent"),i.name==="button-icon-hover-background"&&(s="transparent");else if(n==="vscode-high-contrast-light"){if(s.length===0&&i.name.includes("background"))switch(i.name){case"button-primary-hover-background":s="#0F4A85";break;case"button-secondary-hover-background":s="transparent";break;case"button-icon-hover-background":s="transparent";break}}else i.name==="contrast-active-border"&&(s="transparent");i.setValueFor(r,s)}}}const YW=new Map;let XW=!1;function pt(e,t){const r=$se.create(e);if(t){if(t.includes("--fake-vscode-token")){const n="id"+Math.random().toString(16).slice(2);t=`${t}-${n}`}YW.set(t,r)}return XW||(QRe(YW),XW=!0),r}pt("background","--vscode-editor-background").withDefault("#1e1e1e");const Qd=pt("border-width").withDefault(1),ZRe=pt("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518");pt("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df");pt("corner-radius").withDefault(0);const JRe=pt("corner-radius-round").withDefault(2),QW=pt("design-unit").withDefault(4),eOe=pt("disabled-opacity").withDefault(.4),TT=pt("focus-border","--vscode-focusBorder").withDefault("#007fd4"),tOe=pt("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol");pt("font-weight","--vscode-font-weight").withDefault("400");const rOe=pt("foreground","--vscode-foreground").withDefault("#cccccc");pt("input-height").withDefault("26");pt("input-min-width").withDefault("100px");const nOe=pt("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),oOe=pt("type-ramp-base-line-height").withDefault("normal");pt("type-ramp-minus1-font-size").withDefault("11px");pt("type-ramp-minus1-line-height").withDefault("16px");pt("type-ramp-minus2-font-size").withDefault("9px");pt("type-ramp-minus2-line-height").withDefault("16px");pt("type-ramp-plus1-font-size").withDefault("16px");pt("type-ramp-plus1-line-height").withDefault("24px");pt("scrollbarWidth").withDefault("10px");pt("scrollbarHeight").withDefault("10px");pt("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966");pt("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3");pt("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66");pt("badge-background","--vscode-badge-background").withDefault("#4d4d4d");pt("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff");const iOe=pt("button-border","--vscode-button-border").withDefault("transparent"),ZW=pt("button-icon-background").withDefault("transparent"),sOe=pt("button-icon-corner-radius").withDefault("5px"),aOe=pt("button-icon-outline-offset").withDefault(0),JW=pt("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),lOe=pt("button-icon-padding").withDefault("3px"),sg=pt("button-primary-background","--vscode-button-background").withDefault("#0e639c"),Wse=pt("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),Gse=pt("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),fC=pt("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),uOe=pt("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),cOe=pt("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),fOe=pt("button-padding-horizontal").withDefault("11px"),dOe=pt("button-padding-vertical").withDefault("4px");pt("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c");pt("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c");pt("checkbox-corner-radius").withDefault(3);pt("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0");pt("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771");pt("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff");pt("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e");pt("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545");pt("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c");pt("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c");pt("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0");pt("dropdown-list-max-height").withDefault("200px");pt("input-background","--vscode-input-background").withDefault("#3c3c3c");pt("input-foreground","--vscode-input-foreground").withDefault("#cccccc");pt("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc");pt("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff");pt("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff");pt("progress-background","--vscode-progressBar-background").withDefault("#0e70c0");pt("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7");pt("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7");pt("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799");pt("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e");pt("panel-view-border","--vscode-panel-border").withDefault("#80808059");pt("tag-corner-radius").withDefault("2px");const hOe=V_` - ${YRe("inline-flex")} :host { +`,GW="form-associated-proxy",KW="ElementInternals",VW=KW in window&&"setFormValue"in window[KW].prototype,UW=new WeakMap;function MRe(e){const t=class extends e{constructor(...r){super(...r),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return VW}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const r=this.proxy.labels,n=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),o=r?n.concat(Array.from(r)):n;return Object.freeze(o)}else return Py}valueChanged(r,n){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(r,n){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(r,n){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),rn.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(r,n){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(r,n){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),rn.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!VW)return null;let r=UW.get(this);return r||(r=this.attachInternals(),UW.set(this,r)),r}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(r=>this.proxy.removeEventListener(r,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(r,n,o){this.elementInternals?this.elementInternals.setValidity(r,n,o):typeof n=="string"&&this.proxy.setCustomValidity(n)}formDisabledCallback(r){this.disabled=r}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var r;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(n=>this.proxy.addEventListener(n,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",GW),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",GW)),(r=this.shadowRoot)===null||r===void 0||r.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var r;this.removeChild(this.proxy),(r=this.shadowRoot)===null||r===void 0||r.removeChild(this.proxySlot)}validate(r){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,r)}setFormValue(r,n){this.elementInternals&&this.elementInternals.setFormValue(r,n||r)}_keypressHandler(r){switch(r.key){case FRe:if(this.form instanceof HTMLFormElement){const n=this.form.querySelector("[type=submit]");n==null||n.click()}break}}stopPropagation(r){r.stopPropagation()}};return wr({mode:"boolean"})(t.prototype,"disabled"),wr({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),wr({attribute:"current-value"})(t.prototype,"currentValue"),wr(t.prototype,"name"),wr({mode:"boolean"})(t.prototype,"required"),hv(t.prototype,"value"),t}class LRe extends Yh{}class jRe extends MRe(LRe){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let yu=class extends jRe{constructor(){super(...arguments),this.handleClick=t=>{var r;this.disabled&&((r=this.defaultSlottedContent)===null||r===void 0?void 0:r.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;(t=this.form)===null||t===void 0||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,r){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),r==="submit"&&this.addEventListener("click",this.handleSubmission),t==="submit"&&this.removeEventListener("click",this.handleSubmission),r==="reset"&&this.addEventListener("click",this.handleFormReset),t==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const r=Array.from((t=this.control)===null||t===void 0?void 0:t.children);r&&r.forEach(n=>{n.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();const r=Array.from((t=this.control)===null||t===void 0?void 0:t.children);r&&r.forEach(n=>{n.removeEventListener("click",this.handleClick)})}};xr([wr({mode:"boolean"})],yu.prototype,"autofocus",void 0);xr([wr({attribute:"form"})],yu.prototype,"formId",void 0);xr([wr],yu.prototype,"formaction",void 0);xr([wr],yu.prototype,"formenctype",void 0);xr([wr],yu.prototype,"formmethod",void 0);xr([wr({mode:"boolean"})],yu.prototype,"formnovalidate",void 0);xr([wr],yu.prototype,"formtarget",void 0);xr([wr],yu.prototype,"type",void 0);xr([hv],yu.prototype,"defaultSlottedContent",void 0);class xT{}xr([wr({attribute:"aria-expanded"})],xT.prototype,"ariaExpanded",void 0);xr([wr({attribute:"aria-pressed"})],xT.prototype,"ariaPressed",void 0);Hse(xT,To);Hse(yu,gRe,xT);function yB(e){const t=e.parentElement;if(t)return t;{const r=e.getRootNode();if(r.host instanceof HTMLElement)return r.host}return null}function zRe(e,t){let r=t;for(;r!==null;){if(r===e)return!0;r=yB(r)}return!1}const lf=document.createElement("div");function HRe(e){return e instanceof AT}class CL{setProperty(t,r){rn.queueUpdate(()=>this.target.setProperty(t,r))}removeProperty(t){rn.queueUpdate(()=>this.target.removeProperty(t))}}class $Re extends CL{constructor(t){super();const r=new CSSStyleSheet;this.target=r.cssRules[r.insertRule(":host{}")].style,t.$fastController.addStyles(Ls.create([r]))}}class PRe extends CL{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class qRe extends CL{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const r=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[r].style}}}class $se{constructor(t){this.store=new Map,this.target=null;const r=t.$fastController;this.style=document.createElement("style"),r.addStyles(this.style),ti.getNotifier(r).subscribe(this,"isConnected"),this.handleChange(r,"isConnected")}targetChanged(){if(this.target!==null)for(const[t,r]of this.store.entries())this.target.setProperty(t,r)}setProperty(t,r){this.store.set(t,r),rn.queueUpdate(()=>{this.target!==null&&this.target.setProperty(t,r)})}removeProperty(t){this.store.delete(t),rn.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(t)})}handleChange(t,r){const{sheet:n}=this.style;if(n){const o=n.insertRule(":host{}",n.cssRules.length);this.target=n.cssRules[o].style}else this.target=null}}xr([hv],$se.prototype,"target",void 0);class WRe{constructor(t){this.target=t.style}setProperty(t,r){rn.queueUpdate(()=>this.target.setProperty(t,r))}removeProperty(t){rn.queueUpdate(()=>this.target.removeProperty(t))}}class Go{setProperty(t,r){Go.properties[t]=r;for(const n of Go.roots.values())M0.getOrCreate(Go.normalizeRoot(n)).setProperty(t,r)}removeProperty(t){delete Go.properties[t];for(const r of Go.roots.values())M0.getOrCreate(Go.normalizeRoot(r)).removeProperty(t)}static registerRoot(t){const{roots:r}=Go;if(!r.has(t)){r.add(t);const n=M0.getOrCreate(this.normalizeRoot(t));for(const o in Go.properties)n.setProperty(o,Go.properties[o])}}static unregisterRoot(t){const{roots:r}=Go;if(r.has(t)){r.delete(t);const n=M0.getOrCreate(Go.normalizeRoot(t));for(const o in Go.properties)n.removeProperty(o)}}static normalizeRoot(t){return t===lf?document:t}}Go.roots=new Set;Go.properties={};const lC=new WeakMap,GRe=rn.supportsAdoptedStyleSheets?$Re:$se,M0=Object.freeze({getOrCreate(e){if(lC.has(e))return lC.get(e);let t;return e===lf?t=new Go:e instanceof Document?t=rn.supportsAdoptedStyleSheets?new PRe:new qRe:HRe(e)?t=new GRe(e):t=new WRe(e),lC.set(e,t),t}});class Ji extends Bse{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,t.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=Ji.uniqueId(),Ji.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new Ji({name:typeof t=="string"?t:t.name,cssCustomPropertyName:typeof t=="string"?t:t.cssCustomPropertyName===void 0?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return typeof t.cssCustomProperty=="string"}static isDerivedDesignTokenValue(t){return typeof t=="function"}static getTokenById(t){return Ji.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const r=co.getOrCreate(t).get(this);if(r!==void 0)return r;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,r){return this._appliedTo.add(t),r instanceof Ji&&(r=this.alias(r)),co.getOrCreate(t).set(this,r),this}deleteValueFor(t){return this._appliedTo.delete(t),co.existsFor(t)&&co.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(lf,t),this}subscribe(t,r){const n=this.getOrCreateSubscriberSet(r);r&&!co.existsFor(r)&&co.getOrCreate(r),n.has(t)||n.add(t)}unsubscribe(t,r){const n=this.subscribers.get(r||this);n&&n.has(t)&&n.delete(t)}notify(t){const r=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(n=>n.handleChange(r)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(n=>n.handleChange(r))}alias(t){return r=>t.getValueFor(r)}}Ji.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})();Ji.tokensById=new Map;class KRe{startReflection(t,r){t.subscribe(this,r),this.handleChange({token:t,target:r})}stopReflection(t,r){t.unsubscribe(this,r),this.remove(t,r)}handleChange(t){const{token:r,target:n}=t;this.add(r,n)}add(t,r){M0.getOrCreate(r).setProperty(t.cssCustomProperty,this.resolveCSSValue(co.getOrCreate(r).get(t)))}remove(t,r){M0.getOrCreate(r).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}}class VRe{constructor(t,r,n){this.source=t,this.token=r,this.node=n,this.dependencies=new Set,this.observer=ti.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,Wy))}}class URe{constructor(){this.values=new Map}set(t,r){this.values.get(t)!==r&&(this.values.set(t,r),ti.getNotifier(this).notify(t.id))}get(t){return ti.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const Om=new WeakMap,Dm=new WeakMap;class co{constructor(t){this.target=t,this.store=new URe,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(r,n)=>{const o=Ji.getTokenById(n);if(o&&(o.notify(this.target),Ji.isCSSDesignToken(o))){const i=this.parent,s=this.isReflecting(o);if(i){const a=i.get(o),l=r.get(o);a!==l&&!s?this.reflectToCSS(o):a===l&&s&&this.stopReflectToCSS(o)}else s||this.reflectToCSS(o)}}},Om.set(t,this),ti.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof AT?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return Om.get(t)||new co(t)}static existsFor(t){return Om.has(t)}static findParent(t){if(lf!==t.target){let r=yB(t.target);for(;r!==null;){if(Om.has(r))return Om.get(r);r=yB(r)}return co.getOrCreate(lf)}return null}static findClosestAssignedNode(t,r){let n=r;do{if(n.has(t))return n;n=n.parent?n.parent:n.target!==lf?co.getOrCreate(lf):null}while(n!==null);return null}get parent(){return Dm.get(this)||null}has(t){return this.assignedValues.has(t)}get(t){const r=this.store.get(t);if(r!==void 0)return r;const n=this.getRaw(t);if(n!==void 0)return this.hydrate(t,n),this.get(t)}getRaw(t){var r;return this.assignedValues.has(t)?this.assignedValues.get(t):(r=co.findClosestAssignedNode(t,this))===null||r===void 0?void 0:r.getRaw(t)}set(t,r){Ji.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,r),Ji.isDerivedDesignTokenValue(r)?this.setupBindingObserver(t,r):this.store.set(t,r)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const r=this.getRaw(t);r?this.hydrate(t,r):this.store.delete(t)}bind(){const t=co.findParent(this);t&&t.appendChild(this);for(const r of this.assignedValues.keys())r.notify(this.target)}unbind(){this.parent&&Dm.get(this).removeChild(this)}appendChild(t){t.parent&&Dm.get(t).removeChild(t);const r=this.children.filter(n=>t.contains(n));Dm.set(t,this),this.children.push(t),r.forEach(n=>t.appendChild(n)),ti.getNotifier(this.store).subscribe(t);for(const[n,o]of this.store.all())t.hydrate(n,this.bindingObservers.has(n)?this.getRaw(n):o)}removeChild(t){const r=this.children.indexOf(t);return r!==-1&&this.children.splice(r,1),ti.getNotifier(this.store).unsubscribe(t),t.parent===this?Dm.delete(t):!1}contains(t){return zRe(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),co.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),co.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,r){const n=Ji.getTokenById(r);n&&this.hydrate(n,this.getRaw(n))}hydrate(t,r){if(!this.has(t)){const n=this.bindingObservers.get(t);Ji.isDerivedDesignTokenValue(r)?n?n.source!==r&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,r)):this.setupBindingObserver(t,r):(n&&this.tearDownBindingObserver(t),this.store.set(t,r))}}setupBindingObserver(t,r){const n=new VRe(r,t,this);return this.bindingObservers.set(t,n),n}tearDownBindingObserver(t){return this.bindingObservers.has(t)?(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0):!1}}co.cssCustomPropertyReflector=new KRe;xr([hv],co.prototype,"children",void 0);function YRe(e){return Ji.from(e)}const Pse=Object.freeze({create:YRe,notifyConnection(e){return!e.isConnected||!co.existsFor(e)?!1:(co.getOrCreate(e).bind(),!0)},notifyDisconnection(e){return e.isConnected||!co.existsFor(e)?!1:(co.getOrCreate(e).unbind(),!0)},registerRoot(e=lf){Go.registerRoot(e)},unregisterRoot(e=lf){Go.unregisterRoot(e)}}),uC=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),cC=new Map,Ak=new Map;let ig=null;const Fm=qn.createInterface(e=>e.cachedCallback(t=>(ig===null&&(ig=new Wse(null,t)),ig))),qse=Object.freeze({tagFor(e){return Ak.get(e)},responsibleFor(e){const t=e.$$designSystem$$;return t||qn.findResponsibleContainer(e).get(Fm)},getOrCreate(e){if(!e)return ig===null&&(ig=qn.getOrCreateDOMContainer().get(Fm)),ig;const t=e.$$designSystem$$;if(t)return t;const r=qn.getOrCreateDOMContainer(e);if(r.has(Fm,!1))return r.get(Fm);{const n=new Wse(e,r);return r.register(zb.instance(Fm,n)),n}}});function XRe(e,t,r){return typeof e=="string"?{name:e,type:t,callback:r}:e}class Wse{constructor(t,r){this.owner=t,this.container=r,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>uC.definitionCallbackOnly,t!==null&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const r=this.container,n=[],o=this.disambiguate,i=this.shadowRootMode,s={elementPrefix:this.prefix,tryDefineElement(a,l,u){const c=XRe(a,l,u),{name:f,callback:d,baseClass:h}=c;let{type:g}=c,v=f,y=cC.get(v),E=!0;for(;y;){const _=o(v,g,y);switch(_){case uC.ignoreDuplicate:return;case uC.definitionCallbackOnly:E=!1,y=void 0;break;default:v=_,y=cC.get(v);break}}E&&((Ak.has(g)||g===Yh)&&(g=class extends g{}),cC.set(v,g),Ak.set(g,v),h&&Ak.set(h,v)),n.push(new QRe(r,v,g,i,d,E))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&Pse.registerRoot(this.designTokenRoot)),r.registerWithContext(s,...t);for(const a of n)a.callback(a),a.willDefine&&a.definition!==null&&a.definition.define();return this}}class QRe{constructor(t,r,n,o,i,s){this.container=t,this.name=r,this.type=n,this.shadowRootMode=o,this.callback=i,this.willDefine=s,this.definition=null}definePresentation(t){zse.define(this.name,t,this.container)}defineElement(t){this.definition=new kT(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return qse.tagFor(t)}}const ZRe="not-allowed",JRe=":host([hidden]){display:none}";function eOe(e){return`${JRe}:host{display:${e}}`}const TT=DRe()?"focus-visible":"focus";function tOe(e){return qse.getOrCreate(e).withPrefix("vscode")}function rOe(e){window.addEventListener("load",()=>{new MutationObserver(()=>{YW(e)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),YW(e)})}function YW(e){const t=getComputedStyle(document.body),r=document.querySelector("body");if(r){const n=r.getAttribute("data-vscode-theme-kind");for(const[o,i]of e){let s=t.getPropertyValue(o).toString();if(n==="vscode-high-contrast")s.length===0&&i.name.includes("background")&&(s="transparent"),i.name==="button-icon-hover-background"&&(s="transparent");else if(n==="vscode-high-contrast-light"){if(s.length===0&&i.name.includes("background"))switch(i.name){case"button-primary-hover-background":s="#0F4A85";break;case"button-secondary-hover-background":s="transparent";break;case"button-icon-hover-background":s="transparent";break}}else i.name==="contrast-active-border"&&(s="transparent");i.setValueFor(r,s)}}}const XW=new Map;let QW=!1;function pt(e,t){const r=Pse.create(e);if(t){if(t.includes("--fake-vscode-token")){const n="id"+Math.random().toString(16).slice(2);t=`${t}-${n}`}XW.set(t,r)}return QW||(rOe(XW),QW=!0),r}pt("background","--vscode-editor-background").withDefault("#1e1e1e");const Qd=pt("border-width").withDefault(1),nOe=pt("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518");pt("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df");pt("corner-radius").withDefault(0);const oOe=pt("corner-radius-round").withDefault(2),ZW=pt("design-unit").withDefault(4),iOe=pt("disabled-opacity").withDefault(.4),IT=pt("focus-border","--vscode-focusBorder").withDefault("#007fd4"),sOe=pt("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol");pt("font-weight","--vscode-font-weight").withDefault("400");const aOe=pt("foreground","--vscode-foreground").withDefault("#cccccc");pt("input-height").withDefault("26");pt("input-min-width").withDefault("100px");const lOe=pt("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),uOe=pt("type-ramp-base-line-height").withDefault("normal");pt("type-ramp-minus1-font-size").withDefault("11px");pt("type-ramp-minus1-line-height").withDefault("16px");pt("type-ramp-minus2-font-size").withDefault("9px");pt("type-ramp-minus2-line-height").withDefault("16px");pt("type-ramp-plus1-font-size").withDefault("16px");pt("type-ramp-plus1-line-height").withDefault("24px");pt("scrollbarWidth").withDefault("10px");pt("scrollbarHeight").withDefault("10px");pt("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966");pt("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3");pt("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66");pt("badge-background","--vscode-badge-background").withDefault("#4d4d4d");pt("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff");const cOe=pt("button-border","--vscode-button-border").withDefault("transparent"),JW=pt("button-icon-background").withDefault("transparent"),fOe=pt("button-icon-corner-radius").withDefault("5px"),dOe=pt("button-icon-outline-offset").withDefault(0),eG=pt("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),hOe=pt("button-icon-padding").withDefault("3px"),sg=pt("button-primary-background","--vscode-button-background").withDefault("#0e639c"),Gse=pt("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),Kse=pt("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),fC=pt("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),pOe=pt("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),gOe=pt("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),vOe=pt("button-padding-horizontal").withDefault("11px"),mOe=pt("button-padding-vertical").withDefault("4px");pt("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c");pt("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c");pt("checkbox-corner-radius").withDefault(3);pt("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0");pt("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771");pt("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff");pt("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e");pt("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545");pt("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c");pt("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c");pt("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0");pt("dropdown-list-max-height").withDefault("200px");pt("input-background","--vscode-input-background").withDefault("#3c3c3c");pt("input-foreground","--vscode-input-foreground").withDefault("#cccccc");pt("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc");pt("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff");pt("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff");pt("progress-background","--vscode-progressBar-background").withDefault("#0e70c0");pt("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7");pt("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7");pt("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799");pt("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e");pt("panel-view-border","--vscode-panel-border").withDefault("#80808059");pt("tag-corner-radius").withDefault("2px");const yOe=V_` + ${eOe("inline-flex")} :host { outline: none; - font-family: ${tOe}; - font-size: ${nOe}; - line-height: ${oOe}; - color: ${Wse}; + font-family: ${sOe}; + font-size: ${lOe}; + line-height: ${uOe}; + color: ${Gse}; background: ${sg}; - border-radius: calc(${JRe} * 1px); + border-radius: calc(${oOe} * 1px); fill: currentColor; cursor: pointer; } @@ -156,11 +156,11 @@ PERFORMANCE OF THIS SOFTWARE. display: inline-flex; justify-content: center; align-items: center; - padding: ${dOe} ${fOe}; + padding: ${mOe} ${vOe}; white-space: wrap; outline: none; text-decoration: none; - border: calc(${Qd} * 1px) solid ${iOe}; + border: calc(${Qd} * 1px) solid ${cOe}; color: inherit; border-radius: inherit; fill: inherit; @@ -168,22 +168,22 @@ PERFORMANCE OF THIS SOFTWARE. font-family: inherit; } :host(:hover) { - background: ${Gse}; + background: ${Kse}; } :host(:active) { background: ${sg}; } - .control:${xT} { - outline: calc(${Qd} * 1px) solid ${TT}; + .control:${TT} { + outline: calc(${Qd} * 1px) solid ${IT}; outline-offset: calc(${Qd} * 2px); } .control::-moz-focus-inner { border: 0; } :host([disabled]) { - opacity: ${eOe}; + opacity: ${iOe}; background: ${sg}; - cursor: ${VRe}; + cursor: ${ZRe}; } .content { display: flex; @@ -193,154 +193,154 @@ PERFORMANCE OF THIS SOFTWARE. } ::slotted(svg), ::slotted(span) { - width: calc(${QW} * 4px); - height: calc(${QW} * 4px); + width: calc(${ZW} * 4px); + height: calc(${ZW} * 4px); } .start { margin-inline-end: 8px; } -`,pOe=V_` +`,bOe=V_` :host([appearance='primary']) { background: ${sg}; - color: ${Wse}; + color: ${Gse}; } :host([appearance='primary']:hover) { - background: ${Gse}; + background: ${Kse}; } :host([appearance='primary']:active) .control:active { background: ${sg}; } - :host([appearance='primary']) .control:${xT} { - outline: calc(${Qd} * 1px) solid ${TT}; + :host([appearance='primary']) .control:${TT} { + outline: calc(${Qd} * 1px) solid ${IT}; outline-offset: calc(${Qd} * 2px); } :host([appearance='primary'][disabled]) { background: ${sg}; } -`,gOe=V_` +`,_Oe=V_` :host([appearance='secondary']) { background: ${fC}; - color: ${uOe}; + color: ${pOe}; } :host([appearance='secondary']:hover) { - background: ${cOe}; + background: ${gOe}; } :host([appearance='secondary']:active) .control:active { background: ${fC}; } - :host([appearance='secondary']) .control:${xT} { - outline: calc(${Qd} * 1px) solid ${TT}; + :host([appearance='secondary']) .control:${TT} { + outline: calc(${Qd} * 1px) solid ${IT}; outline-offset: calc(${Qd} * 2px); } :host([appearance='secondary'][disabled]) { background: ${fC}; } -`,vOe=V_` +`,EOe=V_` :host([appearance='icon']) { - background: ${ZW}; - border-radius: ${sOe}; - color: ${rOe}; + background: ${JW}; + border-radius: ${fOe}; + color: ${aOe}; } :host([appearance='icon']:hover) { - background: ${JW}; - outline: 1px dotted ${ZRe}; + background: ${eG}; + outline: 1px dotted ${nOe}; outline-offset: -1px; } :host([appearance='icon']) .control { - padding: ${lOe}; + padding: ${hOe}; border: none; } :host([appearance='icon']:active) .control:active { - background: ${JW}; + background: ${eG}; } - :host([appearance='icon']) .control:${xT} { - outline: calc(${Qd} * 1px) solid ${TT}; - outline-offset: ${aOe}; + :host([appearance='icon']) .control:${TT} { + outline: calc(${Qd} * 1px) solid ${IT}; + outline-offset: ${dOe}; } :host([appearance='icon'][disabled]) { - background: ${ZW}; + background: ${JW}; } -`,mOe=(e,t)=>V_` - ${hOe} - ${pOe} - ${gOe} - ${vOe} -`;let Kse=class extends yu{connectedCallback(){if(super.connectedCallback(),!this.appearance){const t=this.getAttribute("appearance");this.appearance=t}}attributeChangedCallback(t,r,n){t==="appearance"&&n==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),t==="aria-label"&&(this.ariaLabel=n),t==="disabled"&&(this.disabled=n!==null)}};lAe([Sr],Kse.prototype,"appearance",void 0);const yOe=Kse.compose({baseName:"button",template:NRe,styles:mOe,shadowOptions:{delegatesFocus:!0}});var Vse,eG=pi;Vse=eG.createRoot,eG.hydrateRoot;const bOe=["Top","Right","Bottom","Left"];function U_(e,t,...r){const[n,o=n,i=n,s=o]=r,a=[n,o,i,s],l={};for(let u=0;utypeof e=="string"&&/(\d+(\w+|%))/.test(e),sw=e=>typeof e=="number"&&!Number.isNaN(e),IOe=e=>e==="initial",tG=e=>e==="auto",COe=e=>e==="none",NOe=["content","fit-content","max-content","min-content"],dC=e=>NOe.some(t=>e===t)||TOe(e);function ROe(...e){const t=e.length===1,r=e.length===2,n=e.length===3;if(t){const[o]=e;if(IOe(o))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(tG(o))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(COe(o))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(sw(o))return{flexGrow:o,flexShrink:1,flexBasis:0};if(dC(o))return{flexGrow:1,flexShrink:1,flexBasis:o}}if(r){const[o,i]=e;if(sw(i))return{flexGrow:o,flexShrink:i,flexBasis:0};if(dC(i))return{flexGrow:o,flexShrink:1,flexBasis:i}}if(n){const[o,i,s]=e;if(sw(o)&&sw(i)&&(tG(s)||dC(s)))return{flexGrow:o,flexShrink:i,flexBasis:s}}return{}}function OOe(e,t=e){return{columnGap:e,rowGap:t}}const DOe=/var\(.*\)/gi;function FOe(e){return e===void 0||typeof e=="number"||typeof e=="string"&&!DOe.test(e)}const BOe=/^[a-zA-Z0-9\-_\\#;]+$/,MOe=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function hC(e){return e!==void 0&&typeof e=="string"&&BOe.test(e)&&!MOe.test(e)}function LOe(...e){if(e.some(i=>!FOe(i)))return{};const t=e[0]!==void 0?e[0]:"auto",r=e[1]!==void 0?e[1]:hC(t)?t:"auto",n=e[2]!==void 0?e[2]:hC(t)?t:"auto",o=e[3]!==void 0?e[3]:hC(r)?r:"auto";return{gridRowStart:t,gridColumnStart:r,gridRowEnd:n,gridColumnEnd:o}}function jOe(...e){return U_("margin","",...e)}function zOe(e,t=e){return{marginBlockStart:e,marginBlockEnd:t}}function HOe(e,t=e){return{marginInlineStart:e,marginInlineEnd:t}}function $Oe(...e){return U_("padding","",...e)}function POe(e,t=e){return{paddingBlockStart:e,paddingBlockEnd:t}}function qOe(e,t=e){return{paddingInlineStart:e,paddingInlineEnd:t}}function WOe(e,t=e){return{overflowX:e,overflowY:t}}function GOe(...e){const[t,r=t,n=t,o=r]=e;return{top:t,right:r,bottom:n,left:o}}function KOe(e,t,r){return{outlineWidth:e,...t&&{outlineStyle:t},...r&&{outlineColor:r}}}function VOe(...e){return YOe(e)?{transitionDelay:e[0],transitionDuration:e[0],transitionProperty:e[0],transitionTimingFunction:e[0]}:XOe(e).reduce((r,[n,o="0s",i="0s",s="ease"],a)=>(a===0?(r.transitionProperty=n,r.transitionDuration=o,r.transitionDelay=i,r.transitionTimingFunction=s):(r.transitionProperty+=`, ${n}`,r.transitionDuration+=`, ${o}`,r.transitionDelay+=`, ${i}`,r.transitionTimingFunction+=`, ${s}`),r),{})}const UOe=["-moz-initial","inherit","initial","revert","unset"];function YOe(e){return e.length===1&&UOe.includes(e[0])}function XOe(e){return e.length===1&&Array.isArray(e[0])?e[0]:[e]}function QOe(e,...t){if(t.length===0)return JOe(e)?{textDecorationStyle:e}:{textDecorationLine:e};const[r,n,o]=t;return{textDecorationLine:e,...r&&{textDecorationStyle:r},...n&&{textDecorationColor:n},...o&&{textDecorationThickness:o}}}const ZOe=["dashed","dotted","double","solid","wavy"];function JOe(e){return ZOe.includes(e)}const pC=typeof window>"u"?global:window,gC="@griffel/";function e4e(e,t){return pC[Symbol.for(gC+e)]||(pC[Symbol.for(gC+e)]=t),pC[Symbol.for(gC+e)]}const EB=e4e("DEFINITION_LOOKUP_TABLE",{}),Ak="data-make-styles-bucket",SB="f",wB=7,CL="___",t4e=CL.length+wB,r4e=0,n4e=1,o4e={all:1,animation:1,background:1,backgroundPosition:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderBottom:1,borderColor:1,borderImage:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1,borderLeft:1,borderRadius:1,borderRight:1,borderStyle:1,borderTop:1,borderWidth:1,caret:1,columns:1,columnRule:1,containIntrinsicSize:1,container:1,flex:1,flexFlow:1,font:1,gap:1,grid:1,gridArea:1,gridColumn:1,gridRow:1,gridTemplate:1,inset:1,insetBlock:1,insetInline:1,lineClamp:1,listStyle:1,margin:1,marginBlock:1,marginInline:1,mask:1,maskBorder:1,motion:1,offset:1,outline:1,overflow:1,overscrollBehavior:1,padding:1,paddingBlock:1,paddingInline:1,placeItems:1,placeContent:1,placeSelf:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginInline:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingInline:1,scrollSnapMargin:1,scrollTimeline:1,textDecoration:1,textEmphasis:1,transition:1};function Fg(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function i4e(e){const t=e.length;if(t===wB)return e;for(let r=t;r0&&(t+=c.slice(0,f)),r+=d,n[u]=d}}}if(r==="")return t.slice(0,-1);const o=rG[r];if(o!==void 0)return t+o;const i=[];for(let u=0;ui.cssText):n}}}const l4e=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],nG=l4e.reduce((e,t,r)=>(e[t]=r,e),{});function u4e(e,t,r,n,o={}){const i=e==="m",s=i?e+o.m:e;if(!n.stylesheets[s]){const a=t&&t.createElement("style"),l=a4e(a,e,{...n.styleElementAttributes,...i&&{media:o.m}});n.stylesheets[s]=l,t&&a&&t.head.insertBefore(a,c4e(t,r,e,n,o))}return n.stylesheets[s]}function c4e(e,t,r,n,o){const i=nG[r];let s=c=>i-nG[c.getAttribute(Ak)],a=e.head.querySelectorAll(`[${Ak}]`);if(r==="m"&&o){const c=e.head.querySelectorAll(`[${Ak}="${r}"]`);c.length&&(a=c,s=f=>n.compareMediaQueries(o.m,f.media))}const l=a.length;let u=l-1;for(;u>=0;){const c=a.item(u);if(s(c)>0)return c.nextSibling;u--}return l>0?a.item(0):t?t.nextSibling:null}function oG(e,t){try{e.insertRule(t)}catch{}}let f4e=0;const d4e=(e,t)=>et?1:0;function h4e(e=typeof document>"u"?void 0:document,t={}){const{unstable_filterCSSRule:r,insertionPoint:n,styleElementAttributes:o,compareMediaQueries:i=d4e}=t,s={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(o),compareMediaQueries:i,id:`d${f4e++}`,insertCSSRules(a){for(const l in a){const u=a[l];for(let c=0,f=u.length;c{const e={};return function(r,n){e[r.id]===void 0&&(r.insertCSSRules(n),e[r.id]=!0)}};function Xse(e){return e.reduce(function(t,r){var n=r[0],o=r[1];return t[n]=o,t[o]=n,t},{})}function p4e(e){return typeof e=="boolean"}function g4e(e){return typeof e=="function"}function iy(e){return typeof e=="number"}function v4e(e){return e===null||typeof e>"u"}function m4e(e){return e&&typeof e=="object"}function y4e(e){return typeof e=="string"}function xk(e,t){return e.indexOf(t)!==-1}function b4e(e){return parseFloat(e)===0?e:e[0]==="-"?e.slice(1):"-"+e}function aw(e,t,r,n){return t+b4e(r)+n}function _4e(e){var t=e.indexOf(".");if(t===-1)e=100-parseFloat(e)+"%";else{var r=e.length-t-2;e=100-parseFloat(e),e=e.toFixed(r)+"%"}return e}function Qse(e){return e.replace(/ +/g," ").split(" ").map(function(t){return t.trim()}).filter(Boolean).reduce(function(t,r){var n=t.list,o=t.state,i=(r.match(/\(/g)||[]).length,s=(r.match(/\)/g)||[]).length;return o.parensDepth>0?n[n.length-1]=n[n.length-1]+" "+r:n.push(r),o.parensDepth+=i-s,{list:n,state:o}},{list:[],state:{parensDepth:0}}).list}function iG(e){var t=Qse(e);if(t.length<=3||t.length>4)return e;var r=t[0],n=t[1],o=t[2],i=t[3];return[r,i,o,n].join(" ")}function E4e(e){return!p4e(e)&&!v4e(e)}function S4e(e){for(var t=[],r=0,n=0,o=!1;n0?ns(pv,--xa):0,Bg--,Kn===10&&(Bg=1,NT--),Kn}function pl(){return Kn=xa2||jA(Kn)>3?"":" "}function q4e(e){for(;pl();)switch(jA(Kn)){case 0:wh(cae(xa-1),e);break;case 2:wh(Ik(Kn),e);break;default:wh(CT(Kn),e)}return e}function W4e(e,t){for(;--t&&pl()&&!(Kn<48||Kn>102||Kn>57&&Kn<65||Kn>70&&Kn<97););return OT(e,Tk()+(t<6&&Dh()==32&&pl()==32))}function AB(e){for(;pl();)switch(Kn){case e:return xa;case 34:case 39:e!==34&&e!==39&&AB(Kn);break;case 40:e===41&&AB(e);break;case 92:pl();break}return xa}function G4e(e,t){for(;pl()&&e+Kn!==57;)if(e+Kn===84&&Dh()===47)break;return"/*"+OT(t,xa-1)+"*"+CT(e===47?e:pl())}function cae(e){for(;!jA(Dh());)pl();return OT(e,xa)}function fae(e){return uae(Ck("",null,null,null,[""],e=lae(e),0,[0],e))}function Ck(e,t,r,n,o,i,s,a,l){for(var u=0,c=0,f=s,d=0,h=0,g=0,v=1,y=1,E=1,_=0,S="",b=o,k=i,T=n,x=S;y;)switch(g=_,_=pl()){case 40:if(g!=108&&ns(x,f-1)==58){iae(x+=As(Ik(_),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:x+=Ik(_);break;case 9:case 10:case 13:case 32:x+=P4e(g);break;case 92:x+=W4e(Tk()-1,7);continue;case 47:switch(Dh()){case 42:case 47:wh(K4e(G4e(pl(),Tk()),t,r,l),l);break;default:x+="/"}break;case 123*v:a[u++]=Wu(x)*E;case 125*v:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+c:E==-1&&(x=As(x,/\f/g,"")),h>0&&Wu(x)-f&&wh(h>32?lG(x+";",n,r,f-1,l):lG(As(x," ","")+";",n,r,f-2,l),l);break;case 59:x+=";";default:if(wh(T=aG(x,t,r,u,c,o,a,S,b=[],k=[],f,i),i),_===123)if(c===0)Ck(x,t,T,T,b,i,f,a,k);else switch(d===99&&ns(x,3)===110?100:d){case 100:case 108:case 109:case 115:Ck(e,T,T,n&&wh(aG(e,T,T,0,0,o,a,S,o,b=[],f,k),k),o,k,f,a,n?b:k);break;default:Ck(x,T,T,T,[""],k,0,a,k)}}u=c=h=0,v=E=1,S=x="",f=s;break;case 58:f=1+Wu(x),h=g;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&H4e()==125)continue}switch(x+=CT(_),_*v){case 38:E=c>0?1:(x+="\f",-1);break;case 44:a[u++]=(Wu(x)-1)*E,E=1;break;case 64:Dh()===45&&(x+=Ik(pl())),d=Dh(),c=f=Wu(S=x+=cae(Tk())),_++;break;case 45:g===45&&Wu(x)==2&&(v=0)}}return i}function aG(e,t,r,n,o,i,s,a,l,u,c,f){for(var d=o-1,h=o===0?i:[""],g=sae(h),v=0,y=0,E=0;v0?h[_]+" "+S:As(S,/&\f/g,h[_])))&&(l[E++]=b);return RT(e,t,r,o===0?IT:a,l,u,c,f)}function K4e(e,t,r,n){return RT(e,t,r,tae,CT(z4e()),Hb(e,2,-2),0,n)}function lG(e,t,r,n,o){return RT(e,t,r,RL,Hb(e,0,n),Hb(e,n+1,-1),n,o)}function Mg(e,t){for(var r="",n=0;n{switch(e.type){case IT:if(typeof e.props=="string")return;e.props=e.props.map(t=>t.indexOf(":global(")===-1?t:$4e(t).reduce((r,n,o,i)=>{if(n==="")return r;if(n===":"&&i[o+1]==="global"){const s=i[o+2].slice(1,-1)+" ";return r.unshift(s),i[o+1]="",i[o+2]="",r}return r.push(n),r},[]).join(""))}};function gae(e,t,r){switch(L4e(e,t)){case 5103:return Kl+"print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return Kl+e+e;case 4215:if(ns(e,9)===102||ns(e,t+1)===116)return Kl+e+e;break;case 4789:return Ky+e+e;case 5349:case 4246:case 6968:return Kl+e+Ky+e+e;case 6187:if(!oae(e,/grab/))return As(As(As(e,/(zoom-|grab)/,Kl+"$1"),/(image-set)/,Kl+"$1"),e,"")+e;case 5495:case 3959:return As(e,/(image-set\([^]*)/,Kl+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return As(e,/(.+)-inline(.+)/,Kl+"$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(Wu(e)-1-t>6)switch(ns(e,t+1)){case 102:if(ns(e,t+3)===108)return As(e,/(.+:)(.+)-([^]+)/,"$1"+Kl+"$2-$3$1"+Ky+(ns(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~iae(e,"stretch")?gae(As(e,"stretch","fill-available"),t)+e:e}break}return e}function vae(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case RL:e.return=gae(e.value,e.length);return;case IT:if(e.length)return j4e(e.props,function(o){switch(oae(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mg([mC(e,{props:[As(o,/:(read-\w+)/,":"+Ky+"$1")]})],n);case"::placeholder":return Mg([mC(e,{props:[As(o,/:(plac\w+)/,":"+Kl+"input-$1")]}),mC(e,{props:[As(o,/:(plac\w+)/,":"+Ky+"$1")]})],n)}return""})}}function U4e(e){switch(e.type){case"@container":case R4e:case D4e:case rae:return!0}return!1}const Y4e=e=>{U4e(e)&&Array.isArray(e.children)&&e.children.sort((t,r)=>t.props[0]>r.props[0]?1:-1)};function X4e(){}function Q4e(e,t){const r=[];return Mg(fae(e),hae([V4e,t?Y4e:X4e,vae,dae,pae(n=>r.push(n))])),r}const Z4e=/,( *[^ &])/g;function J4e(e){return"&"+eae(e.replace(Z4e,",&$1"))}function uG(e,t,r){let n=t;return r.length>0&&(n=r.reduceRight((o,i)=>`${J4e(i)} { ${o} }`,t)),`${e}{${n}}`}function cG(e){const{className:t,media:r,layer:n,selectors:o,support:i,property:s,rtlClassName:a,rtlProperty:l,rtlValue:u,value:c,container:f}=e,d=`.${t}`,h=Array.isArray(c)?`${c.map(v=>`${sy(s)}: ${v}`).join(";")};`:`${sy(s)}: ${c};`;let g=uG(d,h,o);if(l&&a){const v=`.${a}`,y=Array.isArray(u)?`${u.map(E=>`${sy(l)}: ${E}`).join(";")};`:`${sy(l)}: ${u};`;g+=uG(v,y,o)}return r&&(g=`@media ${r} { ${g} }`),n&&(g=`@layer ${n} { ${g} }`),i&&(g=`@supports ${i} { ${g} }`),f&&(g=`@container ${f} { ${g} }`),Q4e(g,!0)}function eDe(e){let t="";for(const r in e){const n=e[r];typeof n!="string"&&typeof n!="number"||(t+=sy(r)+":"+n+";")}return t}function fG(e){let t="";for(const r in e)t+=`${r}{${eDe(e[r])}}`;return t}function dG(e,t){const r=`@keyframes ${e} {${t}}`,n=[];return Mg(fae(r),hae([dae,vae,pae(o=>n.push(o))])),n}function hG(e,t){return e.length===0?t:`${e} and ${t}`}function tDe(e){return e.substr(0,6)==="@media"}function rDe(e){return e.substr(0,6)==="@layer"}const nDe=/^(:|\[|>|&)/;function oDe(e){return nDe.test(e)}function iDe(e){return e.substr(0,9)==="@supports"}function sDe(e){return e.substring(0,10)==="@container"}function aDe(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}const pG={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function gG(e,t,r,n,o){if(r)return"m";if(t||n)return"t";if(o)return"c";if(e.length>0){const i=e[0].trim();if(i.charCodeAt(0)===58)return pG[i.slice(4,8)]||pG[i.slice(3,5)]||"d"}return"d"}function lw({container:e,media:t,layer:r,property:n,selector:o,support:i,value:s}){const a=Fg(o+e+t+r+i+n+s.trim());return SB+a}function vG(e,t,r,n,o){const i=e+t+r+n+o,s=Fg(i),a=s.charCodeAt(0);return a>=48&&a<=57?String.fromCharCode(a+17)+s.slice(1):s}function mG(e){return e.replace(/>\s+/g,">")}function lDe(e,t){const r=JSON.stringify(t,null,2);" ".repeat(2)+""," ".repeat(4)+""," ".repeat(6)+`"${e}": ${r.split(` +`,SOe=(e,t)=>V_` + ${yOe} + ${bOe} + ${_Oe} + ${EOe} +`;let Vse=class extends yu{connectedCallback(){if(super.connectedCallback(),!this.appearance){const t=this.getAttribute("appearance");this.appearance=t}}attributeChangedCallback(t,r,n){t==="appearance"&&n==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),t==="aria-label"&&(this.ariaLabel=n),t==="disabled"&&(this.disabled=n!==null)}};hAe([wr],Vse.prototype,"appearance",void 0);const wOe=Vse.compose({baseName:"button",template:BRe,styles:SOe,shadowOptions:{delegatesFocus:!0}});var Use,tG=pi;Use=tG.createRoot,tG.hydrateRoot;const kOe=["Top","Right","Bottom","Left"];function U_(e,t,...r){const[n,o=n,i=n,s=o]=r,a=[n,o,i,s],l={};for(let u=0;utypeof e=="string"&&/(\d+(\w+|%))/.test(e),aw=e=>typeof e=="number"&&!Number.isNaN(e),DOe=e=>e==="initial",rG=e=>e==="auto",FOe=e=>e==="none",BOe=["content","fit-content","max-content","min-content"],dC=e=>BOe.some(t=>e===t)||OOe(e);function MOe(...e){const t=e.length===1,r=e.length===2,n=e.length===3;if(t){const[o]=e;if(DOe(o))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(rG(o))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(FOe(o))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(aw(o))return{flexGrow:o,flexShrink:1,flexBasis:0};if(dC(o))return{flexGrow:1,flexShrink:1,flexBasis:o}}if(r){const[o,i]=e;if(aw(i))return{flexGrow:o,flexShrink:i,flexBasis:0};if(dC(i))return{flexGrow:o,flexShrink:1,flexBasis:i}}if(n){const[o,i,s]=e;if(aw(o)&&aw(i)&&(rG(s)||dC(s)))return{flexGrow:o,flexShrink:i,flexBasis:s}}return{}}function LOe(e,t=e){return{columnGap:e,rowGap:t}}const jOe=/var\(.*\)/gi;function zOe(e){return e===void 0||typeof e=="number"||typeof e=="string"&&!jOe.test(e)}const HOe=/^[a-zA-Z0-9\-_\\#;]+$/,$Oe=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function hC(e){return e!==void 0&&typeof e=="string"&&HOe.test(e)&&!$Oe.test(e)}function POe(...e){if(e.some(i=>!zOe(i)))return{};const t=e[0]!==void 0?e[0]:"auto",r=e[1]!==void 0?e[1]:hC(t)?t:"auto",n=e[2]!==void 0?e[2]:hC(t)?t:"auto",o=e[3]!==void 0?e[3]:hC(r)?r:"auto";return{gridRowStart:t,gridColumnStart:r,gridRowEnd:n,gridColumnEnd:o}}function qOe(...e){return U_("margin","",...e)}function WOe(e,t=e){return{marginBlockStart:e,marginBlockEnd:t}}function GOe(e,t=e){return{marginInlineStart:e,marginInlineEnd:t}}function KOe(...e){return U_("padding","",...e)}function VOe(e,t=e){return{paddingBlockStart:e,paddingBlockEnd:t}}function UOe(e,t=e){return{paddingInlineStart:e,paddingInlineEnd:t}}function YOe(e,t=e){return{overflowX:e,overflowY:t}}function XOe(...e){const[t,r=t,n=t,o=r]=e;return{top:t,right:r,bottom:n,left:o}}function QOe(e,t,r){return{outlineWidth:e,...t&&{outlineStyle:t},...r&&{outlineColor:r}}}function ZOe(...e){return e4e(e)?{transitionDelay:e[0],transitionDuration:e[0],transitionProperty:e[0],transitionTimingFunction:e[0]}:t4e(e).reduce((r,[n,o="0s",i="0s",s="ease"],a)=>(a===0?(r.transitionProperty=n,r.transitionDuration=o,r.transitionDelay=i,r.transitionTimingFunction=s):(r.transitionProperty+=`, ${n}`,r.transitionDuration+=`, ${o}`,r.transitionDelay+=`, ${i}`,r.transitionTimingFunction+=`, ${s}`),r),{})}const JOe=["-moz-initial","inherit","initial","revert","unset"];function e4e(e){return e.length===1&&JOe.includes(e[0])}function t4e(e){return e.length===1&&Array.isArray(e[0])?e[0]:[e]}function r4e(e,...t){if(t.length===0)return o4e(e)?{textDecorationStyle:e}:{textDecorationLine:e};const[r,n,o]=t;return{textDecorationLine:e,...r&&{textDecorationStyle:r},...n&&{textDecorationColor:n},...o&&{textDecorationThickness:o}}}const n4e=["dashed","dotted","double","solid","wavy"];function o4e(e){return n4e.includes(e)}const pC=typeof window>"u"?global:window,gC="@griffel/";function i4e(e,t){return pC[Symbol.for(gC+e)]||(pC[Symbol.for(gC+e)]=t),pC[Symbol.for(gC+e)]}const SB=i4e("DEFINITION_LOOKUP_TABLE",{}),xk="data-make-styles-bucket",wB="f",kB=7,NL="___",s4e=NL.length+kB,a4e=0,l4e=1,u4e={all:1,animation:1,background:1,backgroundPosition:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderBottom:1,borderColor:1,borderImage:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1,borderLeft:1,borderRadius:1,borderRight:1,borderStyle:1,borderTop:1,borderWidth:1,caret:1,columns:1,columnRule:1,containIntrinsicSize:1,container:1,flex:1,flexFlow:1,font:1,gap:1,grid:1,gridArea:1,gridColumn:1,gridRow:1,gridTemplate:1,inset:1,insetBlock:1,insetInline:1,lineClamp:1,listStyle:1,margin:1,marginBlock:1,marginInline:1,mask:1,maskBorder:1,motion:1,offset:1,outline:1,overflow:1,overscrollBehavior:1,padding:1,paddingBlock:1,paddingInline:1,placeItems:1,placeContent:1,placeSelf:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginInline:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingInline:1,scrollSnapMargin:1,scrollTimeline:1,textDecoration:1,textEmphasis:1,transition:1};function Fg(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function c4e(e){const t=e.length;if(t===kB)return e;for(let r=t;r0&&(t+=c.slice(0,f)),r+=d,n[u]=d}}}if(r==="")return t.slice(0,-1);const o=nG[r];if(o!==void 0)return t+o;const i=[];for(let u=0;ui.cssText):n}}}const h4e=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],oG=h4e.reduce((e,t,r)=>(e[t]=r,e),{});function p4e(e,t,r,n,o={}){const i=e==="m",s=i?e+o.m:e;if(!n.stylesheets[s]){const a=t&&t.createElement("style"),l=d4e(a,e,{...n.styleElementAttributes,...i&&{media:o.m}});n.stylesheets[s]=l,t&&a&&t.head.insertBefore(a,g4e(t,r,e,n,o))}return n.stylesheets[s]}function g4e(e,t,r,n,o){const i=oG[r];let s=c=>i-oG[c.getAttribute(xk)],a=e.head.querySelectorAll(`[${xk}]`);if(r==="m"&&o){const c=e.head.querySelectorAll(`[${xk}="${r}"]`);c.length&&(a=c,s=f=>n.compareMediaQueries(o.m,f.media))}const l=a.length;let u=l-1;for(;u>=0;){const c=a.item(u);if(s(c)>0)return c.nextSibling;u--}return l>0?a.item(0):t?t.nextSibling:null}function iG(e,t){try{e.insertRule(t)}catch{}}let v4e=0;const m4e=(e,t)=>et?1:0;function y4e(e=typeof document>"u"?void 0:document,t={}){const{unstable_filterCSSRule:r,insertionPoint:n,styleElementAttributes:o,compareMediaQueries:i=m4e}=t,s={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(o),compareMediaQueries:i,id:`d${v4e++}`,insertCSSRules(a){for(const l in a){const u=a[l];for(let c=0,f=u.length;c{const e={};return function(r,n){e[r.id]===void 0&&(r.insertCSSRules(n),e[r.id]=!0)}};function Qse(e){return e.reduce(function(t,r){var n=r[0],o=r[1];return t[n]=o,t[o]=n,t},{})}function b4e(e){return typeof e=="boolean"}function _4e(e){return typeof e=="function"}function iy(e){return typeof e=="number"}function E4e(e){return e===null||typeof e>"u"}function S4e(e){return e&&typeof e=="object"}function w4e(e){return typeof e=="string"}function Tk(e,t){return e.indexOf(t)!==-1}function k4e(e){return parseFloat(e)===0?e:e[0]==="-"?e.slice(1):"-"+e}function lw(e,t,r,n){return t+k4e(r)+n}function A4e(e){var t=e.indexOf(".");if(t===-1)e=100-parseFloat(e)+"%";else{var r=e.length-t-2;e=100-parseFloat(e),e=e.toFixed(r)+"%"}return e}function Zse(e){return e.replace(/ +/g," ").split(" ").map(function(t){return t.trim()}).filter(Boolean).reduce(function(t,r){var n=t.list,o=t.state,i=(r.match(/\(/g)||[]).length,s=(r.match(/\)/g)||[]).length;return o.parensDepth>0?n[n.length-1]=n[n.length-1]+" "+r:n.push(r),o.parensDepth+=i-s,{list:n,state:o}},{list:[],state:{parensDepth:0}}).list}function sG(e){var t=Zse(e);if(t.length<=3||t.length>4)return e;var r=t[0],n=t[1],o=t[2],i=t[3];return[r,i,o,n].join(" ")}function x4e(e){return!b4e(e)&&!E4e(e)}function T4e(e){for(var t=[],r=0,n=0,o=!1;n0?ns(pv,--xa):0,Bg--,Kn===10&&(Bg=1,RT--),Kn}function gl(){return Kn=xa2||zA(Kn)>3?"":" "}function U4e(e){for(;gl();)switch(zA(Kn)){case 0:kh(fae(xa-1),e);break;case 2:kh(Ck(Kn),e);break;default:kh(NT(Kn),e)}return e}function Y4e(e,t){for(;--t&&gl()&&!(Kn<48||Kn>102||Kn>57&&Kn<65||Kn>70&&Kn<97););return DT(e,Ik()+(t<6&&Fh()==32&&gl()==32))}function xB(e){for(;gl();)switch(Kn){case e:return xa;case 34:case 39:e!==34&&e!==39&&xB(Kn);break;case 40:e===41&&xB(e);break;case 92:gl();break}return xa}function X4e(e,t){for(;gl()&&e+Kn!==57;)if(e+Kn===84&&Fh()===47)break;return"/*"+DT(t,xa-1)+"*"+NT(e===47?e:gl())}function fae(e){for(;!zA(Fh());)gl();return DT(e,xa)}function dae(e){return cae(Nk("",null,null,null,[""],e=uae(e),0,[0],e))}function Nk(e,t,r,n,o,i,s,a,l){for(var u=0,c=0,f=s,d=0,h=0,g=0,v=1,y=1,E=1,_=0,S="",b=o,k=i,T=n,x=S;y;)switch(g=_,_=gl()){case 40:if(g!=108&&ns(x,f-1)==58){sae(x+=As(Ck(_),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:x+=Ck(_);break;case 9:case 10:case 13:case 32:x+=V4e(g);break;case 92:x+=Y4e(Ik()-1,7);continue;case 47:switch(Fh()){case 42:case 47:kh(Q4e(X4e(gl(),Ik()),t,r,l),l);break;default:x+="/"}break;case 123*v:a[u++]=Wu(x)*E;case 125*v:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+c:E==-1&&(x=As(x,/\f/g,"")),h>0&&Wu(x)-f&&kh(h>32?uG(x+";",n,r,f-1,l):uG(As(x," ","")+";",n,r,f-2,l),l);break;case 59:x+=";";default:if(kh(T=lG(x,t,r,u,c,o,a,S,b=[],k=[],f,i),i),_===123)if(c===0)Nk(x,t,T,T,b,i,f,a,k);else switch(d===99&&ns(x,3)===110?100:d){case 100:case 108:case 109:case 115:Nk(e,T,T,n&&kh(lG(e,T,T,0,0,o,a,S,o,b=[],f,k),k),o,k,f,a,n?b:k);break;default:Nk(x,T,T,T,[""],k,0,a,k)}}u=c=h=0,v=E=1,S=x="",f=s;break;case 58:f=1+Wu(x),h=g;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&G4e()==125)continue}switch(x+=NT(_),_*v){case 38:E=c>0?1:(x+="\f",-1);break;case 44:a[u++]=(Wu(x)-1)*E,E=1;break;case 64:Fh()===45&&(x+=Ck(gl())),d=Fh(),c=f=Wu(S=x+=fae(Ik())),_++;break;case 45:g===45&&Wu(x)==2&&(v=0)}}return i}function lG(e,t,r,n,o,i,s,a,l,u,c,f){for(var d=o-1,h=o===0?i:[""],g=aae(h),v=0,y=0,E=0;v0?h[_]+" "+S:As(S,/&\f/g,h[_])))&&(l[E++]=b);return OT(e,t,r,o===0?CT:a,l,u,c,f)}function Q4e(e,t,r,n){return OT(e,t,r,rae,NT(W4e()),Hb(e,2,-2),0,n)}function uG(e,t,r,n,o){return OT(e,t,r,OL,Hb(e,0,n),Hb(e,n+1,-1),n,o)}function Mg(e,t){for(var r="",n=0;n{switch(e.type){case CT:if(typeof e.props=="string")return;e.props=e.props.map(t=>t.indexOf(":global(")===-1?t:K4e(t).reduce((r,n,o,i)=>{if(n==="")return r;if(n===":"&&i[o+1]==="global"){const s=i[o+2].slice(1,-1)+" ";return r.unshift(s),i[o+1]="",i[o+2]="",r}return r.push(n),r},[]).join(""))}};function vae(e,t,r){switch(P4e(e,t)){case 5103:return Kl+"print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return Kl+e+e;case 4215:if(ns(e,9)===102||ns(e,t+1)===116)return Kl+e+e;break;case 4789:return Ky+e+e;case 5349:case 4246:case 6968:return Kl+e+Ky+e+e;case 6187:if(!iae(e,/grab/))return As(As(As(e,/(zoom-|grab)/,Kl+"$1"),/(image-set)/,Kl+"$1"),e,"")+e;case 5495:case 3959:return As(e,/(image-set\([^]*)/,Kl+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return As(e,/(.+)-inline(.+)/,Kl+"$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(Wu(e)-1-t>6)switch(ns(e,t+1)){case 102:if(ns(e,t+3)===108)return As(e,/(.+:)(.+)-([^]+)/,"$1"+Kl+"$2-$3$1"+Ky+(ns(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~sae(e,"stretch")?vae(As(e,"stretch","fill-available"),t)+e:e}break}return e}function mae(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case OL:e.return=vae(e.value,e.length);return;case CT:if(e.length)return q4e(e.props,function(o){switch(iae(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mg([mC(e,{props:[As(o,/:(read-\w+)/,":"+Ky+"$1")]})],n);case"::placeholder":return Mg([mC(e,{props:[As(o,/:(plac\w+)/,":"+Kl+"input-$1")]}),mC(e,{props:[As(o,/:(plac\w+)/,":"+Ky+"$1")]})],n)}return""})}}function J4e(e){switch(e.type){case"@container":case M4e:case j4e:case nae:return!0}return!1}const eDe=e=>{J4e(e)&&Array.isArray(e.children)&&e.children.sort((t,r)=>t.props[0]>r.props[0]?1:-1)};function tDe(){}function rDe(e,t){const r=[];return Mg(dae(e),pae([Z4e,t?eDe:tDe,mae,hae,gae(n=>r.push(n))])),r}const nDe=/,( *[^ &])/g;function oDe(e){return"&"+tae(e.replace(nDe,",&$1"))}function cG(e,t,r){let n=t;return r.length>0&&(n=r.reduceRight((o,i)=>`${oDe(i)} { ${o} }`,t)),`${e}{${n}}`}function fG(e){const{className:t,media:r,layer:n,selectors:o,support:i,property:s,rtlClassName:a,rtlProperty:l,rtlValue:u,value:c,container:f}=e,d=`.${t}`,h=Array.isArray(c)?`${c.map(v=>`${sy(s)}: ${v}`).join(";")};`:`${sy(s)}: ${c};`;let g=cG(d,h,o);if(l&&a){const v=`.${a}`,y=Array.isArray(u)?`${u.map(E=>`${sy(l)}: ${E}`).join(";")};`:`${sy(l)}: ${u};`;g+=cG(v,y,o)}return r&&(g=`@media ${r} { ${g} }`),n&&(g=`@layer ${n} { ${g} }`),i&&(g=`@supports ${i} { ${g} }`),f&&(g=`@container ${f} { ${g} }`),rDe(g,!0)}function iDe(e){let t="";for(const r in e){const n=e[r];typeof n!="string"&&typeof n!="number"||(t+=sy(r)+":"+n+";")}return t}function dG(e){let t="";for(const r in e)t+=`${r}{${iDe(e[r])}}`;return t}function hG(e,t){const r=`@keyframes ${e} {${t}}`,n=[];return Mg(dae(r),pae([hae,mae,gae(o=>n.push(o))])),n}function pG(e,t){return e.length===0?t:`${e} and ${t}`}function sDe(e){return e.substr(0,6)==="@media"}function aDe(e){return e.substr(0,6)==="@layer"}const lDe=/^(:|\[|>|&)/;function uDe(e){return lDe.test(e)}function cDe(e){return e.substr(0,9)==="@supports"}function fDe(e){return e.substring(0,10)==="@container"}function dDe(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}const gG={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function vG(e,t,r,n,o){if(r)return"m";if(t||n)return"t";if(o)return"c";if(e.length>0){const i=e[0].trim();if(i.charCodeAt(0)===58)return gG[i.slice(4,8)]||gG[i.slice(3,5)]||"d"}return"d"}function uw({container:e,media:t,layer:r,property:n,selector:o,support:i,value:s}){const a=Fg(o+e+t+r+i+n+s.trim());return wB+a}function mG(e,t,r,n,o){const i=e+t+r+n+o,s=Fg(i),a=s.charCodeAt(0);return a>=48&&a<=57?String.fromCharCode(a+17)+s.slice(1):s}function yG(e){return e.replace(/>\s+/g,">")}function hDe(e,t){const r=JSON.stringify(t,null,2);" ".repeat(2)+""," ".repeat(4)+""," ".repeat(6)+`"${e}": ${r.split(` `).map((n,o)=>" ".repeat(o===0?0:6)+n).join(` -`)}`," ".repeat(4)+""," ".repeat(2)+"",e.indexOf("&")}function yG(e,t,r,n){e[t]=n?[r,n]:r}function bG(e,t){return t?[e,t]:e}function yC(e,t,r,n,o){var i;let s;t==="m"&&o&&(s={m:o}),(i=e[t])!==null&&i!==void 0||(e[t]=[]),r&&e[t].push(bG(r,s)),n&&e[t].push(bG(n,s))}function th(e,t=[],r="",n="",o="",i="",s={},a={},l){for(const u in e){if(o4e.hasOwnProperty(u)){e[u];continue}const c=e[u];if(c!=null){if(typeof c=="string"||typeof c=="number"){const f=mG(t.join("")),d=vG(f,i,r,o,u),h=lw({container:i,media:r,layer:n,value:c.toString(),support:o,selector:f,property:u}),g=l&&{key:u,value:l}||kB(u,c),v=g.key!==u||g.value!==c,y=v?lw({container:i,value:g.value.toString(),property:g.key,selector:f,media:r,layer:n,support:o}):void 0,E=v?{rtlClassName:y,rtlProperty:g.key,rtlValue:g.value}:void 0,_=gG(t,n,r,o,i),[S,b]=cG({className:h,media:r,layer:n,selectors:t,property:u,support:o,container:i,value:c,...E});yG(s,d,h,y),yC(a,_,S,b,r)}else if(u==="animationName"){const f=Array.isArray(c)?c:[c],d=[],h=[];for(const g of f){const v=fG(g),y=fG(Jse(g)),E=SB+Fg(v);let _;const S=dG(E,v);let b=[];v===y?_=E:(_=SB+Fg(y),b=dG(_,y));for(let k=0;k(T??"").toString()).join(";"),support:o,selector:f,property:u}),g=c.map(T=>kB(u,T));if(!!g.some(T=>T.key!==g[0].key))continue;const y=g[0].key!==u||g.some((T,x)=>T.value!==c[x]),E=y?lw({container:i,value:g.map(T=>{var x;return((x=T==null?void 0:T.value)!==null&&x!==void 0?x:"").toString()}).join(";"),property:g[0].key,selector:f,layer:n,media:r,support:o}):void 0,_=y?{rtlClassName:E,rtlProperty:g[0].key,rtlValue:g.map(T=>T.value)}:void 0,S=gG(t,n,r,o,i),[b,k]=cG({className:h,media:r,layer:n,selectors:t,property:u,support:o,container:i,value:c,..._});yG(s,d,h,E),yC(a,S,b,k,r)}else if(aDe(c))if(oDe(u))th(c,t.concat(eae(u)),r,n,o,i,s,a);else if(tDe(u)){const f=hG(r,u.slice(6).trim());th(c,t,f,n,o,i,s,a)}else if(rDe(u)){const f=(n?`${n}.`:"")+u.slice(6).trim();th(c,t,r,f,o,i,s,a)}else if(iDe(u)){const f=hG(o,u.slice(9).trim());th(c,t,r,n,f,i,s,a)}else if(sDe(u)){const f=u.slice(10).trim();th(c,t,r,n,o,f,s,a)}else lDe(u,c)}}return[s,a]}function uDe(e){const t={},r={};for(const n in e){const o=e[n],[i,s]=th(o);t[n]=i,Object.keys(s).forEach(a=>{r[a]=(r[a]||[]).concat(s[a])})}return[t,r]}function cDe(e,t=NL){const r=t();let n=null,o=null,i=null,s=null;function a(l){const{dir:u,renderer:c}=l;n===null&&([n,o]=uDe(e));const f=u==="ltr";return f?i===null&&(i=LA(n,u)):s===null&&(s=LA(n,u)),r(c,o),f?i:s}return a}function mae(e,t,r=NL){const n=r();let o=null,i=null;function s(a){const{dir:l,renderer:u}=a,c=l==="ltr";return c?o===null&&(o=LA(e,l)):i===null&&(i=LA(e,l)),n(u,t),c?o:i}return s}function fDe(e,t,r,n=NL){const o=n();function i(s){const{dir:a,renderer:l}=s,u=a==="ltr"?e:t||e;return o(l,Array.isArray(r)?{r}:r),u}return i}const Ye={border:EOe,borderLeft:SOe,borderBottom:wOe,borderRight:kOe,borderTop:AOe,borderColor:_B,borderStyle:bB,borderRadius:xOe,borderWidth:yB,flex:ROe,gap:OOe,gridArea:LOe,margin:jOe,marginBlock:zOe,marginInline:HOe,padding:$Oe,paddingBlock:POe,paddingInline:qOe,overflow:WOe,inset:GOe,outline:KOe,transition:VOe,textDecoration:QOe};function dDe(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const _G=hb.useInsertionEffect?hb.useInsertionEffect:void 0,OL=()=>{const e={};return function(r,n){if(_G&&dDe()){_G(()=>{r.insertCSSRules(n)},[r,n]);return}e[r.id]===void 0&&(r.insertCSSRules(n),e[r.id]=!0)}},hDe=A.createContext(h4e());function X_(){return A.useContext(hDe)}const yae=A.createContext("ltr"),pDe=({children:e,dir:t})=>A.createElement(yae.Provider,{value:t},e);function DL(){return A.useContext(yae)}function _r(e){const t=cDe(e,OL);return function(){const n=DL(),o=X_();return t({dir:n,renderer:o})}}function bt(e,t){const r=mae(e,t,OL);return function(){const o=DL(),i=X_();return r({dir:o,renderer:i})}}function Cn(e,t,r){const n=fDe(e,t,r,OL);return function(){const i=DL(),s=X_();return n({dir:i,renderer:s})}}function gDe(e,t){if(t){const r=Object.keys(t).reduce((n,o)=>`${n}--${o}: ${t[o]}; `,"");return`${e} { ${r} }`}return`${e} {}`}const bae=Symbol("fui.slotRenderFunction"),DT=Symbol("fui.slotElementType");function yr(e,t){const{defaultProps:r,elementType:n}=t,o=vDe(e),i={...r,...o,[DT]:n};return o&&typeof o.children=="function"&&(i[bae]=o.children,i.children=r==null?void 0:r.children),i}function tn(e,t){if(!(e===null||e===void 0&&!t.renderByDefault))return yr(e,t)}function vDe(e){return typeof e=="string"||typeof e=="number"||Array.isArray(e)||A.isValidElement(e)?{children:e}:e}function EG(e){return!!(e!=null&&e.hasOwnProperty(DT))}function FL(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&!A.isValidElement(e)}const bn=(...e)=>{const t={};for(const r of e){const n=Array.isArray(r)?r:Object.keys(r);for(const o of n)t[o]=1}return t},mDe=bn(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),yDe=bn(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),bDe=bn(["itemID","itemProp","itemRef","itemScope","itemType"]),Io=bn(yDe,mDe,bDe),_De=bn(Io,["form"]),_ae=bn(Io,["height","loop","muted","preload","src","width"]),EDe=bn(_ae,["poster"]),SDe=bn(Io,["start"]),wDe=bn(Io,["value"]),kDe=bn(Io,["download","href","hrefLang","media","rel","target","type"]),ADe=bn(Io,["dateTime"]),FT=bn(Io,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),xDe=bn(FT,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),TDe=bn(FT,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),IDe=bn(FT,["form","multiple","required"]),CDe=bn(Io,["selected","value"]),NDe=bn(Io,["cellPadding","cellSpacing"]),RDe=Io,ODe=bn(Io,["colSpan","rowSpan","scope"]),DDe=bn(Io,["colSpan","headers","rowSpan","scope"]),FDe=bn(Io,["span"]),BDe=bn(Io,["span"]),MDe=bn(Io,["disabled","form"]),LDe=bn(Io,["acceptCharset","action","encType","encType","method","noValidate","target"]),jDe=bn(Io,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),zDe=bn(Io,["alt","crossOrigin","height","src","srcSet","useMap","width"]),HDe=bn(Io,["open","onCancel","onClose"]);function $De(e,t,r){const n=Array.isArray(t),o={},i=Object.keys(e);for(const s of i)(!n&&t[s]||n&&t.indexOf(s)>=0||s.indexOf("data-")===0||s.indexOf("aria-")===0)&&(!r||(r==null?void 0:r.indexOf(s))===-1)&&(o[s]=e[s]);return o}const PDe={label:_De,audio:_ae,video:EDe,ol:SDe,li:wDe,a:kDe,button:FT,input:xDe,textarea:TDe,select:IDe,option:CDe,table:NDe,tr:RDe,th:ODe,td:DDe,colGroup:FDe,col:BDe,fieldset:MDe,form:LDe,iframe:jDe,img:zDe,time:ADe,dialog:HDe};function Eae(e,t,r){const n=e&&PDe[e]||Io;return n.as=1,$De(t,n,r)}const BL=({primarySlotTagName:e,props:t,excludedPropNames:r})=>({root:{style:t.style,className:t.className},primary:Eae(e,t,[...r||[],"style","className"])}),_n=(e,t,r)=>{var n;return Eae((n=t.as)!==null&&n!==void 0?n:e,t,r)};function Q_(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}function qDe(e,t){const r=A.useRef(void 0),n=A.useCallback((i,s)=>(r.current!==void 0&&t(r.current),r.current=e(i,s),r.current),[t,e]),o=A.useCallback(()=>{r.current!==void 0&&(t(r.current),r.current=void 0)},[t]);return A.useEffect(()=>o,[o]),[n,o]}function WDe(e){return typeof e=="function"}const kf=e=>{const[t,r]=A.useState(()=>e.defaultState===void 0?e.initialState:GDe(e.defaultState)?e.defaultState():e.defaultState),n=A.useRef(e.state);A.useEffect(()=>{n.current=e.state},[e.state]);const o=A.useCallback(i=>{WDe(i)&&i(n.current)},[]);return KDe(e.state)?[e.state,o]:[t,r]};function GDe(e){return typeof e=="function"}const KDe=e=>{const[t]=A.useState(()=>e!==void 0);return t},Sae={current:0},VDe=A.createContext(void 0);function wae(){var e;return(e=A.useContext(VDe))!==null&&e!==void 0?e:Sae}function UDe(){const e=wae()!==Sae,[t,r]=A.useState(e);return Q_()&&e&&A.useLayoutEffect(()=>{r(!1)},[]),t}const hc=Q_()?A.useLayoutEffect:A.useEffect,ir=e=>{const t=A.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return hc(()=>{t.current=e},[e]),A.useCallback((...r)=>{const n=t.current;return n(...r)},[t])};function YDe(){const e=A.useRef(!0);return e.current?(e.current=!1,!0):e.current}const kae=A.createContext(void 0);kae.Provider;function XDe(){return A.useContext(kae)||""}function Ks(e="fui-",t){const r=wae(),n=XDe(),o=hb.useId;if(o){const i=o(),s=A.useMemo(()=>i.replace(/:/g,""),[i]);return t||`${n}${e}${s}`}return A.useMemo(()=>t||`${n}${e}${++r.current}`,[n,e,t,r])}function Ho(...e){const t=A.useCallback(r=>{t.current=r;for(const n of e)typeof n=="function"?n(r):n&&(n.current=r)},[...e]);return t}const Aae=A.createContext(void 0),QDe=Aae.Provider,xae=A.createContext(void 0),ZDe="",JDe=xae.Provider;function e3e(){var e;return(e=A.useContext(xae))!==null&&e!==void 0?e:ZDe}const Tae=A.createContext(void 0),t3e={},r3e=Tae.Provider;function n3e(){var e;return(e=A.useContext(Tae))!==null&&e!==void 0?e:t3e}const Iae=A.createContext(void 0),o3e={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},i3e=Iae.Provider;function Fa(){var e;return(e=A.useContext(Iae))!==null&&e!==void 0?e:o3e}const Cae=A.createContext(void 0),s3e=Cae.Provider;function Nae(){var e;return(e=A.useContext(Cae))!==null&&e!==void 0?e:{}}const ML=A.createContext(void 0),a3e=()=>{},l3e=ML.Provider,fn=e=>{var t,r;return(r=(t=A.useContext(ML))===null||t===void 0?void 0:t[e])!==null&&r!==void 0?r:a3e},Rae=A.createContext(void 0);Rae.Provider;function u3e(){return A.useContext(Rae)}const Oae=A.createContext(void 0);Oae.Provider;function c3e(){return A.useContext(Oae)}const Dae=A.createContext(void 0);Dae.Provider;function f3e(){var e;return(e=A.useContext(Dae))!==null&&e!==void 0?e:{announce:()=>{}}}const Fae=(e,t)=>!!(e!=null&&e.contains(t)),d3e=e=>{const{targetDocument:t}=Fa(),r=t==null?void 0:t.defaultView,{refs:n,callback:o,element:i,disabled:s,disabledFocusOnIframe:a,contains:l=Fae}=e,u=A.useRef(void 0);p3e({element:i,disabled:a||s,callback:o,refs:n,contains:l});const c=A.useRef(!1),f=ir(h=>{if(c.current){c.current=!1;return}const g=h.composedPath()[0];n.every(y=>!l(y.current||null,g))&&!s&&o(h)}),d=ir(h=>{c.current=n.some(g=>l(g.current||null,h.target))});A.useEffect(()=>{if(s)return;let h=h3e(r);const g=v=>{if(v===h){h=void 0;return}f(v)};return i==null||i.addEventListener("click",g,!0),i==null||i.addEventListener("touchstart",g,!0),i==null||i.addEventListener("contextmenu",g,!0),i==null||i.addEventListener("mousedown",d,!0),u.current=r==null?void 0:r.setTimeout(()=>{h=void 0},1),()=>{i==null||i.removeEventListener("click",g,!0),i==null||i.removeEventListener("touchstart",g,!0),i==null||i.removeEventListener("contextmenu",g,!0),i==null||i.removeEventListener("mousedown",d,!0),r==null||r.clearTimeout(u.current),h=void 0}},[f,i,s,d,r])},h3e=e=>{if(e){var t,r;if(typeof e.window=="object"&&e.window===e)return e.event;var n;return(n=(r=e.ownerDocument)===null||r===void 0||(t=r.defaultView)===null||t===void 0?void 0:t.event)!==null&&n!==void 0?n:void 0}},bC="fuiframefocus",p3e=e=>{const{disabled:t,element:r,callback:n,contains:o=Fae,pollDuration:i=1e3,refs:s}=e,a=A.useRef(),l=ir(u=>{s.every(f=>!o(f.current||null,u.target))&&!t&&n(u)});A.useEffect(()=>{if(!t)return r==null||r.addEventListener(bC,l,!0),()=>{r==null||r.removeEventListener(bC,l,!0)}},[r,t,l]),A.useEffect(()=>{var u;if(!t)return a.current=r==null||(u=r.defaultView)===null||u===void 0?void 0:u.setInterval(()=>{const c=r==null?void 0:r.activeElement;if((c==null?void 0:c.tagName)==="IFRAME"||(c==null?void 0:c.tagName)==="WEBVIEW"){const f=new CustomEvent(bC,{bubbles:!0});c.dispatchEvent(f)}},i),()=>{var c;r==null||(c=r.defaultView)===null||c===void 0||c.clearTimeout(a.current)}},[r,t,i])},g3e=e=>{const{refs:t,callback:r,element:n,disabled:o,contains:i}=e,s=ir(a=>{const l=i||((f,d)=>!!(f!=null&&f.contains(d))),u=a.composedPath()[0];t.every(f=>!l(f.current||null,u))&&!o&&r(a)});A.useEffect(()=>{if(!o)return n==null||n.addEventListener("wheel",s),n==null||n.addEventListener("touchmove",s),()=>{n==null||n.removeEventListener("wheel",s),n==null||n.removeEventListener("touchmove",s)}},[s,n,o])};function LL(){return qDe(setTimeout,clearTimeout)}function un(e,t){return(...r)=>{e==null||e(...r),t==null||t(...r)}}function $b(e,t){var r;const n=e;var o;return!!(!(n==null||(r=n.ownerDocument)===null||r===void 0)&&r.defaultView&&n instanceof n.ownerDocument.defaultView[(o=t==null?void 0:t.constructorName)!==null&&o!==void 0?o:"HTMLElement"])}function Bae(e){return!!e.type.isFluentTriggerComponent}function jL(e,t){return typeof e=="function"?e(t):e?Mae(e,t):e||null}function Mae(e,t){if(!A.isValidElement(e)||e.type===A.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(Bae(e)){const r=Mae(e.props.children,t);return A.cloneElement(e,void 0,r)}else return A.cloneElement(e,t)}function BT(e){return A.isValidElement(e)?Bae(e)?BT(e.props.children):e:null}function v3e(e){return e&&!!e._virtual}function m3e(e){return v3e(e)&&e._virtual.parent||null}function Lae(e,t={}){if(!e)return null;if(!t.skipVirtual){const r=m3e(e);if(r)return r}return(e==null?void 0:e.parentNode)||null}function SG(e,t){if(!e||!t)return!1;if(e===t)return!0;{const r=new WeakSet;for(;t;){const n=Lae(t,{skipVirtual:r.has(t)});if(r.add(t),n===e)return!0;t=n}}return!1}function wG(e,t){if(!e)return;const r=e;r._virtual||(r._virtual={}),r._virtual.parent=t}function y3e(e,t){return{...t,[DT]:e}}function jae(e,t){return function(n,o,i,s,a){return EG(o)?t(y3e(n,o),null,i,s,a):EG(n)?t(n,o,i,s,a):e(n,o,i,s,a)}}function zae(e){const{as:t,[DT]:r,[bae]:n,...o}=e,i=o,s=typeof r=="string"?t??r:r;return typeof s!="string"&&t&&(i.as=t),{elementType:s,props:i,renderFunction:n}}const Fh=aAe,b3e=(e,t,r)=>{const{elementType:n,renderFunction:o,props:i}=zae(e),s={...i,...t};return o?Fh.jsx(A.Fragment,{children:o(n,s)},r):Fh.jsx(n,s,r)},_3e=(e,t,r)=>{const{elementType:n,renderFunction:o,props:i}=zae(e),s={...i,...t};return o?Fh.jsx(A.Fragment,{children:o(n,{...s,children:Fh.jsxs(A.Fragment,{children:s.children},void 0)})},r):Fh.jsxs(n,s,r)},Je=jae(Fh.jsx,b3e),zn=jae(Fh.jsxs,_3e),xB=A.createContext(void 0),E3e={},S3e=xB.Provider,w3e=()=>A.useContext(xB)?A.useContext(xB):E3e,k3e=bt({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),A3e=(e,t)=>{const{title:r,primaryFill:n="currentColor",...o}=e,i={...o,title:void 0,fill:n},s=k3e(),a=w3e();return i.className=Xe(s.root,(t==null?void 0:t.flipInRtl)&&(a==null?void 0:a.textDirection)==="rtl"&&s.rtl,i.className),r&&(i["aria-label"]=r),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},qr=(e,t,r,n)=>{const o=t==="1em"?"20":t,i=A.forwardRef((s,a)=>{const l={...A3e(s,{flipInRtl:n==null?void 0:n.flipInRtl}),ref:a,width:t,height:t,viewBox:`0 0 ${o} ${o}`,xmlns:"http://www.w3.org/2000/svg"};return A.createElement("svg",l,...r.map(u=>A.createElement("path",{d:u,fill:l.fill})))});return i.displayName=e,i},x3e=qr("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),T3e=qr("CheckmarkCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63Z"]),Hae=qr("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),I3e=qr("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),$ae=qr("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),C3e=qr("ErrorCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 10.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM10 6a.5.5 0 0 0-.5.41v4.68a.5.5 0 0 0 1 0V6.41A.5.5 0 0 0 10 6Z"]),N3e=qr("InfoFilled","1em",["M18 10a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM9.5 8.91a.5.5 0 0 1 1 0V13.6a.5.5 0 0 1-1 0V8.9Zm-.25-2.16a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Z"]),R3e=qr("WarningFilled","1em",["M8.68 2.79a1.5 1.5 0 0 1 2.64 0l6.5 12A1.5 1.5 0 0 1 16.5 17h-13a1.5 1.5 0 0 1-1.32-2.21l6.5-12ZM10.5 7.5a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0v-4Zm.25 6.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"]),O3e=qr("ArrowExpand20Regular","20",["M3.5 3a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 1 0V4.7l3.15 3.15a.5.5 0 1 0 .7-.7L4.71 4H7.5a.5.5 0 0 0 0-1h-4Zm0 14a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 1 0v2.8l3.15-3.15a.5.5 0 0 1 .7.7L4.71 16H7.5a.5.5 0 0 1 0 1h-4ZM17 3.5a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 0 0 1h2.8l-3.15 3.15a.5.5 0 0 0 .7.7L16 4.71V7.5a.5.5 0 0 0 1 0v-4ZM16.5 17a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 0-1 0v2.8l-3.15-3.15a.5.5 0 0 0-.7.7L15.29 16H12.5a.5.5 0 0 0 0 1h4Z"]),D3e=qr("ArrowUpload20Regular","20",["M15 3a.5.5 0 0 0 .09-.99H4a.5.5 0 0 0-.09.98L4 3h11ZM9.5 18a.5.5 0 0 0 .5-.41V5.7l3.64 3.65c.17.18.44.2.64.06l.07-.06a.5.5 0 0 0 .06-.63l-.06-.07-4.5-4.5A.5.5 0 0 0 9.6 4h-.1a.5.5 0 0 0-.4.19L4.64 8.65a.5.5 0 0 0 .64.76l.07-.06L9 5.71V17.5c0 .28.22.5.5.5Z"]),F3e=qr("ArrowUpload24Regular","24",["M18.25 3.51a.75.75 0 1 0 0-1.5h-13a.75.75 0 1 0 0 1.5h13ZM11.65 22h.1c.38 0 .7-.28.74-.64l.01-.1V7.56l3.72 3.72c.27.27.68.29.98.07l.08-.07a.75.75 0 0 0 .07-.98l-.07-.08-5-5a.75.75 0 0 0-.97-.07l-.09.07-5 5a.75.75 0 0 0 .98 1.13l.08-.07L11 7.58v13.67c0 .38.28.7.65.75Z"]),Pae=qr("Attach16Regular","16",["M2.28 7.97a.5.5 0 0 0 .86.36l4.6-4.6A2.5 2.5 0 0 1 12 5.5a2.5 2.5 0 0 1-.73 1.77l-5.3 5.3a1 1 0 0 1-1.71-.7 1 1 0 0 1 .3-.71l5.3-5.3a.5.5 0 0 0-.7-.7l-5.32 5.29a2 2 0 1 0 2.83 2.83l5.3-5.3A3.49 3.49 0 0 0 9.5 2c-.9 0-1.8.34-2.48 1.02l-4.6 4.6a.5.5 0 0 0-.14.35Z"]),B3e=qr("ChatAdd16Regular","16",["M1 7a6 6 0 0 1 11.95-.8c-.34-.1-.69-.16-1.05-.19a5 5 0 1 0-9.2 3.54.5.5 0 0 1 .05.4l-.5 1.78 1.65-.56a.5.5 0 0 1 .43.06c.5.32 1.07.55 1.68.67.03.36.1.71.18 1.05-.79-.11-1.53-.37-2.2-.75l-2.33.77a.5.5 0 0 1-.64-.6l.71-2.5A5.98 5.98 0 0 1 1 7Zm15 4.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-4-2a.5.5 0 0 0-1 0V11H9.5a.5.5 0 0 0 0 1H11v1.5a.5.5 0 0 0 1 0V12h1.5a.5.5 0 0 0 0-1H12V9.5Z"]),M3e=qr("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),L3e=qr("CheckmarkCircle12Filled","12",["M1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6Zm7.35-.9a.5.5 0 1 0-.7-.7L5.5 6.54 4.35 5.4a.5.5 0 1 0-.7.7l1.5 1.5c.2.2.5.2.7 0l2.5-2.5Z"]),j3e=qr("ChevronLeft16Regular","16",["M10.35 3.15c.2.2.2.5 0 .7L6.21 8l4.14 4.15a.5.5 0 0 1-.7.7l-4.5-4.5a.5.5 0 0 1 0-.7l4.5-4.5c.2-.2.5-.2.7 0Z"]),z3e=qr("ChevronRight16Regular","16",["M5.65 3.15a.5.5 0 0 0 0 .7L9.79 8l-4.14 4.15a.5.5 0 0 0 .7.7l4.5-4.5a.5.5 0 0 0 0-.7l-4.5-4.5a.5.5 0 0 0-.7 0Z"]),qae=qr("Copy20Regular","20",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8ZM7 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM4 6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17h6.23A2 2 0 0 1 12 18H7.5A3.5 3.5 0 0 1 4 14.5V6Z"]),Wae=qr("CopyArrowRight20Regular","20",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h1.2c-.08-.32-.15-.66-.18-1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v5.02c.34.03.68.1 1 .19V4a2 2 0 0 0-2-2H8Zm-.5 15h2.1c.18.36.4.7.66 1H7.5A3.5 3.5 0 0 1 4 14.5V6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17Zm7-7a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm2.35 4.85a.5.5 0 0 0 .15-.35.5.5 0 0 0-.15-.35l-2-2a.5.5 0 0 0-.7.7L15.29 14H12.5a.5.5 0 0 0 0 1h2.8l-1.15 1.15a.5.5 0 0 0 .7.7l2-2Z"]),Gae=qr("Dismiss20Regular","20",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),Kae=qr("Dismiss24Regular","24",["m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08-.07.08Z"]),H3e=qr("ErrorCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm-.75-2.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Zm.26-4.84a.5.5 0 0 1 .98 0l.01.09v2.59a.5.5 0 0 1-1 0V3.41Z"]),ay=qr("Info16Regular","16",["M8.5 7.5a.5.5 0 1 0-1 0v3a.5.5 0 0 0 1 0v-3Zm.25-2a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z"]),$3e=qr("Open20Regular","20",["M6 4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2v-2.5a.5.5 0 0 1 1 0V14a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h2.5a.5.5 0 0 1 0 1H6Zm5-.5c0-.28.22-.5.5-.5h5c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0V4.7l-4.15 4.15a.5.5 0 0 1-.7-.7L15.29 4H11.5a.5.5 0 0 1-.5-.5Z"]),P3e=qr("PanelLeftContract20Regular","20",["M10.82 10.5h3.68a.5.5 0 0 0 0-1h-3.68l1-.87a.5.5 0 1 0-.66-.76l-2 1.75a.5.5 0 0 0 0 .76l2 1.75a.5.5 0 1 0 .66-.76l-1-.87ZM4 4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4ZM3 6a1 1 0 0 1 1-1h3v10H4a1 1 0 0 1-1-1V6Zm5 9V5h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8Z"]),q3e=qr("PanelRightContract20Regular","20",["m9.18 10.5-1 .87a.5.5 0 1 0 .66.76l2-1.75a.5.5 0 0 0 0-.76l-2-1.75a.5.5 0 1 0-.66.76l1 .87H5.5a.5.5 0 0 0 0 1h3.68ZM16 16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h12Zm1-2a1 1 0 0 1-1 1h-3V5h3a1 1 0 0 1 1 1v8Zm-5-9v10H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h8Z"]),W3e=qr("Send16Filled","16",["M1.72 1.05a.5.5 0 0 0-.71.55l1.4 4.85c.06.18.21.32.4.35l5.69.95c.27.06.27.44 0 .5l-5.69.95a.5.5 0 0 0-.4.35l-1.4 4.85a.5.5 0 0 0 .71.55l13-6.5a.5.5 0 0 0 0-.9l-13-6.5Z"],{flipInRtl:!0}),G3e=qr("Settings20Regular","20",["M1.91 7.38A8.5 8.5 0 0 1 3.7 4.3a.5.5 0 0 1 .54-.13l1.92.68a1 1 0 0 0 1.32-.76l.36-2a.5.5 0 0 1 .4-.4 8.53 8.53 0 0 1 3.55 0c.2.04.35.2.38.4l.37 2a1 1 0 0 0 1.32.76l1.92-.68a.5.5 0 0 1 .54.13 8.5 8.5 0 0 1 1.78 3.08c.06.2 0 .4-.15.54l-1.56 1.32a1 1 0 0 0 0 1.52l1.56 1.32a.5.5 0 0 1 .15.54 8.5 8.5 0 0 1-1.78 3.08.5.5 0 0 1-.54.13l-1.92-.68a1 1 0 0 0-1.32.76l-.37 2a.5.5 0 0 1-.38.4 8.53 8.53 0 0 1-3.56 0 .5.5 0 0 1-.39-.4l-.36-2a1 1 0 0 0-1.32-.76l-1.92.68a.5.5 0 0 1-.54-.13 8.5 8.5 0 0 1-1.78-3.08.5.5 0 0 1 .15-.54l1.56-1.32a1 1 0 0 0 0-1.52L2.06 7.92a.5.5 0 0 1-.15-.54Zm1.06 0 1.3 1.1a2 2 0 0 1 0 3.04l-1.3 1.1c.3.79.72 1.51 1.25 2.16l1.6-.58a2 2 0 0 1 2.63 1.53l.3 1.67a7.56 7.56 0 0 0 2.5 0l.3-1.67a2 2 0 0 1 2.64-1.53l1.6.58a7.5 7.5 0 0 0 1.24-2.16l-1.3-1.1a2 2 0 0 1 0-3.04l1.3-1.1a7.5 7.5 0 0 0-1.25-2.16l-1.6.58a2 2 0 0 1-2.63-1.53l-.3-1.67a7.55 7.55 0 0 0-2.5 0l-.3 1.67A2 2 0 0 1 5.81 5.8l-1.6-.58a7.5 7.5 0 0 0-1.24 2.16ZM7.5 10a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0Zm1 0a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0Z"]),K3e=qr("Warning12Filled","12",["M5.21 1.46a.9.9 0 0 1 1.58 0l4.09 7.17a.92.92 0 0 1-.79 1.37H1.91a.92.92 0 0 1-.79-1.37l4.1-7.17ZM5.5 4.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]),Vae=qr("ZoomIn20Regular","20",["M11.5 8.5A.5.5 0 0 0 11 8H9V6a.5.5 0 0 0-1 0v2H6a.5.5 0 0 0 0 1h2v2a.5.5 0 0 0 1 0V9h2a.5.5 0 0 0 .5-.5ZM8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),V3e=(e,t)=>Je(i3e,{value:t.provider,children:Je(QDe,{value:t.theme,children:Je(JDe,{value:t.themeClassName,children:Je(l3e,{value:t.customStyleHooks_unstable,children:Je(r3e,{value:t.tooltip,children:Je(pDe,{dir:t.textDirection,children:Je(S3e,{value:t.iconDirection,children:Je(s3e,{value:t.overrides_unstable,children:zn(e.root,{children:[Q_()?null:Je("style",{dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule},...e.serverStyleProps.attributes}),e.root.children]})})})})})})})})});/*! +`)}`," ".repeat(4)+""," ".repeat(2)+"",e.indexOf("&")}function bG(e,t,r,n){e[t]=n?[r,n]:r}function _G(e,t){return t?[e,t]:e}function yC(e,t,r,n,o){var i;let s;t==="m"&&o&&(s={m:o}),(i=e[t])!==null&&i!==void 0||(e[t]=[]),r&&e[t].push(_G(r,s)),n&&e[t].push(_G(n,s))}function rh(e,t=[],r="",n="",o="",i="",s={},a={},l){for(const u in e){if(u4e.hasOwnProperty(u)){e[u];continue}const c=e[u];if(c!=null){if(typeof c=="string"||typeof c=="number"){const f=yG(t.join("")),d=mG(f,i,r,o,u),h=uw({container:i,media:r,layer:n,value:c.toString(),support:o,selector:f,property:u}),g=l&&{key:u,value:l}||AB(u,c),v=g.key!==u||g.value!==c,y=v?uw({container:i,value:g.value.toString(),property:g.key,selector:f,media:r,layer:n,support:o}):void 0,E=v?{rtlClassName:y,rtlProperty:g.key,rtlValue:g.value}:void 0,_=vG(t,n,r,o,i),[S,b]=fG({className:h,media:r,layer:n,selectors:t,property:u,support:o,container:i,value:c,...E});bG(s,d,h,y),yC(a,_,S,b,r)}else if(u==="animationName"){const f=Array.isArray(c)?c:[c],d=[],h=[];for(const g of f){const v=dG(g),y=dG(eae(g)),E=wB+Fg(v);let _;const S=hG(E,v);let b=[];v===y?_=E:(_=wB+Fg(y),b=hG(_,y));for(let k=0;k(T??"").toString()).join(";"),support:o,selector:f,property:u}),g=c.map(T=>AB(u,T));if(!!g.some(T=>T.key!==g[0].key))continue;const y=g[0].key!==u||g.some((T,x)=>T.value!==c[x]),E=y?uw({container:i,value:g.map(T=>{var x;return((x=T==null?void 0:T.value)!==null&&x!==void 0?x:"").toString()}).join(";"),property:g[0].key,selector:f,layer:n,media:r,support:o}):void 0,_=y?{rtlClassName:E,rtlProperty:g[0].key,rtlValue:g.map(T=>T.value)}:void 0,S=vG(t,n,r,o,i),[b,k]=fG({className:h,media:r,layer:n,selectors:t,property:u,support:o,container:i,value:c,..._});bG(s,d,h,E),yC(a,S,b,k,r)}else if(dDe(c))if(uDe(u))rh(c,t.concat(tae(u)),r,n,o,i,s,a);else if(sDe(u)){const f=pG(r,u.slice(6).trim());rh(c,t,f,n,o,i,s,a)}else if(aDe(u)){const f=(n?`${n}.`:"")+u.slice(6).trim();rh(c,t,r,f,o,i,s,a)}else if(cDe(u)){const f=pG(o,u.slice(9).trim());rh(c,t,r,n,f,i,s,a)}else if(fDe(u)){const f=u.slice(10).trim();rh(c,t,r,n,o,f,s,a)}else hDe(u,c)}}return[s,a]}function pDe(e){const t={},r={};for(const n in e){const o=e[n],[i,s]=rh(o);t[n]=i,Object.keys(s).forEach(a=>{r[a]=(r[a]||[]).concat(s[a])})}return[t,r]}function gDe(e,t=RL){const r=t();let n=null,o=null,i=null,s=null;function a(l){const{dir:u,renderer:c}=l;n===null&&([n,o]=pDe(e));const f=u==="ltr";return f?i===null&&(i=jA(n,u)):s===null&&(s=jA(n,u)),r(c,o),f?i:s}return a}function yae(e,t,r=RL){const n=r();let o=null,i=null;function s(a){const{dir:l,renderer:u}=a,c=l==="ltr";return c?o===null&&(o=jA(e,l)):i===null&&(i=jA(e,l)),n(u,t),c?o:i}return s}function vDe(e,t,r,n=RL){const o=n();function i(s){const{dir:a,renderer:l}=s,u=a==="ltr"?e:t||e;return o(l,Array.isArray(r)?{r}:r),u}return i}const Xe={border:xOe,borderLeft:TOe,borderBottom:IOe,borderRight:COe,borderTop:NOe,borderColor:EB,borderStyle:_B,borderRadius:ROe,borderWidth:bB,flex:MOe,gap:LOe,gridArea:POe,margin:qOe,marginBlock:WOe,marginInline:GOe,padding:KOe,paddingBlock:VOe,paddingInline:UOe,overflow:YOe,inset:XOe,outline:QOe,transition:ZOe,textDecoration:r4e};function mDe(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const EG=hb.useInsertionEffect?hb.useInsertionEffect:void 0,DL=()=>{const e={};return function(r,n){if(EG&&mDe()){EG(()=>{r.insertCSSRules(n)},[r,n]);return}e[r.id]===void 0&&(r.insertCSSRules(n),e[r.id]=!0)}},yDe=A.createContext(y4e());function X_(){return A.useContext(yDe)}const bae=A.createContext("ltr"),bDe=({children:e,dir:t})=>A.createElement(bae.Provider,{value:t},e);function FL(){return A.useContext(bae)}function vr(e){const t=gDe(e,DL);return function(){const n=FL(),o=X_();return t({dir:n,renderer:o})}}function bt(e,t){const r=yae(e,t,DL);return function(){const o=FL(),i=X_();return r({dir:o,renderer:i})}}function Cn(e,t,r){const n=vDe(e,t,r,DL);return function(){const i=FL(),s=X_();return n({dir:i,renderer:s})}}function _De(e,t){if(t){const r=Object.keys(t).reduce((n,o)=>`${n}--${o}: ${t[o]}; `,"");return`${e} { ${r} }`}return`${e} {}`}const _ae=Symbol("fui.slotRenderFunction"),FT=Symbol("fui.slotElementType");function _r(e,t){const{defaultProps:r,elementType:n}=t,o=EDe(e),i={...r,...o,[FT]:n};return o&&typeof o.children=="function"&&(i[_ae]=o.children,i.children=r==null?void 0:r.children),i}function tn(e,t){if(!(e===null||e===void 0&&!t.renderByDefault))return _r(e,t)}function EDe(e){return typeof e=="string"||typeof e=="number"||Array.isArray(e)||A.isValidElement(e)?{children:e}:e}function SG(e){return!!(e!=null&&e.hasOwnProperty(FT))}function BL(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&!A.isValidElement(e)}const bn=(...e)=>{const t={};for(const r of e){const n=Array.isArray(r)?r:Object.keys(r);for(const o of n)t[o]=1}return t},SDe=bn(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),wDe=bn(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),kDe=bn(["itemID","itemProp","itemRef","itemScope","itemType"]),Io=bn(wDe,SDe,kDe),ADe=bn(Io,["form"]),Eae=bn(Io,["height","loop","muted","preload","src","width"]),xDe=bn(Eae,["poster"]),TDe=bn(Io,["start"]),IDe=bn(Io,["value"]),CDe=bn(Io,["download","href","hrefLang","media","rel","target","type"]),NDe=bn(Io,["dateTime"]),BT=bn(Io,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),RDe=bn(BT,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),ODe=bn(BT,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),DDe=bn(BT,["form","multiple","required"]),FDe=bn(Io,["selected","value"]),BDe=bn(Io,["cellPadding","cellSpacing"]),MDe=Io,LDe=bn(Io,["colSpan","rowSpan","scope"]),jDe=bn(Io,["colSpan","headers","rowSpan","scope"]),zDe=bn(Io,["span"]),HDe=bn(Io,["span"]),$De=bn(Io,["disabled","form"]),PDe=bn(Io,["acceptCharset","action","encType","encType","method","noValidate","target"]),qDe=bn(Io,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),WDe=bn(Io,["alt","crossOrigin","height","src","srcSet","useMap","width"]),GDe=bn(Io,["open","onCancel","onClose"]);function KDe(e,t,r){const n=Array.isArray(t),o={},i=Object.keys(e);for(const s of i)(!n&&t[s]||n&&t.indexOf(s)>=0||s.indexOf("data-")===0||s.indexOf("aria-")===0)&&(!r||(r==null?void 0:r.indexOf(s))===-1)&&(o[s]=e[s]);return o}const VDe={label:ADe,audio:Eae,video:xDe,ol:TDe,li:IDe,a:CDe,button:BT,input:RDe,textarea:ODe,select:DDe,option:FDe,table:BDe,tr:MDe,th:LDe,td:jDe,colGroup:zDe,col:HDe,fieldset:$De,form:PDe,iframe:qDe,img:WDe,time:NDe,dialog:GDe};function Sae(e,t,r){const n=e&&VDe[e]||Io;return n.as=1,KDe(t,n,r)}const ML=({primarySlotTagName:e,props:t,excludedPropNames:r})=>({root:{style:t.style,className:t.className},primary:Sae(e,t,[...r||[],"style","className"])}),_n=(e,t,r)=>{var n;return Sae((n=t.as)!==null&&n!==void 0?n:e,t,r)};function Q_(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}function UDe(e,t){const r=A.useRef(void 0),n=A.useCallback((i,s)=>(r.current!==void 0&&t(r.current),r.current=e(i,s),r.current),[t,e]),o=A.useCallback(()=>{r.current!==void 0&&(t(r.current),r.current=void 0)},[t]);return A.useEffect(()=>o,[o]),[n,o]}function YDe(e){return typeof e=="function"}const kf=e=>{const[t,r]=A.useState(()=>e.defaultState===void 0?e.initialState:XDe(e.defaultState)?e.defaultState():e.defaultState),n=A.useRef(e.state);A.useEffect(()=>{n.current=e.state},[e.state]);const o=A.useCallback(i=>{YDe(i)&&i(n.current)},[]);return QDe(e.state)?[e.state,o]:[t,r]};function XDe(e){return typeof e=="function"}const QDe=e=>{const[t]=A.useState(()=>e!==void 0);return t},wae={current:0},ZDe=A.createContext(void 0);function kae(){var e;return(e=A.useContext(ZDe))!==null&&e!==void 0?e:wae}function JDe(){const e=kae()!==wae,[t,r]=A.useState(e);return Q_()&&e&&A.useLayoutEffect(()=>{r(!1)},[]),t}const hc=Q_()?A.useLayoutEffect:A.useEffect,ir=e=>{const t=A.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return hc(()=>{t.current=e},[e]),A.useCallback((...r)=>{const n=t.current;return n(...r)},[t])};function e3e(){const e=A.useRef(!0);return e.current?(e.current=!1,!0):e.current}const Aae=A.createContext(void 0);Aae.Provider;function t3e(){return A.useContext(Aae)||""}function Ks(e="fui-",t){const r=kae(),n=t3e(),o=hb.useId;if(o){const i=o(),s=A.useMemo(()=>i.replace(/:/g,""),[i]);return t||`${n}${e}${s}`}return A.useMemo(()=>t||`${n}${e}${++r.current}`,[n,e,t,r])}function Ho(...e){const t=A.useCallback(r=>{t.current=r;for(const n of e)typeof n=="function"?n(r):n&&(n.current=r)},[...e]);return t}const xae=A.createContext(void 0),r3e=xae.Provider,Tae=A.createContext(void 0),n3e="",o3e=Tae.Provider;function i3e(){var e;return(e=A.useContext(Tae))!==null&&e!==void 0?e:n3e}const Iae=A.createContext(void 0),s3e={},a3e=Iae.Provider;function l3e(){var e;return(e=A.useContext(Iae))!==null&&e!==void 0?e:s3e}const Cae=A.createContext(void 0),u3e={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},c3e=Cae.Provider;function Fa(){var e;return(e=A.useContext(Cae))!==null&&e!==void 0?e:u3e}const Nae=A.createContext(void 0),f3e=Nae.Provider;function Rae(){var e;return(e=A.useContext(Nae))!==null&&e!==void 0?e:{}}const LL=A.createContext(void 0),d3e=()=>{},h3e=LL.Provider,cn=e=>{var t,r;return(r=(t=A.useContext(LL))===null||t===void 0?void 0:t[e])!==null&&r!==void 0?r:d3e},Oae=A.createContext(void 0);Oae.Provider;function p3e(){return A.useContext(Oae)}const Dae=A.createContext(void 0);Dae.Provider;function g3e(){return A.useContext(Dae)}const Fae=A.createContext(void 0);Fae.Provider;function v3e(){var e;return(e=A.useContext(Fae))!==null&&e!==void 0?e:{announce:()=>{}}}const Bae=(e,t)=>!!(e!=null&&e.contains(t)),m3e=e=>{const{targetDocument:t}=Fa(),r=t==null?void 0:t.defaultView,{refs:n,callback:o,element:i,disabled:s,disabledFocusOnIframe:a,contains:l=Bae}=e,u=A.useRef(void 0);b3e({element:i,disabled:a||s,callback:o,refs:n,contains:l});const c=A.useRef(!1),f=ir(h=>{if(c.current){c.current=!1;return}const g=h.composedPath()[0];n.every(y=>!l(y.current||null,g))&&!s&&o(h)}),d=ir(h=>{c.current=n.some(g=>l(g.current||null,h.target))});A.useEffect(()=>{if(s)return;let h=y3e(r);const g=v=>{if(v===h){h=void 0;return}f(v)};return i==null||i.addEventListener("click",g,!0),i==null||i.addEventListener("touchstart",g,!0),i==null||i.addEventListener("contextmenu",g,!0),i==null||i.addEventListener("mousedown",d,!0),u.current=r==null?void 0:r.setTimeout(()=>{h=void 0},1),()=>{i==null||i.removeEventListener("click",g,!0),i==null||i.removeEventListener("touchstart",g,!0),i==null||i.removeEventListener("contextmenu",g,!0),i==null||i.removeEventListener("mousedown",d,!0),r==null||r.clearTimeout(u.current),h=void 0}},[f,i,s,d,r])},y3e=e=>{if(e){var t,r;if(typeof e.window=="object"&&e.window===e)return e.event;var n;return(n=(r=e.ownerDocument)===null||r===void 0||(t=r.defaultView)===null||t===void 0?void 0:t.event)!==null&&n!==void 0?n:void 0}},bC="fuiframefocus",b3e=e=>{const{disabled:t,element:r,callback:n,contains:o=Bae,pollDuration:i=1e3,refs:s}=e,a=A.useRef(),l=ir(u=>{s.every(f=>!o(f.current||null,u.target))&&!t&&n(u)});A.useEffect(()=>{if(!t)return r==null||r.addEventListener(bC,l,!0),()=>{r==null||r.removeEventListener(bC,l,!0)}},[r,t,l]),A.useEffect(()=>{var u;if(!t)return a.current=r==null||(u=r.defaultView)===null||u===void 0?void 0:u.setInterval(()=>{const c=r==null?void 0:r.activeElement;if((c==null?void 0:c.tagName)==="IFRAME"||(c==null?void 0:c.tagName)==="WEBVIEW"){const f=new CustomEvent(bC,{bubbles:!0});c.dispatchEvent(f)}},i),()=>{var c;r==null||(c=r.defaultView)===null||c===void 0||c.clearTimeout(a.current)}},[r,t,i])},_3e=e=>{const{refs:t,callback:r,element:n,disabled:o,contains:i}=e,s=ir(a=>{const l=i||((f,d)=>!!(f!=null&&f.contains(d))),u=a.composedPath()[0];t.every(f=>!l(f.current||null,u))&&!o&&r(a)});A.useEffect(()=>{if(!o)return n==null||n.addEventListener("wheel",s),n==null||n.addEventListener("touchmove",s),()=>{n==null||n.removeEventListener("wheel",s),n==null||n.removeEventListener("touchmove",s)}},[s,n,o])};function jL(){return UDe(setTimeout,clearTimeout)}function un(e,t){return(...r)=>{e==null||e(...r),t==null||t(...r)}}function $b(e,t){var r;const n=e;var o;return!!(!(n==null||(r=n.ownerDocument)===null||r===void 0)&&r.defaultView&&n instanceof n.ownerDocument.defaultView[(o=t==null?void 0:t.constructorName)!==null&&o!==void 0?o:"HTMLElement"])}function Mae(e){return!!e.type.isFluentTriggerComponent}function zL(e,t){return typeof e=="function"?e(t):e?Lae(e,t):e||null}function Lae(e,t){if(!A.isValidElement(e)||e.type===A.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(Mae(e)){const r=Lae(e.props.children,t);return A.cloneElement(e,void 0,r)}else return A.cloneElement(e,t)}function MT(e){return A.isValidElement(e)?Mae(e)?MT(e.props.children):e:null}function E3e(e){return e&&!!e._virtual}function S3e(e){return E3e(e)&&e._virtual.parent||null}function jae(e,t={}){if(!e)return null;if(!t.skipVirtual){const r=S3e(e);if(r)return r}return(e==null?void 0:e.parentNode)||null}function wG(e,t){if(!e||!t)return!1;if(e===t)return!0;{const r=new WeakSet;for(;t;){const n=jae(t,{skipVirtual:r.has(t)});if(r.add(t),n===e)return!0;t=n}}return!1}function kG(e,t){if(!e)return;const r=e;r._virtual||(r._virtual={}),r._virtual.parent=t}function w3e(e,t){return{...t,[FT]:e}}function zae(e,t){return function(n,o,i,s,a){return SG(o)?t(w3e(n,o),null,i,s,a):SG(n)?t(n,o,i,s,a):e(n,o,i,s,a)}}function Hae(e){const{as:t,[FT]:r,[_ae]:n,...o}=e,i=o,s=typeof r=="string"?t??r:r;return typeof s!="string"&&t&&(i.as=t),{elementType:s,props:i,renderFunction:n}}const Bh=dAe,k3e=(e,t,r)=>{const{elementType:n,renderFunction:o,props:i}=Hae(e),s={...i,...t};return o?Bh.jsx(A.Fragment,{children:o(n,s)},r):Bh.jsx(n,s,r)},A3e=(e,t,r)=>{const{elementType:n,renderFunction:o,props:i}=Hae(e),s={...i,...t};return o?Bh.jsx(A.Fragment,{children:o(n,{...s,children:Bh.jsxs(A.Fragment,{children:s.children},void 0)})},r):Bh.jsxs(n,s,r)},Je=zae(Bh.jsx,k3e),zn=zae(Bh.jsxs,A3e),TB=A.createContext(void 0),x3e={},T3e=TB.Provider,I3e=()=>A.useContext(TB)?A.useContext(TB):x3e,C3e=bt({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),N3e=(e,t)=>{const{title:r,primaryFill:n="currentColor",...o}=e,i={...o,title:void 0,fill:n},s=C3e(),a=I3e();return i.className=Ve(s.root,(t==null?void 0:t.flipInRtl)&&(a==null?void 0:a.textDirection)==="rtl"&&s.rtl,i.className),r&&(i["aria-label"]=r),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},qr=(e,t,r,n)=>{const o=t==="1em"?"20":t,i=A.forwardRef((s,a)=>{const l={...N3e(s,{flipInRtl:n==null?void 0:n.flipInRtl}),ref:a,width:t,height:t,viewBox:`0 0 ${o} ${o}`,xmlns:"http://www.w3.org/2000/svg"};return A.createElement("svg",l,...r.map(u=>A.createElement("path",{d:u,fill:l.fill})))});return i.displayName=e,i},R3e=qr("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),O3e=qr("CheckmarkCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm3.36 5.65a.5.5 0 0 0-.64-.06l-.07.06L9 11.3 7.35 9.65l-.07-.06a.5.5 0 0 0-.7.7l.07.07 2 2 .07.06c.17.11.4.11.56 0l.07-.06 4-4 .07-.08a.5.5 0 0 0-.06-.63Z"]),$ae=qr("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),D3e=qr("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),Pae=qr("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),F3e=qr("ErrorCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 10.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM10 6a.5.5 0 0 0-.5.41v4.68a.5.5 0 0 0 1 0V6.41A.5.5 0 0 0 10 6Z"]),B3e=qr("InfoFilled","1em",["M18 10a8 8 0 1 0-16 0 8 8 0 0 0 16 0ZM9.5 8.91a.5.5 0 0 1 1 0V13.6a.5.5 0 0 1-1 0V8.9Zm-.25-2.16a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Z"]),M3e=qr("WarningFilled","1em",["M8.68 2.79a1.5 1.5 0 0 1 2.64 0l6.5 12A1.5 1.5 0 0 1 16.5 17h-13a1.5 1.5 0 0 1-1.32-2.21l6.5-12ZM10.5 7.5a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0v-4Zm.25 6.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"]),L3e=qr("ArrowExpand20Regular","20",["M3.5 3a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 1 0V4.7l3.15 3.15a.5.5 0 1 0 .7-.7L4.71 4H7.5a.5.5 0 0 0 0-1h-4Zm0 14a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 1 0v2.8l3.15-3.15a.5.5 0 0 1 .7.7L4.71 16H7.5a.5.5 0 0 1 0 1h-4ZM17 3.5a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 0 0 1h2.8l-3.15 3.15a.5.5 0 0 0 .7.7L16 4.71V7.5a.5.5 0 0 0 1 0v-4ZM16.5 17a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 0-1 0v2.8l-3.15-3.15a.5.5 0 0 0-.7.7L15.29 16H12.5a.5.5 0 0 0 0 1h4Z"]),j3e=qr("ArrowUpload20Regular","20",["M15 3a.5.5 0 0 0 .09-.99H4a.5.5 0 0 0-.09.98L4 3h11ZM9.5 18a.5.5 0 0 0 .5-.41V5.7l3.64 3.65c.17.18.44.2.64.06l.07-.06a.5.5 0 0 0 .06-.63l-.06-.07-4.5-4.5A.5.5 0 0 0 9.6 4h-.1a.5.5 0 0 0-.4.19L4.64 8.65a.5.5 0 0 0 .64.76l.07-.06L9 5.71V17.5c0 .28.22.5.5.5Z"]),z3e=qr("ArrowUpload24Regular","24",["M18.25 3.51a.75.75 0 1 0 0-1.5h-13a.75.75 0 1 0 0 1.5h13ZM11.65 22h.1c.38 0 .7-.28.74-.64l.01-.1V7.56l3.72 3.72c.27.27.68.29.98.07l.08-.07a.75.75 0 0 0 .07-.98l-.07-.08-5-5a.75.75 0 0 0-.97-.07l-.09.07-5 5a.75.75 0 0 0 .98 1.13l.08-.07L11 7.58v13.67c0 .38.28.7.65.75Z"]),qae=qr("Attach16Regular","16",["M2.28 7.97a.5.5 0 0 0 .86.36l4.6-4.6A2.5 2.5 0 0 1 12 5.5a2.5 2.5 0 0 1-.73 1.77l-5.3 5.3a1 1 0 0 1-1.71-.7 1 1 0 0 1 .3-.71l5.3-5.3a.5.5 0 0 0-.7-.7l-5.32 5.29a2 2 0 1 0 2.83 2.83l5.3-5.3A3.49 3.49 0 0 0 9.5 2c-.9 0-1.8.34-2.48 1.02l-4.6 4.6a.5.5 0 0 0-.14.35Z"]),H3e=qr("ChatAdd16Regular","16",["M1 7a6 6 0 0 1 11.95-.8c-.34-.1-.69-.16-1.05-.19a5 5 0 1 0-9.2 3.54.5.5 0 0 1 .05.4l-.5 1.78 1.65-.56a.5.5 0 0 1 .43.06c.5.32 1.07.55 1.68.67.03.36.1.71.18 1.05-.79-.11-1.53-.37-2.2-.75l-2.33.77a.5.5 0 0 1-.64-.6l.71-2.5A5.98 5.98 0 0 1 1 7Zm15 4.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-4-2a.5.5 0 0 0-1 0V11H9.5a.5.5 0 0 0 0 1H11v1.5a.5.5 0 0 0 1 0V12h1.5a.5.5 0 0 0 0-1H12V9.5Z"]),$3e=qr("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),P3e=qr("CheckmarkCircle12Filled","12",["M1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6Zm7.35-.9a.5.5 0 1 0-.7-.7L5.5 6.54 4.35 5.4a.5.5 0 1 0-.7.7l1.5 1.5c.2.2.5.2.7 0l2.5-2.5Z"]),q3e=qr("ChevronLeft16Regular","16",["M10.35 3.15c.2.2.2.5 0 .7L6.21 8l4.14 4.15a.5.5 0 0 1-.7.7l-4.5-4.5a.5.5 0 0 1 0-.7l4.5-4.5c.2-.2.5-.2.7 0Z"]),W3e=qr("ChevronRight16Regular","16",["M5.65 3.15a.5.5 0 0 0 0 .7L9.79 8l-4.14 4.15a.5.5 0 0 0 .7.7l4.5-4.5a.5.5 0 0 0 0-.7l-4.5-4.5a.5.5 0 0 0-.7 0Z"]),Wae=qr("Copy20Regular","20",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h6a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8ZM7 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM4 6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17h6.23A2 2 0 0 1 12 18H7.5A3.5 3.5 0 0 1 4 14.5V6Z"]),Gae=qr("CopyArrowRight20Regular","20",["M8 2a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h1.2c-.08-.32-.15-.66-.18-1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v5.02c.34.03.68.1 1 .19V4a2 2 0 0 0-2-2H8Zm-.5 15h2.1c.18.36.4.7.66 1H7.5A3.5 3.5 0 0 1 4 14.5V6a2 2 0 0 1 1-1.73V14.5A2.5 2.5 0 0 0 7.5 17Zm7-7a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm2.35 4.85a.5.5 0 0 0 .15-.35.5.5 0 0 0-.15-.35l-2-2a.5.5 0 0 0-.7.7L15.29 14H12.5a.5.5 0 0 0 0 1h2.8l-1.15 1.15a.5.5 0 0 0 .7.7l2-2Z"]),Kae=qr("Dismiss20Regular","20",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),Vae=qr("Dismiss24Regular","24",["m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08-.07.08Z"]),G3e=qr("ErrorCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm-.75-2.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Zm.26-4.84a.5.5 0 0 1 .98 0l.01.09v2.59a.5.5 0 0 1-1 0V3.41Z"]),ay=qr("Info16Regular","16",["M8.5 7.5a.5.5 0 1 0-1 0v3a.5.5 0 0 0 1 0v-3Zm.25-2a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z"]),K3e=qr("Open20Regular","20",["M6 4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2v-2.5a.5.5 0 0 1 1 0V14a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h2.5a.5.5 0 0 1 0 1H6Zm5-.5c0-.28.22-.5.5-.5h5c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0V4.7l-4.15 4.15a.5.5 0 0 1-.7-.7L15.29 4H11.5a.5.5 0 0 1-.5-.5Z"]),V3e=qr("PanelLeftContract20Regular","20",["M10.82 10.5h3.68a.5.5 0 0 0 0-1h-3.68l1-.87a.5.5 0 1 0-.66-.76l-2 1.75a.5.5 0 0 0 0 .76l2 1.75a.5.5 0 1 0 .66-.76l-1-.87ZM4 4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4ZM3 6a1 1 0 0 1 1-1h3v10H4a1 1 0 0 1-1-1V6Zm5 9V5h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8Z"]),U3e=qr("PanelRightContract20Regular","20",["m9.18 10.5-1 .87a.5.5 0 1 0 .66.76l2-1.75a.5.5 0 0 0 0-.76l-2-1.75a.5.5 0 1 0-.66.76l1 .87H5.5a.5.5 0 0 0 0 1h3.68ZM16 16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h12Zm1-2a1 1 0 0 1-1 1h-3V5h3a1 1 0 0 1 1 1v8Zm-5-9v10H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h8Z"]),Y3e=qr("Send16Filled","16",["M1.72 1.05a.5.5 0 0 0-.71.55l1.4 4.85c.06.18.21.32.4.35l5.69.95c.27.06.27.44 0 .5l-5.69.95a.5.5 0 0 0-.4.35l-1.4 4.85a.5.5 0 0 0 .71.55l13-6.5a.5.5 0 0 0 0-.9l-13-6.5Z"],{flipInRtl:!0}),X3e=qr("Settings20Regular","20",["M1.91 7.38A8.5 8.5 0 0 1 3.7 4.3a.5.5 0 0 1 .54-.13l1.92.68a1 1 0 0 0 1.32-.76l.36-2a.5.5 0 0 1 .4-.4 8.53 8.53 0 0 1 3.55 0c.2.04.35.2.38.4l.37 2a1 1 0 0 0 1.32.76l1.92-.68a.5.5 0 0 1 .54.13 8.5 8.5 0 0 1 1.78 3.08c.06.2 0 .4-.15.54l-1.56 1.32a1 1 0 0 0 0 1.52l1.56 1.32a.5.5 0 0 1 .15.54 8.5 8.5 0 0 1-1.78 3.08.5.5 0 0 1-.54.13l-1.92-.68a1 1 0 0 0-1.32.76l-.37 2a.5.5 0 0 1-.38.4 8.53 8.53 0 0 1-3.56 0 .5.5 0 0 1-.39-.4l-.36-2a1 1 0 0 0-1.32-.76l-1.92.68a.5.5 0 0 1-.54-.13 8.5 8.5 0 0 1-1.78-3.08.5.5 0 0 1 .15-.54l1.56-1.32a1 1 0 0 0 0-1.52L2.06 7.92a.5.5 0 0 1-.15-.54Zm1.06 0 1.3 1.1a2 2 0 0 1 0 3.04l-1.3 1.1c.3.79.72 1.51 1.25 2.16l1.6-.58a2 2 0 0 1 2.63 1.53l.3 1.67a7.56 7.56 0 0 0 2.5 0l.3-1.67a2 2 0 0 1 2.64-1.53l1.6.58a7.5 7.5 0 0 0 1.24-2.16l-1.3-1.1a2 2 0 0 1 0-3.04l1.3-1.1a7.5 7.5 0 0 0-1.25-2.16l-1.6.58a2 2 0 0 1-2.63-1.53l-.3-1.67a7.55 7.55 0 0 0-2.5 0l-.3 1.67A2 2 0 0 1 5.81 5.8l-1.6-.58a7.5 7.5 0 0 0-1.24 2.16ZM7.5 10a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0Zm1 0a1.5 1.5 0 1 0 3 0 1.5 1.5 0 0 0-3 0Z"]),Q3e=qr("Warning12Filled","12",["M5.21 1.46a.9.9 0 0 1 1.58 0l4.09 7.17a.92.92 0 0 1-.79 1.37H1.91a.92.92 0 0 1-.79-1.37l4.1-7.17ZM5.5 4.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]),Uae=qr("ZoomIn20Regular","20",["M11.5 8.5A.5.5 0 0 0 11 8H9V6a.5.5 0 0 0-1 0v2H6a.5.5 0 0 0 0 1h2v2a.5.5 0 0 0 1 0V9h2a.5.5 0 0 0 .5-.5ZM8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),Z3e=(e,t)=>Je(c3e,{value:t.provider,children:Je(r3e,{value:t.theme,children:Je(o3e,{value:t.themeClassName,children:Je(h3e,{value:t.customStyleHooks_unstable,children:Je(a3e,{value:t.tooltip,children:Je(bDe,{dir:t.textDirection,children:Je(T3e,{value:t.iconDirection,children:Je(f3e,{value:t.overrides_unstable,children:zn(e.root,{children:[Q_()?null:Je("style",{dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule},...e.serverStyleProps.attributes}),e.root.children]})})})})})})})})});/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const U3e=typeof WeakRef<"u";class Uae{constructor(t){U3e&&typeof t=="object"?this._weakRef=new WeakRef(t):this._instance=t}deref(){var t,r,n;let o;return this._weakRef?(o=(t=this._weakRef)===null||t===void 0?void 0:t.deref(),o||delete this._weakRef):(o=this._instance,!((n=(r=o)===null||r===void 0?void 0:r.isDisposed)===null||n===void 0)&&n.call(r)&&delete this._instance),o}}/*! + */const J3e=typeof WeakRef<"u";class Yae{constructor(t){J3e&&typeof t=="object"?this._weakRef=new WeakRef(t):this._instance=t}deref(){var t,r,n;let o;return this._weakRef?(o=(t=this._weakRef)===null||t===void 0?void 0:t.deref(),o||delete this._weakRef):(o=this._instance,!((n=(r=o)===null||r===void 0?void 0:r.isDisposed)===null||n===void 0)&&n.call(r)&&delete this._instance),o}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const Af="keyborg:focusin";function Y3e(e){const t=e.HTMLElement,r=t.prototype.focus;let n=!1;return t.prototype.focus=function(){n=!0},e.document.createElement("button").focus(),t.prototype.focus=r,n}let _C=!1;function xf(e){const t=e.focus;t.__keyborgNativeFocus?t.__keyborgNativeFocus.call(e):e.focus()}function X3e(e){const t=e;_C||(_C=Y3e(t));const r=t.HTMLElement.prototype.focus;if(r.__keyborgNativeFocus)return;t.HTMLElement.prototype.focus=s;const n=a=>{const l=a.relatedTarget,u=a.currentTarget;u.contains(l)||(u.removeEventListener("focusin",o),u.removeEventListener("focusout",n))},o=a=>{var l;let u=a.target;if(!u)return;u.shadowRoot&&(u.shadowRoot.addEventListener("focusin",o),u.shadowRoot.addEventListener("focusout",n),u=a.composedPath()[0]);const c={relatedTarget:a.relatedTarget||void 0},f=new CustomEvent(Af,{cancelable:!0,bubbles:!0,composed:!0,detail:c});f.details=c,(_C||i.lastFocusedProgrammatically)&&(c.isFocusedProgrammatically=u===((l=i.lastFocusedProgrammatically)===null||l===void 0?void 0:l.deref()),i.lastFocusedProgrammatically=void 0),u.dispatchEvent(f)},i=t.__keyborgData={focusInHandler:o};t.document.addEventListener("focusin",t.__keyborgData.focusInHandler,!0);function s(){const a=t.__keyborgData;return a&&(a.lastFocusedProgrammatically=new Uae(this)),r.apply(this,arguments)}s.__keyborgNativeFocus=r}function Q3e(e){const t=e,r=t.HTMLElement.prototype,n=r.focus.__keyborgNativeFocus,o=t.__keyborgData;o&&(t.document.removeEventListener("focusin",o.focusInHandler,!0),delete t.__keyborgData),n&&(r.focus=n)}/*! + */const Af="keyborg:focusin";function eFe(e){const t=e.HTMLElement,r=t.prototype.focus;let n=!1;return t.prototype.focus=function(){n=!0},e.document.createElement("button").focus(),t.prototype.focus=r,n}let _C=!1;function xf(e){const t=e.focus;t.__keyborgNativeFocus?t.__keyborgNativeFocus.call(e):e.focus()}function tFe(e){const t=e;_C||(_C=eFe(t));const r=t.HTMLElement.prototype.focus;if(r.__keyborgNativeFocus)return;t.HTMLElement.prototype.focus=s;const n=a=>{const l=a.relatedTarget,u=a.currentTarget;u.contains(l)||(u.removeEventListener("focusin",o),u.removeEventListener("focusout",n))},o=a=>{var l;let u=a.target;if(!u)return;u.shadowRoot&&(u.shadowRoot.addEventListener("focusin",o),u.shadowRoot.addEventListener("focusout",n),u=a.composedPath()[0]);const c={relatedTarget:a.relatedTarget||void 0},f=new CustomEvent(Af,{cancelable:!0,bubbles:!0,composed:!0,detail:c});f.details=c,(_C||i.lastFocusedProgrammatically)&&(c.isFocusedProgrammatically=u===((l=i.lastFocusedProgrammatically)===null||l===void 0?void 0:l.deref()),i.lastFocusedProgrammatically=void 0),u.dispatchEvent(f)},i=t.__keyborgData={focusInHandler:o};t.document.addEventListener("focusin",t.__keyborgData.focusInHandler,!0);function s(){const a=t.__keyborgData;return a&&(a.lastFocusedProgrammatically=new Yae(this)),r.apply(this,arguments)}s.__keyborgNativeFocus=r}function rFe(e){const t=e,r=t.HTMLElement.prototype,n=r.focus.__keyborgNativeFocus,o=t.__keyborgData;o&&(t.document.removeEventListener("focusin",o.focusInHandler,!0),delete t.__keyborgData),n&&(r.focus=n)}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const Z3e=500;let Yae=0;class J3e{constructor(){this.__keyborgCoreRefs={},this._isNavigatingWithKeyboard=!1}add(t){const r=t.id;r in this.__keyborgCoreRefs||(this.__keyborgCoreRefs[r]=new Uae(t))}remove(t){delete this.__keyborgCoreRefs[t],Object.keys(this.__keyborgCoreRefs).length===0&&(this._isNavigatingWithKeyboard=!1)}setVal(t){if(this._isNavigatingWithKeyboard!==t){this._isNavigatingWithKeyboard=t;for(const r of Object.keys(this.__keyborgCoreRefs)){const o=this.__keyborgCoreRefs[r].deref();o?o.update(t):this.remove(r)}}}getVal(){return this._isNavigatingWithKeyboard}}const zu=new J3e;class eFe{constructor(t,r){this._onFocusIn=o=>{if(this._isMouseUsedTimer||zu.getVal())return;const i=o.detail;i.relatedTarget&&(i.isFocusedProgrammatically||i.isFocusedProgrammatically===void 0||zu.setVal(!0))},this._onMouseDown=o=>{if(o.buttons===0||o.clientX===0&&o.clientY===0&&o.screenX===0&&o.screenY===0)return;const i=this._win;i&&(this._isMouseUsedTimer&&i.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=i.setTimeout(()=>{delete this._isMouseUsedTimer},1e3)),zu.setVal(!1)},this._onKeyDown=o=>{var i,s;const a=zu.getVal(),l=o.keyCode,u=this._triggerKeys;if(!a&&(!u||u.has(l))){const c=(i=this._win)===null||i===void 0?void 0:i.document.activeElement;if(c&&(c.tagName==="INPUT"||c.tagName==="TEXTAREA"||c.contentEditable==="true"))return;zu.setVal(!0)}else a&&(!((s=this._dismissKeys)===null||s===void 0)&&s.has(l))&&this._scheduleDismiss()},this.id="c"+ ++Yae,this._win=t;const n=t.document;if(r){const o=r.triggerKeys,i=r.dismissKeys;o!=null&&o.length&&(this._triggerKeys=new Set(o)),i!=null&&i.length&&(this._dismissKeys=new Set(i))}n.addEventListener(Af,this._onFocusIn,!0),n.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("keydown",this._onKeyDown,!0),X3e(t),zu.add(this)}dispose(){const t=this._win;if(t){this._isMouseUsedTimer&&(t.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=void 0),this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),Q3e(t);const r=t.document;r.removeEventListener(Af,this._onFocusIn,!0),r.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("keydown",this._onKeyDown,!0),delete this._win,zu.remove(this.id)}}isDisposed(){return!!this._win}update(t){var r,n;const o=(n=(r=this._win)===null||r===void 0?void 0:r.__keyborg)===null||n===void 0?void 0:n.refs;if(o)for(const i of Object.keys(o))Z_.update(o[i],t)}_scheduleDismiss(){const t=this._win;if(t){this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const r=t.document.activeElement;this._dismissTimer=t.setTimeout(()=>{this._dismissTimer=void 0;const n=t.document.activeElement;r&&n&&r===n&&zu.setVal(!1)},Z3e)}}}class Z_{constructor(t,r){this._cb=[],this._id="k"+ ++Yae,this._win=t;const n=t.__keyborg;n?(this._core=n.core,n.refs[this._id]=this):(this._core=new eFe(t,r),t.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(t,r){return new Z_(t,r)}static dispose(t){t.dispose()}static update(t,r){t._cb.forEach(n=>n(r))}dispose(){var t;const r=(t=this._win)===null||t===void 0?void 0:t.__keyborg;r!=null&&r.refs[this._id]&&(delete r.refs[this._id],Object.keys(r.refs).length===0&&(r.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){return zu.getVal()}subscribe(t){this._cb.push(t)}unsubscribe(t){const r=this._cb.indexOf(t);r>=0&&this._cb.splice(r,1)}setVal(t){zu.setVal(t)}}function Xae(e,t){return Z_.create(e,t)}function Qae(e){Z_.dispose(e)}/*! + */const nFe=500;let Xae=0;class oFe{constructor(){this.__keyborgCoreRefs={},this._isNavigatingWithKeyboard=!1}add(t){const r=t.id;r in this.__keyborgCoreRefs||(this.__keyborgCoreRefs[r]=new Yae(t))}remove(t){delete this.__keyborgCoreRefs[t],Object.keys(this.__keyborgCoreRefs).length===0&&(this._isNavigatingWithKeyboard=!1)}setVal(t){if(this._isNavigatingWithKeyboard!==t){this._isNavigatingWithKeyboard=t;for(const r of Object.keys(this.__keyborgCoreRefs)){const o=this.__keyborgCoreRefs[r].deref();o?o.update(t):this.remove(r)}}}getVal(){return this._isNavigatingWithKeyboard}}const zu=new oFe;class iFe{constructor(t,r){this._onFocusIn=o=>{if(this._isMouseUsedTimer||zu.getVal())return;const i=o.detail;i.relatedTarget&&(i.isFocusedProgrammatically||i.isFocusedProgrammatically===void 0||zu.setVal(!0))},this._onMouseDown=o=>{if(o.buttons===0||o.clientX===0&&o.clientY===0&&o.screenX===0&&o.screenY===0)return;const i=this._win;i&&(this._isMouseUsedTimer&&i.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=i.setTimeout(()=>{delete this._isMouseUsedTimer},1e3)),zu.setVal(!1)},this._onKeyDown=o=>{var i,s;const a=zu.getVal(),l=o.keyCode,u=this._triggerKeys;if(!a&&(!u||u.has(l))){const c=(i=this._win)===null||i===void 0?void 0:i.document.activeElement;if(c&&(c.tagName==="INPUT"||c.tagName==="TEXTAREA"||c.contentEditable==="true"))return;zu.setVal(!0)}else a&&(!((s=this._dismissKeys)===null||s===void 0)&&s.has(l))&&this._scheduleDismiss()},this.id="c"+ ++Xae,this._win=t;const n=t.document;if(r){const o=r.triggerKeys,i=r.dismissKeys;o!=null&&o.length&&(this._triggerKeys=new Set(o)),i!=null&&i.length&&(this._dismissKeys=new Set(i))}n.addEventListener(Af,this._onFocusIn,!0),n.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("keydown",this._onKeyDown,!0),tFe(t),zu.add(this)}dispose(){const t=this._win;if(t){this._isMouseUsedTimer&&(t.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=void 0),this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),rFe(t);const r=t.document;r.removeEventListener(Af,this._onFocusIn,!0),r.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("keydown",this._onKeyDown,!0),delete this._win,zu.remove(this.id)}}isDisposed(){return!!this._win}update(t){var r,n;const o=(n=(r=this._win)===null||r===void 0?void 0:r.__keyborg)===null||n===void 0?void 0:n.refs;if(o)for(const i of Object.keys(o))Z_.update(o[i],t)}_scheduleDismiss(){const t=this._win;if(t){this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const r=t.document.activeElement;this._dismissTimer=t.setTimeout(()=>{this._dismissTimer=void 0;const n=t.document.activeElement;r&&n&&r===n&&zu.setVal(!1)},nFe)}}}class Z_{constructor(t,r){this._cb=[],this._id="k"+ ++Xae,this._win=t;const n=t.__keyborg;n?(this._core=n.core,n.refs[this._id]=this):(this._core=new iFe(t,r),t.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(t,r){return new Z_(t,r)}static dispose(t){t.dispose()}static update(t,r){t._cb.forEach(n=>n(r))}dispose(){var t;const r=(t=this._win)===null||t===void 0?void 0:t.__keyborg;r!=null&&r.refs[this._id]&&(delete r.refs[this._id],Object.keys(r.refs).length===0&&(r.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){return zu.getVal()}subscribe(t){this._cb.push(t)}unsubscribe(t){const r=this._cb.indexOf(t);r>=0&&this._cb.splice(r,1)}setVal(t){zu.setVal(t)}}function Qae(e,t){return Z_.create(e,t)}function Zae(e){Z_.dispose(e)}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const gf="data-tabster",Zae="data-tabster-dummy",tFe="tabster:deloser",Jae="tabster:modalizer:active",ele="tabster:modalizer:inactive",rFe="tabster:modalizer:focusin",nFe="tabster:modalizer:focusout",oFe="tabster:modalizer:beforefocusout",TB="tabster:mover",tle="tabster:focusin",rle="tabster:focusout",nle="tabster:movefocus",zL=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]"].join(", "),iFe={Any:0,Accessible:1,Focusable:2},sFe={History:0,DeloserDefault:1,RootDefault:2,DeloserFirst:3,RootFirst:4},Qc={Invisible:0,PartiallyVisible:1,Visible:2},Pb={Source:0,Target:1},rh={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},aFe={Unlimited:0,Limited:1,LimitedTrapFocus:2},ole={Auto:0,Inside:1,Outside:2};var fh=Object.freeze({__proto__:null,TabsterAttributeName:gf,TabsterDummyInputAttributeName:Zae,DeloserEventName:tFe,ModalizerActiveEventName:Jae,ModalizerInactiveEventName:ele,ModalizerFocusInEventName:rFe,ModalizerFocusOutEventName:nFe,ModalizerBeforeFocusOutEventName:oFe,MoverEventName:TB,FocusInEventName:tle,FocusOutEventName:rle,MoveFocusEventName:nle,FocusableSelector:zL,ObservedElementAccesibilities:iFe,RestoreFocusOrders:sFe,Visibilities:Qc,RestorerTypes:Pb,MoverDirections:rh,GroupperTabbabilities:aFe,SysDummyInputsPositions:ole});/*! + */const gf="data-tabster",Jae="data-tabster-dummy",sFe="tabster:deloser",ele="tabster:modalizer:active",tle="tabster:modalizer:inactive",aFe="tabster:modalizer:focusin",lFe="tabster:modalizer:focusout",uFe="tabster:modalizer:beforefocusout",IB="tabster:mover",rle="tabster:focusin",nle="tabster:focusout",ole="tabster:movefocus",HL=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]"].join(", "),cFe={Any:0,Accessible:1,Focusable:2},fFe={History:0,DeloserDefault:1,RootDefault:2,DeloserFirst:3,RootFirst:4},Qc={Invisible:0,PartiallyVisible:1,Visible:2},Pb={Source:0,Target:1},nh={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},dFe={Unlimited:0,Limited:1,LimitedTrapFocus:2},ile={Auto:0,Inside:1,Outside:2};var dh=Object.freeze({__proto__:null,TabsterAttributeName:gf,TabsterDummyInputAttributeName:Jae,DeloserEventName:sFe,ModalizerActiveEventName:ele,ModalizerInactiveEventName:tle,ModalizerFocusInEventName:aFe,ModalizerFocusOutEventName:lFe,ModalizerBeforeFocusOutEventName:uFe,MoverEventName:IB,FocusInEventName:rle,FocusOutEventName:nle,MoveFocusEventName:ole,FocusableSelector:HL,ObservedElementAccesibilities:cFe,RestoreFocusOrders:fFe,Visibilities:Qc,RestorerTypes:Pb,MoverDirections:nh,GroupperTabbabilities:dFe,SysDummyInputsPositions:ile});/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */function ba(e,t){var r;return(r=e.storageEntry(t))===null||r===void 0?void 0:r.tabster}function ile(e,t,r){var n,o;const i=r||e._noop?void 0:t.getAttribute(gf);let s=e.storageEntry(t),a;if(i)if(i!==((n=s==null?void 0:s.attr)===null||n===void 0?void 0:n.string))try{const f=JSON.parse(i);if(typeof f!="object")throw new Error(`Value is not a JSON object, got '${i}'.`);a={string:i,object:f}}catch{}else return;else if(!s)return;s||(s=e.storageEntry(t,!0)),s.tabster||(s.tabster={});const l=s.tabster||{},u=((o=s.attr)===null||o===void 0?void 0:o.object)||{},c=(a==null?void 0:a.object)||{};for(const f of Object.keys(u))if(!c[f]){if(f==="root"){const d=l[f];d&&e.root.onRoot(d,!0)}switch(f){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const d=l[f];d&&(d.dispose(),delete l[f]);break;case"observed":delete l[f],e.observedElement&&e.observedElement.onObservedElementUpdate(t);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete l[f];break}}for(const f of Object.keys(c)){const d=c.sys;switch(f){case"deloser":l.deloser?l.deloser.setProps(c.deloser):e.deloser&&(l.deloser=e.deloser.createDeloser(t,c.deloser));break;case"root":l.root?l.root.setProps(c.root):l.root=e.root.createRoot(t,c.root,d),e.root.onRoot(l.root);break;case"modalizer":l.modalizer?l.modalizer.setProps(c.modalizer):e.modalizer&&(l.modalizer=e.modalizer.createModalizer(t,c.modalizer,d));break;case"restorer":l.restorer?l.restorer.setProps(c.restorer):e.restorer&&c.restorer&&(l.restorer=e.restorer.createRestorer(t,c.restorer));break;case"focusable":l.focusable=c.focusable;break;case"groupper":l.groupper?l.groupper.setProps(c.groupper):e.groupper&&(l.groupper=e.groupper.createGroupper(t,c.groupper,d));break;case"mover":l.mover?l.mover.setProps(c.mover):e.mover&&(l.mover=e.mover.createMover(t,c.mover,d));break;case"observed":e.observedElement&&(l.observed=c.observed,e.observedElement.onObservedElementUpdate(t));break;case"uncontrolled":l.uncontrolled=c.uncontrolled;break;case"outline":e.outline&&(l.outline=c.outline);break;case"sys":l.sys=c.sys;break;default:console.error(`Unknown key '${f}' in data-tabster attribute value.`)}}a?s.attr=a:(Object.keys(l).length===0&&(delete s.tabster,delete s.attr),e.storageEntry(t,!1))}/*! + */function ba(e,t){var r;return(r=e.storageEntry(t))===null||r===void 0?void 0:r.tabster}function sle(e,t,r){var n,o;const i=r||e._noop?void 0:t.getAttribute(gf);let s=e.storageEntry(t),a;if(i)if(i!==((n=s==null?void 0:s.attr)===null||n===void 0?void 0:n.string))try{const f=JSON.parse(i);if(typeof f!="object")throw new Error(`Value is not a JSON object, got '${i}'.`);a={string:i,object:f}}catch{}else return;else if(!s)return;s||(s=e.storageEntry(t,!0)),s.tabster||(s.tabster={});const l=s.tabster||{},u=((o=s.attr)===null||o===void 0?void 0:o.object)||{},c=(a==null?void 0:a.object)||{};for(const f of Object.keys(u))if(!c[f]){if(f==="root"){const d=l[f];d&&e.root.onRoot(d,!0)}switch(f){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const d=l[f];d&&(d.dispose(),delete l[f]);break;case"observed":delete l[f],e.observedElement&&e.observedElement.onObservedElementUpdate(t);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete l[f];break}}for(const f of Object.keys(c)){const d=c.sys;switch(f){case"deloser":l.deloser?l.deloser.setProps(c.deloser):e.deloser&&(l.deloser=e.deloser.createDeloser(t,c.deloser));break;case"root":l.root?l.root.setProps(c.root):l.root=e.root.createRoot(t,c.root,d),e.root.onRoot(l.root);break;case"modalizer":l.modalizer?l.modalizer.setProps(c.modalizer):e.modalizer&&(l.modalizer=e.modalizer.createModalizer(t,c.modalizer,d));break;case"restorer":l.restorer?l.restorer.setProps(c.restorer):e.restorer&&c.restorer&&(l.restorer=e.restorer.createRestorer(t,c.restorer));break;case"focusable":l.focusable=c.focusable;break;case"groupper":l.groupper?l.groupper.setProps(c.groupper):e.groupper&&(l.groupper=e.groupper.createGroupper(t,c.groupper,d));break;case"mover":l.mover?l.mover.setProps(c.mover):e.mover&&(l.mover=e.mover.createMover(t,c.mover,d));break;case"observed":e.observedElement&&(l.observed=c.observed,e.observedElement.onObservedElementUpdate(t));break;case"uncontrolled":l.uncontrolled=c.uncontrolled;break;case"outline":e.outline&&(l.outline=c.outline);break;case"sys":l.sys=c.sys;break;default:console.error(`Unknown key '${f}' in data-tabster attribute value.`)}}a?s.attr=a:(Object.keys(l).length===0&&(delete s.tabster,delete s.attr),e.storageEntry(t,!1))}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */function lFe(e){const t=e();try{if(t.EventTarget)return new t.EventTarget}catch(r){if(!(r instanceof TypeError))throw r}return t.document.createElement("div")}/*! + */function hFe(e){const t=e();try{if(t.EventTarget)return new t.EventTarget}catch(r){if(!(r instanceof TypeError))throw r}return t.document.createElement("div")}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */let IB;const kG=typeof DOMRect<"u"?DOMRect:class{constructor(e,t,r,n){this.left=e||0,this.top=t||0,this.right=(e||0)+(r||0),this.bottom=(t||0)+(n||0)}};let uFe=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),IB=!1}catch{IB=!0}const EC=100;function $f(e){const t=e();let r=t.__tabsterInstanceContext;return r||(r={elementByUId:{},basics:{Promise:t.Promise||void 0,WeakRef:t.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},t.__tabsterInstanceContext=r),r}function cFe(e){const t=e.__tabsterInstanceContext;t&&(t.elementByUId={},delete t.WeakRef,t.containerBoundingRectCache={},t.containerBoundingRectCacheTimer&&e.clearTimeout(t.containerBoundingRectCacheTimer),t.fakeWeakRefsTimer&&e.clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefs=[],delete e.__tabsterInstanceContext)}function fFe(e){const t=e.__tabsterInstanceContext;return new((t==null?void 0:t.basics.WeakMap)||WeakMap)}function dFe(e){return!!e.querySelector(zL)}class sle{constructor(t){this._target=t}deref(){return this._target}static cleanup(t,r){return t._target?r||!$L(t._target.ownerDocument,t._target)?(delete t._target,!0):!1:!0}}class gl{constructor(t,r,n){const o=$f(t);let i;o.WeakRef?i=new o.WeakRef(r):(i=new sle(r),o.fakeWeakRefs.push(i)),this._ref=i,this._data=n}get(){const t=this._ref;let r;return t&&(r=t.deref(),r||delete this._ref),r}getData(){return this._data}}function ale(e,t){const r=$f(e);r.fakeWeakRefs=r.fakeWeakRefs.filter(n=>!sle.cleanup(n,t))}function lle(e){const t=$f(e);t.fakeWeakRefsStarted||(t.fakeWeakRefsStarted=!0,t.WeakRef=yFe(t)),t.fakeWeakRefsTimer||(t.fakeWeakRefsTimer=e().setTimeout(()=>{t.fakeWeakRefsTimer=void 0,ale(e),lle(e)},2*60*1e3))}function hFe(e){const t=$f(e);t.fakeWeakRefsStarted=!1,t.fakeWeakRefsTimer&&(e().clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefsTimer=void 0,t.fakeWeakRefs=[])}function HL(e,t,r){if(t.nodeType!==Node.ELEMENT_NODE)return;const n=IB?r:{acceptNode:r};return e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,n,!1)}function ule(e,t){let r=t.__tabsterCacheId;const n=$f(e),o=r?n.containerBoundingRectCache[r]:void 0;if(o)return o.rect;const i=t.ownerDocument&&t.ownerDocument.documentElement;if(!i)return new kG;let s=0,a=0,l=i.clientWidth,u=i.clientHeight;if(t!==i){const f=t.getBoundingClientRect();s=Math.max(s,f.left),a=Math.max(a,f.top),l=Math.min(l,f.right),u=Math.min(u,f.bottom)}const c=new kG(s{n.containerBoundingRectCacheTimer=void 0;for(const f of Object.keys(n.containerBoundingRectCache))delete n.containerBoundingRectCache[f].element.__tabsterCacheId;n.containerBoundingRectCache={}},50)),c}function AG(e,t,r){const n=cle(t);if(!n)return!1;const o=ule(e,n),i=t.getBoundingClientRect(),s=i.height*(1-r),a=Math.max(0,o.top-i.top),l=Math.max(0,i.bottom-o.bottom),u=a+l;return u===0||u<=s}function pFe(e,t,r){const n=cle(t);if(n){const o=ule(e,n),i=t.getBoundingClientRect();r?n.scrollTop+=i.top-o.top:n.scrollTop+=i.bottom-o.bottom}}function cle(e){const t=e.ownerDocument;if(t){for(let r=e.parentElement;r;r=r.parentElement)if(r.scrollWidth>r.clientWidth||r.scrollHeight>r.clientHeight)return r;return t.documentElement}return null}function gFe(e){e.__shouldIgnoreFocus=!0}function fle(e){return!!e.__shouldIgnoreFocus}function vFe(e){const t=new Uint32Array(4);if(e.crypto&&e.crypto.getRandomValues)e.crypto.getRandomValues(t);else if(e.msCrypto&&e.msCrypto.getRandomValues)e.msCrypto.getRandomValues(t);else for(let n=0;n{if(this._fixedTarget){const d=this._fixedTarget.get();d&&xf(d);return}const f=this.input;if(this.onFocusIn&&f){const d=c.relatedTarget;this.onFocusIn(this,this._isBackward(!0,f,d),d)}},this._focusOut=c=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const f=this.input;if(this.onFocusOut&&f){const d=c.relatedTarget;this.onFocusOut(this,this._isBackward(!1,f,d),d)}};const a=t(),l=a.document.createElement("i");l.tabIndex=0,l.setAttribute("role","none"),l.setAttribute(Zae,""),l.setAttribute("aria-hidden","true");const u=l.style;u.position="fixed",u.width=u.height="1px",u.opacity="0.001",u.zIndex="-1",u.setProperty("content-visibility","hidden"),gFe(l),this.input=l,this.isFirst=n.isFirst,this.isOutside=r,this._isPhantom=(s=n.isPhantom)!==null&&s!==void 0?s:!1,this._fixedTarget=i,l.addEventListener("focusin",this._focusIn),l.addEventListener("focusout",this._focusOut),l.__tabsterDummyContainer=o,this._isPhantom&&(this._disposeTimer=a.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(a.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var t;this._clearDisposeTimeout&&this._clearDisposeTimeout();const r=this.input;r&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,r.removeEventListener("focusin",this._focusIn),r.removeEventListener("focusout",this._focusOut),delete r.__tabsterDummyContainer,(t=r.parentElement)===null||t===void 0||t.removeChild(r))}setTopLeft(t,r){var n;const o=(n=this.input)===null||n===void 0?void 0:n.style;o&&(o.top=`${t}px`,o.left=`${r}px`)}_isBackward(t,r,n){return t&&!n?!this.isFirst:!!(n&&r.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)}}const PL={Root:1,Modalizer:2,Mover:3,Groupper:4};class qb{constructor(t,r,n,o,i,s){this._element=r,this._instance=new EFe(t,r,this,n,o,i,s)}_setHandlers(t,r){this._onFocusIn=t,this._onFocusOut=r}moveOut(t){var r;(r=this._instance)===null||r===void 0||r.moveOut(t)}moveOutWithDefaultAction(t,r){var n;(n=this._instance)===null||n===void 0||n.moveOutWithDefaultAction(t,r)}getHandler(t){return t?this._onFocusIn:this._onFocusOut}setTabbable(t){var r;(r=this._instance)===null||r===void 0||r.setTabbable(this,t)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(t,r,n,o,i){var s;const l=new zA(t.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(l){let u,c;if(r.tagName==="BODY")u=r,c=n&&o||!n&&!o?r.firstElementChild:null;else{n&&(!o||o&&!t.focusable.isFocusable(r,!1,!0,!0))?(u=r,c=o?r.firstElementChild:null):(u=r.parentElement,c=n&&o||!n&&!o?r:r.nextElementSibling);let f,d;do f=n&&o||!n&&!o?c==null?void 0:c.previousElementSibling:c,d=(s=f==null?void 0:f.__tabsterDummyContainer)===null||s===void 0?void 0:s.get(),d===r?c=n&&o||!n&&!o?f:f==null?void 0:f.nextElementSibling:d=void 0;while(d)}u&&ag({by:"root",owner:u,next:null,relatedEvent:i})&&(u.insertBefore(l,c),xf(l))}}static addPhantomDummyWithTarget(t,r,n,o){const s=new zA(t.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new gl(t.getWindow,o)).input;if(s){let a,l;dFe(r)&&!n?(a=r,l=r.firstElementChild):(a=r.parentElement,l=n?r:r.nextElementSibling),a==null||a.insertBefore(s,l)}}}class _Fe{constructor(t){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=r=>{var n;this._changedParents.has(r)||(this._changedParents.add(r),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(n=this._win)===null||n===void 0?void 0:n.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const o of this._dummyElements){const i=o.get();if(i){const s=this._dummyCallbacks.get(i);if(s){const a=i.parentElement;(!a||this._changedParents.has(a))&&s()}}}this._changedParents=new WeakSet},EC)))},this._win=t}add(t,r){!this._dummyCallbacks.has(t)&&this._win&&(this._dummyElements.push(new gl(this._win,t)),this._dummyCallbacks.set(t,r),this.domChanged=this._domChanged)}remove(t){this._dummyElements=this._dummyElements.filter(r=>{const n=r.get();return n&&n!==t}),this._dummyCallbacks.delete(t),this._dummyElements.length===0&&delete this.domChanged}dispose(){var t;const r=(t=this._win)===null||t===void 0?void 0:t.call(this);this._updateTimer&&(r==null||r.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(r==null||r.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(t){this._win&&(this._updateQueue.add(t),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var t;this._updateTimer||(this._updateTimer=(t=this._win)===null||t===void 0?void 0:t.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+EC<=Date.now()){const r=new Map,n=[];for(const o of this._updateQueue)n.push(o(r));this._updateQueue.clear();for(const o of n)o();r.clear()}else this._scheduledUpdatePositions()},EC))}}class EFe{constructor(t,r,n,o,i,s,a){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(h,g,v)=>{this._onFocus(!0,h,g,v)},this._onFocusOut=(h,g,v)=>{this._onFocus(!1,h,g,v)},this.moveOut=h=>{var g;const v=this._firstDummy,y=this._lastDummy;if(v&&y){this._ensurePosition();const E=v.input,_=y.input,S=(g=this._element)===null||g===void 0?void 0:g.get();if(E&&_&&S){let b;h?(E.tabIndex=0,b=E):(_.tabIndex=0,b=_),b&&xf(b)}}},this.moveOutWithDefaultAction=(h,g)=>{var v;const y=this._firstDummy,E=this._lastDummy;if(y&&E){this._ensurePosition();const _=y.input,S=E.input,b=(v=this._element)===null||v===void 0?void 0:v.get();if(_&&S&&b){let k;h?!y.isOutside&&this._tabster.focusable.isFocusable(b,!0,!0,!0)?k=b:(y.useDefaultAction=!0,_.tabIndex=0,k=_):(E.useDefaultAction=!0,S.tabIndex=0,k=S),k&&ag({by:"root",owner:b,next:null,relatedEvent:g})&&xf(k)}}},this.setTabbable=(h,g)=>{var v,y;for(const _ of this._wrappers)if(_.manager===h){_.tabbable=g;break}const E=this._getCurrent();if(E){const _=E.tabbable?0:-1;let S=(v=this._firstDummy)===null||v===void 0?void 0:v.input;S&&(S.tabIndex=_),S=(y=this._lastDummy)===null||y===void 0?void 0:y.input,S&&(S.tabIndex=_)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=h=>{var g,v;const y=((g=this._firstDummy)===null||g===void 0?void 0:g.input)||((v=this._lastDummy)===null||v===void 0?void 0:v.input),E=this._transformElements,_=new Set;let S=0,b=0;const k=this._getWindow();for(let T=y;T&&T.nodeType===Node.ELEMENT_NODE;T=T.parentElement){let x=h.get(T);if(x===void 0){const I=k.getComputedStyle(T).transform;I&&I!=="none"&&(x={scrollTop:T.scrollTop,scrollLeft:T.scrollLeft}),h.set(T,x||null)}x&&(_.add(T),E.has(T)||T.addEventListener("scroll",this._addTransformOffsets),S+=x.scrollTop,b+=x.scrollLeft)}for(const T of E)_.has(T)||T.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=_,()=>{var T,x;(T=this._firstDummy)===null||T===void 0||T.setTopLeft(S,b),(x=this._lastDummy)===null||x===void 0||x.setTopLeft(S,b)}};const l=r.get();if(!l)throw new Error("No element");this._tabster=t,this._getWindow=t.getWindow,this._callForDefaultAction=a;const u=l.__tabsterDummy;if((u||this)._wrappers.push({manager:n,priority:o,tabbable:!0}),u)return u;l.__tabsterDummy=this;const c=i==null?void 0:i.dummyInputsPosition,f=l.tagName;this._isOutside=c?c===ole.Outside:(s||f==="UL"||f==="OL"||f==="TABLE")&&!(f==="LI"||f==="TD"||f==="TH"),this._firstDummy=new zA(this._getWindow,this._isOutside,{isFirst:!0},r),this._lastDummy=new zA(this._getWindow,this._isOutside,{isFirst:!1},r);const d=this._firstDummy.input;d&&t._dummyObserver.add(d,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=r,this._addDummyInputs()}dispose(t,r){var n,o,i,s;if((this._wrappers=this._wrappers.filter(l=>l.manager!==t&&!r)).length===0){delete((n=this._element)===null||n===void 0?void 0:n.get()).__tabsterDummy;for(const c of this._transformElements)c.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const l=this._getWindow();this._addTimer&&(l.clearTimeout(this._addTimer),delete this._addTimer);const u=(o=this._firstDummy)===null||o===void 0?void 0:o.input;u&&this._tabster._dummyObserver.remove(u),(i=this._firstDummy)===null||i===void 0||i.dispose(),(s=this._lastDummy)===null||s===void 0||s.dispose()}}_onFocus(t,r,n,o){var i;const s=this._getCurrent();s&&(!r.useDefaultAction||this._callForDefaultAction)&&((i=s.manager.getHandler(t))===null||i===void 0||i(r,n,o))}_getCurrent(){return this._wrappers.sort((t,r)=>t.tabbable!==r.tabbable?t.tabbable?-1:1:t.priority-r.priority),this._wrappers[0]}_ensurePosition(){var t,r,n;const o=(t=this._element)===null||t===void 0?void 0:t.get(),i=(r=this._firstDummy)===null||r===void 0?void 0:r.input,s=(n=this._lastDummy)===null||n===void 0?void 0:n.input;if(!(!o||!i||!s))if(this._isOutside){const a=o.parentElement;if(a){const l=o.nextElementSibling;l!==s&&a.insertBefore(s,l),o.previousElementSibling!==i&&a.insertBefore(i,o)}}else{o.lastElementChild!==s&&o.appendChild(s);const a=o.firstElementChild;a&&a!==i&&o.insertBefore(i,a)}}}function hle(e){let t=null;for(let r=e.lastElementChild;r;r=r.lastElementChild)t=r;return t||void 0}function f1(e,t,r){const n=document.createEvent("HTMLEvents");return n.initEvent(t,!0,!0),n.details=r,e.dispatchEvent(n),!n.defaultPrevented}function ag(e){return f1(e.owner,nle,e)}function SC(e,t,r,n){const o=e.storageEntry(t,!0);let i=!1;if(!o.aug){if(n===void 0)return i;o.aug={}}if(n===void 0){if(r in o.aug){const s=o.aug[r];delete o.aug[r],s===null?t.removeAttribute(r):t.setAttribute(r,s),i=!0}}else{let s;r in o.aug||(s=t.getAttribute(r)),s!==void 0&&s!==n&&(o.aug[r]=s,n===null?t.removeAttribute(r):t.setAttribute(r,n),i=!0)}return n===void 0&&Object.keys(o.aug).length===0&&(delete o.aug,e.storageEntry(t,!1)),i}/*! + */let CB;const AG=typeof DOMRect<"u"?DOMRect:class{constructor(e,t,r,n){this.left=e||0,this.top=t||0,this.right=(e||0)+(r||0),this.bottom=(t||0)+(n||0)}};let pFe=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),CB=!1}catch{CB=!0}const EC=100;function $f(e){const t=e();let r=t.__tabsterInstanceContext;return r||(r={elementByUId:{},basics:{Promise:t.Promise||void 0,WeakRef:t.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},t.__tabsterInstanceContext=r),r}function gFe(e){const t=e.__tabsterInstanceContext;t&&(t.elementByUId={},delete t.WeakRef,t.containerBoundingRectCache={},t.containerBoundingRectCacheTimer&&e.clearTimeout(t.containerBoundingRectCacheTimer),t.fakeWeakRefsTimer&&e.clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefs=[],delete e.__tabsterInstanceContext)}function vFe(e){const t=e.__tabsterInstanceContext;return new((t==null?void 0:t.basics.WeakMap)||WeakMap)}function mFe(e){return!!e.querySelector(HL)}class ale{constructor(t){this._target=t}deref(){return this._target}static cleanup(t,r){return t._target?r||!PL(t._target.ownerDocument,t._target)?(delete t._target,!0):!1:!0}}class vl{constructor(t,r,n){const o=$f(t);let i;o.WeakRef?i=new o.WeakRef(r):(i=new ale(r),o.fakeWeakRefs.push(i)),this._ref=i,this._data=n}get(){const t=this._ref;let r;return t&&(r=t.deref(),r||delete this._ref),r}getData(){return this._data}}function lle(e,t){const r=$f(e);r.fakeWeakRefs=r.fakeWeakRefs.filter(n=>!ale.cleanup(n,t))}function ule(e){const t=$f(e);t.fakeWeakRefsStarted||(t.fakeWeakRefsStarted=!0,t.WeakRef=wFe(t)),t.fakeWeakRefsTimer||(t.fakeWeakRefsTimer=e().setTimeout(()=>{t.fakeWeakRefsTimer=void 0,lle(e),ule(e)},2*60*1e3))}function yFe(e){const t=$f(e);t.fakeWeakRefsStarted=!1,t.fakeWeakRefsTimer&&(e().clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefsTimer=void 0,t.fakeWeakRefs=[])}function $L(e,t,r){if(t.nodeType!==Node.ELEMENT_NODE)return;const n=CB?r:{acceptNode:r};return e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,n,!1)}function cle(e,t){let r=t.__tabsterCacheId;const n=$f(e),o=r?n.containerBoundingRectCache[r]:void 0;if(o)return o.rect;const i=t.ownerDocument&&t.ownerDocument.documentElement;if(!i)return new AG;let s=0,a=0,l=i.clientWidth,u=i.clientHeight;if(t!==i){const f=t.getBoundingClientRect();s=Math.max(s,f.left),a=Math.max(a,f.top),l=Math.min(l,f.right),u=Math.min(u,f.bottom)}const c=new AG(s{n.containerBoundingRectCacheTimer=void 0;for(const f of Object.keys(n.containerBoundingRectCache))delete n.containerBoundingRectCache[f].element.__tabsterCacheId;n.containerBoundingRectCache={}},50)),c}function xG(e,t,r){const n=fle(t);if(!n)return!1;const o=cle(e,n),i=t.getBoundingClientRect(),s=i.height*(1-r),a=Math.max(0,o.top-i.top),l=Math.max(0,i.bottom-o.bottom),u=a+l;return u===0||u<=s}function bFe(e,t,r){const n=fle(t);if(n){const o=cle(e,n),i=t.getBoundingClientRect();r?n.scrollTop+=i.top-o.top:n.scrollTop+=i.bottom-o.bottom}}function fle(e){const t=e.ownerDocument;if(t){for(let r=e.parentElement;r;r=r.parentElement)if(r.scrollWidth>r.clientWidth||r.scrollHeight>r.clientHeight)return r;return t.documentElement}return null}function _Fe(e){e.__shouldIgnoreFocus=!0}function dle(e){return!!e.__shouldIgnoreFocus}function EFe(e){const t=new Uint32Array(4);if(e.crypto&&e.crypto.getRandomValues)e.crypto.getRandomValues(t);else if(e.msCrypto&&e.msCrypto.getRandomValues)e.msCrypto.getRandomValues(t);else for(let n=0;n{if(this._fixedTarget){const d=this._fixedTarget.get();d&&xf(d);return}const f=this.input;if(this.onFocusIn&&f){const d=c.relatedTarget;this.onFocusIn(this,this._isBackward(!0,f,d),d)}},this._focusOut=c=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const f=this.input;if(this.onFocusOut&&f){const d=c.relatedTarget;this.onFocusOut(this,this._isBackward(!1,f,d),d)}};const a=t(),l=a.document.createElement("i");l.tabIndex=0,l.setAttribute("role","none"),l.setAttribute(Jae,""),l.setAttribute("aria-hidden","true");const u=l.style;u.position="fixed",u.width=u.height="1px",u.opacity="0.001",u.zIndex="-1",u.setProperty("content-visibility","hidden"),_Fe(l),this.input=l,this.isFirst=n.isFirst,this.isOutside=r,this._isPhantom=(s=n.isPhantom)!==null&&s!==void 0?s:!1,this._fixedTarget=i,l.addEventListener("focusin",this._focusIn),l.addEventListener("focusout",this._focusOut),l.__tabsterDummyContainer=o,this._isPhantom&&(this._disposeTimer=a.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(a.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var t;this._clearDisposeTimeout&&this._clearDisposeTimeout();const r=this.input;r&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,r.removeEventListener("focusin",this._focusIn),r.removeEventListener("focusout",this._focusOut),delete r.__tabsterDummyContainer,(t=r.parentElement)===null||t===void 0||t.removeChild(r))}setTopLeft(t,r){var n;const o=(n=this.input)===null||n===void 0?void 0:n.style;o&&(o.top=`${t}px`,o.left=`${r}px`)}_isBackward(t,r,n){return t&&!n?!this.isFirst:!!(n&&r.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)}}const qL={Root:1,Modalizer:2,Mover:3,Groupper:4};class qb{constructor(t,r,n,o,i,s){this._element=r,this._instance=new xFe(t,r,this,n,o,i,s)}_setHandlers(t,r){this._onFocusIn=t,this._onFocusOut=r}moveOut(t){var r;(r=this._instance)===null||r===void 0||r.moveOut(t)}moveOutWithDefaultAction(t,r){var n;(n=this._instance)===null||n===void 0||n.moveOutWithDefaultAction(t,r)}getHandler(t){return t?this._onFocusIn:this._onFocusOut}setTabbable(t){var r;(r=this._instance)===null||r===void 0||r.setTabbable(this,t)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(t,r,n,o,i){var s;const l=new HA(t.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(l){let u,c;if(r.tagName==="BODY")u=r,c=n&&o||!n&&!o?r.firstElementChild:null;else{n&&(!o||o&&!t.focusable.isFocusable(r,!1,!0,!0))?(u=r,c=o?r.firstElementChild:null):(u=r.parentElement,c=n&&o||!n&&!o?r:r.nextElementSibling);let f,d;do f=n&&o||!n&&!o?c==null?void 0:c.previousElementSibling:c,d=(s=f==null?void 0:f.__tabsterDummyContainer)===null||s===void 0?void 0:s.get(),d===r?c=n&&o||!n&&!o?f:f==null?void 0:f.nextElementSibling:d=void 0;while(d)}u&&ag({by:"root",owner:u,next:null,relatedEvent:i})&&(u.insertBefore(l,c),xf(l))}}static addPhantomDummyWithTarget(t,r,n,o){const s=new HA(t.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new vl(t.getWindow,o)).input;if(s){let a,l;mFe(r)&&!n?(a=r,l=r.firstElementChild):(a=r.parentElement,l=n?r:r.nextElementSibling),a==null||a.insertBefore(s,l)}}}class AFe{constructor(t){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=r=>{var n;this._changedParents.has(r)||(this._changedParents.add(r),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(n=this._win)===null||n===void 0?void 0:n.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const o of this._dummyElements){const i=o.get();if(i){const s=this._dummyCallbacks.get(i);if(s){const a=i.parentElement;(!a||this._changedParents.has(a))&&s()}}}this._changedParents=new WeakSet},EC)))},this._win=t}add(t,r){!this._dummyCallbacks.has(t)&&this._win&&(this._dummyElements.push(new vl(this._win,t)),this._dummyCallbacks.set(t,r),this.domChanged=this._domChanged)}remove(t){this._dummyElements=this._dummyElements.filter(r=>{const n=r.get();return n&&n!==t}),this._dummyCallbacks.delete(t),this._dummyElements.length===0&&delete this.domChanged}dispose(){var t;const r=(t=this._win)===null||t===void 0?void 0:t.call(this);this._updateTimer&&(r==null||r.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(r==null||r.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(t){this._win&&(this._updateQueue.add(t),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var t;this._updateTimer||(this._updateTimer=(t=this._win)===null||t===void 0?void 0:t.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+EC<=Date.now()){const r=new Map,n=[];for(const o of this._updateQueue)n.push(o(r));this._updateQueue.clear();for(const o of n)o();r.clear()}else this._scheduledUpdatePositions()},EC))}}class xFe{constructor(t,r,n,o,i,s,a){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(h,g,v)=>{this._onFocus(!0,h,g,v)},this._onFocusOut=(h,g,v)=>{this._onFocus(!1,h,g,v)},this.moveOut=h=>{var g;const v=this._firstDummy,y=this._lastDummy;if(v&&y){this._ensurePosition();const E=v.input,_=y.input,S=(g=this._element)===null||g===void 0?void 0:g.get();if(E&&_&&S){let b;h?(E.tabIndex=0,b=E):(_.tabIndex=0,b=_),b&&xf(b)}}},this.moveOutWithDefaultAction=(h,g)=>{var v;const y=this._firstDummy,E=this._lastDummy;if(y&&E){this._ensurePosition();const _=y.input,S=E.input,b=(v=this._element)===null||v===void 0?void 0:v.get();if(_&&S&&b){let k;h?!y.isOutside&&this._tabster.focusable.isFocusable(b,!0,!0,!0)?k=b:(y.useDefaultAction=!0,_.tabIndex=0,k=_):(E.useDefaultAction=!0,S.tabIndex=0,k=S),k&&ag({by:"root",owner:b,next:null,relatedEvent:g})&&xf(k)}}},this.setTabbable=(h,g)=>{var v,y;for(const _ of this._wrappers)if(_.manager===h){_.tabbable=g;break}const E=this._getCurrent();if(E){const _=E.tabbable?0:-1;let S=(v=this._firstDummy)===null||v===void 0?void 0:v.input;S&&(S.tabIndex=_),S=(y=this._lastDummy)===null||y===void 0?void 0:y.input,S&&(S.tabIndex=_)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=h=>{var g,v;const y=((g=this._firstDummy)===null||g===void 0?void 0:g.input)||((v=this._lastDummy)===null||v===void 0?void 0:v.input),E=this._transformElements,_=new Set;let S=0,b=0;const k=this._getWindow();for(let T=y;T&&T.nodeType===Node.ELEMENT_NODE;T=T.parentElement){let x=h.get(T);if(x===void 0){const I=k.getComputedStyle(T).transform;I&&I!=="none"&&(x={scrollTop:T.scrollTop,scrollLeft:T.scrollLeft}),h.set(T,x||null)}x&&(_.add(T),E.has(T)||T.addEventListener("scroll",this._addTransformOffsets),S+=x.scrollTop,b+=x.scrollLeft)}for(const T of E)_.has(T)||T.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=_,()=>{var T,x;(T=this._firstDummy)===null||T===void 0||T.setTopLeft(S,b),(x=this._lastDummy)===null||x===void 0||x.setTopLeft(S,b)}};const l=r.get();if(!l)throw new Error("No element");this._tabster=t,this._getWindow=t.getWindow,this._callForDefaultAction=a;const u=l.__tabsterDummy;if((u||this)._wrappers.push({manager:n,priority:o,tabbable:!0}),u)return u;l.__tabsterDummy=this;const c=i==null?void 0:i.dummyInputsPosition,f=l.tagName;this._isOutside=c?c===ile.Outside:(s||f==="UL"||f==="OL"||f==="TABLE")&&!(f==="LI"||f==="TD"||f==="TH"),this._firstDummy=new HA(this._getWindow,this._isOutside,{isFirst:!0},r),this._lastDummy=new HA(this._getWindow,this._isOutside,{isFirst:!1},r);const d=this._firstDummy.input;d&&t._dummyObserver.add(d,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=r,this._addDummyInputs()}dispose(t,r){var n,o,i,s;if((this._wrappers=this._wrappers.filter(l=>l.manager!==t&&!r)).length===0){delete((n=this._element)===null||n===void 0?void 0:n.get()).__tabsterDummy;for(const c of this._transformElements)c.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const l=this._getWindow();this._addTimer&&(l.clearTimeout(this._addTimer),delete this._addTimer);const u=(o=this._firstDummy)===null||o===void 0?void 0:o.input;u&&this._tabster._dummyObserver.remove(u),(i=this._firstDummy)===null||i===void 0||i.dispose(),(s=this._lastDummy)===null||s===void 0||s.dispose()}}_onFocus(t,r,n,o){var i;const s=this._getCurrent();s&&(!r.useDefaultAction||this._callForDefaultAction)&&((i=s.manager.getHandler(t))===null||i===void 0||i(r,n,o))}_getCurrent(){return this._wrappers.sort((t,r)=>t.tabbable!==r.tabbable?t.tabbable?-1:1:t.priority-r.priority),this._wrappers[0]}_ensurePosition(){var t,r,n;const o=(t=this._element)===null||t===void 0?void 0:t.get(),i=(r=this._firstDummy)===null||r===void 0?void 0:r.input,s=(n=this._lastDummy)===null||n===void 0?void 0:n.input;if(!(!o||!i||!s))if(this._isOutside){const a=o.parentElement;if(a){const l=o.nextElementSibling;l!==s&&a.insertBefore(s,l),o.previousElementSibling!==i&&a.insertBefore(i,o)}}else{o.lastElementChild!==s&&o.appendChild(s);const a=o.firstElementChild;a&&a!==i&&o.insertBefore(i,a)}}}function ple(e){let t=null;for(let r=e.lastElementChild;r;r=r.lastElementChild)t=r;return t||void 0}function f1(e,t,r){const n=document.createEvent("HTMLEvents");return n.initEvent(t,!0,!0),n.details=r,e.dispatchEvent(n),!n.defaultPrevented}function ag(e){return f1(e.owner,ole,e)}function SC(e,t,r,n){const o=e.storageEntry(t,!0);let i=!1;if(!o.aug){if(n===void 0)return i;o.aug={}}if(n===void 0){if(r in o.aug){const s=o.aug[r];delete o.aug[r],s===null?t.removeAttribute(r):t.setAttribute(r,s),i=!0}}else{let s;r in o.aug||(s=t.getAttribute(r)),s!==void 0&&s!==n&&(o.aug[r]=s,n===null?t.removeAttribute(r):t.setAttribute(r,n),i=!0)}return n===void 0&&Object.keys(o.aug).length===0&&(delete o.aug,e.storageEntry(t,!1)),i}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */function ple(e,t){const r=JSON.stringify(e);return t===!0?r:{[gf]:r}}function SFe(e,t){for(const r of Object.keys(t)){const n=t[r];n?e[r]=n:delete e[r]}}function wFe(e,t,r){let n;if(r){const o=e.getAttribute(gf);if(o)try{n=JSON.parse(o)}catch{}}n||(n={}),SFe(n,t),Object.keys(n).length>0?e.setAttribute(gf,ple(n,!0)):e.removeAttribute(gf)}class TG extends qb{constructor(t,r,n,o){super(t,r,PL.Root,o,void 0,!0),this._onDummyInputFocus=i=>{var s;if(i.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const a=this._element.get();if(a){this._setFocused(!0);const l=this._tabster.focusedElement.getFirstOrLastTabbable(i.isFirst,{container:a,ignoreAccessibility:!0});if(l){xf(l);return}}(s=i.input)===null||s===void 0||s.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=t,this._setFocused=n}}class kFe extends MT{constructor(t,r,n,o,i){super(t,r,o),this._isFocused=!1,this._setFocused=l=>{var u;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===l)return;const c=this._element.get();c&&(l?(this._isFocused=!0,(u=this._dummyManager)===null||u===void 0||u.setTabbable(!1),f1(this._tabster.root.eventTarget,"focus",{element:c})):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var f;delete this._setFocusedTimer,this._isFocused=!1,(f=this._dummyManager)===null||f===void 0||f.setTabbable(!0),f1(this._tabster.root.eventTarget,"blur",{element:c})},0))},this._onFocusIn=l=>{const u=this._tabster.getParent,c=this._element.get();let f=l.target;do{if(f===c){this._setFocused(!0);return}f=f&&u(f)}while(f)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=n;const s=t.getWindow;this.uid=Nk(s,r),this._sys=i,(t.controlTab||t.rootDummyInputs)&&this.addDummyInputs();const a=s();a.document.addEventListener("focusin",this._onFocusIn),a.document.addEventListener("focusout",this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new TG(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var t;this._onDispose(this);const r=this._tabster.getWindow();r.document.removeEventListener("focusin",this._onFocusIn),r.document.removeEventListener("focusout",this._onFocusOut),this._setFocusedTimer&&(r.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(t=this._dummyManager)===null||t===void 0||t.dispose(),this._remove()}moveOutWithDefaultAction(t,r){const n=this._dummyManager;if(n)n.moveOutWithDefaultAction(t,r);else{const o=this.getElement();o&&TG.moveWithPhantomDummy(this._tabster,o,!0,t,r)}}_add(){}_remove(){}}class jo{constructor(t,r){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var n;const o=this._win().document,i=o.body;if(i){this._autoRootUnwait(o);const s=this._autoRoot;if(s)return wFe(i,{root:s},!0),ile(this._tabster,i),(n=ba(this._tabster,i))===null||n===void 0?void 0:n.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,o.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=n=>{delete this._roots[n.id]},this._tabster=t,this._win=t.getWindow,this._autoRoot=r,this.eventTarget=lFe(this._win),t.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(t){t.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const t=this._win();this._autoRootUnwait(t.document),delete this._autoRoot,Object.keys(this._roots).forEach(r=>{this._roots[r]&&(this._roots[r].dispose(),delete this._roots[r])}),this.rootById={}}createRoot(t,r,n){const o=new kFe(this._tabster,t,this._onRootDispose,r,n);return this._roots[o.id]=o,this._forceDummy&&o.addDummyInputs(),o}addDummyInputs(){this._forceDummy=!0;const t=this._roots;for(const r of Object.keys(t))t[r].addDummyInputs()}static getRootByUId(t,r){const n=t().__tabsterInstance;return n&&n.root.rootById[r]}static getTabsterContext(t,r,n){n===void 0&&(n={});var o,i,s,a;if(!r.ownerDocument)return;const{checkRtl:l,referenceElement:u}=n,c=t.getParent;t.drainInitQueue();let f,d,h,g,v=!1,y,E,_,S,b=u||r;const k={};for(;b&&(!f||l);){const x=ba(t,b);if(l&&_===void 0){const L=b.dir;L&&(_=L.toLowerCase()==="rtl")}if(!x){b=c(b);continue}const I=b.tagName;(x.uncontrolled||I==="IFRAME"||I==="WEBVIEW")&&(S=b),!g&&(!((o=x.focusable)===null||o===void 0)&&o.excludeFromMover)&&!h&&(v=!0);const C=x.modalizer,R=x.groupper,D=x.mover;!d&&C&&(d=C),!h&&R&&(!d||C)&&(d?(!R.isActive()&&R.getProps().tabbability&&d.userId!==((i=t.modalizer)===null||i===void 0?void 0:i.activeId)&&(d=void 0,h=R),E=R):h=R),!g&&D&&(!d||C)&&(!R||b!==r)&&(g=D,y=!!h&&h!==R),x.root&&(f=x.root),!((s=x.focusable)===null||s===void 0)&&s.ignoreKeydown&&Object.assign(k,x.focusable.ignoreKeydown),b=c(b)}if(!f){const x=t.root;x._autoRoot&&!((a=r.ownerDocument)===null||a===void 0)&&a.body&&(f=x._autoRootCreate())}return h&&!g&&(y=!0),f?{root:f,modalizer:d,groupper:h,mover:g,groupperBeforeMover:y,modalizerInGroupper:E,rtl:l?!!_:void 0,uncontrolled:S,excludedFromMover:v,ignoreKeydown:x=>!!k[x.key]}:void 0}static getRoot(t,r){var n;const o=t.getParent;for(let i=r;i;i=o(i)){const s=(n=ba(t,i))===null||n===void 0?void 0:n.root;if(s)return s}}onRoot(t,r){r?delete this.rootById[t.uid]:this.rootById[t.uid]=t}}/*! + */function gle(e,t){const r=JSON.stringify(e);return t===!0?r:{[gf]:r}}function TFe(e,t){for(const r of Object.keys(t)){const n=t[r];n?e[r]=n:delete e[r]}}function IFe(e,t,r){let n;if(r){const o=e.getAttribute(gf);if(o)try{n=JSON.parse(o)}catch{}}n||(n={}),TFe(n,t),Object.keys(n).length>0?e.setAttribute(gf,gle(n,!0)):e.removeAttribute(gf)}class IG extends qb{constructor(t,r,n,o){super(t,r,qL.Root,o,void 0,!0),this._onDummyInputFocus=i=>{var s;if(i.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const a=this._element.get();if(a){this._setFocused(!0);const l=this._tabster.focusedElement.getFirstOrLastTabbable(i.isFirst,{container:a,ignoreAccessibility:!0});if(l){xf(l);return}}(s=i.input)===null||s===void 0||s.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=t,this._setFocused=n}}class CFe extends LT{constructor(t,r,n,o,i){super(t,r,o),this._isFocused=!1,this._setFocused=l=>{var u;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===l)return;const c=this._element.get();c&&(l?(this._isFocused=!0,(u=this._dummyManager)===null||u===void 0||u.setTabbable(!1),f1(this._tabster.root.eventTarget,"focus",{element:c})):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var f;delete this._setFocusedTimer,this._isFocused=!1,(f=this._dummyManager)===null||f===void 0||f.setTabbable(!0),f1(this._tabster.root.eventTarget,"blur",{element:c})},0))},this._onFocusIn=l=>{const u=this._tabster.getParent,c=this._element.get();let f=l.target;do{if(f===c){this._setFocused(!0);return}f=f&&u(f)}while(f)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=n;const s=t.getWindow;this.uid=Rk(s,r),this._sys=i,(t.controlTab||t.rootDummyInputs)&&this.addDummyInputs();const a=s();a.document.addEventListener("focusin",this._onFocusIn),a.document.addEventListener("focusout",this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new IG(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var t;this._onDispose(this);const r=this._tabster.getWindow();r.document.removeEventListener("focusin",this._onFocusIn),r.document.removeEventListener("focusout",this._onFocusOut),this._setFocusedTimer&&(r.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(t=this._dummyManager)===null||t===void 0||t.dispose(),this._remove()}moveOutWithDefaultAction(t,r){const n=this._dummyManager;if(n)n.moveOutWithDefaultAction(t,r);else{const o=this.getElement();o&&IG.moveWithPhantomDummy(this._tabster,o,!0,t,r)}}_add(){}_remove(){}}class jo{constructor(t,r){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var n;const o=this._win().document,i=o.body;if(i){this._autoRootUnwait(o);const s=this._autoRoot;if(s)return IFe(i,{root:s},!0),sle(this._tabster,i),(n=ba(this._tabster,i))===null||n===void 0?void 0:n.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,o.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=n=>{delete this._roots[n.id]},this._tabster=t,this._win=t.getWindow,this._autoRoot=r,this.eventTarget=hFe(this._win),t.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(t){t.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const t=this._win();this._autoRootUnwait(t.document),delete this._autoRoot,Object.keys(this._roots).forEach(r=>{this._roots[r]&&(this._roots[r].dispose(),delete this._roots[r])}),this.rootById={}}createRoot(t,r,n){const o=new CFe(this._tabster,t,this._onRootDispose,r,n);return this._roots[o.id]=o,this._forceDummy&&o.addDummyInputs(),o}addDummyInputs(){this._forceDummy=!0;const t=this._roots;for(const r of Object.keys(t))t[r].addDummyInputs()}static getRootByUId(t,r){const n=t().__tabsterInstance;return n&&n.root.rootById[r]}static getTabsterContext(t,r,n){n===void 0&&(n={});var o,i,s,a;if(!r.ownerDocument)return;const{checkRtl:l,referenceElement:u}=n,c=t.getParent;t.drainInitQueue();let f,d,h,g,v=!1,y,E,_,S,b=u||r;const k={};for(;b&&(!f||l);){const x=ba(t,b);if(l&&_===void 0){const L=b.dir;L&&(_=L.toLowerCase()==="rtl")}if(!x){b=c(b);continue}const I=b.tagName;(x.uncontrolled||I==="IFRAME"||I==="WEBVIEW")&&(S=b),!g&&(!((o=x.focusable)===null||o===void 0)&&o.excludeFromMover)&&!h&&(v=!0);const C=x.modalizer,R=x.groupper,D=x.mover;!d&&C&&(d=C),!h&&R&&(!d||C)&&(d?(!R.isActive()&&R.getProps().tabbability&&d.userId!==((i=t.modalizer)===null||i===void 0?void 0:i.activeId)&&(d=void 0,h=R),E=R):h=R),!g&&D&&(!d||C)&&(!R||b!==r)&&(g=D,y=!!h&&h!==R),x.root&&(f=x.root),!((s=x.focusable)===null||s===void 0)&&s.ignoreKeydown&&Object.assign(k,x.focusable.ignoreKeydown),b=c(b)}if(!f){const x=t.root;x._autoRoot&&!((a=r.ownerDocument)===null||a===void 0)&&a.body&&(f=x._autoRootCreate())}return h&&!g&&(y=!0),f?{root:f,modalizer:d,groupper:h,mover:g,groupperBeforeMover:y,modalizerInGroupper:E,rtl:l?!!_:void 0,uncontrolled:S,excludedFromMover:v,ignoreKeydown:x=>!!k[x.key]}:void 0}static getRoot(t,r){var n;const o=t.getParent;for(let i=r;i;i=o(i)){const s=(n=ba(t,i))===null||n===void 0?void 0:n.root;if(s)return s}}onRoot(t,r){r?delete this.rootById[t.uid]:this.rootById[t.uid]=t}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */class gle{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(t){const r=this._callbacks;r.indexOf(t)<0&&r.push(t)}subscribeFirst(t){const r=this._callbacks,n=r.indexOf(t);n>=0&&r.splice(n,1),r.unshift(t)}unsubscribe(t){const r=this._callbacks.indexOf(t);r>=0&&this._callbacks.splice(r,1)}setVal(t,r){this._val!==t&&(this._val=t,this._callCallbacks(t,r))}getVal(){return this._val}trigger(t,r){this._callCallbacks(t,r)}_callCallbacks(t,r){this._callbacks.forEach(n=>n(t,r))}}/*! + */class vle{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(t){const r=this._callbacks;r.indexOf(t)<0&&r.push(t)}subscribeFirst(t){const r=this._callbacks,n=r.indexOf(t);n>=0&&r.splice(n,1),r.unshift(t)}unsubscribe(t){const r=this._callbacks.indexOf(t);r>=0&&this._callbacks.splice(r,1)}setVal(t,r){this._val!==t&&(this._val=t,this._callCallbacks(t,r))}getVal(){return this._val}trigger(t,r){this._callCallbacks(t,r)}_callCallbacks(t,r){this._callbacks.forEach(n=>n(t,r))}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */class AFe{constructor(t){this._tabster=t}dispose(){}getProps(t){const r=ba(this._tabster,t);return r&&r.focusable||{}}isFocusable(t,r,n,o){return dle(t,zL)&&(r||t.tabIndex!==-1)?(n||this.isVisible(t))&&(o||this.isAccessible(t)):!1}isVisible(t){if(!t.ownerDocument||t.nodeType!==Node.ELEMENT_NODE||t.offsetParent===null&&t.ownerDocument.body!==t)return!1;const r=t.ownerDocument.defaultView;if(!r)return!1;const n=t.ownerDocument.body.getBoundingClientRect();return!(n.width===0&&n.height===0||r.getComputedStyle(t).visibility==="hidden")}isAccessible(t){var r;for(let n=t;n;n=n.parentElement){const o=ba(this._tabster,n);if(this._isHidden(n)||!((r=o==null?void 0:o.focusable)===null||r===void 0?void 0:r.ignoreAriaDisabled)&&this._isDisabled(n))return!1}return!0}_isDisabled(t){return t.hasAttribute("disabled")}_isHidden(t){var r;const n=t.getAttribute("aria-hidden");return!!(n&&n.toLowerCase()==="true"&&!(!((r=this._tabster.modalizer)===null||r===void 0)&&r.isAugmented(t)))}findFirst(t,r){return this.findElement({...t},r)}findLast(t,r){return this.findElement({isBackward:!0,...t},r)}findNext(t,r){return this.findElement({...t},r)}findPrev(t,r){return this.findElement({...t,isBackward:!0},r)}findDefault(t,r){return this.findElement({...t,acceptCondition:n=>this.isFocusable(n,t.includeProgrammaticallyFocusable)&&!!this.getProps(n).isDefault},r)||null}findAll(t){return this._findElements(!0,t)||[]}findElement(t,r){const n=this._findElements(!1,t,r);return n&&n[0]}_findElements(t,r,n){var o,i,s;const{container:a,currentElement:l=null,includeProgrammaticallyFocusable:u,useActiveModalizer:c,ignoreAccessibility:f,modalizerId:d,isBackward:h,onElement:g}=r;n||(n={});const v=[];let{acceptCondition:y}=r;const E=!!y;if(!a)return null;y||(y=k=>this.isFocusable(k,u,!1,f));const _={container:a,modalizerUserId:d===void 0&&c?(o=this._tabster.modalizer)===null||o===void 0?void 0:o.activeId:d||((s=(i=jo.getTabsterContext(this._tabster,a))===null||i===void 0?void 0:i.modalizer)===null||s===void 0?void 0:s.userId),from:l||a,isBackward:h,acceptCondition:y,hasCustomCondition:E,includeProgrammaticallyFocusable:u,ignoreAccessibility:f,cachedGrouppers:{}},S=HL(a.ownerDocument,a,k=>this._acceptElement(k,_));if(!S)return null;const b=k=>{var T,x;const I=(T=_.foundElement)!==null&&T!==void 0?T:_.foundBackward;return I&&v.push(I),t?I&&(_.found=!1,delete _.foundElement,delete _.foundBackward,delete _.fromCtx,_.from=I,g&&!g(I))?!1:!!(I||k):(I&&n&&(n.uncontrolled=(x=jo.getTabsterContext(this._tabster,I))===null||x===void 0?void 0:x.uncontrolled),!!(k&&!I))};if(l||(n.outOfDOMOrder=!0),l)S.currentNode=l;else if(h){const k=hle(a);if(!k)return null;if(this._acceptElement(k,_)===NodeFilter.FILTER_ACCEPT&&!b(!0))return _.skippedFocusable&&(n.outOfDOMOrder=!0),v;S.currentNode=k}do h?S.previousNode():S.nextNode();while(b());return _.skippedFocusable&&(n.outOfDOMOrder=!0),v.length?v:null}_acceptElement(t,r){var n,o,i,s;if(r.found)return NodeFilter.FILTER_ACCEPT;const a=r.foundBackward;if(a&&(t===a||!a.contains(t)))return r.found=!0,r.foundElement=a,NodeFilter.FILTER_ACCEPT;const l=r.container;if(t===l)return NodeFilter.FILTER_SKIP;if(!l.contains(t)||t.__tabsterDummyContainer||!((n=r.rejectElementsFrom)===null||n===void 0)&&n.contains(t))return NodeFilter.FILTER_REJECT;const u=r.currentCtx=jo.getTabsterContext(this._tabster,t);if(!u)return NodeFilter.FILTER_SKIP;if(fle(t))return this.isFocusable(t,void 0,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!r.hasCustomCondition&&(t.tagName==="IFRAME"||t.tagName==="WEBVIEW"))return((o=u.modalizer)===null||o===void 0?void 0:o.userId)===((i=this._tabster.modalizer)===null||i===void 0?void 0:i.activeId)?(r.found=!0,r.rejectElementsFrom=r.foundElement=t,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!r.ignoreAccessibility&&!this.isAccessible(t))return this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let c,f=r.fromCtx;f||(f=r.fromCtx=jo.getTabsterContext(this._tabster,r.from));const d=f==null?void 0:f.mover;let h=u.groupper,g=u.mover;if(c=(s=this._tabster.modalizer)===null||s===void 0?void 0:s.acceptElement(t,r),c!==void 0&&(r.skippedFocusable=!0),c===void 0&&(h||g||d)){const v=h==null?void 0:h.getElement(),y=d==null?void 0:d.getElement();let E=g==null?void 0:g.getElement();E&&(y!=null&&y.contains(E))&&l.contains(y)&&(!v||!g||y.contains(v))&&(g=d,E=y),v&&(v===l||!l.contains(v))&&(h=void 0),E&&!l.contains(E)&&(g=void 0),h&&g&&(E&&v&&!v.contains(E)?g=void 0:h=void 0),h&&(c=h.acceptElement(t,r)),g&&(c=g.acceptElement(t,r))}return c===void 0&&(c=r.acceptCondition(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,c===NodeFilter.FILTER_SKIP&&this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0)),c===NodeFilter.FILTER_ACCEPT&&!r.found&&(r.isBackward?(r.foundBackward=t,c=NodeFilter.FILTER_SKIP):(r.found=!0,r.foundElement=t)),c}}/*! + */class NFe{constructor(t){this._tabster=t}dispose(){}getProps(t){const r=ba(this._tabster,t);return r&&r.focusable||{}}isFocusable(t,r,n,o){return hle(t,HL)&&(r||t.tabIndex!==-1)?(n||this.isVisible(t))&&(o||this.isAccessible(t)):!1}isVisible(t){if(!t.ownerDocument||t.nodeType!==Node.ELEMENT_NODE||t.offsetParent===null&&t.ownerDocument.body!==t)return!1;const r=t.ownerDocument.defaultView;if(!r)return!1;const n=t.ownerDocument.body.getBoundingClientRect();return!(n.width===0&&n.height===0||r.getComputedStyle(t).visibility==="hidden")}isAccessible(t){var r;for(let n=t;n;n=n.parentElement){const o=ba(this._tabster,n);if(this._isHidden(n)||!((r=o==null?void 0:o.focusable)===null||r===void 0?void 0:r.ignoreAriaDisabled)&&this._isDisabled(n))return!1}return!0}_isDisabled(t){return t.hasAttribute("disabled")}_isHidden(t){var r;const n=t.getAttribute("aria-hidden");return!!(n&&n.toLowerCase()==="true"&&!(!((r=this._tabster.modalizer)===null||r===void 0)&&r.isAugmented(t)))}findFirst(t,r){return this.findElement({...t},r)}findLast(t,r){return this.findElement({isBackward:!0,...t},r)}findNext(t,r){return this.findElement({...t},r)}findPrev(t,r){return this.findElement({...t,isBackward:!0},r)}findDefault(t,r){return this.findElement({...t,acceptCondition:n=>this.isFocusable(n,t.includeProgrammaticallyFocusable)&&!!this.getProps(n).isDefault},r)||null}findAll(t){return this._findElements(!0,t)||[]}findElement(t,r){const n=this._findElements(!1,t,r);return n&&n[0]}_findElements(t,r,n){var o,i,s;const{container:a,currentElement:l=null,includeProgrammaticallyFocusable:u,useActiveModalizer:c,ignoreAccessibility:f,modalizerId:d,isBackward:h,onElement:g}=r;n||(n={});const v=[];let{acceptCondition:y}=r;const E=!!y;if(!a)return null;y||(y=k=>this.isFocusable(k,u,!1,f));const _={container:a,modalizerUserId:d===void 0&&c?(o=this._tabster.modalizer)===null||o===void 0?void 0:o.activeId:d||((s=(i=jo.getTabsterContext(this._tabster,a))===null||i===void 0?void 0:i.modalizer)===null||s===void 0?void 0:s.userId),from:l||a,isBackward:h,acceptCondition:y,hasCustomCondition:E,includeProgrammaticallyFocusable:u,ignoreAccessibility:f,cachedGrouppers:{}},S=$L(a.ownerDocument,a,k=>this._acceptElement(k,_));if(!S)return null;const b=k=>{var T,x;const I=(T=_.foundElement)!==null&&T!==void 0?T:_.foundBackward;return I&&v.push(I),t?I&&(_.found=!1,delete _.foundElement,delete _.foundBackward,delete _.fromCtx,_.from=I,g&&!g(I))?!1:!!(I||k):(I&&n&&(n.uncontrolled=(x=jo.getTabsterContext(this._tabster,I))===null||x===void 0?void 0:x.uncontrolled),!!(k&&!I))};if(l||(n.outOfDOMOrder=!0),l)S.currentNode=l;else if(h){const k=ple(a);if(!k)return null;if(this._acceptElement(k,_)===NodeFilter.FILTER_ACCEPT&&!b(!0))return _.skippedFocusable&&(n.outOfDOMOrder=!0),v;S.currentNode=k}do h?S.previousNode():S.nextNode();while(b());return _.skippedFocusable&&(n.outOfDOMOrder=!0),v.length?v:null}_acceptElement(t,r){var n,o,i,s;if(r.found)return NodeFilter.FILTER_ACCEPT;const a=r.foundBackward;if(a&&(t===a||!a.contains(t)))return r.found=!0,r.foundElement=a,NodeFilter.FILTER_ACCEPT;const l=r.container;if(t===l)return NodeFilter.FILTER_SKIP;if(!l.contains(t)||t.__tabsterDummyContainer||!((n=r.rejectElementsFrom)===null||n===void 0)&&n.contains(t))return NodeFilter.FILTER_REJECT;const u=r.currentCtx=jo.getTabsterContext(this._tabster,t);if(!u)return NodeFilter.FILTER_SKIP;if(dle(t))return this.isFocusable(t,void 0,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!r.hasCustomCondition&&(t.tagName==="IFRAME"||t.tagName==="WEBVIEW"))return((o=u.modalizer)===null||o===void 0?void 0:o.userId)===((i=this._tabster.modalizer)===null||i===void 0?void 0:i.activeId)?(r.found=!0,r.rejectElementsFrom=r.foundElement=t,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!r.ignoreAccessibility&&!this.isAccessible(t))return this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let c,f=r.fromCtx;f||(f=r.fromCtx=jo.getTabsterContext(this._tabster,r.from));const d=f==null?void 0:f.mover;let h=u.groupper,g=u.mover;if(c=(s=this._tabster.modalizer)===null||s===void 0?void 0:s.acceptElement(t,r),c!==void 0&&(r.skippedFocusable=!0),c===void 0&&(h||g||d)){const v=h==null?void 0:h.getElement(),y=d==null?void 0:d.getElement();let E=g==null?void 0:g.getElement();E&&(y!=null&&y.contains(E))&&l.contains(y)&&(!v||!g||y.contains(v))&&(g=d,E=y),v&&(v===l||!l.contains(v))&&(h=void 0),E&&!l.contains(E)&&(g=void 0),h&&g&&(E&&v&&!v.contains(E)?g=void 0:h=void 0),h&&(c=h.acceptElement(t,r)),g&&(c=g.acceptElement(t,r))}return c===void 0&&(c=r.acceptCondition(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,c===NodeFilter.FILTER_SKIP&&this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0)),c===NodeFilter.FILTER_ACCEPT&&!r.found&&(r.isBackward?(r.foundBackward=t,c=NodeFilter.FILTER_SKIP):(r.found=!0,r.foundElement=t)),c}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */const Dr={Tab:9,Enter:13,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40};/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */function xFe(e,t){var r;const n=e.getParent;let o=t;do{const i=(r=ba(e,o))===null||r===void 0?void 0:r.uncontrolled;if(i&&e.uncontrolled.isUncontrolledCompletely(o,!!i.completely))return o;o=n(o)}while(o)}class uo extends gle{constructor(t,r){super(),this._init=()=>{const n=this._win(),o=n.document;o.addEventListener(Af,this._onFocusIn,!0),o.addEventListener("focusout",this._onFocusOut,!0),n.addEventListener("keydown",this._onKeyDown,!0);const i=o.activeElement;i&&i!==o.body&&this._setFocusedElement(i),this.subscribe(this._onChanged)},this._onFocusIn=n=>{this._setFocusedElement(n.target,n.details.relatedTarget,n.details.isFocusedProgrammatically)},this._onFocusOut=n=>{this._setFocusedElement(void 0,n.relatedTarget)},this._validateFocusedElement=n=>{},this._onKeyDown=n=>{if(n.keyCode!==Dr.Tab||n.ctrlKey)return;const o=this.getVal();if(!o||!o.ownerDocument||o.contentEditable==="true")return;const i=this._tabster,s=i.controlTab,a=jo.getTabsterContext(i,o);if(!a||a.ignoreKeydown(n))return;const l=n.shiftKey,u=uo.findNextTabbable(i,a,void 0,o,void 0,l,!0),c=a.root.getElement();if(!c)return;const f=u==null?void 0:u.element,d=xFe(i,o);if(f){const h=u.uncontrolled;if(a.uncontrolled||h!=null&&h.contains(o)){if(!u.outOfDOMOrder&&h===a.uncontrolled||d&&!d.contains(f))return;qb.addPhantomDummyWithTarget(i,o,l,f);return}if(h||f.tagName==="IFRAME"){ag({by:"root",owner:c,next:f,relatedEvent:n})&&qb.moveWithPhantomDummy(this._tabster,h??f,!1,l,n);return}(s||u!=null&&u.outOfDOMOrder)&&ag({by:"root",owner:c,next:f,relatedEvent:n})&&(n.preventDefault(),n.stopImmediatePropagation(),xf(f))}else!d&&ag({by:"root",owner:c,next:null,relatedEvent:n})&&a.root.moveOutWithDefaultAction(l,n)},this._onChanged=(n,o)=>{var i,s;if(n)f1(n,tle,o);else{const a=(i=this._lastVal)===null||i===void 0?void 0:i.get();if(a){const l={...o},u=jo.getTabsterContext(this._tabster,a),c=(s=u==null?void 0:u.modalizer)===null||s===void 0?void 0:s.userId;c&&(l.modalizerId=c),f1(a,rle,l)}}},this._tabster=t,this._win=r,t.queueInit(this._init)}dispose(){super.dispose();const t=this._win();t.document.removeEventListener(Af,this._onFocusIn,!0),t.document.removeEventListener("focusout",this._onFocusOut,!0),t.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged),delete uo._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(t,r){var n,o;let i=uo._lastResetElement,s=i&&i.get();s&&r.contains(s)&&delete uo._lastResetElement,s=(o=(n=t._nextVal)===null||n===void 0?void 0:n.element)===null||o===void 0?void 0:o.get(),s&&r.contains(s)&&delete t._nextVal,i=t._lastVal,s=i&&i.get(),s&&r.contains(s)&&delete t._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var t;let r=(t=this._lastVal)===null||t===void 0?void 0:t.get();return(!r||r&&!$L(r.ownerDocument,r))&&(this._lastVal=r=void 0),r}focus(t,r,n){return this._tabster.focusable.isFocusable(t,r,!1,n)?(t.focus(),!0):!1}focusDefault(t){const r=this._tabster.focusable.findDefault({container:t});return r?(this._tabster.focusedElement.focus(r),!0):!1}getFirstOrLastTabbable(t,r){var n;const{container:o,ignoreAccessibility:i}=r;let s;if(o){const a=jo.getTabsterContext(this._tabster,o);a&&(s=(n=uo.findNextTabbable(this._tabster,a,o,void 0,void 0,!t,i))===null||n===void 0?void 0:n.element)}return s&&!(o!=null&&o.contains(s))&&(s=void 0),s||void 0}_focusFirstOrLast(t,r){const n=this.getFirstOrLastTabbable(t,r);return n?(this.focus(n,!1,!0),!0):!1}focusFirst(t){return this._focusFirstOrLast(!0,t)}focusLast(t){return this._focusFirstOrLast(!1,t)}resetFocus(t){if(!this._tabster.focusable.isVisible(t))return!1;if(this._tabster.focusable.isFocusable(t,!0,!0,!0))this.focus(t);else{const r=t.getAttribute("tabindex"),n=t.getAttribute("aria-hidden");t.tabIndex=-1,t.setAttribute("aria-hidden","true"),uo._lastResetElement=new gl(this._win,t),this.focus(t,!0,!0),this._setOrRemoveAttribute(t,"tabindex",r),this._setOrRemoveAttribute(t,"aria-hidden",n)}return!0}_setOrRemoveAttribute(t,r,n){n===null?t.removeAttribute(r):t.setAttribute(r,n)}_setFocusedElement(t,r,n){var o,i;if(this._tabster._noop)return;const s={relatedTarget:r};if(t){const l=(o=uo._lastResetElement)===null||o===void 0?void 0:o.get();if(uo._lastResetElement=void 0,l===t||fle(t))return;s.isFocusedProgrammatically=n;const u=jo.getTabsterContext(this._tabster,t),c=(i=u==null?void 0:u.modalizer)===null||i===void 0?void 0:i.userId;c&&(s.modalizerId=c)}const a=this._nextVal={element:t?new gl(this._win,t):void 0,details:s};t&&t!==this._val&&this._validateFocusedElement(t),this._nextVal===a&&this.setVal(t,s),this._nextVal=void 0}setVal(t,r){super.setVal(t,r),t&&(this._lastVal=new gl(this._win,t))}static findNextTabbable(t,r,n,o,i,s,a){const l=n||r.root.getElement();if(!l)return null;let u=null;const c=uo._isTabbingTimer,f=t.getWindow();c&&f.clearTimeout(c),uo.isTabbing=!0,uo._isTabbingTimer=f.setTimeout(()=>{delete uo._isTabbingTimer,uo.isTabbing=!1},0);const d=r.modalizer,h=r.groupper,g=r.mover,v=y=>{var E;if(u=y.findNextTabbable(o,i,s,a),o&&!(u!=null&&u.element)){const _=y!==d&&((E=y.getElement())===null||E===void 0?void 0:E.parentElement);if(_){const S=jo.getTabsterContext(t,o,{referenceElement:_});if(S){const b=y.getElement(),k=s?b:b&&hle(b)||b;k&&(u=uo.findNextTabbable(t,S,n,k,_,s,a),u&&(u.outOfDOMOrder=!0))}}}};if(h&&g)v(r.groupperBeforeMover?h:g);else if(h)v(h);else if(g)v(g);else if(d)v(d);else{const y={container:l,currentElement:o,referenceElement:i,ignoreAccessibility:a,useActiveModalizer:!0},E={};u={element:t.focusable[s?"findPrev":"findNext"](y,E),outOfDOMOrder:E.outOfDOMOrder,uncontrolled:E.uncontrolled}}return u}}uo.isTabbing=!1;/*! + */function RFe(e,t){var r;const n=e.getParent;let o=t;do{const i=(r=ba(e,o))===null||r===void 0?void 0:r.uncontrolled;if(i&&e.uncontrolled.isUncontrolledCompletely(o,!!i.completely))return o;o=n(o)}while(o)}class uo extends vle{constructor(t,r){super(),this._init=()=>{const n=this._win(),o=n.document;o.addEventListener(Af,this._onFocusIn,!0),o.addEventListener("focusout",this._onFocusOut,!0),n.addEventListener("keydown",this._onKeyDown,!0);const i=o.activeElement;i&&i!==o.body&&this._setFocusedElement(i),this.subscribe(this._onChanged)},this._onFocusIn=n=>{this._setFocusedElement(n.target,n.details.relatedTarget,n.details.isFocusedProgrammatically)},this._onFocusOut=n=>{this._setFocusedElement(void 0,n.relatedTarget)},this._validateFocusedElement=n=>{},this._onKeyDown=n=>{if(n.keyCode!==Dr.Tab||n.ctrlKey)return;const o=this.getVal();if(!o||!o.ownerDocument||o.contentEditable==="true")return;const i=this._tabster,s=i.controlTab,a=jo.getTabsterContext(i,o);if(!a||a.ignoreKeydown(n))return;const l=n.shiftKey,u=uo.findNextTabbable(i,a,void 0,o,void 0,l,!0),c=a.root.getElement();if(!c)return;const f=u==null?void 0:u.element,d=RFe(i,o);if(f){const h=u.uncontrolled;if(a.uncontrolled||h!=null&&h.contains(o)){if(!u.outOfDOMOrder&&h===a.uncontrolled||d&&!d.contains(f))return;qb.addPhantomDummyWithTarget(i,o,l,f);return}if(h||f.tagName==="IFRAME"){ag({by:"root",owner:c,next:f,relatedEvent:n})&&qb.moveWithPhantomDummy(this._tabster,h??f,!1,l,n);return}(s||u!=null&&u.outOfDOMOrder)&&ag({by:"root",owner:c,next:f,relatedEvent:n})&&(n.preventDefault(),n.stopImmediatePropagation(),xf(f))}else!d&&ag({by:"root",owner:c,next:null,relatedEvent:n})&&a.root.moveOutWithDefaultAction(l,n)},this._onChanged=(n,o)=>{var i,s;if(n)f1(n,rle,o);else{const a=(i=this._lastVal)===null||i===void 0?void 0:i.get();if(a){const l={...o},u=jo.getTabsterContext(this._tabster,a),c=(s=u==null?void 0:u.modalizer)===null||s===void 0?void 0:s.userId;c&&(l.modalizerId=c),f1(a,nle,l)}}},this._tabster=t,this._win=r,t.queueInit(this._init)}dispose(){super.dispose();const t=this._win();t.document.removeEventListener(Af,this._onFocusIn,!0),t.document.removeEventListener("focusout",this._onFocusOut,!0),t.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged),delete uo._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(t,r){var n,o;let i=uo._lastResetElement,s=i&&i.get();s&&r.contains(s)&&delete uo._lastResetElement,s=(o=(n=t._nextVal)===null||n===void 0?void 0:n.element)===null||o===void 0?void 0:o.get(),s&&r.contains(s)&&delete t._nextVal,i=t._lastVal,s=i&&i.get(),s&&r.contains(s)&&delete t._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var t;let r=(t=this._lastVal)===null||t===void 0?void 0:t.get();return(!r||r&&!PL(r.ownerDocument,r))&&(this._lastVal=r=void 0),r}focus(t,r,n){return this._tabster.focusable.isFocusable(t,r,!1,n)?(t.focus(),!0):!1}focusDefault(t){const r=this._tabster.focusable.findDefault({container:t});return r?(this._tabster.focusedElement.focus(r),!0):!1}getFirstOrLastTabbable(t,r){var n;const{container:o,ignoreAccessibility:i}=r;let s;if(o){const a=jo.getTabsterContext(this._tabster,o);a&&(s=(n=uo.findNextTabbable(this._tabster,a,o,void 0,void 0,!t,i))===null||n===void 0?void 0:n.element)}return s&&!(o!=null&&o.contains(s))&&(s=void 0),s||void 0}_focusFirstOrLast(t,r){const n=this.getFirstOrLastTabbable(t,r);return n?(this.focus(n,!1,!0),!0):!1}focusFirst(t){return this._focusFirstOrLast(!0,t)}focusLast(t){return this._focusFirstOrLast(!1,t)}resetFocus(t){if(!this._tabster.focusable.isVisible(t))return!1;if(this._tabster.focusable.isFocusable(t,!0,!0,!0))this.focus(t);else{const r=t.getAttribute("tabindex"),n=t.getAttribute("aria-hidden");t.tabIndex=-1,t.setAttribute("aria-hidden","true"),uo._lastResetElement=new vl(this._win,t),this.focus(t,!0,!0),this._setOrRemoveAttribute(t,"tabindex",r),this._setOrRemoveAttribute(t,"aria-hidden",n)}return!0}_setOrRemoveAttribute(t,r,n){n===null?t.removeAttribute(r):t.setAttribute(r,n)}_setFocusedElement(t,r,n){var o,i;if(this._tabster._noop)return;const s={relatedTarget:r};if(t){const l=(o=uo._lastResetElement)===null||o===void 0?void 0:o.get();if(uo._lastResetElement=void 0,l===t||dle(t))return;s.isFocusedProgrammatically=n;const u=jo.getTabsterContext(this._tabster,t),c=(i=u==null?void 0:u.modalizer)===null||i===void 0?void 0:i.userId;c&&(s.modalizerId=c)}const a=this._nextVal={element:t?new vl(this._win,t):void 0,details:s};t&&t!==this._val&&this._validateFocusedElement(t),this._nextVal===a&&this.setVal(t,s),this._nextVal=void 0}setVal(t,r){super.setVal(t,r),t&&(this._lastVal=new vl(this._win,t))}static findNextTabbable(t,r,n,o,i,s,a){const l=n||r.root.getElement();if(!l)return null;let u=null;const c=uo._isTabbingTimer,f=t.getWindow();c&&f.clearTimeout(c),uo.isTabbing=!0,uo._isTabbingTimer=f.setTimeout(()=>{delete uo._isTabbingTimer,uo.isTabbing=!1},0);const d=r.modalizer,h=r.groupper,g=r.mover,v=y=>{var E;if(u=y.findNextTabbable(o,i,s,a),o&&!(u!=null&&u.element)){const _=y!==d&&((E=y.getElement())===null||E===void 0?void 0:E.parentElement);if(_){const S=jo.getTabsterContext(t,o,{referenceElement:_});if(S){const b=y.getElement(),k=s?b:b&&ple(b)||b;k&&(u=uo.findNextTabbable(t,S,n,k,_,s,a),u&&(u.outOfDOMOrder=!0))}}}};if(h&&g)v(r.groupperBeforeMover?h:g);else if(h)v(h);else if(g)v(g);else if(d)v(d);else{const y={container:l,currentElement:o,referenceElement:i,ignoreAccessibility:a,useActiveModalizer:!0},E={};u={element:t.focusable[s?"findPrev":"findNext"](y,E),outOfDOMOrder:E.outOfDOMOrder,uncontrolled:E.uncontrolled}}return u}}uo.isTabbing=!1;/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */class TFe extends gle{constructor(t){super(),this._onChange=r=>{this.setVal(r,void 0)},this._keyborg=Xae(t()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),Qae(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(t){var r;(r=this._keyborg)===null||r===void 0||r.setVal(t)}isNavigatingWithKeyboard(){var t;return!!(!((t=this._keyborg)===null||t===void 0)&&t.isNavigatingWithKeyboard())}}/*! + */class OFe extends vle{constructor(t){super(),this._onChange=r=>{this.setVal(r,void 0)},this._keyborg=Qae(t()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),Zae(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(t){var r;(r=this._keyborg)===null||r===void 0||r.setVal(t)}isNavigatingWithKeyboard(){var t;return!!(!((t=this._keyborg)===null||t===void 0)&&t.isNavigatingWithKeyboard())}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */let IFe=0;const wC="aria-hidden";class CFe extends qb{constructor(t,r,n){super(r,t,PL.Modalizer,n),this._setHandlers((o,i)=>{var s,a,l;const u=t.get(),c=u&&((s=jo.getRoot(r,u))===null||s===void 0?void 0:s.getElement()),f=o.input;let d;if(c&&f){const h=(a=f.__tabsterDummyContainer)===null||a===void 0?void 0:a.get(),g=jo.getTabsterContext(r,h||f);g&&(d=(l=uo.findNextTabbable(r,g,c,f,void 0,i,!0))===null||l===void 0?void 0:l.element),d&&xf(d)}})}}class NFe extends MT{constructor(t,r,n,o,i,s){super(t,r,o),this._wasFocused=0,this.userId=o.id,this._onDispose=n,this._activeElements=s,t.controlTab||(this.dummyManager=new CFe(this._element,t,i))}makeActive(t){if(this._isActive!==t){this._isActive=t;const r=this.getElement();if(r){const n=this._activeElements,o=n.map(i=>i.get()).indexOf(r);t?o<0&&n.push(new gl(this._tabster.getWindow,r)):o>=0&&n.splice(o,1)}this.triggerFocusEvent(t?Jae:ele)}}focused(t){return t||(this._wasFocused=++IFe),this._wasFocused}setProps(t){t.id&&(this.userId=t.id),this._props={...t}}dispose(){var t;this.makeActive(!1),this._onDispose(this),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(t){var r;return!!(!((r=this.getElement())===null||r===void 0)&&r.contains(t))}findNextTabbable(t,r,n,o){var i,s;if(!this.getElement())return null;const l=this._tabster;let u=null,c=!1,f;const d=t&&((i=jo.getRoot(l,t))===null||i===void 0?void 0:i.getElement());if(d){const h={container:d,currentElement:t,referenceElement:r,ignoreAccessibility:o,useActiveModalizer:!0},g={};u=l.focusable[n?"findPrev":"findNext"](h,g),!u&&this._props.isTrapped&&(!((s=l.modalizer)===null||s===void 0)&&s.activeId)?(u=l.focusable[n?"findLast":"findFirst"]({container:d,ignoreAccessibility:o,useActiveModalizer:!0},g),c=!0):c=!!g.outOfDOMOrder,f=g.uncontrolled}return{element:u,uncontrolled:f,outOfDOMOrder:c}}triggerFocusEvent(t,r){const n=this.getElement();let o=!1;if(n){const i=r?this._activeElements.map(s=>s.get()):[n];for(const s of i)s&&!f1(s,t,{id:this.userId,element:n,eventName:t})&&(o=!0)}return o}_remove(){}}class RFe{constructor(t,r,n){this._onModalizerDispose=i=>{const s=i.id,a=i.userId,l=this._parts[a];delete this._modalizers[s],l&&(delete l[s],Object.keys(l).length===0&&(delete this._parts[a],this.activeId===a&&this.setActive(void 0)))},this._onKeyDown=i=>{var s;if(i.keyCode!==Dr.Esc)return;const a=this._tabster,l=a.focusedElement.getFocusedElement();if(l){const u=jo.getTabsterContext(a,l),c=u==null?void 0:u.modalizer;if(u&&!u.groupper&&(c!=null&&c.isActive())&&!u.ignoreKeydown(i)){const f=c.userId;if(f){const d=this._parts[f];if(d){const h=Object.keys(d).map(g=>{var v;const y=d[g],E=y.getElement();let _;return E&&(_=(v=ba(this._tabster,E))===null||v===void 0?void 0:v.groupper),y&&E&&_?{el:E,focusedSince:y.focused(!0)}:{focusedSince:0}}).filter(g=>g.focusedSince>0).sort((g,v)=>g.focusedSince>v.focusedSince?-1:g.focusedSince{var a,l;const u=i&&jo.getTabsterContext(this._tabster,i);if(!u||!i)return;const c=this._augMap;for(let d=i;d;d=d.parentElement)c.has(d)&&(c.delete(d),SC(this._tabster,d,wC));const f=u.modalizer;if((l=f||((a=ba(this._tabster,i))===null||a===void 0?void 0:a.modalizer))===null||l===void 0||l.focused(),(f==null?void 0:f.userId)===this.activeId){this.currentIsOthersAccessible=f==null?void 0:f.getProps().isOthersAccessible;return}if(s.isFocusedProgrammatically||this.currentIsOthersAccessible||f!=null&&f.getProps().isAlwaysAccessible)this.setActive(f);else{const d=this._win();d.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=d.setTimeout(()=>this._restoreModalizerFocus(i),100)}},this._tabster=t,this._win=t.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=r,this._accessibleCheck=n,this.activeElements=[],t.controlTab||t.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),t.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const t=this._win();t.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(r=>{this._modalizers[r]&&(this._modalizers[r].dispose(),delete this._modalizers[r])}),t.clearTimeout(this._restoreModalizerFocusTimer),t.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(t,r,n){var o;const i=new NFe(this._tabster,t,this._onModalizerDispose,r,n,this.activeElements),s=i.id,a=r.id;this._modalizers[s]=i;let l=this._parts[a];return l||(l=this._parts[a]={}),l[s]=i,t.contains((o=this._tabster.focusedElement.getFocusedElement())!==null&&o!==void 0?o:null)&&(a!==this.activeId?this.setActive(i):i.makeActive(!0)),i}isAugmented(t){return this._augMap.has(t)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(t){const r=t==null?void 0:t.userId,n=this.activeId;if(n!==r){if(this.activeId=r,n){const o=this._parts[n];if(o)for(const i of Object.keys(o))o[i].makeActive(!1)}if(r){const o=this._parts[r];if(o)for(const i of Object.keys(o))o[i].makeActive(!0)}this.currentIsOthersAccessible=t==null?void 0:t.getProps().isOthersAccessible,this.hiddenUpdate()}}focus(t,r,n){const o=jo.getTabsterContext(this._tabster,t),i=o==null?void 0:o.modalizer;if(i){this.setActive(i);const s=i.getProps(),a=i.getElement();if(a){if(r===void 0&&(r=s.isNoFocusFirst),!r&&this._tabster.keyboardNavigation.isNavigatingWithKeyboard()&&this._tabster.focusedElement.focusFirst({container:a})||(n===void 0&&(n=s.isNoFocusDefault),!n&&this._tabster.focusedElement.focusDefault(a)))return!0;this._tabster.focusedElement.resetFocus(a)}}return!1}acceptElement(t,r){var n;const o=r.modalizerUserId,i=(n=r.currentCtx)===null||n===void 0?void 0:n.modalizer;if(o)for(const a of this.activeElements){const l=a.get();if(l&&(t.contains(l)||l===t))return NodeFilter.FILTER_SKIP}const s=o===(i==null?void 0:i.userId)||!o&&(i!=null&&i.getProps().isAlwaysAccessible)?void 0:NodeFilter.FILTER_SKIP;return s!==void 0&&(r.skippedFocusable=!0),s}_hiddenUpdate(){var t;const r=this._tabster,n=r.getWindow().document.body,o=this.activeId,i=this._parts,s=[],a=[],l=this._alwaysAccessibleSelector,u=l?Array.from(n.querySelectorAll(l)):[],c=[];for(const E of Object.keys(i)){const _=i[E];for(const S of Object.keys(_)){const b=_[S],k=b.getElement(),x=b.getProps().isAlwaysAccessible;k&&(E===o?(c.push(k),this.currentIsOthersAccessible||s.push(k)):x?u.push(k):a.push(k))}}const f=this._augMap,d=s.length>0?[...s,...u]:void 0,h=[],g=new WeakMap,v=(E,_)=>{var S;const b=E.tagName;if(b==="SCRIPT"||b==="STYLE")return;let k=!1;f.has(E)?_?k=!0:(f.delete(E),SC(r,E,wC)):_&&!(!((S=this._accessibleCheck)===null||S===void 0)&&S.call(this,E,c))&&SC(r,E,wC,"true")&&(f.set(E,!0),k=!0),k&&(h.push(new gl(r.getWindow,E)),g.set(E,!0))},y=E=>{for(let _=E.firstElementChild;_;_=_.nextElementSibling){let S=!1,b=!1;if(d){for(const k of d){if(_===k){S=!0;break}if(_.contains(k)){b=!0;break}}b?y(_):S||v(_,!0)}else v(_,!1)}};d||u.forEach(E=>v(E,!1)),a.forEach(E=>v(E,!0)),n&&y(n),(t=this._aug)===null||t===void 0||t.map(E=>E.get()).forEach(E=>{E&&!g.get(E)&&v(E,!1)}),this._aug=h,this._augMap=g}_restoreModalizerFocus(t){const r=t==null?void 0:t.ownerDocument;if(!t||!r)return;const n=jo.getTabsterContext(this._tabster,t),o=n==null?void 0:n.modalizer,i=this.activeId;if(!o&&!i||o&&i===o.userId)return;const s=n==null?void 0:n.root.getElement();if(s){let a=this._tabster.focusable.findFirst({container:s,useActiveModalizer:!0});if(a){if(t.compareDocumentPosition(a)&document.DOCUMENT_POSITION_PRECEDING&&(a=this._tabster.focusable.findLast({container:s,useActiveModalizer:!0}),!a))throw new Error("Something went wrong.");this._tabster.focusedElement.focus(a);return}}t.blur()}}/*! + */let DFe=0;const wC="aria-hidden";class FFe extends qb{constructor(t,r,n){super(r,t,qL.Modalizer,n),this._setHandlers((o,i)=>{var s,a,l;const u=t.get(),c=u&&((s=jo.getRoot(r,u))===null||s===void 0?void 0:s.getElement()),f=o.input;let d;if(c&&f){const h=(a=f.__tabsterDummyContainer)===null||a===void 0?void 0:a.get(),g=jo.getTabsterContext(r,h||f);g&&(d=(l=uo.findNextTabbable(r,g,c,f,void 0,i,!0))===null||l===void 0?void 0:l.element),d&&xf(d)}})}}class BFe extends LT{constructor(t,r,n,o,i,s){super(t,r,o),this._wasFocused=0,this.userId=o.id,this._onDispose=n,this._activeElements=s,t.controlTab||(this.dummyManager=new FFe(this._element,t,i))}makeActive(t){if(this._isActive!==t){this._isActive=t;const r=this.getElement();if(r){const n=this._activeElements,o=n.map(i=>i.get()).indexOf(r);t?o<0&&n.push(new vl(this._tabster.getWindow,r)):o>=0&&n.splice(o,1)}this.triggerFocusEvent(t?ele:tle)}}focused(t){return t||(this._wasFocused=++DFe),this._wasFocused}setProps(t){t.id&&(this.userId=t.id),this._props={...t}}dispose(){var t;this.makeActive(!1),this._onDispose(this),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(t){var r;return!!(!((r=this.getElement())===null||r===void 0)&&r.contains(t))}findNextTabbable(t,r,n,o){var i,s;if(!this.getElement())return null;const l=this._tabster;let u=null,c=!1,f;const d=t&&((i=jo.getRoot(l,t))===null||i===void 0?void 0:i.getElement());if(d){const h={container:d,currentElement:t,referenceElement:r,ignoreAccessibility:o,useActiveModalizer:!0},g={};u=l.focusable[n?"findPrev":"findNext"](h,g),!u&&this._props.isTrapped&&(!((s=l.modalizer)===null||s===void 0)&&s.activeId)?(u=l.focusable[n?"findLast":"findFirst"]({container:d,ignoreAccessibility:o,useActiveModalizer:!0},g),c=!0):c=!!g.outOfDOMOrder,f=g.uncontrolled}return{element:u,uncontrolled:f,outOfDOMOrder:c}}triggerFocusEvent(t,r){const n=this.getElement();let o=!1;if(n){const i=r?this._activeElements.map(s=>s.get()):[n];for(const s of i)s&&!f1(s,t,{id:this.userId,element:n,eventName:t})&&(o=!0)}return o}_remove(){}}class MFe{constructor(t,r,n){this._onModalizerDispose=i=>{const s=i.id,a=i.userId,l=this._parts[a];delete this._modalizers[s],l&&(delete l[s],Object.keys(l).length===0&&(delete this._parts[a],this.activeId===a&&this.setActive(void 0)))},this._onKeyDown=i=>{var s;if(i.keyCode!==Dr.Esc)return;const a=this._tabster,l=a.focusedElement.getFocusedElement();if(l){const u=jo.getTabsterContext(a,l),c=u==null?void 0:u.modalizer;if(u&&!u.groupper&&(c!=null&&c.isActive())&&!u.ignoreKeydown(i)){const f=c.userId;if(f){const d=this._parts[f];if(d){const h=Object.keys(d).map(g=>{var v;const y=d[g],E=y.getElement();let _;return E&&(_=(v=ba(this._tabster,E))===null||v===void 0?void 0:v.groupper),y&&E&&_?{el:E,focusedSince:y.focused(!0)}:{focusedSince:0}}).filter(g=>g.focusedSince>0).sort((g,v)=>g.focusedSince>v.focusedSince?-1:g.focusedSince{var a,l;const u=i&&jo.getTabsterContext(this._tabster,i);if(!u||!i)return;const c=this._augMap;for(let d=i;d;d=d.parentElement)c.has(d)&&(c.delete(d),SC(this._tabster,d,wC));const f=u.modalizer;if((l=f||((a=ba(this._tabster,i))===null||a===void 0?void 0:a.modalizer))===null||l===void 0||l.focused(),(f==null?void 0:f.userId)===this.activeId){this.currentIsOthersAccessible=f==null?void 0:f.getProps().isOthersAccessible;return}if(s.isFocusedProgrammatically||this.currentIsOthersAccessible||f!=null&&f.getProps().isAlwaysAccessible)this.setActive(f);else{const d=this._win();d.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=d.setTimeout(()=>this._restoreModalizerFocus(i),100)}},this._tabster=t,this._win=t.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=r,this._accessibleCheck=n,this.activeElements=[],t.controlTab||t.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),t.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const t=this._win();t.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(r=>{this._modalizers[r]&&(this._modalizers[r].dispose(),delete this._modalizers[r])}),t.clearTimeout(this._restoreModalizerFocusTimer),t.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(t,r,n){var o;const i=new BFe(this._tabster,t,this._onModalizerDispose,r,n,this.activeElements),s=i.id,a=r.id;this._modalizers[s]=i;let l=this._parts[a];return l||(l=this._parts[a]={}),l[s]=i,t.contains((o=this._tabster.focusedElement.getFocusedElement())!==null&&o!==void 0?o:null)&&(a!==this.activeId?this.setActive(i):i.makeActive(!0)),i}isAugmented(t){return this._augMap.has(t)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(t){const r=t==null?void 0:t.userId,n=this.activeId;if(n!==r){if(this.activeId=r,n){const o=this._parts[n];if(o)for(const i of Object.keys(o))o[i].makeActive(!1)}if(r){const o=this._parts[r];if(o)for(const i of Object.keys(o))o[i].makeActive(!0)}this.currentIsOthersAccessible=t==null?void 0:t.getProps().isOthersAccessible,this.hiddenUpdate()}}focus(t,r,n){const o=jo.getTabsterContext(this._tabster,t),i=o==null?void 0:o.modalizer;if(i){this.setActive(i);const s=i.getProps(),a=i.getElement();if(a){if(r===void 0&&(r=s.isNoFocusFirst),!r&&this._tabster.keyboardNavigation.isNavigatingWithKeyboard()&&this._tabster.focusedElement.focusFirst({container:a})||(n===void 0&&(n=s.isNoFocusDefault),!n&&this._tabster.focusedElement.focusDefault(a)))return!0;this._tabster.focusedElement.resetFocus(a)}}return!1}acceptElement(t,r){var n;const o=r.modalizerUserId,i=(n=r.currentCtx)===null||n===void 0?void 0:n.modalizer;if(o)for(const a of this.activeElements){const l=a.get();if(l&&(t.contains(l)||l===t))return NodeFilter.FILTER_SKIP}const s=o===(i==null?void 0:i.userId)||!o&&(i!=null&&i.getProps().isAlwaysAccessible)?void 0:NodeFilter.FILTER_SKIP;return s!==void 0&&(r.skippedFocusable=!0),s}_hiddenUpdate(){var t;const r=this._tabster,n=r.getWindow().document.body,o=this.activeId,i=this._parts,s=[],a=[],l=this._alwaysAccessibleSelector,u=l?Array.from(n.querySelectorAll(l)):[],c=[];for(const E of Object.keys(i)){const _=i[E];for(const S of Object.keys(_)){const b=_[S],k=b.getElement(),x=b.getProps().isAlwaysAccessible;k&&(E===o?(c.push(k),this.currentIsOthersAccessible||s.push(k)):x?u.push(k):a.push(k))}}const f=this._augMap,d=s.length>0?[...s,...u]:void 0,h=[],g=new WeakMap,v=(E,_)=>{var S;const b=E.tagName;if(b==="SCRIPT"||b==="STYLE")return;let k=!1;f.has(E)?_?k=!0:(f.delete(E),SC(r,E,wC)):_&&!(!((S=this._accessibleCheck)===null||S===void 0)&&S.call(this,E,c))&&SC(r,E,wC,"true")&&(f.set(E,!0),k=!0),k&&(h.push(new vl(r.getWindow,E)),g.set(E,!0))},y=E=>{for(let _=E.firstElementChild;_;_=_.nextElementSibling){let S=!1,b=!1;if(d){for(const k of d){if(_===k){S=!0;break}if(_.contains(k)){b=!0;break}}b?y(_):S||v(_,!0)}else v(_,!1)}};d||u.forEach(E=>v(E,!1)),a.forEach(E=>v(E,!0)),n&&y(n),(t=this._aug)===null||t===void 0||t.map(E=>E.get()).forEach(E=>{E&&!g.get(E)&&v(E,!1)}),this._aug=h,this._augMap=g}_restoreModalizerFocus(t){const r=t==null?void 0:t.ownerDocument;if(!t||!r)return;const n=jo.getTabsterContext(this._tabster,t),o=n==null?void 0:n.modalizer,i=this.activeId;if(!o&&!i||o&&i===o.userId)return;const s=n==null?void 0:n.root.getElement();if(s){let a=this._tabster.focusable.findFirst({container:s,useActiveModalizer:!0});if(a){if(t.compareDocumentPosition(a)&document.DOCUMENT_POSITION_PRECEDING&&(a=this._tabster.focusable.findLast({container:s,useActiveModalizer:!0}),!a))throw new Error("Something went wrong.");this._tabster.focusedElement.focus(a);return}}t.blur()}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const OFe=["input","textarea","*[contenteditable]"].join(", ");class DFe extends qb{constructor(t,r,n,o){super(r,t,PL.Mover,o),this._onFocusDummyInput=i=>{var s,a;const l=this._element.get(),u=i.input;if(l&&u){const c=jo.getTabsterContext(this._tabster,l);let f;c&&(f=(s=uo.findNextTabbable(this._tabster,c,void 0,u,void 0,!i.isFirst,!0))===null||s===void 0?void 0:s.element);const d=(a=this._getMemorized())===null||a===void 0?void 0:a.get();d&&(f=d),f&&xf(f)}},this._tabster=r,this._getMemorized=n,this._setHandlers(this._onFocusDummyInput)}}const kC=1,IG=2,CG=3;class FFe extends MT{constructor(t,r,n,o,i){var s;super(t,r,o),this._visible={},this._onIntersection=l=>{for(const u of l){const c=u.target,f=Nk(this._win,c);let d,h=this._fullyVisible;if(u.intersectionRatio>=.25?(d=u.intersectionRatio>=.75?Qc.Visible:Qc.PartiallyVisible,d===Qc.Visible&&(h=f)):d=Qc.Invisible,this._visible[f]!==d){d===void 0?(delete this._visible[f],h===f&&delete this._fullyVisible):(this._visible[f]=d,this._fullyVisible=h);const g=this.getState(c);g&&f1(c,TB,g)}}},this._win=t.getWindow,this.visibilityTolerance=(s=o.visibilityTolerance)!==null&&s!==void 0?s:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=n;const a=()=>o.memorizeCurrent?this._current:void 0;t.controlTab||(this.dummyManager=new DFe(this._element,t,a,i))}dispose(){var t;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const r=this._win();this._setCurrentTimer&&(r.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(r.clearTimeout(this._updateTimer),delete this._updateTimer),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager}setCurrent(t){t?this._current=new gl(this._win,t):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var r;delete this._setCurrentTimer;const n=[];this._current!==this._prevCurrent&&(n.push(this._current),n.push(this._prevCurrent),this._prevCurrent=this._current);for(const o of n){const i=o==null?void 0:o.get();if(i&&((r=this._allElements)===null||r===void 0?void 0:r.get(i))===this){const s=this._props;if(i&&(s.visibilityAware!==void 0||s.trackState)){const a=this.getState(i);a&&f1(i,TB,a)}}}}))}getCurrent(){var t;return((t=this._current)===null||t===void 0?void 0:t.get())||null}findNextTabbable(t,r,n,o){var i;const s=this.getElement(),a=s&&((i=t==null?void 0:t.__tabsterDummyContainer)===null||i===void 0?void 0:i.get())===s;if(!s)return null;let l=null,u=!1,c;if(this._props.tabbable||a||t&&!s.contains(t)){const f={currentElement:t,referenceElement:r,container:s,ignoreAccessibility:o,useActiveModalizer:!0},d={};l=this._tabster.focusable[n?"findPrev":"findNext"](f,d),u=!!d.outOfDOMOrder,c=d.uncontrolled}return{element:l,uncontrolled:c,outOfDOMOrder:u}}acceptElement(t,r){var n,o,i;if(!uo.isTabbing)return!((n=r.currentCtx)===null||n===void 0)&&n.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:s,visibilityAware:a,hasDefault:l=!0}=this._props,u=this.getElement();if(u&&(s||a||l)&&(!u.contains(r.from)||((o=r.from.__tabsterDummyContainer)===null||o===void 0?void 0:o.get())===u)){let c;if(s){const f=(i=this._current)===null||i===void 0?void 0:i.get();f&&r.acceptCondition(f)&&(c=f)}if(!c&&l&&(c=this._tabster.focusable.findDefault({container:u,useActiveModalizer:!0})),!c&&a&&(c=this._tabster.focusable.findElement({container:u,useActiveModalizer:!0,isBackward:r.isBackward,acceptCondition:f=>{var d;const h=Nk(this._win,f),g=this._visible[h];return u!==f&&!!(!((d=this._allElements)===null||d===void 0)&&d.get(f))&&r.acceptCondition(f)&&(g===Qc.Visible||g===Qc.PartiallyVisible&&(a===Qc.PartiallyVisible||!this._fullyVisible))}})),c)return r.found=!0,r.foundElement=c,r.rejectElementsFrom=u,r.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const t=this.getElement();if(this._unobserve||!t||typeof MutationObserver>"u")return;const r=this._win(),n=this._allElements=new WeakMap,o=this._tabster.focusable;let i=this._updateQueue=[];const s=new MutationObserver(h=>{for(const g of h){const v=g.target,y=g.removedNodes,E=g.addedNodes;if(g.type==="attributes")g.attributeName==="tabindex"&&i.push({element:v,type:IG});else{for(let _=0;_{var v,y;const E=n.get(h);E&&g&&((v=this._intersectionObserver)===null||v===void 0||v.unobserve(h),n.delete(h)),!E&&!g&&(n.set(h,this),(y=this._intersectionObserver)===null||y===void 0||y.observe(h))},l=h=>{const g=o.isFocusable(h);n.get(h)?g||a(h,!0):g&&a(h)},u=h=>{const{mover:g}=d(h);if(g&&g!==this)if(g.getElement()===h&&o.isFocusable(h))a(h);else return;const v=HL(r.document,h,y=>{const{mover:E,groupper:_}=d(y);if(E&&E!==this)return NodeFilter.FILTER_REJECT;const S=_==null?void 0:_.getFirst(!0);return _&&_.getElement()!==y&&S&&S!==y?NodeFilter.FILTER_REJECT:(o.isFocusable(y)&&a(y),NodeFilter.FILTER_SKIP)});if(v)for(v.currentNode=h;v.nextNode(););},c=h=>{n.get(h)&&a(h,!0);for(let v=h.firstElementChild;v;v=v.nextElementSibling)c(v)},f=()=>{!this._updateTimer&&i.length&&(this._updateTimer=r.setTimeout(()=>{delete this._updateTimer;for(const{element:h,type:g}of i)switch(g){case IG:l(h);break;case kC:u(h);break;case CG:c(h);break}i=this._updateQueue=[]},0))},d=h=>{const g={};for(let v=h;v;v=v.parentElement){const y=ba(this._tabster,v);if(y&&(y.groupper&&!g.groupper&&(g.groupper=y.groupper),y.mover)){g.mover=y.mover;break}}return g};i.push({element:t,type:kC}),f(),s.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{s.disconnect()}}getState(t){const r=Nk(this._win,t);if(r in this._visible){const n=this._visible[r]||Qc.Invisible;return{isCurrent:this._current?this._current.get()===t:void 0,visibility:n}}}}function BFe(e,t,r,n,o,i,s,a){const l=r{this._win().addEventListener("keydown",this._onKeyDown,!0),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=n=>{delete this._movers[n.id]},this._onFocus=n=>{var o;let i=n,s=n;for(let a=n==null?void 0:n.parentElement;a;a=a.parentElement){const l=(o=ba(this._tabster,a))===null||o===void 0?void 0:o.mover;l&&(l.setCurrent(s),i=void 0),!i&&this._tabster.focusable.isFocusable(a)&&(i=s=a)}},this._onKeyDown=async n=>{var o,i,s,a;this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(o=this._ignoredInputResolve)===null||o===void 0||o.call(this,!1);let l=n.keyCode;if(n.ctrlKey||n.altKey||n.shiftKey||n.metaKey)return;switch(l){case Dr.Down:case Dr.Right:case Dr.Up:case Dr.Left:case Dr.PageDown:case Dr.PageUp:case Dr.Home:case Dr.End:break;default:return}const u=this._tabster,c=u.focusedElement.getFocusedElement();if(!c||await this._isIgnoredInput(c,l))return;const f=jo.getTabsterContext(u,c,{checkRtl:!0});if(!f||!f.mover||f.excludedFromMover||f.ignoreKeydown(n))return;const d=f.mover,h=d.getElement();if(f.groupperBeforeMover){const L=f.groupper;if(L&&!L.isActive(!0)){for(let M=(i=L.getElement())===null||i===void 0?void 0:i.parentElement;M&&M!==h;M=M.parentElement)if(!((a=(s=ba(u,M))===null||s===void 0?void 0:s.groupper)===null||a===void 0)&&a.isActive(!0))return}else return}if(!h)return;const g=u.focusable,v=d.getProps(),y=v.direction||rh.Both,E=y===rh.Both,_=E||y===rh.Vertical,S=E||y===rh.Horizontal,b=y===rh.GridLinear,k=b||y===rh.Grid,T=v.cyclic;let x,I,C,R=0,D=0;if(k&&(C=c.getBoundingClientRect(),R=Math.ceil(C.left),D=Math.floor(C.right)),f.rtl&&(l===Dr.Right?l=Dr.Left:l===Dr.Left&&(l=Dr.Right)),l===Dr.Down&&_||l===Dr.Right&&(S||k))if(x=g.findNext({currentElement:c,container:h,useActiveModalizer:!0}),x&&k){const L=Math.ceil(x.getBoundingClientRect().left);!b&&D>L&&(x=void 0)}else!x&&T&&(x=g.findFirst({container:h,useActiveModalizer:!0}));else if(l===Dr.Up&&_||l===Dr.Left&&(S||k))if(x=g.findPrev({currentElement:c,container:h,useActiveModalizer:!0}),x&&k){const L=Math.floor(x.getBoundingClientRect().right);!b&&L>R&&(x=void 0)}else!x&&T&&(x=g.findLast({container:h,useActiveModalizer:!0}));else if(l===Dr.Home)k?g.findElement({container:h,currentElement:c,useActiveModalizer:!0,isBackward:!0,acceptCondition:L=>{var M;if(!g.isFocusable(L))return!1;const W=Math.ceil((M=L.getBoundingClientRect().left)!==null&&M!==void 0?M:0);return L!==c&&R<=W?!0:(x=L,!1)}}):x=g.findFirst({container:h,useActiveModalizer:!0});else if(l===Dr.End)k?g.findElement({container:h,currentElement:c,useActiveModalizer:!0,acceptCondition:L=>{var M;if(!g.isFocusable(L))return!1;const W=Math.ceil((M=L.getBoundingClientRect().left)!==null&&M!==void 0?M:0);return L!==c&&R>=W?!0:(x=L,!1)}}):x=g.findLast({container:h,useActiveModalizer:!0});else if(l===Dr.PageUp){if(g.findElement({currentElement:c,container:h,useActiveModalizer:!0,isBackward:!0,acceptCondition:L=>g.isFocusable(L)?AG(this._win,L,d.visibilityTolerance)?(x=L,!1):!0:!1}),k&&x){const L=Math.ceil(x.getBoundingClientRect().left);g.findElement({currentElement:x,container:h,useActiveModalizer:!0,acceptCondition:M=>{if(!g.isFocusable(M))return!1;const W=Math.ceil(M.getBoundingClientRect().left);return R=W?!0:(x=M,!1)}})}I=!1}else if(l===Dr.PageDown){if(g.findElement({currentElement:c,container:h,useActiveModalizer:!0,acceptCondition:L=>g.isFocusable(L)?AG(this._win,L,d.visibilityTolerance)?(x=L,!1):!0:!1}),k&&x){const L=Math.ceil(x.getBoundingClientRect().left);g.findElement({currentElement:x,container:h,useActiveModalizer:!0,isBackward:!0,acceptCondition:M=>{if(!g.isFocusable(M))return!1;const W=Math.ceil(M.getBoundingClientRect().left);return R>W||L<=W?!0:(x=M,!1)}})}I=!0}else if(k){const L=l===Dr.Up,M=R,W=Math.ceil(C.top),z=D,F=Math.floor(C.bottom);let P,K,V=0;g.findAll({container:h,currentElement:c,isBackward:L,onElement:Z=>{const J=Z.getBoundingClientRect(),ee=Math.ceil(J.left),de=Math.ceil(J.top),ge=Math.floor(J.right),Se=Math.floor(J.bottom);if(L&&Wde)return!0;const Re=Math.ceil(Math.min(z,ge))-Math.floor(Math.max(M,ee)),ve=Math.ceil(Math.min(z-M,ge-ee));if(Re>0&&ve>=Re){const Ee=Re/ve;Ee>V&&(P=Z,V=Ee)}else if(V===0){const Ee=BFe(M,W,z,F,ee,de,ge,Se);(K===void 0||Ee0)return!1;return!0}}),x=P}x&&ag({by:"mover",owner:h,next:x,relatedEvent:n})&&(I!==void 0&&pFe(this._win,x,I),n.preventDefault(),n.stopImmediatePropagation(),xf(x))},this._tabster=t,this._win=r,this._movers={},t.queueInit(this._init)}dispose(){var t;const r=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(t=this._ignoredInputResolve)===null||t===void 0||t.call(this,!1),this._ignoredInputTimer&&(r.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),r.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._movers).forEach(n=>{this._movers[n]&&(this._movers[n].dispose(),delete this._movers[n])})}createMover(t,r,n){const o=new FFe(this._tabster,t,this._onMoverDispose,r,n);return this._movers[o.id]=o,o}async _isIgnoredInput(t,r){var n;if(t.getAttribute("aria-expanded")==="true"&&t.hasAttribute("aria-activedescendant"))return!0;if(dle(t,OFe)){let o=0,i=0,s=0,a;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"){const l=t.type;if(s=(t.value||"").length,l==="email"||l==="number"){if(s){const c=(n=t.ownerDocument.defaultView)===null||n===void 0?void 0:n.getSelection();if(c){const f=c.toString().length,d=r===Dr.Left||r===Dr.Up;if(c.modify("extend",d?"backward":"forward","character"),f!==c.toString().length)return c.modify("extend",d?"forward":"backward","character"),!0;s=0}}}else{const c=t.selectionStart;if(c===null)return l==="hidden";o=c||0,i=t.selectionEnd||0}}else t.contentEditable==="true"&&(a=new(mFe(this._win))(l=>{this._ignoredInputResolve=g=>{delete this._ignoredInputResolve,l(g)};const u=this._win();this._ignoredInputTimer&&u.clearTimeout(this._ignoredInputTimer);const{anchorNode:c,focusNode:f,anchorOffset:d,focusOffset:h}=u.getSelection()||{};this._ignoredInputTimer=u.setTimeout(()=>{var g,v,y;delete this._ignoredInputTimer;const{anchorNode:E,focusNode:_,anchorOffset:S,focusOffset:b}=u.getSelection()||{};if(E!==c||_!==f||S!==d||b!==h){(g=this._ignoredInputResolve)===null||g===void 0||g.call(this,!1);return}if(o=S||0,i=b||0,s=((v=t.textContent)===null||v===void 0?void 0:v.length)||0,E&&_&&t.contains(E)&&t.contains(_)&&E!==t){let k=!1;const T=x=>{if(x===E)k=!0;else if(x===_)return!0;const I=x.textContent;if(I&&!x.firstChild){const R=I.length;k?_!==E&&(i+=R):(o+=R,i+=R)}let C=!1;for(let R=x.firstChild;R&&!C;R=R.nextSibling)C=T(R);return C};T(t)}(y=this._ignoredInputResolve)===null||y===void 0||y.call(this,!0)},0)}));if(a&&!await a||o!==i||o>0&&(r===Dr.Left||r===Dr.Up||r===Dr.Home)||o{var s,a;const l=this._element.get(),u=i.input;if(l&&u){const c=jo.getTabsterContext(this._tabster,l);let f;c&&(f=(s=uo.findNextTabbable(this._tabster,c,void 0,u,void 0,!i.isFirst,!0))===null||s===void 0?void 0:s.element);const d=(a=this._getMemorized())===null||a===void 0?void 0:a.get();d&&(f=d),f&&xf(f)}},this._tabster=r,this._getMemorized=n,this._setHandlers(this._onFocusDummyInput)}}const kC=1,CG=2,NG=3;class zFe extends LT{constructor(t,r,n,o,i){var s;super(t,r,o),this._visible={},this._onIntersection=l=>{for(const u of l){const c=u.target,f=Rk(this._win,c);let d,h=this._fullyVisible;if(u.intersectionRatio>=.25?(d=u.intersectionRatio>=.75?Qc.Visible:Qc.PartiallyVisible,d===Qc.Visible&&(h=f)):d=Qc.Invisible,this._visible[f]!==d){d===void 0?(delete this._visible[f],h===f&&delete this._fullyVisible):(this._visible[f]=d,this._fullyVisible=h);const g=this.getState(c);g&&f1(c,IB,g)}}},this._win=t.getWindow,this.visibilityTolerance=(s=o.visibilityTolerance)!==null&&s!==void 0?s:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=n;const a=()=>o.memorizeCurrent?this._current:void 0;t.controlTab||(this.dummyManager=new jFe(this._element,t,a,i))}dispose(){var t;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const r=this._win();this._setCurrentTimer&&(r.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(r.clearTimeout(this._updateTimer),delete this._updateTimer),(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager}setCurrent(t){t?this._current=new vl(this._win,t):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var r;delete this._setCurrentTimer;const n=[];this._current!==this._prevCurrent&&(n.push(this._current),n.push(this._prevCurrent),this._prevCurrent=this._current);for(const o of n){const i=o==null?void 0:o.get();if(i&&((r=this._allElements)===null||r===void 0?void 0:r.get(i))===this){const s=this._props;if(i&&(s.visibilityAware!==void 0||s.trackState)){const a=this.getState(i);a&&f1(i,IB,a)}}}}))}getCurrent(){var t;return((t=this._current)===null||t===void 0?void 0:t.get())||null}findNextTabbable(t,r,n,o){var i;const s=this.getElement(),a=s&&((i=t==null?void 0:t.__tabsterDummyContainer)===null||i===void 0?void 0:i.get())===s;if(!s)return null;let l=null,u=!1,c;if(this._props.tabbable||a||t&&!s.contains(t)){const f={currentElement:t,referenceElement:r,container:s,ignoreAccessibility:o,useActiveModalizer:!0},d={};l=this._tabster.focusable[n?"findPrev":"findNext"](f,d),u=!!d.outOfDOMOrder,c=d.uncontrolled}return{element:l,uncontrolled:c,outOfDOMOrder:u}}acceptElement(t,r){var n,o,i;if(!uo.isTabbing)return!((n=r.currentCtx)===null||n===void 0)&&n.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:s,visibilityAware:a,hasDefault:l=!0}=this._props,u=this.getElement();if(u&&(s||a||l)&&(!u.contains(r.from)||((o=r.from.__tabsterDummyContainer)===null||o===void 0?void 0:o.get())===u)){let c;if(s){const f=(i=this._current)===null||i===void 0?void 0:i.get();f&&r.acceptCondition(f)&&(c=f)}if(!c&&l&&(c=this._tabster.focusable.findDefault({container:u,useActiveModalizer:!0})),!c&&a&&(c=this._tabster.focusable.findElement({container:u,useActiveModalizer:!0,isBackward:r.isBackward,acceptCondition:f=>{var d;const h=Rk(this._win,f),g=this._visible[h];return u!==f&&!!(!((d=this._allElements)===null||d===void 0)&&d.get(f))&&r.acceptCondition(f)&&(g===Qc.Visible||g===Qc.PartiallyVisible&&(a===Qc.PartiallyVisible||!this._fullyVisible))}})),c)return r.found=!0,r.foundElement=c,r.rejectElementsFrom=u,r.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const t=this.getElement();if(this._unobserve||!t||typeof MutationObserver>"u")return;const r=this._win(),n=this._allElements=new WeakMap,o=this._tabster.focusable;let i=this._updateQueue=[];const s=new MutationObserver(h=>{for(const g of h){const v=g.target,y=g.removedNodes,E=g.addedNodes;if(g.type==="attributes")g.attributeName==="tabindex"&&i.push({element:v,type:CG});else{for(let _=0;_{var v,y;const E=n.get(h);E&&g&&((v=this._intersectionObserver)===null||v===void 0||v.unobserve(h),n.delete(h)),!E&&!g&&(n.set(h,this),(y=this._intersectionObserver)===null||y===void 0||y.observe(h))},l=h=>{const g=o.isFocusable(h);n.get(h)?g||a(h,!0):g&&a(h)},u=h=>{const{mover:g}=d(h);if(g&&g!==this)if(g.getElement()===h&&o.isFocusable(h))a(h);else return;const v=$L(r.document,h,y=>{const{mover:E,groupper:_}=d(y);if(E&&E!==this)return NodeFilter.FILTER_REJECT;const S=_==null?void 0:_.getFirst(!0);return _&&_.getElement()!==y&&S&&S!==y?NodeFilter.FILTER_REJECT:(o.isFocusable(y)&&a(y),NodeFilter.FILTER_SKIP)});if(v)for(v.currentNode=h;v.nextNode(););},c=h=>{n.get(h)&&a(h,!0);for(let v=h.firstElementChild;v;v=v.nextElementSibling)c(v)},f=()=>{!this._updateTimer&&i.length&&(this._updateTimer=r.setTimeout(()=>{delete this._updateTimer;for(const{element:h,type:g}of i)switch(g){case CG:l(h);break;case kC:u(h);break;case NG:c(h);break}i=this._updateQueue=[]},0))},d=h=>{const g={};for(let v=h;v;v=v.parentElement){const y=ba(this._tabster,v);if(y&&(y.groupper&&!g.groupper&&(g.groupper=y.groupper),y.mover)){g.mover=y.mover;break}}return g};i.push({element:t,type:kC}),f(),s.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{s.disconnect()}}getState(t){const r=Rk(this._win,t);if(r in this._visible){const n=this._visible[r]||Qc.Invisible;return{isCurrent:this._current?this._current.get()===t:void 0,visibility:n}}}}function HFe(e,t,r,n,o,i,s,a){const l=r{this._win().addEventListener("keydown",this._onKeyDown,!0),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=n=>{delete this._movers[n.id]},this._onFocus=n=>{var o;let i=n,s=n;for(let a=n==null?void 0:n.parentElement;a;a=a.parentElement){const l=(o=ba(this._tabster,a))===null||o===void 0?void 0:o.mover;l&&(l.setCurrent(s),i=void 0),!i&&this._tabster.focusable.isFocusable(a)&&(i=s=a)}},this._onKeyDown=async n=>{var o,i,s,a;this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(o=this._ignoredInputResolve)===null||o===void 0||o.call(this,!1);let l=n.keyCode;if(n.ctrlKey||n.altKey||n.shiftKey||n.metaKey)return;switch(l){case Dr.Down:case Dr.Right:case Dr.Up:case Dr.Left:case Dr.PageDown:case Dr.PageUp:case Dr.Home:case Dr.End:break;default:return}const u=this._tabster,c=u.focusedElement.getFocusedElement();if(!c||await this._isIgnoredInput(c,l))return;const f=jo.getTabsterContext(u,c,{checkRtl:!0});if(!f||!f.mover||f.excludedFromMover||f.ignoreKeydown(n))return;const d=f.mover,h=d.getElement();if(f.groupperBeforeMover){const L=f.groupper;if(L&&!L.isActive(!0)){for(let M=(i=L.getElement())===null||i===void 0?void 0:i.parentElement;M&&M!==h;M=M.parentElement)if(!((a=(s=ba(u,M))===null||s===void 0?void 0:s.groupper)===null||a===void 0)&&a.isActive(!0))return}else return}if(!h)return;const g=u.focusable,v=d.getProps(),y=v.direction||nh.Both,E=y===nh.Both,_=E||y===nh.Vertical,S=E||y===nh.Horizontal,b=y===nh.GridLinear,k=b||y===nh.Grid,T=v.cyclic;let x,I,C,R=0,D=0;if(k&&(C=c.getBoundingClientRect(),R=Math.ceil(C.left),D=Math.floor(C.right)),f.rtl&&(l===Dr.Right?l=Dr.Left:l===Dr.Left&&(l=Dr.Right)),l===Dr.Down&&_||l===Dr.Right&&(S||k))if(x=g.findNext({currentElement:c,container:h,useActiveModalizer:!0}),x&&k){const L=Math.ceil(x.getBoundingClientRect().left);!b&&D>L&&(x=void 0)}else!x&&T&&(x=g.findFirst({container:h,useActiveModalizer:!0}));else if(l===Dr.Up&&_||l===Dr.Left&&(S||k))if(x=g.findPrev({currentElement:c,container:h,useActiveModalizer:!0}),x&&k){const L=Math.floor(x.getBoundingClientRect().right);!b&&L>R&&(x=void 0)}else!x&&T&&(x=g.findLast({container:h,useActiveModalizer:!0}));else if(l===Dr.Home)k?g.findElement({container:h,currentElement:c,useActiveModalizer:!0,isBackward:!0,acceptCondition:L=>{var M;if(!g.isFocusable(L))return!1;const W=Math.ceil((M=L.getBoundingClientRect().left)!==null&&M!==void 0?M:0);return L!==c&&R<=W?!0:(x=L,!1)}}):x=g.findFirst({container:h,useActiveModalizer:!0});else if(l===Dr.End)k?g.findElement({container:h,currentElement:c,useActiveModalizer:!0,acceptCondition:L=>{var M;if(!g.isFocusable(L))return!1;const W=Math.ceil((M=L.getBoundingClientRect().left)!==null&&M!==void 0?M:0);return L!==c&&R>=W?!0:(x=L,!1)}}):x=g.findLast({container:h,useActiveModalizer:!0});else if(l===Dr.PageUp){if(g.findElement({currentElement:c,container:h,useActiveModalizer:!0,isBackward:!0,acceptCondition:L=>g.isFocusable(L)?xG(this._win,L,d.visibilityTolerance)?(x=L,!1):!0:!1}),k&&x){const L=Math.ceil(x.getBoundingClientRect().left);g.findElement({currentElement:x,container:h,useActiveModalizer:!0,acceptCondition:M=>{if(!g.isFocusable(M))return!1;const W=Math.ceil(M.getBoundingClientRect().left);return R=W?!0:(x=M,!1)}})}I=!1}else if(l===Dr.PageDown){if(g.findElement({currentElement:c,container:h,useActiveModalizer:!0,acceptCondition:L=>g.isFocusable(L)?xG(this._win,L,d.visibilityTolerance)?(x=L,!1):!0:!1}),k&&x){const L=Math.ceil(x.getBoundingClientRect().left);g.findElement({currentElement:x,container:h,useActiveModalizer:!0,isBackward:!0,acceptCondition:M=>{if(!g.isFocusable(M))return!1;const W=Math.ceil(M.getBoundingClientRect().left);return R>W||L<=W?!0:(x=M,!1)}})}I=!0}else if(k){const L=l===Dr.Up,M=R,W=Math.ceil(C.top),z=D,F=Math.floor(C.bottom);let P,K,V=0;g.findAll({container:h,currentElement:c,isBackward:L,onElement:Z=>{const J=Z.getBoundingClientRect(),ee=Math.ceil(J.left),de=Math.ceil(J.top),ge=Math.floor(J.right),Se=Math.floor(J.bottom);if(L&&Wde)return!0;const Re=Math.ceil(Math.min(z,ge))-Math.floor(Math.max(M,ee)),ve=Math.ceil(Math.min(z-M,ge-ee));if(Re>0&&ve>=Re){const Ee=Re/ve;Ee>V&&(P=Z,V=Ee)}else if(V===0){const Ee=HFe(M,W,z,F,ee,de,ge,Se);(K===void 0||Ee0)return!1;return!0}}),x=P}x&&ag({by:"mover",owner:h,next:x,relatedEvent:n})&&(I!==void 0&&bFe(this._win,x,I),n.preventDefault(),n.stopImmediatePropagation(),xf(x))},this._tabster=t,this._win=r,this._movers={},t.queueInit(this._init)}dispose(){var t;const r=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(t=this._ignoredInputResolve)===null||t===void 0||t.call(this,!1),this._ignoredInputTimer&&(r.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),r.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._movers).forEach(n=>{this._movers[n]&&(this._movers[n].dispose(),delete this._movers[n])})}createMover(t,r,n){const o=new zFe(this._tabster,t,this._onMoverDispose,r,n);return this._movers[o.id]=o,o}async _isIgnoredInput(t,r){var n;if(t.getAttribute("aria-expanded")==="true"&&t.hasAttribute("aria-activedescendant"))return!0;if(hle(t,LFe)){let o=0,i=0,s=0,a;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"){const l=t.type;if(s=(t.value||"").length,l==="email"||l==="number"){if(s){const c=(n=t.ownerDocument.defaultView)===null||n===void 0?void 0:n.getSelection();if(c){const f=c.toString().length,d=r===Dr.Left||r===Dr.Up;if(c.modify("extend",d?"backward":"forward","character"),f!==c.toString().length)return c.modify("extend",d?"forward":"backward","character"),!0;s=0}}}else{const c=t.selectionStart;if(c===null)return l==="hidden";o=c||0,i=t.selectionEnd||0}}else t.contentEditable==="true"&&(a=new(SFe(this._win))(l=>{this._ignoredInputResolve=g=>{delete this._ignoredInputResolve,l(g)};const u=this._win();this._ignoredInputTimer&&u.clearTimeout(this._ignoredInputTimer);const{anchorNode:c,focusNode:f,anchorOffset:d,focusOffset:h}=u.getSelection()||{};this._ignoredInputTimer=u.setTimeout(()=>{var g,v,y;delete this._ignoredInputTimer;const{anchorNode:E,focusNode:_,anchorOffset:S,focusOffset:b}=u.getSelection()||{};if(E!==c||_!==f||S!==d||b!==h){(g=this._ignoredInputResolve)===null||g===void 0||g.call(this,!1);return}if(o=S||0,i=b||0,s=((v=t.textContent)===null||v===void 0?void 0:v.length)||0,E&&_&&t.contains(E)&&t.contains(_)&&E!==t){let k=!1;const T=x=>{if(x===E)k=!0;else if(x===_)return!0;const I=x.textContent;if(I&&!x.firstChild){const R=I.length;k?_!==E&&(i+=R):(o+=R,i+=R)}let C=!1;for(let R=x.firstChild;R&&!C;R=R.nextSibling)C=T(R);return C};T(t)}(y=this._ignoredInputResolve)===null||y===void 0||y.call(this,!0)},0)}));if(a&&!await a||o!==i||o>0&&(r===Dr.Left||r===Dr.Up||r===Dr.Home)||o"u")return()=>{};const o=t.getWindow;let i;const s=c=>{var f,d,h,g,v;for(const y of c){const E=y.target,_=y.removedNodes,S=y.addedNodes;if(y.type==="attributes")y.attributeName===gf&&r(t,E);else{for(let b=0;b<_.length;b++)a(_[b],!0),(d=(f=t._dummyObserver).domChanged)===null||d===void 0||d.call(f,E);for(let b=0;bl(h,f));if(d)for(;d.nextNode(););}function l(c,f){var d;if(!c.getAttribute)return NodeFilter.FILTER_SKIP;const h=c.__tabsterElementUID;return h&&i&&(f?delete i[h]:(d=i[h])!==null&&d!==void 0||(i[h]=new gl(o,c))),(ba(t,c)||c.hasAttribute(gf))&&r(t,c,f),NodeFilter.FILTER_SKIP}const u=new MutationObserver(s);return n&&a(o().document.body),u.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[gf]}),()=>{u.disconnect()}}/*! + */function PFe(e,t,r,n){if(typeof MutationObserver>"u")return()=>{};const o=t.getWindow;let i;const s=c=>{var f,d,h,g,v;for(const y of c){const E=y.target,_=y.removedNodes,S=y.addedNodes;if(y.type==="attributes")y.attributeName===gf&&r(t,E);else{for(let b=0;b<_.length;b++)a(_[b],!0),(d=(f=t._dummyObserver).domChanged)===null||d===void 0||d.call(f,E);for(let b=0;bl(h,f));if(d)for(;d.nextNode(););}function l(c,f){var d;if(!c.getAttribute)return NodeFilter.FILTER_SKIP;const h=c.__tabsterElementUID;return h&&i&&(f?delete i[h]:(d=i[h])!==null&&d!==void 0||(i[h]=new vl(o,c))),(ba(t,c)||c.hasAttribute(gf))&&r(t,c,f),NodeFilter.FILTER_SKIP}const u=new MutationObserver(s);return n&&a(o().document.body),u.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[gf]}),()=>{u.disconnect()}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */class jFe{constructor(t){this._isUncontrolledCompletely=t}isUncontrolledCompletely(t,r){var n;const o=(n=this._isUncontrolledCompletely)===null||n===void 0?void 0:n.call(this,t,r);return o===void 0?r:o}}/*! + */class qFe{constructor(t){this._isUncontrolledCompletely=t}isUncontrolledCompletely(t,r){var n;const o=(n=this._isUncontrolledCompletely)===null||n===void 0?void 0:n.call(this,t,r);return o===void 0?r:o}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */const HA="restorer:restorefocus",zFe=10;class HFe extends MT{constructor(t,r,n){var o;if(super(t,r,n),this._hasFocus=!1,this._onFocusOut=i=>{var s;const a=(s=this._element)===null||s===void 0?void 0:s.get();a&&i.relatedTarget===null&&a.dispatchEvent(new Event(HA,{bubbles:!0})),a&&!a.contains(i.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===Pb.Source){const i=(o=this._element)===null||o===void 0?void 0:o.get();i==null||i.addEventListener("focusout",this._onFocusOut),i==null||i.addEventListener("focusin",this._onFocusIn)}}dispose(){var t,r;if(this._props.type===Pb.Source){const n=(t=this._element)===null||t===void 0?void 0:t.get();n==null||n.removeEventListener("focusout",this._onFocusOut),n==null||n.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&((r=this._tabster.getWindow().document.body)===null||r===void 0||r.dispatchEvent(new Event(HA,{bubbles:!0})))}}}class $Fe{constructor(t){this._history=[],this._restoreFocusTimeout=0,this._onRestoreFocus=r=>{const n=this._getWindow();this._restoreFocusTimeout&&n.clearTimeout(this._restoreFocusTimeout),this._restoreFocusTimeout=n.setTimeout(()=>this._restoreFocus(r.target))},this._onFocusIn=r=>{var n;if(!r)return;const o=ba(this._tabster,r);((n=o==null?void 0:o.restorer)===null||n===void 0?void 0:n.getProps().type)===Pb.Target&&this._addToHistory(r)},this._restoreFocus=r=>{var n,o,i;const s=this._getWindow().document;if(s.activeElement!==s.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&s.body.contains(r))return;let a=this._history.pop();for(;a&&!s.body.contains((o=(n=a.get())===null||n===void 0?void 0:n.parentElement)!==null&&o!==void 0?o:null);)a=this._history.pop();(i=a==null?void 0:a.get())===null||i===void 0||i.focus()},this._tabster=t,this._getWindow=t.getWindow,this._getWindow().addEventListener(HA,this._onRestoreFocus),this._keyboardNavState=t.keyboardNavigation,this._focusedElementState=t.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const t=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),t.removeEventListener(HA,this._onRestoreFocus),this._restoreFocusTimeout&&t.clearTimeout(this._restoreFocusTimeout)}_addToHistory(t){var r;((r=this._history[this._history.length-1])===null||r===void 0?void 0:r.get())!==t&&(this._history.length>zFe&&this._history.shift(),this._history.push(new gl(this._getWindow,t)))}createRestorer(t,r){const n=new HFe(this._tabster,t,r);return r.type===Pb.Target&&t.ownerDocument.activeElement===t&&this._addToHistory(t),n}}/*! + */const $A="restorer:restorefocus",WFe=10;class GFe extends LT{constructor(t,r,n){var o;if(super(t,r,n),this._hasFocus=!1,this._onFocusOut=i=>{var s;const a=(s=this._element)===null||s===void 0?void 0:s.get();a&&i.relatedTarget===null&&a.dispatchEvent(new Event($A,{bubbles:!0})),a&&!a.contains(i.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===Pb.Source){const i=(o=this._element)===null||o===void 0?void 0:o.get();i==null||i.addEventListener("focusout",this._onFocusOut),i==null||i.addEventListener("focusin",this._onFocusIn)}}dispose(){var t,r;if(this._props.type===Pb.Source){const n=(t=this._element)===null||t===void 0?void 0:t.get();n==null||n.removeEventListener("focusout",this._onFocusOut),n==null||n.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&((r=this._tabster.getWindow().document.body)===null||r===void 0||r.dispatchEvent(new Event($A,{bubbles:!0})))}}}class KFe{constructor(t){this._history=[],this._restoreFocusTimeout=0,this._onRestoreFocus=r=>{const n=this._getWindow();this._restoreFocusTimeout&&n.clearTimeout(this._restoreFocusTimeout),this._restoreFocusTimeout=n.setTimeout(()=>this._restoreFocus(r.target))},this._onFocusIn=r=>{var n;if(!r)return;const o=ba(this._tabster,r);((n=o==null?void 0:o.restorer)===null||n===void 0?void 0:n.getProps().type)===Pb.Target&&this._addToHistory(r)},this._restoreFocus=r=>{var n,o,i;const s=this._getWindow().document;if(s.activeElement!==s.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&s.body.contains(r))return;let a=this._history.pop();for(;a&&!s.body.contains((o=(n=a.get())===null||n===void 0?void 0:n.parentElement)!==null&&o!==void 0?o:null);)a=this._history.pop();(i=a==null?void 0:a.get())===null||i===void 0||i.focus()},this._tabster=t,this._getWindow=t.getWindow,this._getWindow().addEventListener($A,this._onRestoreFocus),this._keyboardNavState=t.keyboardNavigation,this._focusedElementState=t.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const t=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),t.removeEventListener($A,this._onRestoreFocus),this._restoreFocusTimeout&&t.clearTimeout(this._restoreFocusTimeout)}_addToHistory(t){var r;((r=this._history[this._history.length-1])===null||r===void 0?void 0:r.get())!==t&&(this._history.length>WFe&&this._history.shift(),this._history.push(new vl(this._getWindow,t)))}createRestorer(t,r){const n=new GFe(this._tabster,t,r);return r.type===Pb.Target&&t.ownerDocument.activeElement===t&&this._addToHistory(t),n}}/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. - */class PFe{constructor(t){this.keyboardNavigation=t.keyboardNavigation,this.focusedElement=t.focusedElement,this.focusable=t.focusable,this.root=t.root,this.uncontrolled=t.uncontrolled,this.core=t}}class qFe{constructor(t,r){var n,o;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="5.2.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=fFe(t),this._win=t;const i=this.getWindow;this.keyboardNavigation=new TFe(i),this.focusedElement=new uo(this,i),this.focusable=new AFe(this),this.root=new jo(this,r==null?void 0:r.autoRoot),this.uncontrolled=new jFe((r==null?void 0:r.checkUncontrolledCompletely)||(r==null?void 0:r.checkUncontrolledTrappingFocus)),this.controlTab=(n=r==null?void 0:r.controlTab)!==null&&n!==void 0?n:!0,this.rootDummyInputs=!!(r!=null&&r.rootDummyInputs),this._dummyObserver=new _Fe(i),this.getParent=(o=r==null?void 0:r.getParent)!==null&&o!==void 0?o:s=>s.parentElement,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:s=>{if(!this._unobserve){const a=i().document;this._unobserve=LFe(a,this,ile,s)}}},lle(i),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(t){var r;t&&(this.getParent=(r=t.getParent)!==null&&r!==void 0?r:this.getParent)}createTabster(t,r){const n=new PFe(this);return t||this._wrappers.add(n),this._mergeProps(r),n}disposeTabster(t,r){r?this._wrappers.clear():this._wrappers.delete(t),this._wrappers.size===0&&this.dispose()}dispose(){var t,r,n,o,i,s,a,l;this.internal.stopObserver();const u=this._win;u==null||u.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],u&&this._forgetMemorizedTimer&&(u.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(t=this.outline)===null||t===void 0||t.dispose(),(r=this.crossOrigin)===null||r===void 0||r.dispose(),(n=this.deloser)===null||n===void 0||n.dispose(),(o=this.groupper)===null||o===void 0||o.dispose(),(i=this.mover)===null||i===void 0||i.dispose(),(s=this.modalizer)===null||s===void 0||s.dispose(),(a=this.observedElement)===null||a===void 0||a.dispose(),(l=this.restorer)===null||l===void 0||l.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),hFe(this.getWindow),xG(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),u&&(cFe(u),delete u.__tabsterInstance,delete this._win)}storageEntry(t,r){const n=this._storage;let o=n.get(t);return o?r===!1&&Object.keys(o).length===0&&n.delete(t):r===!0&&(o={},n.set(t,o)),o}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let t=this._forgetMemorizedElements.shift();t;t=this._forgetMemorizedElements.shift())xG(this.getWindow,t),uo.forgetMemorized(this.focusedElement,t)},0),ale(this.getWindow,!0)))}queueInit(t){var r;this._win&&(this._initQueue.push(t),this._initTimer||(this._initTimer=(r=this._win)===null||r===void 0?void 0:r.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const t=this._initQueue;this._initQueue=[],t.forEach(r=>r())}}function WFe(e,t){let r=YFe(e);return r?r.createTabster(!1,t):(r=new qFe(e,t),e.__tabsterInstance=r,r.createTabster())}function GFe(e){const t=e.core;return t.mover||(t.mover=new MFe(t,t.getWindow)),t.mover}function KFe(e,t,r){const n=e.core;return n.modalizer||(n.modalizer=new RFe(n,t,r)),n.modalizer}function VFe(e){const t=e.core;return t.restorer||(t.restorer=new $Fe(t)),t.restorer}function UFe(e,t){e.core.disposeTabster(e,t)}function YFe(e){return e.__tabsterInstance}const LT=()=>{const{targetDocument:e}=Fa(),t=(e==null?void 0:e.defaultView)||void 0,r=A.useMemo(()=>t?WFe(t,{autoRoot:{},controlTab:!1,getParent:Lae,checkUncontrolledTrappingFocus:n=>{var o;return!!(!((o=n.firstElementChild)===null||o===void 0)&&o.hasAttribute("data-is-focus-trap-zone-bumper"))}}):null,[t]);return hc(()=>()=>{r&&UFe(r)},[r]),r},$A=e=>(LT(),ple(e)),vle=(e={})=>{const{circular:t,axis:r,memorizeCurrent:n,tabbable:o,ignoreDefaultKeydown:i,unstable_hasDefault:s}=e,a=LT();return a&&GFe(a),$A({mover:{cyclic:!!t,direction:XFe(r??"vertical"),memorizeCurrent:n,tabbable:o,hasDefault:s},...i&&{focusable:{ignoreKeydown:i}}})};function XFe(e){switch(e){case"horizontal":return fh.MoverDirections.Horizontal;case"grid":return fh.MoverDirections.Grid;case"grid-linear":return fh.MoverDirections.GridLinear;case"both":return fh.MoverDirections.Both;case"vertical":default:return fh.MoverDirections.Vertical}}const mle=()=>{const e=LT(),{targetDocument:t}=Fa(),r=A.useCallback((a,l)=>(e==null?void 0:e.focusable.findAll({container:a,acceptCondition:l}))||[],[e]),n=A.useCallback(a=>e==null?void 0:e.focusable.findFirst({container:a}),[e]),o=A.useCallback(a=>e==null?void 0:e.focusable.findLast({container:a}),[e]),i=A.useCallback((a,l={})=>{if(!e||!t)return null;const{container:u=t.body}=l;return e.focusable.findNext({currentElement:a,container:u})},[e,t]),s=A.useCallback((a,l={})=>{if(!e||!t)return null;const{container:u=t.body}=l;return e.focusable.findPrev({currentElement:a,container:u})},[e,t]);return{findAllFocusable:r,findFirstFocusable:n,findLastFocusable:o,findNextFocusable:i,findPrevFocusable:s}},NG="data-fui-focus-visible";function QFe(e,t){if(yle(e))return()=>{};const r={current:void 0},n=Xae(t);function o(l){n.isNavigatingWithKeyboard()&&$b(l)&&(r.current=l,l.setAttribute(NG,""))}function i(){r.current&&(r.current.removeAttribute(NG),r.current=void 0)}n.subscribe(l=>{l||i()});const s=l=>{i();const u=l.composedPath()[0];o(u)},a=l=>{(!l.relatedTarget||$b(l.relatedTarget)&&!e.contains(l.relatedTarget))&&i()};return e.addEventListener(Af,s),e.addEventListener("focusout",a),e.focusVisible=!0,o(t.document.activeElement),()=>{i(),e.removeEventListener(Af,s),e.removeEventListener("focusout",a),delete e.focusVisible,Qae(n)}}function yle(e){return e?e.focusVisible?!0:yle(e==null?void 0:e.parentElement):!1}function ble(e={}){const t=Fa(),r=A.useRef(null);var n;const o=(n=e.targetDocument)!==null&&n!==void 0?n:t.targetDocument;return A.useEffect(()=>{if(o!=null&&o.defaultView&&r.current)return QFe(r.current,o.defaultView)},[r,o]),r}const jT=(e={})=>{const{trapFocus:t,alwaysFocusable:r,legacyTrapFocus:n}=e,o=LT();o&&(KFe(o),VFe(o));const i=Ks("modal-",e.id),s=$A({restorer:{type:fh.RestorerTypes.Source},...t&&{modalizer:{id:i,isOthersAccessible:!t,isAlwaysAccessible:r,isTrapped:n&&t}}}),a=$A({restorer:{type:fh.RestorerTypes.Target}});return{modalAttributes:s,triggerAttributes:a}},De={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",28:"#474747",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",48:"#7a7a7a",50:"#808080",52:"#858585",54:"#8a8a8a",56:"#8f8f8f",58:"#949494",60:"#999999",62:"#9e9e9e",64:"#a3a3a3",66:"#a8a8a8",68:"#adadad",70:"#b3b3b3",72:"#b8b8b8",74:"#bdbdbd",76:"#c2c2c2",78:"#c7c7c7",80:"#cccccc",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},Ci={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",30:"rgba(255, 255, 255, 0.3)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)",90:"rgba(255, 255, 255, 0.9)"},tl={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)",60:"rgba(0, 0, 0, 0.6)",70:"rgba(0, 0, 0, 0.7)",80:"rgba(0, 0, 0, 0.8)",90:"rgba(0, 0, 0, 0.9)"},ZFe={5:"rgba(26, 26, 26, 0.05)",10:"rgba(26, 26, 26, 0.1)",20:"rgba(26, 26, 26, 0.2)",30:"rgba(26, 26, 26, 0.3)",40:"rgba(26, 26, 26, 0.4)",50:"rgba(26, 26, 26, 0.5)",60:"rgba(26, 26, 26, 0.6)",70:"rgba(26, 26, 26, 0.7)",80:"rgba(26, 26, 26, 0.8)",90:"rgba(26, 26, 26, 0.9)"},JFe={5:"rgba(31, 31, 31, 0.05)",10:"rgba(31, 31, 31, 0.1)",20:"rgba(31, 31, 31, 0.2)",30:"rgba(31, 31, 31, 0.3)",40:"rgba(31, 31, 31, 0.4)",50:"rgba(31, 31, 31, 0.5)",60:"rgba(31, 31, 31, 0.6)",70:"rgba(31, 31, 31, 0.7)",80:"rgba(31, 31, 31, 0.8)",90:"rgba(31, 31, 31, 0.9)"},RG={5:"rgba(36, 36, 36, 0.05)",10:"rgba(36, 36, 36, 0.1)",20:"rgba(36, 36, 36, 0.2)",30:"rgba(36, 36, 36, 0.3)",40:"rgba(36, 36, 36, 0.4)",50:"rgba(36, 36, 36, 0.5)",60:"rgba(36, 36, 36, 0.6)",70:"rgba(36, 36, 36, 0.7)",80:"rgba(36, 36, 36, 0.8)",90:"rgba(36, 36, 36, 0.9)"},Zt="#ffffff",CB="#000000",eBe={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},_le={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},tBe={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},rBe={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},nBe={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},oBe={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},iBe={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},sBe={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},aBe={primary:"#fde300",shade10:"#e4cc00",shade20:"#c0ad00",shade30:"#817400",shade40:"#4c4400",shade50:"#282400",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},lBe={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},uBe={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},cBe={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},fBe={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},dBe={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},hBe={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},Ele={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},pBe={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},gBe={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},vBe={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},mBe={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},yBe={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},bBe={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},_Be={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},EBe={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},SBe={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},wBe={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},kBe={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},ABe={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},xBe={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},TBe={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},IBe={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},CBe={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},NBe={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},RBe={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},OBe={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},DBe={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},Lr={red:tBe,green:Ele,darkOrange:rBe,yellow:aBe,berry:ABe,lightGreen:hBe,marigold:sBe},Zd={darkRed:eBe,cranberry:_le,pumpkin:nBe,peach:iBe,gold:lBe,brass:uBe,brown:cBe,forest:fBe,seafoam:dBe,darkGreen:pBe,lightTeal:gBe,teal:vBe,steel:mBe,blue:yBe,royalBlue:bBe,cornflower:_Be,navy:EBe,lavender:SBe,purple:wBe,grape:kBe,lilac:xBe,pink:TBe,magenta:IBe,plum:CBe,beige:NBe,mink:RBe,platinum:OBe,anchor:DBe},en={cranberry:_le,green:Ele,orange:oBe},Sle=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],wle=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],xc={success:"green",warning:"orange",danger:"cranberry"},J_=Sle.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background1`]:Lr[t].tint60,[`colorPalette${r}Background2`]:Lr[t].tint40,[`colorPalette${r}Background3`]:Lr[t].primary,[`colorPalette${r}Foreground1`]:Lr[t].shade10,[`colorPalette${r}Foreground2`]:Lr[t].shade30,[`colorPalette${r}Foreground3`]:Lr[t].primary,[`colorPalette${r}BorderActive`]:Lr[t].primary,[`colorPalette${r}Border1`]:Lr[t].tint40,[`colorPalette${r}Border2`]:Lr[t].primary};return Object.assign(e,n)},{});J_.colorPaletteYellowForeground1=Lr.yellow.shade30;J_.colorPaletteRedForegroundInverted=Lr.red.tint20;J_.colorPaletteGreenForegroundInverted=Lr.green.tint20;J_.colorPaletteYellowForegroundInverted=Lr.yellow.tint40;const FBe=wle.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background2`]:Zd[t].tint40,[`colorPalette${r}Foreground2`]:Zd[t].shade30,[`colorPalette${r}BorderActive`]:Zd[t].primary};return Object.assign(e,n)},{}),BBe={...J_,...FBe},zT=Object.entries(xc).reduce((e,[t,r])=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorStatus${n}Background1`]:en[r].tint60,[`colorStatus${n}Background2`]:en[r].tint40,[`colorStatus${n}Background3`]:en[r].primary,[`colorStatus${n}Foreground1`]:en[r].shade10,[`colorStatus${n}Foreground2`]:en[r].shade30,[`colorStatus${n}Foreground3`]:en[r].primary,[`colorStatus${n}ForegroundInverted`]:en[r].tint30,[`colorStatus${n}BorderActive`]:en[r].primary,[`colorStatus${n}Border1`]:en[r].tint40,[`colorStatus${n}Border2`]:en[r].primary};return Object.assign(e,o)},{});zT.colorStatusWarningForeground1=en[xc.warning].shade20;zT.colorStatusWarningForeground3=en[xc.warning].shade20;zT.colorStatusWarningBorder2=en[xc.warning].shade20;const MBe=e=>({colorNeutralForeground1:De[14],colorNeutralForeground1Hover:De[14],colorNeutralForeground1Pressed:De[14],colorNeutralForeground1Selected:De[14],colorNeutralForeground2:De[26],colorNeutralForeground2Hover:De[14],colorNeutralForeground2Pressed:De[14],colorNeutralForeground2Selected:De[14],colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:De[38],colorNeutralForeground3Hover:De[26],colorNeutralForeground3Pressed:De[26],colorNeutralForeground3Selected:De[26],colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:De[44],colorNeutralForegroundDisabled:De[74],colorNeutralForegroundInvertedDisabled:Ci[40],colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:De[26],colorNeutralForeground2LinkHover:De[14],colorNeutralForeground2LinkPressed:De[14],colorNeutralForeground2LinkSelected:De[14],colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:De[14],colorNeutralForegroundStaticInverted:Zt,colorNeutralForegroundInverted:Zt,colorNeutralForegroundInvertedHover:Zt,colorNeutralForegroundInvertedPressed:Zt,colorNeutralForegroundInvertedSelected:Zt,colorNeutralForegroundInverted2:Zt,colorNeutralForegroundOnBrand:Zt,colorNeutralForegroundInvertedLink:Zt,colorNeutralForegroundInvertedLinkHover:Zt,colorNeutralForegroundInvertedLinkPressed:Zt,colorNeutralForegroundInvertedLinkSelected:Zt,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:Zt,colorNeutralBackground1Hover:De[96],colorNeutralBackground1Pressed:De[88],colorNeutralBackground1Selected:De[92],colorNeutralBackground2:De[98],colorNeutralBackground2Hover:De[94],colorNeutralBackground2Pressed:De[86],colorNeutralBackground2Selected:De[90],colorNeutralBackground3:De[96],colorNeutralBackground3Hover:De[92],colorNeutralBackground3Pressed:De[84],colorNeutralBackground3Selected:De[88],colorNeutralBackground4:De[94],colorNeutralBackground4Hover:De[98],colorNeutralBackground4Pressed:De[96],colorNeutralBackground4Selected:Zt,colorNeutralBackground5:De[92],colorNeutralBackground5Hover:De[96],colorNeutralBackground5Pressed:De[94],colorNeutralBackground5Selected:De[98],colorNeutralBackground6:De[90],colorNeutralBackgroundInverted:De[16],colorNeutralBackgroundStatic:De[20],colorNeutralBackgroundAlpha:Ci[50],colorNeutralBackgroundAlpha2:Ci[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:De[96],colorSubtleBackgroundPressed:De[88],colorSubtleBackgroundSelected:De[92],colorSubtleBackgroundLightAlphaHover:Ci[70],colorSubtleBackgroundLightAlphaPressed:Ci[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:tl[10],colorSubtleBackgroundInvertedPressed:tl[30],colorSubtleBackgroundInvertedSelected:tl[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:De[94],colorNeutralBackgroundInvertedDisabled:Ci[10],colorNeutralStencil1:De[90],colorNeutralStencil2:De[98],colorNeutralStencil1Alpha:tl[10],colorNeutralStencil2Alpha:tl[5],colorBackgroundOverlay:tl[40],colorScrollbarOverlay:tl[50],colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackgroundInverted:Zt,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralStrokeAccessible:De[38],colorNeutralStrokeAccessibleHover:De[34],colorNeutralStrokeAccessiblePressed:De[30],colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:De[82],colorNeutralStroke1Hover:De[78],colorNeutralStroke1Pressed:De[70],colorNeutralStroke1Selected:De[74],colorNeutralStroke2:De[88],colorNeutralStroke3:De[94],colorNeutralStrokeSubtle:De[88],colorNeutralStrokeOnBrand:Zt,colorNeutralStrokeOnBrand2:Zt,colorNeutralStrokeOnBrand2Hover:Zt,colorNeutralStrokeOnBrand2Pressed:Zt,colorNeutralStrokeOnBrand2Selected:Zt,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:De[88],colorNeutralStrokeInvertedDisabled:Ci[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:tl[5],colorNeutralStrokeAlpha2:Ci[20],colorStrokeFocus1:Zt,colorStrokeFocus2:CB,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),kle={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},Ale={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},xle={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},Tle={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},Ile={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},Cle={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},Nle={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},Jn={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},Rle={spacingHorizontalNone:Jn.none,spacingHorizontalXXS:Jn.xxs,spacingHorizontalXS:Jn.xs,spacingHorizontalSNudge:Jn.sNudge,spacingHorizontalS:Jn.s,spacingHorizontalMNudge:Jn.mNudge,spacingHorizontalM:Jn.m,spacingHorizontalL:Jn.l,spacingHorizontalXL:Jn.xl,spacingHorizontalXXL:Jn.xxl,spacingHorizontalXXXL:Jn.xxxl},Ole={spacingVerticalNone:Jn.none,spacingVerticalXXS:Jn.xxs,spacingVerticalXS:Jn.xs,spacingVerticalSNudge:Jn.sNudge,spacingVerticalS:Jn.s,spacingVerticalMNudge:Jn.mNudge,spacingVerticalM:Jn.m,spacingVerticalL:Jn.l,spacingVerticalXL:Jn.xl,spacingVerticalXXL:Jn.xxl,spacingVerticalXXXL:Jn.xxxl},Dle={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},Pt={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)"};function PA(e,t,r=""){return{[`shadow2${r}`]:`0 0 2px ${e}, 0 1px 2px ${t}`,[`shadow4${r}`]:`0 0 2px ${e}, 0 2px 4px ${t}`,[`shadow8${r}`]:`0 0 2px ${e}, 0 4px 8px ${t}`,[`shadow16${r}`]:`0 0 2px ${e}, 0 8px 16px ${t}`,[`shadow28${r}`]:`0 0 8px ${e}, 0 14px 28px ${t}`,[`shadow64${r}`]:`0 0 8px ${e}, 0 32px 64px ${t}`}}const LBe=e=>{const t=MBe(e);return{...kle,...Tle,...Ile,...Nle,...Cle,...Dle,...Rle,...Ole,...xle,...Ale,...t,...BBe,...zT,...PA(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...PA(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},Fle={10:"#2b2b40",20:"#2f2f4a",30:"#333357",40:"#383966",50:"#3d3e78",60:"#444791",70:"#4f52b2",80:"#5b5fc7",90:"#7579eb",100:"#7f85f5",110:"#9299f7",120:"#aab1fa",130:"#b6bcfa",140:"#c5cbfa",150:"#dce0fa",160:"#e8ebfa"},jBe=LBe(Fle),Tc=Sle.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background1`]:Lr[t].shade40,[`colorPalette${r}Background2`]:Lr[t].shade30,[`colorPalette${r}Background3`]:Lr[t].primary,[`colorPalette${r}Foreground1`]:Lr[t].tint30,[`colorPalette${r}Foreground2`]:Lr[t].tint40,[`colorPalette${r}Foreground3`]:Lr[t].tint20,[`colorPalette${r}BorderActive`]:Lr[t].tint30,[`colorPalette${r}Border1`]:Lr[t].primary,[`colorPalette${r}Border2`]:Lr[t].tint20};return Object.assign(e,n)},{});Tc.colorPaletteRedForeground3=Lr.red.tint30;Tc.colorPaletteRedBorder2=Lr.red.tint30;Tc.colorPaletteGreenForeground3=Lr.green.tint40;Tc.colorPaletteGreenBorder2=Lr.green.tint40;Tc.colorPaletteDarkOrangeForeground3=Lr.darkOrange.tint30;Tc.colorPaletteDarkOrangeBorder2=Lr.darkOrange.tint30;Tc.colorPaletteRedForegroundInverted=Lr.red.primary;Tc.colorPaletteGreenForegroundInverted=Lr.green.primary;Tc.colorPaletteYellowForegroundInverted=Lr.yellow.shade30;const qL=wle.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background2`]:Zd[t].shade30,[`colorPalette${r}Foreground2`]:Zd[t].tint40,[`colorPalette${r}BorderActive`]:Zd[t].tint30};return Object.assign(e,n)},{});qL.colorPaletteDarkRedBackground2=Zd.darkRed.shade20;qL.colorPalettePlumBackground2=Zd.plum.shade20;const zBe={...Tc,...qL},gv=Object.entries(xc).reduce((e,[t,r])=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorStatus${n}Background1`]:en[r].shade40,[`colorStatus${n}Background2`]:en[r].shade30,[`colorStatus${n}Background3`]:en[r].primary,[`colorStatus${n}Foreground1`]:en[r].tint30,[`colorStatus${n}Foreground2`]:en[r].tint40,[`colorStatus${n}Foreground3`]:en[r].tint20,[`colorStatus${n}BorderActive`]:en[r].tint30,[`colorStatus${n}ForegroundInverted`]:en[r].shade10,[`colorStatus${n}Border1`]:en[r].primary,[`colorStatus${n}Border2`]:en[r].tint20};return Object.assign(e,o)},{});gv.colorStatusDangerForeground3=en[xc.danger].tint30;gv.colorStatusDangerBorder2=en[xc.danger].tint30;gv.colorStatusSuccessForeground3=en[xc.success].tint40;gv.colorStatusSuccessBorder2=en[xc.success].tint40;gv.colorStatusWarningForegroundInverted=en[xc.warning].shade20;const HBe=e=>({colorNeutralForeground1:Zt,colorNeutralForeground1Hover:Zt,colorNeutralForeground1Pressed:Zt,colorNeutralForeground1Selected:Zt,colorNeutralForeground2:De[84],colorNeutralForeground2Hover:Zt,colorNeutralForeground2Pressed:Zt,colorNeutralForeground2Selected:Zt,colorNeutralForeground2BrandHover:e[100],colorNeutralForeground2BrandPressed:e[90],colorNeutralForeground2BrandSelected:e[100],colorNeutralForeground3:De[68],colorNeutralForeground3Hover:De[84],colorNeutralForeground3Pressed:De[84],colorNeutralForeground3Selected:De[84],colorNeutralForeground3BrandHover:e[100],colorNeutralForeground3BrandPressed:e[90],colorNeutralForeground3BrandSelected:e[100],colorNeutralForeground4:De[60],colorNeutralForegroundDisabled:De[36],colorNeutralForegroundInvertedDisabled:Ci[40],colorBrandForegroundLink:e[100],colorBrandForegroundLinkHover:e[110],colorBrandForegroundLinkPressed:e[90],colorBrandForegroundLinkSelected:e[100],colorNeutralForeground2Link:De[84],colorNeutralForeground2LinkHover:Zt,colorNeutralForeground2LinkPressed:Zt,colorNeutralForeground2LinkSelected:Zt,colorCompoundBrandForeground1:e[100],colorCompoundBrandForeground1Hover:e[110],colorCompoundBrandForeground1Pressed:e[90],colorBrandForeground1:e[100],colorBrandForeground2:e[120],colorBrandForeground2Hover:e[130],colorBrandForeground2Pressed:e[160],colorNeutralForeground1Static:De[14],colorNeutralForegroundStaticInverted:Zt,colorNeutralForegroundInverted:De[14],colorNeutralForegroundInvertedHover:De[14],colorNeutralForegroundInvertedPressed:De[14],colorNeutralForegroundInvertedSelected:De[14],colorNeutralForegroundInverted2:De[14],colorNeutralForegroundOnBrand:Zt,colorNeutralForegroundInvertedLink:Zt,colorNeutralForegroundInvertedLinkHover:Zt,colorNeutralForegroundInvertedLinkPressed:Zt,colorNeutralForegroundInvertedLinkSelected:Zt,colorBrandForegroundInverted:e[80],colorBrandForegroundInvertedHover:e[70],colorBrandForegroundInvertedPressed:e[60],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:De[16],colorNeutralBackground1Hover:De[24],colorNeutralBackground1Pressed:De[12],colorNeutralBackground1Selected:De[22],colorNeutralBackground2:De[14],colorNeutralBackground2Hover:De[22],colorNeutralBackground2Pressed:De[10],colorNeutralBackground2Selected:De[20],colorNeutralBackground3:De[12],colorNeutralBackground3Hover:De[20],colorNeutralBackground3Pressed:De[8],colorNeutralBackground3Selected:De[18],colorNeutralBackground4:De[8],colorNeutralBackground4Hover:De[16],colorNeutralBackground4Pressed:De[4],colorNeutralBackground4Selected:De[14],colorNeutralBackground5:De[4],colorNeutralBackground5Hover:De[12],colorNeutralBackground5Pressed:CB,colorNeutralBackground5Selected:De[10],colorNeutralBackground6:De[20],colorNeutralBackgroundInverted:Zt,colorNeutralBackgroundStatic:De[24],colorNeutralBackgroundAlpha:ZFe[50],colorNeutralBackgroundAlpha2:JFe[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:De[22],colorSubtleBackgroundPressed:De[18],colorSubtleBackgroundSelected:De[20],colorSubtleBackgroundLightAlphaHover:RG[80],colorSubtleBackgroundLightAlphaPressed:RG[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:tl[10],colorSubtleBackgroundInvertedPressed:tl[30],colorSubtleBackgroundInvertedSelected:tl[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:De[8],colorNeutralBackgroundInvertedDisabled:Ci[10],colorNeutralStencil1:De[34],colorNeutralStencil2:De[20],colorNeutralStencil1Alpha:Ci[10],colorNeutralStencil2Alpha:Ci[5],colorBackgroundOverlay:tl[50],colorScrollbarOverlay:Ci[60],colorBrandBackground:e[70],colorBrandBackgroundHover:e[80],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[100],colorCompoundBrandBackgroundHover:e[110],colorCompoundBrandBackgroundPressed:e[90],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[20],colorBrandBackground2Hover:e[40],colorBrandBackground2Pressed:e[10],colorBrandBackgroundInverted:Zt,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralStrokeAccessible:De[68],colorNeutralStrokeAccessibleHover:De[74],colorNeutralStrokeAccessiblePressed:De[70],colorNeutralStrokeAccessibleSelected:e[100],colorNeutralStroke1:De[40],colorNeutralStroke1Hover:De[46],colorNeutralStroke1Pressed:De[42],colorNeutralStroke1Selected:De[44],colorNeutralStroke2:De[32],colorNeutralStroke3:De[24],colorNeutralStrokeSubtle:De[4],colorNeutralStrokeOnBrand:De[16],colorNeutralStrokeOnBrand2:Zt,colorNeutralStrokeOnBrand2Hover:Zt,colorNeutralStrokeOnBrand2Pressed:Zt,colorNeutralStrokeOnBrand2Selected:Zt,colorBrandStroke1:e[100],colorBrandStroke2:e[50],colorBrandStroke2Hover:e[50],colorBrandStroke2Pressed:e[30],colorBrandStroke2Contrast:e[50],colorCompoundBrandStroke:e[90],colorCompoundBrandStrokeHover:e[100],colorCompoundBrandStrokePressed:e[80],colorNeutralStrokeDisabled:De[26],colorNeutralStrokeInvertedDisabled:Ci[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:Ci[10],colorNeutralStrokeAlpha2:Ci[20],colorStrokeFocus1:CB,colorStrokeFocus2:Zt,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),$Be=e=>{const t=HBe(e);return{...kle,...Tle,...Ile,...Nle,...Cle,...Dle,...Rle,...Ole,...xle,...Ale,...t,...zBe,...gv,...PA(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...PA(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},PBe=$Be(Fle),Ble={root:"fui-FluentProvider"},qBe=mae({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),WBe=e=>{const t=X_(),r=qBe({dir:e.dir,renderer:t});return e.root.className=Xe(Ble.root,e.themeClassName,r.root,e.root.className),e},GBe=A.useInsertionEffect?A.useInsertionEffect:hc,KBe=(e,t)=>{if(!e)return;const r=e.createElement("style");return Object.keys(t).forEach(n=>{r.setAttribute(n,t[n])}),e.head.appendChild(r),r},VBe=(e,t)=>{const r=e.sheet;r&&(r.cssRules.length>0&&r.deleteRule(0),r.insertRule(t,0))},UBe=e=>{const{targetDocument:t,theme:r,rendererAttributes:n}=e,o=A.useRef(),i=Ks(Ble.root),s=n,a=A.useMemo(()=>gDe(`.${i}`,r),[r,i]);return YBe(t,i),GBe(()=>{const l=t==null?void 0:t.getElementById(i);return l?o.current=l:(o.current=KBe(t,{...s,id:i}),o.current&&VBe(o.current,a)),()=>{var u;(u=o.current)===null||u===void 0||u.remove()}},[i,t,a,s]),{styleTagId:i,rule:a}};function YBe(e,t){A.useState(()=>{if(!e)return;const r=e.getElementById(t);r&&e.head.append(r)})}const XBe={},QBe=(e,t)=>{const r=Fa(),n=ZBe(),o=Nae(),i=A.useContext(ML)||XBe,{applyStylesToPortals:s=!0,customStyleHooks_unstable:a,dir:l=r.dir,targetDocument:u=r.targetDocument,theme:c,overrides_unstable:f={}}=e,d=AC(n,c),h=AC(o,f),g=AC(i,a),v=X_();var y;const{styleTagId:E,rule:_}=UBe({theme:d,targetDocument:u,rendererAttributes:(y=v.styleElementAttributes)!==null&&y!==void 0?y:{}});return{applyStylesToPortals:s,customStyleHooks_unstable:g,dir:l,targetDocument:u,theme:d,overrides_unstable:h,themeClassName:E,components:{root:"div"},root:yr(_n("div",{...e,dir:l,ref:Ho(t,ble({targetDocument:u}))}),{elementType:"div"}),serverStyleProps:{cssRule:_,attributes:{...v.styleElementAttributes,id:E}}}};function AC(e,t){return e&&t?{...e,...t}:e||t}function ZBe(){return A.useContext(Aae)}function JBe(e){const{applyStylesToPortals:t,customStyleHooks_unstable:r,dir:n,root:o,targetDocument:i,theme:s,themeClassName:a,overrides_unstable:l}=e,u=A.useMemo(()=>({dir:n,targetDocument:i}),[n,i]),[c]=A.useState(()=>({})),f=A.useMemo(()=>({textDirection:n}),[n]);return{customStyleHooks_unstable:r,overrides_unstable:l,provider:u,textDirection:n,iconDirection:f,tooltip:c,theme:s,themeClassName:t?o.className:a}}const Mle=A.forwardRef((e,t)=>{const r=QBe(e,t);WBe(r);const n=JBe(r);return V3e(r,n)});Mle.displayName="FluentProvider";const e6e=e=>r=>{const n=A.useRef(r.value),o=A.useRef(0),i=A.useRef();return i.current||(i.current={value:n,version:o,listeners:[]}),hc(()=>{n.current=r.value,o.current+=1,_F.unstable_runWithPriority(_F.unstable_NormalPriority,()=>{i.current.listeners.forEach(s=>{s([o.current,r.value])})})},[r.value]),A.createElement(e,{value:i.current},r.children)},vv=e=>{const t=A.createContext({value:{current:e},version:{current:-1},listeners:[]});return t.Provider=e6e(t.Provider),delete t.Consumer,t},Yo=(e,t)=>{const r=A.useContext(e),{value:{current:n},version:{current:o},listeners:i}=r,s=t(n),[a,l]=A.useReducer((u,c)=>{if(!c)return[n,s];if(c[0]<=o)return uw(u[1],s)?u:[n,s];try{if(uw(u[0],c[1]))return u;const f=t(c[1]);return uw(u[1],f)?u:[c[1],f]}catch{}return[u[0],u[1]]},[n,s]);return uw(a[1],s)||l(void 0),hc(()=>(i.push(l),()=>{const u=i.indexOf(l);i.splice(u,1)}),[i]),a[1]};function t6e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const uw=typeof Object.is=="function"?Object.is:t6e;function WL(e){const t=A.useContext(e);return t.version?t.version.current!==-1:!1}const Lle=vv(void 0),r6e={openItems:[],collapsible:!1,multiple:!1,navigation:void 0,requestToggle(){}},{Provider:n6e}=Lle,Wb=e=>Yo(Lle,(t=r6e)=>e(t)),o6e=(e,t)=>Je(e.root,{children:Je(n6e,{value:t.accordion,children:e.root.children})}),i6e=(e,t)=>{const{openItems:r,defaultOpenItems:n,multiple:o=!1,collapsible:i=!1,onToggle:s,navigation:a}=e,[l,u]=kf({state:A.useMemo(()=>l6e(r),[r]),defaultState:()=>s6e({defaultOpenItems:n,multiple:o}),initialState:[]}),c=vle({circular:a==="circular",tabbable:!0}),f=ir(d=>{const h=a6e(d.value,l,o,i);s==null||s(d.event,{value:d.value,openItems:h}),u(h)});return{collapsible:i,multiple:o,navigation:a,openItems:l,requestToggle:f,components:{root:"div"},root:yr(_n("div",{...e,...a?c:void 0,ref:t}),{elementType:"div"})}};function s6e({defaultOpenItems:e,multiple:t}){return e!==void 0?Array.isArray(e)?t?e:[e[0]]:[e]:[]}function a6e(e,t,r,n){if(r)if(t.includes(e)){if(t.length>1||n)return t.filter(o=>o!==e)}else return[...t,e].sort();else return t[0]===e&&n?[]:[e];return t}function l6e(e){if(e!==void 0)return Array.isArray(e)?e:[e]}function u6e(e){const{navigation:t,openItems:r,requestToggle:n,multiple:o,collapsible:i}=e;return{accordion:{navigation:t,openItems:r,requestToggle:n,collapsible:i,multiple:o}}}const c6e={root:"fui-Accordion"},f6e=e=>(e.root.className=Xe(c6e.root,e.root.className),e),GL=A.forwardRef((e,t)=>{const r=i6e(e,t),n=u6e(r);return f6e(r),fn("useAccordionStyles_unstable")(r),o6e(r,n)});GL.displayName="Accordion";const d6e=(e,t)=>{const{value:r,disabled:n=!1}=e,o=Wb(a=>a.requestToggle),i=Wb(a=>a.openItems.includes(r)),s=ir(a=>o({event:a,value:r}));return{open:i,value:r,disabled:n,onHeaderClick:s,components:{root:"div"},root:yr(_n("div",{ref:t,...e}),{elementType:"div"})}};function h6e(e){const{disabled:t,open:r,value:n,onHeaderClick:o}=e;return{accordionItem:A.useMemo(()=>({disabled:t,open:r,value:n,onHeaderClick:o}),[t,r,n,o])}}const jle=A.createContext(void 0),p6e={open:!1,disabled:!1,value:void 0,onHeaderClick(){}},{Provider:g6e}=jle,zle=()=>{var e;return(e=A.useContext(jle))!==null&&e!==void 0?e:p6e},v6e=(e,t)=>Je(e.root,{children:Je(g6e,{value:t.accordionItem,children:e.root.children})}),m6e={root:"fui-AccordionItem"},y6e=e=>(e.root.className=Xe(m6e.root,e.root.className),e),Hle=A.forwardRef((e,t)=>{const r=d6e(e,t),n=h6e(r);return y6e(r),fn("useAccordionItemStyles_unstable")(r),v6e(r,n)});Hle.displayName="AccordionItem";const lg="Enter",uf=" ",b6e="Tab",OG="ArrowDown",_6e="ArrowLeft",E6e="ArrowRight",xC="ArrowUp",S6e="End",w6e="Home",k6e="PageDown",A6e="PageUp",x6e="Backspace",T6e="Delete",HT="Escape";function Gb(e,t){const{disabled:r,disabledFocusable:n=!1,["aria-disabled"]:o,onClick:i,onKeyDown:s,onKeyUp:a,...l}=t??{},u=typeof o=="string"?o==="true":o,c=r||n||u,f=ir(g=>{c?(g.preventDefault(),g.stopPropagation()):i==null||i(g)}),d=ir(g=>{if(s==null||s(g),g.isDefaultPrevented())return;const v=g.key;if(c&&(v===lg||v===uf)){g.preventDefault(),g.stopPropagation();return}if(v===uf){g.preventDefault();return}else v===lg&&(g.preventDefault(),g.currentTarget.click())}),h=ir(g=>{if(a==null||a(g),g.isDefaultPrevented())return;const v=g.key;if(c&&(v===lg||v===uf)){g.preventDefault(),g.stopPropagation();return}v===uf&&(g.preventDefault(),g.currentTarget.click())});if(e==="button"||e===void 0)return{...l,disabled:r&&!n,"aria-disabled":n?!0:u,onClick:n?void 0:f,onKeyUp:n?void 0:a,onKeyDown:n?void 0:s};{const g={role:"button",tabIndex:r&&!n?void 0:0,...l,onClick:f,onKeyUp:h,onKeyDown:d,"aria-disabled":r||n||u};return e==="a"&&c&&(g.href=void 0),g}}const I6e=(e,t)=>{const{icon:r,button:n,expandIcon:o,inline:i=!1,size:s="medium",expandIconPosition:a="start"}=e,{value:l,disabled:u,open:c}=zle(),f=Wb(y=>y.requestToggle),d=Wb(y=>!y.collapsible&&y.openItems.length===1&&c),{dir:h}=Fa();let g;a==="end"?g=c?-90:90:g=c?90:h!=="rtl"?0:180;const v=yr(n,{elementType:"button",defaultProps:{disabled:u,disabledFocusable:d,"aria-expanded":c,type:"button"}});return v.onClick=ir(y=>{if(FL(n)){var E;(E=n.onClick)===null||E===void 0||E.call(n,y)}y.defaultPrevented||f({value:l,event:y})}),{disabled:u,open:c,size:s,inline:i,expandIconPosition:a,components:{root:"div",button:"button",expandIcon:"span",icon:"div"},root:yr(_n("div",{ref:t,...e}),{elementType:"div"}),icon:tn(r,{elementType:"div"}),expandIcon:tn(o,{renderByDefault:!0,defaultProps:{children:A.createElement(I3e,{style:{transform:`rotate(${g}deg)`}}),"aria-hidden":!0},elementType:"span"}),button:Gb(v.as,v)}},C6e=A.createContext(void 0),{Provider:N6e}=C6e,R6e=(e,t)=>Je(N6e,{value:t.accordionHeader,children:Je(e.root,{children:zn(e.button,{children:[e.expandIconPosition==="start"&&e.expandIcon&&Je(e.expandIcon,{}),e.icon&&Je(e.icon,{}),e.root.children,e.expandIconPosition==="end"&&e.expandIcon&&Je(e.expandIcon,{})]})})}),cw={root:"fui-AccordionHeader",button:"fui-AccordionHeader__button",expandIcon:"fui-AccordionHeader__expandIcon",icon:"fui-AccordionHeader__icon"},O6e=bt({resetButton:{B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],Bv0vk6g:"f37px4s",fsow6f:"fgusgyc"},focusIndicator:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"frrh606",clg4pj:["f1v5zibi","fo2hd23"],hgwjuy:"ful5kiu",Bonggc9:["fo2hd23","f1v5zibi"],B1tsrr9:["f1jqcqds","ftffrms"],Dah5zi:["ftffrms","f1jqcqds"],Bkh64rk:["f2e7qr6","fsr1zz6"],qqdqy8:["fsr1zz6","f2e7qr6"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f57olzd",Bule8hv:["f4stah7","fs1por5"],Bjwuhne:"f480a47",Ghsupd:["fs1por5","f4stah7"]},root:{sj55zd:"f19n0e5",De3pzq:"f1c21dwh",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},rootDisabled:{Bcmaq0h:"fwrgwhw",sj55zd:"f1s2aq7o"},rootInline:{mc9l5x:"f14t3ns0"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],z8tnut:"f1g0x7ka",z189sj:["fw5db7e","f1uw59to"],Byoj8tv:"f1qch9an",uwmqm3:["f1ng84yb","f11gcy0p"],sshi5w:"f5pgtk9",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bceei9c:"f1k6fduh",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B7ck84d:"f1ewtqcl"},buttonSmall:{sshi5w:"f1nxs5xn",Be2twd7:"fy9rknc"},buttonLarge:{Bg96gwp:"faaz57k",Be2twd7:"fod5ikn"},buttonExtraLarge:{Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},buttonInline:{mc9l5x:"ftuwxu6"},buttonExpandIconEndNoIcon:{uwmqm3:["f1uw59to","fw5db7e"]},buttonExpandIconEnd:{z189sj:["f11gcy0p","f1ng84yb"]},buttonDisabled:{Bceei9c:"fdrzuqr"},expandIcon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},expandIconStart:{z189sj:["f1vdfbxk","f1f5gg8d"]},expandIconEnd:{Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"flqd7gy",mc9l5x:"f22iagw",Brf1p80:"f9c4gz4",uwmqm3:["f1f5gg8d","f1vdfbxk"]},icon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",z189sj:["f1vdfbxk","f1f5gg8d"],Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"}},{d:[".f1e4lqlz{box-sizing:content-box;}",".f1u2r49w{background-color:inherit;}",".f1ym3bx4{color:inherit;}",".f1mo0ibp{font-family:inherit;}",".fjoy568{font-size:inherit;}",".fytdu2e{line-height:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f37px4s{-webkit-appearance:button;}",".fgusgyc{text-align:unset;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".frrh606[data-fui-focus-visible]::after{border-top-width:2px;}",".f1v5zibi[data-fui-focus-visible]::after{border-right-width:2px;}",".fo2hd23[data-fui-focus-visible]::after{border-left-width:2px;}",".ful5kiu[data-fui-focus-visible]::after{border-bottom-width:2px;}",".f1jqcqds[data-fui-focus-visible]::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".ftffrms[data-fui-focus-visible]::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f2e7qr6[data-fui-focus-visible]::after{border-top-right-radius:var(--borderRadiusMedium);}",".fsr1zz6[data-fui-focus-visible]::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}",".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}",".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}",".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fwrgwhw{background-image:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f14t3ns0{display:inline-block;}",".f10pi13n{position:relative;}",".fly5x3f{width:100%;}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f5pgtk9{min-height:44px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1ewtqcl{box-sizing:border-box;}",".f1nxs5xn{min-height:32px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".ftuwxu6{display:inline-flex;}",".fdrzuqr{cursor:not-allowed;}",".f1l02sjl{height:100%;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".flqd7gy{flex-basis:0%;}",".f9c4gz4{justify-content:flex-end;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),D6e=e=>{const t=O6e();return e.root.className=Xe(cw.root,t.root,e.inline&&t.rootInline,e.disabled&&t.rootDisabled,e.root.className),e.button.className=Xe(cw.button,t.resetButton,t.button,t.focusIndicator,e.expandIconPosition==="end"&&!e.icon&&t.buttonExpandIconEndNoIcon,e.expandIconPosition==="end"&&t.buttonExpandIconEnd,e.inline&&t.buttonInline,e.size==="small"&&t.buttonSmall,e.size==="large"&&t.buttonLarge,e.size==="extra-large"&&t.buttonExtraLarge,e.disabled&&t.buttonDisabled,e.button.className),e.expandIcon&&(e.expandIcon.className=Xe(cw.expandIcon,t.expandIcon,e.expandIconPosition==="start"&&t.expandIconStart,e.expandIconPosition==="end"&&t.expandIconEnd,e.expandIcon.className)),e.icon&&(e.icon.className=Xe(cw.icon,t.icon,e.icon.className)),e};function F6e(e){const{disabled:t,expandIconPosition:r,open:n,size:o}=e;return{accordionHeader:A.useMemo(()=>({disabled:t,expandIconPosition:r,open:n,size:o}),[t,r,n,o])}}const $le=A.forwardRef((e,t)=>{const r=I6e(e,t),n=F6e(r);return D6e(r),fn("useAccordionHeaderStyles_unstable")(r),R6e(r,n)});$le.displayName="AccordionHeader";const B6e=(e,t)=>{const{open:r}=zle(),n=$A({focusable:{excludeFromMover:!0}}),o=Wb(i=>i.navigation);return{open:r,components:{root:"div"},root:yr(_n("div",{ref:t,...e,...o&&n}),{elementType:"div"})}},M6e=e=>e.open?Je(e.root,{children:e.root.children}):null,L6e={root:"fui-AccordionPanel"},j6e=bt({root:{B6of3ja:"f1hu3pq6",t21cq0:["fkujibs","f199hnxi"],jrapky:"f19f4twv",Frg6f3:["f199hnxi","fkujibs"]}},{d:[".f1hu3pq6{margin-top:0;}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f19f4twv{margin-bottom:0;}"]}),z6e=e=>{const t=j6e();return e.root.className=Xe(L6e.root,t.root,e.root.className),e},Ple=A.forwardRef((e,t)=>{const r=B6e(e,t);return z6e(r),fn("useAccordionPanelStyles_unstable")(r),M6e(r)});Ple.displayName="AccordionPanel";const H6e=(e,t)=>{const{shape:r="circular",size:n="medium",iconPosition:o="before",appearance:i="filled",color:s="brand"}=e;return{shape:r,size:n,iconPosition:o,appearance:i,color:s,components:{root:"div",icon:"span"},root:yr(_n("div",{ref:t,...e}),{elementType:"div"}),icon:tn(e.icon,{elementType:"span"})}},DG={root:"fui-Badge",icon:"fui-Badge__icon"},$6e=Cn("r1l7mb74","rntuq2r",[".r1l7mb74{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.r1l7mb74::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}',".rntuq2r{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.rntuq2r::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}']),P6e=bt({fontSmallToTiny:{Bahqtrf:"fk6fouc",Be2twd7:"f13mqy1h",Bhrd7zp:"fl43uef",Bg96gwp:"fcpl73t"},tiny:{a9b677:"f16dn6v3",Bqenvij:"f3mu39s",Be2twd7:"f130uwy9",Bg96gwp:"fod1mrr",Bf4jedk:"f18p0k4z",z8tnut:"f1q8r6hh",z189sj:["fio2s09","fkiw60q"],Byoj8tv:"f9yu9nh",uwmqm3:["fkiw60q","fio2s09"]},"extra-small":{a9b677:"fpd43o0",Bqenvij:"f30q22z",Be2twd7:"f1tccstq",Bg96gwp:"f1y3arg5",Bf4jedk:"f18p0k4z",z8tnut:"f1q8r6hh",z189sj:["fio2s09","fkiw60q"],Byoj8tv:"f9yu9nh",uwmqm3:["fkiw60q","fio2s09"]},small:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",z8tnut:"f1g0x7ka",z189sj:["fps1v9c","f17ae1jz"],Byoj8tv:"f1qch9an",uwmqm3:["f17ae1jz","fps1v9c"]},medium:{},large:{a9b677:"fq4mcun",Bqenvij:"frvgh55",z8tnut:"f1g0x7ka",z189sj:["f17a92cs","f1pe0i86"],Byoj8tv:"f1qch9an",uwmqm3:["f1pe0i86","f17a92cs"]},"extra-large":{a9b677:"f1szoe96",Bqenvij:"f1d2rq10",z8tnut:"f1g0x7ka",z189sj:["fqznh8f","f1xile11"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},rounded:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},roundedSmallToTiny:{Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"]},circular:{},borderGhost:{ap17g6:"f10ludwy"},filled:{},"filled-brand":{De3pzq:"ffp7eso",sj55zd:"f1phragk"},"filled-danger":{De3pzq:"fdl5y0r",sj55zd:"f1phragk"},"filled-important":{De3pzq:"f1c73kur",sj55zd:"fr0bkrk"},"filled-informative":{De3pzq:"f3vzo32",sj55zd:"f11d4kpn"},"filled-severe":{De3pzq:"f1s438gw",sj55zd:"f1phragk"},"filled-subtle":{De3pzq:"fxugw4r",sj55zd:"f19n0e5"},"filled-success":{De3pzq:"flxk52p",sj55zd:"f1phragk"},"filled-warning":{De3pzq:"ffq97bm",sj55zd:"ff5vbop"},ghost:{},"ghost-brand":{sj55zd:"f16muhyy"},"ghost-danger":{sj55zd:"f1whyuy6"},"ghost-important":{sj55zd:"f19n0e5"},"ghost-informative":{sj55zd:"f11d4kpn"},"ghost-severe":{sj55zd:"f1l8vj45"},"ghost-subtle":{sj55zd:"fonrgv7"},"ghost-success":{sj55zd:"f1m7fhi8"},"ghost-warning":{sj55zd:"fpti2h4"},outline:{g2u3we:"f23ftbb",h3c5rm:["f1gkuv52","f1p1bl80"],B9xav0g:"fioka3i",zhjwy3:["f1p1bl80","f1gkuv52"]},"outline-brand":{sj55zd:"f16muhyy"},"outline-danger":{sj55zd:"f1whyuy6",g2u3we:"fyqpifd",h3c5rm:["f3ukxca","f1k7dugc"],B9xav0g:"f1njxb2b",zhjwy3:["f1k7dugc","f3ukxca"]},"outline-important":{sj55zd:"f11d4kpn",g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"]},"outline-informative":{sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"outline-severe":{sj55zd:"f1l8vj45"},"outline-subtle":{sj55zd:"fonrgv7"},"outline-success":{sj55zd:"f1m7fhi8",g2u3we:"f1mmhl11",h3c5rm:["f1tjpp2f","f1ocn5n7"],B9xav0g:"f1gjv25d",zhjwy3:["f1ocn5n7","f1tjpp2f"]},"outline-warning":{sj55zd:"fpti2h4"},tint:{},"tint-brand":{De3pzq:"f16xkysk",sj55zd:"faj9fo0",g2u3we:"f161y7kd",h3c5rm:["f1c8dzaj","f1sl6hi9"],B9xav0g:"f1619yhw",zhjwy3:["f1sl6hi9","f1c8dzaj"]},"tint-danger":{De3pzq:"ff0poqj",sj55zd:"f1hcrxcs",g2u3we:"f1oqjm8o",h3c5rm:["fkgrb8g","frb5wm0"],B9xav0g:"f1iai1ph",zhjwy3:["frb5wm0","fkgrb8g"]},"tint-important":{De3pzq:"f945g0u",sj55zd:"fr0bkrk",g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"tint-informative":{De3pzq:"f1ctqxl6",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-severe":{De3pzq:"f1xzsg4",sj55zd:"f1k5f75o",g2u3we:"fxy9dsj",h3c5rm:["f54u6j2","fcm23ze"],B9xav0g:"f4vf0uq",zhjwy3:["fcm23ze","f54u6j2"]},"tint-subtle":{De3pzq:"fxugw4r",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-success":{De3pzq:"f2vsrz6",sj55zd:"ffmvakt",g2u3we:"fdmic9h",h3c5rm:["f196y6m","fetptd8"],B9xav0g:"f1pev5xq",zhjwy3:["fetptd8","f196y6m"]},"tint-warning":{De3pzq:"f10s6hli",sj55zd:"f42v8de",g2u3we:"fn9i3n",h3c5rm:["f1aw8cx4","f51if14"],B9xav0g:"fvq8iai",zhjwy3:["f51if14","f1aw8cx4"]}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f130uwy9{font-size:4px;}",".fod1mrr{line-height:4px;}",".f18p0k4z{min-width:unset;}",".f1q8r6hh{padding-top:unset;}",".fio2s09{padding-right:unset;}",".fkiw60q{padding-left:unset;}",".f9yu9nh{padding-bottom:unset;}",".fpd43o0{width:10px;}",".f30q22z{height:10px;}",".f1tccstq{font-size:6px;}",".f1y3arg5{line-height:6px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f1g0x7ka{padding-top:0;}",".fps1v9c{padding-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f17ae1jz{padding-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1qch9an{padding-bottom:0;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f17a92cs{padding-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1pe0i86{padding-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f10ludwy::after{display:none;}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}",".f1c73kur{background-color:var(--colorNeutralForeground1);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f3vzo32{background-color:var(--colorNeutralBackground5);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".flxk52p{background-color:var(--colorPaletteGreenBackground3);}",".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}",".ff5vbop{color:var(--colorNeutralForeground1Static);}",".f16muhyy{color:var(--colorBrandForeground1);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",".fpti2h4{color:var(--colorPaletteYellowForeground2);}",".f23ftbb{border-top-color:currentColor;}",".f1gkuv52{border-right-color:currentColor;}",".f1p1bl80{border-left-color:currentColor;}",".fioka3i{border-bottom-color:currentColor;}",".fyqpifd{border-top-color:var(--colorPaletteRedBorder2);}",".f3ukxca{border-right-color:var(--colorPaletteRedBorder2);}",".f1k7dugc{border-left-color:var(--colorPaletteRedBorder2);}",".f1njxb2b{border-bottom-color:var(--colorPaletteRedBorder2);}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f68mrw8{border-top-color:var(--colorNeutralStroke2);}",".f7pw515{border-right-color:var(--colorNeutralStroke2);}",".fw35ms5{border-left-color:var(--colorNeutralStroke2);}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",".f1mmhl11{border-top-color:var(--colorPaletteGreenBorder2);}",".f1tjpp2f{border-right-color:var(--colorPaletteGreenBorder2);}",".f1ocn5n7{border-left-color:var(--colorPaletteGreenBorder2);}",".f1gjv25d{border-bottom-color:var(--colorPaletteGreenBorder2);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f161y7kd{border-top-color:var(--colorBrandStroke2);}",".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}",".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}",".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}",".ff0poqj{background-color:var(--colorPaletteRedBackground1);}",".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1oqjm8o{border-top-color:var(--colorPaletteRedBorder1);}",".fkgrb8g{border-right-color:var(--colorPaletteRedBorder1);}",".frb5wm0{border-left-color:var(--colorPaletteRedBorder1);}",".f1iai1ph{border-bottom-color:var(--colorPaletteRedBorder1);}",".f945g0u{background-color:var(--colorNeutralForeground3);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f1ctqxl6{background-color:var(--colorNeutralBackground4);}",".f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".fxy9dsj{border-top-color:var(--colorPaletteDarkOrangeBorder1);}",".f54u6j2{border-right-color:var(--colorPaletteDarkOrangeBorder1);}",".fcm23ze{border-left-color:var(--colorPaletteDarkOrangeBorder1);}",".f4vf0uq{border-bottom-color:var(--colorPaletteDarkOrangeBorder1);}",".f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}",".fdmic9h{border-top-color:var(--colorPaletteGreenBorder1);}",".f196y6m{border-right-color:var(--colorPaletteGreenBorder1);}",".fetptd8{border-left-color:var(--colorPaletteGreenBorder1);}",".f1pev5xq{border-bottom-color:var(--colorPaletteGreenBorder1);}",".f10s6hli{background-color:var(--colorPaletteYellowBackground1);}",".f42v8de{color:var(--colorPaletteYellowForeground1);}",".fn9i3n{border-top-color:var(--colorPaletteYellowBorder1);}",".f1aw8cx4{border-right-color:var(--colorPaletteYellowBorder1);}",".f51if14{border-left-color:var(--colorPaletteYellowBorder1);}",".fvq8iai{border-bottom-color:var(--colorPaletteYellowBorder1);}"]}),q6e=Cn("rttl5z0",null,[".rttl5z0{display:flex;line-height:1;margin:0 calc(-1 * var(--spacingHorizontalXXS));font-size:12px;}"]),W6e=bt({beforeText:{t21cq0:["f1t8l4o1","f11juvx6"]},afterText:{Frg6f3:["f11juvx6","f1t8l4o1"]},beforeTextXL:{t21cq0:["f1rs9grm","f1kwmkpi"]},afterTextXL:{Frg6f3:["f1kwmkpi","f1rs9grm"]},tiny:{Be2twd7:"f1tccstq"},"extra-small":{Be2twd7:"fnmn6fi"},small:{Be2twd7:"f1ugzwwg"},medium:{},large:{Be2twd7:"f4ybsrx"},"extra-large":{Be2twd7:"fe5j1ua"}},{d:[".f1t8l4o1{margin-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f11juvx6{margin-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1rs9grm{margin-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1kwmkpi{margin-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1tccstq{font-size:6px;}",".fnmn6fi{font-size:10px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}"]}),G6e=e=>{const t=$6e(),r=P6e(),n=e.size==="small"||e.size==="extra-small"||e.size==="tiny";e.root.className=Xe(DG.root,t,n&&r.fontSmallToTiny,r[e.size],r[e.shape],e.shape==="rounded"&&n&&r.roundedSmallToTiny,e.appearance==="ghost"&&r.borderGhost,r[e.appearance],r[`${e.appearance}-${e.color}`],e.root.className);const o=q6e(),i=W6e();if(e.icon){let s;e.root.children&&(e.size==="extra-large"?s=e.iconPosition==="after"?i.afterTextXL:i.beforeTextXL:s=e.iconPosition==="after"?i.afterText:i.beforeText),e.icon.className=Xe(DG.icon,o,s,i[e.size],e.icon.className)}return e},K6e=e=>zn(e.root,{children:[e.iconPosition==="before"&&e.icon&&Je(e.icon,{}),e.root.children,e.iconPosition==="after"&&e.icon&&Je(e.icon,{})]}),KL=A.forwardRef((e,t)=>{const r=H6e(e,t);return G6e(r),fn("useBadgeStyles_unstable")(r),K6e(r)});KL.displayName="Badge";const V6e=A.createContext(void 0),U6e=V6e.Provider;function Y6e(e){const t=e.clientX,r=e.clientY,n=t+1,o=r+1;function i(){return{left:t,top:r,right:n,bottom:o,x:t,y:r,height:1,width:1}}return{getBoundingClientRect:i}}const FG="data-popper-is-intersecting",BG="data-popper-escaped",MG="data-popper-reference-hidden",X6e="data-popper-placement",Q6e=["top","right","bottom","left"],Yh=Math.min,il=Math.max,qA=Math.round,d1=e=>({x:e,y:e}),Z6e={left:"right",right:"left",bottom:"top",top:"bottom"},J6e={start:"end",end:"start"};function NB(e,t,r){return il(e,Yh(t,r))}function Tf(e,t){return typeof e=="function"?e(t):e}function If(e){return e.split("-")[0]}function mv(e){return e.split("-")[1]}function VL(e){return e==="x"?"y":"x"}function UL(e){return e==="y"?"height":"width"}function yv(e){return["top","bottom"].includes(If(e))?"y":"x"}function YL(e){return VL(yv(e))}function eMe(e,t,r){r===void 0&&(r=!1);const n=mv(e),o=YL(e),i=UL(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=WA(s)),[s,WA(s)]}function tMe(e){const t=WA(e);return[RB(e),t,RB(t)]}function RB(e){return e.replace(/start|end/g,t=>J6e[t])}function rMe(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:s;default:return[]}}function nMe(e,t,r,n){const o=mv(e);let i=rMe(If(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(RB)))),i}function WA(e){return e.replace(/left|right|bottom|top/g,t=>Z6e[t])}function oMe(e){return{top:0,right:0,bottom:0,left:0,...e}}function qle(e){return typeof e!="number"?oMe(e):{top:e,right:e,bottom:e,left:e}}function GA(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function LG(e,t,r){let{reference:n,floating:o}=e;const i=yv(t),s=YL(t),a=UL(s),l=If(t),u=i==="y",c=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,d=n[a]/2-o[a]/2;let h;switch(l){case"top":h={x:c,y:n.y-o.height};break;case"bottom":h={x:c,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-o.width,y:f};break;default:h={x:n.x,y:n.y}}switch(mv(t)){case"start":h[s]-=d*(r&&u?-1:1);break;case"end":h[s]+=d*(r&&u?-1:1);break}return h}const iMe=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=LG(u,n,l),d=n,h={},g=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=Tf(e,t)||{};if(u==null)return{};const f=qle(c),d={x:r,y:n},h=YL(o),g=UL(h),v=await s.getDimensions(u),y=h==="y",E=y?"top":"left",_=y?"bottom":"right",S=y?"clientHeight":"clientWidth",b=i.reference[g]+i.reference[h]-d[h]-i.floating[g],k=d[h]-i.reference[h],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let x=T?T[S]:0;(!x||!await(s.isElement==null?void 0:s.isElement(T)))&&(x=a.floating[S]||i.floating[g]);const I=b/2-k/2,C=x/2-v[g]/2-1,R=Yh(f[E],C),D=Yh(f[_],C),L=R,M=x-v[g]-D,W=x/2-v[g]/2+I,z=NB(L,W,M),F=!l.arrow&&mv(o)!=null&&W!=z&&i.reference[g]/2-(WL<=0)){var C,R;const L=(((C=i.flip)==null?void 0:C.index)||0)+1,M=k[L];if(M)return{data:{index:L,overflows:I},reset:{placement:M}};let W=(R=I.filter(z=>z.overflows[0]<=0).sort((z,F)=>z.overflows[1]-F.overflows[1])[0])==null?void 0:R.placement;if(!W)switch(h){case"bestFit":{var D;const z=(D=I.map(F=>[F.placement,F.overflows.filter(P=>P>0).reduce((P,K)=>P+K,0)]).sort((F,P)=>F[1]-P[1])[0])==null?void 0:D[0];z&&(W=z);break}case"initialPlacement":W=a;break}if(o!==W)return{reset:{placement:W}}}return{}}}};function jG(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function zG(e){return Q6e.some(t=>e[t]>=0)}const HG=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Tf(e,t);switch(n){case"referenceHidden":{const i=await Lg(t,{...o,elementContext:"reference"}),s=jG(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:zG(s)}}}case"escaped":{const i=await Lg(t,{...o,altBoundary:!0}),s=jG(i,r.floating);return{data:{escapedOffsets:s,escaped:zG(s)}}}default:return{}}}}};async function lMe(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=If(r),a=mv(r),l=yv(r)==="y",u=["left","top"].includes(s)?-1:1,c=i&&l?-1:1,f=Tf(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const uMe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await lMe(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},cMe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:E,y:_}=y;return{x:E,y:_}}},...l}=Tf(e,t),u={x:r,y:n},c=await Lg(t,l),f=yv(If(o)),d=VL(f);let h=u[d],g=u[f];if(i){const y=d==="y"?"top":"left",E=d==="y"?"bottom":"right",_=h+c[y],S=h-c[E];h=NB(_,h,S)}if(s){const y=f==="y"?"top":"left",E=f==="y"?"bottom":"right",_=g+c[y],S=g-c[E];g=NB(_,g,S)}const v=a.fn({...t,[d]:h,[f]:g});return{...v,data:{x:v.x-r,y:v.y-n}}}}},fMe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Tf(e,t),c={x:r,y:n},f=yv(o),d=VL(f);let h=c[d],g=c[f];const v=Tf(a,t),y=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const S=d==="y"?"height":"width",b=i.reference[d]-i.floating[S]+y.mainAxis,k=i.reference[d]+i.reference[S]-y.mainAxis;hk&&(h=k)}if(u){var E,_;const S=d==="y"?"width":"height",b=["top","left"].includes(If(o)),k=i.reference[f]-i.floating[S]+(b&&((E=s.offset)==null?void 0:E[f])||0)+(b?0:y.crossAxis),T=i.reference[f]+i.reference[S]+(b?0:((_=s.offset)==null?void 0:_[f])||0)-(b?y.crossAxis:0);gT&&(g=T)}return{[d]:h,[f]:g}}}},dMe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:i}=t,{apply:s=()=>{},...a}=Tf(e,t),l=await Lg(t,a),u=If(r),c=mv(r),f=yv(r)==="y",{width:d,height:h}=n.floating;let g,v;u==="top"||u==="bottom"?(g=u,v=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=u,g=c==="end"?"top":"bottom");const y=h-l[g],E=d-l[v],_=!t.middlewareData.shift;let S=y,b=E;if(f){const T=d-l.left-l.right;b=c||_?Yh(E,T):T}else{const T=h-l.top-l.bottom;S=c||_?Yh(y,T):T}if(_&&!c){const T=il(l.left,0),x=il(l.right,0),I=il(l.top,0),C=il(l.bottom,0);f?b=d-2*(T!==0||x!==0?T+x:il(l.left,l.right)):S=h-2*(I!==0||C!==0?I+C:il(l.top,l.bottom))}await s({...t,availableWidth:b,availableHeight:S});const k=await o.getDimensions(i.floating);return d!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function h1(e){return Wle(e)?(e.nodeName||"").toLowerCase():"#document"}function _a(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function N1(e){var t;return(t=(Wle(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Wle(e){return e instanceof Node||e instanceof _a(e).Node}function Cf(e){return e instanceof Element||e instanceof _a(e).Element}function pc(e){return e instanceof HTMLElement||e instanceof _a(e).HTMLElement}function $G(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _a(e).ShadowRoot}function eE(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=El(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function hMe(e){return["table","td","th"].includes(h1(e))}function XL(e){const t=QL(),r=El(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function pMe(e){let t=jg(e);for(;pc(t)&&!$T(t);){if(XL(t))return t;t=jg(t)}return null}function QL(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $T(e){return["html","body","#document"].includes(h1(e))}function El(e){return _a(e).getComputedStyle(e)}function PT(e){return Cf(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function jg(e){if(h1(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$G(e)&&e.host||N1(e);return $G(t)?t.host:t}function Gle(e){const t=jg(e);return $T(t)?e.ownerDocument?e.ownerDocument.body:e.body:pc(t)&&eE(t)?t:Gle(t)}function OB(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Gle(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=_a(o);return i?t.concat(s,s.visualViewport||[],eE(o)?o:[],s.frameElement&&r?OB(s.frameElement):[]):t.concat(o,OB(o,[],r))}function Kle(e){const t=El(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=pc(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=qA(r)!==i||qA(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function Vle(e){return Cf(e)?e:e.contextElement}function ug(e){const t=Vle(e);if(!pc(t))return d1(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Kle(t);let s=(i?qA(r.width):r.width)/n,a=(i?qA(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const gMe=d1(0);function Ule(e){const t=_a(e);return!QL()||!t.visualViewport?gMe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vMe(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==_a(e)?!1:t}function Kb(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Vle(e);let s=d1(1);t&&(n?Cf(n)&&(s=ug(n)):s=ug(e));const a=vMe(i,r,n)?Ule(i):d1(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,c=o.width/s.x,f=o.height/s.y;if(i){const d=_a(i),h=n&&Cf(n)?_a(n):n;let g=d.frameElement;for(;g&&n&&h!==d;){const v=ug(g),y=g.getBoundingClientRect(),E=El(g),_=y.left+(g.clientLeft+parseFloat(E.paddingLeft))*v.x,S=y.top+(g.clientTop+parseFloat(E.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,f*=v.y,l+=_,u+=S,g=_a(g).frameElement}}return GA({width:c,height:f,x:l,y:u})}function mMe(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=pc(r),i=N1(r);if(r===i)return t;let s={scrollLeft:0,scrollTop:0},a=d1(1);const l=d1(0);if((o||!o&&n!=="fixed")&&((h1(r)!=="body"||eE(i))&&(s=PT(r)),pc(r))){const u=Kb(r);a=ug(r),l.x=u.x+r.clientLeft,l.y=u.y+r.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}}function yMe(e){return Array.from(e.getClientRects())}function Yle(e){return Kb(N1(e)).left+PT(e).scrollLeft}function bMe(e){const t=N1(e),r=PT(e),n=e.ownerDocument.body,o=il(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=il(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Yle(e);const a=-r.scrollTop;return El(n).direction==="rtl"&&(s+=il(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function _Me(e,t){const r=_a(e),n=N1(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=QL();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function EMe(e,t){const r=Kb(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=pc(e)?ug(e):d1(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=n*i.y;return{width:s,height:a,x:l,y:u}}function PG(e,t,r){let n;if(t==="viewport")n=_Me(e,r);else if(t==="document")n=bMe(N1(e));else if(Cf(t))n=EMe(t,r);else{const o=Ule(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return GA(n)}function Xle(e,t){const r=jg(e);return r===t||!Cf(r)||$T(r)?!1:El(r).position==="fixed"||Xle(r,t)}function SMe(e,t){const r=t.get(e);if(r)return r;let n=OB(e,[],!1).filter(a=>Cf(a)&&h1(a)!=="body"),o=null;const i=El(e).position==="fixed";let s=i?jg(e):e;for(;Cf(s)&&!$T(s);){const a=El(s),l=XL(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||eE(s)&&!l&&Xle(e,s))?n=n.filter(c=>c!==s):o=a,s=jg(s)}return t.set(e,n),n}function wMe(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?SMe(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((u,c)=>{const f=PG(t,c,o);return u.top=il(f.top,u.top),u.right=Yh(f.right,u.right),u.bottom=Yh(f.bottom,u.bottom),u.left=il(f.left,u.left),u},PG(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function kMe(e){return Kle(e)}function AMe(e,t,r){const n=pc(t),o=N1(t),i=r==="fixed",s=Kb(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=d1(0);if(n||!n&&!i)if((h1(t)!=="body"||eE(o))&&(a=PT(t)),n){const u=Kb(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else o&&(l.x=Yle(o));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function qG(e,t){return!pc(e)||El(e).position==="fixed"?null:t?t(e):e.offsetParent}function Qle(e,t){const r=_a(e);if(!pc(e))return r;let n=qG(e,t);for(;n&&hMe(n)&&El(n).position==="static";)n=qG(n,t);return n&&(h1(n)==="html"||h1(n)==="body"&&El(n).position==="static"&&!XL(n))?r:n||pMe(e)||r}const xMe=async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||Qle,i=this.getDimensions;return{reference:AMe(t,await o(r),n),floating:{x:0,y:0,...await i(r)}}};function TMe(e){return El(e).direction==="rtl"}const IMe={convertOffsetParentRelativeRectToViewportRelativeRect:mMe,getDocumentElement:N1,getClippingRect:wMe,getOffsetParent:Qle,getElementRects:xMe,getClientRects:yMe,getDimensions:kMe,getScale:ug,isElement:Cf,isRTL:TMe},CMe=(e,t,r)=>{const n=new Map,o={platform:IMe,...r},i={...o.platform,_c:n};return iMe(e,t,{...o,platform:i})};function Zle(e){const t=e.split("-");return{side:t[0],alignment:t[1]}}const NMe=e=>e.nodeName==="HTML"?e:e.parentNode||e.host,RMe=e=>{var t;return e.nodeType!==1?{}:((t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView).getComputedStyle(e,null)},qT=e=>{const t=e&&NMe(e);if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:r,overflowX:n,overflowY:o}=RMe(t);return/(auto|scroll|overlay)/.test(r+o+n)?t:qT(t)},OMe=e=>{var t;const r=qT(e);return r?r!==((t=r.ownerDocument)===null||t===void 0?void 0:t.body):!1};function ZL(e,t){if(t==="window")return e==null?void 0:e.ownerDocument.documentElement;if(t==="clippingParents")return"clippingAncestors";if(t==="scrollParent"){let r=qT(e);return r.nodeName==="BODY"&&(r=e==null?void 0:e.ownerDocument.documentElement),r}return t}function Jle(e,t){return typeof e=="number"||typeof e=="object"&&e!==null?TC(e,t):typeof e=="function"?r=>{const n=e(r);return TC(n,t)}:{mainAxis:t}}const TC=(e,t)=>{if(typeof e=="number")return{mainAxis:e+t};var r;return{...e,mainAxis:((r=e.mainAxis)!==null&&r!==void 0?r:0)+t}};function DMe(e,t){if(typeof e=="number")return e;const{start:r,end:n,...o}=e,i=o,s=t?"end":"start",a=t?"start":"end";return e[s]&&(i.left=e[s]),e[a]&&(i.right=e[a]),i}const FMe=e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}),BMe=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),MMe=(e,t)=>{const r=e==="above"||e==="below",n=t==="top"||t==="bottom";return r&&n||!r&&!n},eue=(e,t,r)=>{const n=MMe(t,e)?"center":e,o=t&&FMe(r)[t],i=n&&BMe()[n];return o&&i?`${o}-${i}`:o},LMe=()=>({top:"above",bottom:"below",right:"after",left:"before"}),jMe=e=>e==="above"||e==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},zMe=e=>{const{side:t,alignment:r}=Zle(e),n=LMe()[t],o=r&&jMe(n)[r];return{position:n,alignment:o}},HMe={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function WT(e){return e==null?{}:typeof e=="string"?HMe[e]:e}function IC(e,t,r){const n=A.useRef(!0),[o]=A.useState(()=>({value:e,callback:t,facade:{get current(){return o.value},set current(i){const s=o.value;if(s!==i){if(o.value=i,r&&n.current)return;o.callback(i,s)}}}}));return hc(()=>{n.current=!1},[]),o.callback=t,o.facade}function $Me(e){let t;return()=>(t||(t=new Promise(r=>{Promise.resolve().then(()=>{t=void 0,r(e())})})),t)}function PMe(e){const{arrow:t,middlewareData:r}=e;if(!r.arrow||!t)return;const{x:n,y:o}=r.arrow;Object.assign(t.style,{left:`${n}px`,top:`${o}px`})}function qMe(e){var t,r,n;const{container:o,placement:i,middlewareData:s,strategy:a,lowPPI:l,coordinates:u,useTransform:c=!0}=e;if(!o)return;o.setAttribute(X6e,i),o.removeAttribute(FG),s.intersectionObserver.intersecting&&o.setAttribute(FG,""),o.removeAttribute(BG),!((t=s.hide)===null||t===void 0)&&t.escaped&&o.setAttribute(BG,""),o.removeAttribute(MG),!((r=s.hide)===null||r===void 0)&&r.referenceHidden&&o.setAttribute(MG,"");const f=((n=o.ownerDocument.defaultView)===null||n===void 0?void 0:n.devicePixelRatio)||1,d=Math.round(u.x*f)/f,h=Math.round(u.y*f)/f;if(Object.assign(o.style,{position:a}),c){Object.assign(o.style,{transform:l?`translate(${d}px, ${h}px)`:`translate3d(${d}px, ${h}px, 0)`});return}Object.assign(o.style,{left:`${d}px`,top:`${h}px`})}const WMe=e=>{switch(e){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function GMe(){return{name:"coverTarget",fn:e=>{const{placement:t,rects:r,x:n,y:o}=e,i=Zle(t).side,s={x:n,y:o};switch(i){case"bottom":s.y-=r.reference.height;break;case"top":s.y+=r.reference.height;break;case"left":s.x+=r.reference.width;break;case"right":s.x-=r.reference.width;break}return s}}}function KMe(e){const{hasScrollableElement:t,flipBoundary:r,container:n,fallbackPositions:o=[],isRtl:i}=e,s=o.reduce((a,l)=>{const{position:u,align:c}=WT(l),f=eue(c,u,i);return f&&a.push(f),a},[]);return aMe({...t&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:ZL(n,r)},fallbackStrategy:"bestFit",...s.length&&{fallbackPlacements:s}})}function VMe(){return{name:"intersectionObserver",fn:async e=>{const t=e.rects.floating,r=await Lg(e,{altBoundary:!0}),n=r.top0,o=r.bottom0;return{data:{intersecting:n||o}}}}}const UMe=e=>({name:"resetMaxSize",fn({middlewareData:t,elements:r}){var n;if(!((n=t.resetMaxSize)===null||n===void 0)&&n.maxSizeAlreadyReset)return{};const{applyMaxWidth:o,applyMaxHeight:i}=e;return o&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),i&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function YMe(e,t){const{container:r,overflowBoundary:n}=t;return dMe({...n&&{altBoundary:!0,boundary:ZL(r,n)},apply({availableHeight:o,availableWidth:i,elements:s,rects:a}){const l=(f,d,h)=>{if(f&&(s.floating.style.setProperty("box-sizing","border-box"),s.floating.style.setProperty(`max-${d}`,`${h}px`),a.floating[d]>h)){s.floating.style.setProperty(d,`${h}px`);const g=d==="width"?"x":"y";s.floating.style.getPropertyValue(`overflow-${g}`)||s.floating.style.setProperty(`overflow-${g}`,"auto")}},{applyMaxWidth:u,applyMaxHeight:c}=e;l(u,"width",i),l(c,"height",o)}})}function XMe(e){return!e||typeof e=="number"||typeof e=="object"?e:({rects:{floating:t,reference:r},placement:n})=>{const{position:o,alignment:i}=zMe(n);return e({positionedRect:t,targetRect:r,position:o,alignment:i})}}function QMe(e){const t=XMe(e);return uMe(t)}function ZMe(e){const{hasScrollableElement:t,disableTether:r,overflowBoundary:n,container:o,overflowBoundaryPadding:i,isRtl:s}=e;return cMe({...t&&{boundary:"clippingAncestors"},...r&&{crossAxis:r==="all",limiter:fMe({crossAxis:r!=="all",mainAxis:!1})},...i&&{padding:DMe(i,s)},...n&&{altBoundary:!0,boundary:ZL(o,n)}})}const WG="--fui-match-target-size";function JMe(){return{name:"matchTargetSize",fn:async e=>{const{rects:{reference:t,floating:r},elements:{floating:n},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:o=!1}={}}}=e;if(t.width===r.width||o)return{};const{width:i}=t;return n.style.setProperty(WG,`${i}px`),n.style.width||(n.style.width=`var(${WG})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function GG(e){const t=[];let r=e;for(;r;){const n=qT(r);if(e.ownerDocument.body===n){t.push(n);break}t.push(n),r=n}return t}function e8e(e){const{container:t,target:r,arrow:n,strategy:o,middleware:i,placement:s,useTransform:a=!0}=e;let l=!1;if(!r||!t)return{updatePosition:()=>{},dispose:()=>{}};let u=!0;const c=new Set,f=t.ownerDocument.defaultView;Object.assign(t.style,{position:"fixed",left:0,top:0,margin:0});const d=()=>{l||(u&&(GG(t).forEach(v=>c.add(v)),$b(r)&&GG(r).forEach(v=>c.add(v)),c.forEach(v=>{v.addEventListener("scroll",h,{passive:!0})}),u=!1),Object.assign(t.style,{position:o}),CMe(r,t,{placement:s,middleware:i,strategy:o}).then(({x:v,y,middlewareData:E,placement:_})=>{l||(PMe({arrow:n,middlewareData:E}),qMe({container:t,middlewareData:E,placement:_,coordinates:{x:v,y},lowPPI:((f==null?void 0:f.devicePixelRatio)||1)<=1,strategy:o,useTransform:a}))}).catch(v=>{}))},h=$Me(()=>d()),g=()=>{l=!0,f&&(f.removeEventListener("scroll",h),f.removeEventListener("resize",h)),c.forEach(v=>{v.removeEventListener("scroll",h)}),c.clear()};return f&&(f.addEventListener("scroll",h,{passive:!0}),f.addEventListener("resize",h)),h(),{updatePosition:h,dispose:g}}function JL(e){const t=A.useRef(null),r=A.useRef(null),n=A.useRef(null),o=A.useRef(null),i=A.useRef(null),{enabled:s=!0}=e,a=t8e(e),l=A.useCallback(()=>{t.current&&t.current.dispose(),t.current=null;var h;const g=(h=n.current)!==null&&h!==void 0?h:r.current;s&&Q_()&&g&&o.current&&(t.current=e8e({container:o.current,target:g,arrow:i.current,...a(o.current,i.current)}))},[s,a]),u=ir(h=>{n.current=h,l()});A.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var h;return(h=t.current)===null||h===void 0?void 0:h.updatePosition()},setTarget:h=>{e.target,u(h)}}),[e.target,u]),hc(()=>{var h;u((h=e.target)!==null&&h!==void 0?h:null)},[e.target,u]),hc(()=>{l()},[l]);const c=IC(null,h=>{r.current!==h&&(r.current=h,l())}),f=IC(null,h=>{o.current!==h&&(o.current=h,l())}),d=IC(null,h=>{i.current!==h&&(i.current=h,l())});return{targetRef:c,containerRef:f,arrowRef:d}}function t8e(e){const{align:t,arrowPadding:r,autoSize:n,coverTarget:o,flipBoundary:i,offset:s,overflowBoundary:a,pinned:l,position:u,unstable_disableTether:c,positionFixed:f,strategy:d,overflowBoundaryPadding:h,fallbackPositions:g,useTransform:v,matchTargetSize:y}=e,{dir:E,targetDocument:_}=Fa(),S=E==="rtl",b=d??f?"fixed":"absolute",k=WMe(n);return A.useCallback((T,x)=>{const I=OMe(T),C=[k&&UMe(k),y&&JMe(),s&&QMe(s),o&&GMe(),!l&&KMe({container:T,flipBoundary:i,hasScrollableElement:I,isRtl:S,fallbackPositions:g}),ZMe({container:T,hasScrollableElement:I,overflowBoundary:a,disableTether:c,overflowBoundaryPadding:h,isRtl:S}),k&&YMe(k,{container:T,overflowBoundary:a}),VMe(),x&&sMe({element:x,padding:r}),HG({strategy:"referenceHidden"}),HG({strategy:"escaped"}),!1].filter(Boolean);return{placement:eue(t,u,S),middleware:C,strategy:b,useTransform:v}},[t,r,k,o,c,i,S,s,a,l,u,b,h,g,v,y,_])}const r8e=e=>{const[t,r]=A.useState(e);return[t,o=>{if(o==null){r(void 0);return}let i;o instanceof MouseEvent?i=o:i=o.nativeEvent,i instanceof MouseEvent;const s=Y6e(i);r(s)}]},e7=vv(void 0),n8e={open:!1,setOpen:()=>null,toggleOpen:()=>null,triggerRef:{current:null},contentRef:{current:null},arrowRef:{current:null},openOnContext:!1,openOnHover:!1,size:"medium",trapFocus:!1,inline:!1};e7.Provider;const ui=e=>Yo(e7,(t=n8e)=>e(t)),o8e=(e,t)=>{const r=ui(_=>_.contentRef),n=ui(_=>_.openOnHover),o=ui(_=>_.setOpen),i=ui(_=>_.mountNode),s=ui(_=>_.arrowRef),a=ui(_=>_.size),l=ui(_=>_.withArrow),u=ui(_=>_.appearance),c=ui(_=>_.trapFocus),f=ui(_=>_.inertTrapFocus),d=ui(_=>_.inline),{modalAttributes:h}=jT({trapFocus:c,legacyTrapFocus:!f,alwaysFocusable:!c}),g={inline:d,appearance:u,withArrow:l,size:a,arrowRef:s,mountNode:i,components:{root:"div"},root:yr(_n("div",{ref:Ho(t,r),role:c?"dialog":"group","aria-modal":c?!0:void 0,...h,...e}),{elementType:"div"})},{onMouseEnter:v,onMouseLeave:y,onKeyDown:E}=g.root;return g.root.onMouseEnter=_=>{n&&o(_,!0),v==null||v(_)},g.root.onMouseLeave=_=>{n&&o(_,!1),y==null||y(_)},g.root.onKeyDown=_=>{var S;_.key==="Escape"&&(!((S=r.current)===null||S===void 0)&&S.contains(_.target))&&(_.preventDefault(),o(_,!1)),E==null||E(_)},g};function i8e(e){return $b(e)?{element:e}:typeof e=="object"?e===null?{element:null}:e:{}}var tue=()=>A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,s8e=()=>!1,KG=new WeakSet;function a8e(e,t){const r=tue();A.useEffect(()=>{if(!KG.has(r)){KG.add(r),e();return}return e()},t)}var VG=new WeakSet;function l8e(e,t){return A.useMemo(()=>{const r=tue();return VG.has(r)?e():(VG.add(r),null)},t)}function u8e(e,t){var r;const n=s8e()&&!1,o=n?l8e:A.useMemo,i=n?a8e:A.useEffect,[s,a]=(r=o(()=>e(),t))!=null?r:[null,()=>null];return i(()=>a,t),s}const c8e=bt({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),UG=hb.useInsertionEffect,f8e=e=>{const{targetDocument:t,dir:r}=Fa(),n=c3e(),o=ble(),i=c8e(),s=e3e(),a=Xe(s,i.root,e.className),l=n??(t==null?void 0:t.body),u=u8e(()=>{if(l===void 0||e.disabled)return[null,()=>null];const c=l.ownerDocument.createElement("div");return l.appendChild(c),[c,()=>c.remove()]},[l]);return UG?UG(()=>{if(!u)return;const c=a.split(" ").filter(Boolean);return u.classList.add(...c),u.setAttribute("dir",r),o.current=u,()=>{u.classList.remove(...c),u.removeAttribute("dir")}},[a,r,u,o]):A.useMemo(()=>{u&&(u.className=a,u.setAttribute("dir",r),o.current=u)},[a,r,u,o]),u},d8e=e=>{const{element:t,className:r}=i8e(e.mountNode),n=A.useRef(null),o=f8e({disabled:!!t,className:r}),i=t??o,s={children:e.children,mountNode:i,virtualParentRootRef:n};return A.useEffect(()=>{if(!i)return;const a=n.current,l=i.contains(a);if(a&&!l)return wG(i,a),()=>{wG(i,void 0)}},[n,i]),s},h8e=e=>A.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&pi.createPortal(e.children,e.mountNode)),bv=e=>{const t=d8e(e);return h8e(t)};bv.displayName="Portal";const p8e=e=>{const t=zn(e.root,{children:[e.withArrow&&Je("div",{ref:e.arrowRef,className:e.arrowClassName}),e.root.children]});return e.inline?t:Je(bv,{mountNode:e.mountNode,children:t})},g8e={root:"fui-PopoverSurface"},v8e={small:6,medium:8,large:8},m8e=bt({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{z8tnut:"f1kcqot9",z189sj:["f11qrl6u","fjlbh76"],Byoj8tv:"fpe6lb7",uwmqm3:["fjlbh76","f11qrl6u"]},mediumPadding:{z8tnut:"fqag9an",z189sj:["f1gbmcue","f1rh9g5y"],Byoj8tv:"fp67ikv",uwmqm3:["f1rh9g5y","f1gbmcue"]},largePadding:{z8tnut:"fc7z3ec",z189sj:["fat0sn4","fekwl8i"],Byoj8tv:"fe2my4m",uwmqm3:["fekwl8i","fat0sn4"]},smallArrow:{a9b677:"f1ekdpwm",Bqenvij:"f83vc9z"},mediumLargeArrow:{a9b677:"f1kmc0fn",Bqenvij:"fb6lvc5"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1hg901r{box-shadow:var(--shadow16);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1kcqot9{padding-top:12px;}",".f11qrl6u{padding-right:12px;}",".fjlbh76{padding-left:12px;}",".fpe6lb7{padding-bottom:12px;}",".fqag9an{padding-top:16px;}",".f1gbmcue{padding-right:16px;}",".f1rh9g5y{padding-left:16px;}",".fp67ikv{padding-bottom:16px;}",".fc7z3ec{padding-top:20px;}",".fat0sn4{padding-right:20px;}",".fekwl8i{padding-left:20px;}",".fe2my4m{padding-bottom:20px;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",".f1kmc0fn{width:11.312px;}",".fb6lvc5{height:11.312px;}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}'],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),y8e=e=>{const t=m8e();return e.root.className=Xe(g8e.root,t.root,e.inline&&t.inline,e.size==="small"&&t.smallPadding,e.size==="medium"&&t.mediumPadding,e.size==="large"&&t.largePadding,e.appearance==="inverted"&&t.inverted,e.appearance==="brand"&&t.brand,e.root.className),e.arrowClassName=Xe(t.arrow,e.size==="small"?t.smallArrow:t.mediumLargeArrow),e},rue=A.forwardRef((e,t)=>{const r=o8e(e,t);return y8e(r),fn("usePopoverSurfaceStyles_unstable")(r),p8e(r)});rue.displayName="PopoverSurface";const b8e=4,_8e=e=>{const[t,r]=r8e(),n={size:"medium",contextTarget:t,setContextTarget:r,...e},o=A.Children.toArray(e.children);let i,s;o.length===2?(i=o[0],s=o[1]):o.length===1&&(s=o[0]);const[a,l]=E8e(n),u=A.useRef(0),c=ir((S,b)=>{if(clearTimeout(u.current),!(S instanceof Event)&&S.persist&&S.persist(),S.type==="mouseleave"){var k;u.current=setTimeout(()=>{l(S,b)},(k=e.mouseLeaveDelay)!==null&&k!==void 0?k:500)}else l(S,b)});A.useEffect(()=>()=>{clearTimeout(u.current)},[]);const f=A.useCallback(S=>{c(S,!a)},[c,a]),d=S8e(n),{targetDocument:h}=Fa();var g;d3e({contains:SG,element:h,callback:S=>c(S,!1),refs:[d.triggerRef,d.contentRef],disabled:!a,disabledFocusOnIframe:!(!((g=e.closeOnIframeFocus)!==null&&g!==void 0)||g)});const v=n.openOnContext||n.closeOnScroll;g3e({contains:SG,element:h,callback:S=>c(S,!1),refs:[d.triggerRef,d.contentRef],disabled:!a||!v});const{findFirstFocusable:y}=mle();A.useEffect(()=>{if(!e.unstable_disableAutoFocus&&a&&d.contentRef.current){var S;const b=(S=d.contentRef.current.getAttribute("tabIndex"))!==null&&S!==void 0?S:void 0,k=isNaN(b)?y(d.contentRef.current):d.contentRef.current;k==null||k.focus()}},[y,a,d.contentRef,e.unstable_disableAutoFocus]);var E,_;return{...n,...d,inertTrapFocus:(E=e.inertTrapFocus)!==null&&E!==void 0?E:e.legacyTrapFocus===void 0?!1:!e.legacyTrapFocus,popoverTrigger:i,popoverSurface:s,open:a,setOpen:c,toggleOpen:f,setContextTarget:r,contextTarget:t,inline:(_=e.inline)!==null&&_!==void 0?_:!1}};function E8e(e){const t=ir((s,a)=>{var l;return(l=e.onOpenChange)===null||l===void 0?void 0:l.call(e,s,a)}),[r,n]=kf({state:e.open,defaultState:e.defaultOpen,initialState:!1});e.open=r!==void 0?r:e.open;const o=e.setContextTarget,i=A.useCallback((s,a)=>{a&&s.type==="contextmenu"&&o(s),a||o(void 0),n(a),t==null||t(s,{open:a})},[n,t,o]);return[r,i]}function S8e(e){const t={position:"above",align:"center",arrowPadding:2*b8e,target:e.openOnContext?e.contextTarget:void 0,...WT(e.positioning)};t.coverTarget&&(e.withArrow=!1),e.withArrow&&(t.offset=Jle(t.offset,v8e[e.size]));const{targetRef:r,containerRef:n,arrowRef:o}=JL(t);return{triggerRef:r,contentRef:n,arrowRef:o}}const w8e=e=>{const{appearance:t,arrowRef:r,contentRef:n,inline:o,mountNode:i,open:s,openOnContext:a,openOnHover:l,setOpen:u,size:c,toggleOpen:f,trapFocus:d,triggerRef:h,withArrow:g,inertTrapFocus:v}=e;return A.createElement(e7.Provider,{value:{appearance:t,arrowRef:r,contentRef:n,inline:o,mountNode:i,open:s,openOnContext:a,openOnHover:l,setOpen:u,toggleOpen:f,triggerRef:h,size:c,trapFocus:d,inertTrapFocus:v,withArrow:g}},e.popoverTrigger,e.open&&e.popoverSurface)},nue=e=>{const t=_8e(e);return w8e(t)};nue.displayName="Popover";const k8e=e=>{const{children:t,disableButtonEnhancement:r=!1}=e,n=BT(t),o=ui(S=>S.open),i=ui(S=>S.setOpen),s=ui(S=>S.toggleOpen),a=ui(S=>S.triggerRef),l=ui(S=>S.openOnHover),u=ui(S=>S.openOnContext),{triggerAttributes:c}=jT(),f=S=>{u&&(S.preventDefault(),i(S,!0))},d=S=>{u||s(S)},h=S=>{S.key===HT&&o&&!S.isDefaultPrevented()&&(i(S,!1),S.preventDefault())},g=S=>{l&&i(S,!0)},v=S=>{l&&i(S,!1)},y={...c,"aria-expanded":`${o}`,...n==null?void 0:n.props,onMouseEnter:ir(un(n==null?void 0:n.props.onMouseEnter,g)),onMouseLeave:ir(un(n==null?void 0:n.props.onMouseLeave,v)),onContextMenu:ir(un(n==null?void 0:n.props.onContextMenu,f)),ref:Ho(a,n==null?void 0:n.ref)},E={...y,onClick:ir(un(n==null?void 0:n.props.onClick,d)),onKeyDown:ir(un(n==null?void 0:n.props.onKeyDown,h))},_=Gb((n==null?void 0:n.type)==="button"||(n==null?void 0:n.type)==="a"?n.type:"div",E);return{children:jL(e.children,Gb((n==null?void 0:n.type)==="button"||(n==null?void 0:n.type)==="a"?n.type:"div",u?y:r?E:_))}},A8e=e=>e.children,t7=e=>{const t=k8e(e);return A8e(t)};t7.displayName="PopoverTrigger";t7.isFluentTriggerComponent=!0;const x8e=6,T8e=4,I8e=e=>{var t,r,n,o;const i=n3e(),s=UDe(),{targetDocument:a}=Fa(),[l,u]=LL(),{appearance:c="normal",children:f,content:d,withArrow:h=!1,positioning:g="above",onVisibleChange:v,relationship:y,showDelay:E=250,hideDelay:_=250,mountNode:S}=e,[b,k]=kf({state:e.visible,initialState:!1}),T=A.useCallback((K,V)=>{u(),k(Z=>(V.visible!==Z&&(v==null||v(K,V)),V.visible))},[u,k,v]),x={withArrow:h,positioning:g,showDelay:E,hideDelay:_,relationship:y,visible:b,shouldRenderTooltip:b,appearance:c,mountNode:S,components:{content:"div"},content:yr(d,{defaultProps:{role:"tooltip"},elementType:"div"})};x.content.id=Ks("tooltip-",x.content.id);const I={enabled:x.visible,arrowPadding:2*T8e,position:"above",align:"center",offset:4,...WT(x.positioning)};x.withArrow&&(I.offset=Jle(I.offset,x8e));const{targetRef:C,containerRef:R,arrowRef:D}=JL(I);x.content.ref=Ho(x.content.ref,R),x.arrowRef=D,hc(()=>{if(b){var K;const V={hide:J=>T(void 0,{visible:!1,documentKeyboardEvent:J})};(K=i.visibleTooltip)===null||K===void 0||K.hide(),i.visibleTooltip=V;const Z=J=>{J.key===HT&&!J.defaultPrevented&&(V.hide(J),J.preventDefault())};return a==null||a.addEventListener("keydown",Z,{capture:!0}),()=>{i.visibleTooltip===V&&(i.visibleTooltip=void 0),a==null||a.removeEventListener("keydown",Z,{capture:!0})}}},[i,a,b,T]);const L=A.useRef(!1),M=A.useCallback(K=>{if(K.type==="focus"&&L.current){L.current=!1;return}const V=i.visibleTooltip?0:x.showDelay;l(()=>{T(K,{visible:!0})},V),K.persist()},[l,T,x.showDelay,i]),[W]=A.useState(()=>{const K=Z=>{var J;!((J=Z.detail)===null||J===void 0)&&J.isFocusedProgrammatically&&(L.current=!0)};let V=null;return Z=>{V==null||V.removeEventListener(Af,K),Z==null||Z.addEventListener(Af,K),V=Z}}),z=A.useCallback(K=>{let V=x.hideDelay;K.type==="blur"&&(V=0,L.current=(a==null?void 0:a.activeElement)===K.target),l(()=>{T(K,{visible:!1})},V),K.persist()},[l,T,x.hideDelay,a]);x.content.onPointerEnter=un(x.content.onPointerEnter,u),x.content.onPointerLeave=un(x.content.onPointerLeave,z),x.content.onFocus=un(x.content.onFocus,u),x.content.onBlur=un(x.content.onBlur,z);const F=BT(f),P={};return y==="label"?typeof x.content.children=="string"?P["aria-label"]=x.content.children:(P["aria-labelledby"]=x.content.id,x.shouldRenderTooltip=!0):y==="description"&&(P["aria-describedby"]=x.content.id,x.shouldRenderTooltip=!0),s&&(x.shouldRenderTooltip=!1),x.children=jL(f,{...P,...F==null?void 0:F.props,ref:Ho(F==null?void 0:F.ref,W,I.target===void 0?C:void 0),onPointerEnter:ir(un(F==null||(t=F.props)===null||t===void 0?void 0:t.onPointerEnter,M)),onPointerLeave:ir(un(F==null||(r=F.props)===null||r===void 0?void 0:r.onPointerLeave,z)),onFocus:ir(un(F==null||(n=F.props)===null||n===void 0?void 0:n.onFocus,M)),onBlur:ir(un(F==null||(o=F.props)===null||o===void 0?void 0:o.onBlur,z))}),x},C8e=e=>zn(A.Fragment,{children:[e.children,e.shouldRenderTooltip&&Je(bv,{mountNode:e.mountNode,children:zn(e.content,{children:[e.withArrow&&Je("div",{ref:e.arrowRef,className:e.arrowClassName}),e.content.children]})})]}),N8e={content:"fui-Tooltip__content"},R8e=bt({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],z8tnut:"f10ra9hq",z189sj:["fd9xhir","f1jlaasf"],Byoj8tv:"f1d7kygh",uwmqm3:["f1jlaasf","fd9xhir"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",a9b677:"f1ekdpwm",Bqenvij:"f83vc9z",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f10ra9hq{padding-top:4px;}",".fd9xhir{padding-right:11px;}",".f1jlaasf{padding-left:11px;}",".f1d7kygh{padding-bottom:6px;}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}']}),O8e=e=>{const t=R8e();return e.content.className=Xe(N8e.content,t.root,e.appearance==="inverted"&&t.inverted,e.visible&&t.visible,e.content.className),e.arrowClassName=t.arrow,e},ga=e=>{const t=I8e(e);return O8e(t),fn("useTooltipStyles_unstable")(t),C8e(t)};ga.displayName="Tooltip";ga.isFluentTriggerComponent=!0;const D8e=e=>{const{iconOnly:t,iconPosition:r}=e;return zn(e.root,{children:[r!=="after"&&e.icon&&Je(e.icon,{}),!t&&e.root.children,r==="after"&&e.icon&&Je(e.icon,{})]})},oue=A.createContext(void 0),F8e={},YG=oue.Provider,B8e=()=>{var e;return(e=A.useContext(oue))!==null&&e!==void 0?e:F8e},M8e=(e,t)=>{const{size:r}=B8e(),{appearance:n="secondary",as:o="button",disabled:i=!1,disabledFocusable:s=!1,icon:a,iconPosition:l="before",shape:u="rounded",size:c=r??"medium"}=e,f=tn(a,{elementType:"span"});return{appearance:n,disabled:i,disabledFocusable:s,iconPosition:l,shape:u,size:c,iconOnly:!!(f!=null&&f.children&&!e.children),components:{root:"button",icon:"span"},root:yr(_n(o,Gb(e.as,e)),{elementType:"button",defaultProps:{ref:t,type:"button"}}),icon:f}},XG={root:"fui-Button",icon:"fui-Button__icon"},L8e=Cn("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),j8e=Cn("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),z8e=bt({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},small:{Bf4jedk:"fh7ncta",z8tnut:"f1khb0e9",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",z8tnut:"fp9bwmr",z189sj:["fjodcmx","fhx4nu"],Byoj8tv:"f150uoa4",uwmqm3:["fhx4nu","fjodcmx"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fh7ncta{min-width:64px;}",".f1khb0e9{padding-top:3px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1jnq6q7{padding-bottom:3px;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",".fp9bwmr{padding-top:8px;}",".fjodcmx{padding-right:var(--spacingHorizontalL);}",".fhx4nu{padding-left:var(--spacingHorizontalL);}",".f150uoa4{padding-bottom:8px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),H8e=bt({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),$8e=bt({circular:{kdpuga:["fanj13w","f1gou5sz"],Bw81rd7:["f1gou5sz","fanj13w"],B6xbmo0:["fulf6x3","foeb2x"],dm238s:["foeb2x","fulf6x3"]},rounded:{},square:{kdpuga:["f1ndz5i7","f1co4qro"],Bw81rd7:["f1co4qro","f1ndz5i7"],B6xbmo0:["f146y5a9","f1k2ftg"],dm238s:["f1k2ftg","f146y5a9"]},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{kdpuga:["fg3gtdo","fwii5mg"],Bw81rd7:["fwii5mg","fg3gtdo"],B6xbmo0:["f1palphq","f12nxie7"],dm238s:["f12nxie7","f1palphq"]},medium:{},large:{kdpuga:["ft3lys4","f1la4x2g"],Bw81rd7:["f1la4x2g","ft3lys4"],B6xbmo0:["f156y0zm","fakimq4"],dm238s:["fakimq4","f156y0zm"]}},{d:[".fanj13w[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1gou5sz[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);}",".fulf6x3[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusCircular);}",".foeb2x[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusCircular);}",".f1ndz5i7[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusNone);}",".f1co4qro[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusNone);}",".f146y5a9[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusNone);}",".f1k2ftg[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusNone);}",".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",".fg3gtdo[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusSmall);}",".fwii5mg[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1palphq[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusSmall);}",".f12nxie7[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusSmall);}",".ft3lys4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusLarge);}",".f1la4x2g[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusLarge);}",".f156y0zm[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusLarge);}",".fakimq4[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusLarge);}"],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),P8e=bt({small:{z8tnut:"f1sl3k7w",z189sj:["f136y8j8","f10xn8zz"],Byoj8tv:"f1brlhvm",uwmqm3:["f10xn8zz","f136y8j8"],Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{z8tnut:"f1sbtcvk",z189sj:["fwiuce9","f15vdbe4"],Byoj8tv:"fdghr9",uwmqm3:["f15vdbe4","fwiuce9"],Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{z8tnut:"f1a1bwwz",z189sj:["f18k1jr3","f1rtp3s9"],Byoj8tv:"fy7v416",uwmqm3:["f1rtp3s9","f18k1jr3"],Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[".f1sl3k7w{padding-top:1px;}",".f136y8j8{padding-right:1px;}",".f10xn8zz{padding-left:1px;}",".f1brlhvm{padding-bottom:1px;}",".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",".f1sbtcvk{padding-top:5px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".fdghr9{padding-bottom:5px;}",".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",".f1a1bwwz{padding-top:7px;}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fy7v416{padding-bottom:7px;}",".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),q8e=bt({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),W8e=e=>{const t=L8e(),r=j8e(),n=z8e(),o=H8e(),i=$8e(),s=P8e(),a=q8e(),{appearance:l,disabled:u,disabledFocusable:c,icon:f,iconOnly:d,iconPosition:h,shape:g,size:v}=e;return e.root.className=Xe(XG.root,t,l&&n[l],n[v],f&&v==="small"&&n.smallWithIcon,f&&v==="large"&&n.largeWithIcon,n[g],(u||c)&&o.base,(u||c)&&o.highContrast,l&&(u||c)&&o[l],l==="primary"&&i.primary,i[v],i[g],d&&s[v],e.root.className),e.icon&&(e.icon.className=Xe(XG.icon,r,!!e.root.children&&a[h],a[v],e.icon.className)),e},Tn=A.forwardRef((e,t)=>{const r=M8e(e,t);return W8e(r),fn("useButtonStyles_unstable")(r),D8e(r)});Tn.displayName="Button";const iue=A.createContext(void 0),G8e=iue.Provider,K8e=()=>A.useContext(iue),V8e=e=>{var t,r,n,o;const{generatedControlId:i,orientation:s,required:a,size:l,validationState:u}=e,c=(t=e.label)===null||t===void 0?void 0:t.htmlFor,f=(r=e.label)===null||r===void 0?void 0:r.id,d=(n=e.validationMessage)===null||n===void 0?void 0:n.id,h=(o=e.hint)===null||o===void 0?void 0:o.id;return{field:A.useMemo(()=>({generatedControlId:i,hintId:h,labelFor:c,labelId:f,orientation:s,required:a,size:l,validationMessageId:d,validationState:u}),[i,h,c,f,s,a,l,d,u])}};function r7(e,t){return sue(K8e(),e,t)}function sue(e,t,r){if(!e)return t;t={...t};const{generatedControlId:n,hintId:o,labelFor:i,labelId:s,required:a,validationMessageId:l,validationState:u}=e;if(n){var c,f;(f=(c=t).id)!==null&&f!==void 0||(c.id=n)}if(s&&(!(r!=null&&r.supportsLabelFor)||i!==t.id)){var d,h,g;(g=(d=t)[h="aria-labelledby"])!==null&&g!==void 0||(d[h]=s)}if((l||o)&&(t["aria-describedby"]=[l,o,t==null?void 0:t["aria-describedby"]].filter(Boolean).join(" ")),u==="error"){var v,y,E;(E=(v=t)[y="aria-invalid"])!==null&&E!==void 0||(v[y]=!0)}if(a)if(r!=null&&r.supportsRequired){var _,S;(S=(_=t).required)!==null&&S!==void 0||(_.required=!0)}else{var b,k,T;(T=(b=t)[k="aria-required"])!==null&&T!==void 0||(b[k]=!0)}if(r!=null&&r.supportsSize){var x,I;(I=(x=t).size)!==null&&I!==void 0||(x.size=e.size)}return t}const U8e=(e,t)=>{let{children:r}=e;return typeof r=="function"&&(r=r(sue(t.field)||{})),Je(G8e,{value:t==null?void 0:t.field,children:zn(e.root,{children:[e.label&&Je(e.label,{}),r,e.validationMessage&&zn(e.validationMessage,{children:[e.validationMessageIcon&&Je(e.validationMessageIcon,{}),e.validationMessage.children]}),e.hint&&Je(e.hint,{})]})})},Y8e=(e,t)=>{const{disabled:r=!1,required:n=!1,weight:o="regular",size:i="medium"}=e;return{disabled:r,required:tn(n===!0?"*":n||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:o,size:i,components:{root:"label",required:"span"},root:yr(_n("label",{ref:t,...e}),{elementType:"label"})}},X8e=e=>zn(e.root,{children:[e.root.children,e.required&&Je(e.required,{})]}),QG={root:"fui-Label",required:"fui-Label__required"},Q8e=bt({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o"},required:{sj55zd:"f1whyuy6",uwmqm3:["fycuoez","f8wuabp"]},requiredDisabled:{sj55zd:"f1s2aq7o"},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"]}),Z8e=e=>{const t=Q8e();return e.root.className=Xe(QG.root,t.root,e.disabled&&t.disabled,t[e.size],e.weight==="semibold"&&t.semibold,e.root.className),e.required&&(e.required.className=Xe(QG.required,t.required,e.disabled&&t.requiredDisabled,e.required.className)),e},Nf=A.forwardRef((e,t)=>{const r=Y8e(e,t);return Z8e(r),fn("useLabelStyles_unstable")(r),X8e(r)});Nf.displayName="Label";const J8e={error:A.createElement(H3e,null),warning:A.createElement(K3e,null),success:A.createElement(L3e,null),none:void 0},eLe=(e,t)=>{const{children:r,orientation:n="vertical",required:o=!1,validationState:i=e.validationMessage?"error":"none",size:s="medium"}=e,a=Ks("field-"),l=a+"__control",u=yr(_n("div",{...e,ref:t},["children"]),{elementType:"div"}),c=tn(e.label,{defaultProps:{htmlFor:l,id:a+"__label",required:o,size:s},elementType:Nf}),f=tn(e.validationMessage,{defaultProps:{id:a+"__validationMessage",role:i==="error"?"alert":void 0},elementType:"div"}),d=tn(e.hint,{defaultProps:{id:a+"__hint"},elementType:"div"}),h=J8e[i],g=tn(e.validationMessageIcon,{renderByDefault:!!h,defaultProps:{children:h},elementType:"span"});return{children:r,generatedControlId:l,orientation:n,required:o,size:s,validationState:i,components:{root:"div",label:Nf,validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:u,label:c,validationMessageIcon:g,validationMessage:f,hint:d}},Bm={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},tLe=bt({base:{mc9l5x:"f13qh94s"},horizontal:{Budl1dq:"f2wwaib",wkccdc:"f1645dqt"},horizontalNoLabel:{uwmqm3:["f15jqgz8","fggqkej"],Budl1dq:"f1c2z91y"}},{d:[".f13qh94s{display:grid;}",".f2wwaib{grid-template-columns:33% 1fr;}",".f1645dqt{grid-template-rows:auto auto auto 1fr;}",".f15jqgz8{padding-left:33%;}",".fggqkej{padding-right:33%;}",".f1c2z91y{grid-template-columns:1fr;}"]}),rLe=bt({base:{z8tnut:"fclwglc",Byoj8tv:"fywfov9"},large:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm"},vertical:{jrapky:"fyacil5"},verticalLarge:{jrapky:"f8l5zjj"},horizontal:{t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"}},{d:[".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}"]}),nLe=Cn("r5c4z9l",null,[".r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),oLe=bt({error:{sj55zd:"f1hcrxcs"},withIcon:{uwmqm3:["frawy03","fg4c52"]}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}",".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"]}),iLe=Cn("ra7h1uk","r1rh6bd7",[".ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}",".r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}"]),sLe=bt({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),aLe=e=>{const{validationState:t}=e,r=e.orientation==="horizontal",n=tLe();e.root.className=Xe(Bm.root,n.base,r&&n.horizontal,r&&!e.label&&n.horizontalNoLabel,e.root.className);const o=rLe();e.label&&(e.label.className=Xe(Bm.label,o.base,r&&o.horizontal,!r&&o.vertical,e.label.size==="large"&&o.large,!r&&e.label.size==="large"&&o.verticalLarge,e.label.className));const i=iLe(),s=sLe();e.validationMessageIcon&&(e.validationMessageIcon.className=Xe(Bm.validationMessageIcon,i,t!=="none"&&s[t],e.validationMessageIcon.className));const a=nLe(),l=oLe();e.validationMessage&&(e.validationMessage.className=Xe(Bm.validationMessage,a,t==="error"&&l.error,!!e.validationMessageIcon&&l.withIcon,e.validationMessage.className)),e.hint&&(e.hint.className=Xe(Bm.hint,a,e.hint.className))},GT=A.forwardRef((e,t)=>{const r=eLe(e,t);aLe(r);const n=V8e(r);return U8e(r,n)});GT.displayName="Field";const sl=vv({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});sl.Provider;const tf=vv({activeOption:void 0,focusVisible:!1,multiselect:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){}});tf.Provider;function aue(e){const{activeOption:t,appearance:r,focusVisible:n,open:o,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:l,setOpen:u,size:c}=e;return{combobox:{activeOption:t,appearance:r,focusVisible:n,open:o,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:l,setOpen:u,size:c}}}function lLe(e){const t=WL(sl),{activeOption:r,focusVisible:n,multiselect:o,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:l}=e,u=Yo(sl,d=>d.registerOption);return{listbox:{activeOption:r,focusVisible:n,multiselect:o,registerOption:t?u:i,selectedOptions:s,selectOption:a,setActiveOption:l}}}function Vb(e,t={}){const{open:r=!0,multiselect:n=!1}=t,o=e.key,{altKey:i,ctrlKey:s,key:a,metaKey:l}=e;return a.length===1&&o!==uf&&!i&&!s&&!l?"Type":r?o===xC&&i||o===lg||!n&&o===uf?"CloseSelect":n&&o===uf?"Select":o===HT?"Close":o===OG?"Next":o===xC?"Previous":o===w6e?"First":o===S6e?"Last":o===A6e?"PageUp":o===k6e?"PageDown":o===b6e?"Tab":"None":o===OG||o===xC||o===lg||o===uf?"Open":"None"}function lue(e,t,r){switch(e){case"Next":return Math.min(r,t+1);case"Previous":return Math.max(0,t-1);case"First":return 0;case"Last":return r;case"PageDown":return Math.min(r,t+10);case"PageUp":return Math.max(0,t-10);default:return t}}const uue=()=>{const e=A.useRef([]),t=A.useMemo(()=>({getCount:()=>e.current.length,getOptionAtIndex:u=>{var c;return(c=e.current[u])===null||c===void 0?void 0:c.option},getIndexOfId:u=>e.current.findIndex(c=>c.option.id===u),getOptionById:u=>{const c=e.current.find(f=>f.option.id===u);return c==null?void 0:c.option},getOptionsMatchingText:u=>e.current.filter(c=>u(c.option.text)).map(c=>c.option),getOptionsMatchingValue:u=>e.current.filter(c=>u(c.option.value)).map(c=>c.option)}),[]),r=A.useCallback((n,o)=>{var i;const s=e.current.findIndex(a=>!a.element||!o?!1:a.option.id===n.id?!0:a.element.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING);if(((i=e.current[s])===null||i===void 0?void 0:i.option.id)!==n.id){const a={element:o,option:n};s===-1?e.current=[...e.current,a]:e.current.splice(s,0,a)}return()=>{e.current=e.current.filter(a=>a.option.id!==n.id)}},[]);return{...t,options:e.current.map(n=>n.option),registerOption:r}};function uLe(e){const{activeOption:t}=e,r=A.useRef(null);return A.useEffect(()=>{if(r.current&&t&&Q_()){const n=r.current.querySelector(`#${t.id}`);if(!n)return;const{offsetHeight:o,offsetTop:i}=n,{offsetHeight:s,scrollTop:a}=r.current,l=ia+s,c=2;l?r.current.scrollTo(0,i-c):u&&r.current.scrollTo(0,i-s+o+c)}},[t]),r}const cue=e=>{const{defaultSelectedOptions:t,multiselect:r,onOptionSelect:n}=e,[o,i]=kf({state:e.selectedOptions,defaultState:t,initialState:[]}),s=A.useCallback((l,u)=>{if(u.disabled)return;let c=[u.value];if(r){const f=o.findIndex(d=>d===u.value);f>-1?c=[...o.slice(0,f),...o.slice(f+1)]:c=[...o,u.value]}i(c),n==null||n(l,{optionValue:u.value,optionText:u.text,selectedOptions:c})},[n,r,o,i]);return{clearSelection:l=>{i([]),n==null||n(l,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:s,selectedOptions:o}},cLe=(e,t)=>{const{multiselect:r}=e,n=uue(),{getCount:o,getOptionAtIndex:i,getIndexOfId:s}=n,{clearSelection:a,selectedOptions:l,selectOption:u}=cue(e),[c,f]=A.useState(),[d,h]=A.useState(!1),g=C=>{const R=Vb(C,{open:!0}),D=o()-1,L=c?s(c.id):-1;let M=L;switch(R){case"Select":case"CloseSelect":c&&u(C,c);break;default:M=lue(R,L,D)}M!==L&&(C.preventDefault(),f(i(M)),h(!0))},v=C=>{h(!1)},y=WL(sl),E=Yo(sl,C=>C.activeOption),_=Yo(sl,C=>C.focusVisible),S=Yo(sl,C=>C.selectedOptions),b=Yo(sl,C=>C.selectOption),k=Yo(sl,C=>C.setActiveOption),T=y?{activeOption:E,focusVisible:_,selectedOptions:S,selectOption:b,setActiveOption:k}:{activeOption:c,focusVisible:d,selectedOptions:l,selectOption:u,setActiveOption:f},x={components:{root:"div"},root:yr(_n("div",{ref:t,role:r?"menu":"listbox","aria-activedescendant":y||c==null?void 0:c.id,"aria-multiselectable":r,tabIndex:0,...e}),{elementType:"div"}),multiselect:r,clearSelection:a,...n,...T},I=uLe(x);return x.root.ref=Ho(x.root.ref,I),x.root.onKeyDown=ir(un(x.root.onKeyDown,g)),x.root.onMouseOver=ir(un(x.root.onMouseOver,v)),x},fLe=(e,t)=>Je(tf.Provider,{value:t.listbox,children:Je(e.root,{})}),dLe={root:"fui-Listbox"},hLe=bt({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",z8tnut:"f1x4af0m",z189sj:["f7x41pl","fruq291"],Byoj8tv:"fd55psn",uwmqm3:["fruq291","f7x41pl"],Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".f1x4af0m{padding-top:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fd55psn{padding-bottom:var(--spacingHorizontalXS);}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),pLe=e=>{const t=hLe();return e.root.className=Xe(dLe.root,t.root,e.root.className),e},KT=A.forwardRef((e,t)=>{const r=cLe(e,t),n=lLe(r);return pLe(r),fn("useListboxStyles_unstable")(r),fLe(r,n)});KT.displayName="Listbox";function gLe(e,t){if(e!==void 0)return e;let r="",n=!1;return A.Children.forEach(t,o=>{typeof o=="string"?r+=o:n=!0}),n&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),r}const vLe=(e,t)=>{const{children:r,disabled:n,text:o,value:i}=e,s=A.useRef(null),a=gLe(o,r),l=i??a,u=Ks("fluent-option",e.id),c=A.useMemo(()=>({id:u,disabled:n,text:a,value:l}),[u,n,a,l]),f=Yo(tf,T=>T.focusVisible),d=Yo(tf,T=>T.multiselect),h=Yo(tf,T=>T.registerOption),g=Yo(tf,T=>{const x=T.selectedOptions;return!!l&&!!x.find(I=>I===l)}),v=Yo(tf,T=>T.selectOption),y=Yo(tf,T=>T.setActiveOption),E=Yo(sl,T=>T.setOpen),_=Yo(tf,T=>{var x,I;return((x=T.activeOption)===null||x===void 0?void 0:x.id)!==void 0&&((I=T.activeOption)===null||I===void 0?void 0:I.id)===u});let S=A.createElement(x3e,null);d&&(S=g?A.createElement(M3e,null):"");const b=T=>{var x;if(n){T.preventDefault();return}y(c),d||E==null||E(T,!1),v(T,c),(x=e.onClick)===null||x===void 0||x.call(e,T)};A.useEffect(()=>{if(u&&s.current)return h(c,s.current)},[u,c,h]);const k=d?{role:"menuitemcheckbox","aria-checked":g}:{role:"option","aria-selected":g};return{components:{root:"div",checkIcon:"span"},root:yr(_n("div",{ref:Ho(t,s),"aria-disabled":n?"true":void 0,id:u,...k,...e,onClick:b}),{elementType:"div"}),checkIcon:tn(e.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:S},elementType:"span"}),active:_,disabled:n,focusVisible:f,multiselect:d,selected:g}},mLe=e=>zn(e.root,{children:[e.checkIcon&&Je(e.checkIcon,{}),e.root.children]}),ZG={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},yLe=bt({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",z8tnut:"fp2oml8",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1tdddsa",uwmqm3:["f1f5gg8d","f1vdfbxk"],qhf8xq:"f10pi13n",Jwef8y:"f1knas48",ecr2s2:"fb40n2d"},active:{Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",B80jsxd:"f1nwj1ja",t2ki1e:"ffmd2fr",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"fc9v8v1",Ihftqj:["f1mwfetb","f18mat8f"],Bcgy8vk:"f1cb6c3",Bhxzhr1:["f18mat8f","f1mwfetb"],B3778ie:["f1ibwz09","f1kp91vd"],d9w3h3:["f1kp91vd","f1ibwz09"],Bl18szs:["f1pix4dl","f13nd1z4"],B4j8arr:["f13nd1z4","f1pix4dl"],B0n5ga8:"f1qw5sz7",s924m2:["f19va7ni","f1a9v3mw"],B1q35kw:"fkkziue",Gp14am:["f1a9v3mw","f19va7ni"],bn5sak:"f1a97anr",By385i5:"f5226zp",Eqx8gd:["fa2bdqt","fei6g0k"],B1piin3:["fei6g0k","fa2bdqt"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",ecr2s2:"fgj9um3",Bbusuzp:"f1dcs8yz"},selected:{},checkIcon:{Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"],Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"],B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f10pi13n{position:relative;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1nwj1ja::after{pointer-events:none;}",".ffmd2fr::after{z-index:1;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".fc9v8v1::after{border-top-width:2px;}",".f1mwfetb::after{border-right-width:2px;}",".f18mat8f::after{border-left-width:2px;}",".f1cb6c3::after{border-bottom-width:2px;}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1pix4dl::after{border-top-right-radius:var(--borderRadiusMedium);}",".f13nd1z4::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1qw5sz7::after{border-top-color:var(--colorStrokeFocus2);}",".f19va7ni::after{border-right-color:var(--colorStrokeFocus2);}",".f1a9v3mw::after{border-left-color:var(--colorStrokeFocus2);}",".fkkziue::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1a97anr::after{top:-2px;}",".f5226zp::after{bottom:-2px;}",".fa2bdqt::after{left:-2px;}",".fei6g0k::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),bLe=e=>{const{active:t,disabled:r,focusVisible:n,multiselect:o,selected:i}=e,s=yLe();return e.root.className=Xe(ZG.root,s.root,t&&n&&s.active,r&&s.disabled,i&&s.selected,e.root.className),e.checkIcon&&(e.checkIcon.className=Xe(ZG.checkIcon,s.checkIcon,o&&s.multiselectCheck,i&&s.selectedCheck,i&&o&&s.selectedMultiselectCheck,r&&s.checkDisabled,e.checkIcon.className)),e},VT=A.forwardRef((e,t)=>{const r=vLe(e,t);return bLe(r),fn("useOptionStyles_unstable")(r),mLe(r)});VT.displayName="Option";const fue=e=>{const{appearance:t="outline",children:r,editable:n=!1,inlinePopup:o=!1,mountNode:i=void 0,multiselect:s,onOpenChange:a,size:l="medium"}=e,u=uue(),{getOptionAtIndex:c,getOptionsMatchingValue:f}=u,[d,h]=A.useState(),[g,v]=A.useState(!1),[y,E]=A.useState(!1),_=A.useRef(!1),S=cue(e),{selectedOptions:b}=S,k=YDe(),[T,x]=kf({state:e.value,initialState:void 0}),I=A.useMemo(()=>{if(T!==void 0)return T;if(k&&e.defaultValue!==void 0)return e.defaultValue;const L=f(M=>b.includes(M)).map(M=>M.text);return s?n?"":L.join(", "):L[0]},[T,n,f,s,e.defaultValue,b]),[C,R]=kf({state:e.open,defaultState:e.defaultOpen,initialState:!1}),D=A.useCallback((L,M)=>{a==null||a(L,{open:M}),R(M)},[a,R]);return A.useEffect(()=>{if(C&&!d)if(!s&&b.length>0){const L=f(M=>M===b[0]).pop();L&&h(L)}else h(c(0));else C||h(void 0)},[C,r]),{...u,...S,activeOption:d,appearance:t,focusVisible:g,hasFocus:y,ignoreNextBlur:_,inlinePopup:o,mountNode:i,open:C,setActiveOption:h,setFocusVisible:v,setHasFocus:E,setOpen:D,setValue:x,size:l,value:I,multiselect:s}};function due(e){const{positioning:t}=e,n={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",...WT(t)},{targetRef:o,containerRef:i}=JL(n);return[i,o]}function hue(e,t,r){const{state:{multiselect:n},triggerRef:o,defaultProps:i}=r,s=Ks("fluent-listbox",FL(e)?e.id:void 0),a=tn(e,{renderByDefault:!0,elementType:KT,defaultProps:{id:s,multiselect:n,tabIndex:void 0,...i}}),l=ir(un(f=>{f.preventDefault()},a==null?void 0:a.onMouseDown)),u=ir(un(f=>{var d;f.preventDefault(),(d=o.current)===null||d===void 0||d.focus()},a==null?void 0:a.onClick)),c=Ho(a==null?void 0:a.ref,t);return a&&(a.ref=c,a.onMouseDown=l,a.onClick=u),a}function pue(e,t,r){const{state:{activeOption:n,getCount:o,getIndexOfId:i,getOptionAtIndex:s,open:a,selectOption:l,setActiveOption:u,setFocusVisible:c,setOpen:f,multiselect:d},defaultProps:h,elementType:g}=r,v=yr(e,{defaultProps:{type:"text","aria-expanded":a,"aria-activedescendant":a?n==null?void 0:n.id:void 0,role:"combobox",...typeof h=="object"&&h},elementType:g}),y=A.useRef(null);return v.ref=Ho(y,v.ref,t),v.onBlur=un(E=>{f(E,!1)},v.onBlur),v.onClick=un(E=>{f(E,!a)},v.onClick),v.onKeyDown=un(E=>{const _=Vb(E,{open:a,multiselect:d}),S=o()-1,b=n?i(n.id):-1;let k=b;switch(_){case"Open":E.preventDefault(),c(!0),f(E,!0);break;case"Close":E.stopPropagation(),E.preventDefault(),f(E,!1);break;case"CloseSelect":!d&&!(n!=null&&n.disabled)&&f(E,!1);case"Select":n&&l(E,n),E.preventDefault();break;case"Tab":!d&&n&&l(E,n);break;default:k=lue(_,b,S)}k!==b&&(E.preventDefault(),u(s(k)),c(!0))},v.onKeyDown),v.onMouseOver=un(E=>{c(!1)},v.onMouseOver),v}function _Le(e,t,r){const{state:{open:n,value:o,activeOption:i,selectOption:s,setValue:a,setActiveOption:l,setFocusVisible:u,multiselect:c,selectedOptions:f,clearSelection:d,getOptionsMatchingText:h,getIndexOfId:g,setOpen:v},freeform:y,defaultProps:E}=r,_=D=>{!n&&!y&&(o&&i&&o.trim().toLowerCase()===(i==null?void 0:i.text.toLowerCase())&&s(D,i),a(void 0))},S=D=>{const L=D==null?void 0:D.trim().toLowerCase();if(!L||L.length===0)return;const W=h(F=>F.toLowerCase().indexOf(L)===0);if(W.length>1&&i){const F=g(i.id),P=W.find(K=>g(K.id)>=F);return P??W[0]}var z;return(z=W[0])!==null&&z!==void 0?z:void 0},b=D=>{const L=D.target.value;a(L);const M=S(L);l(M),u(!0),!c&&f.length===1&&(L.length<1||!M)&&d(D)},k=pue(e,t,{state:r.state,defaultProps:E,elementType:"input"});k.onChange=un(k.onChange,b),k.onBlur=un(k.onBlur,_);const[T,x]=A.useState(!1),I=A.useRef(!1),C=k.onKeyDown,R=ir(D=>{!n&&Vb(D)==="Type"&&v(D,!0),D.key===_6e||D.key===E6e?x(!0):x(!1);const L=Vb(D,{open:n,multiselect:c});if(L==="Type"?I.current=!0:(L==="Open"&&D.key!==" "||L==="Next"||L==="Previous"||L==="First"||L==="Last"||L==="PageUp"||L==="PageDown")&&(I.current=!1),y&&(I.current||!n)&&D.key===" "){var M;e==null||(M=e.onKeyDown)===null||M===void 0||M.call(e,D);return}C==null||C(D)});return k.onKeyDown=R,T&&(k["aria-activedescendant"]=void 0),k}const ELe=(e,t)=>{e=r7(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=fue({...e,editable:!0}),{open:n,selectOption:o,setOpen:i,setValue:s,value:a}=r,[l,u]=due(e),{disabled:c,freeform:f,inlinePopup:d}=e,h=Ks("combobox-"),{primary:g,root:v}=BL({props:e,primarySlotTagName:"input",excludedPropNames:["children","size"]});r.selectOption=(C,R)=>{s(void 0),o(C,R)},r.setOpen=(C,R)=>{c||(!R&&!f&&s(void 0),i(C,R))};const y=A.useRef(null),E=hue(e.listbox,l,{state:r,triggerRef:y,defaultProps:{children:e.children}});var _;const S=_Le((_=e.input)!==null&&_!==void 0?_:{},Ho(y,t),{state:r,freeform:f,defaultProps:{type:"text",value:a??"",...g}}),b=yr(e.root,{defaultProps:{"aria-owns":!d&&n?E==null?void 0:E.id:void 0,...v},elementType:"div"});b.ref=Ho(b.ref,u);const k={components:{root:"div",input:"input",expandIcon:"span",listbox:KT},root:b,input:S,listbox:n?E:void 0,expandIcon:tn(e.expandIcon,{renderByDefault:!0,defaultProps:{"aria-expanded":n,children:A.createElement(Hae,null),role:"button"},elementType:"span"}),...r},{onMouseDown:T}=k.expandIcon||{},x=ir(un(T,C=>{var R;C.preventDefault(),k.setOpen(C,!k.open),(R=y.current)===null||R===void 0||R.focus()}));if(k.expandIcon){k.expandIcon.onMouseDown=x;const C=k.expandIcon["aria-label"]||k.expandIcon["aria-labelledby"],R="Open";if(!C)if(e["aria-labelledby"]){var I;const D=(I=k.expandIcon.id)!==null&&I!==void 0?I:`${h}-chevron`,L=`${D} ${k.input["aria-labelledby"]}`;k.expandIcon["aria-label"]=R,k.expandIcon.id=D,k.expandIcon["aria-labelledby"]=L}else e["aria-label"]?k.expandIcon["aria-label"]=`${R} ${e["aria-label"]}`:k.expandIcon["aria-label"]=R}return k},SLe=(e,t)=>Je(e.root,{children:zn(sl.Provider,{value:t.combobox,children:[Je(e.input,{}),e.expandIcon&&Je(e.expandIcon,{}),e.listbox&&(e.inlinePopup?Je(e.listbox,{}):Je(bv,{mountNode:e.mountNode,children:Je(e.listbox,{})}))]})}),fw={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",listbox:"fui-Combobox__listbox"},wLe=bt({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B7ck84d:"f1ewtqcl",i8kkvl:"f14mj54c",mc9l5x:"fwk3njj",Budl1dq:"fz17x9o",Brf1p80:"f1869bpl",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"f145g4dw",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},listboxCollapsed:{mc9l5x:"fjseox"},small:{z189sj:["fdw0yi8","fk8j09s"]},medium:{z189sj:["f11gcy0p","f1ng84yb"]},large:{i8kkvl:"f1rjii52",z189sj:["fw5db7e","f1uw59to"]},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"f1c1zstj",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]},"filled-lighter":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"filled-darker":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ewtqcl{box-sizing:border-box;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fwk3njj{display:inline-grid;}",".fz17x9o{grid-template-columns:1fr auto;}",".f1869bpl{justify-content:space-between;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".f145g4dw::after{height:max(2px, var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),kLe=bt({input:{De3pzq:"f1c21dwh",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],sj55zd:"f19n0e5",Bahqtrf:"fk6fouc",Brovlpu:"ftqa4ok",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih"},small:{Bqenvij:"f50nw0v",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},medium:{Bqenvij:"f1tvdnth",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1e60jzv","f135dnwl"]},large:{Bqenvij:"f1ihhdec",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["fnphzt9","flt1dlf"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".f50nw0v{height:22px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1tvdnth{height:30px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1ihhdec{height:38px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"],f:[".ftqa4ok:focus{outline-style:none;}"]}),ALe=bt({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),xLe=e=>{const{appearance:t,open:r,size:n}=e,o=`${e.input["aria-invalid"]}`=="true",i=e.input.disabled,s=wLe(),a=ALe(),l=kLe();return e.root.className=Xe(fw.root,s.root,s[t],s[n],!i&&t==="outline"&&s.outlineInteractive,o&&t!=="underline"&&s.invalid,o&&t==="underline"&&s.invalidUnderline,i&&s.disabled,e.root.className),e.input.className=Xe(fw.input,l.input,l[n],i&&l.disabled,e.input.className),e.listbox&&(e.listbox.className=Xe(fw.listbox,s.listbox,!r&&s.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=Xe(fw.expandIcon,a.icon,a[n],i&&a.disabled,e.expandIcon.className)),e},gue=A.forwardRef((e,t)=>{const r=ELe(e,t),n=aue(r);return xLe(r),fn("useComboboxStyles_unstable")(r),SLe(r,n)});gue.displayName="Combobox";function TLe(e,t,r){const{state:{open:n,activeOption:o,setOpen:i,getOptionsMatchingText:s,getIndexOfId:a,setActiveOption:l,setFocusVisible:u},defaultProps:c}=r,f=A.useRef(""),[d,h]=LL(),g=()=>{let E=k=>k.toLowerCase().indexOf(f.current)===0,_=s(E),S=o?a(o.id):0;if(n&&f.current.length===1&&S++,!_.length){const k=f.current.split("");k.length&&k.every(x=>x===k[0])&&(S++,E=x=>x.toLowerCase().indexOf(k[0])===0,_=s(E))}if(_.length>1&&o){const k=_.find(T=>a(T.id)>=S);return k??_[0]}var b;return(b=_[0])!==null&&b!==void 0?b:void 0},v=E=>{if(h(),Vb(E)==="Type"){f.current+=E.key.toLowerCase(),d(()=>{f.current=""},500),!n&&i(E,!0);const _=g();l(_),u(!0)}},y=pue(e,t,{state:r.state,defaultProps:c,elementType:"button"});return y.onKeyDown=un(v,y.onKeyDown),y}const ILe=(e,t)=>{e=r7(e,{supportsLabelFor:!0,supportsSize:!0});const r=fue(e),{open:n}=r,{primary:o,root:i}=BL({props:e,primarySlotTagName:"button",excludedPropNames:["children"]}),[s,a]=due(e),l=A.useRef(null),u=hue(e.listbox,s,{state:r,triggerRef:l,defaultProps:{children:e.children}});var c;const f=TLe((c=e.button)!==null&&c!==void 0?c:{},Ho(l,t),{state:r,defaultProps:{type:"button",tabIndex:0,children:r.value||e.placeholder,...o}}),d=yr(e.root,{defaultProps:{"aria-owns":!e.inlinePopup&&n?u==null?void 0:u.id:void 0,children:e.children,...i},elementType:"div"});return d.ref=Ho(d.ref,a),{components:{root:"div",button:"button",expandIcon:"span",listbox:KT},root:d,button:f,listbox:n?u:void 0,expandIcon:tn(e.expandIcon,{renderByDefault:!0,defaultProps:{children:A.createElement(Hae,null)},elementType:"span"}),placeholderVisible:!r.value&&!!e.placeholder,...r}},CLe=(e,t)=>Je(e.root,{children:zn(sl.Provider,{value:t.combobox,children:[zn(e.button,{children:[e.button.children,e.expandIcon&&Je(e.expandIcon,{})]}),e.listbox&&(e.inlinePopup?Je(e.listbox,{}):Je(bv,{mountNode:e.mountNode,children:Je(e.listbox,{})}))]})}),dw={root:"fui-Dropdown",button:"fui-Dropdown__button",expandIcon:"fui-Dropdown__expandIcon",listbox:"fui-Dropdown__listbox"},NLe=bt({root:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B7ck84d:"f1ewtqcl",mc9l5x:"f14t3ns0",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{B7ck84d:"f1ewtqcl",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Bxyxcbc:"fmmk62d"},listboxCollapsed:{mc9l5x:"fjseox"},button:{Bt984gj:"f122n59",De3pzq:"f1c21dwh",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",i8kkvl:"f14mj54c",Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bahqtrf:"fk6fouc",Budl1dq:"f12nh0o2",Brf1p80:"f1869bpl",fsow6f:["f1o700av","fes3tcz"],a9b677:"fly5x3f",Brovlpu:"ftqa4ok"},placeholder:{sj55zd:"fxc4j92"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f1khb0e9",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1xile11","fqznh8f"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f1sbtcvk",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdghr9",uwmqm3:["f1e60jzv","f135dnwl"]},large:{i8kkvl:"f1rjii52",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f1a1bwwz",z189sj:["fw5db7e","f1uw59to"],Byoj8tv:"fy7v416",uwmqm3:["fnphzt9","flt1dlf"]},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"f1c1zstj",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]},"filled-lighter":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"]},"filled-darker":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]},disabledText:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ewtqcl{box-sizing:border-box;}",".f14t3ns0{display:inline-block;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".f122n59{align-items:center;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f12nh0o2{grid-template-columns:[content] 1fr [icon] auto [end];}",".f1869bpl{justify-content:space-between;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fly5x3f{width:100%;}",".fxc4j92{color:var(--colorNeutralForeground4);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1khb0e9{padding-top:3px;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1jnq6q7{padding-bottom:3px;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1sbtcvk{padding-top:5px;}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fdghr9{padding-bottom:5px;}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1a1bwwz{padding-top:7px;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fy7v416{padding-bottom:7px;}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],f:[".ftqa4ok:focus{outline-style:none;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),RLe=bt({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Br312pm:"f12w6cgp",Bw0ie65:"f8bv1bt",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f12w6cgp{grid-column-start:icon;}",".f8bv1bt{grid-column-end:end;}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"]}),OLe=e=>{const{appearance:t,open:r,placeholderVisible:n,size:o}=e,i=`${e.button["aria-invalid"]}`=="true",s=e.button.disabled,a=NLe(),l=RLe();return e.root.className=Xe(dw.root,a.root,a[t],!s&&t==="outline"&&a.outlineInteractive,i&&t!=="underline"&&a.invalid,i&&t==="underline"&&a.invalidUnderline,s&&a.disabled,e.root.className),e.button.className=Xe(dw.button,a.button,a[o],n&&a.placeholder,s&&a.disabledText,e.button.className),e.listbox&&(e.listbox.className=Xe(dw.listbox,a.listbox,!r&&a.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=Xe(dw.expandIcon,l.icon,l[o],s&&l.disabled,e.expandIcon.className)),e},n7=A.forwardRef((e,t)=>{const r=ILe(e,t),n=aue(r);return OLe(r),fn("useDropdownStyles_unstable")(r),CLe(r,n)});n7.displayName="Dropdown";const DLe=e=>Je(e.root,{children:e.root.children!==void 0&&Je(e.wrapper,{children:e.root.children})}),FLe=(e,t)=>{const{alignContent:r="center",appearance:n="default",inset:o=!1,vertical:i=!1,wrapper:s}=e,a=Ks("divider-");return{alignContent:r,appearance:n,inset:o,vertical:i,components:{root:"div",wrapper:"div"},root:yr(_n("div",{role:"separator","aria-orientation":i?"vertical":"horizontal","aria-labelledby":e.children?a:void 0,...e,ref:t}),{elementType:"div"}),wrapper:yr(s,{defaultProps:{id:a,children:e.children},elementType:"div"})}},JG={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},BLe=bt({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bh6795r:"fqerorx",qhf8xq:"f10pi13n",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",fsow6f:"f17mccla",Bcvre1j:"fyl8oag",Br0sdwz:"f16vkdww",Bn78ew0:"fhsnbul",li1rpt:"f1gw3sf2",ap17g6:"f1ly5f7u",B771hl4:"f1s3tz6t"},childless:{susq4k:"f1kyqvp9",Bicfajf:["fzynn9s","f1z0ukd1"],jwcpgy:["fekrn8e","ftdg338"],B4rk6o:"fesgyo"},start:{Bsft5z2:"f13zj6fq"},center:{Ftih45:"f1wl9k8s",Bsft5z2:"f13zj6fq"},end:{Ftih45:"f1wl9k8s"},brand:{sj55zd:"f16muhyy",Bq4z7u6:"fcbuu2a",Bk5zm6e:["f1wdw2dr","f1ttio3w"],Bqjgrrk:"f1582fpk",Bm6vgfq:["f1ttio3w","f1wdw2dr"],B0n5ga8:"f1ahrvm8",s924m2:["f1cd3wbc","f17hbk9y"],B1q35kw:"fvrapl0",Gp14am:["f17hbk9y","f1cd3wbc"]},default:{sj55zd:"fkfq4zb",Bq4z7u6:"f1vccso1",Bk5zm6e:["f1geml7w","fjml6kk"],Bqjgrrk:"f1r7kh1m",Bm6vgfq:["fjml6kk","f1geml7w"],B0n5ga8:"f16j7guv",s924m2:["fx01ahm","fj1a37q"],B1q35kw:"fl8d8yv",Gp14am:["fj1a37q","fx01ahm"]},subtle:{sj55zd:"fkfq4zb",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"fkfq4zb",Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"],B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fqerorx{flex-grow:1;}",".f10pi13n{position:relative;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mccla{text-align:center;}",".fyl8oag::before{box-sizing:border-box;}",".f16vkdww::before{display:flex;}",".fhsnbul::before{flex-grow:1;}",".f1gw3sf2::after{box-sizing:border-box;}",".f1ly5f7u::after{display:flex;}",".f1s3tz6t::after{flex-grow:1;}",".f1kyqvp9::before{margin-bottom:0;}",".fzynn9s::before{margin-right:0;}",".f1z0ukd1::before{margin-left:0;}",".fekrn8e::after{margin-left:0;}",".ftdg338::after{margin-right:0;}",".fesgyo::after{margin-top:0;}",'.f13zj6fq::after{content:"";}','.f1wl9k8s::before{content:"";}',".f16muhyy{color:var(--colorBrandForeground1);}",".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}",".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}",".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}",".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}",".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}",".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}",".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}",".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}",".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}",".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}",".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}",".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}",".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}",".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}",".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}",".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}",".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}",".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}",".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}",".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}",".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}",".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]}),MLe=bt({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{Bicfajf:["f1ojjlep","fk1kexq"],Bsft5z2:"f13zj6fq",jwcpgy:["f12w1bnb","f1558wlj"],Iy66sp:"f1ayce8x"}},{d:[".fly5x3f{width:100%;}",".f163fonl::before{border-top-style:solid;}",".f51yk4v::before{border-top-width:var(--strokeWidthThin);}",".f13rof3u::before{min-width:8px;}",".f8rth92::after{border-top-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f1iyka9k::after{min-width:8px;}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",'.f1wl9k8s::before{content:"";}',".f1ojjlep::before{margin-right:12px;}",".fk1kexq::before{margin-left:12px;}",".f1he2m4d::before{max-width:8px;}",".f12w1bnb::after{margin-left:12px;}",".f1558wlj::after{margin-right:12px;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),LLe=bt({base:{Beiy3e4:"f1vx9l62",sshi5w:"f16gbxbe",m598lv:["f1yq6w5o","f1jpmc5p"],B4f6apu:["f9sc749","f1x8pvcy"],zkzzav:"fhkwbjy",Barhvk9:["flthirb","ftkbnf5"],Ihftqj:["f13hvwk3","f1en4csx"],Bde111x:"f19onpk6"},inset:{B6of3ja:"f1xdg43u",jrapky:"f1jlhsmd"},withChildren:{sshi5w:"f1tjaq3g"},start:{Ftih45:"f1wl9k8s",susq4k:"fg2pwug",Bbdr6tz:"fkjtzyi",B4rk6o:"f8vk40g"},center:{susq4k:"fg2pwug",B4rk6o:"f8vk40g"},end:{susq4k:"fg2pwug",Bsft5z2:"f13zj6fq",B4rk6o:"f8vk40g",gn64ia:"fqg5mu5"}},{d:[".f1vx9l62{flex-direction:column;}",".f16gbxbe{min-height:20px;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f9sc749::before{border-right-width:var(--strokeWidthThin);}",".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}",".fhkwbjy::before{min-height:8px;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f19onpk6::after{min-height:8px;}",".f1xdg43u{margin-top:12px;}",".f1jlhsmd{margin-bottom:12px;}",".f1tjaq3g{min-height:84px;}",'.f1wl9k8s::before{content:"";}',".fg2pwug::before{margin-bottom:12px;}",".fkjtzyi::before{max-height:8px;}",".f8vk40g::after{margin-top:12px;}",'.f13zj6fq::after{content:"";}',".fqg5mu5::after{max-height:8px;}"]}),jLe=e=>{const t=BLe(),r=MLe(),n=LLe(),{alignContent:o,appearance:i,inset:s,vertical:a}=e;return e.root.className=Xe(JG.root,t.base,t[o],i&&t[i],!a&&r.base,!a&&s&&r.inset,!a&&r[o],a&&n.base,a&&s&&n.inset,a&&n[o],a&&e.root.children!==void 0&&n.withChildren,e.root.children===void 0&&t.childless,e.root.className),e.wrapper&&(e.wrapper.className=Xe(JG.wrapper,e.wrapper.className)),e},Vy=A.forwardRef((e,t)=>{const r=FLe(e,t);return jLe(r),fn("useDividerStyles_unstable")(r),DLe(r)});Vy.displayName="Divider";const zLe=(e,t)=>{e=r7(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=Nae();var n;const{size:o="medium",appearance:i=(n=r.inputDefaultAppearance)!==null&&n!==void 0?n:"outline",onChange:s}=e,[a,l]=kf({state:e.value,defaultState:e.defaultValue,initialState:""}),u=BL({props:e,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),c={size:o,appearance:i,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:yr(e.input,{defaultProps:{type:"text",ref:t,...u.primary},elementType:"input"}),contentAfter:tn(e.contentAfter,{elementType:"span"}),contentBefore:tn(e.contentBefore,{elementType:"span"}),root:yr(e.root,{defaultProps:u.root,elementType:"span"})};return c.input.value=a,c.input.onChange=ir(f=>{const d=f.target.value;s==null||s(f,{value:d}),l(d)}),c},HLe=e=>zn(e.root,{children:[e.contentBefore&&Je(e.contentBefore,{}),Je(e.input,{}),e.contentAfter&&Je(e.contentAfter,{})]}),hw={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},$Le=Cn("r1jtohuq","rl1z2p5",{r:[".r1jtohuq{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1jtohuq::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1jtohuq:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1jtohuq:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1jtohuq:focus-within{outline:2px solid transparent;}",".rl1z2p5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.rl1z2p5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".rl1z2p5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rl1z2p5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rl1z2p5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1jtohuq::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1jtohuq:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),PLe=bt({small:{sshi5w:"f1pha7fy",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"],Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",uwmqm3:["f1uw59to","fw5db7e"],z189sj:["fw5db7e","f1uw59to"],Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:"f1rjii52",Belr9w4:"f1r7g2jn"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",B3778ie:["f1nf3wye","feulmo5"],d9w3h3:["feulmo5","f1nf3wye"],Bl18szs:["f18vqdqu","f53nyzz"],B4j8arr:["f53nyzz","f18vqdqu"]},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"}},{d:[".f1pha7fy{min-height:24px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1r7g2jn{row-gap:var(--spacingHorizontalSNudge);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".f1nf3wye::after{border-bottom-right-radius:0;}",".feulmo5::after{border-bottom-left-radius:0;}",".f18vqdqu::after{border-top-right-radius:0;}",".f53nyzz::after{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),qLe=Cn("rvp2gzh",null,[".rvp2gzh{box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalXXS);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".rvp2gzh::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),WLe=bt({large:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),GLe=Cn("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),KLe=bt({disabled:{sj55zd:"f1s2aq7o"},small:{kwki1k:"f3u2cy0"},medium:{},large:{kwki1k:"fa420co"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3u2cy0>svg{font-size:16px;}",".fa420co>svg{font-size:24px;}"]}),VLe=e=>{const{size:t,appearance:r}=e,n=e.input.disabled,o=`${e.input["aria-invalid"]}`=="true",i=r.startsWith("filled"),s=PLe(),a=WLe(),l=KLe();e.root.className=Xe(hw.root,$Le(),s[t],s[r],!n&&r==="outline"&&s.outlineInteractive,!n&&r==="underline"&&s.underlineInteractive,!n&&i&&s.filledInteractive,i&&s.filled,!n&&o&&s.invalid,n&&s.disabled,e.root.className),e.input.className=Xe(hw.input,qLe(),t==="large"&&a.large,n&&a.disabled,e.input.className);const u=[GLe(),n&&l.disabled,l[t]];return e.contentBefore&&(e.contentBefore.className=Xe(hw.contentBefore,...u,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=Xe(hw.contentAfter,...u,e.contentAfter.className)),e},o7=A.forwardRef((e,t)=>{const r=zLe(e,t);return VLe(r),fn("useInputStyles_unstable")(r),HLe(r)});o7.displayName="Input";const ULe=e=>{const{disabled:t,disabledFocusable:r}=e,{onClick:n,onKeyDown:o,role:i,tabIndex:s}=e.root;return e.root.as==="a"&&(e.root.href=t?void 0:e.root.href,(t||r)&&(e.root.role=i||"link")),(e.root.as==="a"||e.root.as==="span")&&(e.root.tabIndex=s??(t&&!r?void 0:0)),e.root.onClick=a=>{t||r?a.preventDefault():n==null||n(a)},e.root.onKeyDown=a=>{(t||r)&&(a.key===lg||a.key===uf)?(a.preventDefault(),a.stopPropagation()):o==null||o(a)},e.disabled=t||r,e.root["aria-disabled"]=t||r||void 0,e.root.as==="button"&&(e.root.disabled=t&&!r),e},YLe=(e,t)=>{const r=u3e(),{appearance:n="default",disabled:o=!1,disabledFocusable:i=!1,inline:s=!1}=e,a=e.as||(e.href?"a":"button"),l={role:a==="span"?"button":void 0,type:a==="button"?"button":void 0,...e,as:a},u={appearance:n,disabled:o,disabledFocusable:i,inline:s,components:{root:a},root:yr(_n(a,{ref:t,...l}),{elementType:a}),backgroundAppearance:r};return ULe(u),u},XLe={root:"fui-Link"},QLe=bt({focusIndicator:{Bttzg6e:"fhgqx19",B3uz8dt:"f1olyrje",B6ihwck:"f1p93eir",g9k6zt:"f1nev41a"},root:{B486eqv:"f2hkw1w",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"fyind8e",Bceei9c:"f1k6fduh",mc9l5x:"f1w7gpdv",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:"fqv5qza",Bmxbyg5:"f1vmzxwi",fsow6f:["f1o700av","fes3tcz"],w71qe1:"f1iuv45f",Bkioxbp:"f1cmlufx",ygn44y:"f9n3di6",famaaq:"f1ids18y",Bde5pd6:"f1tx3yz7",Bi91k9c:"f1deo86v",i089h6:"f1eh06m1",lj723h:"f1iescvh"},button:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},href:{Be2twd7:"fjoy568"},subtle:{sj55zd:"fkfq4zb",Bde5pd6:"f1tx3yz7",Bi91k9c:"fnwyq0v",i089h6:"f1eh06m1",lj723h:"flvvhsy"},inline:{w71qe1:"f13mvf36"},disabled:{w71qe1:"f1iuv45f",sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bde5pd6:"fbnuktb",Bi91k9c:"fvgxktp",i089h6:"fljg2da",lj723h:"f19wldhg"},inverted:{sj55zd:"f1qz2gb0",Bi91k9c:"f1mlt8il",lj723h:"f1hsd4st"}},{d:[".fhgqx19[data-fui-focus-visible]{text-decoration-color:var(--colorStrokeFocus2);}",".f1olyrje[data-fui-focus-visible]{text-decoration-line:underline;}",".f1p93eir[data-fui-focus-visible]{text-decoration-style:double;}",".f1nev41a[data-fui-focus-visible]{outline-style:none;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".fyind8e{color:var(--colorBrandForegroundLink);}",".f1k6fduh{cursor:pointer;}",".f1w7gpdv{display:inline;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fqv5qza{overflow-x:inherit;}",".f1vmzxwi{overflow-y:inherit;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".f1iuv45f{text-decoration-line:none;}",".f1cmlufx{text-decoration-thickness:var(--strokeWidthThin);}",".f9n3di6{text-overflow:inherit;}",".f1ids18y{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fjoy568{font-size:inherit;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f13mvf36{text-decoration-line:underline;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1tx3yz7:hover{text-decoration-line:underline;}",".f1deo86v:hover{color:var(--colorBrandForegroundLinkHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fbnuktb:hover{text-decoration-line:none;}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1mlt8il:hover{color:var(--colorBrandForegroundInvertedHover);}"],a:[".f1eh06m1:active{text-decoration-line:underline;}",".f1iescvh:active{color:var(--colorBrandForegroundLinkPressed);}",".flvvhsy:active{color:var(--colorNeutralForeground2Pressed);}",".fljg2da:active{text-decoration-line:none;}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1hsd4st:active{color:var(--colorBrandForegroundInvertedPressed);}"]}),ZLe=e=>{const t=QLe(),{appearance:r,disabled:n,inline:o,root:i,backgroundAppearance:s}=e;return e.root.className=Xe(XLe.root,t.root,t.focusIndicator,i.as==="a"&&i.href&&t.href,i.as==="button"&&t.button,r==="subtle"&&t.subtle,s==="inverted"&&t.inverted,o&&t.inline,n&&t.disabled,e.root.className),e},JLe=e=>Je(e.root,{}),Ub=A.forwardRef((e,t)=>{const r=YLe(e,t);return ZLe(r),JLe(r)});Ub.displayName="Link";const e7e=()=>A.createElement("svg",{className:"fui-Spinner__Progressbar"},A.createElement("circle",{className:"fui-Spinner__Track"}),A.createElement("circle",{className:"fui-Spinner__Tail"})),vue=A.createContext(void 0),t7e={};vue.Provider;const r7e=()=>{var e;return(e=A.useContext(vue))!==null&&e!==void 0?e:t7e},n7e=(e,t)=>{const{size:r}=r7e(),{appearance:n="primary",labelPosition:o="after",size:i=r??"medium",delay:s=0}=e,a=Ks("spinner"),{role:l="progressbar",tabIndex:u,...c}=e,f=yr(_n("div",{ref:t,role:l,...c},["size"]),{elementType:"div"}),[d,h]=A.useState(!0),[g,v]=LL();A.useEffect(()=>{if(!(s<=0))return h(!1),g(()=>{h(!0)},s),()=>{v()}},[g,v,s]);const y=tn(e.label,{defaultProps:{id:a},renderByDefault:!1,elementType:Nf}),E=tn(e.spinner,{renderByDefault:!0,defaultProps:{children:A.createElement(e7e,null),tabIndex:u},elementType:"span"});return y&&f&&!f["aria-labelledby"]&&(f["aria-labelledby"]=y.id),{appearance:n,delay:s,labelPosition:o,size:i,shouldRenderSpinner:d,components:{root:"div",spinner:"span",label:Nf},root:f,spinner:E,label:y}},o7e=e=>{const{labelPosition:t,shouldRenderSpinner:r}=e;return zn(e.root,{children:[e.label&&r&&(t==="above"||t==="before")&&Je(e.label,{}),e.spinner&&r&&Je(e.spinner,{}),e.label&&r&&(t==="below"||t==="after")&&Je(e.label,{})]})},CC={root:"fui-Spinner",spinner:"fui-Spinner__spinner",label:"fui-Spinner__label"},i7e=bt({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bg96gwp:"fez10in",i8kkvl:"f4px1ci",Belr9w4:"fn67r4l"},horizontal:{Beiy3e4:"f1063pyq"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fez10in{line-height:0;}",".f4px1ci{column-gap:8px;}",".fn67r4l{row-gap:8px;}",".f1063pyq{flex-direction:row;}",".f1vx9l62{flex-direction:column;}"]}),s7e=bt({spinnerSVG:{B3aqqti:"f1or16p5",Brovlpu:"f1grzc83",Bxa1mx5:"f19shzzi",Bwaue66:["f5tbecn","f15qb8s7"],fyp1ls:"fn4mtlg",ag6ruv:"f1y80fxs",osj692:"f1r2crtq",aq5vjd:"f1wsi8sr",tlu9e1:"f1bkm2qd",J3u96z:"f1urqz7h",d32isg:"f1da2vov",Bsvqbuc:"f11rfva0",b3s3i5:"f1exc66"},"extra-tiny":{Bah9ito:"f1x2gjcb",ut6tcf:"f1vjiaua",B7p06xz:"fv1u54w",B807ibg:"f1oebb0s"},tiny:{Bah9ito:"f1j4wmu2",ut6tcf:"f1vppzuq",B7p06xz:"fv1u54w",B807ibg:"fngtx1d"},"extra-small":{Bah9ito:"fmpqlna",ut6tcf:"f15z5jzu",B7p06xz:"fv1u54w",B807ibg:"fadawes"},small:{Bah9ito:"fo52gbo",ut6tcf:"f1b41i3v",B7p06xz:"fv1u54w",B807ibg:"f1xqyyrl"},medium:{Bah9ito:"f1aiqagr",ut6tcf:"f1wtx80b",B7p06xz:"f1flujpd",B807ibg:"f1u06hy7"},large:{Bah9ito:"f1trdq7b",ut6tcf:"f9e0mc5",B7p06xz:"f1flujpd",B807ibg:"f13pmvhl"},"extra-large":{Bah9ito:"f89rf2a",ut6tcf:"f1w2xg3q",B7p06xz:"f1flujpd",B807ibg:"fmn74v6"},huge:{Bah9ito:"f1rx7k5y",ut6tcf:"f1vtyt49",B7p06xz:"f1owbg48",B807ibg:"f1fr1izd"}},{f:[".f1or16p5:focus{outline-width:3px;}",".f1grzc83:focus{outline-style:solid;}",".f19shzzi:focus{outline-color:transparent;}"],k:["@keyframes fb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}","@keyframes f1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],d:[".f5tbecn>svg{animation-name:fb7n1on;}",".f15qb8s7>svg{animation-name:f1gx3jof;}",".fn4mtlg>svg{animation-duration:3s;}",".f1y80fxs>svg{animation-iteration-count:infinite;}",".f1r2crtq>svg{animation-timing-function:linear;}",".f1wsi8sr>svg{background-color:transparent;}",".f1da2vov>svg>circle{cx:50%;}",".f11rfva0>svg>circle{cy:50%;}",".f1exc66>svg>circle{fill:none;}",".f1x2gjcb>svg{height:16px;}",".f1vjiaua>svg{width:16px;}",".fv1u54w>svg>circle{stroke-width:var(--strokeWidthThick);}",".f1oebb0s>svg>circle{r:7px;}",".f1j4wmu2>svg{height:20px;}",".f1vppzuq>svg{width:20px;}",".fngtx1d>svg>circle{r:9px;}",".fmpqlna>svg{height:24px;}",".f15z5jzu>svg{width:24px;}",".fadawes>svg>circle{r:11px;}",".fo52gbo>svg{height:28px;}",".f1b41i3v>svg{width:28px;}",".f1xqyyrl>svg>circle{r:13px;}",".f1aiqagr>svg{height:32px;}",".f1wtx80b>svg{width:32px;}",".f1flujpd>svg>circle{stroke-width:var(--strokeWidthThicker);}",".f1u06hy7>svg>circle{r:14.5px;}",".f1trdq7b>svg{height:36px;}",".f9e0mc5>svg{width:36px;}",".f13pmvhl>svg>circle{r:16.5px;}",".f89rf2a>svg{height:40px;}",".f1w2xg3q>svg{width:40px;}",".fmn74v6>svg>circle{r:18.5px;}",".f1rx7k5y>svg{height:44px;}",".f1vtyt49>svg{width:44px;}",".f1owbg48>svg>circle{stroke-width:var(--strokeWidthThickest);}",".f1fr1izd>svg>circle{r:20px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1bkm2qd>svg{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1urqz7h>svg{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),a7e=bt({inverted:{gwg7kz:"f1jvpmnu",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f1esql28"},primary:{gwg7kz:"f11ditju",B8k2rxp:"f1m9nikz",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f13qeqtg",y14cdu:"flglbw1"}},{d:[".f1jvpmnu>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}",".fq8a5sv>svg>circle.fui-Spinner__Tail{animation-name:f1v1ql0f;}",".f1b4lwqj>svg>circle.fui-Spinner__Tail{animation-duration:1.5s;}",".f1najlst>svg>circle.fui-Spinner__Tail{animation-iteration-count:infinite;}",".fjxod4>svg>circle.fui-Spinner__Tail{animation-timing-function:var(--curveEasyEase);}",".fu3xdw0>svg>circle.fui-Spinner__Tail{stroke-linecap:round;}",".f1ttdh6v>svg>circle.fui-Spinner__Tail{transform:rotate(-90deg);}",".fmyjox0>svg>circle.fui-Spinner__Tail{transform:rotate(90deg);}",".f1eseayc>svg>circle.fui-Spinner__Tail{transform-origin:50% 50%;}",".f1esql28>svg>circle.fui-Spinner__Track{stroke:rgba(255, 255, 255, 0.2);}",".f11ditju>svg>circle.fui-Spinner__Tail{stroke:var(--colorBrandStroke1);}",".f13qeqtg>svg>circle.fui-Spinner__Track{stroke:var(--colorBrandStroke2Contrast);}"],k:["@keyframes f1v1ql0f{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"],m:[["@media screen and (prefers-reduced-motion: reduce){.folzdkc>svg>circle.fui-Spinner__Tail{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fhlfkde>svg>circle.fui-Spinner__Tail{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f1m9nikz>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}}",{m:"screen and (forced-colors: active)"}],["@media screen and (forced-colors: active){.flglbw1>svg>circle.fui-Spinner__Track{stroke:var(--colorNeutralBackgroundInverted);}}",{m:"screen and (forced-colors: active)"}]]}),l7e=bt({inverted:{sj55zd:"f15aqcq"},primary:{},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".f15aqcq{color:rgba(255, 255, 255, 1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),u7e=e=>{const{labelPosition:t,size:r,appearance:n="primary"}=e,o=i7e(),i=s7e(),s=l7e(),a=a7e();return e.root.className=Xe(CC.root,o.root,(t==="above"||t==="below")&&o.vertical,(t==="before"||t==="after")&&o.horizontal,e.root.className),e.spinner&&(e.spinner.className=Xe(CC.spinner,i.spinnerSVG,i[r],a[n],e.spinner.className)),e.label&&(e.label.className=Xe(CC.label,s[r],s[n],e.label.className)),e},tE=A.forwardRef((e,t)=>{const r=n7e(e,t);return u7e(r),fn("useSpinnerStyles_unstable")(r),o7e(r)});tE.displayName="Spinner";const c7e={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},mue=vv(void 0),f7e=mue.Provider,Vl=e=>Yo(mue,(t=c7e)=>e(t)),d7e=(e,t)=>{const{content:r,disabled:n=!1,icon:o,onClick:i,onFocus:s,value:a}=e,l=Vl(R=>R.appearance),u=Vl(R=>R.reserveSelectedTabSpace),c=Vl(R=>R.selectTabOnFocus),f=Vl(R=>R.disabled),d=Vl(R=>R.selectedValue===a),h=Vl(R=>R.onRegister),g=Vl(R=>R.onUnregister),v=Vl(R=>R.onSelect),y=Vl(R=>R.size),E=Vl(R=>!!R.vertical),_=f||n,S=A.useRef(null),b=R=>v(R,{value:a}),k=ir(un(i,b)),T=ir(un(s,b));A.useEffect(()=>(h({value:a,ref:S}),()=>{g({value:a,ref:S})}),[h,g,S,a]);const x=tn(o,{elementType:"span"}),I=yr(r,{defaultProps:{children:e.children},elementType:"span"}),C=!!(x!=null&&x.children&&!I.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:yr(_n("button",{ref:Ho(t,S),role:"tab",type:"button","aria-selected":_?void 0:`${d}`,...e,disabled:_,onClick:k,onFocus:c?T:s}),{elementType:"button"}),icon:x,iconOnly:C,content:I,contentReservedSpace:tn(r,{renderByDefault:!d&&!C&&u,defaultProps:{children:e.children},elementType:"span"}),appearance:l,disabled:_,selected:d,size:y,value:a,vertical:E}},h7e=e=>zn(e.root,{children:[e.icon&&Je(e.icon,{}),!e.iconOnly&&Je(e.content,{}),e.contentReservedSpace&&Je(e.contentReservedSpace,{})]}),eK={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},p7e=bt({base:{B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",B0vmy72:"f9qxlq5",u9bimw:"f1aql376"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".fhwpy7i::after{transition-property:transform;}",".f6zz20j::after{transition-duration:var(--durationSlow);}",".f1ai4sc1::after{transition-timing-function:var(--curveDecelerateMax);}",".fug4aj8::after{transform-origin:left;}",".f1i5xzg7::after{transform-origin:right;}",".f1q7ujh::after{transform:translateX(var(--fui-Tab__indicator--offset)) scaleX(var(--fui-Tab__indicator--scale));}",".f1hqboyk::after{transform-origin:top;}",".f1dxupa6::after{transform:translateY(var(--fui-Tab__indicator--offset)) scaleY(var(--fui-Tab__indicator--scale));}"],m:[["@media (prefers-reduced-motion: reduce){.f9qxlq5::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1aql376::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),g7e=e=>{if(e){var t;const r=((t=e.parentElement)===null||t===void 0?void 0:t.getBoundingClientRect())||{x:0,y:0,width:0,height:0},n=e.getBoundingClientRect();return{x:n.x-r.x,y:n.y-r.y,width:n.width,height:n.height}}},tK=(e,t)=>{var r;const n=t!=null?(r=e[JSON.stringify(t)])===null||r===void 0?void 0:r.ref.current:void 0;return n?g7e(n):void 0},v7e=e=>{const{disabled:t,selected:r,vertical:n}=e,o=p7e(),[i,s]=A.useState(),[a,l]=A.useState({offset:0,scale:1}),u=Vl(d=>d.getRegisteredTabs);if(A.useEffect(()=>{i&&l({offset:0,scale:1})},[i]),r){const{previousSelectedValue:d,selectedValue:h,registeredTabs:g}=u();if(d&&i!==d){const v=tK(g,d),y=tK(g,h);if(y&&v){const E=n?v.y-y.y:v.x-y.x,_=n?v.height/y.height:v.width/y.width;l({offset:E,scale:_}),s(d)}}}else i&&s(void 0);if(t)return e;const c=a.offset===0&&a.scale===1;e.root.className=Xe(e.root.className,r&&o.base,r&&c&&o.animated,r&&(n?o.vertical:o.horizontal));const f={[eK.offsetVar]:`${a.offset}px`,[eK.scaleVar]:`${a.scale}`};return e.root.style={...f,...e.root.style},e},NC={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},m7e={content:"fui-Tab__content--reserved-space"},y7e=bt({base:{Bt984gj:"f122n59",g2u3we:"fwhevhj",h3c5rm:["f61n433","f1q8l70w"],B9xav0g:"fv1dfc8",zhjwy3:["f1q8l70w","f61n433"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",z8tnut:"fp2oml8",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1tdddsa",uwmqm3:["fk8j09s","fdw0yi8"]},smallVertical:{i8kkvl:"f14mj54c",z8tnut:"fclwglc",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fywfov9",uwmqm3:["fk8j09s","fdw0yi8"]},mediumHorizontal:{i8kkvl:"f1rjii52",z8tnut:"f5yzyt",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fx3omr",uwmqm3:["f1ng84yb","f11gcy0p"]},mediumVertical:{i8kkvl:"f1rjii52",z8tnut:"fp2oml8",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f1tdddsa",uwmqm3:["f1ng84yb","f11gcy0p"]},largeHorizontal:{i8kkvl:"f1rjii52",z8tnut:"fikn0iw",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdxej3c",uwmqm3:["f1ng84yb","f11gcy0p"]},largeVertical:{i8kkvl:"f1rjii52",z8tnut:"f1kwiid1",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f5b47ha",uwmqm3:["f1ng84yb","f11gcy0p"]},transparent:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",ecr2s2:"fophhak",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},subtle:{De3pzq:"fhovq9v",Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu",Bceei9c:"fdrzuqr"},selected:{Bptxc3x:"f1cadz5z",B076xvk:"f1ck17l",q9r9w5:"f42ak0g",cl4aha:"ffplhdr",Bk452zc:"ffth601",a4hkcw:"fhklyu5"}},{d:[".f122n59{align-items:center;}",".fwhevhj{border-top-color:none;}",".f61n433{border-right-color:none;}",".f1q8l70w{border-left-color:none;}",".fv1dfc8{border-bottom-color:none;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f5yzyt{padding-top:var(--spacingVerticalM);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fx3omr{padding-bottom:var(--spacingVerticalM);}",".fikn0iw{padding-top:var(--spacingVerticalL);}",".fdxej3c{padding-bottom:var(--spacingVerticalL);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1mfqf41:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f149wc3x:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1ck17l:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".ffth601:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}"],a:[".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f10aiid4:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fjioou7:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f42ak0g:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".fhklyu5:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),b7e=bt({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],Bhxq17a:"f1vjpng2"}},{d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",".f1p7hgxw[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);}",".f1way5bb[data-fui-focus-visible]{outline-color:transparent;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqa318h[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2);}",".f1vjpng2[data-fui-focus-visible]{z-index:1;}"]}),_7e=bt({base:{az7l2e:"fhw179n",Bv4n3vi:["f10y1uxy","f6aiuy0"],vqofr:["f6aiuy0","f10y1uxy"],B0uxbk8:["f1kfpfnu","f1dx5wco"],Bgqb9hq:["f1dx5wco","f1kfpfnu"],amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",vzq8l0:["f105swax","fscdmel"],Bka2azo:["fscdmel","f105swax"],Br4ovkg:["f1tkcw1w","f1u11x8o"],csmgbd:["f1u11x8o","f1tkcw1w"],y36c18:"f16cxu0",B1ctymy:"f1nwgacf",Bgvrrv0:"f15ovonk",ddr6p5:"fvje46l"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn"},smallHorizontal:{lawp4y:"fchca7p",Baz25je:"f1r53b5e",Fbdkly:["f1s6rxz5","fo35v8s"],mdwyqc:["fo35v8s","f1s6rxz5"]},smallVertical:{lawp4y:"fze4zud",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"fdp32p8",Ccq8qp:"f1aij3q"},mediumHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},mediumVertical:{lawp4y:"f17jracn",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f117lcb2",Ccq8qp:"f1aij3q"},largeHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},largeVertical:{lawp4y:"fel9d3z",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f6vqlre",Ccq8qp:"f1aij3q"}},{h:[".fhw179n:hover::before{background-color:var(--colorNeutralStroke1Hover);}",".f10y1uxy:hover::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".f6aiuy0:hover::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1kfpfnu:hover::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1dx5wco:hover::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",".f105swax:active::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".fscdmel:active::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1tkcw1w:active::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1u11x8o:active::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.f15ovonk:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fvje46l:active::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}]],d:[".fchca7p::before{bottom:0;}",".f1r53b5e::before{height:var(--strokeWidthThick);}",".f1s6rxz5::before{left:var(--spacingHorizontalSNudge);}",".fo35v8s::before{right:var(--spacingHorizontalSNudge);}",".fze4zud::before{bottom:var(--spacingVerticalXS);}",".f1fzr1x6::before{left:0;}",".f1f351id::before{right:0;}",".fdp32p8::before{top:var(--spacingVerticalXS);}",".f1aij3q::before{width:var(--strokeWidthThicker);}",".f1s2r9ax::before{height:var(--strokeWidthThicker);}",".f1o0nnkk::before{left:var(--spacingHorizontalM);}",".fxb7rol::before{right:var(--spacingHorizontalM);}",".f17jracn::before{bottom:var(--spacingVerticalS);}",".f117lcb2::before{top:var(--spacingVerticalS);}",".fel9d3z::before{bottom:var(--spacingVerticalMNudge);}",".f6vqlre::before{top:var(--spacingVerticalMNudge);}"]}),E7e=bt({base:{Bjyk6c5:"f1rp0jgh",B3778ie:["fprarqb","f14vs0nd"],d9w3h3:["f14vs0nd","fprarqb"],Bl18szs:["f1gtfqs9","f18zvfd9"],B4j8arr:["f18zvfd9","f1gtfqs9"],Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",t2ki1e:"ffmd2fr"},selected:{Bjyk6c5:"f1ksivud",Glksuk:"f1eytvvh",Blzl0y7:"fuaa9s",f7digc:"fy7ktjt",Biqphg1:"f16tp0gf",Bntoloa:"fj0yp7j"},disabled:{Bjyk6c5:"f13lkzet"},smallHorizontal:{By385i5:"fo72kxq",Dlnsje:"f9bb2ob",Eqx8gd:["f1q70ajw","f18rbzdx"],B1piin3:["f18rbzdx","f1q70ajw"]},smallVertical:{By385i5:"fqbue9b",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fk1klkt",a2br6o:"f1o25lip"},mediumHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},mediumVertical:{By385i5:"fipylg0",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fqchiol",a2br6o:"f1o25lip"},largeHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},largeVertical:{By385i5:"f1w7dm5g",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"f1p6em4m",a2br6o:"f1o25lip"}},{d:[".f1rp0jgh::after{background-color:var(--colorTransparentStroke);}",".fprarqb::after{border-bottom-right-radius:var(--borderRadiusCircular);}",".f14vs0nd::after{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1gtfqs9::after{border-top-right-radius:var(--borderRadiusCircular);}",".f18zvfd9::after{border-top-left-radius:var(--borderRadiusCircular);}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".ffmd2fr::after{z-index:1;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}",".fo72kxq::after{bottom:0;}",".f9bb2ob::after{height:var(--strokeWidthThick);}",".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}",".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}",".fqbue9b::after{bottom:var(--spacingVerticalXS);}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fk1klkt::after{top:var(--spacingVerticalXS);}",".f1o25lip::after{width:var(--strokeWidthThicker);}",".f1vx7lu8::after{height:var(--strokeWidthThicker);}",".fna7m5n::after{left:var(--spacingHorizontalM);}",".f1oxpfwv::after{right:var(--spacingHorizontalM);}",".fipylg0::after{bottom:var(--spacingVerticalS);}",".fqchiol::after{top:var(--spacingVerticalS);}",".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}",".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],h:[".f1eytvvh:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}"],a:[".fuaa9s:active::after{background-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media (forced-colors: active){.fy7ktjt::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16tp0gf:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj0yp7j:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),S7e=bt({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",D0sxk3:"f16u1re",t6yez3:"f8bsbmo"},small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun"},selected:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"}},{d:[".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f16u1re .fui-Icon-filled{display:none;}",".f8bsbmo .fui-Icon-regular{display:inline;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}"]}),w7e=bt({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",z8tnut:"fztplxc",z189sj:["ffczdla","fgiv446"],Byoj8tv:"f9g1xly",uwmqm3:["fgiv446","ffczdla"]},selected:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},largeSelected:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},noIconBefore:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94"},iconBefore:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},placeholder:{Bcdw1i0:"fd7fpy0"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fztplxc{padding-top:var(--spacingVerticalNone);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".f9g1xly{padding-bottom:var(--spacingVerticalNone);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".fd46tj4{grid-column-start:2;}",".fd7fpy0{visibility:hidden;}"]}),k7e=e=>{const t=y7e(),r=b7e(),n=_7e(),o=E7e(),i=S7e(),s=w7e(),{appearance:a,disabled:l,selected:u,size:c,vertical:f}=e;return e.root.className=Xe(NC.root,t.base,f?t.vertical:t.horizontal,c==="small"&&(f?t.smallVertical:t.smallHorizontal),c==="medium"&&(f?t.mediumVertical:t.mediumHorizontal),c==="large"&&(f?t.largeVertical:t.largeHorizontal),r.base,!l&&a==="subtle"&&t.subtle,!l&&a==="transparent"&&t.transparent,!l&&u&&t.selected,l&&t.disabled,n.base,c==="small"&&(f?n.smallVertical:n.smallHorizontal),c==="medium"&&(f?n.mediumVertical:n.mediumHorizontal),c==="large"&&(f?n.largeVertical:n.largeHorizontal),l&&n.disabled,u&&o.base,u&&!l&&o.selected,u&&c==="small"&&(f?o.smallVertical:o.smallHorizontal),u&&c==="medium"&&(f?o.mediumVertical:o.mediumHorizontal),u&&c==="large"&&(f?o.largeVertical:o.largeHorizontal),u&&l&&o.disabled,e.root.className),e.icon&&(e.icon.className=Xe(NC.icon,i.base,i[c],u&&i.selected,e.icon.className)),e.contentReservedSpace&&(e.contentReservedSpace.className=Xe(m7e.content,s.base,c==="large"?s.largeSelected:s.selected,e.icon?s.iconBefore:s.noIconBefore,s.placeholder,e.content.className),e.contentReservedSpaceClassName=e.contentReservedSpace.className),e.content.className=Xe(NC.content,s.base,c==="large"&&s.large,u&&(c==="large"?s.largeSelected:s.selected),e.icon?s.iconBefore:s.noIconBefore,e.content.className),v7e(e),e},DB=A.forwardRef((e,t)=>{const r=d7e(e,t);return k7e(r),fn("useTabStyles_unstable")(r),h7e(r)});DB.displayName="Tab";const A7e=(e,t)=>{const{appearance:r="transparent",reserveSelectedTabSpace:n=!0,disabled:o=!1,onTabSelect:i,selectTabOnFocus:s=!1,size:a="medium",vertical:l=!1}=e,u=A.useRef(null),c=vle({circular:!0,axis:l?"vertical":"horizontal",memorizeCurrent:!0}),[f,d]=kf({state:e.selectedValue,defaultState:e.defaultSelectedValue,initialState:void 0}),h=A.useRef(void 0),g=A.useRef(void 0);A.useEffect(()=>{g.current=h.current,h.current=f},[f]);const v=ir((b,k)=>{d(k.value),i==null||i(b,k)}),y=A.useRef({}),E=ir(b=>{y.current[JSON.stringify(b.value)]=b}),_=ir(b=>{delete y.current[JSON.stringify(b.value)]}),S=A.useCallback(()=>({selectedValue:h.current,previousSelectedValue:g.current,registeredTabs:y.current}),[]);return{components:{root:"div"},root:yr(_n("div",{ref:Ho(t,u),role:"tablist","aria-orientation":l?"vertical":"horizontal",...c,...e}),{elementType:"div"}),appearance:r,reserveSelectedTabSpace:n,disabled:o,selectTabOnFocus:s,selectedValue:f,size:a,vertical:l,onRegister:E,onUnregister:_,onSelect:v,getRegisteredTabs:S}},x7e=(e,t)=>Je(e.root,{children:Je(f7e,{value:t.tabList,children:e.root.children})}),T7e={root:"fui-TabList"},I7e=bt({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fi64zpg{flex-shrink:0;}",".flvyvdh{flex-wrap:nowrap;}",".f10pi13n{position:relative;}",".f1q9h2pe{align-items:stretch;}",".f1vx9l62{flex-direction:column;}"]}),C7e=e=>{const{vertical:t}=e,r=I7e();return e.root.className=Xe(T7e.root,r.root,t?r.vertical:r.horizontal,e.root.className),e};function N7e(e){const{appearance:t,reserveSelectedTabSpace:r,disabled:n,selectTabOnFocus:o,selectedValue:i,onRegister:s,onUnregister:a,onSelect:l,getRegisteredTabs:u,size:c,vertical:f}=e;return{tabList:{appearance:t,reserveSelectedTabSpace:r,disabled:n,selectTabOnFocus:o,selectedValue:i,onSelect:l,onRegister:s,onUnregister:a,getRegisteredTabs:u,size:c,vertical:f}}}const yue=A.forwardRef((e,t)=>{const r=A7e(e,t),n=N7e(r);return C7e(r),fn("useTabListStyles_unstable")(r),x7e(r,n)});yue.displayName="TabList";const nh="__fluentDisableScrollElement";function R7e(){const{targetDocument:e}=Fa();return A.useCallback(()=>{if(e)return O7e(e.body)},[e])}function O7e(e){var t;const{clientWidth:r}=e.ownerDocument.documentElement;var n;const o=(n=(t=e.ownerDocument.defaultView)===null||t===void 0?void 0:t.innerWidth)!==null&&n!==void 0?n:0;return D7e(e),e[nh].count===0&&(e.style.overflow="hidden",e.style.paddingRight=`${o-r}px`),e[nh].count++,()=>{e[nh].count--,e[nh].count===0&&(e.style.overflow=e[nh].previousOverflowStyle,e.style.paddingRight=e[nh].previousPaddingRightStyle)}}function D7e(e){var t,r,n;(n=(t=e)[r=nh])!==null&&n!==void 0||(t[r]={count:0,previousOverflowStyle:e.style.overflow,previousPaddingRightStyle:e.style.paddingRight})}function F7e(e,t){const{findFirstFocusable:r}=mle(),{targetDocument:n}=Fa(),o=A.useRef(null);return A.useEffect(()=>{if(!e)return;const i=o.current&&r(o.current);if(i)i.focus();else{var s;(s=o.current)===null||s===void 0||s.focus()}},[r,e,t,n]),o}const B7e={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,dialogRef:{current:null},requestOpenChange(){}},i7=vv(void 0),M7e=i7.Provider,nf=e=>Yo(i7,(t=B7e)=>e(t)),L7e=!1,bue=A.createContext(void 0),_ue=bue.Provider,j7e=()=>{var e;return(e=A.useContext(bue))!==null&&e!==void 0?e:L7e},z7e=e=>{const{children:t,modalType:r="modal",onOpenChange:n,inertTrapFocus:o=!1}=e,[i,s]=H7e(t),[a,l]=kf({state:e.open,defaultState:e.defaultOpen,initialState:!1}),u=ir(v=>{n==null||n(v.event,v),v.event.isDefaultPrevented()||l(v.open)}),c=F7e(a,r),f=R7e(),d=!!(a&&r!=="non-modal");hc(()=>{if(d)return f()},[f,d]);const{modalAttributes:h,triggerAttributes:g}=jT({trapFocus:r!=="non-modal",legacyTrapFocus:!o});return{components:{backdrop:"div"},inertTrapFocus:o,open:a,modalType:r,content:s,trigger:i,requestOpenChange:u,dialogTitleId:Ks("dialog-title-"),isNestedDialog:WL(i7),dialogRef:c,modalAttributes:r!=="non-modal"?h:void 0,triggerAttributes:g}};function H7e(e){const t=A.Children.toArray(e);switch(t.length){case 2:return t;case 1:return[void 0,t[0]];default:return[void 0,void 0]}}function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function FB(e,t){return FB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},FB(e,t)}function a7(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,FB(e,t)}var Eue={exports:{}},$7e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",P7e=$7e,q7e=P7e;function Sue(){}function wue(){}wue.resetWarningCache=Sue;var W7e=function(){function e(n,o,i,s,a,l){if(l!==q7e){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:wue,resetWarningCache:Sue};return r.PropTypes=r,r};Eue.exports=W7e();var G7e=Eue.exports;const Mr=zf(G7e),rK={disabled:!1},kue=re.createContext(null);var K7e=function(t){return t.scrollTop},ly="unmounted",oh="exited",ih="entering",f0="entered",BB="exiting",Pf=function(e){a7(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var s=o,a=s&&!s.isMounting?n.enter:n.appear,l;return i.appearStatus=null,n.in?a?(l=oh,i.appearStatus=ih):l=f0:n.unmountOnExit||n.mountOnEnter?l=ly:l=oh,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===ly?{status:oh}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==ih&&s!==f0&&(i=ih):(s===ih||s===f0)&&(i=BB)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ih){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:oy.findDOMNode(this);s&&K7e(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===oh&&this.setState({status:ly})},r.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[oy.findDOMNode(this),a],u=l[0],c=l[1],f=this.getTimeouts(),d=a?f.appear:f.enter;if(!o&&!s||rK.disabled){this.safeSetState({status:f0},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:ih},function(){i.props.onEntering(u,c),i.onTransitionEnd(d,function(){i.safeSetState({status:f0},function(){i.props.onEntered(u,c)})})})},r.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:oy.findDOMNode(this);if(!i||rK.disabled){this.safeSetState({status:oh},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:BB},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:oh},function(){o.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:oy.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===ly)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=s7(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return re.createElement(kue.Provider,{value:null},typeof s=="function"?s(o,a):re.cloneElement(re.Children.only(s),a))},t}(re.Component);Pf.contextType=kue;Pf.propTypes={};function Kp(){}Pf.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Kp,onEntering:Kp,onEntered:Kp,onExit:Kp,onExiting:Kp,onExited:Kp};Pf.UNMOUNTED=ly;Pf.EXITED=oh;Pf.ENTERING=ih;Pf.ENTERED=f0;Pf.EXITING=BB;const V7e=Pf;function nK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const U7e=void 0,Aue=A.createContext(void 0),Y7e=Aue.Provider,X7e=()=>{var e;return(e=A.useContext(Aue))!==null&&e!==void 0?e:U7e},Q7e=(e,t)=>{const{content:r,trigger:n}=e;return Je(M7e,{value:t.dialog,children:zn(_ue,{value:t.dialogSurface,children:[n,Je(V7e,{mountOnEnter:!0,unmountOnExit:!0,in:e.open,nodeRef:e.dialogRef,appear:!0,timeout:250,children:o=>Je(Y7e,{value:o,children:r})})]})})};function Z7e(e){const{modalType:t,open:r,dialogRef:n,dialogTitleId:o,isNestedDialog:i,inertTrapFocus:s,requestOpenChange:a,modalAttributes:l,triggerAttributes:u}=e;return{dialog:{open:r,modalType:t,dialogRef:n,dialogTitleId:o,isNestedDialog:i,inertTrapFocus:s,modalAttributes:l,triggerAttributes:u,requestOpenChange:a},dialogSurface:!1}}const UT=A.memo(e=>{const t=z7e(e),r=Z7e(t);return Q7e(t,r)});UT.displayName="Dialog";const J7e=e=>{const t=j7e(),{children:r,disableButtonEnhancement:n=!1,action:o=t?"close":"open"}=e,i=BT(r),s=nf(f=>f.requestOpenChange),{triggerAttributes:a}=jT(),l=ir(f=>{var d,h;i==null||(d=(h=i.props).onClick)===null||d===void 0||d.call(h,f),f.isDefaultPrevented()||s({event:f,type:"triggerClick",open:o==="open"})}),u={...i==null?void 0:i.props,ref:i==null?void 0:i.ref,onClick:l,...a},c=Gb((i==null?void 0:i.type)==="button"||(i==null?void 0:i.type)==="a"?i.type:"div",{...u,type:"button"});return{children:jL(r,n?u:c)}},eje=e=>e.children,_v=e=>{const t=J7e(e);return eje(t)};_v.displayName="DialogTrigger";_v.isFluentTriggerComponent=!0;const tje=(e,t)=>{const{position:r="end",fluid:n=!1}=e;return{components:{root:"div"},root:yr(_n("div",{ref:t,...e}),{elementType:"div"}),position:r,fluid:n}},rje=e=>Je(e.root,{}),nje={root:"fui-DialogActions"},oje=Cn("r78gbj",null,{r:[".r78gbj{column-gap:8px;row-gap:8px;height:fit-content;box-sizing:border-box;display:flex;grid-row-start:3;grid-row-end:3;}"],s:["@media screen and (max-width: 480px){.r78gbj{flex-direction:column;justify-self:stretch;}}"]}),ije=bt({gridPositionEnd:{Bdqf98w:"f1a7i8kp",Br312pm:"fd46tj4",Bw0ie65:"fsyjsko",B6n781s:"f1f41i0t",Bv5d0be:"f1jaqex3",v4ugfu:"f2ao6jk"},gridPositionStart:{Bdqf98w:"fsxvdwy",Br312pm:"fwpfdsa",Bw0ie65:"f1e2fz10",Bojbm9c:"f11ihkml",Bv5d0be:"fce5bvx",v4ugfu:"f2ao6jk"},fluidStart:{Bw0ie65:"fsyjsko"},fluidEnd:{Br312pm:"fwpfdsa"}},{d:[".f1a7i8kp{justify-self:end;}",".fd46tj4{grid-column-start:2;}",".fsyjsko{grid-column-end:4;}",".fsxvdwy{justify-self:start;}",".fwpfdsa{grid-column-start:1;}",".f1e2fz10{grid-column-end:2;}"],m:[["@media screen and (max-width: 480px){.f1f41i0t{grid-column-start:1;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1jaqex3{grid-row-start:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f2ao6jk{grid-row-end:auto;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f11ihkml{grid-column-end:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.fce5bvx{grid-row-start:3;}}",{m:"screen and (max-width: 480px)"}]]}),sje=e=>{const t=oje(),r=ije();return e.root.className=Xe(nje.root,t,e.position==="start"&&r.gridPositionStart,e.position==="end"&&r.gridPositionEnd,e.fluid&&e.position==="start"&&r.fluidStart,e.fluid&&e.position==="end"&&r.fluidEnd,e.root.className),e},YT=A.forwardRef((e,t)=>{const r=tje(e,t);return sje(r),fn("useDialogActionsStyles_unstable")(r),rje(r)});YT.displayName="DialogActions";const aje=(e,t)=>{var r;return{components:{root:"div"},root:yr(_n((r=e.as)!==null&&r!==void 0?r:"div",{ref:t,...e}),{elementType:"div"})}},lje=e=>Je(e.root,{}),uje={root:"fui-DialogBody"},cje=Cn("r71plkv",null,{r:[".r71plkv{overflow-x:unset;overflow-y:unset;column-gap:8px;row-gap:8px;display:grid;max-height:calc(100vh - 2 * 24px);box-sizing:border-box;grid-template-rows:auto 1fr;grid-template-columns:1fr 1fr auto;}"],s:["@media screen and (max-width: 480px){.r71plkv{max-width:100vw;grid-template-rows:auto 1fr auto;}}"]}),fje=e=>{const t=cje();return e.root.className=Xe(uje.root,t,e.root.className),e},XT=A.forwardRef((e,t)=>{const r=aje(e,t);return fje(r),fn("useDialogBodyStyles_unstable")(r),lje(r)});XT.displayName="DialogBody";const oK={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},dje=Cn("rztv7rx","rt0yqbx",[".rztv7rx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}",".rt0yqbx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-left:0;margin-bottom:0;margin-right:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}"]),hje=bt({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),pje=Cn("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),gje=Cn("r51tj","rgre5d",{r:[".r51tj{overflow-x:visible;overflow-y:visible;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".r51tj:focus{outline-style:none;}",".r51tj:focus-visible{outline-style:none;}",".r51tj[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r51tj[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rgre5d{overflow-x:visible;overflow-y:visible;padding-top:0;padding-left:0;padding-bottom:0;padding-right:0;border-top-style:none;border-left-style:none;border-bottom-style:none;border-right-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".rgre5d:focus{outline-style:none;}",".rgre5d:focus-visible{outline-style:none;}",".rgre5d[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rgre5d[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r51tj[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rgre5d[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),vje=e=>{const t=dje(),r=pje(),n=hje();return e.root.className=Xe(oK.root,t,!e.action&&n.rootWithoutAction,e.root.className),e.action&&(e.action.className=Xe(oK.action,r,e.action.className)),e},mje=(e,t)=>{const{action:r}=e,n=nf(i=>i.modalType),o=gje();return{components:{root:"h2",action:"div"},root:yr(_n("h2",{ref:t,id:nf(i=>i.dialogTitleId),...e}),{elementType:"h2"}),action:tn(r,{renderByDefault:n==="non-modal",defaultProps:{children:A.createElement(_v,{disableButtonEnhancement:!0,action:"close"},A.createElement("button",{type:"button",className:o,"aria-label":"close"},A.createElement(Gae,null)))},elementType:"div"})}},yje=e=>zn(A.Fragment,{children:[Je(e.root,{children:e.root.children}),e.action&&Je(e.action,{})]}),QT=A.forwardRef((e,t)=>{const r=mje(e,t);return vje(r),fn("useDialogTitleStyles_unstable")(r),yje(r)});QT.displayName="DialogTitle";const bje=(e,t)=>{const r=nf(d=>d.modalType),n=nf(d=>d.isNestedDialog),o=X7e(),i=nf(d=>d.modalAttributes),s=nf(d=>d.dialogRef),a=nf(d=>d.requestOpenChange),l=nf(d=>d.dialogTitleId),u=ir(d=>{if(FL(e.backdrop)){var h,g;(h=(g=e.backdrop).onClick)===null||h===void 0||h.call(g,d)}r==="modal"&&!d.isDefaultPrevented()&&a({event:d,open:!1,type:"backdropClick"})}),c=ir(d=>{var h;(h=e.onKeyDown)===null||h===void 0||h.call(e,d),d.key===HT&&!d.isDefaultPrevented()&&(a({event:d,open:!1,type:"escapeKeyDown"}),d.preventDefault())}),f=tn(e.backdrop,{renderByDefault:r!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});return f&&(f.onClick=u),{components:{backdrop:"div",root:"div"},backdrop:f,isNestedDialog:n,transitionStatus:o,mountNode:e.mountNode,root:yr(_n("div",{tabIndex:-1,"aria-modal":r!=="non-modal",role:r==="alert"?"alertdialog":"dialog","aria-labelledby":e["aria-label"]?void 0:l,...e,...i,onKeyDown:c,ref:Ho(t,s)}),{elementType:"div"})}},_je=(e,t)=>zn(bv,{mountNode:e.mountNode,children:[e.backdrop&&Je(e.backdrop,{}),Je(_ue,{value:t.dialogSurface,children:Je(e.root,{})})]}),iK={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},Eje=Cn("rhhzfde","r1n1tr5u",{r:[".rhhzfde{top:0;right:0;bottom:0;left:0;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-right-radius:var(--borderRadiusXLarge);border-bottom-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".rhhzfde:focus{outline-style:none;}",".rhhzfde:focus-visible{outline-style:none;}",".rhhzfde[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rhhzfde[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1n1tr5u{top:0;left:0;bottom:0;right:0;padding-top:24px;padding-left:24px;padding-bottom:24px;padding-right:24px;margin-top:auto;margin-left:auto;margin-bottom:auto;margin-right:auto;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-left-radius:var(--borderRadiusXLarge);border-bottom-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".r1n1tr5u:focus{outline-style:none;}",".r1n1tr5u:focus-visible{outline-style:none;}",".r1n1tr5u[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1n1tr5u[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rhhzfde[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media screen and (max-width: 480px){.rhhzfde{max-width:100vw;}}","@media (forced-colors: active){.r1n1tr5u[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}","@media screen and (max-width: 480px){.r1n1tr5u{max-width:100vw;}}"]}),Sje=bt({animated:{abs64n:"fk73vx1",B3o57yi:"fc397y7",Bmy1vo4:"f1b86uth",Bkqvd7p:"f18ad807",E5pizo:"f1yzz98r",Bz10aip:"f15ofi6c"},unmounted:{},entering:{},entered:{E5pizo:"f10nrhrw",Bz10aip:"f186d0ee",abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".fk73vx1{opacity:0;}",".fc397y7{transition-duration:var(--durationGentle);}",".f1b86uth{transition-property:opacity,transform,box-shadow;}",".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1yzz98r{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.1);}",".f15ofi6c{transform:scale(0.85) translateZ(0);}",".f10nrhrw{box-shadow:var(--shadow64);}",".f186d0ee{transform:scale(1) translateZ(0);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),wje=Cn("raidwwn","r17vltcu",[".raidwwn{top:0px;right:0px;bottom:0px;left:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}",".r17vltcu{top:0px;left:0px;bottom:0px;right:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}"]),kje=bt({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},unmounted:{},entering:{},entered:{abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),Aje=e=>{const{isNestedDialog:t,root:r,backdrop:n,transitionStatus:o}=e,i=Eje(),s=Sje(),a=wje(),l=kje();return r.className=Xe(iK.root,i,o&&s.animated,o&&s[o],r.className),n&&(n.className=Xe(iK.backdrop,a,t&&l.nestedDialogBackdrop,o&&l[o],n.className)),e};function xje(e){return{dialogSurface:!0}}const ZT=A.forwardRef((e,t)=>{const r=bje(e,t),n=xje();return Aje(r),fn("useDialogSurfaceStyles_unstable")(r),_je(r,n)});ZT.displayName="DialogSurface";const Tje=(e,t)=>{var r;return{components:{root:"div"},root:yr(_n((r=e.as)!==null&&r!==void 0?r:"div",{ref:t,...e}),{elementType:"div"})}},Ije=e=>Je(e.root,{}),Cje={root:"fui-DialogContent"},Nje=Cn("r1e0mpcm","r1equu0b",[".r1e0mpcm{padding-top:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}",".r1equu0b{padding-top:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}"]),Rje=e=>{const t=Nje();return e.root.className=Xe(Cje.root,t,e.root.className),e},JT=A.forwardRef((e,t)=>{const r=Tje(e,t);return Rje(r),fn("useDialogContentStyles_unstable")(r),Ije(r)});JT.displayName="DialogContent";const xue=A.createContext(void 0),Oje={handleTagDismiss:()=>({}),size:"medium"};xue.Provider;const Dje=()=>{var e;return(e=A.useContext(xue))!==null&&e!==void 0?e:Oje},Fje={medium:28,small:20,"extra-small":16},Bje={rounded:"square",circular:"circular"},Mje=(e,t)=>{const{handleTagDismiss:r,size:n}=Dje(),o=Ks("fui-Tag",e.id),{appearance:i="filled",disabled:s=!1,dismissible:a=!1,shape:l="rounded",size:u=n,value:c=o}=e,f=ir(g=>{var v;(v=e.onClick)===null||v===void 0||v.call(e,g),g.defaultPrevented||r==null||r(g,{value:c})}),d=ir(g=>{var v;e==null||(v=e.onKeyDown)===null||v===void 0||v.call(e,g),!g.defaultPrevented&&(g.key===T6e||g.key===x6e)&&(r==null||r(g,{value:c}))}),h=a?"button":"span";return{appearance:i,avatarShape:Bje[l],avatarSize:Fje[u],disabled:s,dismissible:a,shape:l,size:u,components:{root:h,media:"span",icon:"span",primaryText:"span",secondaryText:"span",dismissIcon:"span"},root:yr(_n(h,{ref:t,...e,id:o,...a&&{onClick:f,onKeyDown:d}}),{elementType:h}),media:tn(e.media,{elementType:"span"}),icon:tn(e.icon,{elementType:"span"}),primaryText:tn(e.primaryText,{renderByDefault:!0,defaultProps:{children:e.children},elementType:"span"}),secondaryText:tn(e.secondaryText,{elementType:"span"}),dismissIcon:tn(e.dismissIcon,{renderByDefault:a,defaultProps:{children:A.createElement($ae,null),role:"img"},elementType:"span"})}},Lje=(e,t)=>zn(e.root,{children:[e.media&&Je(U6e,{value:t.avatar,children:Je(e.media,{})}),e.icon&&Je(e.icon,{}),e.primaryText&&Je(e.primaryText,{}),e.secondaryText&&Je(e.secondaryText,{}),e.dismissIcon&&e.dismissible&&Je(e.dismissIcon,{})]}),Vp={root:"fui-Tag",media:"fui-Tag__media",icon:"fui-Tag__icon",primaryText:"fui-Tag__primaryText",secondaryText:"fui-Tag__secondaryText",dismissIcon:"fui-Tag__dismissIcon"},jje=Cn("r1d3fbai","r89ofxt",{r:['.r1d3fbai{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r1d3fbai[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}",'.r89ofxt{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r89ofxt[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r1d3fbai{position:relative;}.r1d3fbai::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);}}','@media (forced-colors: active){.r89ofxt{position:relative;}.r89ofxt::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;position:absolute;top:-1px;right:-1px;left:-1px;bottom:-1px;border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);}}']}),zje=Cn("r76els4","r1g7lw0i",{r:['.r76els4{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r76els4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);border-bottom-left-radius:var(--borderRadiusCircular);border-top-right-radius:var(--borderRadiusCircular);border-top-left-radius:var(--borderRadiusCircular);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}",'.r1g7lw0i{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r1g7lw0i[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);border-bottom-right-radius:var(--borderRadiusCircular);border-top-left-radius:var(--borderRadiusCircular);border-top-right-radius:var(--borderRadiusCircular);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r76els4{position:relative;}.r76els4::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;border-left-width:var(--strokeWidthThin);border-left-style:solid;border-right-width:var(--strokeWidthThin);border-right-style:solid;position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-radius:var(--borderRadiusCircular);}}','@media (forced-colors: active){.r1g7lw0i{position:relative;}.r1g7lw0i::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;border-right-width:var(--strokeWidthThin);border-right-style:solid;border-left-width:var(--strokeWidthThin);border-left-style:solid;position:absolute;top:-1px;right:-1px;left:-1px;bottom:-1px;border-radius:var(--borderRadiusCircular);}}']}),Hje=bt({filled:{De3pzq:"f16xq7d1",sj55zd:"fkfq4zb"},outline:{De3pzq:"fhovq9v",sj55zd:"fkfq4zb",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"]},brand:{De3pzq:"f16xkysk",sj55zd:"faj9fo0"},medium:{Bqenvij:"f1d2rq10"},small:{Bqenvij:"frvgh55"},"extra-small":{Bqenvij:"fjamq6b"}},{d:[".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f1d2rq10{height:32px;}",".frvgh55{height:24px;}",".fjamq6b{height:20px;}"]}),$je=bt({filled:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]},outline:{Bceei9c:"fdrzuqr",De3pzq:"fhovq9v",sj55zd:"f1s2aq7o",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"]},brand:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]}},{d:[".fdrzuqr{cursor:not-allowed;}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fgig46g{border-top-color:var(--colorTransparentStrokeDisabled);}",".f1mxt3zg{border-right-color:var(--colorTransparentStrokeDisabled);}",".fziff3p{border-left-color:var(--colorTransparentStrokeDisabled);}",".f250w3l{border-bottom-color:var(--colorTransparentStrokeDisabled);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"]}),Pje=bt({medium:{uwmqm3:["f1rtp3s9","f18k1jr3"]},small:{uwmqm3:["f15vdbe4","fwiuce9"]},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"]}},{d:[".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}"]}),qje=bt({medium:{z189sj:["f18k1jr3","f1rtp3s9"]},small:{z189sj:["fwiuce9","f15vdbe4"]},"extra-small":{z189sj:["fwiuce9","f15vdbe4"]}},{d:[".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}"]}),Wje=bt({base:{Ijaq50:"f11uok23",Br312pm:"f1qdfnnj",nk6f5a:"f1s27gz",Bw0ie65:"f86d0yl",mc9l5x:"f22iagw"},medium:{uwmqm3:["f1rtp3s9","f18k1jr3"],z189sj:["f7x41pl","fruq291"],a9b677:"f64fuq3",Be2twd7:"fe5j1ua"},small:{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"fjw5fx7",Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"frx94fk",Be2twd7:"f1ugzwwg"}},{d:[".f11uok23{grid-row-start:media;}",".f1qdfnnj{grid-column-start:media;}",".f1s27gz{grid-row-end:media;}",".f86d0yl{grid-column-end:media;}",".f22iagw{display:flex;}",".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f64fuq3{width:20px;}",".fe5j1ua{font-size:20px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".fjw5fx7{width:16px;}",".f4ybsrx{font-size:16px;}",".frx94fk{width:12px;}",".f1ugzwwg{font-size:12px;}"]}),Gje=bt({base:{Ijaq50:"f11uok23",Br312pm:"f1qdfnnj",nk6f5a:"f1s27gz",Bw0ie65:"f86d0yl",mc9l5x:"f22iagw",uwmqm3:["f10xn8zz","f136y8j8"]},medium:{z189sj:["f1vdfbxk","f1f5gg8d"]},small:{z189sj:["fdw0yi8","fk8j09s"]},"extra-small":{z189sj:["fdw0yi8","fk8j09s"]}},{d:[".f11uok23{grid-row-start:media;}",".f1qdfnnj{grid-column-start:media;}",".f1s27gz{grid-row-end:media;}",".f86d0yl{grid-column-end:media;}",".f22iagw{display:flex;}",".f10xn8zz{padding-left:1px;}",".f136y8j8{padding-right:1px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}"]}),Kje=bt({base:{Ijaq50:"fneo8i2",Br312pm:"frbqjvc",nk6f5a:"f1a6k60w",Bw0ie65:"f1ay3jj",mc9l5x:"f22iagw",ze5xyy:"f4xjyn1",oy3o9n:"f1xtr1b3"},medium:{uwmqm3:["fruq291","f7x41pl"],z189sj:["f18k1jr3","f1rtp3s9"],Be2twd7:"fe5j1ua"},small:{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f1ugzwwg"},filled:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},outline:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},brand:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"}},{d:[".fneo8i2{grid-row-start:dismissIcon;}",".frbqjvc{grid-column-start:dismissIcon;}",".f1a6k60w{grid-row-end:dismissIcon;}",".f1ay3jj{grid-column-end:dismissIcon;}",".f22iagw{display:flex;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fe5j1ua{font-size:20px;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".f4ybsrx{font-size:16px;}",".f1ugzwwg{font-size:12px;}"],m:[["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1xtr1b3:active{color:Highlight;}}",{m:"(forced-colors: active)"}]],h:[".f8491dx:hover{cursor:pointer;}",".f3ymbdj:hover{color:var(--colorCompoundBrandForeground1Hover);}"],a:[".fryz5bw:active{color:var(--colorCompoundBrandForeground1Pressed);}"]}),Vje=bt({base:{Huce71:"fz5stix",uwmqm3:["fgiv446","ffczdla"],z189sj:["ffczdla","fgiv446"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},withoutSecondaryText:{Br312pm:"faqcfhe",Ijaq50:"f1q3ipgb",nk6f5a:"fc0ab3q",Byoj8tv:"f1g03r3y"},withSecondaryText:{Ijaq50:"f1q3ipgb",Br312pm:"faqcfhe",nk6f5a:"fs32cm1",Bw0ie65:"f1bo7viq",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",B6of3ja:"f1ryq6si"}},{d:[".fz5stix{white-space:nowrap;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".faqcfhe{grid-column-start:primary;}",".f1q3ipgb{grid-row-start:primary;}",".fc0ab3q{grid-row-end:secondary;}",".f1g03r3y{padding-bottom:var(--spacingHorizontalXXS);}",".fs32cm1{grid-row-end:primary;}",".f1bo7viq{grid-column-end:primary;}",".f1ryq6si{margin-top:-2px;}"]}),Uje=Cn("r7hv1ps","rnrslm9",[".r7hv1ps{grid-area:secondary;padding-left:var(--spacingHorizontalXXS);padding-right:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}",".rnrslm9{grid-area:secondary;padding-right:var(--spacingHorizontalXXS);padding-left:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}"]),Yje=e=>{const t=jje(),r=zje(),n=Hje(),o=$je(),i=Pje(),s=qje(),a=Wje(),l=Gje(),u=Kje(),c=Vje(),f=Uje(),{shape:d,size:h,appearance:g}=e;return e.root.className=Xe(Vp.root,d==="rounded"?t:r,e.disabled?o[g]:n[g],n[h],!e.media&&!e.icon&&i[h],!e.dismissIcon&&s[h],e.root.className),e.media&&(e.media.className=Xe(Vp.media,l.base,l[h],e.media.className)),e.icon&&(e.icon.className=Xe(Vp.icon,a.base,a[h],e.icon.className)),e.primaryText&&(e.primaryText.className=Xe(Vp.primaryText,c.base,c[h],e.secondaryText?c.withSecondaryText:c.withoutSecondaryText,e.primaryText.className)),e.secondaryText&&(e.secondaryText.className=Xe(Vp.secondaryText,f,e.secondaryText.className)),e.dismissIcon&&(e.dismissIcon.className=Xe(Vp.dismissIcon,u.base,u[h],!e.disabled&&u[g],e.dismissIcon.className)),e};function Xje(e){const{avatarSize:t,avatarShape:r}=e;return{avatar:A.useMemo(()=>({size:t,shape:r}),[r,t])}}const Tue=A.forwardRef((e,t)=>{const r=Mje(e,t);return Yje(r),fn("useTagStyles_unstable")(r),Lje(r,Xje(r))});Tue.displayName="Tag";function Qje(e){switch(e){case"info":return A.createElement(N3e,null);case"warning":return A.createElement(R3e,null);case"error":return A.createElement(C3e,null);case"success":return A.createElement(T3e,null);default:return null}}function Zje(e=!1){const{targetDocument:t}=Fa(),r=A.useReducer(()=>({}),{})[1],n=A.useRef(!1),o=A.useRef(null),i=A.useRef(-1),s=A.useCallback(l=>{const u=l[0],c=u==null?void 0:u.borderBoxSize[0];if(!c||!u)return;const{inlineSize:f}=c,{target:d}=u;if(!$b(d))return;let h;if(n.current)i.current{var u;if(!e||!l||!(t!=null&&t.defaultView))return;(u=o.current)===null||u===void 0||u.disconnect();const c=t.defaultView,f=new c.ResizeObserver(s);o.current=f,f.observe(l,{box:"border-box"})},[t,s,e]);return A.useEffect(()=>()=>{var l;(l=o.current)===null||l===void 0||l.disconnect()},[]),{ref:a,reflowing:n.current}}const Iue=A.createContext(void 0),Jje={className:"",nodeRef:A.createRef()};Iue.Provider;const eze=()=>{var e;return(e=A.useContext(Iue))!==null&&e!==void 0?e:Jje},tze=(e,t)=>{const{layout:r="auto",intent:n="info",politeness:o,shape:i="rounded"}=e,s=o??n==="info"?"polite":"assertive",a=r==="auto",{ref:l,reflowing:u}=Zje(a),c=a?u?"multiline":"singleline":r,{className:f,nodeRef:d}=eze(),h=A.useRef(null),g=A.useRef(null),{announce:v}=f3e(),y=Ks();return A.useEffect(()=>{var E,_;const S=(E=g.current)===null||E===void 0?void 0:E.textContent,b=(_=h.current)===null||_===void 0?void 0:_.textContent,k=[S,b].filter(Boolean).join(",");v(k,{polite:s==="polite",alert:s==="assertive"})},[g,h,v,s]),{components:{root:"div",icon:"div"},root:yr(_n("div",{ref:Ho(t,l,d),role:"group","aria-labelledby":y,...e}),{elementType:"div"}),icon:tn(e.icon,{renderByDefault:!0,elementType:"div",defaultProps:{children:Qje(n)}}),layout:c,intent:n,transitionClassName:f,actionsRef:h,bodyRef:g,titleId:y,shape:i}},Cue=A.createContext(void 0),rze={titleId:"",layout:"singleline",actionsRef:A.createRef(),bodyRef:A.createRef()},nze=Cue.Provider,Nue=()=>{var e;return(e=A.useContext(Cue))!==null&&e!==void 0?e:rze},oze=(e,t)=>Je(nze,{value:t.messageBar,children:zn(e.root,{children:[e.icon&&Je(e.icon,{}),e.root.children]})}),sK={root:"fui-MessageBar",icon:"fui-MessageBar__icon"},ize=Cn("rashqx","ri1c0vc",['.rashqx{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-left:var(--spacingHorizontalM);border-top-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}','.ri1c0vc{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-right:var(--spacingHorizontalM);border-top-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}']),sze=Cn("r1bxgyar","rv8i6h8",[".r1bxgyar{grid-row-start:icon;grid-column-start:icon;grid-row-end:icon;grid-column-end:icon;font-size:var(--fontSizeBase500);margin-right:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}",".rv8i6h8{grid-row-start:icon;grid-column-start:icon;grid-row-end:icon;grid-column-end:icon;font-size:var(--fontSizeBase500);margin-left:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}"]),aze=bt({rootMultiline:{Huce71:"f6juhto",Bt984gj:"f1s2louj",z8tnut:"f1ngh7ph",Budl1dq:"f17g0uqy",zoa1oz:"f1w7oly7"},secondaryActionsMultiline:{Brf1p80:"f1e8xxv9",B6of3ja:"f1gaxbfw",jrapky:"fqcjy3b",t21cq0:["fibjyge","f9yszdx"]},square:{Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]}},{d:[".f6juhto{white-space:normal;}",".f1s2louj{align-items:start;}",".f1ngh7ph{padding-top:var(--spacingVerticalMNudge);}",".f17g0uqy{grid-template-columns:auto 1fr auto;}",'.f1w7oly7{grid-template-areas:"icon body actions" "secondaryActions secondaryActions secondaryActions";}',".f1e8xxv9{justify-content:end;}",".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",".fqcjy3b{margin-bottom:var(--spacingVerticalS);}",".fibjyge{margin-right:0px;}",".f9yszdx{margin-left:0px;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}"]}),lze=bt({info:{},error:{sj55zd:"f1ca9wz"},warning:{sj55zd:"f14a4cve"},success:{sj55zd:"f36rra6"}},{d:[".f1ca9wz{color:var(--colorStatusDangerForeground1);}",".f14a4cve{color:var(--colorStatusWarningForeground3);}",".f36rra6{color:var(--colorStatusSuccessForeground1);}"]}),uze=bt({info:{},error:{De3pzq:"f1eon7jj",g2u3we:"f1f8dvr7",h3c5rm:["f1g1ijmo","f1nxacbt"],B9xav0g:"fo25q1j",zhjwy3:["f1nxacbt","f1g1ijmo"]},warning:{De3pzq:"f13ftzij",g2u3we:"frd1ypx",h3c5rm:["f1gyjrma","f18qd5xz"],B9xav0g:"fqyqtrt",zhjwy3:["f18qd5xz","f1gyjrma"]},success:{De3pzq:"f64thcm",g2u3we:"f1b4u7v",h3c5rm:["f1nyd2b1","f70v3om"],B9xav0g:"fk173vo",zhjwy3:["f70v3om","f1nyd2b1"]}},{d:[".f1eon7jj{background-color:var(--colorStatusDangerBackground1);}",".f1f8dvr7{border-top-color:var(--colorStatusDangerBorder1);}",".f1g1ijmo{border-right-color:var(--colorStatusDangerBorder1);}",".f1nxacbt{border-left-color:var(--colorStatusDangerBorder1);}",".fo25q1j{border-bottom-color:var(--colorStatusDangerBorder1);}",".f13ftzij{background-color:var(--colorStatusWarningBackground1);}",".frd1ypx{border-top-color:var(--colorStatusWarningBorder1);}",".f1gyjrma{border-right-color:var(--colorStatusWarningBorder1);}",".f18qd5xz{border-left-color:var(--colorStatusWarningBorder1);}",".fqyqtrt{border-bottom-color:var(--colorStatusWarningBorder1);}",".f64thcm{background-color:var(--colorStatusSuccessBackground1);}",".f1b4u7v{border-top-color:var(--colorStatusSuccessBorder1);}",".f1nyd2b1{border-right-color:var(--colorStatusSuccessBorder1);}",".f70v3om{border-left-color:var(--colorStatusSuccessBorder1);}",".fk173vo{border-bottom-color:var(--colorStatusSuccessBorder1);}"]}),cze=e=>{const t=ize(),r=sze(),n=lze(),o=uze(),i=aze();return e.root.className=Xe(sK.root,t,e.layout==="multiline"&&i.rootMultiline,e.shape==="square"&&i.square,o[e.intent],e.transitionClassName,e.root.className),e.icon&&(e.icon.className=Xe(sK.icon,r,n[e.intent],e.icon.className)),e};function fze(e){const{layout:t,actionsRef:r,bodyRef:n,titleId:o}=e;return{messageBar:A.useMemo(()=>({layout:t,actionsRef:r,bodyRef:n,titleId:o}),[t,r,n,o])}}const zg=A.forwardRef((e,t)=>{const r=tze(e,t);return cze(r),fn("useMessageBarStyles_unstable")(r),oze(r,fze(r))});zg.displayName="MessageBar";const dze=(e,t)=>{const{layout:r="singleline",actionsRef:n}=Nue();return{components:{root:"div",containerAction:"div"},containerAction:tn(e.containerAction,{renderByDefault:!1,elementType:"div"}),root:yr(_n("div",{ref:Ho(t,n),...e}),{elementType:"div"}),layout:r}},hze=(e,t)=>e.layout==="multiline"?zn(YG,{value:t.button,children:[e.containerAction&&Je(e.containerAction,{}),Je(e.root,{})]}):zn(YG,{value:t.button,children:[Je(e.root,{}),e.containerAction&&Je(e.containerAction,{})]}),aK={root:"fui-MessageBarActions",containerAction:"fui-MessageBarActions__containerAction"},pze=Cn("r1qydg9p","r1to27xx",[".r1qydg9p{grid-row-start:secondaryActions;grid-column-start:secondaryActions;grid-row-end:secondaryActions;grid-column-end:secondaryActions;display:flex;column-gap:var(--spacingHorizontalM);padding-right:var(--spacingHorizontalM);}",".r1to27xx{grid-row-start:secondaryActions;grid-column-start:secondaryActions;grid-row-end:secondaryActions;grid-column-end:secondaryActions;display:flex;column-gap:var(--spacingHorizontalM);padding-left:var(--spacingHorizontalM);}"]),gze=Cn("r1y6i9ar","rc0rof2",[".r1y6i9ar{grid-row-start:actions;grid-column-start:actions;grid-row-end:actions;grid-column-end:actions;padding-right:var(--spacingHorizontalM);}",".rc0rof2{grid-row-start:actions;grid-column-start:actions;grid-row-end:actions;grid-column-end:actions;padding-left:var(--spacingHorizontalM);}"]),vze=bt({root:{Brf1p80:"f1e8xxv9",B6of3ja:"f1gaxbfw",jrapky:"fqcjy3b",t21cq0:["fibjyge","f9yszdx"],z189sj:["f1p3vkop","f8cewkv"]}},{d:[".f1e8xxv9{justify-content:end;}",".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",".fqcjy3b{margin-bottom:var(--spacingVerticalS);}",".fibjyge{margin-right:0px;}",".f9yszdx{margin-left:0px;}",".f1p3vkop{padding-right:var(--spacingVerticalM);}",".f8cewkv{padding-left:var(--spacingVerticalM);}"]}),mze=e=>{const t=pze(),r=gze(),n=vze();return e.root.className=Xe(aK.root,t,e.layout==="multiline"&&n.root,e.root.className),e.containerAction&&(e.containerAction.className=Xe(aK.containerAction,r,e.containerAction.className)),e};function yze(){return{button:A.useMemo(()=>({size:"small"}),[])}}const Rue=A.forwardRef((e,t)=>{const r=dze(e,t);return mze(r),fn("useMessageBarActionsStyles_unstable")(r),hze(r,yze())});Rue.displayName="MessageBarActions";const bze=(e,t)=>{const{bodyRef:r}=Nue();return{components:{root:"div"},root:yr(_n("div",{ref:Ho(t,r),...e}),{elementType:"div"})}},_ze=e=>Je(e.root,{}),Eze={root:"fui-MessageBarBody"},Sze=Cn("rnv3mfe","r1ixc1x8",[".rnv3mfe{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-row-start:body;grid-column-start:body;grid-row-end:body;grid-column-end:body;padding-right:var(--spacingHorizontalM);}",".r1ixc1x8{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-row-start:body;grid-column-start:body;grid-row-end:body;grid-column-end:body;padding-left:var(--spacingHorizontalM);}"]),wze=e=>{const t=Sze();return e.root.className=Xe(Eze.root,t,e.root.className),e},MB=A.forwardRef((e,t)=>{const r=bze(e,t);return wze(r),fn("useMessageBarBodyStyles_unstable")(r),_ze(r)});MB.displayName="MessageBarBody";var l7={exports:{}},Oue=function(t,r){return function(){for(var o=new Array(arguments.length),i=0;i"u"}function Aze(e){return e!==null&&!LB(e)&&e.constructor!==null&&!LB(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function xze(e){return lp.call(e)==="[object ArrayBuffer]"}function Tze(e){return typeof FormData<"u"&&e instanceof FormData}function Ize(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Cze(e){return typeof e=="string"}function Nze(e){return typeof e=="number"}function Due(e){return e!==null&&typeof e=="object"}function Rk(e){if(lp.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Rze(e){return lp.call(e)==="[object Date]"}function Oze(e){return lp.call(e)==="[object File]"}function Dze(e){return lp.call(e)==="[object Blob]"}function Fue(e){return lp.call(e)==="[object Function]"}function Fze(e){return Due(e)&&Fue(e.pipe)}function Bze(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function Mze(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Lze(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function c7(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),u7(e))for(var r=0,n=e.length;r"u"||(Up.isArray(l)?u=u+"[]":l=[l],Up.forEach(l,function(f){Up.isDate(f)?f=f.toISOString():Up.isObject(f)&&(f=JSON.stringify(f)),i.push(lK(u)+"="+lK(f))}))}),o=i.join("&")}if(o){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t},Hze=Ba;function e9(){this.handlers=[]}e9.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};e9.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};e9.prototype.forEach=function(t){Hze.forEach(this.handlers,function(n){n!==null&&t(n)})};var $ze=e9,Pze=Ba,qze=function(t,r){Pze.forEach(t,function(o,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(t[r]=o,delete t[i])})},Mue=function(t,r,n,o,i){return t.config=r,n&&(t.code=n),t.request=o,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t},RC,uK;function Lue(){if(uK)return RC;uK=1;var e=Mue;return RC=function(r,n,o,i,s){var a=new Error(r);return e(a,n,o,i,s)},RC}var OC,cK;function Wze(){if(cK)return OC;cK=1;var e=Lue();return OC=function(r,n,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?r(o):n(e("Request failed with status code "+o.status,o.config,null,o.request,o))},OC}var DC,fK;function Gze(){if(fK)return DC;fK=1;var e=Ba;return DC=e.isStandardBrowserEnv()?function(){return{write:function(n,o,i,s,a,l){var u=[];u.push(n+"="+encodeURIComponent(o)),e.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),e.isString(s)&&u.push("path="+s),e.isString(a)&&u.push("domain="+a),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){var o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),DC}var FC,dK;function Kze(){return dK||(dK=1,FC=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),FC}var BC,hK;function Vze(){return hK||(hK=1,BC=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),BC}var MC,pK;function Uze(){if(pK)return MC;pK=1;var e=Kze(),t=Vze();return MC=function(n,o){return n&&!e(o)?t(n,o):o},MC}var LC,gK;function Yze(){if(gK)return LC;gK=1;var e=Ba,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return LC=function(n){var o={},i,s,a;return n&&e.forEach(n.split(` -`),function(u){if(a=u.indexOf(":"),i=e.trim(u.substr(0,a)).toLowerCase(),s=e.trim(u.substr(a+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([s]):o[i]=o[i]?o[i]+", "+s:s}}),o},LC}var jC,vK;function Xze(){if(vK)return jC;vK=1;var e=Ba;return jC=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),o;function i(s){var a=s;return r&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=i(window.location.href),function(a){var l=e.isString(a)?i(a):a;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),jC}var zC,mK;function yK(){if(mK)return zC;mK=1;var e=Ba,t=Wze(),r=Gze(),n=Bue,o=Uze(),i=Yze(),s=Xze(),a=Lue();return zC=function(u){return new Promise(function(f,d){var h=u.data,g=u.headers,v=u.responseType;e.isFormData(h)&&delete g["Content-Type"];var y=new XMLHttpRequest;if(u.auth){var E=u.auth.username||"",_=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";g.Authorization="Basic "+btoa(E+":"+_)}var S=o(u.baseURL,u.url);y.open(u.method.toUpperCase(),n(S,u.params,u.paramsSerializer),!0),y.timeout=u.timeout;function b(){if(y){var T="getAllResponseHeaders"in y?i(y.getAllResponseHeaders()):null,x=!v||v==="text"||v==="json"?y.responseText:y.response,I={data:x,status:y.status,statusText:y.statusText,headers:T,config:u,request:y};t(f,d,I),y=null}}if("onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(b)},y.onabort=function(){y&&(d(a("Request aborted",u,"ECONNABORTED",y)),y=null)},y.onerror=function(){d(a("Network Error",u,null,y)),y=null},y.ontimeout=function(){var x="timeout of "+u.timeout+"ms exceeded";u.timeoutErrorMessage&&(x=u.timeoutErrorMessage),d(a(x,u,u.transitional&&u.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},e.isStandardBrowserEnv()){var k=(u.withCredentials||s(S))&&u.xsrfCookieName?r.read(u.xsrfCookieName):void 0;k&&(g[u.xsrfHeaderName]=k)}"setRequestHeader"in y&&e.forEach(g,function(x,I){typeof h>"u"&&I.toLowerCase()==="content-type"?delete g[I]:y.setRequestHeader(I,x)}),e.isUndefined(u.withCredentials)||(y.withCredentials=!!u.withCredentials),v&&v!=="json"&&(y.responseType=u.responseType),typeof u.onDownloadProgress=="function"&&y.addEventListener("progress",u.onDownloadProgress),typeof u.onUploadProgress=="function"&&y.upload&&y.upload.addEventListener("progress",u.onUploadProgress),u.cancelToken&&u.cancelToken.promise.then(function(x){y&&(y.abort(),d(x),y=null)}),h||(h=null),y.send(h)})},zC}var ci=Ba,bK=qze,Qze=Mue,Zze={"Content-Type":"application/x-www-form-urlencoded"};function _K(e,t){!ci.isUndefined(e)&&ci.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function Jze(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=yK()),e}function eHe(e,t,r){if(ci.isString(e))try{return(t||JSON.parse)(e),ci.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var t9={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Jze(),transformRequest:[function(t,r){return bK(r,"Accept"),bK(r,"Content-Type"),ci.isFormData(t)||ci.isArrayBuffer(t)||ci.isBuffer(t)||ci.isStream(t)||ci.isFile(t)||ci.isBlob(t)?t:ci.isArrayBufferView(t)?t.buffer:ci.isURLSearchParams(t)?(_K(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):ci.isObject(t)||r&&r["Content-Type"]==="application/json"?(_K(r,"application/json"),eHe(t)):t}],transformResponse:[function(t){var r=this.transitional,n=r&&r.silentJSONParsing,o=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||o&&ci.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?Qze(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};t9.headers={common:{Accept:"application/json, text/plain, */*"}};ci.forEach(["delete","get","head"],function(t){t9.headers[t]={}});ci.forEach(["post","put","patch"],function(t){t9.headers[t]=ci.merge(Zze)});var f7=t9,tHe=Ba,rHe=f7,nHe=function(t,r,n){var o=this||rHe;return tHe.forEach(n,function(s){t=s.call(o,t,r)}),t},HC,EK;function jue(){return EK||(EK=1,HC=function(t){return!!(t&&t.__CANCEL__)}),HC}var SK=Ba,$C=nHe,oHe=jue(),iHe=f7;function PC(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var sHe=function(t){PC(t),t.headers=t.headers||{},t.data=$C.call(t,t.data,t.headers,t.transformRequest),t.headers=SK.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),SK.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var r=t.adapter||iHe.adapter;return r(t).then(function(o){return PC(t),o.data=$C.call(t,o.data,o.headers,t.transformResponse),o},function(o){return oHe(o)||(PC(t),o&&o.response&&(o.response.data=$C.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},ki=Ba,zue=function(t,r){r=r||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function l(d,h){return ki.isPlainObject(d)&&ki.isPlainObject(h)?ki.merge(d,h):ki.isPlainObject(h)?ki.merge({},h):ki.isArray(h)?h.slice():h}function u(d){ki.isUndefined(r[d])?ki.isUndefined(t[d])||(n[d]=l(void 0,t[d])):n[d]=l(t[d],r[d])}ki.forEach(o,function(h){ki.isUndefined(r[h])||(n[h]=l(void 0,r[h]))}),ki.forEach(i,u),ki.forEach(s,function(h){ki.isUndefined(r[h])?ki.isUndefined(t[h])||(n[h]=l(void 0,t[h])):n[h]=l(void 0,r[h])}),ki.forEach(a,function(h){h in r?n[h]=l(t[h],r[h]):h in t&&(n[h]=l(void 0,t[h]))});var c=o.concat(i).concat(s).concat(a),f=Object.keys(t).concat(Object.keys(r)).filter(function(h){return c.indexOf(h)===-1});return ki.forEach(f,u),n};const aHe="axios",lHe="0.21.4",uHe="Promise based HTTP client for the browser and node.js",cHe="index.js",fHe={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},dHe={type:"git",url:"https://github.com/axios/axios.git"},hHe=["xhr","http","ajax","promise","node"],pHe="Matt Zabriskie",gHe="MIT",vHe={url:"https://github.com/axios/axios/issues"},mHe="https://axios-http.com",yHe={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},bHe={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},_He="dist/axios.min.js",EHe="dist/axios.min.js",SHe="./index.d.ts",wHe={"follow-redirects":"^1.14.0"},kHe=[{path:"./dist/axios.min.js",threshold:"5kB"}],AHe={name:aHe,version:lHe,description:uHe,main:cHe,scripts:fHe,repository:dHe,keywords:hHe,author:pHe,license:gHe,bugs:vHe,homepage:mHe,devDependencies:yHe,browser:bHe,jsdelivr:_He,unpkg:EHe,typings:SHe,dependencies:wHe,bundlesize:kHe};var Hue=AHe,d7={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){d7[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var wK={},xHe=Hue.version.split(".");function $ue(e,t){for(var r=t?t.split("."):xHe,n=e.split("."),o=0;o<3;o++){if(r[o]>n[o])return!0;if(r[o]0;){var i=n[o],s=t[i];if(s){var a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new TypeError("option "+i+" must be "+l);continue}if(r!==!0)throw Error("Unknown option "+i)}}var IHe={isOlderVersion:$ue,assertOptions:THe,validators:d7},Pue=Ba,CHe=Bue,kK=$ze,AK=sHe,r9=zue,que=IHe,Yp=que.validators;function rE(e){this.defaults=e,this.interceptors={request:new kK,response:new kK}}rE.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=r9(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&que.assertOptions(r,{silentJSONParsing:Yp.transitional(Yp.boolean,"1.0.0"),forcedJSONParsing:Yp.transitional(Yp.boolean,"1.0.0"),clarifyTimeoutError:Yp.transitional(Yp.boolean,"1.0.0")},!1);var n=[],o=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(t)===!1||(o=o&&d.synchronous,n.unshift(d.fulfilled,d.rejected))});var i=[];this.interceptors.response.forEach(function(d){i.push(d.fulfilled,d.rejected)});var s;if(!o){var a=[AK,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(i),s=Promise.resolve(t);a.length;)s=s.then(a.shift(),a.shift());return s}for(var l=t;n.length;){var u=n.shift(),c=n.shift();try{l=u(l)}catch(f){c(f);break}}try{s=AK(l)}catch(f){return Promise.reject(f)}for(;i.length;)s=s.then(i.shift(),i.shift());return s};rE.prototype.getUri=function(t){return t=r9(this.defaults,t),CHe(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Pue.forEach(["delete","get","head","options"],function(t){rE.prototype[t]=function(r,n){return this.request(r9(n||{},{method:t,url:r,data:(n||{}).data}))}});Pue.forEach(["post","put","patch"],function(t){rE.prototype[t]=function(r,n,o){return this.request(r9(o||{},{method:t,url:r,data:n}))}});var NHe=rE,qC,xK;function Wue(){if(xK)return qC;xK=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,qC=e,qC}var WC,TK;function RHe(){if(TK)return WC;TK=1;var e=Wue();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(s){n=s});var o=this;r(function(s){o.reason||(o.reason=new e(s),n(o.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.source=function(){var n,o=new t(function(s){n=s});return{token:o,cancel:n}},WC=t,WC}var GC,IK;function OHe(){return IK||(IK=1,GC=function(t){return function(n){return t.apply(null,n)}}),GC}var KC,CK;function DHe(){return CK||(CK=1,KC=function(t){return typeof t=="object"&&t.isAxiosError===!0}),KC}var NK=Ba,FHe=Oue,Ok=NHe,BHe=zue,MHe=f7;function Gue(e){var t=new Ok(e),r=FHe(Ok.prototype.request,t);return NK.extend(r,Ok.prototype,t),NK.extend(r,t),r}var du=Gue(MHe);du.Axios=Ok;du.create=function(t){return Gue(BHe(du.defaults,t))};du.Cancel=Wue();du.CancelToken=RHe();du.isCancel=jue();du.all=function(t){return Promise.all(t)};du.spread=OHe();du.isAxiosError=DHe();l7.exports=du;l7.exports.default=du;var LHe=l7.exports,jHe=LHe;const zHe=zf(jHe);var zB={exports:{}},RK=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(RK){var OK=new Uint8Array(16);zB.exports=function(){return RK(OK),OK}}else{var DK=new Array(16);zB.exports=function(){for(var t=0,r;t<16;t++)t&3||(r=Math.random()*4294967296),DK[t]=r>>>((t&3)<<3)&255;return DK}}var Kue=zB.exports,Vue=[];for(var pw=0;pw<256;++pw)Vue[pw]=(pw+256).toString(16).substr(1);function HHe(e,t){var r=t||0,n=Vue;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}var Uue=HHe,$He=Kue,PHe=Uue,FK,VC,UC=0,YC=0;function qHe(e,t,r){var n=t&&r||0,o=t||[];e=e||{};var i=e.node||FK,s=e.clockseq!==void 0?e.clockseq:VC;if(i==null||s==null){var a=$He();i==null&&(i=FK=[a[0]|1,a[1],a[2],a[3],a[4],a[5]]),s==null&&(s=VC=(a[6]<<8|a[7])&16383)}var l=e.msecs!==void 0?e.msecs:new Date().getTime(),u=e.nsecs!==void 0?e.nsecs:YC+1,c=l-UC+(u-YC)/1e4;if(c<0&&e.clockseq===void 0&&(s=s+1&16383),(c<0||l>UC)&&e.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");UC=l,YC=u,VC=s,l+=122192928e5;var f=((l&268435455)*1e4+u)%4294967296;o[n++]=f>>>24&255,o[n++]=f>>>16&255,o[n++]=f>>>8&255,o[n++]=f&255;var d=l/4294967296*1e4&268435455;o[n++]=d>>>8&255,o[n++]=d&255,o[n++]=d>>>24&15|16,o[n++]=d>>>16&255,o[n++]=s>>>8|128,o[n++]=s&255;for(var h=0;h<6;++h)o[n+h]=i[h];return t||PHe(o)}var WHe=qHe,GHe=Kue,KHe=Uue;function VHe(e,t,r){var n=t&&r||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||GHe)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||KHe(o)}var UHe=VHe,YHe=WHe,Yue=UHe,h7=Yue;h7.v1=YHe;h7.v4=Yue;var Ri=h7;const Ki="variant_0",Xp="chat_input",sh="chat_history",Mm="chat_output",BK="role",MK="content";var Xue=(e=>(e.OpenCodeFileInNode="OpenCodeFileInNode",e.ShowWarningIconOnNode="ShowWarningIconOnNode",e))(Xue||{}),Rn=(e=>(e.OpenAI="OpenAI",e.AzureOpenAI="AzureOpenAI",e.Serp="Serp",e.Bing="Bing",e.AzureContentModerator="AzureContentModerator",e.Custom="Custom",e.AzureContentSafety="AzureContentSafety",e.CognitiveSearch="CognitiveSearch",e.SubstrateLLM="SubstrateLLM",e.Pinecone="Pinecone",e.Qdrant="Qdrant",e.Weaviate="Weaviate",e.FormRecognizer="FormRecognizer",e.Serverless="Serverless",e))(Rn||{}),Ad=(e=>(e.Default="Default",e.Evaluation="Evaluation",e.Chat="Chat",e.Rag="Rag",e))(Ad||{}),Que=(e=>(e.default="default",e.uionly_hidden="uionly_hidden",e))(Que||{}),Zue=(e=>(e.Horizontal="Horizontal",e.Vertical="Vertical",e))(Zue||{}),Oi=(e=>(e.llm="llm",e.python="python",e.action="action",e.prompt="prompt",e.custom_llm="custom_llm",e.csharp="csharp",e.typescript="typescript",e))(Oi||{}),Te=(e=>(e.int="int",e.double="double",e.bool="bool",e.string="string",e.secret="secret",e.prompt_template="prompt_template",e.object="object",e.list="list",e.BingConnection="BingConnection",e.OpenAIConnection="OpenAIConnection",e.AzureOpenAIConnection="AzureOpenAIConnection",e.AzureContentModeratorConnection="AzureContentModeratorConnection",e.CustomConnection="CustomConnection",e.AzureContentSafetyConnection="AzureContentSafetyConnection",e.SerpConnection="SerpConnection",e.CognitiveSearchConnection="CognitiveSearchConnection",e.SubstrateLLMConnection="SubstrateLLMConnection",e.PineconeConnection="PineconeConnection",e.QdrantConnection="QdrantConnection",e.WeaviateConnection="WeaviateConnection",e.function_list="function_list",e.function_str="function_str",e.FormRecognizerConnection="FormRecognizerConnection",e.file_path="file_path",e.image="image",e.assistant_definition="assistant_definition",e.ServerlessConnection="ServerlessConnection",e))(Te||{});const XHe="flow",QHe="inputs",LK="inputs",ZHe="outputs",jK=e=>[XHe,QHe].includes(e),Jue=["#637CEF","#E61C99","#00A5AF","#9470BD","#689920","#3487C7","#CA5010","#009B51","#B27C00","#B146C2","#4F6BED","#EE5FB7","#008B94","#D77440","#BA58C9","#3A96DD","#E3008C","#57811B","#C36BD1","#D06228","#6E0811","#C50F1F","#F7630C","#107C10","#094509"];var Ai=(e=>(e.CircularDependency="CircularDependency",e.InputDependencyNotFound="InputDependencyNotFound",e.InputGenerateError="InputGenerateError",e.InputSelfReference="InputSelfReference",e.InputEmpty="InputEmpty",e.InputInvalidType="InputInvalidType",e.NodeConfigInvalid="NodeConfigInvalid",e.UnparsedCode="UnparsedCode",e.EmptyCode="EmptyCode",e.MissingTool="MissingTool",e.AutoParseInputError="AutoParseInputError",e.RuntimeNameEmpty="RuntimeNameEmpty",e.RuntimeStatusInvalid="RuntimeStatusInvalid",e))(Ai||{}),ece=(e=>(e.Standard="Standard",e.Interactive="Interactive",e.InteractiveMultiModal="InteractiveMultiModal",e))(ece||{}),cn=(e=>(e.CONNECTION_ADD_REQUEST="connection.add.request",e.CONNECTION_GET_DEPLOYMENTS_REQUEST="connection.get.deployments.request",e.CONNECTION_GET_DEPLOYMENTS_RESPONSE="connection.get.deployments.response",e.CONNECTION_LIST_REQUEST="connection.list.request",e.CONNECTION_LIST_RESPONSE="connection.list.response",e.CONNECTION_SPEC_LIST_REQUEST="connection.spec.list.request",e.CONNECTION_SPEC_LIST_RESPONSE="connection.spec.list.response",e.DYNAMIC_LIST_REQUEST="dynamic.list.request",e.DYNAMIC_LIST_RESPONSE="dynamic.list.response",e.GENERATED_BY_REQUEST="generated.by.request",e.GENERATED_BY_RESPONSE="generated.by.response",e.SAMPLE_TREE_REFRESH="sample.tree.refresh",e.RECENT_VISITED_FLOW_TREE_REFRESH="recent.visited.flow.tree.refresh",e.RUNTIME_NEED_UPGRADE_REQUEST="runtime.needUpgrade.request",e.RUNTIME_NEED_UPGRADE_RESPONSE="runtime.needUpgrade.response",e.FLOW_DAG_OPEN="flow.dag.open",e.DAG_STEP_SELECTED="dag.step.selected",e.DAG_STEP_CLEAR_SELECTION="dag.step.clear.selection",e.EDIT_PMT_FILE="edit.pmt.file",e.INIT_PMT_FILE="init.pmt.file",e.INIT_PMT_FILE_FINISHED="init.pmt.file.finished",e.FIRST_RENDER_FINISHED="first.render.finished",e.UPDATE_PMT_FILE="update.pmt.file",e.PMT_FILE_READY="pmt.file.ready",e.EDIT_FLOW_LAYOUT="edit.flow.layout",e.WORKSPACE_READY="workspace.ready",e.PMT_FILE_ADD_NODE="pmt.file.addNode",e.PMT_FILE_REMOVE_NODE="pmt.file.removeNode",e.PMT_FILE_DUPLICATE_TOOL="pmt.file.duplicateTool",e.READ_PMT_FILE_REQUEST="read.pmt.file.request",e.READ_PMT_FILE_RESPONSE="read.pmt.file.response",e.READ_PMT_SUBMIT_DATA_REQUEST="read.pmt.submit.data.request",e.READ_PMT_SUBMIT_DATA_RESPONSE="read.pmt.submit.data.response",e.PATCH_EDIT_PMT_FLOW_REQUEST="patch.edit.pmt.flow.request",e.PATCH_EDIT_PMT_FLOW_RESPONSE="patch.edit.pmt.flow.response",e.PROMPT_TOOL_SETTING_FETCH="promptToolSetting.fetch",e.PROMPT_TOOL_SETTING_LOAD="promptToolSetting.load",e.FLATTEN_OPEN_FLOW_INPUTS="flatten.openInputsFile",e.FLATTEN_VIEW_CODE_DIFF="flatten.viewCodeDiff",e.FLATTEN_STEP_LOCATE="flatten.step.locate",e.FLATTEN_ADD_NODE="flatten.addNode",e.OPEN_RUN_HISTORY_VIEW="open.runHistory.view",e.TRIGGER_OPEN_RUN_HISTORY_VIEW="trigger.open.runHistory.view",e.STATUS_LOAD="status.load",e.BULK_TEST_STATUS_LOAD="bulkTest.status.load",e.BULK_TEST_INDEX_SELECTED="bulkTest.index.selected",e.REQUEST_STEP_RUN_SUBMIT="request.step.run.submit",e.REQUEST_STEP_RUN_LOAD="request.step.load",e.BULK_TEST_OPEN_VIEW="bulkTest.open.view",e.BULK_TEST_SELECT_DATASETS="bulkTest.select.datasets",e.BULK_TEST_SELECT_DATASETS_READY="bulkTest.select.datasets.ready",e.TRIGGER_EXPORT="trigger.export",e.DAG_DOUBLE_CLICK_NODE="dag.double.click.node",e.OPEN_CHAT_VIEW="open.chat.view",e.OPEN_CHAT_VIEW_IN_BROWSER="open.chat.view.in.browser",e.DEPLOY_FLOW="deploy.flow",e.SAVE_TOOL_CODE="save.tool.code",e.UPDATE_FlOW_INPUT="update.flow.input",e.TRIGGER_RENAME_NODE="trigger.rename.node",e.COMMIT_RENAME_NODE="commit.rename.node",e.CHANGE_LLM_NODE_API="change.llm.node.api",e.TRIGGER_CUSTOM_SELECT="trigger.custom.select",e.COMMIT_CUSTOM_SELECT="commit.custom.select",e.OPEN_LOG="open.log",e.SHOW_MESSAGE_IN_OUTPUT_PANEL="show.message.in.output.panel",e.SUBMIT_FLOW_RUN="submit.flow.run",e.SUBMIT_FLOW_RUN_FINISHED="submit.flow.run.finished",e.SUBMIT_FLOW_EVAL="submit.flow.eval",e.SUBMIT_FLOW_EVAL_RESPONSE="submit.flow.eval.response",e.SUBMIT_BULK_TEST_RUN="submit.bulk.test.run",e.OPEN_FLOW_RUN_LOG="open.flow.run.log",e.STATUSBAR_OPEN_LOG="statusbar.open.log",e.OPEN_CODE_FILE="open.code.file",e.OPEN_LINK="open.link",e.READ_FLOW_UIHINT_REQUEST="read.flow.uihint.request",e.READ_FLOW_UIHINT_RESPONSE="read.flow.uihint.response",e.READ_FLOW_RUN_RESULT_REQUEST="read.flow.run.result.request",e.READ_FLOW_RUN_RESULT_RESPONSE="read.flow.run.result.response",e.WRITE_FLOW_UIHINT="write.flow.uihint",e.SELECT_FILE_REQUEST="select.file.request",e.SELECT_FILE_RESPONSE="select.file.response",e.FILE_RELATIVE_PATH_REQUEST="file.relative.path.request",e.FILE_RELATIVE_PATH_RESPONSE="file.relative.path.response",e.EXTENSION_CONFIGURATION_REQUEST="extension.configuration.request",e.EXTENSION_CONFIGURATION_RESPONSE="extension.configuration.response",e.TOOL_CODE_CHANGED="tool.code.changed",e.RUN_RESULT_CHANGED="run.result.changed",e.GENERATE_TOOL_META="generate.tool.meta",e.GENERATE_TOOL_META_ADVANCED="generate.tool.meta.advanced",e.GENERATE_TOOLS_FROM_FLOW_DAG_YAML="generate.tools.from.flow.dag.yaml",e.BULK_TEST_SELECT_INPUT_FILE="bulkTest.select.input.file",e.BULK_TEST_SELECT_INPUT_FILE_READY="bulkTest.select.input.file.ready",e.SUBMIT_DEBUG_SINGLE_NODE_RUN="submit.debug.single.node.run",e.DAG_ZOOM_IN="dag.zoom.in",e.DAG_ZOOM_OUT="dag.zoom.out",e.DAG_ZOOM_TO_FIT="dag.zoom.to.fit",e.DAG_ZOOM_TO_ACTUAL_SIZE="dag.zoom.to.actual.size",e.DAG_AUTO_LAYOUT="dag.auto.layout",e.TOGGLE_SIMPLE_MODE="toggle.simple.mode",e.TOGGLE_ORIENTATION="toggle.orientation",e.PRINT_LOG="print.log",e.EDIT_FUNCTIONS_REQUEST="edit.functions.request",e.EDIT_FUNCTIONS_RESPONSE="edit.functions.response",e.CREATE_FUNCTIONS_FROM_TOOLS_REQUEST="create.functions.from.tools.request",e.TOOLS_JSON_CHANGED="tools.json.changed",e.TOOL_LIST_UPDATED="tool.list.updated",e.REFRESH_TOOL_LIST="refresh.tool.list",e.REQUEST_CONDA_ENV_NAME="request.conda.env.name",e.RES_CONDA_ENV_NAME="res.conda.env.name",e.RUN_COMMAND_IN_TERMINAL="run.command.in.terminal",e.COPY_COMMAND_TO_TERMINAL="copy.command.to.terminal",e.REQ_PFSDK_VERSION="req.pfsdk.version",e.RES_PFSDK_VERSION="res.pfsdk.version",e.REQ_PFCORE_VERSION="req.pfcore.version",e.RES_PFCORE_VERSION="res.pfcore.version",e.REQ_PFTOOLS_VERSION="req.pftools.version",e.RES_PFTOOLS_VERSION="res.pftools.version",e.REQ_PFDEVKIT_VERSION="req.pfdevkit.version",e.RES_PFDEVKIT_VERSION="res.pfdevkit.version",e.REQ_PFTRACING_VERSION="req.pftracing.version",e.RES_PFTRACING_VERSION="res.pftracing.version",e.REQ_PFAZURE_VERSION="req.pfazure.version",e.RES_PFAZURE_VERSION="res.pfazure.version",e.REQ_PFEVALS_VERSION="req.pfevals.version",e.RES_PFEVALS_VERSION="res.pfevals.version",e.REQ_PFRECORDING_VERSION="req.pfrecording.version",e.RES_PFRECORDING_VERSION="res.pfrecording.version",e.REQ_PFUTIL_PATH="req.pfutil.path",e.RES_PFUTIL_PATH="res.pfutil.path",e.REQ_PYTHON_INTERPRETER="req.python.interpreter",e.RES_PYTHON_INTERPRETER="res.python.interpreter",e.SELECT_PYTHON_INTERPRETER="select.python.interpreter",e.REQ_PACKAGE_INSTALLED="req.package.installed",e.RES_PACKAGE_INSTALLED="res.package.installed",e.EXECUTE_VSC_COMMAND="execute.vsc.command",e.DEBUG_FLOW="debug.flow",e.REQ_API_CALLS="req.api.calls",e.RES_API_CALLS="res.api.calls",e.ERROR_BOUNDARY_CAUGHT="error.boundary.caught",e.EVALUATE_BATCH_RUNS="evaluate.batch.runs",e.METRIC_WEBVIEW_LCP="metric.webview.lcp",e.OPEN_FLOW_DIR="open.flow.dir",e.GET_FILE_WEBVIEW_URI="get.file.webview.uri",e.SEND_FILE_WEBVIEW_URI="send.file.webview.uri",e.CURRENT_FLOW_REQUEST="current.flow.request",e.CURRENT_FLOW_RESPONSE="current.flow.response",e.CURRENT_FLOW_CONFIRM="current.flow.confirm",e.READ_FLOW_UX_INPUTS_REQUEST="read.flow.ux.inputs.request",e.READ_FLOW_UX_INPUTS_RESPONSE="read.flow.ux.inputs.response",e.SET_FLOW_UX_INPUTS="set.flow.ux.inputs",e.SET_FLOW_CHAT_CONFIG="set.flow.chat.config",e.READ_VSCODE_THEME_REQUEST="read.vscode.theme.request",e.READ_VSCODE_THEME_RESPONSE="read.vscode.theme.response",e.READ_CHAT_CONSOLE_RESPONSE="read.chat.console.response",e))(cn||{}),Yb=(e=>(e.System="system",e.ErrorHandler="error",e.Chatbot="chatbot",e.User="user",e))(Yb||{}),p7=(e=>(e.Text="text",e.Typing="typing",e.SessionSplit="session-split",e))(p7||{}),At=(e=>(e.Dag="Dag flow",e.Prompty="Prompty",e.Flex="Flex flow",e))(At||{}),HB=(e=>(e.User="user",e.Assistant="assistant",e))(HB||{});const JHe=e=>e==="true"||e==="True"||e===!0,e$e=e=>Array.isArray(e)?Te.list:typeof e=="boolean"?Te.bool:typeof e=="string"?Te.string:typeof e=="number"?Number.isInteger(e)?Te.int:Te.double:Te.object;function t$e(e){if(e==null)return;switch(e$e(e)){case Te.string:return e;case Te.int:case Te.double:return e.toString();case Te.bool:return e?"True":"False";case Te.object:case Te.list:return JSON.stringify(e);default:return String(e)}}var KA={exports:{}};/** + */class VFe{constructor(t){this.keyboardNavigation=t.keyboardNavigation,this.focusedElement=t.focusedElement,this.focusable=t.focusable,this.root=t.root,this.uncontrolled=t.uncontrolled,this.core=t}}class UFe{constructor(t,r){var n,o;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="5.2.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=vFe(t),this._win=t;const i=this.getWindow;this.keyboardNavigation=new OFe(i),this.focusedElement=new uo(this,i),this.focusable=new NFe(this),this.root=new jo(this,r==null?void 0:r.autoRoot),this.uncontrolled=new qFe((r==null?void 0:r.checkUncontrolledCompletely)||(r==null?void 0:r.checkUncontrolledTrappingFocus)),this.controlTab=(n=r==null?void 0:r.controlTab)!==null&&n!==void 0?n:!0,this.rootDummyInputs=!!(r!=null&&r.rootDummyInputs),this._dummyObserver=new AFe(i),this.getParent=(o=r==null?void 0:r.getParent)!==null&&o!==void 0?o:s=>s.parentElement,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:s=>{if(!this._unobserve){const a=i().document;this._unobserve=PFe(a,this,sle,s)}}},ule(i),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(t){var r;t&&(this.getParent=(r=t.getParent)!==null&&r!==void 0?r:this.getParent)}createTabster(t,r){const n=new VFe(this);return t||this._wrappers.add(n),this._mergeProps(r),n}disposeTabster(t,r){r?this._wrappers.clear():this._wrappers.delete(t),this._wrappers.size===0&&this.dispose()}dispose(){var t,r,n,o,i,s,a,l;this.internal.stopObserver();const u=this._win;u==null||u.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],u&&this._forgetMemorizedTimer&&(u.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(t=this.outline)===null||t===void 0||t.dispose(),(r=this.crossOrigin)===null||r===void 0||r.dispose(),(n=this.deloser)===null||n===void 0||n.dispose(),(o=this.groupper)===null||o===void 0||o.dispose(),(i=this.mover)===null||i===void 0||i.dispose(),(s=this.modalizer)===null||s===void 0||s.dispose(),(a=this.observedElement)===null||a===void 0||a.dispose(),(l=this.restorer)===null||l===void 0||l.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),yFe(this.getWindow),TG(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),u&&(gFe(u),delete u.__tabsterInstance,delete this._win)}storageEntry(t,r){const n=this._storage;let o=n.get(t);return o?r===!1&&Object.keys(o).length===0&&n.delete(t):r===!0&&(o={},n.set(t,o)),o}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let t=this._forgetMemorizedElements.shift();t;t=this._forgetMemorizedElements.shift())TG(this.getWindow,t),uo.forgetMemorized(this.focusedElement,t)},0),lle(this.getWindow,!0)))}queueInit(t){var r;this._win&&(this._initQueue.push(t),this._initTimer||(this._initTimer=(r=this._win)===null||r===void 0?void 0:r.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const t=this._initQueue;this._initQueue=[],t.forEach(r=>r())}}function YFe(e,t){let r=eBe(e);return r?r.createTabster(!1,t):(r=new UFe(e,t),e.__tabsterInstance=r,r.createTabster())}function XFe(e){const t=e.core;return t.mover||(t.mover=new $Fe(t,t.getWindow)),t.mover}function QFe(e,t,r){const n=e.core;return n.modalizer||(n.modalizer=new MFe(n,t,r)),n.modalizer}function ZFe(e){const t=e.core;return t.restorer||(t.restorer=new KFe(t)),t.restorer}function JFe(e,t){e.core.disposeTabster(e,t)}function eBe(e){return e.__tabsterInstance}const jT=()=>{const{targetDocument:e}=Fa(),t=(e==null?void 0:e.defaultView)||void 0,r=A.useMemo(()=>t?YFe(t,{autoRoot:{},controlTab:!1,getParent:jae,checkUncontrolledTrappingFocus:n=>{var o;return!!(!((o=n.firstElementChild)===null||o===void 0)&&o.hasAttribute("data-is-focus-trap-zone-bumper"))}}):null,[t]);return hc(()=>()=>{r&&JFe(r)},[r]),r},PA=e=>(jT(),gle(e)),mle=(e={})=>{const{circular:t,axis:r,memorizeCurrent:n,tabbable:o,ignoreDefaultKeydown:i,unstable_hasDefault:s}=e,a=jT();return a&&XFe(a),PA({mover:{cyclic:!!t,direction:tBe(r??"vertical"),memorizeCurrent:n,tabbable:o,hasDefault:s},...i&&{focusable:{ignoreKeydown:i}}})};function tBe(e){switch(e){case"horizontal":return dh.MoverDirections.Horizontal;case"grid":return dh.MoverDirections.Grid;case"grid-linear":return dh.MoverDirections.GridLinear;case"both":return dh.MoverDirections.Both;case"vertical":default:return dh.MoverDirections.Vertical}}const yle=()=>{const e=jT(),{targetDocument:t}=Fa(),r=A.useCallback((a,l)=>(e==null?void 0:e.focusable.findAll({container:a,acceptCondition:l}))||[],[e]),n=A.useCallback(a=>e==null?void 0:e.focusable.findFirst({container:a}),[e]),o=A.useCallback(a=>e==null?void 0:e.focusable.findLast({container:a}),[e]),i=A.useCallback((a,l={})=>{if(!e||!t)return null;const{container:u=t.body}=l;return e.focusable.findNext({currentElement:a,container:u})},[e,t]),s=A.useCallback((a,l={})=>{if(!e||!t)return null;const{container:u=t.body}=l;return e.focusable.findPrev({currentElement:a,container:u})},[e,t]);return{findAllFocusable:r,findFirstFocusable:n,findLastFocusable:o,findNextFocusable:i,findPrevFocusable:s}},RG="data-fui-focus-visible";function rBe(e,t){if(ble(e))return()=>{};const r={current:void 0},n=Qae(t);function o(l){n.isNavigatingWithKeyboard()&&$b(l)&&(r.current=l,l.setAttribute(RG,""))}function i(){r.current&&(r.current.removeAttribute(RG),r.current=void 0)}n.subscribe(l=>{l||i()});const s=l=>{i();const u=l.composedPath()[0];o(u)},a=l=>{(!l.relatedTarget||$b(l.relatedTarget)&&!e.contains(l.relatedTarget))&&i()};return e.addEventListener(Af,s),e.addEventListener("focusout",a),e.focusVisible=!0,o(t.document.activeElement),()=>{i(),e.removeEventListener(Af,s),e.removeEventListener("focusout",a),delete e.focusVisible,Zae(n)}}function ble(e){return e?e.focusVisible?!0:ble(e==null?void 0:e.parentElement):!1}function _le(e={}){const t=Fa(),r=A.useRef(null);var n;const o=(n=e.targetDocument)!==null&&n!==void 0?n:t.targetDocument;return A.useEffect(()=>{if(o!=null&&o.defaultView&&r.current)return rBe(r.current,o.defaultView)},[r,o]),r}const zT=(e={})=>{const{trapFocus:t,alwaysFocusable:r,legacyTrapFocus:n}=e,o=jT();o&&(QFe(o),ZFe(o));const i=Ks("modal-",e.id),s=PA({restorer:{type:dh.RestorerTypes.Source},...t&&{modalizer:{id:i,isOthersAccessible:!t,isAlwaysAccessible:r,isTrapped:n&&t}}}),a=PA({restorer:{type:dh.RestorerTypes.Target}});return{modalAttributes:s,triggerAttributes:a}},De={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",28:"#474747",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",48:"#7a7a7a",50:"#808080",52:"#858585",54:"#8a8a8a",56:"#8f8f8f",58:"#949494",60:"#999999",62:"#9e9e9e",64:"#a3a3a3",66:"#a8a8a8",68:"#adadad",70:"#b3b3b3",72:"#b8b8b8",74:"#bdbdbd",76:"#c2c2c2",78:"#c7c7c7",80:"#cccccc",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},Ii={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",30:"rgba(255, 255, 255, 0.3)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)",90:"rgba(255, 255, 255, 0.9)"},rl={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)",60:"rgba(0, 0, 0, 0.6)",70:"rgba(0, 0, 0, 0.7)",80:"rgba(0, 0, 0, 0.8)",90:"rgba(0, 0, 0, 0.9)"},nBe={5:"rgba(26, 26, 26, 0.05)",10:"rgba(26, 26, 26, 0.1)",20:"rgba(26, 26, 26, 0.2)",30:"rgba(26, 26, 26, 0.3)",40:"rgba(26, 26, 26, 0.4)",50:"rgba(26, 26, 26, 0.5)",60:"rgba(26, 26, 26, 0.6)",70:"rgba(26, 26, 26, 0.7)",80:"rgba(26, 26, 26, 0.8)",90:"rgba(26, 26, 26, 0.9)"},oBe={5:"rgba(31, 31, 31, 0.05)",10:"rgba(31, 31, 31, 0.1)",20:"rgba(31, 31, 31, 0.2)",30:"rgba(31, 31, 31, 0.3)",40:"rgba(31, 31, 31, 0.4)",50:"rgba(31, 31, 31, 0.5)",60:"rgba(31, 31, 31, 0.6)",70:"rgba(31, 31, 31, 0.7)",80:"rgba(31, 31, 31, 0.8)",90:"rgba(31, 31, 31, 0.9)"},OG={5:"rgba(36, 36, 36, 0.05)",10:"rgba(36, 36, 36, 0.1)",20:"rgba(36, 36, 36, 0.2)",30:"rgba(36, 36, 36, 0.3)",40:"rgba(36, 36, 36, 0.4)",50:"rgba(36, 36, 36, 0.5)",60:"rgba(36, 36, 36, 0.6)",70:"rgba(36, 36, 36, 0.7)",80:"rgba(36, 36, 36, 0.8)",90:"rgba(36, 36, 36, 0.9)"},Zt="#ffffff",NB="#000000",iBe={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},Ele={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},sBe={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},aBe={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},lBe={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},uBe={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},cBe={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},fBe={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},dBe={primary:"#fde300",shade10:"#e4cc00",shade20:"#c0ad00",shade30:"#817400",shade40:"#4c4400",shade50:"#282400",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},hBe={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},pBe={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},gBe={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},vBe={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},mBe={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},yBe={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},Sle={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},bBe={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},_Be={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},EBe={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},SBe={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},wBe={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},kBe={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},ABe={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},xBe={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},TBe={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},IBe={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},CBe={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},NBe={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},RBe={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},OBe={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},DBe={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},FBe={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},BBe={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},MBe={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},LBe={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},jBe={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},Lr={red:sBe,green:Sle,darkOrange:aBe,yellow:dBe,berry:NBe,lightGreen:yBe,marigold:fBe},Zd={darkRed:iBe,cranberry:Ele,pumpkin:lBe,peach:cBe,gold:hBe,brass:pBe,brown:gBe,forest:vBe,seafoam:mBe,darkGreen:bBe,lightTeal:_Be,teal:EBe,steel:SBe,blue:wBe,royalBlue:kBe,cornflower:ABe,navy:xBe,lavender:TBe,purple:IBe,grape:CBe,lilac:RBe,pink:OBe,magenta:DBe,plum:FBe,beige:BBe,mink:MBe,platinum:LBe,anchor:jBe},en={cranberry:Ele,green:Sle,orange:uBe},wle=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],kle=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],xc={success:"green",warning:"orange",danger:"cranberry"},J_=wle.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background1`]:Lr[t].tint60,[`colorPalette${r}Background2`]:Lr[t].tint40,[`colorPalette${r}Background3`]:Lr[t].primary,[`colorPalette${r}Foreground1`]:Lr[t].shade10,[`colorPalette${r}Foreground2`]:Lr[t].shade30,[`colorPalette${r}Foreground3`]:Lr[t].primary,[`colorPalette${r}BorderActive`]:Lr[t].primary,[`colorPalette${r}Border1`]:Lr[t].tint40,[`colorPalette${r}Border2`]:Lr[t].primary};return Object.assign(e,n)},{});J_.colorPaletteYellowForeground1=Lr.yellow.shade30;J_.colorPaletteRedForegroundInverted=Lr.red.tint20;J_.colorPaletteGreenForegroundInverted=Lr.green.tint20;J_.colorPaletteYellowForegroundInverted=Lr.yellow.tint40;const zBe=kle.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background2`]:Zd[t].tint40,[`colorPalette${r}Foreground2`]:Zd[t].shade30,[`colorPalette${r}BorderActive`]:Zd[t].primary};return Object.assign(e,n)},{}),HBe={...J_,...zBe},HT=Object.entries(xc).reduce((e,[t,r])=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorStatus${n}Background1`]:en[r].tint60,[`colorStatus${n}Background2`]:en[r].tint40,[`colorStatus${n}Background3`]:en[r].primary,[`colorStatus${n}Foreground1`]:en[r].shade10,[`colorStatus${n}Foreground2`]:en[r].shade30,[`colorStatus${n}Foreground3`]:en[r].primary,[`colorStatus${n}ForegroundInverted`]:en[r].tint30,[`colorStatus${n}BorderActive`]:en[r].primary,[`colorStatus${n}Border1`]:en[r].tint40,[`colorStatus${n}Border2`]:en[r].primary};return Object.assign(e,o)},{});HT.colorStatusWarningForeground1=en[xc.warning].shade20;HT.colorStatusWarningForeground3=en[xc.warning].shade20;HT.colorStatusWarningBorder2=en[xc.warning].shade20;const $Be=e=>({colorNeutralForeground1:De[14],colorNeutralForeground1Hover:De[14],colorNeutralForeground1Pressed:De[14],colorNeutralForeground1Selected:De[14],colorNeutralForeground2:De[26],colorNeutralForeground2Hover:De[14],colorNeutralForeground2Pressed:De[14],colorNeutralForeground2Selected:De[14],colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:De[38],colorNeutralForeground3Hover:De[26],colorNeutralForeground3Pressed:De[26],colorNeutralForeground3Selected:De[26],colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:De[44],colorNeutralForegroundDisabled:De[74],colorNeutralForegroundInvertedDisabled:Ii[40],colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:De[26],colorNeutralForeground2LinkHover:De[14],colorNeutralForeground2LinkPressed:De[14],colorNeutralForeground2LinkSelected:De[14],colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:De[14],colorNeutralForegroundStaticInverted:Zt,colorNeutralForegroundInverted:Zt,colorNeutralForegroundInvertedHover:Zt,colorNeutralForegroundInvertedPressed:Zt,colorNeutralForegroundInvertedSelected:Zt,colorNeutralForegroundInverted2:Zt,colorNeutralForegroundOnBrand:Zt,colorNeutralForegroundInvertedLink:Zt,colorNeutralForegroundInvertedLinkHover:Zt,colorNeutralForegroundInvertedLinkPressed:Zt,colorNeutralForegroundInvertedLinkSelected:Zt,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:Zt,colorNeutralBackground1Hover:De[96],colorNeutralBackground1Pressed:De[88],colorNeutralBackground1Selected:De[92],colorNeutralBackground2:De[98],colorNeutralBackground2Hover:De[94],colorNeutralBackground2Pressed:De[86],colorNeutralBackground2Selected:De[90],colorNeutralBackground3:De[96],colorNeutralBackground3Hover:De[92],colorNeutralBackground3Pressed:De[84],colorNeutralBackground3Selected:De[88],colorNeutralBackground4:De[94],colorNeutralBackground4Hover:De[98],colorNeutralBackground4Pressed:De[96],colorNeutralBackground4Selected:Zt,colorNeutralBackground5:De[92],colorNeutralBackground5Hover:De[96],colorNeutralBackground5Pressed:De[94],colorNeutralBackground5Selected:De[98],colorNeutralBackground6:De[90],colorNeutralBackgroundInverted:De[16],colorNeutralBackgroundStatic:De[20],colorNeutralBackgroundAlpha:Ii[50],colorNeutralBackgroundAlpha2:Ii[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:De[96],colorSubtleBackgroundPressed:De[88],colorSubtleBackgroundSelected:De[92],colorSubtleBackgroundLightAlphaHover:Ii[70],colorSubtleBackgroundLightAlphaPressed:Ii[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:rl[10],colorSubtleBackgroundInvertedPressed:rl[30],colorSubtleBackgroundInvertedSelected:rl[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:De[94],colorNeutralBackgroundInvertedDisabled:Ii[10],colorNeutralStencil1:De[90],colorNeutralStencil2:De[98],colorNeutralStencil1Alpha:rl[10],colorNeutralStencil2Alpha:rl[5],colorBackgroundOverlay:rl[40],colorScrollbarOverlay:rl[50],colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackgroundInverted:Zt,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralStrokeAccessible:De[38],colorNeutralStrokeAccessibleHover:De[34],colorNeutralStrokeAccessiblePressed:De[30],colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:De[82],colorNeutralStroke1Hover:De[78],colorNeutralStroke1Pressed:De[70],colorNeutralStroke1Selected:De[74],colorNeutralStroke2:De[88],colorNeutralStroke3:De[94],colorNeutralStrokeSubtle:De[88],colorNeutralStrokeOnBrand:Zt,colorNeutralStrokeOnBrand2:Zt,colorNeutralStrokeOnBrand2Hover:Zt,colorNeutralStrokeOnBrand2Pressed:Zt,colorNeutralStrokeOnBrand2Selected:Zt,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:De[88],colorNeutralStrokeInvertedDisabled:Ii[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:rl[5],colorNeutralStrokeAlpha2:Ii[20],colorStrokeFocus1:Zt,colorStrokeFocus2:NB,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),Ale={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},xle={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},Tle={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},Ile={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},Cle={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},Nle={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},Rle={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},eo={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},Ole={spacingHorizontalNone:eo.none,spacingHorizontalXXS:eo.xxs,spacingHorizontalXS:eo.xs,spacingHorizontalSNudge:eo.sNudge,spacingHorizontalS:eo.s,spacingHorizontalMNudge:eo.mNudge,spacingHorizontalM:eo.m,spacingHorizontalL:eo.l,spacingHorizontalXL:eo.xl,spacingHorizontalXXL:eo.xxl,spacingHorizontalXXXL:eo.xxxl},Dle={spacingVerticalNone:eo.none,spacingVerticalXXS:eo.xxs,spacingVerticalXS:eo.xs,spacingVerticalSNudge:eo.sNudge,spacingVerticalS:eo.s,spacingVerticalMNudge:eo.mNudge,spacingVerticalM:eo.m,spacingVerticalL:eo.l,spacingVerticalXL:eo.xl,spacingVerticalXXL:eo.xxl,spacingVerticalXXXL:eo.xxxl},Fle={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},Pt={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)"};function qA(e,t,r=""){return{[`shadow2${r}`]:`0 0 2px ${e}, 0 1px 2px ${t}`,[`shadow4${r}`]:`0 0 2px ${e}, 0 2px 4px ${t}`,[`shadow8${r}`]:`0 0 2px ${e}, 0 4px 8px ${t}`,[`shadow16${r}`]:`0 0 2px ${e}, 0 8px 16px ${t}`,[`shadow28${r}`]:`0 0 8px ${e}, 0 14px 28px ${t}`,[`shadow64${r}`]:`0 0 8px ${e}, 0 32px 64px ${t}`}}const PBe=e=>{const t=$Be(e);return{...Ale,...Ile,...Cle,...Rle,...Nle,...Fle,...Ole,...Dle,...Tle,...xle,...t,...HBe,...HT,...qA(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...qA(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},Ble={10:"#2b2b40",20:"#2f2f4a",30:"#333357",40:"#383966",50:"#3d3e78",60:"#444791",70:"#4f52b2",80:"#5b5fc7",90:"#7579eb",100:"#7f85f5",110:"#9299f7",120:"#aab1fa",130:"#b6bcfa",140:"#c5cbfa",150:"#dce0fa",160:"#e8ebfa"},qBe=PBe(Ble),Tc=wle.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background1`]:Lr[t].shade40,[`colorPalette${r}Background2`]:Lr[t].shade30,[`colorPalette${r}Background3`]:Lr[t].primary,[`colorPalette${r}Foreground1`]:Lr[t].tint30,[`colorPalette${r}Foreground2`]:Lr[t].tint40,[`colorPalette${r}Foreground3`]:Lr[t].tint20,[`colorPalette${r}BorderActive`]:Lr[t].tint30,[`colorPalette${r}Border1`]:Lr[t].primary,[`colorPalette${r}Border2`]:Lr[t].tint20};return Object.assign(e,n)},{});Tc.colorPaletteRedForeground3=Lr.red.tint30;Tc.colorPaletteRedBorder2=Lr.red.tint30;Tc.colorPaletteGreenForeground3=Lr.green.tint40;Tc.colorPaletteGreenBorder2=Lr.green.tint40;Tc.colorPaletteDarkOrangeForeground3=Lr.darkOrange.tint30;Tc.colorPaletteDarkOrangeBorder2=Lr.darkOrange.tint30;Tc.colorPaletteRedForegroundInverted=Lr.red.primary;Tc.colorPaletteGreenForegroundInverted=Lr.green.primary;Tc.colorPaletteYellowForegroundInverted=Lr.yellow.shade30;const WL=kle.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background2`]:Zd[t].shade30,[`colorPalette${r}Foreground2`]:Zd[t].tint40,[`colorPalette${r}BorderActive`]:Zd[t].tint30};return Object.assign(e,n)},{});WL.colorPaletteDarkRedBackground2=Zd.darkRed.shade20;WL.colorPalettePlumBackground2=Zd.plum.shade20;const WBe={...Tc,...WL},gv=Object.entries(xc).reduce((e,[t,r])=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorStatus${n}Background1`]:en[r].shade40,[`colorStatus${n}Background2`]:en[r].shade30,[`colorStatus${n}Background3`]:en[r].primary,[`colorStatus${n}Foreground1`]:en[r].tint30,[`colorStatus${n}Foreground2`]:en[r].tint40,[`colorStatus${n}Foreground3`]:en[r].tint20,[`colorStatus${n}BorderActive`]:en[r].tint30,[`colorStatus${n}ForegroundInverted`]:en[r].shade10,[`colorStatus${n}Border1`]:en[r].primary,[`colorStatus${n}Border2`]:en[r].tint20};return Object.assign(e,o)},{});gv.colorStatusDangerForeground3=en[xc.danger].tint30;gv.colorStatusDangerBorder2=en[xc.danger].tint30;gv.colorStatusSuccessForeground3=en[xc.success].tint40;gv.colorStatusSuccessBorder2=en[xc.success].tint40;gv.colorStatusWarningForegroundInverted=en[xc.warning].shade20;const GBe=e=>({colorNeutralForeground1:Zt,colorNeutralForeground1Hover:Zt,colorNeutralForeground1Pressed:Zt,colorNeutralForeground1Selected:Zt,colorNeutralForeground2:De[84],colorNeutralForeground2Hover:Zt,colorNeutralForeground2Pressed:Zt,colorNeutralForeground2Selected:Zt,colorNeutralForeground2BrandHover:e[100],colorNeutralForeground2BrandPressed:e[90],colorNeutralForeground2BrandSelected:e[100],colorNeutralForeground3:De[68],colorNeutralForeground3Hover:De[84],colorNeutralForeground3Pressed:De[84],colorNeutralForeground3Selected:De[84],colorNeutralForeground3BrandHover:e[100],colorNeutralForeground3BrandPressed:e[90],colorNeutralForeground3BrandSelected:e[100],colorNeutralForeground4:De[60],colorNeutralForegroundDisabled:De[36],colorNeutralForegroundInvertedDisabled:Ii[40],colorBrandForegroundLink:e[100],colorBrandForegroundLinkHover:e[110],colorBrandForegroundLinkPressed:e[90],colorBrandForegroundLinkSelected:e[100],colorNeutralForeground2Link:De[84],colorNeutralForeground2LinkHover:Zt,colorNeutralForeground2LinkPressed:Zt,colorNeutralForeground2LinkSelected:Zt,colorCompoundBrandForeground1:e[100],colorCompoundBrandForeground1Hover:e[110],colorCompoundBrandForeground1Pressed:e[90],colorBrandForeground1:e[100],colorBrandForeground2:e[120],colorBrandForeground2Hover:e[130],colorBrandForeground2Pressed:e[160],colorNeutralForeground1Static:De[14],colorNeutralForegroundStaticInverted:Zt,colorNeutralForegroundInverted:De[14],colorNeutralForegroundInvertedHover:De[14],colorNeutralForegroundInvertedPressed:De[14],colorNeutralForegroundInvertedSelected:De[14],colorNeutralForegroundInverted2:De[14],colorNeutralForegroundOnBrand:Zt,colorNeutralForegroundInvertedLink:Zt,colorNeutralForegroundInvertedLinkHover:Zt,colorNeutralForegroundInvertedLinkPressed:Zt,colorNeutralForegroundInvertedLinkSelected:Zt,colorBrandForegroundInverted:e[80],colorBrandForegroundInvertedHover:e[70],colorBrandForegroundInvertedPressed:e[60],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:De[16],colorNeutralBackground1Hover:De[24],colorNeutralBackground1Pressed:De[12],colorNeutralBackground1Selected:De[22],colorNeutralBackground2:De[14],colorNeutralBackground2Hover:De[22],colorNeutralBackground2Pressed:De[10],colorNeutralBackground2Selected:De[20],colorNeutralBackground3:De[12],colorNeutralBackground3Hover:De[20],colorNeutralBackground3Pressed:De[8],colorNeutralBackground3Selected:De[18],colorNeutralBackground4:De[8],colorNeutralBackground4Hover:De[16],colorNeutralBackground4Pressed:De[4],colorNeutralBackground4Selected:De[14],colorNeutralBackground5:De[4],colorNeutralBackground5Hover:De[12],colorNeutralBackground5Pressed:NB,colorNeutralBackground5Selected:De[10],colorNeutralBackground6:De[20],colorNeutralBackgroundInverted:Zt,colorNeutralBackgroundStatic:De[24],colorNeutralBackgroundAlpha:nBe[50],colorNeutralBackgroundAlpha2:oBe[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:De[22],colorSubtleBackgroundPressed:De[18],colorSubtleBackgroundSelected:De[20],colorSubtleBackgroundLightAlphaHover:OG[80],colorSubtleBackgroundLightAlphaPressed:OG[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:rl[10],colorSubtleBackgroundInvertedPressed:rl[30],colorSubtleBackgroundInvertedSelected:rl[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:De[8],colorNeutralBackgroundInvertedDisabled:Ii[10],colorNeutralStencil1:De[34],colorNeutralStencil2:De[20],colorNeutralStencil1Alpha:Ii[10],colorNeutralStencil2Alpha:Ii[5],colorBackgroundOverlay:rl[50],colorScrollbarOverlay:Ii[60],colorBrandBackground:e[70],colorBrandBackgroundHover:e[80],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[100],colorCompoundBrandBackgroundHover:e[110],colorCompoundBrandBackgroundPressed:e[90],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[20],colorBrandBackground2Hover:e[40],colorBrandBackground2Pressed:e[10],colorBrandBackgroundInverted:Zt,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralStrokeAccessible:De[68],colorNeutralStrokeAccessibleHover:De[74],colorNeutralStrokeAccessiblePressed:De[70],colorNeutralStrokeAccessibleSelected:e[100],colorNeutralStroke1:De[40],colorNeutralStroke1Hover:De[46],colorNeutralStroke1Pressed:De[42],colorNeutralStroke1Selected:De[44],colorNeutralStroke2:De[32],colorNeutralStroke3:De[24],colorNeutralStrokeSubtle:De[4],colorNeutralStrokeOnBrand:De[16],colorNeutralStrokeOnBrand2:Zt,colorNeutralStrokeOnBrand2Hover:Zt,colorNeutralStrokeOnBrand2Pressed:Zt,colorNeutralStrokeOnBrand2Selected:Zt,colorBrandStroke1:e[100],colorBrandStroke2:e[50],colorBrandStroke2Hover:e[50],colorBrandStroke2Pressed:e[30],colorBrandStroke2Contrast:e[50],colorCompoundBrandStroke:e[90],colorCompoundBrandStrokeHover:e[100],colorCompoundBrandStrokePressed:e[80],colorNeutralStrokeDisabled:De[26],colorNeutralStrokeInvertedDisabled:Ii[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:Ii[10],colorNeutralStrokeAlpha2:Ii[20],colorStrokeFocus1:NB,colorStrokeFocus2:Zt,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),KBe=e=>{const t=GBe(e);return{...Ale,...Ile,...Cle,...Rle,...Nle,...Fle,...Ole,...Dle,...Tle,...xle,...t,...WBe,...gv,...qA(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...qA(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}},VBe=KBe(Ble),Mle={root:"fui-FluentProvider"},UBe=yae({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),YBe=e=>{const t=X_(),r=UBe({dir:e.dir,renderer:t});return e.root.className=Ve(Mle.root,e.themeClassName,r.root,e.root.className),e},XBe=A.useInsertionEffect?A.useInsertionEffect:hc,QBe=(e,t)=>{if(!e)return;const r=e.createElement("style");return Object.keys(t).forEach(n=>{r.setAttribute(n,t[n])}),e.head.appendChild(r),r},ZBe=(e,t)=>{const r=e.sheet;r&&(r.cssRules.length>0&&r.deleteRule(0),r.insertRule(t,0))},JBe=e=>{const{targetDocument:t,theme:r,rendererAttributes:n}=e,o=A.useRef(),i=Ks(Mle.root),s=n,a=A.useMemo(()=>_De(`.${i}`,r),[r,i]);return e6e(t,i),XBe(()=>{const l=t==null?void 0:t.getElementById(i);return l?o.current=l:(o.current=QBe(t,{...s,id:i}),o.current&&ZBe(o.current,a)),()=>{var u;(u=o.current)===null||u===void 0||u.remove()}},[i,t,a,s]),{styleTagId:i,rule:a}};function e6e(e,t){A.useState(()=>{if(!e)return;const r=e.getElementById(t);r&&e.head.append(r)})}const t6e={},r6e=(e,t)=>{const r=Fa(),n=n6e(),o=Rae(),i=A.useContext(LL)||t6e,{applyStylesToPortals:s=!0,customStyleHooks_unstable:a,dir:l=r.dir,targetDocument:u=r.targetDocument,theme:c,overrides_unstable:f={}}=e,d=AC(n,c),h=AC(o,f),g=AC(i,a),v=X_();var y;const{styleTagId:E,rule:_}=JBe({theme:d,targetDocument:u,rendererAttributes:(y=v.styleElementAttributes)!==null&&y!==void 0?y:{}});return{applyStylesToPortals:s,customStyleHooks_unstable:g,dir:l,targetDocument:u,theme:d,overrides_unstable:h,themeClassName:E,components:{root:"div"},root:_r(_n("div",{...e,dir:l,ref:Ho(t,_le({targetDocument:u}))}),{elementType:"div"}),serverStyleProps:{cssRule:_,attributes:{...v.styleElementAttributes,id:E}}}};function AC(e,t){return e&&t?{...e,...t}:e||t}function n6e(){return A.useContext(xae)}function o6e(e){const{applyStylesToPortals:t,customStyleHooks_unstable:r,dir:n,root:o,targetDocument:i,theme:s,themeClassName:a,overrides_unstable:l}=e,u=A.useMemo(()=>({dir:n,targetDocument:i}),[n,i]),[c]=A.useState(()=>({})),f=A.useMemo(()=>({textDirection:n}),[n]);return{customStyleHooks_unstable:r,overrides_unstable:l,provider:u,textDirection:n,iconDirection:f,tooltip:c,theme:s,themeClassName:t?o.className:a}}const Lle=A.forwardRef((e,t)=>{const r=r6e(e,t);YBe(r);const n=o6e(r);return Z3e(r,n)});Lle.displayName="FluentProvider";const i6e=e=>r=>{const n=A.useRef(r.value),o=A.useRef(0),i=A.useRef();return i.current||(i.current={value:n,version:o,listeners:[]}),hc(()=>{n.current=r.value,o.current+=1,EF.unstable_runWithPriority(EF.unstable_NormalPriority,()=>{i.current.listeners.forEach(s=>{s([o.current,r.value])})})},[r.value]),A.createElement(e,{value:i.current},r.children)},vv=e=>{const t=A.createContext({value:{current:e},version:{current:-1},listeners:[]});return t.Provider=i6e(t.Provider),delete t.Consumer,t},Yo=(e,t)=>{const r=A.useContext(e),{value:{current:n},version:{current:o},listeners:i}=r,s=t(n),[a,l]=A.useReducer((u,c)=>{if(!c)return[n,s];if(c[0]<=o)return cw(u[1],s)?u:[n,s];try{if(cw(u[0],c[1]))return u;const f=t(c[1]);return cw(u[1],f)?u:[c[1],f]}catch{}return[u[0],u[1]]},[n,s]);return cw(a[1],s)||l(void 0),hc(()=>(i.push(l),()=>{const u=i.indexOf(l);i.splice(u,1)}),[i]),a[1]};function s6e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const cw=typeof Object.is=="function"?Object.is:s6e;function GL(e){const t=A.useContext(e);return t.version?t.version.current!==-1:!1}const jle=vv(void 0),a6e={openItems:[],collapsible:!1,multiple:!1,navigation:void 0,requestToggle(){}},{Provider:l6e}=jle,Wb=e=>Yo(jle,(t=a6e)=>e(t)),u6e=(e,t)=>Je(e.root,{children:Je(l6e,{value:t.accordion,children:e.root.children})}),c6e=(e,t)=>{const{openItems:r,defaultOpenItems:n,multiple:o=!1,collapsible:i=!1,onToggle:s,navigation:a}=e,[l,u]=kf({state:A.useMemo(()=>h6e(r),[r]),defaultState:()=>f6e({defaultOpenItems:n,multiple:o}),initialState:[]}),c=mle({circular:a==="circular",tabbable:!0}),f=ir(d=>{const h=d6e(d.value,l,o,i);s==null||s(d.event,{value:d.value,openItems:h}),u(h)});return{collapsible:i,multiple:o,navigation:a,openItems:l,requestToggle:f,components:{root:"div"},root:_r(_n("div",{...e,...a?c:void 0,ref:t}),{elementType:"div"})}};function f6e({defaultOpenItems:e,multiple:t}){return e!==void 0?Array.isArray(e)?t?e:[e[0]]:[e]:[]}function d6e(e,t,r,n){if(r)if(t.includes(e)){if(t.length>1||n)return t.filter(o=>o!==e)}else return[...t,e].sort();else return t[0]===e&&n?[]:[e];return t}function h6e(e){if(e!==void 0)return Array.isArray(e)?e:[e]}function p6e(e){const{navigation:t,openItems:r,requestToggle:n,multiple:o,collapsible:i}=e;return{accordion:{navigation:t,openItems:r,requestToggle:n,collapsible:i,multiple:o}}}const g6e={root:"fui-Accordion"},v6e=e=>(e.root.className=Ve(g6e.root,e.root.className),e),KL=A.forwardRef((e,t)=>{const r=c6e(e,t),n=p6e(r);return v6e(r),cn("useAccordionStyles_unstable")(r),u6e(r,n)});KL.displayName="Accordion";const m6e=(e,t)=>{const{value:r,disabled:n=!1}=e,o=Wb(a=>a.requestToggle),i=Wb(a=>a.openItems.includes(r)),s=ir(a=>o({event:a,value:r}));return{open:i,value:r,disabled:n,onHeaderClick:s,components:{root:"div"},root:_r(_n("div",{ref:t,...e}),{elementType:"div"})}};function y6e(e){const{disabled:t,open:r,value:n,onHeaderClick:o}=e;return{accordionItem:A.useMemo(()=>({disabled:t,open:r,value:n,onHeaderClick:o}),[t,r,n,o])}}const zle=A.createContext(void 0),b6e={open:!1,disabled:!1,value:void 0,onHeaderClick(){}},{Provider:_6e}=zle,Hle=()=>{var e;return(e=A.useContext(zle))!==null&&e!==void 0?e:b6e},E6e=(e,t)=>Je(e.root,{children:Je(_6e,{value:t.accordionItem,children:e.root.children})}),S6e={root:"fui-AccordionItem"},w6e=e=>(e.root.className=Ve(S6e.root,e.root.className),e),$le=A.forwardRef((e,t)=>{const r=m6e(e,t),n=y6e(r);return w6e(r),cn("useAccordionItemStyles_unstable")(r),E6e(r,n)});$le.displayName="AccordionItem";const lg="Enter",uf=" ",k6e="Tab",DG="ArrowDown",A6e="ArrowLeft",x6e="ArrowRight",xC="ArrowUp",T6e="End",I6e="Home",C6e="PageDown",N6e="PageUp",R6e="Backspace",O6e="Delete",$T="Escape";function Gb(e,t){const{disabled:r,disabledFocusable:n=!1,["aria-disabled"]:o,onClick:i,onKeyDown:s,onKeyUp:a,...l}=t??{},u=typeof o=="string"?o==="true":o,c=r||n||u,f=ir(g=>{c?(g.preventDefault(),g.stopPropagation()):i==null||i(g)}),d=ir(g=>{if(s==null||s(g),g.isDefaultPrevented())return;const v=g.key;if(c&&(v===lg||v===uf)){g.preventDefault(),g.stopPropagation();return}if(v===uf){g.preventDefault();return}else v===lg&&(g.preventDefault(),g.currentTarget.click())}),h=ir(g=>{if(a==null||a(g),g.isDefaultPrevented())return;const v=g.key;if(c&&(v===lg||v===uf)){g.preventDefault(),g.stopPropagation();return}v===uf&&(g.preventDefault(),g.currentTarget.click())});if(e==="button"||e===void 0)return{...l,disabled:r&&!n,"aria-disabled":n?!0:u,onClick:n?void 0:f,onKeyUp:n?void 0:a,onKeyDown:n?void 0:s};{const g={role:"button",tabIndex:r&&!n?void 0:0,...l,onClick:f,onKeyUp:h,onKeyDown:d,"aria-disabled":r||n||u};return e==="a"&&c&&(g.href=void 0),g}}const D6e=(e,t)=>{const{icon:r,button:n,expandIcon:o,inline:i=!1,size:s="medium",expandIconPosition:a="start"}=e,{value:l,disabled:u,open:c}=Hle(),f=Wb(y=>y.requestToggle),d=Wb(y=>!y.collapsible&&y.openItems.length===1&&c),{dir:h}=Fa();let g;a==="end"?g=c?-90:90:g=c?90:h!=="rtl"?0:180;const v=_r(n,{elementType:"button",defaultProps:{disabled:u,disabledFocusable:d,"aria-expanded":c,type:"button"}});return v.onClick=ir(y=>{if(BL(n)){var E;(E=n.onClick)===null||E===void 0||E.call(n,y)}y.defaultPrevented||f({value:l,event:y})}),{disabled:u,open:c,size:s,inline:i,expandIconPosition:a,components:{root:"div",button:"button",expandIcon:"span",icon:"div"},root:_r(_n("div",{ref:t,...e}),{elementType:"div"}),icon:tn(r,{elementType:"div"}),expandIcon:tn(o,{renderByDefault:!0,defaultProps:{children:A.createElement(D3e,{style:{transform:`rotate(${g}deg)`}}),"aria-hidden":!0},elementType:"span"}),button:Gb(v.as,v)}},F6e=A.createContext(void 0),{Provider:B6e}=F6e,M6e=(e,t)=>Je(B6e,{value:t.accordionHeader,children:Je(e.root,{children:zn(e.button,{children:[e.expandIconPosition==="start"&&e.expandIcon&&Je(e.expandIcon,{}),e.icon&&Je(e.icon,{}),e.root.children,e.expandIconPosition==="end"&&e.expandIcon&&Je(e.expandIcon,{})]})})}),fw={root:"fui-AccordionHeader",button:"fui-AccordionHeader__button",expandIcon:"fui-AccordionHeader__expandIcon",icon:"fui-AccordionHeader__icon"},L6e=bt({resetButton:{B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],Bv0vk6g:"f37px4s",fsow6f:"fgusgyc"},focusIndicator:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"frrh606",clg4pj:["f1v5zibi","fo2hd23"],hgwjuy:"ful5kiu",Bonggc9:["fo2hd23","f1v5zibi"],B1tsrr9:["f1jqcqds","ftffrms"],Dah5zi:["ftffrms","f1jqcqds"],Bkh64rk:["f2e7qr6","fsr1zz6"],qqdqy8:["fsr1zz6","f2e7qr6"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f57olzd",Bule8hv:["f4stah7","fs1por5"],Bjwuhne:"f480a47",Ghsupd:["fs1por5","f4stah7"]},root:{sj55zd:"f19n0e5",De3pzq:"f1c21dwh",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},rootDisabled:{Bcmaq0h:"fwrgwhw",sj55zd:"f1s2aq7o"},rootInline:{mc9l5x:"f14t3ns0"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],z8tnut:"f1g0x7ka",z189sj:["fw5db7e","f1uw59to"],Byoj8tv:"f1qch9an",uwmqm3:["f1ng84yb","f11gcy0p"],sshi5w:"f5pgtk9",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bceei9c:"f1k6fduh",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B7ck84d:"f1ewtqcl"},buttonSmall:{sshi5w:"f1nxs5xn",Be2twd7:"fy9rknc"},buttonLarge:{Bg96gwp:"faaz57k",Be2twd7:"fod5ikn"},buttonExtraLarge:{Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},buttonInline:{mc9l5x:"ftuwxu6"},buttonExpandIconEndNoIcon:{uwmqm3:["f1uw59to","fw5db7e"]},buttonExpandIconEnd:{z189sj:["f11gcy0p","f1ng84yb"]},buttonDisabled:{Bceei9c:"fdrzuqr"},expandIcon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"},expandIconStart:{z189sj:["f1vdfbxk","f1f5gg8d"]},expandIconEnd:{Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"flqd7gy",mc9l5x:"f22iagw",Brf1p80:"f9c4gz4",uwmqm3:["f1f5gg8d","f1vdfbxk"]},icon:{Bqenvij:"f1l02sjl",mc9l5x:"f22iagw",Bt984gj:"f122n59",z189sj:["f1vdfbxk","f1f5gg8d"],Bg96gwp:"f106mvju",Be2twd7:"f1pp30po"}},{d:[".f1e4lqlz{box-sizing:content-box;}",".f1u2r49w{background-color:inherit;}",".f1ym3bx4{color:inherit;}",".f1mo0ibp{font-family:inherit;}",".fjoy568{font-size:inherit;}",".fytdu2e{line-height:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f37px4s{-webkit-appearance:button;}",".fgusgyc{text-align:unset;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".frrh606[data-fui-focus-visible]::after{border-top-width:2px;}",".f1v5zibi[data-fui-focus-visible]::after{border-right-width:2px;}",".fo2hd23[data-fui-focus-visible]::after{border-left-width:2px;}",".ful5kiu[data-fui-focus-visible]::after{border-bottom-width:2px;}",".f1jqcqds[data-fui-focus-visible]::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".ftffrms[data-fui-focus-visible]::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f2e7qr6[data-fui-focus-visible]::after{border-top-right-radius:var(--borderRadiusMedium);}",".fsr1zz6[data-fui-focus-visible]::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".f57olzd[data-fui-focus-visible]::after{top:calc(2px * -1);}",".f4stah7[data-fui-focus-visible]::after{right:calc(2px * -1);}",".fs1por5[data-fui-focus-visible]::after{left:calc(2px * -1);}",".f480a47[data-fui-focus-visible]::after{bottom:calc(2px * -1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fwrgwhw{background-image:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f14t3ns0{display:inline-block;}",".f10pi13n{position:relative;}",".fly5x3f{width:100%;}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f5pgtk9{min-height:44px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f1k6fduh{cursor:pointer;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1ewtqcl{box-sizing:border-box;}",".f1nxs5xn{min-height:32px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".ftuwxu6{display:inline-flex;}",".fdrzuqr{cursor:not-allowed;}",".f1l02sjl{height:100%;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".flqd7gy{flex-basis:0%;}",".f9c4gz4{justify-content:flex-end;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),j6e=e=>{const t=L6e();return e.root.className=Ve(fw.root,t.root,e.inline&&t.rootInline,e.disabled&&t.rootDisabled,e.root.className),e.button.className=Ve(fw.button,t.resetButton,t.button,t.focusIndicator,e.expandIconPosition==="end"&&!e.icon&&t.buttonExpandIconEndNoIcon,e.expandIconPosition==="end"&&t.buttonExpandIconEnd,e.inline&&t.buttonInline,e.size==="small"&&t.buttonSmall,e.size==="large"&&t.buttonLarge,e.size==="extra-large"&&t.buttonExtraLarge,e.disabled&&t.buttonDisabled,e.button.className),e.expandIcon&&(e.expandIcon.className=Ve(fw.expandIcon,t.expandIcon,e.expandIconPosition==="start"&&t.expandIconStart,e.expandIconPosition==="end"&&t.expandIconEnd,e.expandIcon.className)),e.icon&&(e.icon.className=Ve(fw.icon,t.icon,e.icon.className)),e};function z6e(e){const{disabled:t,expandIconPosition:r,open:n,size:o}=e;return{accordionHeader:A.useMemo(()=>({disabled:t,expandIconPosition:r,open:n,size:o}),[t,r,n,o])}}const Ple=A.forwardRef((e,t)=>{const r=D6e(e,t),n=z6e(r);return j6e(r),cn("useAccordionHeaderStyles_unstable")(r),M6e(r,n)});Ple.displayName="AccordionHeader";const H6e=(e,t)=>{const{open:r}=Hle(),n=PA({focusable:{excludeFromMover:!0}}),o=Wb(i=>i.navigation);return{open:r,components:{root:"div"},root:_r(_n("div",{ref:t,...e,...o&&n}),{elementType:"div"})}},$6e=e=>e.open?Je(e.root,{children:e.root.children}):null,P6e={root:"fui-AccordionPanel"},q6e=bt({root:{B6of3ja:"f1hu3pq6",t21cq0:["fkujibs","f199hnxi"],jrapky:"f19f4twv",Frg6f3:["f199hnxi","fkujibs"]}},{d:[".f1hu3pq6{margin-top:0;}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f19f4twv{margin-bottom:0;}"]}),W6e=e=>{const t=q6e();return e.root.className=Ve(P6e.root,t.root,e.root.className),e},qle=A.forwardRef((e,t)=>{const r=H6e(e,t);return W6e(r),cn("useAccordionPanelStyles_unstable")(r),$6e(r)});qle.displayName="AccordionPanel";const G6e=(e,t)=>{const{shape:r="circular",size:n="medium",iconPosition:o="before",appearance:i="filled",color:s="brand"}=e;return{shape:r,size:n,iconPosition:o,appearance:i,color:s,components:{root:"div",icon:"span"},root:_r(_n("div",{ref:t,...e}),{elementType:"div"}),icon:tn(e.icon,{elementType:"span"})}},FG={root:"fui-Badge",icon:"fui-Badge__icon"},K6e=Cn("r1l7mb74","rntuq2r",[".r1l7mb74{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.r1l7mb74::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}',".rntuq2r{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.rntuq2r::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}']),V6e=bt({fontSmallToTiny:{Bahqtrf:"fk6fouc",Be2twd7:"f13mqy1h",Bhrd7zp:"fl43uef",Bg96gwp:"fcpl73t"},tiny:{a9b677:"f16dn6v3",Bqenvij:"f3mu39s",Be2twd7:"f130uwy9",Bg96gwp:"fod1mrr",Bf4jedk:"f18p0k4z",z8tnut:"f1q8r6hh",z189sj:["fio2s09","fkiw60q"],Byoj8tv:"f9yu9nh",uwmqm3:["fkiw60q","fio2s09"]},"extra-small":{a9b677:"fpd43o0",Bqenvij:"f30q22z",Be2twd7:"f1tccstq",Bg96gwp:"f1y3arg5",Bf4jedk:"f18p0k4z",z8tnut:"f1q8r6hh",z189sj:["fio2s09","fkiw60q"],Byoj8tv:"f9yu9nh",uwmqm3:["fkiw60q","fio2s09"]},small:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",z8tnut:"f1g0x7ka",z189sj:["fps1v9c","f17ae1jz"],Byoj8tv:"f1qch9an",uwmqm3:["f17ae1jz","fps1v9c"]},medium:{},large:{a9b677:"fq4mcun",Bqenvij:"frvgh55",z8tnut:"f1g0x7ka",z189sj:["f17a92cs","f1pe0i86"],Byoj8tv:"f1qch9an",uwmqm3:["f1pe0i86","f17a92cs"]},"extra-large":{a9b677:"f1szoe96",Bqenvij:"f1d2rq10",z8tnut:"f1g0x7ka",z189sj:["fqznh8f","f1xile11"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},rounded:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},roundedSmallToTiny:{Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"]},circular:{},borderGhost:{ap17g6:"f10ludwy"},filled:{},"filled-brand":{De3pzq:"ffp7eso",sj55zd:"f1phragk"},"filled-danger":{De3pzq:"fdl5y0r",sj55zd:"f1phragk"},"filled-important":{De3pzq:"f1c73kur",sj55zd:"fr0bkrk"},"filled-informative":{De3pzq:"f3vzo32",sj55zd:"f11d4kpn"},"filled-severe":{De3pzq:"f1s438gw",sj55zd:"f1phragk"},"filled-subtle":{De3pzq:"fxugw4r",sj55zd:"f19n0e5"},"filled-success":{De3pzq:"flxk52p",sj55zd:"f1phragk"},"filled-warning":{De3pzq:"ffq97bm",sj55zd:"ff5vbop"},ghost:{},"ghost-brand":{sj55zd:"f16muhyy"},"ghost-danger":{sj55zd:"f1whyuy6"},"ghost-important":{sj55zd:"f19n0e5"},"ghost-informative":{sj55zd:"f11d4kpn"},"ghost-severe":{sj55zd:"f1l8vj45"},"ghost-subtle":{sj55zd:"fonrgv7"},"ghost-success":{sj55zd:"f1m7fhi8"},"ghost-warning":{sj55zd:"fpti2h4"},outline:{g2u3we:"f23ftbb",h3c5rm:["f1gkuv52","f1p1bl80"],B9xav0g:"fioka3i",zhjwy3:["f1p1bl80","f1gkuv52"]},"outline-brand":{sj55zd:"f16muhyy"},"outline-danger":{sj55zd:"f1whyuy6",g2u3we:"fyqpifd",h3c5rm:["f3ukxca","f1k7dugc"],B9xav0g:"f1njxb2b",zhjwy3:["f1k7dugc","f3ukxca"]},"outline-important":{sj55zd:"f11d4kpn",g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"]},"outline-informative":{sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"outline-severe":{sj55zd:"f1l8vj45"},"outline-subtle":{sj55zd:"fonrgv7"},"outline-success":{sj55zd:"f1m7fhi8",g2u3we:"f1mmhl11",h3c5rm:["f1tjpp2f","f1ocn5n7"],B9xav0g:"f1gjv25d",zhjwy3:["f1ocn5n7","f1tjpp2f"]},"outline-warning":{sj55zd:"fpti2h4"},tint:{},"tint-brand":{De3pzq:"f16xkysk",sj55zd:"faj9fo0",g2u3we:"f161y7kd",h3c5rm:["f1c8dzaj","f1sl6hi9"],B9xav0g:"f1619yhw",zhjwy3:["f1sl6hi9","f1c8dzaj"]},"tint-danger":{De3pzq:"ff0poqj",sj55zd:"f1hcrxcs",g2u3we:"f1oqjm8o",h3c5rm:["fkgrb8g","frb5wm0"],B9xav0g:"f1iai1ph",zhjwy3:["frb5wm0","fkgrb8g"]},"tint-important":{De3pzq:"f945g0u",sj55zd:"fr0bkrk",g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"tint-informative":{De3pzq:"f1ctqxl6",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-severe":{De3pzq:"f1xzsg4",sj55zd:"f1k5f75o",g2u3we:"fxy9dsj",h3c5rm:["f54u6j2","fcm23ze"],B9xav0g:"f4vf0uq",zhjwy3:["fcm23ze","f54u6j2"]},"tint-subtle":{De3pzq:"fxugw4r",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-success":{De3pzq:"f2vsrz6",sj55zd:"ffmvakt",g2u3we:"fdmic9h",h3c5rm:["f196y6m","fetptd8"],B9xav0g:"f1pev5xq",zhjwy3:["fetptd8","f196y6m"]},"tint-warning":{De3pzq:"f10s6hli",sj55zd:"f42v8de",g2u3we:"fn9i3n",h3c5rm:["f1aw8cx4","f51if14"],B9xav0g:"fvq8iai",zhjwy3:["f51if14","f1aw8cx4"]}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f130uwy9{font-size:4px;}",".fod1mrr{line-height:4px;}",".f18p0k4z{min-width:unset;}",".f1q8r6hh{padding-top:unset;}",".fio2s09{padding-right:unset;}",".fkiw60q{padding-left:unset;}",".f9yu9nh{padding-bottom:unset;}",".fpd43o0{width:10px;}",".f30q22z{height:10px;}",".f1tccstq{font-size:6px;}",".f1y3arg5{line-height:6px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f1g0x7ka{padding-top:0;}",".fps1v9c{padding-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f17ae1jz{padding-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1qch9an{padding-bottom:0;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f17a92cs{padding-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1pe0i86{padding-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f10ludwy::after{display:none;}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}",".f1c73kur{background-color:var(--colorNeutralForeground1);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f3vzo32{background-color:var(--colorNeutralBackground5);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".flxk52p{background-color:var(--colorPaletteGreenBackground3);}",".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}",".ff5vbop{color:var(--colorNeutralForeground1Static);}",".f16muhyy{color:var(--colorBrandForeground1);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",".fpti2h4{color:var(--colorPaletteYellowForeground2);}",".f23ftbb{border-top-color:currentColor;}",".f1gkuv52{border-right-color:currentColor;}",".f1p1bl80{border-left-color:currentColor;}",".fioka3i{border-bottom-color:currentColor;}",".fyqpifd{border-top-color:var(--colorPaletteRedBorder2);}",".f3ukxca{border-right-color:var(--colorPaletteRedBorder2);}",".f1k7dugc{border-left-color:var(--colorPaletteRedBorder2);}",".f1njxb2b{border-bottom-color:var(--colorPaletteRedBorder2);}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f68mrw8{border-top-color:var(--colorNeutralStroke2);}",".f7pw515{border-right-color:var(--colorNeutralStroke2);}",".fw35ms5{border-left-color:var(--colorNeutralStroke2);}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",".f1mmhl11{border-top-color:var(--colorPaletteGreenBorder2);}",".f1tjpp2f{border-right-color:var(--colorPaletteGreenBorder2);}",".f1ocn5n7{border-left-color:var(--colorPaletteGreenBorder2);}",".f1gjv25d{border-bottom-color:var(--colorPaletteGreenBorder2);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f161y7kd{border-top-color:var(--colorBrandStroke2);}",".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}",".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}",".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}",".ff0poqj{background-color:var(--colorPaletteRedBackground1);}",".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1oqjm8o{border-top-color:var(--colorPaletteRedBorder1);}",".fkgrb8g{border-right-color:var(--colorPaletteRedBorder1);}",".frb5wm0{border-left-color:var(--colorPaletteRedBorder1);}",".f1iai1ph{border-bottom-color:var(--colorPaletteRedBorder1);}",".f945g0u{background-color:var(--colorNeutralForeground3);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f1ctqxl6{background-color:var(--colorNeutralBackground4);}",".f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".fxy9dsj{border-top-color:var(--colorPaletteDarkOrangeBorder1);}",".f54u6j2{border-right-color:var(--colorPaletteDarkOrangeBorder1);}",".fcm23ze{border-left-color:var(--colorPaletteDarkOrangeBorder1);}",".f4vf0uq{border-bottom-color:var(--colorPaletteDarkOrangeBorder1);}",".f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}",".fdmic9h{border-top-color:var(--colorPaletteGreenBorder1);}",".f196y6m{border-right-color:var(--colorPaletteGreenBorder1);}",".fetptd8{border-left-color:var(--colorPaletteGreenBorder1);}",".f1pev5xq{border-bottom-color:var(--colorPaletteGreenBorder1);}",".f10s6hli{background-color:var(--colorPaletteYellowBackground1);}",".f42v8de{color:var(--colorPaletteYellowForeground1);}",".fn9i3n{border-top-color:var(--colorPaletteYellowBorder1);}",".f1aw8cx4{border-right-color:var(--colorPaletteYellowBorder1);}",".f51if14{border-left-color:var(--colorPaletteYellowBorder1);}",".fvq8iai{border-bottom-color:var(--colorPaletteYellowBorder1);}"]}),U6e=Cn("rttl5z0",null,[".rttl5z0{display:flex;line-height:1;margin:0 calc(-1 * var(--spacingHorizontalXXS));font-size:12px;}"]),Y6e=bt({beforeText:{t21cq0:["f1t8l4o1","f11juvx6"]},afterText:{Frg6f3:["f11juvx6","f1t8l4o1"]},beforeTextXL:{t21cq0:["f1rs9grm","f1kwmkpi"]},afterTextXL:{Frg6f3:["f1kwmkpi","f1rs9grm"]},tiny:{Be2twd7:"f1tccstq"},"extra-small":{Be2twd7:"fnmn6fi"},small:{Be2twd7:"f1ugzwwg"},medium:{},large:{Be2twd7:"f4ybsrx"},"extra-large":{Be2twd7:"fe5j1ua"}},{d:[".f1t8l4o1{margin-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f11juvx6{margin-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1rs9grm{margin-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1kwmkpi{margin-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1tccstq{font-size:6px;}",".fnmn6fi{font-size:10px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}"]}),X6e=e=>{const t=K6e(),r=V6e(),n=e.size==="small"||e.size==="extra-small"||e.size==="tiny";e.root.className=Ve(FG.root,t,n&&r.fontSmallToTiny,r[e.size],r[e.shape],e.shape==="rounded"&&n&&r.roundedSmallToTiny,e.appearance==="ghost"&&r.borderGhost,r[e.appearance],r[`${e.appearance}-${e.color}`],e.root.className);const o=U6e(),i=Y6e();if(e.icon){let s;e.root.children&&(e.size==="extra-large"?s=e.iconPosition==="after"?i.afterTextXL:i.beforeTextXL:s=e.iconPosition==="after"?i.afterText:i.beforeText),e.icon.className=Ve(FG.icon,o,s,i[e.size],e.icon.className)}return e},Q6e=e=>zn(e.root,{children:[e.iconPosition==="before"&&e.icon&&Je(e.icon,{}),e.root.children,e.iconPosition==="after"&&e.icon&&Je(e.icon,{})]}),VL=A.forwardRef((e,t)=>{const r=G6e(e,t);return X6e(r),cn("useBadgeStyles_unstable")(r),Q6e(r)});VL.displayName="Badge";const Z6e=A.createContext(void 0),J6e=Z6e.Provider;function eMe(e){const t=e.clientX,r=e.clientY,n=t+1,o=r+1;function i(){return{left:t,top:r,right:n,bottom:o,x:t,y:r,height:1,width:1}}return{getBoundingClientRect:i}}const BG="data-popper-is-intersecting",MG="data-popper-escaped",LG="data-popper-reference-hidden",tMe="data-popper-placement",rMe=["top","right","bottom","left"],Xh=Math.min,sl=Math.max,WA=Math.round,d1=e=>({x:e,y:e}),nMe={left:"right",right:"left",bottom:"top",top:"bottom"},oMe={start:"end",end:"start"};function RB(e,t,r){return sl(e,Xh(t,r))}function Tf(e,t){return typeof e=="function"?e(t):e}function If(e){return e.split("-")[0]}function mv(e){return e.split("-")[1]}function UL(e){return e==="x"?"y":"x"}function YL(e){return e==="y"?"height":"width"}function yv(e){return["top","bottom"].includes(If(e))?"y":"x"}function XL(e){return UL(yv(e))}function iMe(e,t,r){r===void 0&&(r=!1);const n=mv(e),o=XL(e),i=YL(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=GA(s)),[s,GA(s)]}function sMe(e){const t=GA(e);return[OB(e),t,OB(t)]}function OB(e){return e.replace(/start|end/g,t=>oMe[t])}function aMe(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:s;default:return[]}}function lMe(e,t,r,n){const o=mv(e);let i=aMe(If(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(OB)))),i}function GA(e){return e.replace(/left|right|bottom|top/g,t=>nMe[t])}function uMe(e){return{top:0,right:0,bottom:0,left:0,...e}}function Wle(e){return typeof e!="number"?uMe(e):{top:e,right:e,bottom:e,left:e}}function KA(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function jG(e,t,r){let{reference:n,floating:o}=e;const i=yv(t),s=XL(t),a=YL(s),l=If(t),u=i==="y",c=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,d=n[a]/2-o[a]/2;let h;switch(l){case"top":h={x:c,y:n.y-o.height};break;case"bottom":h={x:c,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-o.width,y:f};break;default:h={x:n.x,y:n.y}}switch(mv(t)){case"start":h[s]-=d*(r&&u?-1:1);break;case"end":h[s]+=d*(r&&u?-1:1);break}return h}const cMe=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=jG(u,n,l),d=n,h={},g=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=Tf(e,t)||{};if(u==null)return{};const f=Wle(c),d={x:r,y:n},h=XL(o),g=YL(h),v=await s.getDimensions(u),y=h==="y",E=y?"top":"left",_=y?"bottom":"right",S=y?"clientHeight":"clientWidth",b=i.reference[g]+i.reference[h]-d[h]-i.floating[g],k=d[h]-i.reference[h],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let x=T?T[S]:0;(!x||!await(s.isElement==null?void 0:s.isElement(T)))&&(x=a.floating[S]||i.floating[g]);const I=b/2-k/2,C=x/2-v[g]/2-1,R=Xh(f[E],C),D=Xh(f[_],C),L=R,M=x-v[g]-D,W=x/2-v[g]/2+I,z=RB(L,W,M),F=!l.arrow&&mv(o)!=null&&W!=z&&i.reference[g]/2-(WL<=0)){var C,R;const L=(((C=i.flip)==null?void 0:C.index)||0)+1,M=k[L];if(M)return{data:{index:L,overflows:I},reset:{placement:M}};let W=(R=I.filter(z=>z.overflows[0]<=0).sort((z,F)=>z.overflows[1]-F.overflows[1])[0])==null?void 0:R.placement;if(!W)switch(h){case"bestFit":{var D;const z=(D=I.map(F=>[F.placement,F.overflows.filter(P=>P>0).reduce((P,K)=>P+K,0)]).sort((F,P)=>F[1]-P[1])[0])==null?void 0:D[0];z&&(W=z);break}case"initialPlacement":W=a;break}if(o!==W)return{reset:{placement:W}}}return{}}}};function zG(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function HG(e){return rMe.some(t=>e[t]>=0)}const $G=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Tf(e,t);switch(n){case"referenceHidden":{const i=await Lg(t,{...o,elementContext:"reference"}),s=zG(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:HG(s)}}}case"escaped":{const i=await Lg(t,{...o,altBoundary:!0}),s=zG(i,r.floating);return{data:{escapedOffsets:s,escaped:HG(s)}}}default:return{}}}}};async function hMe(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=If(r),a=mv(r),l=yv(r)==="y",u=["left","top"].includes(s)?-1:1,c=i&&l?-1:1,f=Tf(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const pMe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await hMe(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},gMe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:E,y:_}=y;return{x:E,y:_}}},...l}=Tf(e,t),u={x:r,y:n},c=await Lg(t,l),f=yv(If(o)),d=UL(f);let h=u[d],g=u[f];if(i){const y=d==="y"?"top":"left",E=d==="y"?"bottom":"right",_=h+c[y],S=h-c[E];h=RB(_,h,S)}if(s){const y=f==="y"?"top":"left",E=f==="y"?"bottom":"right",_=g+c[y],S=g-c[E];g=RB(_,g,S)}const v=a.fn({...t,[d]:h,[f]:g});return{...v,data:{x:v.x-r,y:v.y-n}}}}},vMe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Tf(e,t),c={x:r,y:n},f=yv(o),d=UL(f);let h=c[d],g=c[f];const v=Tf(a,t),y=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const S=d==="y"?"height":"width",b=i.reference[d]-i.floating[S]+y.mainAxis,k=i.reference[d]+i.reference[S]-y.mainAxis;hk&&(h=k)}if(u){var E,_;const S=d==="y"?"width":"height",b=["top","left"].includes(If(o)),k=i.reference[f]-i.floating[S]+(b&&((E=s.offset)==null?void 0:E[f])||0)+(b?0:y.crossAxis),T=i.reference[f]+i.reference[S]+(b?0:((_=s.offset)==null?void 0:_[f])||0)-(b?y.crossAxis:0);gT&&(g=T)}return{[d]:h,[f]:g}}}},mMe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:i}=t,{apply:s=()=>{},...a}=Tf(e,t),l=await Lg(t,a),u=If(r),c=mv(r),f=yv(r)==="y",{width:d,height:h}=n.floating;let g,v;u==="top"||u==="bottom"?(g=u,v=c===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=u,g=c==="end"?"top":"bottom");const y=h-l[g],E=d-l[v],_=!t.middlewareData.shift;let S=y,b=E;if(f){const T=d-l.left-l.right;b=c||_?Xh(E,T):T}else{const T=h-l.top-l.bottom;S=c||_?Xh(y,T):T}if(_&&!c){const T=sl(l.left,0),x=sl(l.right,0),I=sl(l.top,0),C=sl(l.bottom,0);f?b=d-2*(T!==0||x!==0?T+x:sl(l.left,l.right)):S=h-2*(I!==0||C!==0?I+C:sl(l.top,l.bottom))}await s({...t,availableWidth:b,availableHeight:S});const k=await o.getDimensions(i.floating);return d!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function h1(e){return Gle(e)?(e.nodeName||"").toLowerCase():"#document"}function _a(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function N1(e){var t;return(t=(Gle(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gle(e){return e instanceof Node||e instanceof _a(e).Node}function Cf(e){return e instanceof Element||e instanceof _a(e).Element}function pc(e){return e instanceof HTMLElement||e instanceof _a(e).HTMLElement}function PG(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _a(e).ShadowRoot}function eE(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Sl(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function yMe(e){return["table","td","th"].includes(h1(e))}function QL(e){const t=ZL(),r=Sl(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function bMe(e){let t=jg(e);for(;pc(t)&&!PT(t);){if(QL(t))return t;t=jg(t)}return null}function ZL(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function PT(e){return["html","body","#document"].includes(h1(e))}function Sl(e){return _a(e).getComputedStyle(e)}function qT(e){return Cf(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function jg(e){if(h1(e)==="html")return e;const t=e.assignedSlot||e.parentNode||PG(e)&&e.host||N1(e);return PG(t)?t.host:t}function Kle(e){const t=jg(e);return PT(t)?e.ownerDocument?e.ownerDocument.body:e.body:pc(t)&&eE(t)?t:Kle(t)}function DB(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Kle(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=_a(o);return i?t.concat(s,s.visualViewport||[],eE(o)?o:[],s.frameElement&&r?DB(s.frameElement):[]):t.concat(o,DB(o,[],r))}function Vle(e){const t=Sl(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=pc(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=WA(r)!==i||WA(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function Ule(e){return Cf(e)?e:e.contextElement}function ug(e){const t=Ule(e);if(!pc(t))return d1(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Vle(t);let s=(i?WA(r.width):r.width)/n,a=(i?WA(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const _Me=d1(0);function Yle(e){const t=_a(e);return!ZL()||!t.visualViewport?_Me:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function EMe(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==_a(e)?!1:t}function Kb(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Ule(e);let s=d1(1);t&&(n?Cf(n)&&(s=ug(n)):s=ug(e));const a=EMe(i,r,n)?Yle(i):d1(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,c=o.width/s.x,f=o.height/s.y;if(i){const d=_a(i),h=n&&Cf(n)?_a(n):n;let g=d.frameElement;for(;g&&n&&h!==d;){const v=ug(g),y=g.getBoundingClientRect(),E=Sl(g),_=y.left+(g.clientLeft+parseFloat(E.paddingLeft))*v.x,S=y.top+(g.clientTop+parseFloat(E.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,f*=v.y,l+=_,u+=S,g=_a(g).frameElement}}return KA({width:c,height:f,x:l,y:u})}function SMe(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=pc(r),i=N1(r);if(r===i)return t;let s={scrollLeft:0,scrollTop:0},a=d1(1);const l=d1(0);if((o||!o&&n!=="fixed")&&((h1(r)!=="body"||eE(i))&&(s=qT(r)),pc(r))){const u=Kb(r);a=ug(r),l.x=u.x+r.clientLeft,l.y=u.y+r.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}}function wMe(e){return Array.from(e.getClientRects())}function Xle(e){return Kb(N1(e)).left+qT(e).scrollLeft}function kMe(e){const t=N1(e),r=qT(e),n=e.ownerDocument.body,o=sl(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=sl(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Xle(e);const a=-r.scrollTop;return Sl(n).direction==="rtl"&&(s+=sl(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}function AMe(e,t){const r=_a(e),n=N1(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=ZL();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function xMe(e,t){const r=Kb(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=pc(e)?ug(e):d1(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=n*i.y;return{width:s,height:a,x:l,y:u}}function qG(e,t,r){let n;if(t==="viewport")n=AMe(e,r);else if(t==="document")n=kMe(N1(e));else if(Cf(t))n=xMe(t,r);else{const o=Yle(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return KA(n)}function Qle(e,t){const r=jg(e);return r===t||!Cf(r)||PT(r)?!1:Sl(r).position==="fixed"||Qle(r,t)}function TMe(e,t){const r=t.get(e);if(r)return r;let n=DB(e,[],!1).filter(a=>Cf(a)&&h1(a)!=="body"),o=null;const i=Sl(e).position==="fixed";let s=i?jg(e):e;for(;Cf(s)&&!PT(s);){const a=Sl(s),l=QL(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||eE(s)&&!l&&Qle(e,s))?n=n.filter(c=>c!==s):o=a,s=jg(s)}return t.set(e,n),n}function IMe(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?TMe(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((u,c)=>{const f=qG(t,c,o);return u.top=sl(f.top,u.top),u.right=Xh(f.right,u.right),u.bottom=Xh(f.bottom,u.bottom),u.left=sl(f.left,u.left),u},qG(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function CMe(e){return Vle(e)}function NMe(e,t,r){const n=pc(t),o=N1(t),i=r==="fixed",s=Kb(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=d1(0);if(n||!n&&!i)if((h1(t)!=="body"||eE(o))&&(a=qT(t)),n){const u=Kb(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else o&&(l.x=Xle(o));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function WG(e,t){return!pc(e)||Sl(e).position==="fixed"?null:t?t(e):e.offsetParent}function Zle(e,t){const r=_a(e);if(!pc(e))return r;let n=WG(e,t);for(;n&&yMe(n)&&Sl(n).position==="static";)n=WG(n,t);return n&&(h1(n)==="html"||h1(n)==="body"&&Sl(n).position==="static"&&!QL(n))?r:n||bMe(e)||r}const RMe=async function(e){let{reference:t,floating:r,strategy:n}=e;const o=this.getOffsetParent||Zle,i=this.getDimensions;return{reference:NMe(t,await o(r),n),floating:{x:0,y:0,...await i(r)}}};function OMe(e){return Sl(e).direction==="rtl"}const DMe={convertOffsetParentRelativeRectToViewportRelativeRect:SMe,getDocumentElement:N1,getClippingRect:IMe,getOffsetParent:Zle,getElementRects:RMe,getClientRects:wMe,getDimensions:CMe,getScale:ug,isElement:Cf,isRTL:OMe},FMe=(e,t,r)=>{const n=new Map,o={platform:DMe,...r},i={...o.platform,_c:n};return cMe(e,t,{...o,platform:i})};function Jle(e){const t=e.split("-");return{side:t[0],alignment:t[1]}}const BMe=e=>e.nodeName==="HTML"?e:e.parentNode||e.host,MMe=e=>{var t;return e.nodeType!==1?{}:((t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView).getComputedStyle(e,null)},WT=e=>{const t=e&&BMe(e);if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:r,overflowX:n,overflowY:o}=MMe(t);return/(auto|scroll|overlay)/.test(r+o+n)?t:WT(t)},LMe=e=>{var t;const r=WT(e);return r?r!==((t=r.ownerDocument)===null||t===void 0?void 0:t.body):!1};function JL(e,t){if(t==="window")return e==null?void 0:e.ownerDocument.documentElement;if(t==="clippingParents")return"clippingAncestors";if(t==="scrollParent"){let r=WT(e);return r.nodeName==="BODY"&&(r=e==null?void 0:e.ownerDocument.documentElement),r}return t}function eue(e,t){return typeof e=="number"||typeof e=="object"&&e!==null?TC(e,t):typeof e=="function"?r=>{const n=e(r);return TC(n,t)}:{mainAxis:t}}const TC=(e,t)=>{if(typeof e=="number")return{mainAxis:e+t};var r;return{...e,mainAxis:((r=e.mainAxis)!==null&&r!==void 0?r:0)+t}};function jMe(e,t){if(typeof e=="number")return e;const{start:r,end:n,...o}=e,i=o,s=t?"end":"start",a=t?"start":"end";return e[s]&&(i.left=e[s]),e[a]&&(i.right=e[a]),i}const zMe=e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}),HMe=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),$Me=(e,t)=>{const r=e==="above"||e==="below",n=t==="top"||t==="bottom";return r&&n||!r&&!n},tue=(e,t,r)=>{const n=$Me(t,e)?"center":e,o=t&&zMe(r)[t],i=n&&HMe()[n];return o&&i?`${o}-${i}`:o},PMe=()=>({top:"above",bottom:"below",right:"after",left:"before"}),qMe=e=>e==="above"||e==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},WMe=e=>{const{side:t,alignment:r}=Jle(e),n=PMe()[t],o=r&&qMe(n)[r];return{position:n,alignment:o}},GMe={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function GT(e){return e==null?{}:typeof e=="string"?GMe[e]:e}function IC(e,t,r){const n=A.useRef(!0),[o]=A.useState(()=>({value:e,callback:t,facade:{get current(){return o.value},set current(i){const s=o.value;if(s!==i){if(o.value=i,r&&n.current)return;o.callback(i,s)}}}}));return hc(()=>{n.current=!1},[]),o.callback=t,o.facade}function KMe(e){let t;return()=>(t||(t=new Promise(r=>{Promise.resolve().then(()=>{t=void 0,r(e())})})),t)}function VMe(e){const{arrow:t,middlewareData:r}=e;if(!r.arrow||!t)return;const{x:n,y:o}=r.arrow;Object.assign(t.style,{left:`${n}px`,top:`${o}px`})}function UMe(e){var t,r,n;const{container:o,placement:i,middlewareData:s,strategy:a,lowPPI:l,coordinates:u,useTransform:c=!0}=e;if(!o)return;o.setAttribute(tMe,i),o.removeAttribute(BG),s.intersectionObserver.intersecting&&o.setAttribute(BG,""),o.removeAttribute(MG),!((t=s.hide)===null||t===void 0)&&t.escaped&&o.setAttribute(MG,""),o.removeAttribute(LG),!((r=s.hide)===null||r===void 0)&&r.referenceHidden&&o.setAttribute(LG,"");const f=((n=o.ownerDocument.defaultView)===null||n===void 0?void 0:n.devicePixelRatio)||1,d=Math.round(u.x*f)/f,h=Math.round(u.y*f)/f;if(Object.assign(o.style,{position:a}),c){Object.assign(o.style,{transform:l?`translate(${d}px, ${h}px)`:`translate3d(${d}px, ${h}px, 0)`});return}Object.assign(o.style,{left:`${d}px`,top:`${h}px`})}const YMe=e=>{switch(e){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function XMe(){return{name:"coverTarget",fn:e=>{const{placement:t,rects:r,x:n,y:o}=e,i=Jle(t).side,s={x:n,y:o};switch(i){case"bottom":s.y-=r.reference.height;break;case"top":s.y+=r.reference.height;break;case"left":s.x+=r.reference.width;break;case"right":s.x-=r.reference.width;break}return s}}}function QMe(e){const{hasScrollableElement:t,flipBoundary:r,container:n,fallbackPositions:o=[],isRtl:i}=e,s=o.reduce((a,l)=>{const{position:u,align:c}=GT(l),f=tue(c,u,i);return f&&a.push(f),a},[]);return dMe({...t&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:JL(n,r)},fallbackStrategy:"bestFit",...s.length&&{fallbackPlacements:s}})}function ZMe(){return{name:"intersectionObserver",fn:async e=>{const t=e.rects.floating,r=await Lg(e,{altBoundary:!0}),n=r.top0,o=r.bottom0;return{data:{intersecting:n||o}}}}}const JMe=e=>({name:"resetMaxSize",fn({middlewareData:t,elements:r}){var n;if(!((n=t.resetMaxSize)===null||n===void 0)&&n.maxSizeAlreadyReset)return{};const{applyMaxWidth:o,applyMaxHeight:i}=e;return o&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),i&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function e8e(e,t){const{container:r,overflowBoundary:n}=t;return mMe({...n&&{altBoundary:!0,boundary:JL(r,n)},apply({availableHeight:o,availableWidth:i,elements:s,rects:a}){const l=(f,d,h)=>{if(f&&(s.floating.style.setProperty("box-sizing","border-box"),s.floating.style.setProperty(`max-${d}`,`${h}px`),a.floating[d]>h)){s.floating.style.setProperty(d,`${h}px`);const g=d==="width"?"x":"y";s.floating.style.getPropertyValue(`overflow-${g}`)||s.floating.style.setProperty(`overflow-${g}`,"auto")}},{applyMaxWidth:u,applyMaxHeight:c}=e;l(u,"width",i),l(c,"height",o)}})}function t8e(e){return!e||typeof e=="number"||typeof e=="object"?e:({rects:{floating:t,reference:r},placement:n})=>{const{position:o,alignment:i}=WMe(n);return e({positionedRect:t,targetRect:r,position:o,alignment:i})}}function r8e(e){const t=t8e(e);return pMe(t)}function n8e(e){const{hasScrollableElement:t,disableTether:r,overflowBoundary:n,container:o,overflowBoundaryPadding:i,isRtl:s}=e;return gMe({...t&&{boundary:"clippingAncestors"},...r&&{crossAxis:r==="all",limiter:vMe({crossAxis:r!=="all",mainAxis:!1})},...i&&{padding:jMe(i,s)},...n&&{altBoundary:!0,boundary:JL(o,n)}})}const GG="--fui-match-target-size";function o8e(){return{name:"matchTargetSize",fn:async e=>{const{rects:{reference:t,floating:r},elements:{floating:n},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:o=!1}={}}}=e;if(t.width===r.width||o)return{};const{width:i}=t;return n.style.setProperty(GG,`${i}px`),n.style.width||(n.style.width=`var(${GG})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function KG(e){const t=[];let r=e;for(;r;){const n=WT(r);if(e.ownerDocument.body===n){t.push(n);break}t.push(n),r=n}return t}function i8e(e){const{container:t,target:r,arrow:n,strategy:o,middleware:i,placement:s,useTransform:a=!0}=e;let l=!1;if(!r||!t)return{updatePosition:()=>{},dispose:()=>{}};let u=!0;const c=new Set,f=t.ownerDocument.defaultView;Object.assign(t.style,{position:"fixed",left:0,top:0,margin:0});const d=()=>{l||(u&&(KG(t).forEach(v=>c.add(v)),$b(r)&&KG(r).forEach(v=>c.add(v)),c.forEach(v=>{v.addEventListener("scroll",h,{passive:!0})}),u=!1),Object.assign(t.style,{position:o}),FMe(r,t,{placement:s,middleware:i,strategy:o}).then(({x:v,y,middlewareData:E,placement:_})=>{l||(VMe({arrow:n,middlewareData:E}),UMe({container:t,middlewareData:E,placement:_,coordinates:{x:v,y},lowPPI:((f==null?void 0:f.devicePixelRatio)||1)<=1,strategy:o,useTransform:a}))}).catch(v=>{}))},h=KMe(()=>d()),g=()=>{l=!0,f&&(f.removeEventListener("scroll",h),f.removeEventListener("resize",h)),c.forEach(v=>{v.removeEventListener("scroll",h)}),c.clear()};return f&&(f.addEventListener("scroll",h,{passive:!0}),f.addEventListener("resize",h)),h(),{updatePosition:h,dispose:g}}function e7(e){const t=A.useRef(null),r=A.useRef(null),n=A.useRef(null),o=A.useRef(null),i=A.useRef(null),{enabled:s=!0}=e,a=s8e(e),l=A.useCallback(()=>{t.current&&t.current.dispose(),t.current=null;var h;const g=(h=n.current)!==null&&h!==void 0?h:r.current;s&&Q_()&&g&&o.current&&(t.current=i8e({container:o.current,target:g,arrow:i.current,...a(o.current,i.current)}))},[s,a]),u=ir(h=>{n.current=h,l()});A.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var h;return(h=t.current)===null||h===void 0?void 0:h.updatePosition()},setTarget:h=>{e.target,u(h)}}),[e.target,u]),hc(()=>{var h;u((h=e.target)!==null&&h!==void 0?h:null)},[e.target,u]),hc(()=>{l()},[l]);const c=IC(null,h=>{r.current!==h&&(r.current=h,l())}),f=IC(null,h=>{o.current!==h&&(o.current=h,l())}),d=IC(null,h=>{i.current!==h&&(i.current=h,l())});return{targetRef:c,containerRef:f,arrowRef:d}}function s8e(e){const{align:t,arrowPadding:r,autoSize:n,coverTarget:o,flipBoundary:i,offset:s,overflowBoundary:a,pinned:l,position:u,unstable_disableTether:c,positionFixed:f,strategy:d,overflowBoundaryPadding:h,fallbackPositions:g,useTransform:v,matchTargetSize:y}=e,{dir:E,targetDocument:_}=Fa(),S=E==="rtl",b=d??f?"fixed":"absolute",k=YMe(n);return A.useCallback((T,x)=>{const I=LMe(T),C=[k&&JMe(k),y&&o8e(),s&&r8e(s),o&&XMe(),!l&&QMe({container:T,flipBoundary:i,hasScrollableElement:I,isRtl:S,fallbackPositions:g}),n8e({container:T,hasScrollableElement:I,overflowBoundary:a,disableTether:c,overflowBoundaryPadding:h,isRtl:S}),k&&e8e(k,{container:T,overflowBoundary:a}),ZMe(),x&&fMe({element:x,padding:r}),$G({strategy:"referenceHidden"}),$G({strategy:"escaped"}),!1].filter(Boolean);return{placement:tue(t,u,S),middleware:C,strategy:b,useTransform:v}},[t,r,k,o,c,i,S,s,a,l,u,b,h,g,v,y,_])}const a8e=e=>{const[t,r]=A.useState(e);return[t,o=>{if(o==null){r(void 0);return}let i;o instanceof MouseEvent?i=o:i=o.nativeEvent,i instanceof MouseEvent;const s=eMe(i);r(s)}]},t7=vv(void 0),l8e={open:!1,setOpen:()=>null,toggleOpen:()=>null,triggerRef:{current:null},contentRef:{current:null},arrowRef:{current:null},openOnContext:!1,openOnHover:!1,size:"medium",trapFocus:!1,inline:!1};t7.Provider;const ui=e=>Yo(t7,(t=l8e)=>e(t)),u8e=(e,t)=>{const r=ui(_=>_.contentRef),n=ui(_=>_.openOnHover),o=ui(_=>_.setOpen),i=ui(_=>_.mountNode),s=ui(_=>_.arrowRef),a=ui(_=>_.size),l=ui(_=>_.withArrow),u=ui(_=>_.appearance),c=ui(_=>_.trapFocus),f=ui(_=>_.inertTrapFocus),d=ui(_=>_.inline),{modalAttributes:h}=zT({trapFocus:c,legacyTrapFocus:!f,alwaysFocusable:!c}),g={inline:d,appearance:u,withArrow:l,size:a,arrowRef:s,mountNode:i,components:{root:"div"},root:_r(_n("div",{ref:Ho(t,r),role:c?"dialog":"group","aria-modal":c?!0:void 0,...h,...e}),{elementType:"div"})},{onMouseEnter:v,onMouseLeave:y,onKeyDown:E}=g.root;return g.root.onMouseEnter=_=>{n&&o(_,!0),v==null||v(_)},g.root.onMouseLeave=_=>{n&&o(_,!1),y==null||y(_)},g.root.onKeyDown=_=>{var S;_.key==="Escape"&&(!((S=r.current)===null||S===void 0)&&S.contains(_.target))&&(_.preventDefault(),o(_,!1)),E==null||E(_)},g};function c8e(e){return $b(e)?{element:e}:typeof e=="object"?e===null?{element:null}:e:{}}var rue=()=>A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,f8e=()=>!1,VG=new WeakSet;function d8e(e,t){const r=rue();A.useEffect(()=>{if(!VG.has(r)){VG.add(r),e();return}return e()},t)}var UG=new WeakSet;function h8e(e,t){return A.useMemo(()=>{const r=rue();return UG.has(r)?e():(UG.add(r),null)},t)}function p8e(e,t){var r;const n=f8e()&&!1,o=n?h8e:A.useMemo,i=n?d8e:A.useEffect,[s,a]=(r=o(()=>e(),t))!=null?r:[null,()=>null];return i(()=>a,t),s}const g8e=bt({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),YG=hb.useInsertionEffect,v8e=e=>{const{targetDocument:t,dir:r}=Fa(),n=g3e(),o=_le(),i=g8e(),s=i3e(),a=Ve(s,i.root,e.className),l=n??(t==null?void 0:t.body),u=p8e(()=>{if(l===void 0||e.disabled)return[null,()=>null];const c=l.ownerDocument.createElement("div");return l.appendChild(c),[c,()=>c.remove()]},[l]);return YG?YG(()=>{if(!u)return;const c=a.split(" ").filter(Boolean);return u.classList.add(...c),u.setAttribute("dir",r),o.current=u,()=>{u.classList.remove(...c),u.removeAttribute("dir")}},[a,r,u,o]):A.useMemo(()=>{u&&(u.className=a,u.setAttribute("dir",r),o.current=u)},[a,r,u,o]),u},m8e=e=>{const{element:t,className:r}=c8e(e.mountNode),n=A.useRef(null),o=v8e({disabled:!!t,className:r}),i=t??o,s={children:e.children,mountNode:i,virtualParentRootRef:n};return A.useEffect(()=>{if(!i)return;const a=n.current,l=i.contains(a);if(a&&!l)return kG(i,a),()=>{kG(i,void 0)}},[n,i]),s},y8e=e=>A.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&pi.createPortal(e.children,e.mountNode)),bv=e=>{const t=m8e(e);return y8e(t)};bv.displayName="Portal";const b8e=e=>{const t=zn(e.root,{children:[e.withArrow&&Je("div",{ref:e.arrowRef,className:e.arrowClassName}),e.root.children]});return e.inline?t:Je(bv,{mountNode:e.mountNode,children:t})},_8e={root:"fui-PopoverSurface"},E8e={small:6,medium:8,large:8},S8e=bt({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{z8tnut:"f1kcqot9",z189sj:["f11qrl6u","fjlbh76"],Byoj8tv:"fpe6lb7",uwmqm3:["fjlbh76","f11qrl6u"]},mediumPadding:{z8tnut:"fqag9an",z189sj:["f1gbmcue","f1rh9g5y"],Byoj8tv:"fp67ikv",uwmqm3:["f1rh9g5y","f1gbmcue"]},largePadding:{z8tnut:"fc7z3ec",z189sj:["fat0sn4","fekwl8i"],Byoj8tv:"fe2my4m",uwmqm3:["fekwl8i","fat0sn4"]},smallArrow:{a9b677:"f1ekdpwm",Bqenvij:"f83vc9z"},mediumLargeArrow:{a9b677:"f1kmc0fn",Bqenvij:"fb6lvc5"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1hg901r{box-shadow:var(--shadow16);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1kcqot9{padding-top:12px;}",".f11qrl6u{padding-right:12px;}",".fjlbh76{padding-left:12px;}",".fpe6lb7{padding-bottom:12px;}",".fqag9an{padding-top:16px;}",".f1gbmcue{padding-right:16px;}",".f1rh9g5y{padding-left:16px;}",".fp67ikv{padding-bottom:16px;}",".fc7z3ec{padding-top:20px;}",".fat0sn4{padding-right:20px;}",".fekwl8i{padding-left:20px;}",".fe2my4m{padding-bottom:20px;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",".f1kmc0fn{width:11.312px;}",".fb6lvc5{height:11.312px;}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}'],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),w8e=e=>{const t=S8e();return e.root.className=Ve(_8e.root,t.root,e.inline&&t.inline,e.size==="small"&&t.smallPadding,e.size==="medium"&&t.mediumPadding,e.size==="large"&&t.largePadding,e.appearance==="inverted"&&t.inverted,e.appearance==="brand"&&t.brand,e.root.className),e.arrowClassName=Ve(t.arrow,e.size==="small"?t.smallArrow:t.mediumLargeArrow),e},nue=A.forwardRef((e,t)=>{const r=u8e(e,t);return w8e(r),cn("usePopoverSurfaceStyles_unstable")(r),b8e(r)});nue.displayName="PopoverSurface";const k8e=4,A8e=e=>{const[t,r]=a8e(),n={size:"medium",contextTarget:t,setContextTarget:r,...e},o=A.Children.toArray(e.children);let i,s;o.length===2?(i=o[0],s=o[1]):o.length===1&&(s=o[0]);const[a,l]=x8e(n),u=A.useRef(0),c=ir((S,b)=>{if(clearTimeout(u.current),!(S instanceof Event)&&S.persist&&S.persist(),S.type==="mouseleave"){var k;u.current=setTimeout(()=>{l(S,b)},(k=e.mouseLeaveDelay)!==null&&k!==void 0?k:500)}else l(S,b)});A.useEffect(()=>()=>{clearTimeout(u.current)},[]);const f=A.useCallback(S=>{c(S,!a)},[c,a]),d=T8e(n),{targetDocument:h}=Fa();var g;m3e({contains:wG,element:h,callback:S=>c(S,!1),refs:[d.triggerRef,d.contentRef],disabled:!a,disabledFocusOnIframe:!(!((g=e.closeOnIframeFocus)!==null&&g!==void 0)||g)});const v=n.openOnContext||n.closeOnScroll;_3e({contains:wG,element:h,callback:S=>c(S,!1),refs:[d.triggerRef,d.contentRef],disabled:!a||!v});const{findFirstFocusable:y}=yle();A.useEffect(()=>{if(!e.unstable_disableAutoFocus&&a&&d.contentRef.current){var S;const b=(S=d.contentRef.current.getAttribute("tabIndex"))!==null&&S!==void 0?S:void 0,k=isNaN(b)?y(d.contentRef.current):d.contentRef.current;k==null||k.focus()}},[y,a,d.contentRef,e.unstable_disableAutoFocus]);var E,_;return{...n,...d,inertTrapFocus:(E=e.inertTrapFocus)!==null&&E!==void 0?E:e.legacyTrapFocus===void 0?!1:!e.legacyTrapFocus,popoverTrigger:i,popoverSurface:s,open:a,setOpen:c,toggleOpen:f,setContextTarget:r,contextTarget:t,inline:(_=e.inline)!==null&&_!==void 0?_:!1}};function x8e(e){const t=ir((s,a)=>{var l;return(l=e.onOpenChange)===null||l===void 0?void 0:l.call(e,s,a)}),[r,n]=kf({state:e.open,defaultState:e.defaultOpen,initialState:!1});e.open=r!==void 0?r:e.open;const o=e.setContextTarget,i=A.useCallback((s,a)=>{a&&s.type==="contextmenu"&&o(s),a||o(void 0),n(a),t==null||t(s,{open:a})},[n,t,o]);return[r,i]}function T8e(e){const t={position:"above",align:"center",arrowPadding:2*k8e,target:e.openOnContext?e.contextTarget:void 0,...GT(e.positioning)};t.coverTarget&&(e.withArrow=!1),e.withArrow&&(t.offset=eue(t.offset,E8e[e.size]));const{targetRef:r,containerRef:n,arrowRef:o}=e7(t);return{triggerRef:r,contentRef:n,arrowRef:o}}const I8e=e=>{const{appearance:t,arrowRef:r,contentRef:n,inline:o,mountNode:i,open:s,openOnContext:a,openOnHover:l,setOpen:u,size:c,toggleOpen:f,trapFocus:d,triggerRef:h,withArrow:g,inertTrapFocus:v}=e;return A.createElement(t7.Provider,{value:{appearance:t,arrowRef:r,contentRef:n,inline:o,mountNode:i,open:s,openOnContext:a,openOnHover:l,setOpen:u,toggleOpen:f,triggerRef:h,size:c,trapFocus:d,inertTrapFocus:v,withArrow:g}},e.popoverTrigger,e.open&&e.popoverSurface)},oue=e=>{const t=A8e(e);return I8e(t)};oue.displayName="Popover";const C8e=e=>{const{children:t,disableButtonEnhancement:r=!1}=e,n=MT(t),o=ui(S=>S.open),i=ui(S=>S.setOpen),s=ui(S=>S.toggleOpen),a=ui(S=>S.triggerRef),l=ui(S=>S.openOnHover),u=ui(S=>S.openOnContext),{triggerAttributes:c}=zT(),f=S=>{u&&(S.preventDefault(),i(S,!0))},d=S=>{u||s(S)},h=S=>{S.key===$T&&o&&!S.isDefaultPrevented()&&(i(S,!1),S.preventDefault())},g=S=>{l&&i(S,!0)},v=S=>{l&&i(S,!1)},y={...c,"aria-expanded":`${o}`,...n==null?void 0:n.props,onMouseEnter:ir(un(n==null?void 0:n.props.onMouseEnter,g)),onMouseLeave:ir(un(n==null?void 0:n.props.onMouseLeave,v)),onContextMenu:ir(un(n==null?void 0:n.props.onContextMenu,f)),ref:Ho(a,n==null?void 0:n.ref)},E={...y,onClick:ir(un(n==null?void 0:n.props.onClick,d)),onKeyDown:ir(un(n==null?void 0:n.props.onKeyDown,h))},_=Gb((n==null?void 0:n.type)==="button"||(n==null?void 0:n.type)==="a"?n.type:"div",E);return{children:zL(e.children,Gb((n==null?void 0:n.type)==="button"||(n==null?void 0:n.type)==="a"?n.type:"div",u?y:r?E:_))}},N8e=e=>e.children,r7=e=>{const t=C8e(e);return N8e(t)};r7.displayName="PopoverTrigger";r7.isFluentTriggerComponent=!0;const R8e=6,O8e=4,D8e=e=>{var t,r,n,o;const i=l3e(),s=JDe(),{targetDocument:a}=Fa(),[l,u]=jL(),{appearance:c="normal",children:f,content:d,withArrow:h=!1,positioning:g="above",onVisibleChange:v,relationship:y,showDelay:E=250,hideDelay:_=250,mountNode:S}=e,[b,k]=kf({state:e.visible,initialState:!1}),T=A.useCallback((K,V)=>{u(),k(Z=>(V.visible!==Z&&(v==null||v(K,V)),V.visible))},[u,k,v]),x={withArrow:h,positioning:g,showDelay:E,hideDelay:_,relationship:y,visible:b,shouldRenderTooltip:b,appearance:c,mountNode:S,components:{content:"div"},content:_r(d,{defaultProps:{role:"tooltip"},elementType:"div"})};x.content.id=Ks("tooltip-",x.content.id);const I={enabled:x.visible,arrowPadding:2*O8e,position:"above",align:"center",offset:4,...GT(x.positioning)};x.withArrow&&(I.offset=eue(I.offset,R8e));const{targetRef:C,containerRef:R,arrowRef:D}=e7(I);x.content.ref=Ho(x.content.ref,R),x.arrowRef=D,hc(()=>{if(b){var K;const V={hide:J=>T(void 0,{visible:!1,documentKeyboardEvent:J})};(K=i.visibleTooltip)===null||K===void 0||K.hide(),i.visibleTooltip=V;const Z=J=>{J.key===$T&&!J.defaultPrevented&&(V.hide(J),J.preventDefault())};return a==null||a.addEventListener("keydown",Z,{capture:!0}),()=>{i.visibleTooltip===V&&(i.visibleTooltip=void 0),a==null||a.removeEventListener("keydown",Z,{capture:!0})}}},[i,a,b,T]);const L=A.useRef(!1),M=A.useCallback(K=>{if(K.type==="focus"&&L.current){L.current=!1;return}const V=i.visibleTooltip?0:x.showDelay;l(()=>{T(K,{visible:!0})},V),K.persist()},[l,T,x.showDelay,i]),[W]=A.useState(()=>{const K=Z=>{var J;!((J=Z.detail)===null||J===void 0)&&J.isFocusedProgrammatically&&(L.current=!0)};let V=null;return Z=>{V==null||V.removeEventListener(Af,K),Z==null||Z.addEventListener(Af,K),V=Z}}),z=A.useCallback(K=>{let V=x.hideDelay;K.type==="blur"&&(V=0,L.current=(a==null?void 0:a.activeElement)===K.target),l(()=>{T(K,{visible:!1})},V),K.persist()},[l,T,x.hideDelay,a]);x.content.onPointerEnter=un(x.content.onPointerEnter,u),x.content.onPointerLeave=un(x.content.onPointerLeave,z),x.content.onFocus=un(x.content.onFocus,u),x.content.onBlur=un(x.content.onBlur,z);const F=MT(f),P={};return y==="label"?typeof x.content.children=="string"?P["aria-label"]=x.content.children:(P["aria-labelledby"]=x.content.id,x.shouldRenderTooltip=!0):y==="description"&&(P["aria-describedby"]=x.content.id,x.shouldRenderTooltip=!0),s&&(x.shouldRenderTooltip=!1),x.children=zL(f,{...P,...F==null?void 0:F.props,ref:Ho(F==null?void 0:F.ref,W,I.target===void 0?C:void 0),onPointerEnter:ir(un(F==null||(t=F.props)===null||t===void 0?void 0:t.onPointerEnter,M)),onPointerLeave:ir(un(F==null||(r=F.props)===null||r===void 0?void 0:r.onPointerLeave,z)),onFocus:ir(un(F==null||(n=F.props)===null||n===void 0?void 0:n.onFocus,M)),onBlur:ir(un(F==null||(o=F.props)===null||o===void 0?void 0:o.onBlur,z))}),x},F8e=e=>zn(A.Fragment,{children:[e.children,e.shouldRenderTooltip&&Je(bv,{mountNode:e.mountNode,children:zn(e.content,{children:[e.withArrow&&Je("div",{ref:e.arrowRef,className:e.arrowClassName}),e.content.children]})})]}),B8e={content:"fui-Tooltip__content"},M8e=bt({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],z8tnut:"f10ra9hq",z189sj:["fd9xhir","f1jlaasf"],Byoj8tv:"f1d7kygh",uwmqm3:["f1jlaasf","fd9xhir"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",a9b677:"f1ekdpwm",Bqenvij:"f83vc9z",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:["f1500xdc","f1it0ps5"],hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f10ra9hq{padding-top:4px;}",".fd9xhir{padding-right:11px;}",".f1jlaasf{padding-left:11px;}",".f1d7kygh{padding-bottom:6px;}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1500xdc::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",".f1it0ps5::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(-45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}']}),L8e=e=>{const t=M8e();return e.content.className=Ve(B8e.content,t.root,e.appearance==="inverted"&&t.inverted,e.visible&&t.visible,e.content.className),e.arrowClassName=t.arrow,e},ga=e=>{const t=D8e(e);return L8e(t),cn("useTooltipStyles_unstable")(t),F8e(t)};ga.displayName="Tooltip";ga.isFluentTriggerComponent=!0;const j8e=e=>{const{iconOnly:t,iconPosition:r}=e;return zn(e.root,{children:[r!=="after"&&e.icon&&Je(e.icon,{}),!t&&e.root.children,r==="after"&&e.icon&&Je(e.icon,{})]})},iue=A.createContext(void 0),z8e={},XG=iue.Provider,H8e=()=>{var e;return(e=A.useContext(iue))!==null&&e!==void 0?e:z8e},$8e=(e,t)=>{const{size:r}=H8e(),{appearance:n="secondary",as:o="button",disabled:i=!1,disabledFocusable:s=!1,icon:a,iconPosition:l="before",shape:u="rounded",size:c=r??"medium"}=e,f=tn(a,{elementType:"span"});return{appearance:n,disabled:i,disabledFocusable:s,iconPosition:l,shape:u,size:c,iconOnly:!!(f!=null&&f.children&&!e.children),components:{root:"button",icon:"span"},root:_r(_n(o,Gb(e.as,e)),{elementType:"button",defaultProps:{ref:t,type:"button"}}),icon:f}},QG={root:"fui-Button",icon:"fui-Button__icon"},P8e=Cn("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),q8e=Cn("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),W8e=bt({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},small:{Bf4jedk:"fh7ncta",z8tnut:"f1khb0e9",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",z8tnut:"fp9bwmr",z189sj:["fjodcmx","fhx4nu"],Byoj8tv:"f150uoa4",uwmqm3:["fhx4nu","fjodcmx"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fh7ncta{min-width:64px;}",".f1khb0e9{padding-top:3px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1jnq6q7{padding-bottom:3px;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",".fp9bwmr{padding-top:8px;}",".fjodcmx{padding-right:var(--spacingHorizontalL);}",".fhx4nu{padding-left:var(--spacingHorizontalL);}",".f150uoa4{padding-bottom:8px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),G8e=bt({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),K8e=bt({circular:{kdpuga:["fanj13w","f1gou5sz"],Bw81rd7:["f1gou5sz","fanj13w"],B6xbmo0:["fulf6x3","foeb2x"],dm238s:["foeb2x","fulf6x3"]},rounded:{},square:{kdpuga:["f1ndz5i7","f1co4qro"],Bw81rd7:["f1co4qro","f1ndz5i7"],B6xbmo0:["f146y5a9","f1k2ftg"],dm238s:["f1k2ftg","f146y5a9"]},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{kdpuga:["fg3gtdo","fwii5mg"],Bw81rd7:["fwii5mg","fg3gtdo"],B6xbmo0:["f1palphq","f12nxie7"],dm238s:["f12nxie7","f1palphq"]},medium:{},large:{kdpuga:["ft3lys4","f1la4x2g"],Bw81rd7:["f1la4x2g","ft3lys4"],B6xbmo0:["f156y0zm","fakimq4"],dm238s:["fakimq4","f156y0zm"]}},{d:[".fanj13w[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1gou5sz[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);}",".fulf6x3[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusCircular);}",".foeb2x[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusCircular);}",".f1ndz5i7[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusNone);}",".f1co4qro[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusNone);}",".f146y5a9[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusNone);}",".f1k2ftg[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusNone);}",".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",".fg3gtdo[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusSmall);}",".fwii5mg[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1palphq[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusSmall);}",".f12nxie7[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusSmall);}",".ft3lys4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusLarge);}",".f1la4x2g[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusLarge);}",".f156y0zm[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusLarge);}",".fakimq4[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusLarge);}"],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),V8e=bt({small:{z8tnut:"f1sl3k7w",z189sj:["f136y8j8","f10xn8zz"],Byoj8tv:"f1brlhvm",uwmqm3:["f10xn8zz","f136y8j8"],Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{z8tnut:"f1sbtcvk",z189sj:["fwiuce9","f15vdbe4"],Byoj8tv:"fdghr9",uwmqm3:["f15vdbe4","fwiuce9"],Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{z8tnut:"f1a1bwwz",z189sj:["f18k1jr3","f1rtp3s9"],Byoj8tv:"fy7v416",uwmqm3:["f1rtp3s9","f18k1jr3"],Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[".f1sl3k7w{padding-top:1px;}",".f136y8j8{padding-right:1px;}",".f10xn8zz{padding-left:1px;}",".f1brlhvm{padding-bottom:1px;}",".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",".f1sbtcvk{padding-top:5px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".fdghr9{padding-bottom:5px;}",".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",".f1a1bwwz{padding-top:7px;}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fy7v416{padding-bottom:7px;}",".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),U8e=bt({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),Y8e=e=>{const t=P8e(),r=q8e(),n=W8e(),o=G8e(),i=K8e(),s=V8e(),a=U8e(),{appearance:l,disabled:u,disabledFocusable:c,icon:f,iconOnly:d,iconPosition:h,shape:g,size:v}=e;return e.root.className=Ve(QG.root,t,l&&n[l],n[v],f&&v==="small"&&n.smallWithIcon,f&&v==="large"&&n.largeWithIcon,n[g],(u||c)&&o.base,(u||c)&&o.highContrast,l&&(u||c)&&o[l],l==="primary"&&i.primary,i[v],i[g],d&&s[v],e.root.className),e.icon&&(e.icon.className=Ve(QG.icon,r,!!e.root.children&&a[h],a[v],e.icon.className)),e},Tn=A.forwardRef((e,t)=>{const r=$8e(e,t);return Y8e(r),cn("useButtonStyles_unstable")(r),j8e(r)});Tn.displayName="Button";const sue=A.createContext(void 0),X8e=sue.Provider,Q8e=()=>A.useContext(sue),Z8e=e=>{var t,r,n,o;const{generatedControlId:i,orientation:s,required:a,size:l,validationState:u}=e,c=(t=e.label)===null||t===void 0?void 0:t.htmlFor,f=(r=e.label)===null||r===void 0?void 0:r.id,d=(n=e.validationMessage)===null||n===void 0?void 0:n.id,h=(o=e.hint)===null||o===void 0?void 0:o.id;return{field:A.useMemo(()=>({generatedControlId:i,hintId:h,labelFor:c,labelId:f,orientation:s,required:a,size:l,validationMessageId:d,validationState:u}),[i,h,c,f,s,a,l,d,u])}};function n7(e,t){return aue(Q8e(),e,t)}function aue(e,t,r){if(!e)return t;t={...t};const{generatedControlId:n,hintId:o,labelFor:i,labelId:s,required:a,validationMessageId:l,validationState:u}=e;if(n){var c,f;(f=(c=t).id)!==null&&f!==void 0||(c.id=n)}if(s&&(!(r!=null&&r.supportsLabelFor)||i!==t.id)){var d,h,g;(g=(d=t)[h="aria-labelledby"])!==null&&g!==void 0||(d[h]=s)}if((l||o)&&(t["aria-describedby"]=[l,o,t==null?void 0:t["aria-describedby"]].filter(Boolean).join(" ")),u==="error"){var v,y,E;(E=(v=t)[y="aria-invalid"])!==null&&E!==void 0||(v[y]=!0)}if(a)if(r!=null&&r.supportsRequired){var _,S;(S=(_=t).required)!==null&&S!==void 0||(_.required=!0)}else{var b,k,T;(T=(b=t)[k="aria-required"])!==null&&T!==void 0||(b[k]=!0)}if(r!=null&&r.supportsSize){var x,I;(I=(x=t).size)!==null&&I!==void 0||(x.size=e.size)}return t}const J8e=(e,t)=>{let{children:r}=e;return typeof r=="function"&&(r=r(aue(t.field)||{})),Je(X8e,{value:t==null?void 0:t.field,children:zn(e.root,{children:[e.label&&Je(e.label,{}),r,e.validationMessage&&zn(e.validationMessage,{children:[e.validationMessageIcon&&Je(e.validationMessageIcon,{}),e.validationMessage.children]}),e.hint&&Je(e.hint,{})]})})},eLe=(e,t)=>{const{disabled:r=!1,required:n=!1,weight:o="regular",size:i="medium"}=e;return{disabled:r,required:tn(n===!0?"*":n||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:o,size:i,components:{root:"label",required:"span"},root:_r(_n("label",{ref:t,...e}),{elementType:"label"})}},tLe=e=>zn(e.root,{children:[e.root.children,e.required&&Je(e.required,{})]}),ZG={root:"fui-Label",required:"fui-Label__required"},rLe=bt({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o"},required:{sj55zd:"f1whyuy6",uwmqm3:["fycuoez","f8wuabp"]},requiredDisabled:{sj55zd:"f1s2aq7o"},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"]}),nLe=e=>{const t=rLe();return e.root.className=Ve(ZG.root,t.root,e.disabled&&t.disabled,t[e.size],e.weight==="semibold"&&t.semibold,e.root.className),e.required&&(e.required.className=Ve(ZG.required,t.required,e.disabled&&t.requiredDisabled,e.required.className)),e},Nf=A.forwardRef((e,t)=>{const r=eLe(e,t);return nLe(r),cn("useLabelStyles_unstable")(r),tLe(r)});Nf.displayName="Label";const oLe={error:A.createElement(G3e,null),warning:A.createElement(Q3e,null),success:A.createElement(P3e,null),none:void 0},iLe=(e,t)=>{const{children:r,orientation:n="vertical",required:o=!1,validationState:i=e.validationMessage?"error":"none",size:s="medium"}=e,a=Ks("field-"),l=a+"__control",u=_r(_n("div",{...e,ref:t},["children"]),{elementType:"div"}),c=tn(e.label,{defaultProps:{htmlFor:l,id:a+"__label",required:o,size:s},elementType:Nf}),f=tn(e.validationMessage,{defaultProps:{id:a+"__validationMessage",role:i==="error"?"alert":void 0},elementType:"div"}),d=tn(e.hint,{defaultProps:{id:a+"__hint"},elementType:"div"}),h=oLe[i],g=tn(e.validationMessageIcon,{renderByDefault:!!h,defaultProps:{children:h},elementType:"span"});return{children:r,generatedControlId:l,orientation:n,required:o,size:s,validationState:i,components:{root:"div",label:Nf,validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:u,label:c,validationMessageIcon:g,validationMessage:f,hint:d}},Bm={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},sLe=bt({base:{mc9l5x:"f13qh94s"},horizontal:{Budl1dq:"f2wwaib",wkccdc:"f1645dqt"},horizontalNoLabel:{uwmqm3:["f15jqgz8","fggqkej"],Budl1dq:"f1c2z91y"}},{d:[".f13qh94s{display:grid;}",".f2wwaib{grid-template-columns:33% 1fr;}",".f1645dqt{grid-template-rows:auto auto auto 1fr;}",".f15jqgz8{padding-left:33%;}",".fggqkej{padding-right:33%;}",".f1c2z91y{grid-template-columns:1fr;}"]}),aLe=bt({base:{z8tnut:"fclwglc",Byoj8tv:"fywfov9"},large:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm"},vertical:{jrapky:"fyacil5"},verticalLarge:{jrapky:"f8l5zjj"},horizontal:{t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"}},{d:[".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}"]}),lLe=Cn("r5c4z9l",null,[".r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),uLe=bt({error:{sj55zd:"f1hcrxcs"},withIcon:{uwmqm3:["frawy03","fg4c52"]}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}",".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"]}),cLe=Cn("ra7h1uk","r1rh6bd7",[".ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}",".r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}"]),fLe=bt({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),dLe=e=>{const{validationState:t}=e,r=e.orientation==="horizontal",n=sLe();e.root.className=Ve(Bm.root,n.base,r&&n.horizontal,r&&!e.label&&n.horizontalNoLabel,e.root.className);const o=aLe();e.label&&(e.label.className=Ve(Bm.label,o.base,r&&o.horizontal,!r&&o.vertical,e.label.size==="large"&&o.large,!r&&e.label.size==="large"&&o.verticalLarge,e.label.className));const i=cLe(),s=fLe();e.validationMessageIcon&&(e.validationMessageIcon.className=Ve(Bm.validationMessageIcon,i,t!=="none"&&s[t],e.validationMessageIcon.className));const a=lLe(),l=uLe();e.validationMessage&&(e.validationMessage.className=Ve(Bm.validationMessage,a,t==="error"&&l.error,!!e.validationMessageIcon&&l.withIcon,e.validationMessage.className)),e.hint&&(e.hint.className=Ve(Bm.hint,a,e.hint.className))},KT=A.forwardRef((e,t)=>{const r=iLe(e,t);dLe(r);const n=Z8e(r);return J8e(r,n)});KT.displayName="Field";const al=vv({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});al.Provider;const tf=vv({activeOption:void 0,focusVisible:!1,multiselect:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){}});tf.Provider;function lue(e){const{activeOption:t,appearance:r,focusVisible:n,open:o,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:l,setOpen:u,size:c}=e;return{combobox:{activeOption:t,appearance:r,focusVisible:n,open:o,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:l,setOpen:u,size:c}}}function hLe(e){const t=GL(al),{activeOption:r,focusVisible:n,multiselect:o,registerOption:i,selectedOptions:s,selectOption:a,setActiveOption:l}=e,u=Yo(al,d=>d.registerOption);return{listbox:{activeOption:r,focusVisible:n,multiselect:o,registerOption:t?u:i,selectedOptions:s,selectOption:a,setActiveOption:l}}}function Vb(e,t={}){const{open:r=!0,multiselect:n=!1}=t,o=e.key,{altKey:i,ctrlKey:s,key:a,metaKey:l}=e;return a.length===1&&o!==uf&&!i&&!s&&!l?"Type":r?o===xC&&i||o===lg||!n&&o===uf?"CloseSelect":n&&o===uf?"Select":o===$T?"Close":o===DG?"Next":o===xC?"Previous":o===I6e?"First":o===T6e?"Last":o===N6e?"PageUp":o===C6e?"PageDown":o===k6e?"Tab":"None":o===DG||o===xC||o===lg||o===uf?"Open":"None"}function uue(e,t,r){switch(e){case"Next":return Math.min(r,t+1);case"Previous":return Math.max(0,t-1);case"First":return 0;case"Last":return r;case"PageDown":return Math.min(r,t+10);case"PageUp":return Math.max(0,t-10);default:return t}}const cue=()=>{const e=A.useRef([]),t=A.useMemo(()=>({getCount:()=>e.current.length,getOptionAtIndex:u=>{var c;return(c=e.current[u])===null||c===void 0?void 0:c.option},getIndexOfId:u=>e.current.findIndex(c=>c.option.id===u),getOptionById:u=>{const c=e.current.find(f=>f.option.id===u);return c==null?void 0:c.option},getOptionsMatchingText:u=>e.current.filter(c=>u(c.option.text)).map(c=>c.option),getOptionsMatchingValue:u=>e.current.filter(c=>u(c.option.value)).map(c=>c.option)}),[]),r=A.useCallback((n,o)=>{var i;const s=e.current.findIndex(a=>!a.element||!o?!1:a.option.id===n.id?!0:a.element.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING);if(((i=e.current[s])===null||i===void 0?void 0:i.option.id)!==n.id){const a={element:o,option:n};s===-1?e.current=[...e.current,a]:e.current.splice(s,0,a)}return()=>{e.current=e.current.filter(a=>a.option.id!==n.id)}},[]);return{...t,options:e.current.map(n=>n.option),registerOption:r}};function pLe(e){const{activeOption:t}=e,r=A.useRef(null);return A.useEffect(()=>{if(r.current&&t&&Q_()){const n=r.current.querySelector(`#${t.id}`);if(!n)return;const{offsetHeight:o,offsetTop:i}=n,{offsetHeight:s,scrollTop:a}=r.current,l=ia+s,c=2;l?r.current.scrollTo(0,i-c):u&&r.current.scrollTo(0,i-s+o+c)}},[t]),r}const fue=e=>{const{defaultSelectedOptions:t,multiselect:r,onOptionSelect:n}=e,[o,i]=kf({state:e.selectedOptions,defaultState:t,initialState:[]}),s=A.useCallback((l,u)=>{if(u.disabled)return;let c=[u.value];if(r){const f=o.findIndex(d=>d===u.value);f>-1?c=[...o.slice(0,f),...o.slice(f+1)]:c=[...o,u.value]}i(c),n==null||n(l,{optionValue:u.value,optionText:u.text,selectedOptions:c})},[n,r,o,i]);return{clearSelection:l=>{i([]),n==null||n(l,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:s,selectedOptions:o}},gLe=(e,t)=>{const{multiselect:r}=e,n=cue(),{getCount:o,getOptionAtIndex:i,getIndexOfId:s}=n,{clearSelection:a,selectedOptions:l,selectOption:u}=fue(e),[c,f]=A.useState(),[d,h]=A.useState(!1),g=C=>{const R=Vb(C,{open:!0}),D=o()-1,L=c?s(c.id):-1;let M=L;switch(R){case"Select":case"CloseSelect":c&&u(C,c);break;default:M=uue(R,L,D)}M!==L&&(C.preventDefault(),f(i(M)),h(!0))},v=C=>{h(!1)},y=GL(al),E=Yo(al,C=>C.activeOption),_=Yo(al,C=>C.focusVisible),S=Yo(al,C=>C.selectedOptions),b=Yo(al,C=>C.selectOption),k=Yo(al,C=>C.setActiveOption),T=y?{activeOption:E,focusVisible:_,selectedOptions:S,selectOption:b,setActiveOption:k}:{activeOption:c,focusVisible:d,selectedOptions:l,selectOption:u,setActiveOption:f},x={components:{root:"div"},root:_r(_n("div",{ref:t,role:r?"menu":"listbox","aria-activedescendant":y||c==null?void 0:c.id,"aria-multiselectable":r,tabIndex:0,...e}),{elementType:"div"}),multiselect:r,clearSelection:a,...n,...T},I=pLe(x);return x.root.ref=Ho(x.root.ref,I),x.root.onKeyDown=ir(un(x.root.onKeyDown,g)),x.root.onMouseOver=ir(un(x.root.onMouseOver,v)),x},vLe=(e,t)=>Je(tf.Provider,{value:t.listbox,children:Je(e.root,{})}),mLe={root:"fui-Listbox"},yLe=bt({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",z8tnut:"f1x4af0m",z189sj:["f7x41pl","fruq291"],Byoj8tv:"fd55psn",uwmqm3:["fruq291","f7x41pl"],Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".f1x4af0m{padding-top:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fd55psn{padding-bottom:var(--spacingHorizontalXS);}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),bLe=e=>{const t=yLe();return e.root.className=Ve(mLe.root,t.root,e.root.className),e},VT=A.forwardRef((e,t)=>{const r=gLe(e,t),n=hLe(r);return bLe(r),cn("useListboxStyles_unstable")(r),vLe(r,n)});VT.displayName="Listbox";function _Le(e,t){if(e!==void 0)return e;let r="",n=!1;return A.Children.forEach(t,o=>{typeof o=="string"?r+=o:n=!0}),n&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),r}const ELe=(e,t)=>{const{children:r,disabled:n,text:o,value:i}=e,s=A.useRef(null),a=_Le(o,r),l=i??a,u=Ks("fluent-option",e.id),c=A.useMemo(()=>({id:u,disabled:n,text:a,value:l}),[u,n,a,l]),f=Yo(tf,T=>T.focusVisible),d=Yo(tf,T=>T.multiselect),h=Yo(tf,T=>T.registerOption),g=Yo(tf,T=>{const x=T.selectedOptions;return!!l&&!!x.find(I=>I===l)}),v=Yo(tf,T=>T.selectOption),y=Yo(tf,T=>T.setActiveOption),E=Yo(al,T=>T.setOpen),_=Yo(tf,T=>{var x,I;return((x=T.activeOption)===null||x===void 0?void 0:x.id)!==void 0&&((I=T.activeOption)===null||I===void 0?void 0:I.id)===u});let S=A.createElement(R3e,null);d&&(S=g?A.createElement($3e,null):"");const b=T=>{var x;if(n){T.preventDefault();return}y(c),d||E==null||E(T,!1),v(T,c),(x=e.onClick)===null||x===void 0||x.call(e,T)};A.useEffect(()=>{if(u&&s.current)return h(c,s.current)},[u,c,h]);const k=d?{role:"menuitemcheckbox","aria-checked":g}:{role:"option","aria-selected":g};return{components:{root:"div",checkIcon:"span"},root:_r(_n("div",{ref:Ho(t,s),"aria-disabled":n?"true":void 0,id:u,...k,...e,onClick:b}),{elementType:"div"}),checkIcon:tn(e.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:S},elementType:"span"}),active:_,disabled:n,focusVisible:f,multiselect:d,selected:g}},SLe=e=>zn(e.root,{children:[e.checkIcon&&Je(e.checkIcon,{}),e.root.children]}),JG={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},wLe=bt({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",z8tnut:"fp2oml8",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1tdddsa",uwmqm3:["f1f5gg8d","f1vdfbxk"],qhf8xq:"f10pi13n",Jwef8y:"f1knas48",ecr2s2:"fb40n2d"},active:{Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",B80jsxd:"f1nwj1ja",t2ki1e:"ffmd2fr",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"fc9v8v1",Ihftqj:["f1mwfetb","f18mat8f"],Bcgy8vk:"f1cb6c3",Bhxzhr1:["f18mat8f","f1mwfetb"],B3778ie:["f1ibwz09","f1kp91vd"],d9w3h3:["f1kp91vd","f1ibwz09"],Bl18szs:["f1pix4dl","f13nd1z4"],B4j8arr:["f13nd1z4","f1pix4dl"],B0n5ga8:"f1qw5sz7",s924m2:["f19va7ni","f1a9v3mw"],B1q35kw:"fkkziue",Gp14am:["f1a9v3mw","f19va7ni"],bn5sak:"f1a97anr",By385i5:"f5226zp",Eqx8gd:["fa2bdqt","fei6g0k"],B1piin3:["fei6g0k","fa2bdqt"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",ecr2s2:"fgj9um3",Bbusuzp:"f1dcs8yz"},selected:{},checkIcon:{Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"],Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"],B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f10pi13n{position:relative;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1nwj1ja::after{pointer-events:none;}",".ffmd2fr::after{z-index:1;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".fc9v8v1::after{border-top-width:2px;}",".f1mwfetb::after{border-right-width:2px;}",".f18mat8f::after{border-left-width:2px;}",".f1cb6c3::after{border-bottom-width:2px;}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1pix4dl::after{border-top-right-radius:var(--borderRadiusMedium);}",".f13nd1z4::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1qw5sz7::after{border-top-color:var(--colorStrokeFocus2);}",".f19va7ni::after{border-right-color:var(--colorStrokeFocus2);}",".f1a9v3mw::after{border-left-color:var(--colorStrokeFocus2);}",".fkkziue::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1a97anr::after{top:-2px;}",".f5226zp::after{bottom:-2px;}",".fa2bdqt::after{left:-2px;}",".fei6g0k::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),kLe=e=>{const{active:t,disabled:r,focusVisible:n,multiselect:o,selected:i}=e,s=wLe();return e.root.className=Ve(JG.root,s.root,t&&n&&s.active,r&&s.disabled,i&&s.selected,e.root.className),e.checkIcon&&(e.checkIcon.className=Ve(JG.checkIcon,s.checkIcon,o&&s.multiselectCheck,i&&s.selectedCheck,i&&o&&s.selectedMultiselectCheck,r&&s.checkDisabled,e.checkIcon.className)),e},UT=A.forwardRef((e,t)=>{const r=ELe(e,t);return kLe(r),cn("useOptionStyles_unstable")(r),SLe(r)});UT.displayName="Option";const due=e=>{const{appearance:t="outline",children:r,editable:n=!1,inlinePopup:o=!1,mountNode:i=void 0,multiselect:s,onOpenChange:a,size:l="medium"}=e,u=cue(),{getOptionAtIndex:c,getOptionsMatchingValue:f}=u,[d,h]=A.useState(),[g,v]=A.useState(!1),[y,E]=A.useState(!1),_=A.useRef(!1),S=fue(e),{selectedOptions:b}=S,k=e3e(),[T,x]=kf({state:e.value,initialState:void 0}),I=A.useMemo(()=>{if(T!==void 0)return T;if(k&&e.defaultValue!==void 0)return e.defaultValue;const L=f(M=>b.includes(M)).map(M=>M.text);return s?n?"":L.join(", "):L[0]},[T,n,f,s,e.defaultValue,b]),[C,R]=kf({state:e.open,defaultState:e.defaultOpen,initialState:!1}),D=A.useCallback((L,M)=>{a==null||a(L,{open:M}),R(M)},[a,R]);return A.useEffect(()=>{if(C&&!d)if(!s&&b.length>0){const L=f(M=>M===b[0]).pop();L&&h(L)}else h(c(0));else C||h(void 0)},[C,r]),{...u,...S,activeOption:d,appearance:t,focusVisible:g,hasFocus:y,ignoreNextBlur:_,inlinePopup:o,mountNode:i,open:C,setActiveOption:h,setFocusVisible:v,setHasFocus:E,setOpen:D,setValue:x,size:l,value:I,multiselect:s}};function hue(e){const{positioning:t}=e,n={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",...GT(t)},{targetRef:o,containerRef:i}=e7(n);return[i,o]}function pue(e,t,r){const{state:{multiselect:n},triggerRef:o,defaultProps:i}=r,s=Ks("fluent-listbox",BL(e)?e.id:void 0),a=tn(e,{renderByDefault:!0,elementType:VT,defaultProps:{id:s,multiselect:n,tabIndex:void 0,...i}}),l=ir(un(f=>{f.preventDefault()},a==null?void 0:a.onMouseDown)),u=ir(un(f=>{var d;f.preventDefault(),(d=o.current)===null||d===void 0||d.focus()},a==null?void 0:a.onClick)),c=Ho(a==null?void 0:a.ref,t);return a&&(a.ref=c,a.onMouseDown=l,a.onClick=u),a}function gue(e,t,r){const{state:{activeOption:n,getCount:o,getIndexOfId:i,getOptionAtIndex:s,open:a,selectOption:l,setActiveOption:u,setFocusVisible:c,setOpen:f,multiselect:d},defaultProps:h,elementType:g}=r,v=_r(e,{defaultProps:{type:"text","aria-expanded":a,"aria-activedescendant":a?n==null?void 0:n.id:void 0,role:"combobox",...typeof h=="object"&&h},elementType:g}),y=A.useRef(null);return v.ref=Ho(y,v.ref,t),v.onBlur=un(E=>{f(E,!1)},v.onBlur),v.onClick=un(E=>{f(E,!a)},v.onClick),v.onKeyDown=un(E=>{const _=Vb(E,{open:a,multiselect:d}),S=o()-1,b=n?i(n.id):-1;let k=b;switch(_){case"Open":E.preventDefault(),c(!0),f(E,!0);break;case"Close":E.stopPropagation(),E.preventDefault(),f(E,!1);break;case"CloseSelect":!d&&!(n!=null&&n.disabled)&&f(E,!1);case"Select":n&&l(E,n),E.preventDefault();break;case"Tab":!d&&n&&l(E,n);break;default:k=uue(_,b,S)}k!==b&&(E.preventDefault(),u(s(k)),c(!0))},v.onKeyDown),v.onMouseOver=un(E=>{c(!1)},v.onMouseOver),v}function ALe(e,t,r){const{state:{open:n,value:o,activeOption:i,selectOption:s,setValue:a,setActiveOption:l,setFocusVisible:u,multiselect:c,selectedOptions:f,clearSelection:d,getOptionsMatchingText:h,getIndexOfId:g,setOpen:v},freeform:y,defaultProps:E}=r,_=D=>{!n&&!y&&(o&&i&&o.trim().toLowerCase()===(i==null?void 0:i.text.toLowerCase())&&s(D,i),a(void 0))},S=D=>{const L=D==null?void 0:D.trim().toLowerCase();if(!L||L.length===0)return;const W=h(F=>F.toLowerCase().indexOf(L)===0);if(W.length>1&&i){const F=g(i.id),P=W.find(K=>g(K.id)>=F);return P??W[0]}var z;return(z=W[0])!==null&&z!==void 0?z:void 0},b=D=>{const L=D.target.value;a(L);const M=S(L);l(M),u(!0),!c&&f.length===1&&(L.length<1||!M)&&d(D)},k=gue(e,t,{state:r.state,defaultProps:E,elementType:"input"});k.onChange=un(k.onChange,b),k.onBlur=un(k.onBlur,_);const[T,x]=A.useState(!1),I=A.useRef(!1),C=k.onKeyDown,R=ir(D=>{!n&&Vb(D)==="Type"&&v(D,!0),D.key===A6e||D.key===x6e?x(!0):x(!1);const L=Vb(D,{open:n,multiselect:c});if(L==="Type"?I.current=!0:(L==="Open"&&D.key!==" "||L==="Next"||L==="Previous"||L==="First"||L==="Last"||L==="PageUp"||L==="PageDown")&&(I.current=!1),y&&(I.current||!n)&&D.key===" "){var M;e==null||(M=e.onKeyDown)===null||M===void 0||M.call(e,D);return}C==null||C(D)});return k.onKeyDown=R,T&&(k["aria-activedescendant"]=void 0),k}const xLe=(e,t)=>{e=n7(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=due({...e,editable:!0}),{open:n,selectOption:o,setOpen:i,setValue:s,value:a}=r,[l,u]=hue(e),{disabled:c,freeform:f,inlinePopup:d}=e,h=Ks("combobox-"),{primary:g,root:v}=ML({props:e,primarySlotTagName:"input",excludedPropNames:["children","size"]});r.selectOption=(C,R)=>{s(void 0),o(C,R)},r.setOpen=(C,R)=>{c||(!R&&!f&&s(void 0),i(C,R))};const y=A.useRef(null),E=pue(e.listbox,l,{state:r,triggerRef:y,defaultProps:{children:e.children}});var _;const S=ALe((_=e.input)!==null&&_!==void 0?_:{},Ho(y,t),{state:r,freeform:f,defaultProps:{type:"text",value:a??"",...g}}),b=_r(e.root,{defaultProps:{"aria-owns":!d&&n?E==null?void 0:E.id:void 0,...v},elementType:"div"});b.ref=Ho(b.ref,u);const k={components:{root:"div",input:"input",expandIcon:"span",listbox:VT},root:b,input:S,listbox:n?E:void 0,expandIcon:tn(e.expandIcon,{renderByDefault:!0,defaultProps:{"aria-expanded":n,children:A.createElement($ae,null),role:"button"},elementType:"span"}),...r},{onMouseDown:T}=k.expandIcon||{},x=ir(un(T,C=>{var R;C.preventDefault(),k.setOpen(C,!k.open),(R=y.current)===null||R===void 0||R.focus()}));if(k.expandIcon){k.expandIcon.onMouseDown=x;const C=k.expandIcon["aria-label"]||k.expandIcon["aria-labelledby"],R="Open";if(!C)if(e["aria-labelledby"]){var I;const D=(I=k.expandIcon.id)!==null&&I!==void 0?I:`${h}-chevron`,L=`${D} ${k.input["aria-labelledby"]}`;k.expandIcon["aria-label"]=R,k.expandIcon.id=D,k.expandIcon["aria-labelledby"]=L}else e["aria-label"]?k.expandIcon["aria-label"]=`${R} ${e["aria-label"]}`:k.expandIcon["aria-label"]=R}return k},TLe=(e,t)=>Je(e.root,{children:zn(al.Provider,{value:t.combobox,children:[Je(e.input,{}),e.expandIcon&&Je(e.expandIcon,{}),e.listbox&&(e.inlinePopup?Je(e.listbox,{}):Je(bv,{mountNode:e.mountNode,children:Je(e.listbox,{})}))]})}),dw={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",listbox:"fui-Combobox__listbox"},ILe=bt({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B7ck84d:"f1ewtqcl",i8kkvl:"f14mj54c",mc9l5x:"fwk3njj",Budl1dq:"fz17x9o",Brf1p80:"f1869bpl",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"f145g4dw",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},listboxCollapsed:{mc9l5x:"fjseox"},small:{z189sj:["fdw0yi8","fk8j09s"]},medium:{z189sj:["f11gcy0p","f1ng84yb"]},large:{i8kkvl:"f1rjii52",z189sj:["fw5db7e","f1uw59to"]},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"f1c1zstj",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]},"filled-lighter":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"filled-darker":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ewtqcl{box-sizing:border-box;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fwk3njj{display:inline-grid;}",".fz17x9o{grid-template-columns:1fr auto;}",".f1869bpl{justify-content:space-between;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".f145g4dw::after{height:max(2px, var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),CLe=bt({input:{De3pzq:"f1c21dwh",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],sj55zd:"f19n0e5",Bahqtrf:"fk6fouc",Brovlpu:"ftqa4ok",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih"},small:{Bqenvij:"f50nw0v",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},medium:{Bqenvij:"f1tvdnth",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1e60jzv","f135dnwl"]},large:{Bqenvij:"f1ihhdec",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["fnphzt9","flt1dlf"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".f50nw0v{height:22px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1tvdnth{height:30px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1ihhdec{height:38px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"],f:[".ftqa4ok:focus{outline-style:none;}"]}),NLe=bt({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),RLe=e=>{const{appearance:t,open:r,size:n}=e,o=`${e.input["aria-invalid"]}`=="true",i=e.input.disabled,s=ILe(),a=NLe(),l=CLe();return e.root.className=Ve(dw.root,s.root,s[t],s[n],!i&&t==="outline"&&s.outlineInteractive,o&&t!=="underline"&&s.invalid,o&&t==="underline"&&s.invalidUnderline,i&&s.disabled,e.root.className),e.input.className=Ve(dw.input,l.input,l[n],i&&l.disabled,e.input.className),e.listbox&&(e.listbox.className=Ve(dw.listbox,s.listbox,!r&&s.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=Ve(dw.expandIcon,a.icon,a[n],i&&a.disabled,e.expandIcon.className)),e},vue=A.forwardRef((e,t)=>{const r=xLe(e,t),n=lue(r);return RLe(r),cn("useComboboxStyles_unstable")(r),TLe(r,n)});vue.displayName="Combobox";function OLe(e,t,r){const{state:{open:n,activeOption:o,setOpen:i,getOptionsMatchingText:s,getIndexOfId:a,setActiveOption:l,setFocusVisible:u},defaultProps:c}=r,f=A.useRef(""),[d,h]=jL(),g=()=>{let E=k=>k.toLowerCase().indexOf(f.current)===0,_=s(E),S=o?a(o.id):0;if(n&&f.current.length===1&&S++,!_.length){const k=f.current.split("");k.length&&k.every(x=>x===k[0])&&(S++,E=x=>x.toLowerCase().indexOf(k[0])===0,_=s(E))}if(_.length>1&&o){const k=_.find(T=>a(T.id)>=S);return k??_[0]}var b;return(b=_[0])!==null&&b!==void 0?b:void 0},v=E=>{if(h(),Vb(E)==="Type"){f.current+=E.key.toLowerCase(),d(()=>{f.current=""},500),!n&&i(E,!0);const _=g();l(_),u(!0)}},y=gue(e,t,{state:r.state,defaultProps:c,elementType:"button"});return y.onKeyDown=un(v,y.onKeyDown),y}const DLe=(e,t)=>{e=n7(e,{supportsLabelFor:!0,supportsSize:!0});const r=due(e),{open:n}=r,{primary:o,root:i}=ML({props:e,primarySlotTagName:"button",excludedPropNames:["children"]}),[s,a]=hue(e),l=A.useRef(null),u=pue(e.listbox,s,{state:r,triggerRef:l,defaultProps:{children:e.children}});var c;const f=OLe((c=e.button)!==null&&c!==void 0?c:{},Ho(l,t),{state:r,defaultProps:{type:"button",tabIndex:0,children:r.value||e.placeholder,...o}}),d=_r(e.root,{defaultProps:{"aria-owns":!e.inlinePopup&&n?u==null?void 0:u.id:void 0,children:e.children,...i},elementType:"div"});return d.ref=Ho(d.ref,a),{components:{root:"div",button:"button",expandIcon:"span",listbox:VT},root:d,button:f,listbox:n?u:void 0,expandIcon:tn(e.expandIcon,{renderByDefault:!0,defaultProps:{children:A.createElement($ae,null)},elementType:"span"}),placeholderVisible:!r.value&&!!e.placeholder,...r}},FLe=(e,t)=>Je(e.root,{children:zn(al.Provider,{value:t.combobox,children:[zn(e.button,{children:[e.button.children,e.expandIcon&&Je(e.expandIcon,{})]}),e.listbox&&(e.inlinePopup?Je(e.listbox,{}):Je(bv,{mountNode:e.mountNode,children:Je(e.listbox,{})}))]})}),hw={root:"fui-Dropdown",button:"fui-Dropdown__button",expandIcon:"fui-Dropdown__expandIcon",listbox:"fui-Dropdown__listbox"},BLe=bt({root:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B7ck84d:"f1ewtqcl",mc9l5x:"f14t3ns0",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{B7ck84d:"f1ewtqcl",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Bxyxcbc:"fmmk62d"},listboxCollapsed:{mc9l5x:"fjseox"},button:{Bt984gj:"f122n59",De3pzq:"f1c21dwh",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",i8kkvl:"f14mj54c",Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bahqtrf:"fk6fouc",Budl1dq:"f12nh0o2",Brf1p80:"f1869bpl",fsow6f:["f1o700av","fes3tcz"],a9b677:"fly5x3f",Brovlpu:"ftqa4ok"},placeholder:{sj55zd:"fxc4j92"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f1khb0e9",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1xile11","fqznh8f"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f1sbtcvk",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdghr9",uwmqm3:["f1e60jzv","f135dnwl"]},large:{i8kkvl:"f1rjii52",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f1a1bwwz",z189sj:["fw5db7e","f1uw59to"],Byoj8tv:"fy7v416",uwmqm3:["fnphzt9","flt1dlf"]},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"f1c1zstj",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]},"filled-lighter":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"]},"filled-darker":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]},disabledText:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ewtqcl{box-sizing:border-box;}",".f14t3ns0{display:inline-block;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".f122n59{align-items:center;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f12nh0o2{grid-template-columns:[content] 1fr [icon] auto [end];}",".f1869bpl{justify-content:space-between;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fly5x3f{width:100%;}",".fxc4j92{color:var(--colorNeutralForeground4);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1khb0e9{padding-top:3px;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1jnq6q7{padding-bottom:3px;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1sbtcvk{padding-top:5px;}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fdghr9{padding-bottom:5px;}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1a1bwwz{padding-top:7px;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fy7v416{padding-bottom:7px;}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],f:[".ftqa4ok:focus{outline-style:none;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),MLe=bt({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Br312pm:"f12w6cgp",Bw0ie65:"f8bv1bt",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f12w6cgp{grid-column-start:icon;}",".f8bv1bt{grid-column-end:end;}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"]}),LLe=e=>{const{appearance:t,open:r,placeholderVisible:n,size:o}=e,i=`${e.button["aria-invalid"]}`=="true",s=e.button.disabled,a=BLe(),l=MLe();return e.root.className=Ve(hw.root,a.root,a[t],!s&&t==="outline"&&a.outlineInteractive,i&&t!=="underline"&&a.invalid,i&&t==="underline"&&a.invalidUnderline,s&&a.disabled,e.root.className),e.button.className=Ve(hw.button,a.button,a[o],n&&a.placeholder,s&&a.disabledText,e.button.className),e.listbox&&(e.listbox.className=Ve(hw.listbox,a.listbox,!r&&a.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=Ve(hw.expandIcon,l.icon,l[o],s&&l.disabled,e.expandIcon.className)),e},o7=A.forwardRef((e,t)=>{const r=DLe(e,t),n=lue(r);return LLe(r),cn("useDropdownStyles_unstable")(r),FLe(r,n)});o7.displayName="Dropdown";const jLe=e=>Je(e.root,{children:e.root.children!==void 0&&Je(e.wrapper,{children:e.root.children})}),zLe=(e,t)=>{const{alignContent:r="center",appearance:n="default",inset:o=!1,vertical:i=!1,wrapper:s}=e,a=Ks("divider-");return{alignContent:r,appearance:n,inset:o,vertical:i,components:{root:"div",wrapper:"div"},root:_r(_n("div",{role:"separator","aria-orientation":i?"vertical":"horizontal","aria-labelledby":e.children?a:void 0,...e,ref:t}),{elementType:"div"}),wrapper:_r(s,{defaultProps:{id:a,children:e.children},elementType:"div"})}},eK={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},HLe=bt({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bh6795r:"fqerorx",qhf8xq:"f10pi13n",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",fsow6f:"f17mccla",Bcvre1j:"fyl8oag",Br0sdwz:"f16vkdww",Bn78ew0:"fhsnbul",li1rpt:"f1gw3sf2",ap17g6:"f1ly5f7u",B771hl4:"f1s3tz6t"},childless:{susq4k:"f1kyqvp9",Bicfajf:["fzynn9s","f1z0ukd1"],jwcpgy:["fekrn8e","ftdg338"],B4rk6o:"fesgyo"},start:{Bsft5z2:"f13zj6fq"},center:{Ftih45:"f1wl9k8s",Bsft5z2:"f13zj6fq"},end:{Ftih45:"f1wl9k8s"},brand:{sj55zd:"f16muhyy",Bq4z7u6:"fcbuu2a",Bk5zm6e:["f1wdw2dr","f1ttio3w"],Bqjgrrk:"f1582fpk",Bm6vgfq:["f1ttio3w","f1wdw2dr"],B0n5ga8:"f1ahrvm8",s924m2:["f1cd3wbc","f17hbk9y"],B1q35kw:"fvrapl0",Gp14am:["f17hbk9y","f1cd3wbc"]},default:{sj55zd:"fkfq4zb",Bq4z7u6:"f1vccso1",Bk5zm6e:["f1geml7w","fjml6kk"],Bqjgrrk:"f1r7kh1m",Bm6vgfq:["fjml6kk","f1geml7w"],B0n5ga8:"f16j7guv",s924m2:["fx01ahm","fj1a37q"],B1q35kw:"fl8d8yv",Gp14am:["fj1a37q","fx01ahm"]},subtle:{sj55zd:"fkfq4zb",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"fkfq4zb",Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"],B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fqerorx{flex-grow:1;}",".f10pi13n{position:relative;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mccla{text-align:center;}",".fyl8oag::before{box-sizing:border-box;}",".f16vkdww::before{display:flex;}",".fhsnbul::before{flex-grow:1;}",".f1gw3sf2::after{box-sizing:border-box;}",".f1ly5f7u::after{display:flex;}",".f1s3tz6t::after{flex-grow:1;}",".f1kyqvp9::before{margin-bottom:0;}",".fzynn9s::before{margin-right:0;}",".f1z0ukd1::before{margin-left:0;}",".fekrn8e::after{margin-left:0;}",".ftdg338::after{margin-right:0;}",".fesgyo::after{margin-top:0;}",'.f13zj6fq::after{content:"";}','.f1wl9k8s::before{content:"";}',".f16muhyy{color:var(--colorBrandForeground1);}",".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}",".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}",".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}",".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}",".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}",".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}",".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}",".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}",".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}",".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}",".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}",".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}",".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}",".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}",".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}",".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}",".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}",".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}",".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}",".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}",".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}",".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}",".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]}),$Le=bt({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{Bicfajf:["f1ojjlep","fk1kexq"],Bsft5z2:"f13zj6fq",jwcpgy:["f12w1bnb","f1558wlj"],Iy66sp:"f1ayce8x"}},{d:[".fly5x3f{width:100%;}",".f163fonl::before{border-top-style:solid;}",".f51yk4v::before{border-top-width:var(--strokeWidthThin);}",".f13rof3u::before{min-width:8px;}",".f8rth92::after{border-top-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f1iyka9k::after{min-width:8px;}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",'.f1wl9k8s::before{content:"";}',".f1ojjlep::before{margin-right:12px;}",".fk1kexq::before{margin-left:12px;}",".f1he2m4d::before{max-width:8px;}",".f12w1bnb::after{margin-left:12px;}",".f1558wlj::after{margin-right:12px;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),PLe=bt({base:{Beiy3e4:"f1vx9l62",sshi5w:"f16gbxbe",m598lv:["f1yq6w5o","f1jpmc5p"],B4f6apu:["f9sc749","f1x8pvcy"],zkzzav:"fhkwbjy",Barhvk9:["flthirb","ftkbnf5"],Ihftqj:["f13hvwk3","f1en4csx"],Bde111x:"f19onpk6"},inset:{B6of3ja:"f1xdg43u",jrapky:"f1jlhsmd"},withChildren:{sshi5w:"f1tjaq3g"},start:{Ftih45:"f1wl9k8s",susq4k:"fg2pwug",Bbdr6tz:"fkjtzyi",B4rk6o:"f8vk40g"},center:{susq4k:"fg2pwug",B4rk6o:"f8vk40g"},end:{susq4k:"fg2pwug",Bsft5z2:"f13zj6fq",B4rk6o:"f8vk40g",gn64ia:"fqg5mu5"}},{d:[".f1vx9l62{flex-direction:column;}",".f16gbxbe{min-height:20px;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f9sc749::before{border-right-width:var(--strokeWidthThin);}",".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}",".fhkwbjy::before{min-height:8px;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f19onpk6::after{min-height:8px;}",".f1xdg43u{margin-top:12px;}",".f1jlhsmd{margin-bottom:12px;}",".f1tjaq3g{min-height:84px;}",'.f1wl9k8s::before{content:"";}',".fg2pwug::before{margin-bottom:12px;}",".fkjtzyi::before{max-height:8px;}",".f8vk40g::after{margin-top:12px;}",'.f13zj6fq::after{content:"";}',".fqg5mu5::after{max-height:8px;}"]}),qLe=e=>{const t=HLe(),r=$Le(),n=PLe(),{alignContent:o,appearance:i,inset:s,vertical:a}=e;return e.root.className=Ve(eK.root,t.base,t[o],i&&t[i],!a&&r.base,!a&&s&&r.inset,!a&&r[o],a&&n.base,a&&s&&n.inset,a&&n[o],a&&e.root.children!==void 0&&n.withChildren,e.root.children===void 0&&t.childless,e.root.className),e.wrapper&&(e.wrapper.className=Ve(eK.wrapper,e.wrapper.className)),e},Vy=A.forwardRef((e,t)=>{const r=zLe(e,t);return qLe(r),cn("useDividerStyles_unstable")(r),jLe(r)});Vy.displayName="Divider";const WLe=(e,t)=>{e=n7(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=Rae();var n;const{size:o="medium",appearance:i=(n=r.inputDefaultAppearance)!==null&&n!==void 0?n:"outline",onChange:s}=e,[a,l]=kf({state:e.value,defaultState:e.defaultValue,initialState:""}),u=ML({props:e,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),c={size:o,appearance:i,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:_r(e.input,{defaultProps:{type:"text",ref:t,...u.primary},elementType:"input"}),contentAfter:tn(e.contentAfter,{elementType:"span"}),contentBefore:tn(e.contentBefore,{elementType:"span"}),root:_r(e.root,{defaultProps:u.root,elementType:"span"})};return c.input.value=a,c.input.onChange=ir(f=>{const d=f.target.value;s==null||s(f,{value:d}),l(d)}),c},GLe=e=>zn(e.root,{children:[e.contentBefore&&Je(e.contentBefore,{}),Je(e.input,{}),e.contentAfter&&Je(e.contentAfter,{})]}),pw={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},KLe=Cn("r1jtohuq","rl1z2p5",{r:[".r1jtohuq{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1jtohuq::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1jtohuq:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1jtohuq:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1jtohuq:focus-within{outline:2px solid transparent;}",".rl1z2p5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.rl1z2p5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".rl1z2p5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rl1z2p5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rl1z2p5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1jtohuq::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1jtohuq:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),VLe=bt({small:{sshi5w:"f1pha7fy",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"],Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",uwmqm3:["f1uw59to","fw5db7e"],z189sj:["fw5db7e","f1uw59to"],Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:"f1rjii52",Belr9w4:"f1r7g2jn"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",B3778ie:["f1nf3wye","feulmo5"],d9w3h3:["feulmo5","f1nf3wye"],Bl18szs:["f18vqdqu","f53nyzz"],B4j8arr:["f53nyzz","f18vqdqu"]},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"}},{d:[".f1pha7fy{min-height:24px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1r7g2jn{row-gap:var(--spacingHorizontalSNudge);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".f1nf3wye::after{border-bottom-right-radius:0;}",".feulmo5::after{border-bottom-left-radius:0;}",".f18vqdqu::after{border-top-right-radius:0;}",".f53nyzz::after{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),ULe=Cn("rvp2gzh",null,[".rvp2gzh{box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalXXS);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".rvp2gzh::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),YLe=bt({large:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),XLe=Cn("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),QLe=bt({disabled:{sj55zd:"f1s2aq7o"},small:{kwki1k:"f3u2cy0"},medium:{},large:{kwki1k:"fa420co"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3u2cy0>svg{font-size:16px;}",".fa420co>svg{font-size:24px;}"]}),ZLe=e=>{const{size:t,appearance:r}=e,n=e.input.disabled,o=`${e.input["aria-invalid"]}`=="true",i=r.startsWith("filled"),s=VLe(),a=YLe(),l=QLe();e.root.className=Ve(pw.root,KLe(),s[t],s[r],!n&&r==="outline"&&s.outlineInteractive,!n&&r==="underline"&&s.underlineInteractive,!n&&i&&s.filledInteractive,i&&s.filled,!n&&o&&s.invalid,n&&s.disabled,e.root.className),e.input.className=Ve(pw.input,ULe(),t==="large"&&a.large,n&&a.disabled,e.input.className);const u=[XLe(),n&&l.disabled,l[t]];return e.contentBefore&&(e.contentBefore.className=Ve(pw.contentBefore,...u,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=Ve(pw.contentAfter,...u,e.contentAfter.className)),e},i7=A.forwardRef((e,t)=>{const r=WLe(e,t);return ZLe(r),cn("useInputStyles_unstable")(r),GLe(r)});i7.displayName="Input";const JLe=e=>{const{disabled:t,disabledFocusable:r}=e,{onClick:n,onKeyDown:o,role:i,tabIndex:s}=e.root;return e.root.as==="a"&&(e.root.href=t?void 0:e.root.href,(t||r)&&(e.root.role=i||"link")),(e.root.as==="a"||e.root.as==="span")&&(e.root.tabIndex=s??(t&&!r?void 0:0)),e.root.onClick=a=>{t||r?a.preventDefault():n==null||n(a)},e.root.onKeyDown=a=>{(t||r)&&(a.key===lg||a.key===uf)?(a.preventDefault(),a.stopPropagation()):o==null||o(a)},e.disabled=t||r,e.root["aria-disabled"]=t||r||void 0,e.root.as==="button"&&(e.root.disabled=t&&!r),e},e7e=(e,t)=>{const r=p3e(),{appearance:n="default",disabled:o=!1,disabledFocusable:i=!1,inline:s=!1}=e,a=e.as||(e.href?"a":"button"),l={role:a==="span"?"button":void 0,type:a==="button"?"button":void 0,...e,as:a},u={appearance:n,disabled:o,disabledFocusable:i,inline:s,components:{root:a},root:_r(_n(a,{ref:t,...l}),{elementType:a}),backgroundAppearance:r};return JLe(u),u},t7e={root:"fui-Link"},r7e=bt({focusIndicator:{Bttzg6e:"fhgqx19",B3uz8dt:"f1olyrje",B6ihwck:"f1p93eir",g9k6zt:"f1nev41a"},root:{B486eqv:"f2hkw1w",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"fyind8e",Bceei9c:"f1k6fduh",mc9l5x:"f1w7gpdv",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:"fqv5qza",Bmxbyg5:"f1vmzxwi",fsow6f:["f1o700av","fes3tcz"],w71qe1:"f1iuv45f",Bkioxbp:"f1cmlufx",ygn44y:"f9n3di6",famaaq:"f1ids18y",Bde5pd6:"f1tx3yz7",Bi91k9c:"f1deo86v",i089h6:"f1eh06m1",lj723h:"f1iescvh"},button:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},href:{Be2twd7:"fjoy568"},subtle:{sj55zd:"fkfq4zb",Bde5pd6:"f1tx3yz7",Bi91k9c:"fnwyq0v",i089h6:"f1eh06m1",lj723h:"flvvhsy"},inline:{w71qe1:"f13mvf36"},disabled:{w71qe1:"f1iuv45f",sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bde5pd6:"fbnuktb",Bi91k9c:"fvgxktp",i089h6:"fljg2da",lj723h:"f19wldhg"},inverted:{sj55zd:"f1qz2gb0",Bi91k9c:"f1mlt8il",lj723h:"f1hsd4st"}},{d:[".fhgqx19[data-fui-focus-visible]{text-decoration-color:var(--colorStrokeFocus2);}",".f1olyrje[data-fui-focus-visible]{text-decoration-line:underline;}",".f1p93eir[data-fui-focus-visible]{text-decoration-style:double;}",".f1nev41a[data-fui-focus-visible]{outline-style:none;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".fyind8e{color:var(--colorBrandForegroundLink);}",".f1k6fduh{cursor:pointer;}",".f1w7gpdv{display:inline;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fqv5qza{overflow-x:inherit;}",".f1vmzxwi{overflow-y:inherit;}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".f1iuv45f{text-decoration-line:none;}",".f1cmlufx{text-decoration-thickness:var(--strokeWidthThin);}",".f9n3di6{text-overflow:inherit;}",".f1ids18y{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fjoy568{font-size:inherit;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f13mvf36{text-decoration-line:underline;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1tx3yz7:hover{text-decoration-line:underline;}",".f1deo86v:hover{color:var(--colorBrandForegroundLinkHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fbnuktb:hover{text-decoration-line:none;}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1mlt8il:hover{color:var(--colorBrandForegroundInvertedHover);}"],a:[".f1eh06m1:active{text-decoration-line:underline;}",".f1iescvh:active{color:var(--colorBrandForegroundLinkPressed);}",".flvvhsy:active{color:var(--colorNeutralForeground2Pressed);}",".fljg2da:active{text-decoration-line:none;}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1hsd4st:active{color:var(--colorBrandForegroundInvertedPressed);}"]}),n7e=e=>{const t=r7e(),{appearance:r,disabled:n,inline:o,root:i,backgroundAppearance:s}=e;return e.root.className=Ve(t7e.root,t.root,t.focusIndicator,i.as==="a"&&i.href&&t.href,i.as==="button"&&t.button,r==="subtle"&&t.subtle,s==="inverted"&&t.inverted,o&&t.inline,n&&t.disabled,e.root.className),e},o7e=e=>Je(e.root,{}),Ub=A.forwardRef((e,t)=>{const r=e7e(e,t);return n7e(r),o7e(r)});Ub.displayName="Link";const i7e=()=>A.createElement("svg",{className:"fui-Spinner__Progressbar"},A.createElement("circle",{className:"fui-Spinner__Track"}),A.createElement("circle",{className:"fui-Spinner__Tail"})),mue=A.createContext(void 0),s7e={};mue.Provider;const a7e=()=>{var e;return(e=A.useContext(mue))!==null&&e!==void 0?e:s7e},l7e=(e,t)=>{const{size:r}=a7e(),{appearance:n="primary",labelPosition:o="after",size:i=r??"medium",delay:s=0}=e,a=Ks("spinner"),{role:l="progressbar",tabIndex:u,...c}=e,f=_r(_n("div",{ref:t,role:l,...c},["size"]),{elementType:"div"}),[d,h]=A.useState(!0),[g,v]=jL();A.useEffect(()=>{if(!(s<=0))return h(!1),g(()=>{h(!0)},s),()=>{v()}},[g,v,s]);const y=tn(e.label,{defaultProps:{id:a},renderByDefault:!1,elementType:Nf}),E=tn(e.spinner,{renderByDefault:!0,defaultProps:{children:A.createElement(i7e,null),tabIndex:u},elementType:"span"});return y&&f&&!f["aria-labelledby"]&&(f["aria-labelledby"]=y.id),{appearance:n,delay:s,labelPosition:o,size:i,shouldRenderSpinner:d,components:{root:"div",spinner:"span",label:Nf},root:f,spinner:E,label:y}},u7e=e=>{const{labelPosition:t,shouldRenderSpinner:r}=e;return zn(e.root,{children:[e.label&&r&&(t==="above"||t==="before")&&Je(e.label,{}),e.spinner&&r&&Je(e.spinner,{}),e.label&&r&&(t==="below"||t==="after")&&Je(e.label,{})]})},CC={root:"fui-Spinner",spinner:"fui-Spinner__spinner",label:"fui-Spinner__label"},c7e=bt({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bg96gwp:"fez10in",i8kkvl:"f4px1ci",Belr9w4:"fn67r4l"},horizontal:{Beiy3e4:"f1063pyq"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fez10in{line-height:0;}",".f4px1ci{column-gap:8px;}",".fn67r4l{row-gap:8px;}",".f1063pyq{flex-direction:row;}",".f1vx9l62{flex-direction:column;}"]}),f7e=bt({spinnerSVG:{B3aqqti:"f1or16p5",Brovlpu:"f1grzc83",Bxa1mx5:"f19shzzi",Bwaue66:["f5tbecn","f15qb8s7"],fyp1ls:"fn4mtlg",ag6ruv:"f1y80fxs",osj692:"f1r2crtq",aq5vjd:"f1wsi8sr",tlu9e1:"f1bkm2qd",J3u96z:"f1urqz7h",d32isg:"f1da2vov",Bsvqbuc:"f11rfva0",b3s3i5:"f1exc66"},"extra-tiny":{Bah9ito:"f1x2gjcb",ut6tcf:"f1vjiaua",B7p06xz:"fv1u54w",B807ibg:"f1oebb0s"},tiny:{Bah9ito:"f1j4wmu2",ut6tcf:"f1vppzuq",B7p06xz:"fv1u54w",B807ibg:"fngtx1d"},"extra-small":{Bah9ito:"fmpqlna",ut6tcf:"f15z5jzu",B7p06xz:"fv1u54w",B807ibg:"fadawes"},small:{Bah9ito:"fo52gbo",ut6tcf:"f1b41i3v",B7p06xz:"fv1u54w",B807ibg:"f1xqyyrl"},medium:{Bah9ito:"f1aiqagr",ut6tcf:"f1wtx80b",B7p06xz:"f1flujpd",B807ibg:"f1u06hy7"},large:{Bah9ito:"f1trdq7b",ut6tcf:"f9e0mc5",B7p06xz:"f1flujpd",B807ibg:"f13pmvhl"},"extra-large":{Bah9ito:"f89rf2a",ut6tcf:"f1w2xg3q",B7p06xz:"f1flujpd",B807ibg:"fmn74v6"},huge:{Bah9ito:"f1rx7k5y",ut6tcf:"f1vtyt49",B7p06xz:"f1owbg48",B807ibg:"f1fr1izd"}},{f:[".f1or16p5:focus{outline-width:3px;}",".f1grzc83:focus{outline-style:solid;}",".f19shzzi:focus{outline-color:transparent;}"],k:["@keyframes fb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}","@keyframes f1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],d:[".f5tbecn>svg{animation-name:fb7n1on;}",".f15qb8s7>svg{animation-name:f1gx3jof;}",".fn4mtlg>svg{animation-duration:3s;}",".f1y80fxs>svg{animation-iteration-count:infinite;}",".f1r2crtq>svg{animation-timing-function:linear;}",".f1wsi8sr>svg{background-color:transparent;}",".f1da2vov>svg>circle{cx:50%;}",".f11rfva0>svg>circle{cy:50%;}",".f1exc66>svg>circle{fill:none;}",".f1x2gjcb>svg{height:16px;}",".f1vjiaua>svg{width:16px;}",".fv1u54w>svg>circle{stroke-width:var(--strokeWidthThick);}",".f1oebb0s>svg>circle{r:7px;}",".f1j4wmu2>svg{height:20px;}",".f1vppzuq>svg{width:20px;}",".fngtx1d>svg>circle{r:9px;}",".fmpqlna>svg{height:24px;}",".f15z5jzu>svg{width:24px;}",".fadawes>svg>circle{r:11px;}",".fo52gbo>svg{height:28px;}",".f1b41i3v>svg{width:28px;}",".f1xqyyrl>svg>circle{r:13px;}",".f1aiqagr>svg{height:32px;}",".f1wtx80b>svg{width:32px;}",".f1flujpd>svg>circle{stroke-width:var(--strokeWidthThicker);}",".f1u06hy7>svg>circle{r:14.5px;}",".f1trdq7b>svg{height:36px;}",".f9e0mc5>svg{width:36px;}",".f13pmvhl>svg>circle{r:16.5px;}",".f89rf2a>svg{height:40px;}",".f1w2xg3q>svg{width:40px;}",".fmn74v6>svg>circle{r:18.5px;}",".f1rx7k5y>svg{height:44px;}",".f1vtyt49>svg{width:44px;}",".f1owbg48>svg>circle{stroke-width:var(--strokeWidthThickest);}",".f1fr1izd>svg>circle{r:20px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1bkm2qd>svg{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1urqz7h>svg{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),d7e=bt({inverted:{gwg7kz:"f1jvpmnu",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f1esql28"},primary:{gwg7kz:"f11ditju",B8k2rxp:"f1m9nikz",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f13qeqtg",y14cdu:"flglbw1"}},{d:[".f1jvpmnu>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}",".fq8a5sv>svg>circle.fui-Spinner__Tail{animation-name:f1v1ql0f;}",".f1b4lwqj>svg>circle.fui-Spinner__Tail{animation-duration:1.5s;}",".f1najlst>svg>circle.fui-Spinner__Tail{animation-iteration-count:infinite;}",".fjxod4>svg>circle.fui-Spinner__Tail{animation-timing-function:var(--curveEasyEase);}",".fu3xdw0>svg>circle.fui-Spinner__Tail{stroke-linecap:round;}",".f1ttdh6v>svg>circle.fui-Spinner__Tail{transform:rotate(-90deg);}",".fmyjox0>svg>circle.fui-Spinner__Tail{transform:rotate(90deg);}",".f1eseayc>svg>circle.fui-Spinner__Tail{transform-origin:50% 50%;}",".f1esql28>svg>circle.fui-Spinner__Track{stroke:rgba(255, 255, 255, 0.2);}",".f11ditju>svg>circle.fui-Spinner__Tail{stroke:var(--colorBrandStroke1);}",".f13qeqtg>svg>circle.fui-Spinner__Track{stroke:var(--colorBrandStroke2Contrast);}"],k:["@keyframes f1v1ql0f{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"],m:[["@media screen and (prefers-reduced-motion: reduce){.folzdkc>svg>circle.fui-Spinner__Tail{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fhlfkde>svg>circle.fui-Spinner__Tail{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f1m9nikz>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}}",{m:"screen and (forced-colors: active)"}],["@media screen and (forced-colors: active){.flglbw1>svg>circle.fui-Spinner__Track{stroke:var(--colorNeutralBackgroundInverted);}}",{m:"screen and (forced-colors: active)"}]]}),h7e=bt({inverted:{sj55zd:"f15aqcq"},primary:{},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".f15aqcq{color:rgba(255, 255, 255, 1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),p7e=e=>{const{labelPosition:t,size:r,appearance:n="primary"}=e,o=c7e(),i=f7e(),s=h7e(),a=d7e();return e.root.className=Ve(CC.root,o.root,(t==="above"||t==="below")&&o.vertical,(t==="before"||t==="after")&&o.horizontal,e.root.className),e.spinner&&(e.spinner.className=Ve(CC.spinner,i.spinnerSVG,i[r],a[n],e.spinner.className)),e.label&&(e.label.className=Ve(CC.label,s[r],s[n],e.label.className)),e},tE=A.forwardRef((e,t)=>{const r=l7e(e,t);return p7e(r),cn("useSpinnerStyles_unstable")(r),u7e(r)});tE.displayName="Spinner";const g7e={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},yue=vv(void 0),v7e=yue.Provider,Vl=e=>Yo(yue,(t=g7e)=>e(t)),m7e=(e,t)=>{const{content:r,disabled:n=!1,icon:o,onClick:i,onFocus:s,value:a}=e,l=Vl(R=>R.appearance),u=Vl(R=>R.reserveSelectedTabSpace),c=Vl(R=>R.selectTabOnFocus),f=Vl(R=>R.disabled),d=Vl(R=>R.selectedValue===a),h=Vl(R=>R.onRegister),g=Vl(R=>R.onUnregister),v=Vl(R=>R.onSelect),y=Vl(R=>R.size),E=Vl(R=>!!R.vertical),_=f||n,S=A.useRef(null),b=R=>v(R,{value:a}),k=ir(un(i,b)),T=ir(un(s,b));A.useEffect(()=>(h({value:a,ref:S}),()=>{g({value:a,ref:S})}),[h,g,S,a]);const x=tn(o,{elementType:"span"}),I=_r(r,{defaultProps:{children:e.children},elementType:"span"}),C=!!(x!=null&&x.children&&!I.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:_r(_n("button",{ref:Ho(t,S),role:"tab",type:"button","aria-selected":_?void 0:`${d}`,...e,disabled:_,onClick:k,onFocus:c?T:s}),{elementType:"button"}),icon:x,iconOnly:C,content:I,contentReservedSpace:tn(r,{renderByDefault:!d&&!C&&u,defaultProps:{children:e.children},elementType:"span"}),appearance:l,disabled:_,selected:d,size:y,value:a,vertical:E}},y7e=e=>zn(e.root,{children:[e.icon&&Je(e.icon,{}),!e.iconOnly&&Je(e.content,{}),e.contentReservedSpace&&Je(e.contentReservedSpace,{})]}),tK={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},b7e=bt({base:{B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",B0vmy72:"f9qxlq5",u9bimw:"f1aql376"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".fhwpy7i::after{transition-property:transform;}",".f6zz20j::after{transition-duration:var(--durationSlow);}",".f1ai4sc1::after{transition-timing-function:var(--curveDecelerateMax);}",".fug4aj8::after{transform-origin:left;}",".f1i5xzg7::after{transform-origin:right;}",".f1q7ujh::after{transform:translateX(var(--fui-Tab__indicator--offset)) scaleX(var(--fui-Tab__indicator--scale));}",".f1hqboyk::after{transform-origin:top;}",".f1dxupa6::after{transform:translateY(var(--fui-Tab__indicator--offset)) scaleY(var(--fui-Tab__indicator--scale));}"],m:[["@media (prefers-reduced-motion: reduce){.f9qxlq5::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1aql376::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),_7e=e=>{if(e){var t;const r=((t=e.parentElement)===null||t===void 0?void 0:t.getBoundingClientRect())||{x:0,y:0,width:0,height:0},n=e.getBoundingClientRect();return{x:n.x-r.x,y:n.y-r.y,width:n.width,height:n.height}}},rK=(e,t)=>{var r;const n=t!=null?(r=e[JSON.stringify(t)])===null||r===void 0?void 0:r.ref.current:void 0;return n?_7e(n):void 0},E7e=e=>{const{disabled:t,selected:r,vertical:n}=e,o=b7e(),[i,s]=A.useState(),[a,l]=A.useState({offset:0,scale:1}),u=Vl(d=>d.getRegisteredTabs);if(A.useEffect(()=>{i&&l({offset:0,scale:1})},[i]),r){const{previousSelectedValue:d,selectedValue:h,registeredTabs:g}=u();if(d&&i!==d){const v=rK(g,d),y=rK(g,h);if(y&&v){const E=n?v.y-y.y:v.x-y.x,_=n?v.height/y.height:v.width/y.width;l({offset:E,scale:_}),s(d)}}}else i&&s(void 0);if(t)return e;const c=a.offset===0&&a.scale===1;e.root.className=Ve(e.root.className,r&&o.base,r&&c&&o.animated,r&&(n?o.vertical:o.horizontal));const f={[tK.offsetVar]:`${a.offset}px`,[tK.scaleVar]:`${a.scale}`};return e.root.style={...f,...e.root.style},e},NC={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},S7e={content:"fui-Tab__content--reserved-space"},w7e=bt({base:{Bt984gj:"f122n59",g2u3we:"fwhevhj",h3c5rm:["f61n433","f1q8l70w"],B9xav0g:"fv1dfc8",zhjwy3:["f1q8l70w","f61n433"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",z8tnut:"fp2oml8",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1tdddsa",uwmqm3:["fk8j09s","fdw0yi8"]},smallVertical:{i8kkvl:"f14mj54c",z8tnut:"fclwglc",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fywfov9",uwmqm3:["fk8j09s","fdw0yi8"]},mediumHorizontal:{i8kkvl:"f1rjii52",z8tnut:"f5yzyt",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fx3omr",uwmqm3:["f1ng84yb","f11gcy0p"]},mediumVertical:{i8kkvl:"f1rjii52",z8tnut:"fp2oml8",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f1tdddsa",uwmqm3:["f1ng84yb","f11gcy0p"]},largeHorizontal:{i8kkvl:"f1rjii52",z8tnut:"fikn0iw",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdxej3c",uwmqm3:["f1ng84yb","f11gcy0p"]},largeVertical:{i8kkvl:"f1rjii52",z8tnut:"f1kwiid1",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f5b47ha",uwmqm3:["f1ng84yb","f11gcy0p"]},transparent:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",ecr2s2:"fophhak",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},subtle:{De3pzq:"fhovq9v",Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu",Bceei9c:"fdrzuqr"},selected:{Bptxc3x:"f1cadz5z",B076xvk:"f1ck17l",q9r9w5:"f42ak0g",cl4aha:"ffplhdr",Bk452zc:"ffth601",a4hkcw:"fhklyu5"}},{d:[".f122n59{align-items:center;}",".fwhevhj{border-top-color:none;}",".f61n433{border-right-color:none;}",".f1q8l70w{border-left-color:none;}",".fv1dfc8{border-bottom-color:none;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f5yzyt{padding-top:var(--spacingVerticalM);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fx3omr{padding-bottom:var(--spacingVerticalM);}",".fikn0iw{padding-top:var(--spacingVerticalL);}",".fdxej3c{padding-bottom:var(--spacingVerticalL);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1mfqf41:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f149wc3x:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1ck17l:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".ffth601:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}"],a:[".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f10aiid4:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fjioou7:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f42ak0g:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".fhklyu5:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),k7e=bt({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],Bhxq17a:"f1vjpng2"}},{d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",".f1p7hgxw[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);}",".f1way5bb[data-fui-focus-visible]{outline-color:transparent;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqa318h[data-fui-focus-visible]{box-shadow:var(--shadow4),0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2);}",".f1vjpng2[data-fui-focus-visible]{z-index:1;}"]}),A7e=bt({base:{az7l2e:"fhw179n",Bv4n3vi:["f10y1uxy","f6aiuy0"],vqofr:["f6aiuy0","f10y1uxy"],B0uxbk8:["f1kfpfnu","f1dx5wco"],Bgqb9hq:["f1dx5wco","f1kfpfnu"],amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",vzq8l0:["f105swax","fscdmel"],Bka2azo:["fscdmel","f105swax"],Br4ovkg:["f1tkcw1w","f1u11x8o"],csmgbd:["f1u11x8o","f1tkcw1w"],y36c18:"f16cxu0",B1ctymy:"f1nwgacf",Bgvrrv0:"f15ovonk",ddr6p5:"fvje46l"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn"},smallHorizontal:{lawp4y:"fchca7p",Baz25je:"f1r53b5e",Fbdkly:["f1s6rxz5","fo35v8s"],mdwyqc:["fo35v8s","f1s6rxz5"]},smallVertical:{lawp4y:"fze4zud",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"fdp32p8",Ccq8qp:"f1aij3q"},mediumHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},mediumVertical:{lawp4y:"f17jracn",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f117lcb2",Ccq8qp:"f1aij3q"},largeHorizontal:{lawp4y:"fchca7p",Baz25je:"f1s2r9ax",Fbdkly:["f1o0nnkk","fxb7rol"],mdwyqc:["fxb7rol","f1o0nnkk"]},largeVertical:{lawp4y:"fel9d3z",Fbdkly:["f1fzr1x6","f1f351id"],Bciustq:"f6vqlre",Ccq8qp:"f1aij3q"}},{h:[".fhw179n:hover::before{background-color:var(--colorNeutralStroke1Hover);}",".f10y1uxy:hover::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".f6aiuy0:hover::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1kfpfnu:hover::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1dx5wco:hover::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",".f105swax:active::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".fscdmel:active::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1tkcw1w:active::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1u11x8o:active::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.f15ovonk:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fvje46l:active::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}]],d:[".fchca7p::before{bottom:0;}",".f1r53b5e::before{height:var(--strokeWidthThick);}",".f1s6rxz5::before{left:var(--spacingHorizontalSNudge);}",".fo35v8s::before{right:var(--spacingHorizontalSNudge);}",".fze4zud::before{bottom:var(--spacingVerticalXS);}",".f1fzr1x6::before{left:0;}",".f1f351id::before{right:0;}",".fdp32p8::before{top:var(--spacingVerticalXS);}",".f1aij3q::before{width:var(--strokeWidthThicker);}",".f1s2r9ax::before{height:var(--strokeWidthThicker);}",".f1o0nnkk::before{left:var(--spacingHorizontalM);}",".fxb7rol::before{right:var(--spacingHorizontalM);}",".f17jracn::before{bottom:var(--spacingVerticalS);}",".f117lcb2::before{top:var(--spacingVerticalS);}",".fel9d3z::before{bottom:var(--spacingVerticalMNudge);}",".f6vqlre::before{top:var(--spacingVerticalMNudge);}"]}),x7e=bt({base:{Bjyk6c5:"f1rp0jgh",B3778ie:["fprarqb","f14vs0nd"],d9w3h3:["f14vs0nd","fprarqb"],Bl18szs:["f1gtfqs9","f18zvfd9"],B4j8arr:["f18zvfd9","f1gtfqs9"],Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",t2ki1e:"ffmd2fr"},selected:{Bjyk6c5:"f1ksivud",Glksuk:"f1eytvvh",Blzl0y7:"fuaa9s",f7digc:"fy7ktjt",Biqphg1:"f16tp0gf",Bntoloa:"fj0yp7j"},disabled:{Bjyk6c5:"f13lkzet"},smallHorizontal:{By385i5:"fo72kxq",Dlnsje:"f9bb2ob",Eqx8gd:["f1q70ajw","f18rbzdx"],B1piin3:["f18rbzdx","f1q70ajw"]},smallVertical:{By385i5:"fqbue9b",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fk1klkt",a2br6o:"f1o25lip"},mediumHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},mediumVertical:{By385i5:"fipylg0",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"fqchiol",a2br6o:"f1o25lip"},largeHorizontal:{By385i5:"fo72kxq",Dlnsje:"f1vx7lu8",Eqx8gd:["fna7m5n","f1oxpfwv"],B1piin3:["f1oxpfwv","fna7m5n"]},largeVertical:{By385i5:"f1w7dm5g",Eqx8gd:["f1n6gb5g","f15yvnhg"],bn5sak:"f1p6em4m",a2br6o:"f1o25lip"}},{d:[".f1rp0jgh::after{background-color:var(--colorTransparentStroke);}",".fprarqb::after{border-bottom-right-radius:var(--borderRadiusCircular);}",".f14vs0nd::after{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1gtfqs9::after{border-top-right-radius:var(--borderRadiusCircular);}",".f18zvfd9::after{border-top-left-radius:var(--borderRadiusCircular);}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".ffmd2fr::after{z-index:1;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".f13lkzet::after{background-color:var(--colorNeutralForegroundDisabled);}",".fo72kxq::after{bottom:0;}",".f9bb2ob::after{height:var(--strokeWidthThick);}",".f1q70ajw::after{left:var(--spacingHorizontalSNudge);}",".f18rbzdx::after{right:var(--spacingHorizontalSNudge);}",".fqbue9b::after{bottom:var(--spacingVerticalXS);}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fk1klkt::after{top:var(--spacingVerticalXS);}",".f1o25lip::after{width:var(--strokeWidthThicker);}",".f1vx7lu8::after{height:var(--strokeWidthThicker);}",".fna7m5n::after{left:var(--spacingHorizontalM);}",".f1oxpfwv::after{right:var(--spacingHorizontalM);}",".fipylg0::after{bottom:var(--spacingVerticalS);}",".fqchiol::after{top:var(--spacingVerticalS);}",".f1w7dm5g::after{bottom:var(--spacingVerticalMNudge);}",".f1p6em4m::after{top:var(--spacingVerticalMNudge);}"],h:[".f1eytvvh:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}"],a:[".fuaa9s:active::after{background-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media (forced-colors: active){.fy7ktjt::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16tp0gf:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj0yp7j:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),T7e=bt({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",D0sxk3:"f16u1re",t6yez3:"f8bsbmo"},small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},medium:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun"},selected:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"}},{d:[".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".f4d9j23{justify-content:center;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f16u1re .fui-Icon-filled{display:none;}",".f8bsbmo .fui-Icon-regular{display:inline;}",".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}"]}),I7e=bt({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",z8tnut:"fztplxc",z189sj:["ffczdla","fgiv446"],Byoj8tv:"f9g1xly",uwmqm3:["fgiv446","ffczdla"]},selected:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"},largeSelected:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},noIconBefore:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94"},iconBefore:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},placeholder:{Bcdw1i0:"fd7fpy0"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fztplxc{padding-top:var(--spacingVerticalNone);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".f9g1xly{padding-bottom:var(--spacingVerticalNone);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fwpfdsa{grid-column-start:1;}",".f16hsg94{grid-row-start:1;}",".fd46tj4{grid-column-start:2;}",".fd7fpy0{visibility:hidden;}"]}),C7e=e=>{const t=w7e(),r=k7e(),n=A7e(),o=x7e(),i=T7e(),s=I7e(),{appearance:a,disabled:l,selected:u,size:c,vertical:f}=e;return e.root.className=Ve(NC.root,t.base,f?t.vertical:t.horizontal,c==="small"&&(f?t.smallVertical:t.smallHorizontal),c==="medium"&&(f?t.mediumVertical:t.mediumHorizontal),c==="large"&&(f?t.largeVertical:t.largeHorizontal),r.base,!l&&a==="subtle"&&t.subtle,!l&&a==="transparent"&&t.transparent,!l&&u&&t.selected,l&&t.disabled,n.base,c==="small"&&(f?n.smallVertical:n.smallHorizontal),c==="medium"&&(f?n.mediumVertical:n.mediumHorizontal),c==="large"&&(f?n.largeVertical:n.largeHorizontal),l&&n.disabled,u&&o.base,u&&!l&&o.selected,u&&c==="small"&&(f?o.smallVertical:o.smallHorizontal),u&&c==="medium"&&(f?o.mediumVertical:o.mediumHorizontal),u&&c==="large"&&(f?o.largeVertical:o.largeHorizontal),u&&l&&o.disabled,e.root.className),e.icon&&(e.icon.className=Ve(NC.icon,i.base,i[c],u&&i.selected,e.icon.className)),e.contentReservedSpace&&(e.contentReservedSpace.className=Ve(S7e.content,s.base,c==="large"?s.largeSelected:s.selected,e.icon?s.iconBefore:s.noIconBefore,s.placeholder,e.content.className),e.contentReservedSpaceClassName=e.contentReservedSpace.className),e.content.className=Ve(NC.content,s.base,c==="large"&&s.large,u&&(c==="large"?s.largeSelected:s.selected),e.icon?s.iconBefore:s.noIconBefore,e.content.className),E7e(e),e},FB=A.forwardRef((e,t)=>{const r=m7e(e,t);return C7e(r),cn("useTabStyles_unstable")(r),y7e(r)});FB.displayName="Tab";const N7e=(e,t)=>{const{appearance:r="transparent",reserveSelectedTabSpace:n=!0,disabled:o=!1,onTabSelect:i,selectTabOnFocus:s=!1,size:a="medium",vertical:l=!1}=e,u=A.useRef(null),c=mle({circular:!0,axis:l?"vertical":"horizontal",memorizeCurrent:!0}),[f,d]=kf({state:e.selectedValue,defaultState:e.defaultSelectedValue,initialState:void 0}),h=A.useRef(void 0),g=A.useRef(void 0);A.useEffect(()=>{g.current=h.current,h.current=f},[f]);const v=ir((b,k)=>{d(k.value),i==null||i(b,k)}),y=A.useRef({}),E=ir(b=>{y.current[JSON.stringify(b.value)]=b}),_=ir(b=>{delete y.current[JSON.stringify(b.value)]}),S=A.useCallback(()=>({selectedValue:h.current,previousSelectedValue:g.current,registeredTabs:y.current}),[]);return{components:{root:"div"},root:_r(_n("div",{ref:Ho(t,u),role:"tablist","aria-orientation":l?"vertical":"horizontal",...c,...e}),{elementType:"div"}),appearance:r,reserveSelectedTabSpace:n,disabled:o,selectTabOnFocus:s,selectedValue:f,size:a,vertical:l,onRegister:E,onUnregister:_,onSelect:v,getRegisteredTabs:S}},R7e=(e,t)=>Je(e.root,{children:Je(v7e,{value:t.tabList,children:e.root.children})}),O7e={root:"fui-TabList"},D7e=bt({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fi64zpg{flex-shrink:0;}",".flvyvdh{flex-wrap:nowrap;}",".f10pi13n{position:relative;}",".f1q9h2pe{align-items:stretch;}",".f1vx9l62{flex-direction:column;}"]}),F7e=e=>{const{vertical:t}=e,r=D7e();return e.root.className=Ve(O7e.root,r.root,t?r.vertical:r.horizontal,e.root.className),e};function B7e(e){const{appearance:t,reserveSelectedTabSpace:r,disabled:n,selectTabOnFocus:o,selectedValue:i,onRegister:s,onUnregister:a,onSelect:l,getRegisteredTabs:u,size:c,vertical:f}=e;return{tabList:{appearance:t,reserveSelectedTabSpace:r,disabled:n,selectTabOnFocus:o,selectedValue:i,onSelect:l,onRegister:s,onUnregister:a,getRegisteredTabs:u,size:c,vertical:f}}}const bue=A.forwardRef((e,t)=>{const r=N7e(e,t),n=B7e(r);return F7e(r),cn("useTabListStyles_unstable")(r),R7e(r,n)});bue.displayName="TabList";const oh="__fluentDisableScrollElement";function M7e(){const{targetDocument:e}=Fa();return A.useCallback(()=>{if(e)return L7e(e.body)},[e])}function L7e(e){var t;const{clientWidth:r}=e.ownerDocument.documentElement;var n;const o=(n=(t=e.ownerDocument.defaultView)===null||t===void 0?void 0:t.innerWidth)!==null&&n!==void 0?n:0;return j7e(e),e[oh].count===0&&(e.style.overflow="hidden",e.style.paddingRight=`${o-r}px`),e[oh].count++,()=>{e[oh].count--,e[oh].count===0&&(e.style.overflow=e[oh].previousOverflowStyle,e.style.paddingRight=e[oh].previousPaddingRightStyle)}}function j7e(e){var t,r,n;(n=(t=e)[r=oh])!==null&&n!==void 0||(t[r]={count:0,previousOverflowStyle:e.style.overflow,previousPaddingRightStyle:e.style.paddingRight})}function z7e(e,t){const{findFirstFocusable:r}=yle(),{targetDocument:n}=Fa(),o=A.useRef(null);return A.useEffect(()=>{if(!e)return;const i=o.current&&r(o.current);if(i)i.focus();else{var s;(s=o.current)===null||s===void 0||s.focus()}},[r,e,t,n]),o}const H7e={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,dialogRef:{current:null},requestOpenChange(){}},s7=vv(void 0),$7e=s7.Provider,nf=e=>Yo(s7,(t=H7e)=>e(t)),P7e=!1,_ue=A.createContext(void 0),Eue=_ue.Provider,q7e=()=>{var e;return(e=A.useContext(_ue))!==null&&e!==void 0?e:P7e},W7e=e=>{const{children:t,modalType:r="modal",onOpenChange:n,inertTrapFocus:o=!1}=e,[i,s]=G7e(t),[a,l]=kf({state:e.open,defaultState:e.defaultOpen,initialState:!1}),u=ir(v=>{n==null||n(v.event,v),v.event.isDefaultPrevented()||l(v.open)}),c=z7e(a,r),f=M7e(),d=!!(a&&r!=="non-modal");hc(()=>{if(d)return f()},[f,d]);const{modalAttributes:h,triggerAttributes:g}=zT({trapFocus:r!=="non-modal",legacyTrapFocus:!o});return{components:{backdrop:"div"},inertTrapFocus:o,open:a,modalType:r,content:s,trigger:i,requestOpenChange:u,dialogTitleId:Ks("dialog-title-"),isNestedDialog:GL(s7),dialogRef:c,modalAttributes:r!=="non-modal"?h:void 0,triggerAttributes:g}};function G7e(e){const t=A.Children.toArray(e);switch(t.length){case 2:return t;case 1:return[void 0,t[0]];default:return[void 0,void 0]}}function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function BB(e,t){return BB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},BB(e,t)}function l7(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,BB(e,t)}var Sue={exports:{}},K7e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",V7e=K7e,U7e=V7e;function wue(){}function kue(){}kue.resetWarningCache=wue;var Y7e=function(){function e(n,o,i,s,a,l){if(l!==U7e){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:kue,resetWarningCache:wue};return r.PropTypes=r,r};Sue.exports=Y7e();var X7e=Sue.exports;const Mr=zf(X7e),nK={disabled:!1},Aue=re.createContext(null);var Q7e=function(t){return t.scrollTop},ly="unmounted",ih="exited",sh="entering",f0="entered",MB="exiting",Pf=function(e){l7(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var s=o,a=s&&!s.isMounting?n.enter:n.appear,l;return i.appearStatus=null,n.in?a?(l=ih,i.appearStatus=sh):l=f0:n.unmountOnExit||n.mountOnEnter?l=ly:l=ih,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===ly?{status:ih}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==sh&&s!==f0&&(i=sh):(s===sh||s===f0)&&(i=MB)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===sh){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:oy.findDOMNode(this);s&&Q7e(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ih&&this.setState({status:ly})},r.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[oy.findDOMNode(this),a],u=l[0],c=l[1],f=this.getTimeouts(),d=a?f.appear:f.enter;if(!o&&!s||nK.disabled){this.safeSetState({status:f0},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:sh},function(){i.props.onEntering(u,c),i.onTransitionEnd(d,function(){i.safeSetState({status:f0},function(){i.props.onEntered(u,c)})})})},r.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:oy.findDOMNode(this);if(!i||nK.disabled){this.safeSetState({status:ih},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:MB},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:ih},function(){o.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:oy.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===ly)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=a7(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return re.createElement(Aue.Provider,{value:null},typeof s=="function"?s(o,a):re.cloneElement(re.Children.only(s),a))},t}(re.Component);Pf.contextType=Aue;Pf.propTypes={};function Kp(){}Pf.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Kp,onEntering:Kp,onEntered:Kp,onExit:Kp,onExiting:Kp,onExited:Kp};Pf.UNMOUNTED=ly;Pf.EXITED=ih;Pf.ENTERING=sh;Pf.ENTERED=f0;Pf.EXITING=MB;const Z7e=Pf;function oK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const J7e=void 0,xue=A.createContext(void 0),eje=xue.Provider,tje=()=>{var e;return(e=A.useContext(xue))!==null&&e!==void 0?e:J7e},rje=(e,t)=>{const{content:r,trigger:n}=e;return Je($7e,{value:t.dialog,children:zn(Eue,{value:t.dialogSurface,children:[n,Je(Z7e,{mountOnEnter:!0,unmountOnExit:!0,in:e.open,nodeRef:e.dialogRef,appear:!0,timeout:250,children:o=>Je(eje,{value:o,children:r})})]})})};function nje(e){const{modalType:t,open:r,dialogRef:n,dialogTitleId:o,isNestedDialog:i,inertTrapFocus:s,requestOpenChange:a,modalAttributes:l,triggerAttributes:u}=e;return{dialog:{open:r,modalType:t,dialogRef:n,dialogTitleId:o,isNestedDialog:i,inertTrapFocus:s,modalAttributes:l,triggerAttributes:u,requestOpenChange:a},dialogSurface:!1}}const YT=A.memo(e=>{const t=W7e(e),r=nje(t);return rje(t,r)});YT.displayName="Dialog";const oje=e=>{const t=q7e(),{children:r,disableButtonEnhancement:n=!1,action:o=t?"close":"open"}=e,i=MT(r),s=nf(f=>f.requestOpenChange),{triggerAttributes:a}=zT(),l=ir(f=>{var d,h;i==null||(d=(h=i.props).onClick)===null||d===void 0||d.call(h,f),f.isDefaultPrevented()||s({event:f,type:"triggerClick",open:o==="open"})}),u={...i==null?void 0:i.props,ref:i==null?void 0:i.ref,onClick:l,...a},c=Gb((i==null?void 0:i.type)==="button"||(i==null?void 0:i.type)==="a"?i.type:"div",{...u,type:"button"});return{children:zL(r,n?u:c)}},ije=e=>e.children,_v=e=>{const t=oje(e);return ije(t)};_v.displayName="DialogTrigger";_v.isFluentTriggerComponent=!0;const sje=(e,t)=>{const{position:r="end",fluid:n=!1}=e;return{components:{root:"div"},root:_r(_n("div",{ref:t,...e}),{elementType:"div"}),position:r,fluid:n}},aje=e=>Je(e.root,{}),lje={root:"fui-DialogActions"},uje=Cn("r78gbj",null,{r:[".r78gbj{column-gap:8px;row-gap:8px;height:fit-content;box-sizing:border-box;display:flex;grid-row-start:3;grid-row-end:3;}"],s:["@media screen and (max-width: 480px){.r78gbj{flex-direction:column;justify-self:stretch;}}"]}),cje=bt({gridPositionEnd:{Bdqf98w:"f1a7i8kp",Br312pm:"fd46tj4",Bw0ie65:"fsyjsko",B6n781s:"f1f41i0t",Bv5d0be:"f1jaqex3",v4ugfu:"f2ao6jk"},gridPositionStart:{Bdqf98w:"fsxvdwy",Br312pm:"fwpfdsa",Bw0ie65:"f1e2fz10",Bojbm9c:"f11ihkml",Bv5d0be:"fce5bvx",v4ugfu:"f2ao6jk"},fluidStart:{Bw0ie65:"fsyjsko"},fluidEnd:{Br312pm:"fwpfdsa"}},{d:[".f1a7i8kp{justify-self:end;}",".fd46tj4{grid-column-start:2;}",".fsyjsko{grid-column-end:4;}",".fsxvdwy{justify-self:start;}",".fwpfdsa{grid-column-start:1;}",".f1e2fz10{grid-column-end:2;}"],m:[["@media screen and (max-width: 480px){.f1f41i0t{grid-column-start:1;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1jaqex3{grid-row-start:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f2ao6jk{grid-row-end:auto;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f11ihkml{grid-column-end:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.fce5bvx{grid-row-start:3;}}",{m:"screen and (max-width: 480px)"}]]}),fje=e=>{const t=uje(),r=cje();return e.root.className=Ve(lje.root,t,e.position==="start"&&r.gridPositionStart,e.position==="end"&&r.gridPositionEnd,e.fluid&&e.position==="start"&&r.fluidStart,e.fluid&&e.position==="end"&&r.fluidEnd,e.root.className),e},XT=A.forwardRef((e,t)=>{const r=sje(e,t);return fje(r),cn("useDialogActionsStyles_unstable")(r),aje(r)});XT.displayName="DialogActions";const dje=(e,t)=>{var r;return{components:{root:"div"},root:_r(_n((r=e.as)!==null&&r!==void 0?r:"div",{ref:t,...e}),{elementType:"div"})}},hje=e=>Je(e.root,{}),pje={root:"fui-DialogBody"},gje=Cn("r71plkv",null,{r:[".r71plkv{overflow-x:unset;overflow-y:unset;column-gap:8px;row-gap:8px;display:grid;max-height:calc(100vh - 2 * 24px);box-sizing:border-box;grid-template-rows:auto 1fr;grid-template-columns:1fr 1fr auto;}"],s:["@media screen and (max-width: 480px){.r71plkv{max-width:100vw;grid-template-rows:auto 1fr auto;}}"]}),vje=e=>{const t=gje();return e.root.className=Ve(pje.root,t,e.root.className),e},QT=A.forwardRef((e,t)=>{const r=dje(e,t);return vje(r),cn("useDialogBodyStyles_unstable")(r),hje(r)});QT.displayName="DialogBody";const iK={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},mje=Cn("rztv7rx","rt0yqbx",[".rztv7rx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}",".rt0yqbx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-left:0;margin-bottom:0;margin-right:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}"]),yje=bt({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),bje=Cn("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),_je=Cn("r51tj","rgre5d",{r:[".r51tj{overflow-x:visible;overflow-y:visible;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".r51tj:focus{outline-style:none;}",".r51tj:focus-visible{outline-style:none;}",".r51tj[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r51tj[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rgre5d{overflow-x:visible;overflow-y:visible;padding-top:0;padding-left:0;padding-bottom:0;padding-right:0;border-top-style:none;border-left-style:none;border-bottom-style:none;border-right-style:none;position:relative;box-sizing:content-box;background-color:inherit;color:inherit;font-family:inherit;font-size:inherit;cursor:pointer;line-height:0;-webkit-appearance:button;text-align:unset;}",".rgre5d:focus{outline-style:none;}",".rgre5d:focus-visible{outline-style:none;}",".rgre5d[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rgre5d[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r51tj[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rgre5d[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),Eje=e=>{const t=mje(),r=bje(),n=yje();return e.root.className=Ve(iK.root,t,!e.action&&n.rootWithoutAction,e.root.className),e.action&&(e.action.className=Ve(iK.action,r,e.action.className)),e},Sje=(e,t)=>{const{action:r}=e,n=nf(i=>i.modalType),o=_je();return{components:{root:"h2",action:"div"},root:_r(_n("h2",{ref:t,id:nf(i=>i.dialogTitleId),...e}),{elementType:"h2"}),action:tn(r,{renderByDefault:n==="non-modal",defaultProps:{children:A.createElement(_v,{disableButtonEnhancement:!0,action:"close"},A.createElement("button",{type:"button",className:o,"aria-label":"close"},A.createElement(Kae,null)))},elementType:"div"})}},wje=e=>zn(A.Fragment,{children:[Je(e.root,{children:e.root.children}),e.action&&Je(e.action,{})]}),ZT=A.forwardRef((e,t)=>{const r=Sje(e,t);return Eje(r),cn("useDialogTitleStyles_unstable")(r),wje(r)});ZT.displayName="DialogTitle";const kje=(e,t)=>{const r=nf(d=>d.modalType),n=nf(d=>d.isNestedDialog),o=tje(),i=nf(d=>d.modalAttributes),s=nf(d=>d.dialogRef),a=nf(d=>d.requestOpenChange),l=nf(d=>d.dialogTitleId),u=ir(d=>{if(BL(e.backdrop)){var h,g;(h=(g=e.backdrop).onClick)===null||h===void 0||h.call(g,d)}r==="modal"&&!d.isDefaultPrevented()&&a({event:d,open:!1,type:"backdropClick"})}),c=ir(d=>{var h;(h=e.onKeyDown)===null||h===void 0||h.call(e,d),d.key===$T&&!d.isDefaultPrevented()&&(a({event:d,open:!1,type:"escapeKeyDown"}),d.preventDefault())}),f=tn(e.backdrop,{renderByDefault:r!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});return f&&(f.onClick=u),{components:{backdrop:"div",root:"div"},backdrop:f,isNestedDialog:n,transitionStatus:o,mountNode:e.mountNode,root:_r(_n("div",{tabIndex:-1,"aria-modal":r!=="non-modal",role:r==="alert"?"alertdialog":"dialog","aria-labelledby":e["aria-label"]?void 0:l,...e,...i,onKeyDown:c,ref:Ho(t,s)}),{elementType:"div"})}},Aje=(e,t)=>zn(bv,{mountNode:e.mountNode,children:[e.backdrop&&Je(e.backdrop,{}),Je(Eue,{value:t.dialogSurface,children:Je(e.root,{})})]}),sK={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},xje=Cn("rhhzfde","r1n1tr5u",{r:[".rhhzfde{top:0;right:0;bottom:0;left:0;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-right-radius:var(--borderRadiusXLarge);border-bottom-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".rhhzfde:focus{outline-style:none;}",".rhhzfde:focus-visible{outline-style:none;}",".rhhzfde[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rhhzfde[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1n1tr5u{top:0;left:0;bottom:0;right:0;padding-top:24px;padding-left:24px;padding-bottom:24px;padding-right:24px;margin-top:auto;margin-left:auto;margin-bottom:auto;margin-right:auto;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-left-radius:var(--borderRadiusXLarge);border-bottom-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".r1n1tr5u:focus{outline-style:none;}",".r1n1tr5u:focus-visible{outline-style:none;}",".r1n1tr5u[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1n1tr5u[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rhhzfde[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media screen and (max-width: 480px){.rhhzfde{max-width:100vw;}}","@media (forced-colors: active){.r1n1tr5u[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}","@media screen and (max-width: 480px){.r1n1tr5u{max-width:100vw;}}"]}),Tje=bt({animated:{abs64n:"fk73vx1",B3o57yi:"fc397y7",Bmy1vo4:"f1b86uth",Bkqvd7p:"f18ad807",E5pizo:"f1yzz98r",Bz10aip:"f15ofi6c"},unmounted:{},entering:{},entered:{E5pizo:"f10nrhrw",Bz10aip:"f186d0ee",abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".fk73vx1{opacity:0;}",".fc397y7{transition-duration:var(--durationGentle);}",".f1b86uth{transition-property:opacity,transform,box-shadow;}",".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1yzz98r{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.1);}",".f15ofi6c{transform:scale(0.85) translateZ(0);}",".f10nrhrw{box-shadow:var(--shadow64);}",".f186d0ee{transform:scale(1) translateZ(0);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),Ije=Cn("raidwwn","r17vltcu",[".raidwwn{top:0px;right:0px;bottom:0px;left:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}",".r17vltcu{top:0px;left:0px;bottom:0px;right:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}"]),Cje=bt({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},unmounted:{},entering:{},entered:{abs64n:"f5p0z4x"},idle:{},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),Nje=e=>{const{isNestedDialog:t,root:r,backdrop:n,transitionStatus:o}=e,i=xje(),s=Tje(),a=Ije(),l=Cje();return r.className=Ve(sK.root,i,o&&s.animated,o&&s[o],r.className),n&&(n.className=Ve(sK.backdrop,a,t&&l.nestedDialogBackdrop,o&&l[o],n.className)),e};function Rje(e){return{dialogSurface:!0}}const JT=A.forwardRef((e,t)=>{const r=kje(e,t),n=Rje();return Nje(r),cn("useDialogSurfaceStyles_unstable")(r),Aje(r,n)});JT.displayName="DialogSurface";const Oje=(e,t)=>{var r;return{components:{root:"div"},root:_r(_n((r=e.as)!==null&&r!==void 0?r:"div",{ref:t,...e}),{elementType:"div"})}},Dje=e=>Je(e.root,{}),Fje={root:"fui-DialogContent"},Bje=Cn("r1e0mpcm","r1equu0b",[".r1e0mpcm{padding-top:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}",".r1equu0b{padding-top:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);overflow-y:auto;min-height:32px;box-sizing:border-box;grid-row-start:2;grid-row-end:2;grid-column-start:1;grid-column-end:4;}"]),Mje=e=>{const t=Bje();return e.root.className=Ve(Fje.root,t,e.root.className),e},e9=A.forwardRef((e,t)=>{const r=Oje(e,t);return Mje(r),cn("useDialogContentStyles_unstable")(r),Dje(r)});e9.displayName="DialogContent";const Tue=A.createContext(void 0),Lje={handleTagDismiss:()=>({}),size:"medium"};Tue.Provider;const jje=()=>{var e;return(e=A.useContext(Tue))!==null&&e!==void 0?e:Lje},zje={medium:28,small:20,"extra-small":16},Hje={rounded:"square",circular:"circular"},$je=(e,t)=>{const{handleTagDismiss:r,size:n}=jje(),o=Ks("fui-Tag",e.id),{appearance:i="filled",disabled:s=!1,dismissible:a=!1,shape:l="rounded",size:u=n,value:c=o}=e,f=ir(g=>{var v;(v=e.onClick)===null||v===void 0||v.call(e,g),g.defaultPrevented||r==null||r(g,{value:c})}),d=ir(g=>{var v;e==null||(v=e.onKeyDown)===null||v===void 0||v.call(e,g),!g.defaultPrevented&&(g.key===O6e||g.key===R6e)&&(r==null||r(g,{value:c}))}),h=a?"button":"span";return{appearance:i,avatarShape:Hje[l],avatarSize:zje[u],disabled:s,dismissible:a,shape:l,size:u,components:{root:h,media:"span",icon:"span",primaryText:"span",secondaryText:"span",dismissIcon:"span"},root:_r(_n(h,{ref:t,...e,id:o,...a&&{onClick:f,onKeyDown:d}}),{elementType:h}),media:tn(e.media,{elementType:"span"}),icon:tn(e.icon,{elementType:"span"}),primaryText:tn(e.primaryText,{renderByDefault:!0,defaultProps:{children:e.children},elementType:"span"}),secondaryText:tn(e.secondaryText,{elementType:"span"}),dismissIcon:tn(e.dismissIcon,{renderByDefault:a,defaultProps:{children:A.createElement(Pae,null),role:"img"},elementType:"span"})}},Pje=(e,t)=>zn(e.root,{children:[e.media&&Je(J6e,{value:t.avatar,children:Je(e.media,{})}),e.icon&&Je(e.icon,{}),e.primaryText&&Je(e.primaryText,{}),e.secondaryText&&Je(e.secondaryText,{}),e.dismissIcon&&e.dismissible&&Je(e.dismissIcon,{})]}),Vp={root:"fui-Tag",media:"fui-Tag__media",icon:"fui-Tag__icon",primaryText:"fui-Tag__primaryText",secondaryText:"fui-Tag__secondaryText",dismissIcon:"fui-Tag__dismissIcon"},qje=Cn("r1d3fbai","r89ofxt",{r:['.r1d3fbai{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r1d3fbai[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}",'.r89ofxt{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r89ofxt[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r1d3fbai{position:relative;}.r1d3fbai::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);}}','@media (forced-colors: active){.r89ofxt{position:relative;}.r89ofxt::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;position:absolute;top:-1px;right:-1px;left:-1px;bottom:-1px;border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);}}']}),Wje=Cn("r76els4","r1g7lw0i",{r:['.r76els4{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r76els4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);border-bottom-left-radius:var(--borderRadiusCircular);border-top-right-radius:var(--borderRadiusCircular);border-top-left-radius:var(--borderRadiusCircular);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}",'.r1g7lw0i{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;-ms-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r1g7lw0i[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);border-bottom-right-radius:var(--borderRadiusCircular);border-top-left-radius:var(--borderRadiusCircular);border-top-right-radius:var(--borderRadiusCircular);outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r76els4{position:relative;}.r76els4::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;border-left-width:var(--strokeWidthThin);border-left-style:solid;border-right-width:var(--strokeWidthThin);border-right-style:solid;position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-radius:var(--borderRadiusCircular);}}','@media (forced-colors: active){.r1g7lw0i{position:relative;}.r1g7lw0i::before{content:"";border-top-width:var(--strokeWidthThin);border-top-style:solid;border-right-width:var(--strokeWidthThin);border-right-style:solid;border-left-width:var(--strokeWidthThin);border-left-style:solid;position:absolute;top:-1px;right:-1px;left:-1px;bottom:-1px;border-radius:var(--borderRadiusCircular);}}']}),Gje=bt({filled:{De3pzq:"f16xq7d1",sj55zd:"fkfq4zb"},outline:{De3pzq:"fhovq9v",sj55zd:"fkfq4zb",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"]},brand:{De3pzq:"f16xkysk",sj55zd:"faj9fo0"},medium:{Bqenvij:"f1d2rq10"},small:{Bqenvij:"frvgh55"},"extra-small":{Bqenvij:"fjamq6b"}},{d:[".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f1d2rq10{height:32px;}",".frvgh55{height:24px;}",".fjamq6b{height:20px;}"]}),Kje=bt({filled:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]},outline:{Bceei9c:"fdrzuqr",De3pzq:"fhovq9v",sj55zd:"f1s2aq7o",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"]},brand:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]}},{d:[".fdrzuqr{cursor:not-allowed;}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fgig46g{border-top-color:var(--colorTransparentStrokeDisabled);}",".f1mxt3zg{border-right-color:var(--colorTransparentStrokeDisabled);}",".fziff3p{border-left-color:var(--colorTransparentStrokeDisabled);}",".f250w3l{border-bottom-color:var(--colorTransparentStrokeDisabled);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"]}),Vje=bt({medium:{uwmqm3:["f1rtp3s9","f18k1jr3"]},small:{uwmqm3:["f15vdbe4","fwiuce9"]},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"]}},{d:[".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}"]}),Uje=bt({medium:{z189sj:["f18k1jr3","f1rtp3s9"]},small:{z189sj:["fwiuce9","f15vdbe4"]},"extra-small":{z189sj:["fwiuce9","f15vdbe4"]}},{d:[".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}"]}),Yje=bt({base:{Ijaq50:"f11uok23",Br312pm:"f1qdfnnj",nk6f5a:"f1s27gz",Bw0ie65:"f86d0yl",mc9l5x:"f22iagw"},medium:{uwmqm3:["f1rtp3s9","f18k1jr3"],z189sj:["f7x41pl","fruq291"],a9b677:"f64fuq3",Be2twd7:"fe5j1ua"},small:{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"fjw5fx7",Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"frx94fk",Be2twd7:"f1ugzwwg"}},{d:[".f11uok23{grid-row-start:media;}",".f1qdfnnj{grid-column-start:media;}",".f1s27gz{grid-row-end:media;}",".f86d0yl{grid-column-end:media;}",".f22iagw{display:flex;}",".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f64fuq3{width:20px;}",".fe5j1ua{font-size:20px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".fjw5fx7{width:16px;}",".f4ybsrx{font-size:16px;}",".frx94fk{width:12px;}",".f1ugzwwg{font-size:12px;}"]}),Xje=bt({base:{Ijaq50:"f11uok23",Br312pm:"f1qdfnnj",nk6f5a:"f1s27gz",Bw0ie65:"f86d0yl",mc9l5x:"f22iagw",uwmqm3:["f10xn8zz","f136y8j8"]},medium:{z189sj:["f1vdfbxk","f1f5gg8d"]},small:{z189sj:["fdw0yi8","fk8j09s"]},"extra-small":{z189sj:["fdw0yi8","fk8j09s"]}},{d:[".f11uok23{grid-row-start:media;}",".f1qdfnnj{grid-column-start:media;}",".f1s27gz{grid-row-end:media;}",".f86d0yl{grid-column-end:media;}",".f22iagw{display:flex;}",".f10xn8zz{padding-left:1px;}",".f136y8j8{padding-right:1px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}"]}),Qje=bt({base:{Ijaq50:"fneo8i2",Br312pm:"frbqjvc",nk6f5a:"f1a6k60w",Bw0ie65:"f1ay3jj",mc9l5x:"f22iagw",ze5xyy:"f4xjyn1",oy3o9n:"f1xtr1b3"},medium:{uwmqm3:["fruq291","f7x41pl"],z189sj:["f18k1jr3","f1rtp3s9"],Be2twd7:"fe5j1ua"},small:{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f1ugzwwg"},filled:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},outline:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},brand:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"}},{d:[".fneo8i2{grid-row-start:dismissIcon;}",".frbqjvc{grid-column-start:dismissIcon;}",".f1a6k60w{grid-row-end:dismissIcon;}",".f1ay3jj{grid-column-end:dismissIcon;}",".f22iagw{display:flex;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fe5j1ua{font-size:20px;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".f4ybsrx{font-size:16px;}",".f1ugzwwg{font-size:12px;}"],m:[["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1xtr1b3:active{color:Highlight;}}",{m:"(forced-colors: active)"}]],h:[".f8491dx:hover{cursor:pointer;}",".f3ymbdj:hover{color:var(--colorCompoundBrandForeground1Hover);}"],a:[".fryz5bw:active{color:var(--colorCompoundBrandForeground1Pressed);}"]}),Zje=bt({base:{Huce71:"fz5stix",uwmqm3:["fgiv446","ffczdla"],z189sj:["ffczdla","fgiv446"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},withoutSecondaryText:{Br312pm:"faqcfhe",Ijaq50:"f1q3ipgb",nk6f5a:"fc0ab3q",Byoj8tv:"f1g03r3y"},withSecondaryText:{Ijaq50:"f1q3ipgb",Br312pm:"faqcfhe",nk6f5a:"fs32cm1",Bw0ie65:"f1bo7viq",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",B6of3ja:"f1ryq6si"}},{d:[".fz5stix{white-space:nowrap;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".faqcfhe{grid-column-start:primary;}",".f1q3ipgb{grid-row-start:primary;}",".fc0ab3q{grid-row-end:secondary;}",".f1g03r3y{padding-bottom:var(--spacingHorizontalXXS);}",".fs32cm1{grid-row-end:primary;}",".f1bo7viq{grid-column-end:primary;}",".f1ryq6si{margin-top:-2px;}"]}),Jje=Cn("r7hv1ps","rnrslm9",[".r7hv1ps{grid-area:secondary;padding-left:var(--spacingHorizontalXXS);padding-right:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}",".rnrslm9{grid-area:secondary;padding-right:var(--spacingHorizontalXXS);padding-left:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}"]),eze=e=>{const t=qje(),r=Wje(),n=Gje(),o=Kje(),i=Vje(),s=Uje(),a=Yje(),l=Xje(),u=Qje(),c=Zje(),f=Jje(),{shape:d,size:h,appearance:g}=e;return e.root.className=Ve(Vp.root,d==="rounded"?t:r,e.disabled?o[g]:n[g],n[h],!e.media&&!e.icon&&i[h],!e.dismissIcon&&s[h],e.root.className),e.media&&(e.media.className=Ve(Vp.media,l.base,l[h],e.media.className)),e.icon&&(e.icon.className=Ve(Vp.icon,a.base,a[h],e.icon.className)),e.primaryText&&(e.primaryText.className=Ve(Vp.primaryText,c.base,c[h],e.secondaryText?c.withSecondaryText:c.withoutSecondaryText,e.primaryText.className)),e.secondaryText&&(e.secondaryText.className=Ve(Vp.secondaryText,f,e.secondaryText.className)),e.dismissIcon&&(e.dismissIcon.className=Ve(Vp.dismissIcon,u.base,u[h],!e.disabled&&u[g],e.dismissIcon.className)),e};function tze(e){const{avatarSize:t,avatarShape:r}=e;return{avatar:A.useMemo(()=>({size:t,shape:r}),[r,t])}}const Iue=A.forwardRef((e,t)=>{const r=$je(e,t);return eze(r),cn("useTagStyles_unstable")(r),Pje(r,tze(r))});Iue.displayName="Tag";function rze(e){switch(e){case"info":return A.createElement(B3e,null);case"warning":return A.createElement(M3e,null);case"error":return A.createElement(F3e,null);case"success":return A.createElement(O3e,null);default:return null}}function nze(e=!1){const{targetDocument:t}=Fa(),r=A.useReducer(()=>({}),{})[1],n=A.useRef(!1),o=A.useRef(null),i=A.useRef(-1),s=A.useCallback(l=>{const u=l[0],c=u==null?void 0:u.borderBoxSize[0];if(!c||!u)return;const{inlineSize:f}=c,{target:d}=u;if(!$b(d))return;let h;if(n.current)i.current{var u;if(!e||!l||!(t!=null&&t.defaultView))return;(u=o.current)===null||u===void 0||u.disconnect();const c=t.defaultView,f=new c.ResizeObserver(s);o.current=f,f.observe(l,{box:"border-box"})},[t,s,e]);return A.useEffect(()=>()=>{var l;(l=o.current)===null||l===void 0||l.disconnect()},[]),{ref:a,reflowing:n.current}}const Cue=A.createContext(void 0),oze={className:"",nodeRef:A.createRef()};Cue.Provider;const ize=()=>{var e;return(e=A.useContext(Cue))!==null&&e!==void 0?e:oze},sze=(e,t)=>{const{layout:r="auto",intent:n="info",politeness:o,shape:i="rounded"}=e,s=o??n==="info"?"polite":"assertive",a=r==="auto",{ref:l,reflowing:u}=nze(a),c=a?u?"multiline":"singleline":r,{className:f,nodeRef:d}=ize(),h=A.useRef(null),g=A.useRef(null),{announce:v}=v3e(),y=Ks();return A.useEffect(()=>{var E,_;const S=(E=g.current)===null||E===void 0?void 0:E.textContent,b=(_=h.current)===null||_===void 0?void 0:_.textContent,k=[S,b].filter(Boolean).join(",");v(k,{polite:s==="polite",alert:s==="assertive"})},[g,h,v,s]),{components:{root:"div",icon:"div"},root:_r(_n("div",{ref:Ho(t,l,d),role:"group","aria-labelledby":y,...e}),{elementType:"div"}),icon:tn(e.icon,{renderByDefault:!0,elementType:"div",defaultProps:{children:rze(n)}}),layout:c,intent:n,transitionClassName:f,actionsRef:h,bodyRef:g,titleId:y,shape:i}},Nue=A.createContext(void 0),aze={titleId:"",layout:"singleline",actionsRef:A.createRef(),bodyRef:A.createRef()},lze=Nue.Provider,Rue=()=>{var e;return(e=A.useContext(Nue))!==null&&e!==void 0?e:aze},uze=(e,t)=>Je(lze,{value:t.messageBar,children:zn(e.root,{children:[e.icon&&Je(e.icon,{}),e.root.children]})}),aK={root:"fui-MessageBar",icon:"fui-MessageBar__icon"},cze=Cn("rashqx","ri1c0vc",['.rashqx{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-left:var(--spacingHorizontalM);border-top-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}','.ri1c0vc{white-space:nowrap;display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr;grid-template-areas:"icon body secondaryActions actions";padding-right:var(--spacingHorizontalM);border-top-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-color:var(--colorNeutralStroke1);border-left-color:var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStroke1);border-right-color:var(--colorNeutralStroke1);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);align-items:center;min-height:36px;box-sizing:border-box;background-color:var(--colorNeutralBackground3);}']),fze=Cn("r1bxgyar","rv8i6h8",[".r1bxgyar{grid-row-start:icon;grid-column-start:icon;grid-row-end:icon;grid-column-end:icon;font-size:var(--fontSizeBase500);margin-right:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}",".rv8i6h8{grid-row-start:icon;grid-column-start:icon;grid-row-end:icon;grid-column-end:icon;font-size:var(--fontSizeBase500);margin-left:var(--spacingHorizontalS);color:var(--colorNeutralForeground3);display:flex;align-items:center;}"]),dze=bt({rootMultiline:{Huce71:"f6juhto",Bt984gj:"f1s2louj",z8tnut:"f1ngh7ph",Budl1dq:"f17g0uqy",zoa1oz:"f1w7oly7"},secondaryActionsMultiline:{Brf1p80:"f1e8xxv9",B6of3ja:"f1gaxbfw",jrapky:"fqcjy3b",t21cq0:["fibjyge","f9yszdx"]},square:{Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]}},{d:[".f6juhto{white-space:normal;}",".f1s2louj{align-items:start;}",".f1ngh7ph{padding-top:var(--spacingVerticalMNudge);}",".f17g0uqy{grid-template-columns:auto 1fr auto;}",'.f1w7oly7{grid-template-areas:"icon body actions" "secondaryActions secondaryActions secondaryActions";}',".f1e8xxv9{justify-content:end;}",".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",".fqcjy3b{margin-bottom:var(--spacingVerticalS);}",".fibjyge{margin-right:0px;}",".f9yszdx{margin-left:0px;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}"]}),hze=bt({info:{},error:{sj55zd:"f1ca9wz"},warning:{sj55zd:"f14a4cve"},success:{sj55zd:"f36rra6"}},{d:[".f1ca9wz{color:var(--colorStatusDangerForeground1);}",".f14a4cve{color:var(--colorStatusWarningForeground3);}",".f36rra6{color:var(--colorStatusSuccessForeground1);}"]}),pze=bt({info:{},error:{De3pzq:"f1eon7jj",g2u3we:"f1f8dvr7",h3c5rm:["f1g1ijmo","f1nxacbt"],B9xav0g:"fo25q1j",zhjwy3:["f1nxacbt","f1g1ijmo"]},warning:{De3pzq:"f13ftzij",g2u3we:"frd1ypx",h3c5rm:["f1gyjrma","f18qd5xz"],B9xav0g:"fqyqtrt",zhjwy3:["f18qd5xz","f1gyjrma"]},success:{De3pzq:"f64thcm",g2u3we:"f1b4u7v",h3c5rm:["f1nyd2b1","f70v3om"],B9xav0g:"fk173vo",zhjwy3:["f70v3om","f1nyd2b1"]}},{d:[".f1eon7jj{background-color:var(--colorStatusDangerBackground1);}",".f1f8dvr7{border-top-color:var(--colorStatusDangerBorder1);}",".f1g1ijmo{border-right-color:var(--colorStatusDangerBorder1);}",".f1nxacbt{border-left-color:var(--colorStatusDangerBorder1);}",".fo25q1j{border-bottom-color:var(--colorStatusDangerBorder1);}",".f13ftzij{background-color:var(--colorStatusWarningBackground1);}",".frd1ypx{border-top-color:var(--colorStatusWarningBorder1);}",".f1gyjrma{border-right-color:var(--colorStatusWarningBorder1);}",".f18qd5xz{border-left-color:var(--colorStatusWarningBorder1);}",".fqyqtrt{border-bottom-color:var(--colorStatusWarningBorder1);}",".f64thcm{background-color:var(--colorStatusSuccessBackground1);}",".f1b4u7v{border-top-color:var(--colorStatusSuccessBorder1);}",".f1nyd2b1{border-right-color:var(--colorStatusSuccessBorder1);}",".f70v3om{border-left-color:var(--colorStatusSuccessBorder1);}",".fk173vo{border-bottom-color:var(--colorStatusSuccessBorder1);}"]}),gze=e=>{const t=cze(),r=fze(),n=hze(),o=pze(),i=dze();return e.root.className=Ve(aK.root,t,e.layout==="multiline"&&i.rootMultiline,e.shape==="square"&&i.square,o[e.intent],e.transitionClassName,e.root.className),e.icon&&(e.icon.className=Ve(aK.icon,r,n[e.intent],e.icon.className)),e};function vze(e){const{layout:t,actionsRef:r,bodyRef:n,titleId:o}=e;return{messageBar:A.useMemo(()=>({layout:t,actionsRef:r,bodyRef:n,titleId:o}),[t,r,n,o])}}const zg=A.forwardRef((e,t)=>{const r=sze(e,t);return gze(r),cn("useMessageBarStyles_unstable")(r),uze(r,vze(r))});zg.displayName="MessageBar";const mze=(e,t)=>{const{layout:r="singleline",actionsRef:n}=Rue();return{components:{root:"div",containerAction:"div"},containerAction:tn(e.containerAction,{renderByDefault:!1,elementType:"div"}),root:_r(_n("div",{ref:Ho(t,n),...e}),{elementType:"div"}),layout:r}},yze=(e,t)=>e.layout==="multiline"?zn(XG,{value:t.button,children:[e.containerAction&&Je(e.containerAction,{}),Je(e.root,{})]}):zn(XG,{value:t.button,children:[Je(e.root,{}),e.containerAction&&Je(e.containerAction,{})]}),lK={root:"fui-MessageBarActions",containerAction:"fui-MessageBarActions__containerAction"},bze=Cn("r1qydg9p","r1to27xx",[".r1qydg9p{grid-row-start:secondaryActions;grid-column-start:secondaryActions;grid-row-end:secondaryActions;grid-column-end:secondaryActions;display:flex;column-gap:var(--spacingHorizontalM);padding-right:var(--spacingHorizontalM);}",".r1to27xx{grid-row-start:secondaryActions;grid-column-start:secondaryActions;grid-row-end:secondaryActions;grid-column-end:secondaryActions;display:flex;column-gap:var(--spacingHorizontalM);padding-left:var(--spacingHorizontalM);}"]),_ze=Cn("r1y6i9ar","rc0rof2",[".r1y6i9ar{grid-row-start:actions;grid-column-start:actions;grid-row-end:actions;grid-column-end:actions;padding-right:var(--spacingHorizontalM);}",".rc0rof2{grid-row-start:actions;grid-column-start:actions;grid-row-end:actions;grid-column-end:actions;padding-left:var(--spacingHorizontalM);}"]),Eze=bt({root:{Brf1p80:"f1e8xxv9",B6of3ja:"f1gaxbfw",jrapky:"fqcjy3b",t21cq0:["fibjyge","f9yszdx"],z189sj:["f1p3vkop","f8cewkv"]}},{d:[".f1e8xxv9{justify-content:end;}",".f1gaxbfw{margin-top:var(--spacingVerticalMNudge);}",".fqcjy3b{margin-bottom:var(--spacingVerticalS);}",".fibjyge{margin-right:0px;}",".f9yszdx{margin-left:0px;}",".f1p3vkop{padding-right:var(--spacingVerticalM);}",".f8cewkv{padding-left:var(--spacingVerticalM);}"]}),Sze=e=>{const t=bze(),r=_ze(),n=Eze();return e.root.className=Ve(lK.root,t,e.layout==="multiline"&&n.root,e.root.className),e.containerAction&&(e.containerAction.className=Ve(lK.containerAction,r,e.containerAction.className)),e};function wze(){return{button:A.useMemo(()=>({size:"small"}),[])}}const Oue=A.forwardRef((e,t)=>{const r=mze(e,t);return Sze(r),cn("useMessageBarActionsStyles_unstable")(r),yze(r,wze())});Oue.displayName="MessageBarActions";const kze=(e,t)=>{const{bodyRef:r}=Rue();return{components:{root:"div"},root:_r(_n("div",{ref:Ho(t,r),...e}),{elementType:"div"})}},Aze=e=>Je(e.root,{}),xze={root:"fui-MessageBarBody"},Tze=Cn("rnv3mfe","r1ixc1x8",[".rnv3mfe{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-row-start:body;grid-column-start:body;grid-row-end:body;grid-column-end:body;padding-right:var(--spacingHorizontalM);}",".r1ixc1x8{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);grid-row-start:body;grid-column-start:body;grid-row-end:body;grid-column-end:body;padding-left:var(--spacingHorizontalM);}"]),Ize=e=>{const t=Tze();return e.root.className=Ve(xze.root,t,e.root.className),e},LB=A.forwardRef((e,t)=>{const r=kze(e,t);return Ize(r),cn("useMessageBarBodyStyles_unstable")(r),Aze(r)});LB.displayName="MessageBarBody";var u7={exports:{}},Due=function(t,r){return function(){for(var o=new Array(arguments.length),i=0;i"u"}function Nze(e){return e!==null&&!jB(e)&&e.constructor!==null&&!jB(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Rze(e){return up.call(e)==="[object ArrayBuffer]"}function Oze(e){return typeof FormData<"u"&&e instanceof FormData}function Dze(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Fze(e){return typeof e=="string"}function Bze(e){return typeof e=="number"}function Fue(e){return e!==null&&typeof e=="object"}function Ok(e){if(up.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Mze(e){return up.call(e)==="[object Date]"}function Lze(e){return up.call(e)==="[object File]"}function jze(e){return up.call(e)==="[object Blob]"}function Bue(e){return up.call(e)==="[object Function]"}function zze(e){return Fue(e)&&Bue(e.pipe)}function Hze(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function $ze(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Pze(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function f7(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),c7(e))for(var r=0,n=e.length;r"u"||(Up.isArray(l)?u=u+"[]":l=[l],Up.forEach(l,function(f){Up.isDate(f)?f=f.toISOString():Up.isObject(f)&&(f=JSON.stringify(f)),i.push(uK(u)+"="+uK(f))}))}),o=i.join("&")}if(o){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t},Gze=Ba;function t9(){this.handlers=[]}t9.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};t9.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};t9.prototype.forEach=function(t){Gze.forEach(this.handlers,function(n){n!==null&&t(n)})};var Kze=t9,Vze=Ba,Uze=function(t,r){Vze.forEach(t,function(o,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(t[r]=o,delete t[i])})},Lue=function(t,r,n,o,i){return t.config=r,n&&(t.code=n),t.request=o,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t},RC,cK;function jue(){if(cK)return RC;cK=1;var e=Lue;return RC=function(r,n,o,i,s){var a=new Error(r);return e(a,n,o,i,s)},RC}var OC,fK;function Yze(){if(fK)return OC;fK=1;var e=jue();return OC=function(r,n,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?r(o):n(e("Request failed with status code "+o.status,o.config,null,o.request,o))},OC}var DC,dK;function Xze(){if(dK)return DC;dK=1;var e=Ba;return DC=e.isStandardBrowserEnv()?function(){return{write:function(n,o,i,s,a,l){var u=[];u.push(n+"="+encodeURIComponent(o)),e.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),e.isString(s)&&u.push("path="+s),e.isString(a)&&u.push("domain="+a),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){var o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),DC}var FC,hK;function Qze(){return hK||(hK=1,FC=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),FC}var BC,pK;function Zze(){return pK||(pK=1,BC=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}),BC}var MC,gK;function Jze(){if(gK)return MC;gK=1;var e=Qze(),t=Zze();return MC=function(n,o){return n&&!e(o)?t(n,o):o},MC}var LC,vK;function eHe(){if(vK)return LC;vK=1;var e=Ba,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return LC=function(n){var o={},i,s,a;return n&&e.forEach(n.split(` +`),function(u){if(a=u.indexOf(":"),i=e.trim(u.substr(0,a)).toLowerCase(),s=e.trim(u.substr(a+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([s]):o[i]=o[i]?o[i]+", "+s:s}}),o},LC}var jC,mK;function tHe(){if(mK)return jC;mK=1;var e=Ba;return jC=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),o;function i(s){var a=s;return r&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=i(window.location.href),function(a){var l=e.isString(a)?i(a):a;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),jC}var zC,yK;function bK(){if(yK)return zC;yK=1;var e=Ba,t=Yze(),r=Xze(),n=Mue,o=Jze(),i=eHe(),s=tHe(),a=jue();return zC=function(u){return new Promise(function(f,d){var h=u.data,g=u.headers,v=u.responseType;e.isFormData(h)&&delete g["Content-Type"];var y=new XMLHttpRequest;if(u.auth){var E=u.auth.username||"",_=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";g.Authorization="Basic "+btoa(E+":"+_)}var S=o(u.baseURL,u.url);y.open(u.method.toUpperCase(),n(S,u.params,u.paramsSerializer),!0),y.timeout=u.timeout;function b(){if(y){var T="getAllResponseHeaders"in y?i(y.getAllResponseHeaders()):null,x=!v||v==="text"||v==="json"?y.responseText:y.response,I={data:x,status:y.status,statusText:y.statusText,headers:T,config:u,request:y};t(f,d,I),y=null}}if("onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(b)},y.onabort=function(){y&&(d(a("Request aborted",u,"ECONNABORTED",y)),y=null)},y.onerror=function(){d(a("Network Error",u,null,y)),y=null},y.ontimeout=function(){var x="timeout of "+u.timeout+"ms exceeded";u.timeoutErrorMessage&&(x=u.timeoutErrorMessage),d(a(x,u,u.transitional&&u.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},e.isStandardBrowserEnv()){var k=(u.withCredentials||s(S))&&u.xsrfCookieName?r.read(u.xsrfCookieName):void 0;k&&(g[u.xsrfHeaderName]=k)}"setRequestHeader"in y&&e.forEach(g,function(x,I){typeof h>"u"&&I.toLowerCase()==="content-type"?delete g[I]:y.setRequestHeader(I,x)}),e.isUndefined(u.withCredentials)||(y.withCredentials=!!u.withCredentials),v&&v!=="json"&&(y.responseType=u.responseType),typeof u.onDownloadProgress=="function"&&y.addEventListener("progress",u.onDownloadProgress),typeof u.onUploadProgress=="function"&&y.upload&&y.upload.addEventListener("progress",u.onUploadProgress),u.cancelToken&&u.cancelToken.promise.then(function(x){y&&(y.abort(),d(x),y=null)}),h||(h=null),y.send(h)})},zC}var ci=Ba,_K=Uze,rHe=Lue,nHe={"Content-Type":"application/x-www-form-urlencoded"};function EK(e,t){!ci.isUndefined(e)&&ci.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function oHe(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=bK()),e}function iHe(e,t,r){if(ci.isString(e))try{return(t||JSON.parse)(e),ci.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var r9={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:oHe(),transformRequest:[function(t,r){return _K(r,"Accept"),_K(r,"Content-Type"),ci.isFormData(t)||ci.isArrayBuffer(t)||ci.isBuffer(t)||ci.isStream(t)||ci.isFile(t)||ci.isBlob(t)?t:ci.isArrayBufferView(t)?t.buffer:ci.isURLSearchParams(t)?(EK(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):ci.isObject(t)||r&&r["Content-Type"]==="application/json"?(EK(r,"application/json"),iHe(t)):t}],transformResponse:[function(t){var r=this.transitional,n=r&&r.silentJSONParsing,o=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||o&&ci.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?rHe(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};r9.headers={common:{Accept:"application/json, text/plain, */*"}};ci.forEach(["delete","get","head"],function(t){r9.headers[t]={}});ci.forEach(["post","put","patch"],function(t){r9.headers[t]=ci.merge(nHe)});var d7=r9,sHe=Ba,aHe=d7,lHe=function(t,r,n){var o=this||aHe;return sHe.forEach(n,function(s){t=s.call(o,t,r)}),t},HC,SK;function zue(){return SK||(SK=1,HC=function(t){return!!(t&&t.__CANCEL__)}),HC}var wK=Ba,$C=lHe,uHe=zue(),cHe=d7;function PC(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var fHe=function(t){PC(t),t.headers=t.headers||{},t.data=$C.call(t,t.data,t.headers,t.transformRequest),t.headers=wK.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),wK.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var r=t.adapter||cHe.adapter;return r(t).then(function(o){return PC(t),o.data=$C.call(t,o.data,o.headers,t.transformResponse),o},function(o){return uHe(o)||(PC(t),o&&o.response&&(o.response.data=$C.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},wi=Ba,Hue=function(t,r){r=r||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function l(d,h){return wi.isPlainObject(d)&&wi.isPlainObject(h)?wi.merge(d,h):wi.isPlainObject(h)?wi.merge({},h):wi.isArray(h)?h.slice():h}function u(d){wi.isUndefined(r[d])?wi.isUndefined(t[d])||(n[d]=l(void 0,t[d])):n[d]=l(t[d],r[d])}wi.forEach(o,function(h){wi.isUndefined(r[h])||(n[h]=l(void 0,r[h]))}),wi.forEach(i,u),wi.forEach(s,function(h){wi.isUndefined(r[h])?wi.isUndefined(t[h])||(n[h]=l(void 0,t[h])):n[h]=l(void 0,r[h])}),wi.forEach(a,function(h){h in r?n[h]=l(t[h],r[h]):h in t&&(n[h]=l(void 0,t[h]))});var c=o.concat(i).concat(s).concat(a),f=Object.keys(t).concat(Object.keys(r)).filter(function(h){return c.indexOf(h)===-1});return wi.forEach(f,u),n};const dHe="axios",hHe="0.21.4",pHe="Promise based HTTP client for the browser and node.js",gHe="index.js",vHe={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},mHe={type:"git",url:"https://github.com/axios/axios.git"},yHe=["xhr","http","ajax","promise","node"],bHe="Matt Zabriskie",_He="MIT",EHe={url:"https://github.com/axios/axios/issues"},SHe="https://axios-http.com",wHe={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},kHe={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},AHe="dist/axios.min.js",xHe="dist/axios.min.js",THe="./index.d.ts",IHe={"follow-redirects":"^1.14.0"},CHe=[{path:"./dist/axios.min.js",threshold:"5kB"}],NHe={name:dHe,version:hHe,description:pHe,main:gHe,scripts:vHe,repository:mHe,keywords:yHe,author:bHe,license:_He,bugs:EHe,homepage:SHe,devDependencies:wHe,browser:kHe,jsdelivr:AHe,unpkg:xHe,typings:THe,dependencies:IHe,bundlesize:CHe};var $ue=NHe,h7={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){h7[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var kK={},RHe=$ue.version.split(".");function Pue(e,t){for(var r=t?t.split("."):RHe,n=e.split("."),o=0;o<3;o++){if(r[o]>n[o])return!0;if(r[o]0;){var i=n[o],s=t[i];if(s){var a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new TypeError("option "+i+" must be "+l);continue}if(r!==!0)throw Error("Unknown option "+i)}}var DHe={isOlderVersion:Pue,assertOptions:OHe,validators:h7},que=Ba,FHe=Mue,AK=Kze,xK=fHe,n9=Hue,Wue=DHe,Yp=Wue.validators;function rE(e){this.defaults=e,this.interceptors={request:new AK,response:new AK}}rE.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=n9(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&Wue.assertOptions(r,{silentJSONParsing:Yp.transitional(Yp.boolean,"1.0.0"),forcedJSONParsing:Yp.transitional(Yp.boolean,"1.0.0"),clarifyTimeoutError:Yp.transitional(Yp.boolean,"1.0.0")},!1);var n=[],o=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(t)===!1||(o=o&&d.synchronous,n.unshift(d.fulfilled,d.rejected))});var i=[];this.interceptors.response.forEach(function(d){i.push(d.fulfilled,d.rejected)});var s;if(!o){var a=[xK,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(i),s=Promise.resolve(t);a.length;)s=s.then(a.shift(),a.shift());return s}for(var l=t;n.length;){var u=n.shift(),c=n.shift();try{l=u(l)}catch(f){c(f);break}}try{s=xK(l)}catch(f){return Promise.reject(f)}for(;i.length;)s=s.then(i.shift(),i.shift());return s};rE.prototype.getUri=function(t){return t=n9(this.defaults,t),FHe(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};que.forEach(["delete","get","head","options"],function(t){rE.prototype[t]=function(r,n){return this.request(n9(n||{},{method:t,url:r,data:(n||{}).data}))}});que.forEach(["post","put","patch"],function(t){rE.prototype[t]=function(r,n,o){return this.request(n9(o||{},{method:t,url:r,data:n}))}});var BHe=rE,qC,TK;function Gue(){if(TK)return qC;TK=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,qC=e,qC}var WC,IK;function MHe(){if(IK)return WC;IK=1;var e=Gue();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(s){n=s});var o=this;r(function(s){o.reason||(o.reason=new e(s),n(o.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.source=function(){var n,o=new t(function(s){n=s});return{token:o,cancel:n}},WC=t,WC}var GC,CK;function LHe(){return CK||(CK=1,GC=function(t){return function(n){return t.apply(null,n)}}),GC}var KC,NK;function jHe(){return NK||(NK=1,KC=function(t){return typeof t=="object"&&t.isAxiosError===!0}),KC}var RK=Ba,zHe=Due,Dk=BHe,HHe=Hue,$He=d7;function Kue(e){var t=new Dk(e),r=zHe(Dk.prototype.request,t);return RK.extend(r,Dk.prototype,t),RK.extend(r,t),r}var du=Kue($He);du.Axios=Dk;du.create=function(t){return Kue(HHe(du.defaults,t))};du.Cancel=Gue();du.CancelToken=MHe();du.isCancel=zue();du.all=function(t){return Promise.all(t)};du.spread=LHe();du.isAxiosError=jHe();u7.exports=du;u7.exports.default=du;var PHe=u7.exports,qHe=PHe;const WHe=zf(qHe);var HB={exports:{}},OK=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(OK){var DK=new Uint8Array(16);HB.exports=function(){return OK(DK),DK}}else{var FK=new Array(16);HB.exports=function(){for(var t=0,r;t<16;t++)t&3||(r=Math.random()*4294967296),FK[t]=r>>>((t&3)<<3)&255;return FK}}var Vue=HB.exports,Uue=[];for(var gw=0;gw<256;++gw)Uue[gw]=(gw+256).toString(16).substr(1);function GHe(e,t){var r=t||0,n=Uue;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}var Yue=GHe,KHe=Vue,VHe=Yue,BK,VC,UC=0,YC=0;function UHe(e,t,r){var n=t&&r||0,o=t||[];e=e||{};var i=e.node||BK,s=e.clockseq!==void 0?e.clockseq:VC;if(i==null||s==null){var a=KHe();i==null&&(i=BK=[a[0]|1,a[1],a[2],a[3],a[4],a[5]]),s==null&&(s=VC=(a[6]<<8|a[7])&16383)}var l=e.msecs!==void 0?e.msecs:new Date().getTime(),u=e.nsecs!==void 0?e.nsecs:YC+1,c=l-UC+(u-YC)/1e4;if(c<0&&e.clockseq===void 0&&(s=s+1&16383),(c<0||l>UC)&&e.nsecs===void 0&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");UC=l,YC=u,VC=s,l+=122192928e5;var f=((l&268435455)*1e4+u)%4294967296;o[n++]=f>>>24&255,o[n++]=f>>>16&255,o[n++]=f>>>8&255,o[n++]=f&255;var d=l/4294967296*1e4&268435455;o[n++]=d>>>8&255,o[n++]=d&255,o[n++]=d>>>24&15|16,o[n++]=d>>>16&255,o[n++]=s>>>8|128,o[n++]=s&255;for(var h=0;h<6;++h)o[n+h]=i[h];return t||VHe(o)}var YHe=UHe,XHe=Vue,QHe=Yue;function ZHe(e,t,r){var n=t&&r||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||XHe)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||QHe(o)}var JHe=ZHe,e$e=YHe,Xue=JHe,p7=Xue;p7.v1=e$e;p7.v4=Xue;var Ni=p7;const Ki="variant_0",Xp="chat_input",ah="chat_history",Mm="chat_output",MK="role",LK="content";var Que=(e=>(e.OpenCodeFileInNode="OpenCodeFileInNode",e.ShowWarningIconOnNode="ShowWarningIconOnNode",e))(Que||{}),Rn=(e=>(e.OpenAI="OpenAI",e.AzureOpenAI="AzureOpenAI",e.Serp="Serp",e.Bing="Bing",e.AzureContentModerator="AzureContentModerator",e.Custom="Custom",e.AzureContentSafety="AzureContentSafety",e.CognitiveSearch="CognitiveSearch",e.SubstrateLLM="SubstrateLLM",e.Pinecone="Pinecone",e.Qdrant="Qdrant",e.Weaviate="Weaviate",e.FormRecognizer="FormRecognizer",e.Serverless="Serverless",e))(Rn||{}),Ad=(e=>(e.Default="Default",e.Evaluation="Evaluation",e.Chat="Chat",e.Rag="Rag",e))(Ad||{}),Zue=(e=>(e.default="default",e.uionly_hidden="uionly_hidden",e))(Zue||{}),Jue=(e=>(e.Horizontal="Horizontal",e.Vertical="Vertical",e))(Jue||{}),Ri=(e=>(e.llm="llm",e.python="python",e.action="action",e.prompt="prompt",e.custom_llm="custom_llm",e.csharp="csharp",e.typescript="typescript",e))(Ri||{}),Te=(e=>(e.int="int",e.double="double",e.bool="bool",e.string="string",e.secret="secret",e.prompt_template="prompt_template",e.object="object",e.list="list",e.BingConnection="BingConnection",e.OpenAIConnection="OpenAIConnection",e.AzureOpenAIConnection="AzureOpenAIConnection",e.AzureContentModeratorConnection="AzureContentModeratorConnection",e.CustomConnection="CustomConnection",e.AzureContentSafetyConnection="AzureContentSafetyConnection",e.SerpConnection="SerpConnection",e.CognitiveSearchConnection="CognitiveSearchConnection",e.SubstrateLLMConnection="SubstrateLLMConnection",e.PineconeConnection="PineconeConnection",e.QdrantConnection="QdrantConnection",e.WeaviateConnection="WeaviateConnection",e.function_list="function_list",e.function_str="function_str",e.FormRecognizerConnection="FormRecognizerConnection",e.file_path="file_path",e.image="image",e.assistant_definition="assistant_definition",e.ServerlessConnection="ServerlessConnection",e))(Te||{});const t$e="flow",r$e="inputs",jK="inputs",n$e="outputs",zK=e=>[t$e,r$e].includes(e),ece=["#637CEF","#E61C99","#00A5AF","#9470BD","#689920","#3487C7","#CA5010","#009B51","#B27C00","#B146C2","#4F6BED","#EE5FB7","#008B94","#D77440","#BA58C9","#3A96DD","#E3008C","#57811B","#C36BD1","#D06228","#6E0811","#C50F1F","#F7630C","#107C10","#094509"];var ki=(e=>(e.CircularDependency="CircularDependency",e.InputDependencyNotFound="InputDependencyNotFound",e.InputGenerateError="InputGenerateError",e.InputSelfReference="InputSelfReference",e.InputEmpty="InputEmpty",e.InputInvalidType="InputInvalidType",e.NodeConfigInvalid="NodeConfigInvalid",e.UnparsedCode="UnparsedCode",e.EmptyCode="EmptyCode",e.MissingTool="MissingTool",e.AutoParseInputError="AutoParseInputError",e.RuntimeNameEmpty="RuntimeNameEmpty",e.RuntimeStatusInvalid="RuntimeStatusInvalid",e))(ki||{}),tce=(e=>(e.Standard="Standard",e.Interactive="Interactive",e.InteractiveMultiModal="InteractiveMultiModal",e))(tce||{}),gn=(e=>(e.CONNECTION_ADD_REQUEST="connection.add.request",e.CONNECTION_GET_DEPLOYMENTS_REQUEST="connection.get.deployments.request",e.CONNECTION_GET_DEPLOYMENTS_RESPONSE="connection.get.deployments.response",e.CONNECTION_LIST_REQUEST="connection.list.request",e.CONNECTION_LIST_RESPONSE="connection.list.response",e.CONNECTION_SPEC_LIST_REQUEST="connection.spec.list.request",e.CONNECTION_SPEC_LIST_RESPONSE="connection.spec.list.response",e.DYNAMIC_LIST_REQUEST="dynamic.list.request",e.DYNAMIC_LIST_RESPONSE="dynamic.list.response",e.GENERATED_BY_REQUEST="generated.by.request",e.GENERATED_BY_RESPONSE="generated.by.response",e.SAMPLE_TREE_REFRESH="sample.tree.refresh",e.RECENT_VISITED_FLOW_TREE_REFRESH="recent.visited.flow.tree.refresh",e.RUNTIME_NEED_UPGRADE_REQUEST="runtime.needUpgrade.request",e.RUNTIME_NEED_UPGRADE_RESPONSE="runtime.needUpgrade.response",e.FLOW_DAG_OPEN="flow.dag.open",e.DAG_STEP_SELECTED="dag.step.selected",e.DAG_STEP_CLEAR_SELECTION="dag.step.clear.selection",e.EDIT_PMT_FILE="edit.pmt.file",e.INIT_PMT_FILE="init.pmt.file",e.INIT_PMT_FILE_FINISHED="init.pmt.file.finished",e.FIRST_RENDER_FINISHED="first.render.finished",e.UPDATE_PMT_FILE="update.pmt.file",e.PMT_FILE_READY="pmt.file.ready",e.EDIT_FLOW_LAYOUT="edit.flow.layout",e.WORKSPACE_READY="workspace.ready",e.PMT_FILE_ADD_NODE="pmt.file.addNode",e.PMT_FILE_REMOVE_NODE="pmt.file.removeNode",e.PMT_FILE_DUPLICATE_TOOL="pmt.file.duplicateTool",e.READ_PMT_FILE_REQUEST="read.pmt.file.request",e.READ_PMT_FILE_RESPONSE="read.pmt.file.response",e.READ_PMT_SUBMIT_DATA_REQUEST="read.pmt.submit.data.request",e.READ_PMT_SUBMIT_DATA_RESPONSE="read.pmt.submit.data.response",e.PATCH_EDIT_PMT_FLOW_REQUEST="patch.edit.pmt.flow.request",e.PATCH_EDIT_PMT_FLOW_RESPONSE="patch.edit.pmt.flow.response",e.PROMPT_TOOL_SETTING_FETCH="promptToolSetting.fetch",e.PROMPT_TOOL_SETTING_LOAD="promptToolSetting.load",e.FLATTEN_OPEN_FLOW_INPUTS="flatten.openInputsFile",e.FLATTEN_VIEW_CODE_DIFF="flatten.viewCodeDiff",e.FLATTEN_STEP_LOCATE="flatten.step.locate",e.FLATTEN_ADD_NODE="flatten.addNode",e.OPEN_RUN_HISTORY_VIEW="open.runHistory.view",e.TRIGGER_OPEN_RUN_HISTORY_VIEW="trigger.open.runHistory.view",e.STATUS_LOAD="status.load",e.BULK_TEST_STATUS_LOAD="bulkTest.status.load",e.BULK_TEST_INDEX_SELECTED="bulkTest.index.selected",e.REQUEST_STEP_RUN_SUBMIT="request.step.run.submit",e.REQUEST_STEP_RUN_LOAD="request.step.load",e.BULK_TEST_OPEN_VIEW="bulkTest.open.view",e.BULK_TEST_SELECT_DATASETS="bulkTest.select.datasets",e.BULK_TEST_SELECT_DATASETS_READY="bulkTest.select.datasets.ready",e.TRIGGER_EXPORT="trigger.export",e.DAG_DOUBLE_CLICK_NODE="dag.double.click.node",e.OPEN_CHAT_VIEW="open.chat.view",e.OPEN_CHAT_VIEW_IN_BROWSER="open.chat.view.in.browser",e.DEPLOY_FLOW="deploy.flow",e.SAVE_TOOL_CODE="save.tool.code",e.UPDATE_FlOW_INPUT="update.flow.input",e.TRIGGER_RENAME_NODE="trigger.rename.node",e.COMMIT_RENAME_NODE="commit.rename.node",e.CHANGE_LLM_NODE_API="change.llm.node.api",e.TRIGGER_CUSTOM_SELECT="trigger.custom.select",e.COMMIT_CUSTOM_SELECT="commit.custom.select",e.OPEN_LOG="open.log",e.SHOW_MESSAGE_IN_OUTPUT_PANEL="show.message.in.output.panel",e.SUBMIT_FLOW_RUN="submit.flow.run",e.SUBMIT_FLOW_RUN_FINISHED="submit.flow.run.finished",e.SUBMIT_FLOW_EVAL="submit.flow.eval",e.SUBMIT_FLOW_EVAL_RESPONSE="submit.flow.eval.response",e.SUBMIT_BULK_TEST_RUN="submit.bulk.test.run",e.OPEN_FLOW_RUN_LOG="open.flow.run.log",e.STATUSBAR_OPEN_LOG="statusbar.open.log",e.OPEN_CODE_FILE="open.code.file",e.OPEN_LINK="open.link",e.READ_FLOW_UIHINT_REQUEST="read.flow.uihint.request",e.READ_FLOW_UIHINT_RESPONSE="read.flow.uihint.response",e.READ_FLOW_RUN_RESULT_REQUEST="read.flow.run.result.request",e.READ_FLOW_RUN_RESULT_RESPONSE="read.flow.run.result.response",e.WRITE_FLOW_UIHINT="write.flow.uihint",e.SELECT_FILE_REQUEST="select.file.request",e.SELECT_FILE_RESPONSE="select.file.response",e.FILE_RELATIVE_PATH_REQUEST="file.relative.path.request",e.FILE_RELATIVE_PATH_RESPONSE="file.relative.path.response",e.EXTENSION_CONFIGURATION_REQUEST="extension.configuration.request",e.EXTENSION_CONFIGURATION_RESPONSE="extension.configuration.response",e.TOOL_CODE_CHANGED="tool.code.changed",e.RUN_RESULT_CHANGED="run.result.changed",e.GENERATE_TOOL_META="generate.tool.meta",e.GENERATE_TOOL_META_ADVANCED="generate.tool.meta.advanced",e.GENERATE_TOOLS_FROM_FLOW_DAG_YAML="generate.tools.from.flow.dag.yaml",e.BULK_TEST_SELECT_INPUT_FILE="bulkTest.select.input.file",e.BULK_TEST_SELECT_INPUT_FILE_READY="bulkTest.select.input.file.ready",e.SUBMIT_DEBUG_SINGLE_NODE_RUN="submit.debug.single.node.run",e.DAG_ZOOM_IN="dag.zoom.in",e.DAG_ZOOM_OUT="dag.zoom.out",e.DAG_ZOOM_TO_FIT="dag.zoom.to.fit",e.DAG_ZOOM_TO_ACTUAL_SIZE="dag.zoom.to.actual.size",e.DAG_AUTO_LAYOUT="dag.auto.layout",e.TOGGLE_SIMPLE_MODE="toggle.simple.mode",e.TOGGLE_ORIENTATION="toggle.orientation",e.PRINT_LOG="print.log",e.EDIT_FUNCTIONS_REQUEST="edit.functions.request",e.EDIT_FUNCTIONS_RESPONSE="edit.functions.response",e.CREATE_FUNCTIONS_FROM_TOOLS_REQUEST="create.functions.from.tools.request",e.TOOLS_JSON_CHANGED="tools.json.changed",e.TOOL_LIST_UPDATED="tool.list.updated",e.REFRESH_TOOL_LIST="refresh.tool.list",e.REQUEST_CONDA_ENV_NAME="request.conda.env.name",e.RES_CONDA_ENV_NAME="res.conda.env.name",e.RUN_COMMAND_IN_TERMINAL="run.command.in.terminal",e.COPY_COMMAND_TO_TERMINAL="copy.command.to.terminal",e.REQ_PFSDK_VERSION="req.pfsdk.version",e.RES_PFSDK_VERSION="res.pfsdk.version",e.REQ_PFCORE_VERSION="req.pfcore.version",e.RES_PFCORE_VERSION="res.pfcore.version",e.REQ_PFTOOLS_VERSION="req.pftools.version",e.RES_PFTOOLS_VERSION="res.pftools.version",e.REQ_PFDEVKIT_VERSION="req.pfdevkit.version",e.RES_PFDEVKIT_VERSION="res.pfdevkit.version",e.REQ_PFTRACING_VERSION="req.pftracing.version",e.RES_PFTRACING_VERSION="res.pftracing.version",e.REQ_PFAZURE_VERSION="req.pfazure.version",e.RES_PFAZURE_VERSION="res.pfazure.version",e.REQ_PFEVALS_VERSION="req.pfevals.version",e.RES_PFEVALS_VERSION="res.pfevals.version",e.REQ_PFRECORDING_VERSION="req.pfrecording.version",e.RES_PFRECORDING_VERSION="res.pfrecording.version",e.REQ_PFUTIL_PATH="req.pfutil.path",e.RES_PFUTIL_PATH="res.pfutil.path",e.REQ_PYTHON_INTERPRETER="req.python.interpreter",e.RES_PYTHON_INTERPRETER="res.python.interpreter",e.SELECT_PYTHON_INTERPRETER="select.python.interpreter",e.REQ_PACKAGE_INSTALLED="req.package.installed",e.RES_PACKAGE_INSTALLED="res.package.installed",e.EXECUTE_VSC_COMMAND="execute.vsc.command",e.DEBUG_FLOW="debug.flow",e.REQ_API_CALLS="req.api.calls",e.RES_API_CALLS="res.api.calls",e.ERROR_BOUNDARY_CAUGHT="error.boundary.caught",e.EVALUATE_BATCH_RUNS="evaluate.batch.runs",e.METRIC_WEBVIEW_LCP="metric.webview.lcp",e.OPEN_FLOW_DIR="open.flow.dir",e.GET_FILE_WEBVIEW_URI="get.file.webview.uri",e.SEND_FILE_WEBVIEW_URI="send.file.webview.uri",e.CURRENT_FLOW_REQUEST="current.flow.request",e.CURRENT_FLOW_RESPONSE="current.flow.response",e.CURRENT_FLOW_CONFIRM="current.flow.confirm",e.READ_FLOW_UX_INPUTS_REQUEST="read.flow.ux.inputs.request",e.READ_FLOW_UX_INPUTS_RESPONSE="read.flow.ux.inputs.response",e.SET_FLOW_UX_INPUTS="set.flow.ux.inputs",e.READ_VSCODE_THEME_REQUEST="read.vscode.theme.request",e.READ_VSCODE_THEME_RESPONSE="read.vscode.theme.response",e.READ_CHAT_CONSOLE_RESPONSE="read.chat.console.response",e))(gn||{}),Yb=(e=>(e.System="system",e.ErrorHandler="error",e.Chatbot="chatbot",e.User="user",e))(Yb||{}),g7=(e=>(e.Text="text",e.Typing="typing",e.SessionSplit="session-split",e))(g7||{}),At=(e=>(e.Dag="Dag flow",e.Prompty="Prompty",e.Flex="Flex flow",e))(At||{}),$B=(e=>(e.User="user",e.Assistant="assistant",e))($B||{});const o$e=e=>e==="true"||e==="True"||e===!0,i$e=e=>Array.isArray(e)?Te.list:typeof e=="boolean"?Te.bool:typeof e=="string"?Te.string:typeof e=="number"?Number.isInteger(e)?Te.int:Te.double:Te.object;function s$e(e){if(e==null)return;switch(i$e(e)){case Te.string:return e;case Te.int:case Te.double:return e.toString();case Te.bool:return e?"True":"False";case Te.object:case Te.list:return JSON.stringify(e);default:return String(e)}}var VA={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */KA.exports;(function(e,t){(function(){var r,n="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,d=2,h=4,g=1,v=2,y=1,E=2,_=4,S=8,b=16,k=32,T=64,x=128,I=256,C=512,R=30,D="...",L=800,M=16,W=1,z=2,F=3,P=1/0,K=9007199254740991,V=17976931348623157e292,Z=NaN,J=4294967295,ee=J-1,de=J>>>1,ge=[["ary",x],["bind",y],["bindKey",E],["curry",S],["curryRight",b],["flip",C],["partial",k],["partialRight",T],["rearg",I]],Se="[object Arguments]",Re="[object Array]",ve="[object AsyncFunction]",Ee="[object Boolean]",me="[object Date]",we="[object DOMException]",Ge="[object Error]",nt="[object Function]",Qe="[object GeneratorFunction]",Ze="[object Map]",Fe="[object Number]",ot="[object Null]",Me="[object Object]",_t="[object Promise]",qt="[object Proxy]",Nt="[object RegExp]",ut="[object Set]",xe="[object String]",Ve="[object Symbol]",Xt="[object Undefined]",he="[object WeakMap]",le="[object WeakSet]",se="[object ArrayBuffer]",pe="[object DataView]",Oe="[object Float32Array]",je="[object Float64Array]",ke="[object Int8Array]",Ie="[object Int16Array]",$e="[object Int32Array]",lt="[object Uint8Array]",mt="[object Uint8ClampedArray]",Rt="[object Uint16Array]",dr="[object Uint32Array]",Cr=/\b__p \+= '';/g,Lt=/\b(__p \+=) '' \+/g,Wr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dn=/&(?:amp|lt|gt|quot|#39);/g,tr=/[&<>"']/g,Ot=RegExp(dn.source),Gr=RegExp(tr.source),Nr=/<%-([\s\S]+?)%>/g,Kr=/<%([\s\S]+?)%>/g,gr=/<%=([\s\S]+?)%>/g,Bt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dt=/^\w*$/,Ue=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vr=/[\\^$.*+?()[\]{}|]/g,No=RegExp(Vr.source),Hr=/^\s+/,Fl=/\s/,ys=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mo=/\{\n\/\* \[wrapped with (.+)\] \*/,ja=/,? & /,He=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Y=/[()=,{}\[\]\/\s]/,X=/\\(\\)?/g,$=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,q=/\w*$/,B=/^[-+]0x[0-9a-f]+$/i,Q=/^0b[01]+$/i,ie=/^\[object .+?Constructor\]$/,ae=/^0o[0-7]+$/i,ne=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Pe=/($^)/,xt=/['\n\r\u2028\u2029\\]/g,Dt="\\ud800-\\udfff",wt="\\u0300-\\u036f",Et="\\ufe20-\\ufe2f",Gt="\\u20d0-\\u20ff",$r=wt+Et+Gt,Ft="\\u2700-\\u27bf",En="a-z\\xdf-\\xf6\\xf8-\\xff",yo="\\xac\\xb1\\xd7\\xf7",$i="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Bl="\\u2000-\\u206f",Us=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oc="A-Z\\xc0-\\xd6\\xd8-\\xde",Ml="\\ufe0e\\ufe0f",so=yo+$i+Bl+Us,za="['’]",Dc="["+Dt+"]",Ll="["+so+"]",Fc="["+$r+"]",jl="\\d+",Vf="["+Ft+"]",Iu="["+En+"]",Bc="[^"+Dt+so+jl+Ft+En+Oc+"]",Mc="\\ud83c[\\udffb-\\udfff]",Cu="(?:"+Fc+"|"+Mc+")",Nu="[^"+Dt+"]",wp="(?:\\ud83c[\\udde6-\\uddff]){2}",Zv="[\\ud800-\\udbff][\\udc00-\\udfff]",Uf="["+Oc+"]",WE="\\u200d",Jv="(?:"+Iu+"|"+Bc+")",M1="(?:"+Uf+"|"+Bc+")",kp="(?:"+za+"(?:d|ll|m|re|s|t|ve))?",Ap="(?:"+za+"(?:D|LL|M|RE|S|T|VE))?",L1=Cu+"?",Yf="["+Ml+"]?",Q5="(?:"+WE+"(?:"+[Nu,wp,Zv].join("|")+")"+Yf+L1+")*",GE="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Z5="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",em=Yf+L1+Q5,J5="(?:"+[Vf,wp,Zv].join("|")+")"+em,eI="(?:"+[Nu+Fc+"?",Fc,wp,Zv,Dc].join("|")+")",j1=RegExp(za,"g"),tI=RegExp(Fc,"g"),Xf=RegExp(Mc+"(?="+Mc+")|"+eI+em,"g"),KE=RegExp([Uf+"?"+Iu+"+"+kp+"(?="+[Ll,Uf,"$"].join("|")+")",M1+"+"+Ap+"(?="+[Ll,Uf+Jv,"$"].join("|")+")",Uf+"?"+Jv+"+"+kp,Uf+"+"+Ap,Z5,GE,jl,J5].join("|"),"g"),Ke=RegExp("["+WE+Dt+$r+Ml+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jt=-1,St={};St[Oe]=St[je]=St[ke]=St[Ie]=St[$e]=St[lt]=St[mt]=St[Rt]=St[dr]=!0,St[Se]=St[Re]=St[se]=St[Ee]=St[pe]=St[me]=St[Ge]=St[nt]=St[Ze]=St[Fe]=St[Me]=St[Nt]=St[ut]=St[xe]=St[he]=!1;var Tt={};Tt[Se]=Tt[Re]=Tt[se]=Tt[pe]=Tt[Ee]=Tt[me]=Tt[Oe]=Tt[je]=Tt[ke]=Tt[Ie]=Tt[$e]=Tt[Ze]=Tt[Fe]=Tt[Me]=Tt[Nt]=Tt[ut]=Tt[xe]=Tt[Ve]=Tt[lt]=Tt[mt]=Tt[Rt]=Tt[dr]=!0,Tt[Ge]=Tt[nt]=Tt[he]=!1;var Jr={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},nn={"&":"&","<":"<",">":">",'"':""","'":"'"},Ro={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ha={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Lc=parseFloat,rI=parseInt,xp=typeof Ns=="object"&&Ns&&Ns.Object===Object&&Ns,tm=typeof self=="object"&&self&&self.Object===Object&&self,Oo=xp||tm||Function("return this")(),nI=t&&!t.nodeType&&t,z1=nI&&!0&&e&&!e.nodeType&&e,AH=z1&&z1.exports===nI,oI=AH&&xp.process,$a=function(){try{var ue=z1&&z1.require&&z1.require("util").types;return ue||oI&&oI.binding&&oI.binding("util")}catch{}}(),xH=$a&&$a.isArrayBuffer,TH=$a&&$a.isDate,IH=$a&&$a.isMap,CH=$a&&$a.isRegExp,NH=$a&&$a.isSet,RH=$a&&$a.isTypedArray;function Ys(ue,Ae,be){switch(be.length){case 0:return ue.call(Ae);case 1:return ue.call(Ae,be[0]);case 2:return ue.call(Ae,be[0],be[1]);case 3:return ue.call(Ae,be[0],be[1],be[2])}return ue.apply(Ae,be)}function oye(ue,Ae,be,ht){for(var Ut=-1,Or=ue==null?0:ue.length;++Ut-1}function iI(ue,Ae,be){for(var ht=-1,Ut=ue==null?0:ue.length;++ht-1;);return be}function zH(ue,Ae){for(var be=ue.length;be--&&Tp(Ae,ue[be],0)>-1;);return be}function hye(ue,Ae){for(var be=ue.length,ht=0;be--;)ue[be]===Ae&&++ht;return ht}var pye=uI(Jr),gye=uI(nn);function vye(ue){return"\\"+Ha[ue]}function mye(ue,Ae){return ue==null?r:ue[Ae]}function Ip(ue){return Ke.test(ue)}function yye(ue){return tt.test(ue)}function bye(ue){for(var Ae,be=[];!(Ae=ue.next()).done;)be.push(Ae.value);return be}function hI(ue){var Ae=-1,be=Array(ue.size);return ue.forEach(function(ht,Ut){be[++Ae]=[Ut,ht]}),be}function HH(ue,Ae){return function(be){return ue(Ae(be))}}function Jf(ue,Ae){for(var be=-1,ht=ue.length,Ut=0,Or=[];++be-1}function sbe(p,m){var w=this.__data__,O=cS(w,p);return O<0?(++this.size,w.push([p,m])):w[O][1]=m,this}jc.prototype.clear=rbe,jc.prototype.delete=nbe,jc.prototype.get=obe,jc.prototype.has=ibe,jc.prototype.set=sbe;function zc(p){var m=-1,w=p==null?0:p.length;for(this.clear();++m=m?p:m)),p}function Ga(p,m,w,O,j,U){var te,oe=m&f,fe=m&d,Ce=m&h;if(w&&(te=j?w(p,O,j,U):w(p)),te!==r)return te;if(!Pn(p))return p;var Ne=Qt(p);if(Ne){if(te=c_e(p),!oe)return bs(p,te)}else{var Le=_i(p),it=Le==nt||Le==Qe;if(id(p))return S$(p,oe);if(Le==Me||Le==Se||it&&!j){if(te=fe||it?{}:$$(p),!oe)return fe?Jbe(p,Sbe(te,p)):Zbe(p,ZH(te,p))}else{if(!Tt[Le])return j?p:{};te=f_e(p,Le,oe)}}U||(U=new Hl);var yt=U.get(p);if(yt)return yt;U.set(p,te),vP(p)?p.forEach(function(Ht){te.add(Ga(Ht,m,w,Ht,p,U))}):pP(p)&&p.forEach(function(Ht,hr){te.set(hr,Ga(Ht,m,w,hr,p,U))});var zt=Ce?fe?zI:jI:fe?Es:Po,sr=Ne?r:zt(p);return Pa(sr||p,function(Ht,hr){sr&&(hr=Ht,Ht=p[hr]),lm(te,hr,Ga(Ht,m,w,hr,p,U))}),te}function wbe(p){var m=Po(p);return function(w){return JH(w,p,m)}}function JH(p,m,w){var O=w.length;if(p==null)return!O;for(p=on(p);O--;){var j=w[O],U=m[j],te=p[j];if(te===r&&!(j in p)||!U(te))return!1}return!0}function e$(p,m,w){if(typeof p!="function")throw new qa(s);return gm(function(){p.apply(r,w)},m)}function um(p,m,w,O){var j=-1,U=VE,te=!0,oe=p.length,fe=[],Ce=m.length;if(!oe)return fe;w&&(m=Nn(m,Xs(w))),O?(U=iI,te=!1):m.length>=o&&(U=rm,te=!1,m=new P1(m));e:for(;++jj?0:j+w),O=O===r||O>j?j:rr(O),O<0&&(O+=j),O=w>O?0:yP(O);w0&&w(oe)?m>1?ai(oe,m-1,w,O,j):Zf(j,oe):O||(j[j.length]=oe)}return j}var _I=I$(),n$=I$(!0);function Ru(p,m){return p&&_I(p,m,Po)}function EI(p,m){return p&&n$(p,m,Po)}function dS(p,m){return Qf(m,function(w){return Wc(p[w])})}function W1(p,m){m=nd(m,p);for(var w=0,O=m.length;p!=null&&wm}function xbe(p,m){return p!=null&&Ur.call(p,m)}function Tbe(p,m){return p!=null&&m in on(p)}function Ibe(p,m,w){return p>=bi(m,w)&&p=120&&Ne.length>=120)?new P1(te&&Ne):r}Ne=p[0];var Le=-1,it=oe[0];e:for(;++Le-1;)oe!==p&&nS.call(oe,fe,1),nS.call(p,fe,1);return p}function p$(p,m){for(var w=p?m.length:0,O=w-1;w--;){var j=m[w];if(w==O||j!==U){var U=j;qc(j)?nS.call(p,j,1):RI(p,j)}}return p}function II(p,m){return p+sS(UH()*(m-p+1))}function $be(p,m,w,O){for(var j=-1,U=Fo(iS((m-p)/(w||1)),0),te=be(U);U--;)te[O?U:++j]=p,p+=w;return te}function CI(p,m){var w="";if(!p||m<1||m>K)return w;do m%2&&(w+=p),m=sS(m/2),m&&(p+=p);while(m);return w}function ar(p,m){return KI(W$(p,m,Ss),p+"")}function Pbe(p){return QH(zp(p))}function qbe(p,m){var w=zp(p);return wS(w,q1(m,0,w.length))}function dm(p,m,w,O){if(!Pn(p))return p;m=nd(m,p);for(var j=-1,U=m.length,te=U-1,oe=p;oe!=null&&++jj?0:j+m),w=w>j?j:w,w<0&&(w+=j),j=m>w?0:w-m>>>0,m>>>=0;for(var U=be(j);++O>>1,te=p[U];te!==null&&!Zs(te)&&(w?te<=m:te=o){var Ce=m?null:n_e(p);if(Ce)return YE(Ce);te=!1,j=rm,fe=new P1}else fe=m?[]:oe;e:for(;++O=O?p:Ka(p,m,w)}var E$=Fye||function(p){return Oo.clearTimeout(p)};function S$(p,m){if(m)return p.slice();var w=p.length,O=qH?qH(w):new p.constructor(w);return p.copy(O),O}function BI(p){var m=new p.constructor(p.byteLength);return new tS(m).set(new tS(p)),m}function Ube(p,m){var w=m?BI(p.buffer):p.buffer;return new p.constructor(w,p.byteOffset,p.byteLength)}function Ybe(p){var m=new p.constructor(p.source,q.exec(p));return m.lastIndex=p.lastIndex,m}function Xbe(p){return am?on(am.call(p)):{}}function w$(p,m){var w=m?BI(p.buffer):p.buffer;return new p.constructor(w,p.byteOffset,p.length)}function k$(p,m){if(p!==m){var w=p!==r,O=p===null,j=p===p,U=Zs(p),te=m!==r,oe=m===null,fe=m===m,Ce=Zs(m);if(!oe&&!Ce&&!U&&p>m||U&&te&&fe&&!oe&&!Ce||O&&te&&fe||!w&&fe||!j)return 1;if(!O&&!U&&!Ce&&p=oe)return fe;var Ce=w[O];return fe*(Ce=="desc"?-1:1)}}return p.index-m.index}function A$(p,m,w,O){for(var j=-1,U=p.length,te=w.length,oe=-1,fe=m.length,Ce=Fo(U-te,0),Ne=be(fe+Ce),Le=!O;++oe1?w[j-1]:r,te=j>2?w[2]:r;for(U=p.length>3&&typeof U=="function"?(j--,U):r,te&&qi(w[0],w[1],te)&&(U=j<3?r:U,j=1),m=on(m);++O-1?j[U?m[te]:te]:r}}function R$(p){return Pc(function(m){var w=m.length,O=w,j=Wa.prototype.thru;for(p&&m.reverse();O--;){var U=m[O];if(typeof U!="function")throw new qa(s);if(j&&!te&&ES(U)=="wrapper")var te=new Wa([],!0)}for(O=te?O:w;++O1&&Er.reverse(),Ne&&feoe))return!1;var Ce=U.get(p),Ne=U.get(m);if(Ce&&Ne)return Ce==m&&Ne==p;var Le=-1,it=!0,yt=w&v?new P1:r;for(U.set(p,m),U.set(m,p);++Le1?"& ":"")+m[O],m=m.join(w>2?", ":" "),p.replace(ys,`{ + */VA.exports;(function(e,t){(function(){var r,n="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,d=2,h=4,g=1,v=2,y=1,E=2,_=4,S=8,b=16,k=32,T=64,x=128,I=256,C=512,R=30,D="...",L=800,M=16,W=1,z=2,F=3,P=1/0,K=9007199254740991,V=17976931348623157e292,Z=NaN,J=4294967295,ee=J-1,de=J>>>1,ge=[["ary",x],["bind",y],["bindKey",E],["curry",S],["curryRight",b],["flip",C],["partial",k],["partialRight",T],["rearg",I]],Se="[object Arguments]",Re="[object Array]",ve="[object AsyncFunction]",Ee="[object Boolean]",me="[object Date]",we="[object DOMException]",Ge="[object Error]",nt="[object Function]",Qe="[object GeneratorFunction]",Ze="[object Map]",Fe="[object Number]",ot="[object Null]",Me="[object Object]",_t="[object Promise]",qt="[object Proxy]",Nt="[object RegExp]",ut="[object Set]",xe="[object String]",Ue="[object Symbol]",Xt="[object Undefined]",he="[object WeakMap]",le="[object WeakSet]",se="[object ArrayBuffer]",pe="[object DataView]",Oe="[object Float32Array]",je="[object Float64Array]",ke="[object Int8Array]",Ie="[object Int16Array]",$e="[object Int32Array]",lt="[object Uint8Array]",mt="[object Uint8ClampedArray]",Rt="[object Uint16Array]",hr="[object Uint32Array]",Cr=/\b__p \+= '';/g,Lt=/\b(__p \+=) '' \+/g,Wr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,fn=/&(?:amp|lt|gt|quot|#39);/g,tr=/[&<>"']/g,Ot=RegExp(fn.source),Gr=RegExp(tr.source),Nr=/<%-([\s\S]+?)%>/g,Kr=/<%([\s\S]+?)%>/g,mr=/<%=([\s\S]+?)%>/g,Bt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dt=/^\w*$/,Ye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vr=/[\\^$.*+?()[\]{}|]/g,No=RegExp(Vr.source),Hr=/^\s+/,Fl=/\s/,ys=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mo=/\{\n\/\* \[wrapped with (.+)\] \*/,za=/,? & /,He=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Y=/[()=,{}\[\]\/\s]/,X=/\\(\\)?/g,$=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,q=/\w*$/,B=/^[-+]0x[0-9a-f]+$/i,Q=/^0b[01]+$/i,ie=/^\[object .+?Constructor\]$/,ae=/^0o[0-7]+$/i,ne=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Pe=/($^)/,xt=/['\n\r\u2028\u2029\\]/g,Dt="\\ud800-\\udfff",wt="\\u0300-\\u036f",Et="\\ufe20-\\ufe2f",Gt="\\u20d0-\\u20ff",$r=wt+Et+Gt,Ft="\\u2700-\\u27bf",En="a-z\\xdf-\\xf6\\xf8-\\xff",yo="\\xac\\xb1\\xd7\\xf7",$i="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Bl="\\u2000-\\u206f",Us=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oc="A-Z\\xc0-\\xd6\\xd8-\\xde",Ml="\\ufe0e\\ufe0f",so=yo+$i+Bl+Us,Ha="['’]",Dc="["+Dt+"]",Ll="["+so+"]",Fc="["+$r+"]",jl="\\d+",Vf="["+Ft+"]",Iu="["+En+"]",Bc="[^"+Dt+so+jl+Ft+En+Oc+"]",Mc="\\ud83c[\\udffb-\\udfff]",Cu="(?:"+Fc+"|"+Mc+")",Nu="[^"+Dt+"]",wp="(?:\\ud83c[\\udde6-\\uddff]){2}",Zv="[\\ud800-\\udbff][\\udc00-\\udfff]",Uf="["+Oc+"]",GE="\\u200d",Jv="(?:"+Iu+"|"+Bc+")",L1="(?:"+Uf+"|"+Bc+")",kp="(?:"+Ha+"(?:d|ll|m|re|s|t|ve))?",Ap="(?:"+Ha+"(?:D|LL|M|RE|S|T|VE))?",j1=Cu+"?",Yf="["+Ml+"]?",Q5="(?:"+GE+"(?:"+[Nu,wp,Zv].join("|")+")"+Yf+j1+")*",KE="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Z5="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",em=Yf+j1+Q5,J5="(?:"+[Vf,wp,Zv].join("|")+")"+em,eI="(?:"+[Nu+Fc+"?",Fc,wp,Zv,Dc].join("|")+")",z1=RegExp(Ha,"g"),tI=RegExp(Fc,"g"),Xf=RegExp(Mc+"(?="+Mc+")|"+eI+em,"g"),VE=RegExp([Uf+"?"+Iu+"+"+kp+"(?="+[Ll,Uf,"$"].join("|")+")",L1+"+"+Ap+"(?="+[Ll,Uf+Jv,"$"].join("|")+")",Uf+"?"+Jv+"+"+kp,Uf+"+"+Ap,Z5,KE,jl,J5].join("|"),"g"),Ke=RegExp("["+GE+Dt+$r+Ml+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jt=-1,St={};St[Oe]=St[je]=St[ke]=St[Ie]=St[$e]=St[lt]=St[mt]=St[Rt]=St[hr]=!0,St[Se]=St[Re]=St[se]=St[Ee]=St[pe]=St[me]=St[Ge]=St[nt]=St[Ze]=St[Fe]=St[Me]=St[Nt]=St[ut]=St[xe]=St[he]=!1;var Tt={};Tt[Se]=Tt[Re]=Tt[se]=Tt[pe]=Tt[Ee]=Tt[me]=Tt[Oe]=Tt[je]=Tt[ke]=Tt[Ie]=Tt[$e]=Tt[Ze]=Tt[Fe]=Tt[Me]=Tt[Nt]=Tt[ut]=Tt[xe]=Tt[Ue]=Tt[lt]=Tt[mt]=Tt[Rt]=Tt[hr]=!0,Tt[Ge]=Tt[nt]=Tt[he]=!1;var Jr={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},nn={"&":"&","<":"<",">":">",'"':""","'":"'"},Ro={"&":"&","<":"<",">":">",""":'"',"'":"'"},$a={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Lc=parseFloat,rI=parseInt,xp=typeof Ns=="object"&&Ns&&Ns.Object===Object&&Ns,tm=typeof self=="object"&&self&&self.Object===Object&&self,Oo=xp||tm||Function("return this")(),nI=t&&!t.nodeType&&t,H1=nI&&!0&&e&&!e.nodeType&&e,xH=H1&&H1.exports===nI,oI=xH&&xp.process,Pa=function(){try{var ue=H1&&H1.require&&H1.require("util").types;return ue||oI&&oI.binding&&oI.binding("util")}catch{}}(),TH=Pa&&Pa.isArrayBuffer,IH=Pa&&Pa.isDate,CH=Pa&&Pa.isMap,NH=Pa&&Pa.isRegExp,RH=Pa&&Pa.isSet,OH=Pa&&Pa.isTypedArray;function Ys(ue,Ae,be){switch(be.length){case 0:return ue.call(Ae);case 1:return ue.call(Ae,be[0]);case 2:return ue.call(Ae,be[0],be[1]);case 3:return ue.call(Ae,be[0],be[1],be[2])}return ue.apply(Ae,be)}function uye(ue,Ae,be,ht){for(var Ut=-1,Or=ue==null?0:ue.length;++Ut-1}function iI(ue,Ae,be){for(var ht=-1,Ut=ue==null?0:ue.length;++ht-1;);return be}function HH(ue,Ae){for(var be=ue.length;be--&&Tp(Ae,ue[be],0)>-1;);return be}function yye(ue,Ae){for(var be=ue.length,ht=0;be--;)ue[be]===Ae&&++ht;return ht}var bye=uI(Jr),_ye=uI(nn);function Eye(ue){return"\\"+$a[ue]}function Sye(ue,Ae){return ue==null?r:ue[Ae]}function Ip(ue){return Ke.test(ue)}function wye(ue){return tt.test(ue)}function kye(ue){for(var Ae,be=[];!(Ae=ue.next()).done;)be.push(Ae.value);return be}function hI(ue){var Ae=-1,be=Array(ue.size);return ue.forEach(function(ht,Ut){be[++Ae]=[Ut,ht]}),be}function $H(ue,Ae){return function(be){return ue(Ae(be))}}function Jf(ue,Ae){for(var be=-1,ht=ue.length,Ut=0,Or=[];++be-1}function fbe(p,m){var w=this.__data__,O=fS(w,p);return O<0?(++this.size,w.push([p,m])):w[O][1]=m,this}jc.prototype.clear=abe,jc.prototype.delete=lbe,jc.prototype.get=ube,jc.prototype.has=cbe,jc.prototype.set=fbe;function zc(p){var m=-1,w=p==null?0:p.length;for(this.clear();++m=m?p:m)),p}function Ka(p,m,w,O,j,U){var te,oe=m&f,fe=m&d,Ce=m&h;if(w&&(te=j?w(p,O,j,U):w(p)),te!==r)return te;if(!Pn(p))return p;var Ne=Qt(p);if(Ne){if(te=g_e(p),!oe)return bs(p,te)}else{var Le=bi(p),it=Le==nt||Le==Qe;if(id(p))return w$(p,oe);if(Le==Me||Le==Se||it&&!j){if(te=fe||it?{}:P$(p),!oe)return fe?o_e(p,Tbe(te,p)):n_e(p,JH(te,p))}else{if(!Tt[Le])return j?p:{};te=v_e(p,Le,oe)}}U||(U=new Hl);var yt=U.get(p);if(yt)return yt;U.set(p,te),mP(p)?p.forEach(function(Ht){te.add(Ka(Ht,m,w,Ht,p,U))}):gP(p)&&p.forEach(function(Ht,pr){te.set(pr,Ka(Ht,m,w,pr,p,U))});var zt=Ce?fe?zI:jI:fe?Es:Po,sr=Ne?r:zt(p);return qa(sr||p,function(Ht,pr){sr&&(pr=Ht,Ht=p[pr]),lm(te,pr,Ka(Ht,m,w,pr,p,U))}),te}function Ibe(p){var m=Po(p);return function(w){return e$(w,p,m)}}function e$(p,m,w){var O=w.length;if(p==null)return!O;for(p=on(p);O--;){var j=w[O],U=m[j],te=p[j];if(te===r&&!(j in p)||!U(te))return!1}return!0}function t$(p,m,w){if(typeof p!="function")throw new Wa(s);return gm(function(){p.apply(r,w)},m)}function um(p,m,w,O){var j=-1,U=UE,te=!0,oe=p.length,fe=[],Ce=m.length;if(!oe)return fe;w&&(m=Nn(m,Xs(w))),O?(U=iI,te=!1):m.length>=o&&(U=rm,te=!1,m=new q1(m));e:for(;++jj?0:j+w),O=O===r||O>j?j:rr(O),O<0&&(O+=j),O=w>O?0:bP(O);w0&&w(oe)?m>1?ai(oe,m-1,w,O,j):Zf(j,oe):O||(j[j.length]=oe)}return j}var _I=C$(),o$=C$(!0);function Ru(p,m){return p&&_I(p,m,Po)}function EI(p,m){return p&&o$(p,m,Po)}function hS(p,m){return Qf(m,function(w){return Wc(p[w])})}function G1(p,m){m=nd(m,p);for(var w=0,O=m.length;p!=null&&wm}function Rbe(p,m){return p!=null&&Ur.call(p,m)}function Obe(p,m){return p!=null&&m in on(p)}function Dbe(p,m,w){return p>=yi(m,w)&&p=120&&Ne.length>=120)?new q1(te&&Ne):r}Ne=p[0];var Le=-1,it=oe[0];e:for(;++Le-1;)oe!==p&&oS.call(oe,fe,1),oS.call(p,fe,1);return p}function g$(p,m){for(var w=p?m.length:0,O=w-1;w--;){var j=m[w];if(w==O||j!==U){var U=j;qc(j)?oS.call(p,j,1):RI(p,j)}}return p}function II(p,m){return p+aS(YH()*(m-p+1))}function Kbe(p,m,w,O){for(var j=-1,U=Fo(sS((m-p)/(w||1)),0),te=be(U);U--;)te[O?U:++j]=p,p+=w;return te}function CI(p,m){var w="";if(!p||m<1||m>K)return w;do m%2&&(w+=p),m=aS(m/2),m&&(p+=p);while(m);return w}function ar(p,m){return KI(G$(p,m,Ss),p+"")}function Vbe(p){return ZH(zp(p))}function Ube(p,m){var w=zp(p);return kS(w,W1(m,0,w.length))}function dm(p,m,w,O){if(!Pn(p))return p;m=nd(m,p);for(var j=-1,U=m.length,te=U-1,oe=p;oe!=null&&++jj?0:j+m),w=w>j?j:w,w<0&&(w+=j),j=m>w?0:w-m>>>0,m>>>=0;for(var U=be(j);++O>>1,te=p[U];te!==null&&!Zs(te)&&(w?te<=m:te=o){var Ce=m?null:l_e(p);if(Ce)return XE(Ce);te=!1,j=rm,fe=new q1}else fe=m?[]:oe;e:for(;++O=O?p:Va(p,m,w)}var S$=zye||function(p){return Oo.clearTimeout(p)};function w$(p,m){if(m)return p.slice();var w=p.length,O=WH?WH(w):new p.constructor(w);return p.copy(O),O}function BI(p){var m=new p.constructor(p.byteLength);return new rS(m).set(new rS(p)),m}function Jbe(p,m){var w=m?BI(p.buffer):p.buffer;return new p.constructor(w,p.byteOffset,p.byteLength)}function e_e(p){var m=new p.constructor(p.source,q.exec(p));return m.lastIndex=p.lastIndex,m}function t_e(p){return am?on(am.call(p)):{}}function k$(p,m){var w=m?BI(p.buffer):p.buffer;return new p.constructor(w,p.byteOffset,p.length)}function A$(p,m){if(p!==m){var w=p!==r,O=p===null,j=p===p,U=Zs(p),te=m!==r,oe=m===null,fe=m===m,Ce=Zs(m);if(!oe&&!Ce&&!U&&p>m||U&&te&&fe&&!oe&&!Ce||O&&te&&fe||!w&&fe||!j)return 1;if(!O&&!U&&!Ce&&p=oe)return fe;var Ce=w[O];return fe*(Ce=="desc"?-1:1)}}return p.index-m.index}function x$(p,m,w,O){for(var j=-1,U=p.length,te=w.length,oe=-1,fe=m.length,Ce=Fo(U-te,0),Ne=be(fe+Ce),Le=!O;++oe1?w[j-1]:r,te=j>2?w[2]:r;for(U=p.length>3&&typeof U=="function"?(j--,U):r,te&&qi(w[0],w[1],te)&&(U=j<3?r:U,j=1),m=on(m);++O-1?j[U?m[te]:te]:r}}function O$(p){return Pc(function(m){var w=m.length,O=w,j=Ga.prototype.thru;for(p&&m.reverse();O--;){var U=m[O];if(typeof U!="function")throw new Wa(s);if(j&&!te&&SS(U)=="wrapper")var te=new Ga([],!0)}for(O=te?O:w;++O1&&Sr.reverse(),Ne&&feoe))return!1;var Ce=U.get(p),Ne=U.get(m);if(Ce&&Ne)return Ce==m&&Ne==p;var Le=-1,it=!0,yt=w&v?new q1:r;for(U.set(p,m),U.set(m,p);++Le1?"& ":"")+m[O],m=m.join(w>2?", ":" "),p.replace(ys,`{ /* [wrapped with `+m+`] */ -`)}function h_e(p){return Qt(p)||V1(p)||!!(KH&&p&&p[KH])}function qc(p,m){var w=typeof p;return m=m??K,!!m&&(w=="number"||w!="symbol"&&ne.test(p))&&p>-1&&p%1==0&&p0){if(++m>=L)return arguments[0]}else m=0;return p.apply(r,arguments)}}function wS(p,m){var w=-1,O=p.length,j=O-1;for(m=m===r?O:m;++w1?p[m-1]:r;return w=typeof w=="function"?(p.pop(),w):r,rP(p,w)});function nP(p){var m=G(p);return m.__chain__=!0,m}function AEe(p,m){return m(p),p}function kS(p,m){return m(p)}var xEe=Pc(function(p){var m=p.length,w=m?p[0]:0,O=this.__wrapped__,j=function(U){return bI(U,p)};return m>1||this.__actions__.length||!(O instanceof vr)||!qc(w)?this.thru(j):(O=O.slice(w,+w+(m?1:0)),O.__actions__.push({func:kS,args:[j],thisArg:r}),new Wa(O,this.__chain__).thru(function(U){return m&&!U.length&&U.push(r),U}))});function TEe(){return nP(this)}function IEe(){return new Wa(this.value(),this.__chain__)}function CEe(){this.__values__===r&&(this.__values__=mP(this.value()));var p=this.__index__>=this.__values__.length,m=p?r:this.__values__[this.__index__++];return{done:p,value:m}}function NEe(){return this}function REe(p){for(var m,w=this;w instanceof uS;){var O=X$(w);O.__index__=0,O.__values__=r,m?j.__wrapped__=O:m=O;var j=O;w=w.__wrapped__}return j.__wrapped__=p,m}function OEe(){var p=this.__wrapped__;if(p instanceof vr){var m=p;return this.__actions__.length&&(m=new vr(this)),m=m.reverse(),m.__actions__.push({func:kS,args:[VI],thisArg:r}),new Wa(m,this.__chain__)}return this.thru(VI)}function DEe(){return b$(this.__wrapped__,this.__actions__)}var FEe=vS(function(p,m,w){Ur.call(p,w)?++p[w]:Hc(p,w,1)});function BEe(p,m,w){var O=Qt(p)?OH:kbe;return w&&qi(p,m,w)&&(m=r),O(p,Mt(m,3))}function MEe(p,m){var w=Qt(p)?Qf:r$;return w(p,Mt(m,3))}var LEe=N$(Q$),jEe=N$(Z$);function zEe(p,m){return ai(AS(p,m),1)}function HEe(p,m){return ai(AS(p,m),P)}function $Ee(p,m,w){return w=w===r?1:rr(w),ai(AS(p,m),w)}function oP(p,m){var w=Qt(p)?Pa:td;return w(p,Mt(m,3))}function iP(p,m){var w=Qt(p)?iye:t$;return w(p,Mt(m,3))}var PEe=vS(function(p,m,w){Ur.call(p,w)?p[w].push(m):Hc(p,w,[m])});function qEe(p,m,w,O){p=_s(p)?p:zp(p),w=w&&!O?rr(w):0;var j=p.length;return w<0&&(w=Fo(j+w,0)),NS(p)?w<=j&&p.indexOf(m,w)>-1:!!j&&Tp(p,m,w)>-1}var WEe=ar(function(p,m,w){var O=-1,j=typeof m=="function",U=_s(p)?be(p.length):[];return td(p,function(te){U[++O]=j?Ys(m,te,w):cm(te,m,w)}),U}),GEe=vS(function(p,m,w){Hc(p,w,m)});function AS(p,m){var w=Qt(p)?Nn:l$;return w(p,Mt(m,3))}function KEe(p,m,w,O){return p==null?[]:(Qt(m)||(m=m==null?[]:[m]),w=O?r:w,Qt(w)||(w=w==null?[]:[w]),d$(p,m,w))}var VEe=vS(function(p,m,w){p[w?0:1].push(m)},function(){return[[],[]]});function UEe(p,m,w){var O=Qt(p)?sI:MH,j=arguments.length<3;return O(p,Mt(m,4),w,j,td)}function YEe(p,m,w){var O=Qt(p)?sye:MH,j=arguments.length<3;return O(p,Mt(m,4),w,j,t$)}function XEe(p,m){var w=Qt(p)?Qf:r$;return w(p,IS(Mt(m,3)))}function QEe(p){var m=Qt(p)?QH:Pbe;return m(p)}function ZEe(p,m,w){(w?qi(p,m,w):m===r)?m=1:m=rr(m);var O=Qt(p)?bbe:qbe;return O(p,m)}function JEe(p){var m=Qt(p)?_be:Gbe;return m(p)}function eSe(p){if(p==null)return 0;if(_s(p))return NS(p)?Cp(p):p.length;var m=_i(p);return m==Ze||m==ut?p.size:AI(p).length}function tSe(p,m,w){var O=Qt(p)?aI:Kbe;return w&&qi(p,m,w)&&(m=r),O(p,Mt(m,3))}var rSe=ar(function(p,m){if(p==null)return[];var w=m.length;return w>1&&qi(p,m[0],m[1])?m=[]:w>2&&qi(m[0],m[1],m[2])&&(m=[m[0]]),d$(p,ai(m,1),[])}),xS=Bye||function(){return Oo.Date.now()};function nSe(p,m){if(typeof m!="function")throw new qa(s);return p=rr(p),function(){if(--p<1)return m.apply(this,arguments)}}function sP(p,m,w){return m=w?r:m,m=p&&m==null?p.length:m,$c(p,x,r,r,r,r,m)}function aP(p,m){var w;if(typeof m!="function")throw new qa(s);return p=rr(p),function(){return--p>0&&(w=m.apply(this,arguments)),p<=1&&(m=r),w}}var YI=ar(function(p,m,w){var O=y;if(w.length){var j=Jf(w,Lp(YI));O|=k}return $c(p,O,m,w,j)}),lP=ar(function(p,m,w){var O=y|E;if(w.length){var j=Jf(w,Lp(lP));O|=k}return $c(m,O,p,w,j)});function uP(p,m,w){m=w?r:m;var O=$c(p,S,r,r,r,r,r,m);return O.placeholder=uP.placeholder,O}function cP(p,m,w){m=w?r:m;var O=$c(p,b,r,r,r,r,r,m);return O.placeholder=cP.placeholder,O}function fP(p,m,w){var O,j,U,te,oe,fe,Ce=0,Ne=!1,Le=!1,it=!0;if(typeof p!="function")throw new qa(s);m=Ua(m)||0,Pn(w)&&(Ne=!!w.leading,Le="maxWait"in w,U=Le?Fo(Ua(w.maxWait)||0,m):U,it="trailing"in w?!!w.trailing:it);function yt(lo){var Pl=O,Kc=j;return O=j=r,Ce=lo,te=p.apply(Kc,Pl),te}function zt(lo){return Ce=lo,oe=gm(hr,m),Ne?yt(lo):te}function sr(lo){var Pl=lo-fe,Kc=lo-Ce,NP=m-Pl;return Le?bi(NP,U-Kc):NP}function Ht(lo){var Pl=lo-fe,Kc=lo-Ce;return fe===r||Pl>=m||Pl<0||Le&&Kc>=U}function hr(){var lo=xS();if(Ht(lo))return Er(lo);oe=gm(hr,sr(lo))}function Er(lo){return oe=r,it&&O?yt(lo):(O=j=r,te)}function Js(){oe!==r&&E$(oe),Ce=0,O=fe=j=oe=r}function Wi(){return oe===r?te:Er(xS())}function ea(){var lo=xS(),Pl=Ht(lo);if(O=arguments,j=this,fe=lo,Pl){if(oe===r)return zt(fe);if(Le)return E$(oe),oe=gm(hr,m),yt(fe)}return oe===r&&(oe=gm(hr,m)),te}return ea.cancel=Js,ea.flush=Wi,ea}var oSe=ar(function(p,m){return e$(p,1,m)}),iSe=ar(function(p,m,w){return e$(p,Ua(m)||0,w)});function sSe(p){return $c(p,C)}function TS(p,m){if(typeof p!="function"||m!=null&&typeof m!="function")throw new qa(s);var w=function(){var O=arguments,j=m?m.apply(this,O):O[0],U=w.cache;if(U.has(j))return U.get(j);var te=p.apply(this,O);return w.cache=U.set(j,te)||U,te};return w.cache=new(TS.Cache||zc),w}TS.Cache=zc;function IS(p){if(typeof p!="function")throw new qa(s);return function(){var m=arguments;switch(m.length){case 0:return!p.call(this);case 1:return!p.call(this,m[0]);case 2:return!p.call(this,m[0],m[1]);case 3:return!p.call(this,m[0],m[1],m[2])}return!p.apply(this,m)}}function aSe(p){return aP(2,p)}var lSe=Vbe(function(p,m){m=m.length==1&&Qt(m[0])?Nn(m[0],Xs(Mt())):Nn(ai(m,1),Xs(Mt()));var w=m.length;return ar(function(O){for(var j=-1,U=bi(O.length,w);++j=m}),V1=i$(function(){return arguments}())?i$:function(p){return Zn(p)&&Ur.call(p,"callee")&&!GH.call(p,"callee")},Qt=be.isArray,wSe=xH?Xs(xH):Nbe;function _s(p){return p!=null&&CS(p.length)&&!Wc(p)}function ao(p){return Zn(p)&&_s(p)}function kSe(p){return p===!0||p===!1||Zn(p)&&Pi(p)==Ee}var id=Lye||a2,ASe=TH?Xs(TH):Rbe;function xSe(p){return Zn(p)&&p.nodeType===1&&!vm(p)}function TSe(p){if(p==null)return!0;if(_s(p)&&(Qt(p)||typeof p=="string"||typeof p.splice=="function"||id(p)||jp(p)||V1(p)))return!p.length;var m=_i(p);if(m==Ze||m==ut)return!p.size;if(pm(p))return!AI(p).length;for(var w in p)if(Ur.call(p,w))return!1;return!0}function ISe(p,m){return fm(p,m)}function CSe(p,m,w){w=typeof w=="function"?w:r;var O=w?w(p,m):r;return O===r?fm(p,m,r,w):!!O}function QI(p){if(!Zn(p))return!1;var m=Pi(p);return m==Ge||m==we||typeof p.message=="string"&&typeof p.name=="string"&&!vm(p)}function NSe(p){return typeof p=="number"&&VH(p)}function Wc(p){if(!Pn(p))return!1;var m=Pi(p);return m==nt||m==Qe||m==ve||m==qt}function hP(p){return typeof p=="number"&&p==rr(p)}function CS(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=K}function Pn(p){var m=typeof p;return p!=null&&(m=="object"||m=="function")}function Zn(p){return p!=null&&typeof p=="object"}var pP=IH?Xs(IH):Dbe;function RSe(p,m){return p===m||kI(p,m,$I(m))}function OSe(p,m,w){return w=typeof w=="function"?w:r,kI(p,m,$I(m),w)}function DSe(p){return gP(p)&&p!=+p}function FSe(p){if(v_e(p))throw new Ut(i);return s$(p)}function BSe(p){return p===null}function MSe(p){return p==null}function gP(p){return typeof p=="number"||Zn(p)&&Pi(p)==Fe}function vm(p){if(!Zn(p)||Pi(p)!=Me)return!1;var m=rS(p);if(m===null)return!0;var w=Ur.call(m,"constructor")&&m.constructor;return typeof w=="function"&&w instanceof w&&ZE.call(w)==Rye}var ZI=CH?Xs(CH):Fbe;function LSe(p){return hP(p)&&p>=-K&&p<=K}var vP=NH?Xs(NH):Bbe;function NS(p){return typeof p=="string"||!Qt(p)&&Zn(p)&&Pi(p)==xe}function Zs(p){return typeof p=="symbol"||Zn(p)&&Pi(p)==Ve}var jp=RH?Xs(RH):Mbe;function jSe(p){return p===r}function zSe(p){return Zn(p)&&_i(p)==he}function HSe(p){return Zn(p)&&Pi(p)==le}var $Se=_S(xI),PSe=_S(function(p,m){return p<=m});function mP(p){if(!p)return[];if(_s(p))return NS(p)?zl(p):bs(p);if(nm&&p[nm])return bye(p[nm]());var m=_i(p),w=m==Ze?hI:m==ut?YE:zp;return w(p)}function Gc(p){if(!p)return p===0?p:0;if(p=Ua(p),p===P||p===-P){var m=p<0?-1:1;return m*V}return p===p?p:0}function rr(p){var m=Gc(p),w=m%1;return m===m?w?m-w:m:0}function yP(p){return p?q1(rr(p),0,J):0}function Ua(p){if(typeof p=="number")return p;if(Zs(p))return Z;if(Pn(p)){var m=typeof p.valueOf=="function"?p.valueOf():p;p=Pn(m)?m+"":m}if(typeof p!="string")return p===0?p:+p;p=LH(p);var w=Q.test(p);return w||ae.test(p)?rI(p.slice(2),w?2:8):B.test(p)?Z:+p}function bP(p){return Ou(p,Es(p))}function qSe(p){return p?q1(rr(p),-K,K):p===0?p:0}function Pr(p){return p==null?"":Qs(p)}var WSe=Bp(function(p,m){if(pm(m)||_s(m)){Ou(m,Po(m),p);return}for(var w in m)Ur.call(m,w)&&lm(p,w,m[w])}),_P=Bp(function(p,m){Ou(m,Es(m),p)}),RS=Bp(function(p,m,w,O){Ou(m,Es(m),p,O)}),GSe=Bp(function(p,m,w,O){Ou(m,Po(m),p,O)}),KSe=Pc(bI);function VSe(p,m){var w=Fp(p);return m==null?w:ZH(w,m)}var USe=ar(function(p,m){p=on(p);var w=-1,O=m.length,j=O>2?m[2]:r;for(j&&qi(m[0],m[1],j)&&(O=1);++w1),U}),Ou(p,zI(p),w),O&&(w=Ga(w,f|d|h,o_e));for(var j=m.length;j--;)RI(w,m[j]);return w});function dwe(p,m){return SP(p,IS(Mt(m)))}var hwe=Pc(function(p,m){return p==null?{}:zbe(p,m)});function SP(p,m){if(p==null)return{};var w=Nn(zI(p),function(O){return[O]});return m=Mt(m),h$(p,w,function(O,j){return m(O,j[0])})}function pwe(p,m,w){m=nd(m,p);var O=-1,j=m.length;for(j||(j=1,p=r);++Om){var O=p;p=m,m=O}if(w||p%1||m%1){var j=UH();return bi(p+j*(m-p+Lc("1e-"+((j+"").length-1))),m)}return II(p,m)}var Awe=Mp(function(p,m,w){return m=m.toLowerCase(),p+(w?AP(m):m)});function AP(p){return t2(Pr(p).toLowerCase())}function xP(p){return p=Pr(p),p&&p.replace(ye,pye).replace(tI,"")}function xwe(p,m,w){p=Pr(p),m=Qs(m);var O=p.length;w=w===r?O:q1(rr(w),0,O);var j=w;return w-=m.length,w>=0&&p.slice(w,j)==m}function Twe(p){return p=Pr(p),p&&Gr.test(p)?p.replace(tr,gye):p}function Iwe(p){return p=Pr(p),p&&No.test(p)?p.replace(Vr,"\\$&"):p}var Cwe=Mp(function(p,m,w){return p+(w?"-":"")+m.toLowerCase()}),Nwe=Mp(function(p,m,w){return p+(w?" ":"")+m.toLowerCase()}),Rwe=C$("toLowerCase");function Owe(p,m,w){p=Pr(p),m=rr(m);var O=m?Cp(p):0;if(!m||O>=m)return p;var j=(m-O)/2;return bS(sS(j),w)+p+bS(iS(j),w)}function Dwe(p,m,w){p=Pr(p),m=rr(m);var O=m?Cp(p):0;return m&&O>>0,w?(p=Pr(p),p&&(typeof m=="string"||m!=null&&!ZI(m))&&(m=Qs(m),!m&&Ip(p))?od(zl(p),0,w):p.split(m,w)):[]}var Hwe=Mp(function(p,m,w){return p+(w?" ":"")+t2(m)});function $we(p,m,w){return p=Pr(p),w=w==null?0:q1(rr(w),0,p.length),m=Qs(m),p.slice(w,w+m.length)==m}function Pwe(p,m,w){var O=G.templateSettings;w&&qi(p,m,w)&&(m=r),p=Pr(p),m=RS({},m,O,M$);var j=RS({},m.imports,O.imports,M$),U=Po(j),te=dI(j,U),oe,fe,Ce=0,Ne=m.interpolate||Pe,Le="__p += '",it=pI((m.escape||Pe).source+"|"+Ne.source+"|"+(Ne===gr?$:Pe).source+"|"+(m.evaluate||Pe).source+"|$","g"),yt="//# sourceURL="+(Ur.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jt+"]")+` -`;p.replace(it,function(Ht,hr,Er,Js,Wi,ea){return Er||(Er=Js),Le+=p.slice(Ce,ea).replace(xt,vye),hr&&(oe=!0,Le+=`' + -__e(`+hr+`) + +`)}function y_e(p){return Qt(p)||U1(p)||!!(VH&&p&&p[VH])}function qc(p,m){var w=typeof p;return m=m??K,!!m&&(w=="number"||w!="symbol"&&ne.test(p))&&p>-1&&p%1==0&&p0){if(++m>=L)return arguments[0]}else m=0;return p.apply(r,arguments)}}function kS(p,m){var w=-1,O=p.length,j=O-1;for(m=m===r?O:m;++w1?p[m-1]:r;return w=typeof w=="function"?(p.pop(),w):r,nP(p,w)});function oP(p){var m=G(p);return m.__chain__=!0,m}function NEe(p,m){return m(p),p}function AS(p,m){return m(p)}var REe=Pc(function(p){var m=p.length,w=m?p[0]:0,O=this.__wrapped__,j=function(U){return bI(U,p)};return m>1||this.__actions__.length||!(O instanceof yr)||!qc(w)?this.thru(j):(O=O.slice(w,+w+(m?1:0)),O.__actions__.push({func:AS,args:[j],thisArg:r}),new Ga(O,this.__chain__).thru(function(U){return m&&!U.length&&U.push(r),U}))});function OEe(){return oP(this)}function DEe(){return new Ga(this.value(),this.__chain__)}function FEe(){this.__values__===r&&(this.__values__=yP(this.value()));var p=this.__index__>=this.__values__.length,m=p?r:this.__values__[this.__index__++];return{done:p,value:m}}function BEe(){return this}function MEe(p){for(var m,w=this;w instanceof cS;){var O=Q$(w);O.__index__=0,O.__values__=r,m?j.__wrapped__=O:m=O;var j=O;w=w.__wrapped__}return j.__wrapped__=p,m}function LEe(){var p=this.__wrapped__;if(p instanceof yr){var m=p;return this.__actions__.length&&(m=new yr(this)),m=m.reverse(),m.__actions__.push({func:AS,args:[VI],thisArg:r}),new Ga(m,this.__chain__)}return this.thru(VI)}function jEe(){return _$(this.__wrapped__,this.__actions__)}var zEe=mS(function(p,m,w){Ur.call(p,w)?++p[w]:Hc(p,w,1)});function HEe(p,m,w){var O=Qt(p)?DH:Cbe;return w&&qi(p,m,w)&&(m=r),O(p,Mt(m,3))}function $Ee(p,m){var w=Qt(p)?Qf:n$;return w(p,Mt(m,3))}var PEe=R$(Z$),qEe=R$(J$);function WEe(p,m){return ai(xS(p,m),1)}function GEe(p,m){return ai(xS(p,m),P)}function KEe(p,m,w){return w=w===r?1:rr(w),ai(xS(p,m),w)}function iP(p,m){var w=Qt(p)?qa:td;return w(p,Mt(m,3))}function sP(p,m){var w=Qt(p)?cye:r$;return w(p,Mt(m,3))}var VEe=mS(function(p,m,w){Ur.call(p,w)?p[w].push(m):Hc(p,w,[m])});function UEe(p,m,w,O){p=_s(p)?p:zp(p),w=w&&!O?rr(w):0;var j=p.length;return w<0&&(w=Fo(j+w,0)),RS(p)?w<=j&&p.indexOf(m,w)>-1:!!j&&Tp(p,m,w)>-1}var YEe=ar(function(p,m,w){var O=-1,j=typeof m=="function",U=_s(p)?be(p.length):[];return td(p,function(te){U[++O]=j?Ys(m,te,w):cm(te,m,w)}),U}),XEe=mS(function(p,m,w){Hc(p,w,m)});function xS(p,m){var w=Qt(p)?Nn:u$;return w(p,Mt(m,3))}function QEe(p,m,w,O){return p==null?[]:(Qt(m)||(m=m==null?[]:[m]),w=O?r:w,Qt(w)||(w=w==null?[]:[w]),h$(p,m,w))}var ZEe=mS(function(p,m,w){p[w?0:1].push(m)},function(){return[[],[]]});function JEe(p,m,w){var O=Qt(p)?sI:LH,j=arguments.length<3;return O(p,Mt(m,4),w,j,td)}function eSe(p,m,w){var O=Qt(p)?fye:LH,j=arguments.length<3;return O(p,Mt(m,4),w,j,r$)}function tSe(p,m){var w=Qt(p)?Qf:n$;return w(p,CS(Mt(m,3)))}function rSe(p){var m=Qt(p)?ZH:Vbe;return m(p)}function nSe(p,m,w){(w?qi(p,m,w):m===r)?m=1:m=rr(m);var O=Qt(p)?kbe:Ube;return O(p,m)}function oSe(p){var m=Qt(p)?Abe:Xbe;return m(p)}function iSe(p){if(p==null)return 0;if(_s(p))return RS(p)?Cp(p):p.length;var m=bi(p);return m==Ze||m==ut?p.size:AI(p).length}function sSe(p,m,w){var O=Qt(p)?aI:Qbe;return w&&qi(p,m,w)&&(m=r),O(p,Mt(m,3))}var aSe=ar(function(p,m){if(p==null)return[];var w=m.length;return w>1&&qi(p,m[0],m[1])?m=[]:w>2&&qi(m[0],m[1],m[2])&&(m=[m[0]]),h$(p,ai(m,1),[])}),TS=Hye||function(){return Oo.Date.now()};function lSe(p,m){if(typeof m!="function")throw new Wa(s);return p=rr(p),function(){if(--p<1)return m.apply(this,arguments)}}function aP(p,m,w){return m=w?r:m,m=p&&m==null?p.length:m,$c(p,x,r,r,r,r,m)}function lP(p,m){var w;if(typeof m!="function")throw new Wa(s);return p=rr(p),function(){return--p>0&&(w=m.apply(this,arguments)),p<=1&&(m=r),w}}var YI=ar(function(p,m,w){var O=y;if(w.length){var j=Jf(w,Lp(YI));O|=k}return $c(p,O,m,w,j)}),uP=ar(function(p,m,w){var O=y|E;if(w.length){var j=Jf(w,Lp(uP));O|=k}return $c(m,O,p,w,j)});function cP(p,m,w){m=w?r:m;var O=$c(p,S,r,r,r,r,r,m);return O.placeholder=cP.placeholder,O}function fP(p,m,w){m=w?r:m;var O=$c(p,b,r,r,r,r,r,m);return O.placeholder=fP.placeholder,O}function dP(p,m,w){var O,j,U,te,oe,fe,Ce=0,Ne=!1,Le=!1,it=!0;if(typeof p!="function")throw new Wa(s);m=Ya(m)||0,Pn(w)&&(Ne=!!w.leading,Le="maxWait"in w,U=Le?Fo(Ya(w.maxWait)||0,m):U,it="trailing"in w?!!w.trailing:it);function yt(lo){var Pl=O,Kc=j;return O=j=r,Ce=lo,te=p.apply(Kc,Pl),te}function zt(lo){return Ce=lo,oe=gm(pr,m),Ne?yt(lo):te}function sr(lo){var Pl=lo-fe,Kc=lo-Ce,RP=m-Pl;return Le?yi(RP,U-Kc):RP}function Ht(lo){var Pl=lo-fe,Kc=lo-Ce;return fe===r||Pl>=m||Pl<0||Le&&Kc>=U}function pr(){var lo=TS();if(Ht(lo))return Sr(lo);oe=gm(pr,sr(lo))}function Sr(lo){return oe=r,it&&O?yt(lo):(O=j=r,te)}function Js(){oe!==r&&S$(oe),Ce=0,O=fe=j=oe=r}function Wi(){return oe===r?te:Sr(TS())}function ea(){var lo=TS(),Pl=Ht(lo);if(O=arguments,j=this,fe=lo,Pl){if(oe===r)return zt(fe);if(Le)return S$(oe),oe=gm(pr,m),yt(fe)}return oe===r&&(oe=gm(pr,m)),te}return ea.cancel=Js,ea.flush=Wi,ea}var uSe=ar(function(p,m){return t$(p,1,m)}),cSe=ar(function(p,m,w){return t$(p,Ya(m)||0,w)});function fSe(p){return $c(p,C)}function IS(p,m){if(typeof p!="function"||m!=null&&typeof m!="function")throw new Wa(s);var w=function(){var O=arguments,j=m?m.apply(this,O):O[0],U=w.cache;if(U.has(j))return U.get(j);var te=p.apply(this,O);return w.cache=U.set(j,te)||U,te};return w.cache=new(IS.Cache||zc),w}IS.Cache=zc;function CS(p){if(typeof p!="function")throw new Wa(s);return function(){var m=arguments;switch(m.length){case 0:return!p.call(this);case 1:return!p.call(this,m[0]);case 2:return!p.call(this,m[0],m[1]);case 3:return!p.call(this,m[0],m[1],m[2])}return!p.apply(this,m)}}function dSe(p){return lP(2,p)}var hSe=Zbe(function(p,m){m=m.length==1&&Qt(m[0])?Nn(m[0],Xs(Mt())):Nn(ai(m,1),Xs(Mt()));var w=m.length;return ar(function(O){for(var j=-1,U=yi(O.length,w);++j=m}),U1=s$(function(){return arguments}())?s$:function(p){return Jn(p)&&Ur.call(p,"callee")&&!KH.call(p,"callee")},Qt=be.isArray,ISe=TH?Xs(TH):Bbe;function _s(p){return p!=null&&NS(p.length)&&!Wc(p)}function ao(p){return Jn(p)&&_s(p)}function CSe(p){return p===!0||p===!1||Jn(p)&&Pi(p)==Ee}var id=Pye||a2,NSe=IH?Xs(IH):Mbe;function RSe(p){return Jn(p)&&p.nodeType===1&&!vm(p)}function OSe(p){if(p==null)return!0;if(_s(p)&&(Qt(p)||typeof p=="string"||typeof p.splice=="function"||id(p)||jp(p)||U1(p)))return!p.length;var m=bi(p);if(m==Ze||m==ut)return!p.size;if(pm(p))return!AI(p).length;for(var w in p)if(Ur.call(p,w))return!1;return!0}function DSe(p,m){return fm(p,m)}function FSe(p,m,w){w=typeof w=="function"?w:r;var O=w?w(p,m):r;return O===r?fm(p,m,r,w):!!O}function QI(p){if(!Jn(p))return!1;var m=Pi(p);return m==Ge||m==we||typeof p.message=="string"&&typeof p.name=="string"&&!vm(p)}function BSe(p){return typeof p=="number"&&UH(p)}function Wc(p){if(!Pn(p))return!1;var m=Pi(p);return m==nt||m==Qe||m==ve||m==qt}function pP(p){return typeof p=="number"&&p==rr(p)}function NS(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=K}function Pn(p){var m=typeof p;return p!=null&&(m=="object"||m=="function")}function Jn(p){return p!=null&&typeof p=="object"}var gP=CH?Xs(CH):jbe;function MSe(p,m){return p===m||kI(p,m,$I(m))}function LSe(p,m,w){return w=typeof w=="function"?w:r,kI(p,m,$I(m),w)}function jSe(p){return vP(p)&&p!=+p}function zSe(p){if(S_e(p))throw new Ut(i);return a$(p)}function HSe(p){return p===null}function $Se(p){return p==null}function vP(p){return typeof p=="number"||Jn(p)&&Pi(p)==Fe}function vm(p){if(!Jn(p)||Pi(p)!=Me)return!1;var m=nS(p);if(m===null)return!0;var w=Ur.call(m,"constructor")&&m.constructor;return typeof w=="function"&&w instanceof w&&JE.call(w)==Mye}var ZI=NH?Xs(NH):zbe;function PSe(p){return pP(p)&&p>=-K&&p<=K}var mP=RH?Xs(RH):Hbe;function RS(p){return typeof p=="string"||!Qt(p)&&Jn(p)&&Pi(p)==xe}function Zs(p){return typeof p=="symbol"||Jn(p)&&Pi(p)==Ue}var jp=OH?Xs(OH):$be;function qSe(p){return p===r}function WSe(p){return Jn(p)&&bi(p)==he}function GSe(p){return Jn(p)&&Pi(p)==le}var KSe=ES(xI),VSe=ES(function(p,m){return p<=m});function yP(p){if(!p)return[];if(_s(p))return RS(p)?zl(p):bs(p);if(nm&&p[nm])return kye(p[nm]());var m=bi(p),w=m==Ze?hI:m==ut?XE:zp;return w(p)}function Gc(p){if(!p)return p===0?p:0;if(p=Ya(p),p===P||p===-P){var m=p<0?-1:1;return m*V}return p===p?p:0}function rr(p){var m=Gc(p),w=m%1;return m===m?w?m-w:m:0}function bP(p){return p?W1(rr(p),0,J):0}function Ya(p){if(typeof p=="number")return p;if(Zs(p))return Z;if(Pn(p)){var m=typeof p.valueOf=="function"?p.valueOf():p;p=Pn(m)?m+"":m}if(typeof p!="string")return p===0?p:+p;p=jH(p);var w=Q.test(p);return w||ae.test(p)?rI(p.slice(2),w?2:8):B.test(p)?Z:+p}function _P(p){return Ou(p,Es(p))}function USe(p){return p?W1(rr(p),-K,K):p===0?p:0}function Pr(p){return p==null?"":Qs(p)}var YSe=Bp(function(p,m){if(pm(m)||_s(m)){Ou(m,Po(m),p);return}for(var w in m)Ur.call(m,w)&&lm(p,w,m[w])}),EP=Bp(function(p,m){Ou(m,Es(m),p)}),OS=Bp(function(p,m,w,O){Ou(m,Es(m),p,O)}),XSe=Bp(function(p,m,w,O){Ou(m,Po(m),p,O)}),QSe=Pc(bI);function ZSe(p,m){var w=Fp(p);return m==null?w:JH(w,m)}var JSe=ar(function(p,m){p=on(p);var w=-1,O=m.length,j=O>2?m[2]:r;for(j&&qi(m[0],m[1],j)&&(O=1);++w1),U}),Ou(p,zI(p),w),O&&(w=Ka(w,f|d|h,u_e));for(var j=m.length;j--;)RI(w,m[j]);return w});function mwe(p,m){return wP(p,CS(Mt(m)))}var ywe=Pc(function(p,m){return p==null?{}:Wbe(p,m)});function wP(p,m){if(p==null)return{};var w=Nn(zI(p),function(O){return[O]});return m=Mt(m),p$(p,w,function(O,j){return m(O,j[0])})}function bwe(p,m,w){m=nd(m,p);var O=-1,j=m.length;for(j||(j=1,p=r);++Om){var O=p;p=m,m=O}if(w||p%1||m%1){var j=YH();return yi(p+j*(m-p+Lc("1e-"+((j+"").length-1))),m)}return II(p,m)}var Nwe=Mp(function(p,m,w){return m=m.toLowerCase(),p+(w?xP(m):m)});function xP(p){return t2(Pr(p).toLowerCase())}function TP(p){return p=Pr(p),p&&p.replace(ye,bye).replace(tI,"")}function Rwe(p,m,w){p=Pr(p),m=Qs(m);var O=p.length;w=w===r?O:W1(rr(w),0,O);var j=w;return w-=m.length,w>=0&&p.slice(w,j)==m}function Owe(p){return p=Pr(p),p&&Gr.test(p)?p.replace(tr,_ye):p}function Dwe(p){return p=Pr(p),p&&No.test(p)?p.replace(Vr,"\\$&"):p}var Fwe=Mp(function(p,m,w){return p+(w?"-":"")+m.toLowerCase()}),Bwe=Mp(function(p,m,w){return p+(w?" ":"")+m.toLowerCase()}),Mwe=N$("toLowerCase");function Lwe(p,m,w){p=Pr(p),m=rr(m);var O=m?Cp(p):0;if(!m||O>=m)return p;var j=(m-O)/2;return _S(aS(j),w)+p+_S(sS(j),w)}function jwe(p,m,w){p=Pr(p),m=rr(m);var O=m?Cp(p):0;return m&&O>>0,w?(p=Pr(p),p&&(typeof m=="string"||m!=null&&!ZI(m))&&(m=Qs(m),!m&&Ip(p))?od(zl(p),0,w):p.split(m,w)):[]}var Gwe=Mp(function(p,m,w){return p+(w?" ":"")+t2(m)});function Kwe(p,m,w){return p=Pr(p),w=w==null?0:W1(rr(w),0,p.length),m=Qs(m),p.slice(w,w+m.length)==m}function Vwe(p,m,w){var O=G.templateSettings;w&&qi(p,m,w)&&(m=r),p=Pr(p),m=OS({},m,O,L$);var j=OS({},m.imports,O.imports,L$),U=Po(j),te=dI(j,U),oe,fe,Ce=0,Ne=m.interpolate||Pe,Le="__p += '",it=pI((m.escape||Pe).source+"|"+Ne.source+"|"+(Ne===mr?$:Pe).source+"|"+(m.evaluate||Pe).source+"|$","g"),yt="//# sourceURL="+(Ur.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jt+"]")+` +`;p.replace(it,function(Ht,pr,Sr,Js,Wi,ea){return Sr||(Sr=Js),Le+=p.slice(Ce,ea).replace(xt,Eye),pr&&(oe=!0,Le+=`' + +__e(`+pr+`) + '`),Wi&&(fe=!0,Le+=`'; `+Wi+`; -__p += '`),Er&&(Le+=`' + -((__t = (`+Er+`)) == null ? '' : __t) + +__p += '`),Sr&&(Le+=`' + +((__t = (`+Sr+`)) == null ? '' : __t) + '`),Ce=ea+Ht.length,Ht}),Le+=`'; `;var zt=Ur.call(m,"variable")&&m.variable;if(!zt)Le=`with (obj) { `+Le+` @@ -351,9 +351,9 @@ __p += '`),Er&&(Le+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+Le+`return __p -}`;var sr=IP(function(){return Or(U,yt+"return "+Le).apply(r,te)});if(sr.source=Le,QI(sr))throw sr;return sr}function qwe(p){return Pr(p).toLowerCase()}function Wwe(p){return Pr(p).toUpperCase()}function Gwe(p,m,w){if(p=Pr(p),p&&(w||m===r))return LH(p);if(!p||!(m=Qs(m)))return p;var O=zl(p),j=zl(m),U=jH(O,j),te=zH(O,j)+1;return od(O,U,te).join("")}function Kwe(p,m,w){if(p=Pr(p),p&&(w||m===r))return p.slice(0,$H(p)+1);if(!p||!(m=Qs(m)))return p;var O=zl(p),j=zH(O,zl(m))+1;return od(O,0,j).join("")}function Vwe(p,m,w){if(p=Pr(p),p&&(w||m===r))return p.replace(Hr,"");if(!p||!(m=Qs(m)))return p;var O=zl(p),j=jH(O,zl(m));return od(O,j).join("")}function Uwe(p,m){var w=R,O=D;if(Pn(m)){var j="separator"in m?m.separator:j;w="length"in m?rr(m.length):w,O="omission"in m?Qs(m.omission):O}p=Pr(p);var U=p.length;if(Ip(p)){var te=zl(p);U=te.length}if(w>=U)return p;var oe=w-Cp(O);if(oe<1)return O;var fe=te?od(te,0,oe).join(""):p.slice(0,oe);if(j===r)return fe+O;if(te&&(oe+=fe.length-oe),ZI(j)){if(p.slice(oe).search(j)){var Ce,Ne=fe;for(j.global||(j=pI(j.source,Pr(q.exec(j))+"g")),j.lastIndex=0;Ce=j.exec(Ne);)var Le=Ce.index;fe=fe.slice(0,Le===r?oe:Le)}}else if(p.indexOf(Qs(j),oe)!=oe){var it=fe.lastIndexOf(j);it>-1&&(fe=fe.slice(0,it))}return fe+O}function Ywe(p){return p=Pr(p),p&&Ot.test(p)?p.replace(dn,wye):p}var Xwe=Mp(function(p,m,w){return p+(w?" ":"")+m.toUpperCase()}),t2=C$("toUpperCase");function TP(p,m,w){return p=Pr(p),m=w?r:m,m===r?yye(p)?xye(p):uye(p):p.match(m)||[]}var IP=ar(function(p,m){try{return Ys(p,r,m)}catch(w){return QI(w)?w:new Ut(w)}}),Qwe=Pc(function(p,m){return Pa(m,function(w){w=Du(w),Hc(p,w,YI(p[w],p))}),p});function Zwe(p){var m=p==null?0:p.length,w=Mt();return p=m?Nn(p,function(O){if(typeof O[1]!="function")throw new qa(s);return[w(O[0]),O[1]]}):[],ar(function(O){for(var j=-1;++jK)return[];var w=J,O=bi(p,J);m=Mt(m),p-=J;for(var j=fI(O,m);++w0||m<0)?new vr(w):(p<0?w=w.takeRight(-p):p&&(w=w.drop(p)),m!==r&&(m=rr(m),w=m<0?w.dropRight(-m):w.take(m-p)),w)},vr.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},vr.prototype.toArray=function(){return this.take(J)},Ru(vr.prototype,function(p,m){var w=/^(?:filter|find|map|reject)|While$/.test(m),O=/^(?:head|last)$/.test(m),j=G[O?"take"+(m=="last"?"Right":""):m],U=O||/^find/.test(m);j&&(G.prototype[m]=function(){var te=this.__wrapped__,oe=O?[1]:arguments,fe=te instanceof vr,Ce=oe[0],Ne=fe||Qt(te),Le=function(hr){var Er=j.apply(G,Zf([hr],oe));return O&&it?Er[0]:Er};Ne&&w&&typeof Ce=="function"&&Ce.length!=1&&(fe=Ne=!1);var it=this.__chain__,yt=!!this.__actions__.length,zt=U&&!it,sr=fe&&!yt;if(!U&&Ne){te=sr?te:new vr(this);var Ht=p.apply(te,oe);return Ht.__actions__.push({func:kS,args:[Le],thisArg:r}),new Wa(Ht,it)}return zt&&sr?p.apply(this,oe):(Ht=this.thru(Le),zt?O?Ht.value()[0]:Ht.value():Ht)})}),Pa(["pop","push","shift","sort","splice","unshift"],function(p){var m=XE[p],w=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",O=/^(?:pop|shift)$/.test(p);G.prototype[p]=function(){var j=arguments;if(O&&!this.__chain__){var U=this.value();return m.apply(Qt(U)?U:[],j)}return this[w](function(te){return m.apply(Qt(te)?te:[],j)})}}),Ru(vr.prototype,function(p,m){var w=G[m];if(w){var O=w.name+"";Ur.call(Dp,O)||(Dp[O]=[]),Dp[O].push({name:m,func:w})}}),Dp[mS(r,E).name]=[{name:"wrapper",func:r}],vr.prototype.clone=Uye,vr.prototype.reverse=Yye,vr.prototype.value=Xye,G.prototype.at=xEe,G.prototype.chain=TEe,G.prototype.commit=IEe,G.prototype.next=CEe,G.prototype.plant=REe,G.prototype.reverse=OEe,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=DEe,G.prototype.first=G.prototype.head,nm&&(G.prototype[nm]=NEe),G},Np=Tye();z1?((z1.exports=Np)._=Np,nI._=Np):Oo._=Np}).call(Ns)})(KA,KA.exports);var Xb=KA.exports;const r$e=e=>{if(!Xb.isPlainObject(e))return!1;const t=Object.keys(e);return t.length!==1?!1:t[0].startsWith("data:image/")},n$e=e=>{const t=Object.keys(e).find(r=>r.startsWith("data:image/"));return t?`![image](${e[t]??""})`:""},tce=e=>e.map(t=>typeof t=="string"?t:r$e(t)?n$e(t):t$e(t)).join(` +}`;var sr=CP(function(){return Or(U,yt+"return "+Le).apply(r,te)});if(sr.source=Le,QI(sr))throw sr;return sr}function Uwe(p){return Pr(p).toLowerCase()}function Ywe(p){return Pr(p).toUpperCase()}function Xwe(p,m,w){if(p=Pr(p),p&&(w||m===r))return jH(p);if(!p||!(m=Qs(m)))return p;var O=zl(p),j=zl(m),U=zH(O,j),te=HH(O,j)+1;return od(O,U,te).join("")}function Qwe(p,m,w){if(p=Pr(p),p&&(w||m===r))return p.slice(0,PH(p)+1);if(!p||!(m=Qs(m)))return p;var O=zl(p),j=HH(O,zl(m))+1;return od(O,0,j).join("")}function Zwe(p,m,w){if(p=Pr(p),p&&(w||m===r))return p.replace(Hr,"");if(!p||!(m=Qs(m)))return p;var O=zl(p),j=zH(O,zl(m));return od(O,j).join("")}function Jwe(p,m){var w=R,O=D;if(Pn(m)){var j="separator"in m?m.separator:j;w="length"in m?rr(m.length):w,O="omission"in m?Qs(m.omission):O}p=Pr(p);var U=p.length;if(Ip(p)){var te=zl(p);U=te.length}if(w>=U)return p;var oe=w-Cp(O);if(oe<1)return O;var fe=te?od(te,0,oe).join(""):p.slice(0,oe);if(j===r)return fe+O;if(te&&(oe+=fe.length-oe),ZI(j)){if(p.slice(oe).search(j)){var Ce,Ne=fe;for(j.global||(j=pI(j.source,Pr(q.exec(j))+"g")),j.lastIndex=0;Ce=j.exec(Ne);)var Le=Ce.index;fe=fe.slice(0,Le===r?oe:Le)}}else if(p.indexOf(Qs(j),oe)!=oe){var it=fe.lastIndexOf(j);it>-1&&(fe=fe.slice(0,it))}return fe+O}function eke(p){return p=Pr(p),p&&Ot.test(p)?p.replace(fn,Iye):p}var tke=Mp(function(p,m,w){return p+(w?" ":"")+m.toUpperCase()}),t2=N$("toUpperCase");function IP(p,m,w){return p=Pr(p),m=w?r:m,m===r?wye(p)?Rye(p):pye(p):p.match(m)||[]}var CP=ar(function(p,m){try{return Ys(p,r,m)}catch(w){return QI(w)?w:new Ut(w)}}),rke=Pc(function(p,m){return qa(m,function(w){w=Du(w),Hc(p,w,YI(p[w],p))}),p});function nke(p){var m=p==null?0:p.length,w=Mt();return p=m?Nn(p,function(O){if(typeof O[1]!="function")throw new Wa(s);return[w(O[0]),O[1]]}):[],ar(function(O){for(var j=-1;++jK)return[];var w=J,O=yi(p,J);m=Mt(m),p-=J;for(var j=fI(O,m);++w0||m<0)?new yr(w):(p<0?w=w.takeRight(-p):p&&(w=w.drop(p)),m!==r&&(m=rr(m),w=m<0?w.dropRight(-m):w.take(m-p)),w)},yr.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},yr.prototype.toArray=function(){return this.take(J)},Ru(yr.prototype,function(p,m){var w=/^(?:filter|find|map|reject)|While$/.test(m),O=/^(?:head|last)$/.test(m),j=G[O?"take"+(m=="last"?"Right":""):m],U=O||/^find/.test(m);j&&(G.prototype[m]=function(){var te=this.__wrapped__,oe=O?[1]:arguments,fe=te instanceof yr,Ce=oe[0],Ne=fe||Qt(te),Le=function(pr){var Sr=j.apply(G,Zf([pr],oe));return O&&it?Sr[0]:Sr};Ne&&w&&typeof Ce=="function"&&Ce.length!=1&&(fe=Ne=!1);var it=this.__chain__,yt=!!this.__actions__.length,zt=U&&!it,sr=fe&&!yt;if(!U&&Ne){te=sr?te:new yr(this);var Ht=p.apply(te,oe);return Ht.__actions__.push({func:AS,args:[Le],thisArg:r}),new Ga(Ht,it)}return zt&&sr?p.apply(this,oe):(Ht=this.thru(Le),zt?O?Ht.value()[0]:Ht.value():Ht)})}),qa(["pop","push","shift","sort","splice","unshift"],function(p){var m=QE[p],w=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",O=/^(?:pop|shift)$/.test(p);G.prototype[p]=function(){var j=arguments;if(O&&!this.__chain__){var U=this.value();return m.apply(Qt(U)?U:[],j)}return this[w](function(te){return m.apply(Qt(te)?te:[],j)})}}),Ru(yr.prototype,function(p,m){var w=G[m];if(w){var O=w.name+"";Ur.call(Dp,O)||(Dp[O]=[]),Dp[O].push({name:m,func:w})}}),Dp[yS(r,E).name]=[{name:"wrapper",func:r}],yr.prototype.clone=Jye,yr.prototype.reverse=ebe,yr.prototype.value=tbe,G.prototype.at=REe,G.prototype.chain=OEe,G.prototype.commit=DEe,G.prototype.next=FEe,G.prototype.plant=MEe,G.prototype.reverse=LEe,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=jEe,G.prototype.first=G.prototype.head,nm&&(G.prototype[nm]=BEe),G},Np=Oye();H1?((H1.exports=Np)._=Np,nI._=Np):Oo._=Np}).call(Ns)})(VA,VA.exports);var Xb=VA.exports;const a$e=e=>{if(!Xb.isPlainObject(e))return!1;const t=Object.keys(e);return t.length!==1?!1:t[0].startsWith("data:image/")},l$e=e=>{const t=Object.keys(e).find(r=>r.startsWith("data:image/"));return t?`![image](${e[t]??""})`:""},rce=e=>e.map(t=>typeof t=="string"?t:a$e(t)?l$e(t):s$e(t)).join(` -`),zK=e=>!!e.is_chat_input,HK=(e,t,r=!1)=>e!==Ad.Chat||t.type!==Te.list?!1:Reflect.has(t,"is_chat_history")?!!t.is_chat_history:r?!1:t.name===sh,$K=e=>!!e.is_chat_output,PK=(e,t)=>{const r=typeof e=="string"?e:Array.isArray(e)?tce(e):JSON.stringify(e)??"",n=Array.isArray(e)?JSON.stringify(e):void 0;return{id:Ri.v4(),from:Yb.User,type:p7.Text,content:r,contentForCopy:n,timestamp:new Date().toISOString(),extraData:t}},qK=(e,t,r,n)=>{const o=typeof e=="string"?e:Array.isArray(e)?tce(e):JSON.stringify(e)??"",i=Array.isArray(e)?JSON.stringify(e):void 0;return{id:Ri.v4(),from:Yb.Chatbot,type:p7.Text,content:o,contentForCopy:i,timestamp:new Date().toISOString(),duration:n==null?void 0:n.duration,tokens:n==null?void 0:n.total_tokens,error:r,extraData:t}},o$e=(e,t,r)=>{const n=[];for(const o of r){const i=o.inputs[e],s=o.outputs[t];if(typeof i=="string"&&typeof s=="string"){const a={flowInputs:o.inputs,flowOutputs:o.outputs};n.push(PK(i,a)),n.push(qK(s,a))}else if(Array.isArray(i)&&Array.isArray(s)){const a={flowInputs:o.inputs,flowOutputs:o.outputs};n.push(PK(i,a)),n.push(qK(s,a))}}return n};Te.AzureContentSafetyConnection,Te.AzureContentModeratorConnection,Te.OpenAIConnection,Te.AzureOpenAIConnection,Te.BingConnection,Te.CustomConnection,Te.SerpConnection,Te.CognitiveSearchConnection,Te.SubstrateLLMConnection,Te.QdrantConnection,Te.WeaviateConnection,Te.FormRecognizerConnection;const i$e=e=>{switch(e){case Rn.AzureContentSafety:return Te.AzureContentSafetyConnection;case Rn.AzureContentModerator:return Te.AzureContentModeratorConnection;case Rn.Serp:return Te.SerpConnection;case Rn.OpenAI:return Te.OpenAIConnection;case Rn.Bing:return Te.BingConnection;case Rn.AzureOpenAI:return Te.AzureOpenAIConnection;case Rn.CognitiveSearch:return Te.CognitiveSearchConnection;case Rn.SubstrateLLM:return Te.SubstrateLLMConnection;case Rn.Custom:return Te.CustomConnection;default:return Te.CustomConnection}},s$e=(e,t)=>{var r;return!t||t.length===0?i$e(e):(r=t.find(n=>n.connectionType===e))==null?void 0:r.flowValueType},a$e=(e,t,r)=>{var o;const n=(o=e==null?void 0:e.find(i=>i.connectionName===r))==null?void 0:o.connectionType;if(n)return s$e(n,t)};Te.AzureContentSafetyConnection+"",Te.BingConnection+"",Te.OpenAIConnection+"",Te.CustomConnection+"",Te.AzureOpenAIConnection+"",Te.AzureContentModeratorConnection+"",Te.SerpConnection+"",Te.CognitiveSearchConnection+"",Te.SubstrateLLMConnection+"",Te.PineconeConnection+"",Te.QdrantConnection+"",Te.WeaviateConnection+"",Te.FormRecognizerConnection+"",Te.ServerlessConnection+"";const l$e=(e,t)=>{if(!e)return t??"";try{return JSON.parse(e)}catch{return t??""}},u$e=/^[+-]?\d+$/,c$e=/^[+-]?\d+(\.\d+)?$/,f$e=e=>{try{const t=parseInt(e,10);return isNaN(t)?e:t}catch{return e}},d$e=e=>{try{const t=parseFloat(e);return isNaN(t)?e:t}catch{return e}},h$e=["true","false","True","False",!0,!1],p$e=e=>{try{return h$e.includes(e)?JHe(e):e}catch{return e}},Dk=(e,t)=>{var n;let r=e;if(!(((n=e==null?void 0:e.trim)==null?void 0:n.call(e))===""&&t!==Te.string)){switch(t){case Te.int:r=typeof r=="string"&&u$e.test(r.trim())?f$e(r):r;break;case Te.double:r=typeof r=="string"&&c$e.test(r.trim())?d$e(r):r;break;case Te.bool:r=p$e(r);break;case Te.string:r=typeof r=="object"?JSON.stringify(r):String(r??"");break;case Te.list:case Te.object:r=typeof r=="string"?l$e(r,r):r;break}return r}},WK=e=>{if(typeof e=="boolean")return Te.bool;if(typeof e=="number")return Number.isInteger(e)?Te.int:Te.double;if(Array.isArray(e))return Te.list;if(typeof e=="object"&&e!==null)return Te.object;if(typeof e=="string")return Te.string},GK=(e,t,r,n,o=!1)=>{const i=g$e(e),s={...t};return Object.keys(i??{}).filter(u=>{var f;const c=i==null?void 0:i[u];if(!o&&(c==null?void 0:c.input_type)===Que.uionly_hidden)return!1;if(c!=null&&c.enabled_by&&(c!=null&&c.enabled_by_value)){const d=i==null?void 0:i[c.enabled_by],h=(s==null?void 0:s[c.enabled_by])??(d==null?void 0:d.default),g=Dk(h,(f=d==null?void 0:d.type)==null?void 0:f[0]),v=c==null?void 0:c.enabled_by_value.includes(g);return v||(s[u]=void 0),v}if(c!=null&&c.enabled_by&&(c!=null&&c.enabled_by_type)){const d=s==null?void 0:s[c.enabled_by],h=a$e(r??[],n??[],d??""),g=h?c==null?void 0:c.enabled_by_type.includes(h):!1;return g||(s[u]=void 0),g}return!0})},g$e=e=>{let t=[];if(Object.values(e??{}).some(o=>{var i;return((i=o.ui_hints)==null?void 0:i.index)!==void 0}))t=Object.keys(e??{}).sort((o,i)=>{var l,u,c,f;const s=((u=(l=e==null?void 0:e[o])==null?void 0:l.ui_hints)==null?void 0:u.index)??0,a=((f=(c=e==null?void 0:e[i])==null?void 0:c.ui_hints)==null?void 0:f.index)??0;return s-a});else{const o=[],i={};Object.keys(e??{}).forEach(a=>{const l=e==null?void 0:e[a];l!=null&&l.enabled_by?(i[l.enabled_by]||(i[l.enabled_by]=[]),i[l.enabled_by].push(a)):o.push(a)});const s=a=>{for(const l of a)t.push(l),i[l]&&s(i[l])};s(o)}const n={};for(const o of t)n[o]=e==null?void 0:e[o];return n};var v$e={exports:{}};/* @license +`),HK=e=>!!e.is_chat_input,$K=(e,t,r=!1)=>e!==Ad.Chat||t.type!==Te.list?!1:Reflect.has(t,"is_chat_history")?!!t.is_chat_history:r?!1:t.name===ah,PK=e=>!!e.is_chat_output,qK=(e,t)=>{const r=typeof e=="string"?e:Array.isArray(e)?rce(e):JSON.stringify(e)??"",n=Array.isArray(e)?JSON.stringify(e):void 0;return{id:Ni.v4(),from:Yb.User,type:g7.Text,content:r,contentForCopy:n,timestamp:new Date().toISOString(),extraData:t}},WK=(e,t,r,n)=>{const o=typeof e=="string"?e:Array.isArray(e)?rce(e):JSON.stringify(e)??"",i=Array.isArray(e)?JSON.stringify(e):void 0;return{id:Ni.v4(),from:Yb.Chatbot,type:g7.Text,content:o,contentForCopy:i,timestamp:new Date().toISOString(),duration:n==null?void 0:n.duration,tokens:n==null?void 0:n.total_tokens,error:r,extraData:t}},u$e=(e,t,r)=>{const n=[];for(const o of r){const i=o.inputs[e],s=o.outputs[t];if(typeof i=="string"&&typeof s=="string"){const a={flowInputs:o.inputs,flowOutputs:o.outputs};n.push(qK(i,a)),n.push(WK(s,a))}else if(Array.isArray(i)&&Array.isArray(s)){const a={flowInputs:o.inputs,flowOutputs:o.outputs};n.push(qK(i,a)),n.push(WK(s,a))}}return n};Te.AzureContentSafetyConnection,Te.AzureContentModeratorConnection,Te.OpenAIConnection,Te.AzureOpenAIConnection,Te.BingConnection,Te.CustomConnection,Te.SerpConnection,Te.CognitiveSearchConnection,Te.SubstrateLLMConnection,Te.QdrantConnection,Te.WeaviateConnection,Te.FormRecognizerConnection;const c$e=e=>{switch(e){case Rn.AzureContentSafety:return Te.AzureContentSafetyConnection;case Rn.AzureContentModerator:return Te.AzureContentModeratorConnection;case Rn.Serp:return Te.SerpConnection;case Rn.OpenAI:return Te.OpenAIConnection;case Rn.Bing:return Te.BingConnection;case Rn.AzureOpenAI:return Te.AzureOpenAIConnection;case Rn.CognitiveSearch:return Te.CognitiveSearchConnection;case Rn.SubstrateLLM:return Te.SubstrateLLMConnection;case Rn.Custom:return Te.CustomConnection;default:return Te.CustomConnection}},f$e=(e,t)=>{var r;return!t||t.length===0?c$e(e):(r=t.find(n=>n.connectionType===e))==null?void 0:r.flowValueType},d$e=(e,t,r)=>{var o;const n=(o=e==null?void 0:e.find(i=>i.connectionName===r))==null?void 0:o.connectionType;if(n)return f$e(n,t)};Te.AzureContentSafetyConnection+"",Te.BingConnection+"",Te.OpenAIConnection+"",Te.CustomConnection+"",Te.AzureOpenAIConnection+"",Te.AzureContentModeratorConnection+"",Te.SerpConnection+"",Te.CognitiveSearchConnection+"",Te.SubstrateLLMConnection+"",Te.PineconeConnection+"",Te.QdrantConnection+"",Te.WeaviateConnection+"",Te.FormRecognizerConnection+"",Te.ServerlessConnection+"";const h$e=(e,t)=>{if(!e)return t??"";try{return JSON.parse(e)}catch{return t??""}},p$e=/^[+-]?\d+$/,g$e=/^[+-]?\d+(\.\d+)?$/,v$e=e=>{try{const t=parseInt(e,10);return isNaN(t)?e:t}catch{return e}},m$e=e=>{try{const t=parseFloat(e);return isNaN(t)?e:t}catch{return e}},y$e=["true","false","True","False",!0,!1],b$e=e=>{try{return y$e.includes(e)?o$e(e):e}catch{return e}},Fk=(e,t)=>{var n;let r=e;if(!(((n=e==null?void 0:e.trim)==null?void 0:n.call(e))===""&&t!==Te.string)){switch(t){case Te.int:r=typeof r=="string"&&p$e.test(r.trim())?v$e(r):r;break;case Te.double:r=typeof r=="string"&&g$e.test(r.trim())?m$e(r):r;break;case Te.bool:r=b$e(r);break;case Te.string:r=typeof r=="object"?JSON.stringify(r):String(r??"");break;case Te.list:case Te.object:r=typeof r=="string"?h$e(r,r):r;break}return r}},GK=e=>{if(typeof e=="boolean")return Te.bool;if(typeof e=="number")return Number.isInteger(e)?Te.int:Te.double;if(Array.isArray(e))return Te.list;if(typeof e=="object"&&e!==null)return Te.object;if(typeof e=="string")return Te.string},KK=(e,t,r,n,o=!1)=>{const i=_$e(e),s={...t};return Object.keys(i??{}).filter(u=>{var f;const c=i==null?void 0:i[u];if(!o&&(c==null?void 0:c.input_type)===Zue.uionly_hidden)return!1;if(c!=null&&c.enabled_by&&(c!=null&&c.enabled_by_value)){const d=i==null?void 0:i[c.enabled_by],h=(s==null?void 0:s[c.enabled_by])??(d==null?void 0:d.default),g=Fk(h,(f=d==null?void 0:d.type)==null?void 0:f[0]),v=c==null?void 0:c.enabled_by_value.includes(g);return v||(s[u]=void 0),v}if(c!=null&&c.enabled_by&&(c!=null&&c.enabled_by_type)){const d=s==null?void 0:s[c.enabled_by],h=d$e(r??[],n??[],d??""),g=h?c==null?void 0:c.enabled_by_type.includes(h):!1;return g||(s[u]=void 0),g}return!0})},_$e=e=>{let t=[];if(Object.values(e??{}).some(o=>{var i;return((i=o.ui_hints)==null?void 0:i.index)!==void 0}))t=Object.keys(e??{}).sort((o,i)=>{var l,u,c,f;const s=((u=(l=e==null?void 0:e[o])==null?void 0:l.ui_hints)==null?void 0:u.index)??0,a=((f=(c=e==null?void 0:e[i])==null?void 0:c.ui_hints)==null?void 0:f.index)??0;return s-a});else{const o=[],i={};Object.keys(e??{}).forEach(a=>{const l=e==null?void 0:e[a];l!=null&&l.enabled_by?(i[l.enabled_by]||(i[l.enabled_by]=[]),i[l.enabled_by].push(a)):o.push(a)});const s=a=>{for(const l of a)t.push(l),i[l]&&s(i[l])};s(o)}const n={};for(const o of t)n[o]=e==null?void 0:e[o];return n};var E$e={exports:{}};/* @license Papa Parse v5.4.1 https://github.com/mholt/PapaParse @@ -364,41 +364,41 @@ License: MIT `),Nt=1=_t.length/2?`\r -`:"\r"}(me,nt)),D=!1,I.delimiter)x(I.delimiter)&&(I.delimiter=I.delimiter(me),ee.meta.delimiter=I.delimiter);else{var Qe=function(Fe,ot,Me,_t,qt){var Nt,ut,xe,Ve;qt=qt||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var Xt=0;Xt=W)return Ie(!0)}else for(he=P,P++;;){if((he=V.indexOf(C,he+1))===-1)return J||Ee.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ve.length,index:P}),je();if(he===ee-1)return je(V.substring(P,he).replace(Xt,C));if(C!==F||V[he+1]!==F){if(C===F||he===0||V[he-1]!==F){xe!==-1&&xe=W)return Ie(!0);break}Ee.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ve.length,index:P}),he++}}else he++}return je();function pe(lt){ve.push(lt),we=P}function Oe(lt){var mt=0;if(lt!==-1){var Rt=V.substring(he+1,lt);Rt&&Rt.trim()===""&&(mt=Rt.length)}return mt}function je(lt){return J||(lt===void 0&&(lt=V.substring(P)),me.push(lt),P=ee,pe(me),Re&&$e()),Ie()}function ke(lt){P=lt,pe(me),me=[],Ve=V.indexOf(D,P)}function Ie(lt){return{data:ve,errors:Ee,meta:{delimiter:R,linebreak:D,aborted:K,truncated:!!lt,cursor:we+(Z||0)}}}function $e(){M(Ie()),ve=[],Ee=[]}},this.abort=function(){K=!0},this.getCharIndex=function(){return P}}function _(I){var C=I.data,R=s[C.workerId],D=!1;if(C.error)R.userError(C.error,C.file);else if(C.results&&C.results.data){var L={abort:function(){D=!0,S(C.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:b,resume:b};if(x(R.userStep)){for(var M=0;M{const n={};return Object.keys(e).forEach(o=>{const i=e[o];o===t?n[r]=i:n[o]=i}),n},rce=e=>{const{defaultVariantId:t=Ki,variants:r={}}=e,n=r[t];return n==null?void 0:n.node},KK=(e,t)=>{const r=[];return e.forEach(n=>{const o=t.get(n);if(!o)return;const i=rce(o);i&&r.push(i)}),r},m$e=(e,t,r)=>{const n=[];return e.forEach(o=>{if(r.includes(o)){n.push({name:o,use_variants:!0});return}const i=t[o];if(!i)return;const s={inputs:{},...rce(i)};s&&n.push(s)}),n};Oi.llm;Oi.prompt;Te.string,Oi.python;Te.string,Oi.typescript;const g7=e=>{var t,r,n,o,i,s;return e.children&&e.children.length>0?e.children.reduce((a,l)=>{const u=g7(l);return{totalTokens:a.totalTokens+u.totalTokens,promptTokens:a.promptTokens+u.promptTokens,completionTokens:a.completionTokens+u.completionTokens}},{totalTokens:0,promptTokens:0,completionTokens:0}):{totalTokens:((r=(t=e.output)==null?void 0:t.usage)==null?void 0:r.total_tokens)??0,promptTokens:((o=(n=e.output)==null?void 0:n.usage)==null?void 0:o.prompt_tokens)??0,completionTokens:((s=(i=e.output)==null?void 0:i.usage)==null?void 0:s.completion_tokens)??0}},Uy=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),VK=e=>{const t=new Date(e),r=y$e();return`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()} ${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}:${t.getMilliseconds()} (${r})`},y$e=()=>{const e=new Date().getTimezoneOffset(),t=Math.abs(e);return`UTC${(e<0?"+":"-")+`00${Math.floor(t/60)}`.slice(-2)}:${`00${t%60}`.slice(-2)}`},n9=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),b$e=(e,t,r,n)=>{var o,i,s;if(((o=e==null?void 0:e.source)==null?void 0:o.type)==="code")return t;if(((i=e==null?void 0:e.source)==null?void 0:i.type)==="package_with_prompt"){const a=(s=e==null?void 0:e.source)==null?void 0:s.path,l=n(a??"");return r?{...r,inputs:{...l==null?void 0:l.inputs,..._$e(r==null?void 0:r.inputs,"parameter")},code:l==null?void 0:l.code}:void 0}return r},_$e=(e,t)=>{if(!e)return e;const r={...e};return Object.keys(r).forEach(n=>{r[n]={...r[n],position:t}}),r},UK=async e=>new Promise(t=>setTimeout(t,e)),v7=async e=>new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=function(){var i;const o=(i=n.result)==null?void 0:i.split(",")[1];t(o)},n.onerror=function(o){r(o)}}),E$e=["and","as","assert","break","class","continue","def","del","elif","else","except","False","finally","for","from","global","if","import","in","is","lambda","None","nonlocal","not","or","pass","raise","return","True","try","while","with","yield"],S$e=["abs","all","any","ascii","bin","bool","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","str","sum","super","tuple","type","vars","zip"],w$e=["input","inputs","output","outputs","flow","flows"],k$e=e=>E$e.some(t=>t===e)||S$e.some(t=>t===e)||w$e.some(t=>t===e)?!1:/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e),A$e=(e={})=>{const t=[];return Object.keys(e).forEach(r=>{const n=e[r],{variants:o={},defaultVariantId:i,default_variant_id:s}=n,a=Object.keys(o).length;a>1&&t.push({nodeName:r,variantsCount:a,defaultVariantId:i??s??Ki,variants:o})}),t},x$e=(e={})=>{const t={};return Object.keys(e).forEach(r=>{const n=e[r],{variants:o={}}=n;if(Object.keys(o).length>1){const s=Xb.cloneDeep(n);Object.entries((s==null?void 0:s.variants)??{}).forEach(([l,u])=>{u.node&&delete u.node.name});const a=s.defaultVariantId;delete s.defaultVariantId,t[r]={default_variant_id:a,...s}}}),Object.keys(t).length>0?t:void 0},T$e=e=>{const t=/^data:(image|video|audio)\/(.*);(path|base64|url)/,r=e.match(t),n=r==null?void 0:r[1],o=r==null?void 0:r[2],i=r==null?void 0:r[3];return{mimeType:n,ext:o,valType:i}},I$e=/^\$\{(\S+)\}$/,QC=e=>{var t,r;return(r=(t=`${e??""}`)==null?void 0:t.match(I$e))==null?void 0:r[1]},C$e=e=>{const t="abcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let n=0;nC$e(8),N$e=nce,R$e=/^[+-]?\d+$/,O$e=/^[+-]?\d+(\.\d+)?$/,D$e=e=>e.toLowerCase()==="true"||e.toLowerCase()==="false",oce=e=>O$e.test(e.trim())?e===e.trim()&&e.length>0&&!Number.isNaN(Number(e)):!1,F$e=e=>R$e.test(e.trim())?oce(e)&&Number.isInteger(Number(e)):!1,B$e=e=>{try{const t=JSON.parse(e);return Array.isArray(t)}catch{return!1}},M$e=e=>{try{const t=JSON.parse(e);return Object.prototype.toString.call(t)==="[object Object]"}catch{return!1}},ZC=(e,t)=>{const r=typeof e,n=r==="string";switch(t){case Te.int:return n?F$e(e):Number.isInteger(e);case Te.double:return n?oce(e):r==="number";case Te.list:return n?B$e(e):Array.isArray(e);case Te.object:return n?M$e(e):r==="object";case Te.bool:return n?D$e(e):r==="boolean";case Te.function_str:return!0;default:return!0}},L$e=(e,t,r,n)=>{var s,a;const o=[],i=new Set(e.keys());for(e.forEach((l,u)=>{l===0&&o.push(u)});o.length>0;){const l=o.shift();l&&(i.delete(l),(s=t.get(l))==null||s.forEach(u=>{const c=(e.get(u)??0)-1;e.set(u,c),c===0&&o.push(u)}))}for(r.forEach((l,u)=>{l===0&&o.push(u)});o.length>0;){const l=o.shift();l&&(i.delete(l),(a=n.get(l))==null||a.forEach(u=>{const c=(r.get(u)??0)-1;r.set(u,c),c===0&&o.push(u)}))}return i};function m7(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var JC,YK;function j$e(){if(YK)return JC;YK=1;function e(){this.__data__=[],this.size=0}return JC=e,JC}var eN,XK;function Ev(){if(XK)return eN;XK=1;function e(t,r){return t===r||t!==t&&r!==r}return eN=e,eN}var tN,QK;function o9(){if(QK)return tN;QK=1;var e=Ev();function t(r,n){for(var o=r.length;o--;)if(e(r[o][0],n))return o;return-1}return tN=t,tN}var rN,ZK;function z$e(){if(ZK)return rN;ZK=1;var e=o9(),t=Array.prototype,r=t.splice;function n(o){var i=this.__data__,s=e(i,o);if(s<0)return!1;var a=i.length-1;return s==a?i.pop():r.call(i,s,1),--this.size,!0}return rN=n,rN}var nN,JK;function H$e(){if(JK)return nN;JK=1;var e=o9();function t(r){var n=this.__data__,o=e(n,r);return o<0?void 0:n[o][1]}return nN=t,nN}var oN,eV;function $$e(){if(eV)return oN;eV=1;var e=o9();function t(r){return e(this.__data__,r)>-1}return oN=t,oN}var iN,tV;function P$e(){if(tV)return iN;tV=1;var e=o9();function t(r,n){var o=this.__data__,i=e(o,r);return i<0?(++this.size,o.push([r,n])):o[i][1]=n,this}return iN=t,iN}var sN,rV;function i9(){if(rV)return sN;rV=1;var e=j$e(),t=z$e(),r=H$e(),n=$$e(),o=P$e();function i(s){var a=-1,l=s==null?0:s.length;for(this.clear();++a-1&&n%1==0&&n-1&&r%1==0&&r<=e}return tR=t,tR}var rR,JV;function gPe(){if(JV)return rR;JV=1;var e=up(),t=E7(),r=Ic(),n="[object Arguments]",o="[object Array]",i="[object Boolean]",s="[object Date]",a="[object Error]",l="[object Function]",u="[object Map]",c="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",g="[object String]",v="[object WeakMap]",y="[object ArrayBuffer]",E="[object DataView]",_="[object Float32Array]",S="[object Float64Array]",b="[object Int8Array]",k="[object Int16Array]",T="[object Int32Array]",x="[object Uint8Array]",I="[object Uint8ClampedArray]",C="[object Uint16Array]",R="[object Uint32Array]",D={};D[_]=D[S]=D[b]=D[k]=D[T]=D[x]=D[I]=D[C]=D[R]=!0,D[n]=D[o]=D[y]=D[i]=D[E]=D[s]=D[a]=D[l]=D[u]=D[c]=D[f]=D[d]=D[h]=D[g]=D[v]=!1;function L(M){return r(M)&&t(M.length)&&!!D[e(M)]}return rR=L,rR}var nR,eU;function d9(){if(eU)return nR;eU=1;function e(t){return function(r){return t(r)}}return nR=e,nR}var cy={exports:{}};cy.exports;var tU;function S7(){return tU||(tU=1,function(e,t){var r=ice(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,s=i&&r.process,a=function(){try{var l=o&&o.require&&o.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=a}(cy,cy.exports)),cy.exports}var oR,rU;function sE(){if(rU)return oR;rU=1;var e=gPe(),t=d9(),r=S7(),n=r&&r.isTypedArray,o=n?t(n):e;return oR=o,oR}var iR,nU;function lce(){if(nU)return iR;nU=1;var e=dPe(),t=iE(),r=Co(),n=wv(),o=f9(),i=sE(),s=Object.prototype,a=s.hasOwnProperty;function l(u,c){var f=r(u),d=!f&&t(u),h=!f&&!d&&n(u),g=!f&&!d&&!h&&i(u),v=f||d||h||g,y=v?e(u.length,String):[],E=y.length;for(var _ in u)(c||a.call(u,_))&&!(v&&(_=="length"||h&&(_=="offset"||_=="parent")||g&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||o(_,E)))&&y.push(_);return y}return iR=l,iR}var sR,oU;function h9(){if(oU)return sR;oU=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||e;return r===o}return sR=t,sR}var aR,iU;function uce(){if(iU)return aR;iU=1;function e(t,r){return function(n){return t(r(n))}}return aR=e,aR}var lR,sU;function vPe(){if(sU)return lR;sU=1;var e=uce(),t=e(Object.keys,Object);return lR=t,lR}var uR,aU;function w7(){if(aU)return uR;aU=1;var e=h9(),t=vPe(),r=Object.prototype,n=r.hasOwnProperty;function o(i){if(!e(i))return t(i);var s=[];for(var a in Object(i))n.call(i,a)&&a!="constructor"&&s.push(a);return s}return uR=o,uR}var cR,lU;function qf(){if(lU)return cR;lU=1;var e=nE(),t=E7();function r(n){return n!=null&&t(n.length)&&!e(n)}return cR=r,cR}var fR,uU;function R1(){if(uU)return fR;uU=1;var e=lce(),t=w7(),r=qf();function n(o){return r(o)?e(o):t(o)}return fR=n,fR}var dR,cU;function mPe(){if(cU)return dR;cU=1;var e=oE(),t=R1();function r(n,o){return n&&e(o,t(o),n)}return dR=r,dR}var hR,fU;function yPe(){if(fU)return hR;fU=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return hR=e,hR}var pR,dU;function bPe(){if(dU)return pR;dU=1;var e=Il(),t=h9(),r=yPe(),n=Object.prototype,o=n.hasOwnProperty;function i(s){if(!e(s))return r(s);var a=t(s),l=[];for(var u in s)u=="constructor"&&(a||!o.call(s,u))||l.push(u);return l}return pR=i,pR}var gR,hU;function fp(){if(hU)return gR;hU=1;var e=lce(),t=bPe(),r=qf();function n(o){return r(o)?e(o,!0):t(o)}return gR=n,gR}var vR,pU;function _Pe(){if(pU)return vR;pU=1;var e=oE(),t=fp();function r(n,o){return n&&e(o,t(o),n)}return vR=r,vR}var fy={exports:{}};fy.exports;var gU;function cce(){return gU||(gU=1,function(e,t){var r=bu(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,s=i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var f=u.length,d=a?a(f):new u.constructor(f);return u.copy(d),d}e.exports=l}(fy,fy.exports)),fy.exports}var mR,vU;function fce(){if(vU)return mR;vU=1;function e(t,r){var n=-1,o=t.length;for(r||(r=Array(o));++nh))return!1;var v=f.get(s),y=f.get(a);if(v&&y)return v==a&&y==s;var E=-1,_=!0,S=l&o?new e:void 0;for(f.set(s,a),f.set(a,s);++E0&&i(c)?o>1?r(c,o-1,i,s,a):e(a,c):s||(a[a.length]=c)}return a}return l4=r,l4}var u4,lX;function mqe(){if(lX)return u4;lX=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return u4=e,u4}var c4,uX;function Pce(){if(uX)return c4;uX=1;var e=mqe(),t=Math.max;function r(n,o,i){return o=t(o===void 0?n.length-1:o,0),function(){for(var s=arguments,a=-1,l=t(s.length-o,0),u=Array(l);++a0){if(++i>=e)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}return d4=n,d4}var h4,dX;function qce(){if(dX)return h4;dX=1;var e=yqe(),t=bqe(),r=t(e);return h4=r,h4}var p4,hX;function b9(){if(hX)return p4;hX=1;var e=dp(),t=Pce(),r=qce();function n(o,i){return r(t(o,i,e),o+"")}return p4=n,p4}var g4,pX;function Wce(){if(pX)return g4;pX=1;function e(t,r,n,o){for(var i=t.length,s=n+(o?1:-1);o?s--:++s-1}return b4=t,b4}var _4,bX;function kqe(){if(bX)return _4;bX=1;function e(t,r,n){for(var o=-1,i=t==null?0:t.length;++o=s){var E=u?null:o(l);if(E)return i(E);g=!1,d=n,y=new e}else y=u?[]:v;e:for(;++f1?h.setNode(g,f):h.setNode(g)}),this},o.prototype.setNode=function(c,f){return e.has(this._nodes,c)?(arguments.length>1&&(this._nodes[c]=f),this):(this._nodes[c]=arguments.length>1?f:this._defaultNodeLabelFn(c),this._isCompound&&(this._parent[c]=r,this._children[c]={},this._children[r][c]=!0),this._in[c]={},this._preds[c]={},this._out[c]={},this._sucs[c]={},++this._nodeCount,this)},o.prototype.node=function(c){return this._nodes[c]},o.prototype.hasNode=function(c){return e.has(this._nodes,c)},o.prototype.removeNode=function(c){var f=this;if(e.has(this._nodes,c)){var d=function(h){f.removeEdge(f._edgeObjs[h])};delete this._nodes[c],this._isCompound&&(this._removeFromParentsChildList(c),delete this._parent[c],e.each(this.children(c),function(h){f.setParent(h)}),delete this._children[c]),e.each(e.keys(this._in[c]),d),delete this._in[c],delete this._preds[c],e.each(e.keys(this._out[c]),d),delete this._out[c],delete this._sucs[c],--this._nodeCount}return this},o.prototype.setParent=function(c,f){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(f))f=r;else{f+="";for(var d=f;!e.isUndefined(d);d=this.parent(d))if(d===c)throw new Error("Setting "+f+" as parent of "+c+" would create a cycle");this.setNode(f)}return this.setNode(c),this._removeFromParentsChildList(c),this._parent[c]=f,this._children[f][c]=!0,this},o.prototype._removeFromParentsChildList=function(c){delete this._children[this._parent[c]][c]},o.prototype.parent=function(c){if(this._isCompound){var f=this._parent[c];if(f!==r)return f}},o.prototype.children=function(c){if(e.isUndefined(c)&&(c=r),this._isCompound){var f=this._children[c];if(f)return e.keys(f)}else{if(c===r)return this.nodes();if(this.hasNode(c))return[]}},o.prototype.predecessors=function(c){var f=this._preds[c];if(f)return e.keys(f)},o.prototype.successors=function(c){var f=this._sucs[c];if(f)return e.keys(f)},o.prototype.neighbors=function(c){var f=this.predecessors(c);if(f)return e.union(f,this.successors(c))},o.prototype.isLeaf=function(c){var f;return this.isDirected()?f=this.successors(c):f=this.neighbors(c),f.length===0},o.prototype.filterNodes=function(c){var f=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});f.setGraph(this.graph());var d=this;e.each(this._nodes,function(v,y){c(y)&&f.setNode(y,v)}),e.each(this._edgeObjs,function(v){f.hasNode(v.v)&&f.hasNode(v.w)&&f.setEdge(v,d.edge(v))});var h={};function g(v){var y=d.parent(v);return y===void 0||f.hasNode(y)?(h[v]=y,y):y in h?h[y]:g(y)}return this._isCompound&&e.each(f.nodes(),function(v){f.setParent(v,g(v))}),f},o.prototype.setDefaultEdgeLabel=function(c){return e.isFunction(c)||(c=e.constant(c)),this._defaultEdgeLabelFn=c,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return e.values(this._edgeObjs)},o.prototype.setPath=function(c,f){var d=this,h=arguments;return e.reduce(c,function(g,v){return h.length>1?d.setEdge(g,v,f):d.setEdge(g,v),v}),this},o.prototype.setEdge=function(){var c,f,d,h,g=!1,v=arguments[0];typeof v=="object"&&v!==null&&"v"in v?(c=v.v,f=v.w,d=v.name,arguments.length===2&&(h=arguments[1],g=!0)):(c=v,f=arguments[1],d=arguments[3],arguments.length>2&&(h=arguments[2],g=!0)),c=""+c,f=""+f,e.isUndefined(d)||(d=""+d);var y=a(this._isDirected,c,f,d);if(e.has(this._edgeLabels,y))return g&&(this._edgeLabels[y]=h),this;if(!e.isUndefined(d)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(c),this.setNode(f),this._edgeLabels[y]=g?h:this._defaultEdgeLabelFn(c,f,d);var E=l(this._isDirected,c,f,d);return c=E.v,f=E.w,Object.freeze(E),this._edgeObjs[y]=E,i(this._preds[f],c),i(this._sucs[c],f),this._in[f][y]=E,this._out[c][y]=E,this._edgeCount++,this},o.prototype.edge=function(c,f,d){var h=arguments.length===1?u(this._isDirected,arguments[0]):a(this._isDirected,c,f,d);return this._edgeLabels[h]},o.prototype.hasEdge=function(c,f,d){var h=arguments.length===1?u(this._isDirected,arguments[0]):a(this._isDirected,c,f,d);return e.has(this._edgeLabels,h)},o.prototype.removeEdge=function(c,f,d){var h=arguments.length===1?u(this._isDirected,arguments[0]):a(this._isDirected,c,f,d),g=this._edgeObjs[h];return g&&(c=g.v,f=g.w,delete this._edgeLabels[h],delete this._edgeObjs[h],s(this._preds[f],c),s(this._sucs[c],f),delete this._in[f][h],delete this._out[c][h],this._edgeCount--),this},o.prototype.inEdges=function(c,f){var d=this._in[c];if(d){var h=e.values(d);return f?e.filter(h,function(g){return g.v===f}):h}},o.prototype.outEdges=function(c,f){var d=this._out[c];if(d){var h=e.values(d);return f?e.filter(h,function(g){return g.w===f}):h}},o.prototype.nodeEdges=function(c,f){var d=this.inEdges(c,f);if(d)return d.concat(this.outEdges(c,f))};function i(c,f){c[f]?c[f]++:c[f]=1}function s(c,f){--c[f]||delete c[f]}function a(c,f,d,h){var g=""+f,v=""+d;if(!c&&g>v){var y=g;g=v,v=y}return g+n+v+n+(e.isUndefined(h)?t:h)}function l(c,f,d,h){var g=""+f,v=""+d;if(!c&&g>v){var y=g;g=v,v=y}var E={v:g,w:v};return h&&(E.name=h),E}function u(c,f){return a(c,f.v,f.w,f.name)}return C4}var N4,CX;function Nqe(){return CX||(CX=1,N4="2.1.8"),N4}var R4,NX;function Rqe(){return NX||(NX=1,R4={Graph:D7(),version:Nqe()}),R4}var O4,RX;function Oqe(){if(RX)return O4;RX=1;var e=Cl(),t=D7();O4={write:r,read:i};function r(s){var a={options:{directed:s.isDirected(),multigraph:s.isMultigraph(),compound:s.isCompound()},nodes:n(s),edges:o(s)};return e.isUndefined(s.graph())||(a.value=e.clone(s.graph())),a}function n(s){return e.map(s.nodes(),function(a){var l=s.node(a),u=s.parent(a),c={v:a};return e.isUndefined(l)||(c.value=l),e.isUndefined(u)||(c.parent=u),c})}function o(s){return e.map(s.edges(),function(a){var l=s.edge(a),u={v:a.v,w:a.w};return e.isUndefined(a.name)||(u.name=a.name),e.isUndefined(l)||(u.value=l),u})}function i(s){var a=new t(s.options).setGraph(s.value);return e.each(s.nodes,function(l){a.setNode(l.v,l.value),l.parent&&a.setParent(l.v,l.parent)}),e.each(s.edges,function(l){a.setEdge({v:l.v,w:l.w,name:l.name},l.value)}),a}return O4}var D4,OX;function Dqe(){if(OX)return D4;OX=1;var e=Cl();D4=t;function t(r){var n={},o=[],i;function s(a){e.has(n,a)||(n[a]=!0,i.push(a),e.each(r.successors(a),s),e.each(r.predecessors(a),s))}return e.each(r.nodes(),function(a){i=[],s(a),i.length&&o.push(i)}),o}return D4}var F4,DX;function Vce(){if(DX)return F4;DX=1;var e=Cl();F4=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(r){return r.key})},t.prototype.has=function(r){return e.has(this._keyIndices,r)},t.prototype.priority=function(r){var n=this._keyIndices[r];if(n!==void 0)return this._arr[n].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(r,n){var o=this._keyIndices;if(r=String(r),!e.has(o,r)){var i=this._arr,s=i.length;return o[r]=s,i.push({key:r,priority:n}),this._decrease(s),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var r=this._arr.pop();return delete this._keyIndices[r.key],this._heapify(0),r.key},t.prototype.decrease=function(r,n){var o=this._keyIndices[r];if(n>this._arr[o].priority)throw new Error("New priority is greater than current priority. Key: "+r+" Old: "+this._arr[o].priority+" New: "+n);this._arr[o].priority=n,this._decrease(o)},t.prototype._heapify=function(r){var n=this._arr,o=2*r,i=o+1,s=r;o>1,!(n[i].priority0&&(f=c.removeMin(),d=u[f],d.distance!==Number.POSITIVE_INFINITY);)l(f).forEach(h);return u}return B4}var M4,BX;function Fqe(){if(BX)return M4;BX=1;var e=Uce(),t=Cl();M4=r;function r(n,o,i){return t.transform(n.nodes(),function(s,a){s[a]=e(n,a,o,i)},{})}return M4}var L4,MX;function Yce(){if(MX)return L4;MX=1;var e=Cl();L4=t;function t(r){var n=0,o=[],i={},s=[];function a(l){var u=i[l]={onStack:!0,lowlink:n,index:n++};if(o.push(l),r.successors(l).forEach(function(d){e.has(i,d)?i[d].onStack&&(u.lowlink=Math.min(u.lowlink,i[d].index)):(a(d),u.lowlink=Math.min(u.lowlink,i[d].lowlink))}),u.lowlink===u.index){var c=[],f;do f=o.pop(),i[f].onStack=!1,c.push(f);while(l!==f);s.push(c)}}return r.nodes().forEach(function(l){e.has(i,l)||a(l)}),s}return L4}var j4,LX;function Bqe(){if(LX)return j4;LX=1;var e=Cl(),t=Yce();j4=r;function r(n){return e.filter(t(n),function(o){return o.length>1||o.length===1&&n.hasEdge(o[0],o[0])})}return j4}var z4,jX;function Mqe(){if(jX)return z4;jX=1;var e=Cl();z4=r;var t=e.constant(1);function r(o,i,s){return n(o,i||t,s||function(a){return o.outEdges(a)})}function n(o,i,s){var a={},l=o.nodes();return l.forEach(function(u){a[u]={},a[u][u]={distance:0},l.forEach(function(c){u!==c&&(a[u][c]={distance:Number.POSITIVE_INFINITY})}),s(u).forEach(function(c){var f=c.v===u?c.w:c.v,d=i(c);a[u][f]={distance:d,predecessor:u}})}),l.forEach(function(u){var c=a[u];l.forEach(function(f){var d=a[f];l.forEach(function(h){var g=d[u],v=c[h],y=d[h],E=g.distance+v.distance;E0;){if(u=l.removeMin(),e.has(a,u))s.setEdge(u,a[u]);else{if(f)throw new Error("Input graph is not connected: "+o);f=!0}o.nodeEdges(u).forEach(c)}return s}return G4}var K4,GX;function $qe(){return GX||(GX=1,K4={components:Dqe(),dijkstra:Uce(),dijkstraAll:Fqe(),findCycles:Bqe(),floydWarshall:Mqe(),isAcyclic:Lqe(),postorder:jqe(),preorder:zqe(),prim:Hqe(),tarjan:Yce(),topsort:Xce()}),K4}var V4,KX;function Pqe(){if(KX)return V4;KX=1;var e=Rqe();return V4={Graph:e.Graph,json:Oqe(),alg:$qe(),version:e.version},V4}var VA;if(typeof m7=="function")try{VA=Pqe()}catch{}VA||(VA=window.graphlib);var _u=VA,U4,VX;function qqe(){if(VX)return U4;VX=1;var e=Sce(),t=1,r=4;function n(o){return e(o,t|r)}return U4=n,U4}var Y4,UX;function _9(){if(UX)return Y4;UX=1;var e=Ev(),t=qf(),r=f9(),n=Il();function o(i,s,a){if(!n(a))return!1;var l=typeof s;return(l=="number"?t(a)&&r(s,a.length):l=="string"&&s in a)?e(a[s],i):!1}return Y4=o,Y4}var X4,YX;function Wqe(){if(YX)return X4;YX=1;var e=b9(),t=Ev(),r=_9(),n=fp(),o=Object.prototype,i=o.hasOwnProperty,s=e(function(a,l){a=Object(a);var u=-1,c=l.length,f=c>2?l[2]:void 0;for(f&&r(l[0],l[1],f)&&(c=1);++u-1?l[u?i[c]:c]:void 0}}return Q4=n,Q4}var Z4,QX;function Kqe(){if(QX)return Z4;QX=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Z4=t,Z4}var J4,ZX;function Vqe(){if(ZX)return J4;ZX=1;var e=Kqe(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return J4=r,J4}var eD,JX;function Uqe(){if(JX)return eD;JX=1;var e=Vqe(),t=Il(),r=Av(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function l(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var c=typeof u.valueOf=="function"?u.valueOf():u;u=t(c)?c+"":c}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=i.test(u);return f||s.test(u)?a(u.slice(2),f?2:8):o.test(u)?n:+u}return eD=l,eD}var tD,eQ;function Zce(){if(eQ)return tD;eQ=1;var e=Uqe(),t=1/0,r=17976931348623157e292;function n(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-t){var i=o<0?-1:1;return i*r}return o===o?o:0}return tD=n,tD}var rD,tQ;function Yqe(){if(tQ)return rD;tQ=1;var e=Zce();function t(r){var n=e(r),o=n%1;return n===n?o?n-o:n:0}return rD=t,rD}var nD,rQ;function Xqe(){if(rQ)return nD;rQ=1;var e=Wce(),t=Wf(),r=Yqe(),n=Math.max;function o(i,s,a){var l=i==null?0:i.length;if(!l)return-1;var u=a==null?0:r(a);return u<0&&(u=n(l+u,0)),e(i,t(s,3),u)}return nD=o,nD}var oD,nQ;function Qqe(){if(nQ)return oD;nQ=1;var e=Gqe(),t=Xqe(),r=e(t);return oD=r,oD}var iD,oQ;function Jce(){if(oQ)return iD;oQ=1;var e=O7();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return iD=t,iD}var sD,iQ;function Zqe(){if(iQ)return sD;iQ=1;var e=I7(),t=wce(),r=fp();function n(o,i){return o==null?o:e(o,t(i),r)}return sD=n,sD}var aD,sQ;function Jqe(){if(sQ)return aD;sQ=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return aD=e,aD}var lD,aQ;function eWe(){if(aQ)return lD;aQ=1;var e=u9(),t=C7(),r=Wf();function n(o,i){var s={};return i=r(i,3),t(o,function(a,l,u){e(s,l,i(a,l,u))}),s}return lD=n,lD}var uD,lQ;function F7(){if(lQ)return uD;lQ=1;var e=Av();function t(r,n,o){for(var i=-1,s=r.length;++ir}return cD=e,cD}var fD,cQ;function rWe(){if(cQ)return fD;cQ=1;var e=F7(),t=tWe(),r=dp();function n(o){return o&&o.length?e(o,r,t):void 0}return fD=n,fD}var dD,fQ;function efe(){if(fQ)return dD;fQ=1;var e=u9(),t=Ev();function r(n,o,i){(i!==void 0&&!t(n[o],i)||i===void 0&&!(o in n))&&e(n,o,i)}return dD=r,dD}var hD,dQ;function nWe(){if(dQ)return hD;dQ=1;var e=up(),t=p9(),r=Ic(),n="[object Object]",o=Function.prototype,i=Object.prototype,s=o.toString,a=i.hasOwnProperty,l=s.call(Object);function u(c){if(!r(c)||e(c)!=n)return!1;var f=t(c);if(f===null)return!0;var d=a.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&s.call(d)==l}return hD=u,hD}var pD,hQ;function tfe(){if(hQ)return pD;hQ=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return pD=e,pD}var gD,pQ;function oWe(){if(pQ)return gD;pQ=1;var e=oE(),t=fp();function r(n){return e(n,t(n))}return gD=r,gD}var vD,gQ;function iWe(){if(gQ)return vD;gQ=1;var e=efe(),t=cce(),r=bce(),n=fce(),o=Ece(),i=iE(),s=Co(),a=Gce(),l=wv(),u=nE(),c=Il(),f=nWe(),d=sE(),h=tfe(),g=oWe();function v(y,E,_,S,b,k,T){var x=h(y,_),I=h(E,_),C=T.get(I);if(C){e(y,_,C);return}var R=k?k(x,I,_+"",y,E,T):void 0,D=R===void 0;if(D){var L=s(I),M=!L&&l(I),W=!L&&!M&&d(I);R=I,L||M||W?s(x)?R=x:a(x)?R=n(x):M?(D=!1,R=t(I,!0)):W?(D=!1,R=r(I,!0)):R=[]:f(I)||i(I)?(R=x,i(x)?R=g(x):(!c(x)||u(x))&&(R=o(I))):D=!1}D&&(T.set(I,R),b(R,I,S,k,T),T.delete(I)),e(y,_,R)}return vD=v,vD}var mD,vQ;function sWe(){if(vQ)return mD;vQ=1;var e=l9(),t=efe(),r=I7(),n=iWe(),o=Il(),i=fp(),s=tfe();function a(l,u,c,f,d){l!==u&&r(u,function(h,g){if(d||(d=new e),o(h))n(l,u,g,c,a,f,d);else{var v=f?f(s(l,g),h,g+"",l,u,d):void 0;v===void 0&&(v=h),t(l,g,v)}},i)}return mD=a,mD}var yD,mQ;function aWe(){if(mQ)return yD;mQ=1;var e=b9(),t=_9();function r(n){return e(function(o,i){var s=-1,a=i.length,l=a>1?i[a-1]:void 0,u=a>2?i[2]:void 0;for(l=n.length>3&&typeof l=="function"?(a--,l):void 0,u&&t(i[0],i[1],u)&&(l=a<3?void 0:l,a=1),o=Object(o);++sn||a&&l&&c&&!u&&!f||i&&l&&c||!o&&c||!s)return 1;if(!i&&!a&&!f&&r=u)return c;var f=o[i];return c*(f=="desc"?-1:1)}}return r.index-n.index}return FD=t,FD}var BD,FQ;function wWe(){if(FQ)return BD;FQ=1;var e=v9(),t=y9(),r=Wf(),n=zce(),o=_We(),i=d9(),s=SWe(),a=dp(),l=Co();function u(c,f,d){f.length?f=e(f,function(v){return l(v)?function(y){return t(y,v.length===1?v[0]:v)}:v}):f=[a];var h=-1;f=e(f,i(r));var g=n(c,function(v,y,E){var _=e(f,function(S){return S(v)});return{criteria:_,index:++h,value:v}});return o(g,function(v,y){return s(v,y,d)})}return BD=u,BD}var MD,BQ;function kWe(){if(BQ)return MD;BQ=1;var e=O7(),t=wWe(),r=b9(),n=_9(),o=r(function(i,s){if(i==null)return[];var a=s.length;return a>1&&n(i,s[0],s[1])?s=[]:a>2&&n(s[0],s[1],s[2])&&(s=[s[0]]),t(i,e(s,1),[])});return MD=o,MD}var LD,MQ;function AWe(){if(MQ)return LD;MQ=1;var e=Oce(),t=0;function r(n){var o=++t;return e(n)+o}return LD=r,LD}var jD,LQ;function xWe(){if(LQ)return jD;LQ=1;function e(t,r,n){for(var o=-1,i=t.length,s=r.length,a={};++o0;--a)if(s=t[a].dequeue(),s){n=n.concat(HD(e,t,r,s,!0));break}}}return n}function HD(e,t,r,n,o){var i=o?[]:void 0;return cf.forEach(e.inEdges(n.v),function(s){var a=e.edge(s),l=e.node(s.v);o&&i.push({v:s.v,w:s.w}),l.out-=a,$B(t,r,l)}),cf.forEach(e.outEdges(n.v),function(s){var a=e.edge(s),l=s.w,u=e.node(l);u.in-=a,$B(t,r,u)}),e.removeNode(n.v),i}function MWe(e,t){var r=new NWe,n=0,o=0;cf.forEach(e.nodes(),function(a){r.setNode(a,{v:a,in:0,out:0})}),cf.forEach(e.edges(),function(a){var l=r.edge(a.v,a.w)||0,u=t(a),c=l+u;r.setEdge(a.v,a.w,c),o=Math.max(o,r.node(a.v).out+=u),n=Math.max(n,r.node(a.w).in+=u)});var i=cf.range(o+n+3).map(function(){return new RWe}),s=n+1;return cf.forEach(r.nodes(),function(a){$B(i,s,r.node(a))}),{graph:r,buckets:i,zeroIdx:s}}function $B(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}var kh=$n,LWe=OWe,jWe={run:zWe,undo:$We};function zWe(e){var t=e.graph().acyclicer==="greedy"?LWe(e,r(e)):HWe(e);kh.forEach(t,function(n){var o=e.edge(n);e.removeEdge(n),o.forwardName=n.name,o.reversed=!0,e.setEdge(n.w,n.v,o,kh.uniqueId("rev"))});function r(n){return function(o){return n.edge(o).weight}}}function HWe(e){var t=[],r={},n={};function o(i){kh.has(n,i)||(n[i]=!0,r[i]=!0,kh.forEach(e.outEdges(i),function(s){kh.has(r,s.w)?t.push(s):o(s.w)}),delete r[i])}return kh.forEach(e.nodes(),o),t}function $We(e){kh.forEach(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}})}var jr=$n,ofe=_u.Graph,$s={addDummyNode:ife,simplify:PWe,asNonCompoundGraph:qWe,successorWeights:WWe,predecessorWeights:GWe,intersectRect:KWe,buildLayerMatrix:VWe,normalizeRanks:UWe,removeEmptyRanks:YWe,addBorderNode:XWe,maxRank:sfe,partition:QWe,time:ZWe,notime:JWe};function ife(e,t,r,n){var o;do o=jr.uniqueId(n);while(e.hasNode(o));return r.dummy=t,e.setNode(o,r),o}function PWe(e){var t=new ofe().setGraph(e.graph());return jr.forEach(e.nodes(),function(r){t.setNode(r,e.node(r))}),jr.forEach(e.edges(),function(r){var n=t.edge(r.v,r.w)||{weight:0,minlen:1},o=e.edge(r);t.setEdge(r.v,r.w,{weight:n.weight+o.weight,minlen:Math.max(n.minlen,o.minlen)})}),t}function qWe(e){var t=new ofe({multigraph:e.isMultigraph()}).setGraph(e.graph());return jr.forEach(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),jr.forEach(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}function WWe(e){var t=jr.map(e.nodes(),function(r){var n={};return jr.forEach(e.outEdges(r),function(o){n[o.w]=(n[o.w]||0)+e.edge(o).weight}),n});return jr.zipObject(e.nodes(),t)}function GWe(e){var t=jr.map(e.nodes(),function(r){var n={};return jr.forEach(e.inEdges(r),function(o){n[o.v]=(n[o.v]||0)+e.edge(o).weight}),n});return jr.zipObject(e.nodes(),t)}function KWe(e,t){var r=e.x,n=e.y,o=t.x-r,i=t.y-n,s=e.width/2,a=e.height/2;if(!o&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var l,u;return Math.abs(i)*s>Math.abs(o)*a?(i<0&&(a=-a),l=a*o/i,u=a):(o<0&&(s=-s),l=s,u=s*i/o),{x:r+l,y:n+u}}function VWe(e){var t=jr.map(jr.range(sfe(e)+1),function(){return[]});return jr.forEach(e.nodes(),function(r){var n=e.node(r),o=n.rank;jr.isUndefined(o)||(t[o][n.order]=r)}),t}function UWe(e){var t=jr.min(jr.map(e.nodes(),function(r){return e.node(r).rank}));jr.forEach(e.nodes(),function(r){var n=e.node(r);jr.has(n,"rank")&&(n.rank-=t)})}function YWe(e){var t=jr.min(jr.map(e.nodes(),function(i){return e.node(i).rank})),r=[];jr.forEach(e.nodes(),function(i){var s=e.node(i).rank-t;r[s]||(r[s]=[]),r[s].push(i)});var n=0,o=e.graph().nodeRankFactor;jr.forEach(r,function(i,s){jr.isUndefined(i)&&s%o!==0?--n:n&&jr.forEach(i,function(a){e.node(a).rank+=n})})}function XWe(e,t,r,n){var o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=n),ife(e,"border",o,t)}function sfe(e){return jr.max(jr.map(e.nodes(),function(t){var r=e.node(t).rank;if(!jr.isUndefined(r))return r}))}function QWe(e,t){var r={lhs:[],rhs:[]};return jr.forEach(e,function(n){t(n)?r.lhs.push(n):r.rhs.push(n)}),r}function ZWe(e,t){var r=jr.now();try{return t()}finally{console.log(e+" time: "+(jr.now()-r)+"ms")}}function JWe(e,t){return t()}var afe=$n,eGe=$s,tGe={run:rGe,undo:oGe};function rGe(e){e.graph().dummyChains=[],afe.forEach(e.edges(),function(t){nGe(e,t)})}function nGe(e,t){var r=t.v,n=e.node(r).rank,o=t.w,i=e.node(o).rank,s=t.name,a=e.edge(t),l=a.labelRank;if(i!==n+1){e.removeEdge(t);var u,c,f;for(f=0,++n;ns.lim&&(a=s,l=!0);var u=Rf.filter(t.edges(),function(c){return l===zQ(e,e.node(c.v),a)&&l!==zQ(e,e.node(c.w),a)});return Rf.minBy(u,function(c){return hGe(t,c)})}function hfe(e,t,r,n){var o=r.v,i=r.w;e.removeEdge(o,i),e.setEdge(n.v,n.w,{}),M7(e),B7(e,t),_Ge(e,t)}function _Ge(e,t){var r=Rf.find(e.nodes(),function(o){return!t.node(o).parent}),n=gGe(e,r);n=n.slice(1),Rf.forEach(n,function(o){var i=e.node(o).parent,s=t.edge(o,i),a=!1;s||(s=t.edge(i,o),a=!0),t.node(o).rank=t.node(i).rank+(a?s.minlen:-s.minlen)})}function EGe(e,t,r){return e.hasEdge(t,r)}function zQ(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}var SGe=S9,pfe=SGe.longestPath,wGe=lfe,kGe=yGe,AGe=xGe;function xGe(e){switch(e.graph().ranker){case"network-simplex":HQ(e);break;case"tight-tree":IGe(e);break;case"longest-path":TGe(e);break;default:HQ(e)}}var TGe=pfe;function IGe(e){pfe(e),wGe(e)}function HQ(e){kGe(e)}var PB=$n,CGe=NGe;function NGe(e){var t=OGe(e);PB.forEach(e.graph().dummyChains,function(r){for(var n=e.node(r),o=n.edgeObj,i=RGe(e,t,o.v,o.w),s=i.path,a=i.lca,l=0,u=s[l],c=!0;r!==o.w;){if(n=e.node(r),c){for(;(u=s[l])!==a&&e.node(u).maxRanks||a>t[l].lim));for(u=l,l=n;(l=e.parent(l))!==u;)i.push(l);return{path:o.concat(i.reverse()),lca:u}}function OGe(e){var t={},r=0;function n(o){var i=r;PB.forEach(e.children(o),n),t[o]={low:i,lim:r++}}return PB.forEach(e.children(),n),t}var ff=$n,qB=$s,DGe={run:FGe,cleanup:LGe};function FGe(e){var t=qB.addDummyNode(e,"root",{},"_root"),r=BGe(e),n=ff.max(ff.values(r))-1,o=2*n+1;e.graph().nestingRoot=t,ff.forEach(e.edges(),function(s){e.edge(s).minlen*=o});var i=MGe(e)+1;ff.forEach(e.children(),function(s){gfe(e,t,o,i,n,r,s)}),e.graph().nodeRankFactor=o}function gfe(e,t,r,n,o,i,s){var a=e.children(s);if(!a.length){s!==t&&e.setEdge(t,s,{weight:0,minlen:r});return}var l=qB.addBorderNode(e,"_bt"),u=qB.addBorderNode(e,"_bb"),c=e.node(s);e.setParent(l,s),c.borderTop=l,e.setParent(u,s),c.borderBottom=u,ff.forEach(a,function(f){gfe(e,t,r,n,o,i,f);var d=e.node(f),h=d.borderTop?d.borderTop:f,g=d.borderBottom?d.borderBottom:f,v=d.borderTop?n:2*n,y=h!==g?1:o-i[s]+1;e.setEdge(l,h,{weight:v,minlen:y,nestingEdge:!0}),e.setEdge(g,u,{weight:v,minlen:y,nestingEdge:!0})}),e.parent(s)||e.setEdge(t,l,{weight:0,minlen:o+i[s]})}function BGe(e){var t={};function r(n,o){var i=e.children(n);i&&i.length&&ff.forEach(i,function(s){r(s,o+1)}),t[n]=o}return ff.forEach(e.children(),function(n){r(n,1)}),t}function MGe(e){return ff.reduce(e.edges(),function(t,r){return t+e.edge(r).weight},0)}function LGe(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,ff.forEach(e.edges(),function(r){var n=e.edge(r);n.nestingEdge&&e.removeEdge(r)})}var $D=$n,jGe=$s,zGe=HGe;function HGe(e){function t(r){var n=e.children(r),o=e.node(r);if(n.length&&$D.forEach(n,t),$D.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var i=o.minRank,s=o.maxRank+1;i0;)c%2&&(f+=a[c+1]),c=c-1>>1,a[c]+=u.weight;l+=u.weight*f})),l}var qQ=$n,QGe=ZGe;function ZGe(e,t){return qQ.map(t,function(r){var n=e.inEdges(r);if(n.length){var o=qQ.reduce(n,function(i,s){var a=e.edge(s),l=e.node(s.v);return{sum:i.sum+a.weight*l.order,weight:i.weight+a.weight}},{sum:0,weight:0});return{v:r,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:r}})}var ia=$n,JGe=eKe;function eKe(e,t){var r={};ia.forEach(e,function(o,i){var s=r[o.v]={indegree:0,in:[],out:[],vs:[o.v],i};ia.isUndefined(o.barycenter)||(s.barycenter=o.barycenter,s.weight=o.weight)}),ia.forEach(t.edges(),function(o){var i=r[o.v],s=r[o.w];!ia.isUndefined(i)&&!ia.isUndefined(s)&&(s.indegree++,i.out.push(r[o.w]))});var n=ia.filter(r,function(o){return!o.indegree});return tKe(n)}function tKe(e){var t=[];function r(i){return function(s){s.merged||(ia.isUndefined(s.barycenter)||ia.isUndefined(i.barycenter)||s.barycenter>=i.barycenter)&&rKe(i,s)}}function n(i){return function(s){s.in.push(i),--s.indegree===0&&e.push(s)}}for(;e.length;){var o=e.pop();t.push(o),ia.forEach(o.in.reverse(),r(o)),ia.forEach(o.out,n(o))}return ia.map(ia.filter(t,function(i){return!i.merged}),function(i){return ia.pick(i,["vs","i","barycenter","weight"])})}function rKe(e,t){var r=0,n=0;e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}var dy=$n,nKe=$s,oKe=iKe;function iKe(e,t){var r=nKe.partition(e,function(c){return dy.has(c,"barycenter")}),n=r.lhs,o=dy.sortBy(r.rhs,function(c){return-c.i}),i=[],s=0,a=0,l=0;n.sort(sKe(!!t)),l=WQ(i,o,l),dy.forEach(n,function(c){l+=c.vs.length,i.push(c.vs),s+=c.barycenter*c.weight,a+=c.weight,l=WQ(i,o,l)});var u={vs:dy.flatten(i,!0)};return a&&(u.barycenter=s/a,u.weight=a),u}function WQ(e,t,r){for(var n;t.length&&(n=dy.last(t)).i<=r;)t.pop(),e.push(n.vs),r++;return r}function sKe(e){return function(t,r){return t.barycenterr.barycenter?1:e?r.i-t.i:t.i-r.i}}var Od=$n,aKe=QGe,lKe=JGe,uKe=oKe,cKe=mfe;function mfe(e,t,r,n){var o=e.children(t),i=e.node(t),s=i?i.borderLeft:void 0,a=i?i.borderRight:void 0,l={};s&&(o=Od.filter(o,function(g){return g!==s&&g!==a}));var u=aKe(e,o);Od.forEach(u,function(g){if(e.children(g.v).length){var v=mfe(e,g.v,r,n);l[g.v]=v,Od.has(v,"barycenter")&&dKe(g,v)}});var c=lKe(u,r);fKe(c,l);var f=uKe(c,n);if(s&&(f.vs=Od.flatten([s,f.vs,a],!0),e.predecessors(s).length)){var d=e.node(e.predecessors(s)[0]),h=e.node(e.predecessors(a)[0]);Od.has(f,"barycenter")||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+d.order+h.order)/(f.weight+2),f.weight+=2}return f}function fKe(e,t){Od.forEach(e,function(r){r.vs=Od.flatten(r.vs.map(function(n){return t[n]?t[n].vs:n}),!0)})}function dKe(e,t){Od.isUndefined(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}var hy=$n,hKe=_u.Graph,pKe=gKe;function gKe(e,t,r){var n=vKe(e),o=new hKe({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(i){return e.node(i)});return hy.forEach(e.nodes(),function(i){var s=e.node(i),a=e.parent(i);(s.rank===t||s.minRank<=t&&t<=s.maxRank)&&(o.setNode(i),o.setParent(i,a||n),hy.forEach(e[r](i),function(l){var u=l.v===i?l.w:l.v,c=o.edge(u,i),f=hy.isUndefined(c)?0:c.weight;o.setEdge(u,i,{weight:e.edge(l).weight+f})}),hy.has(s,"minRank")&&o.setNode(i,{borderLeft:s.borderLeft[t],borderRight:s.borderRight[t]}))}),o}function vKe(e){for(var t;e.hasNode(t=hy.uniqueId("_root")););return t}var mKe=$n,yKe=bKe;function bKe(e,t,r){var n={},o;mKe.forEach(r,function(i){for(var s=e.parent(i),a,l;s;){if(a=e.parent(s),a?(l=n[a],n[a]=s):(l=o,o=s),l&&l!==s){t.setEdge(l,s);return}s=a}})}var Jd=$n,_Ke=KGe,EKe=UGe,SKe=cKe,wKe=pKe,kKe=yKe,AKe=_u.Graph,GQ=$s,xKe=TKe;function TKe(e){var t=GQ.maxRank(e),r=KQ(e,Jd.range(1,t+1),"inEdges"),n=KQ(e,Jd.range(t-1,-1,-1),"outEdges"),o=_Ke(e);VQ(e,o);for(var i=Number.POSITIVE_INFINITY,s,a=0,l=0;l<4;++a,++l){IKe(a%2?r:n,a%4>=2),o=GQ.buildLayerMatrix(e);var u=EKe(e,o);uu)&&L7(r,d,c)})})}function o(i,s){var a=-1,l,u=0;return Yt.forEach(s,function(c,f){if(e.node(c).dummy==="border"){var d=e.predecessors(c);d.length&&(l=e.node(d[0]).order,n(s,u,f,a,l),u=f,a=l)}n(s,u,s.length,l,i.length)}),s}return Yt.reduce(t,o),r}function OKe(e,t){if(e.node(t).dummy)return Yt.find(e.predecessors(t),function(r){return e.node(r).dummy})}function L7(e,t,r){if(t>r){var n=t;t=r,r=n}var o=e[t];o||(e[t]=o={}),o[r]=!0}function _fe(e,t,r){if(t>r){var n=t;t=r,r=n}return Yt.has(e[t],r)}function Efe(e,t,r,n){var o={},i={},s={};return Yt.forEach(t,function(a){Yt.forEach(a,function(l,u){o[l]=l,i[l]=l,s[l]=u})}),Yt.forEach(t,function(a){var l=-1;Yt.forEach(a,function(u){var c=n(u);if(c.length){c=Yt.sortBy(c,function(v){return s[v]});for(var f=(c.length-1)/2,d=Math.floor(f),h=Math.ceil(f);d<=h;++d){var g=c[d];i[u]===u&&lN.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",children:[N.jsxs("defs",{children:[N.jsxs("linearGradient",{id:"a5efbc52-c9a4-425f-9d94-50e000195659",x1:"9",y1:"18.967",x2:"9",y2:"3.398",gradientUnits:"userSpaceOnUse",children:[N.jsx("stop",{offset:"0",stopColor:"#0078d4"}),N.jsx("stop",{offset:"0.156",stopColor:"#1380da"}),N.jsx("stop",{offset:"0.528",stopColor:"#3c91e5"}),N.jsx("stop",{offset:"0.822",stopColor:"#559cec"}),N.jsx("stop",{offset:"1",stopColor:"#5ea0ef"})]}),N.jsxs("linearGradient",{id:"a110d41d-e4ca-48ee-9efe-328e60a20dcc",x1:"9",y1:"5.019",x2:"9",y2:"13.676",gradientUnits:"userSpaceOnUse",children:[N.jsx("stop",{offset:"0.22",stopColor:"#fff"}),N.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]}),N.jsxs("linearGradient",{id:"bcf81335-a15c-4e8a-85c4-cb14c4ef74b0",x1:"8.991",y1:"2.883",x2:"8.991",y2:"11.32",gradientUnits:"userSpaceOnUse",children:[N.jsx("stop",{offset:"0.22",stopColor:"#fff"}),N.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]})]}),N.jsx("g",{id:"b5d797c5-507f-4358-b61e-ca040c36ef52",children:N.jsxs("g",{children:[N.jsx("path",{d:"M.038,9.142,4.4,16.69a.285.285,0,0,0,.246.142h8.716a.285.285,0,0,0,.246-.142l4.358-7.548a.283.283,0,0,0,0-.284L13.6,1.31a.285.285,0,0,0-.246-.142H4.642A.285.285,0,0,0,4.4,1.31L.038,8.858A.283.283,0,0,0,.038,9.142Z",fill:"url(#a5efbc52-c9a4-425f-9d94-50e000195659)"}),N.jsxs("g",{children:[N.jsx("path",{id:"a81cd782-d573-434f-a6f1-758ffbb6f88b",d:"M12.239,6.083l.048.042a.085.085,0,0,0,.115,0l.447-.374.808-1.334a.083.083,0,0,0,0-.1l-.138-.145a.085.085,0,0,0-.1,0l-1.273.863L11.78,5.5a.086.086,0,0,0,0,.109l.049.048L9.2,8.394l-.543-.6-.6.6a1.093,1.093,0,0,1-.26.911.945.945,0,0,1-.826.3L4.376,12.232a.163.163,0,0,0,0,.231l0,.005,1.255,1.3a.162.162,0,0,0,.23.011l.011-.011L8.4,11.14a1.037,1.037,0,0,1,.3-.869.964.964,0,0,1,.826-.3l.6-.6L9.6,8.78Z",opacity:"0.4",fill:"url(#a110d41d-e4ca-48ee-9efe-328e60a20dcc)"}),N.jsx("path",{d:"M13.283,12.057l-.6-.645L8.648,7.278h0l-.2-.218a2.242,2.242,0,0,0-.525-2.2,2.067,2.067,0,0,0-1.865-.6.09.09,0,0,0-.065.11.088.088,0,0,0,.017.035l1.05,1.068a.091.091,0,0,1,0,.085L6.808,6.65a.084.084,0,0,1-.061.06l-1.074.3a.084.084,0,0,1-.084,0l-1.02-1.08a.084.084,0,0,0-.145.054,2.19,2.19,0,0,0,.6,1.919,2.035,2.035,0,0,0,2.034.543l.036.043.23.235h0l4.592,4.828a.954.954,0,0,0,1.34.048l.048-.048a1.017,1.017,0,0,0,.284-.724A1.117,1.117,0,0,0,13.283,12.057Z",fill:"url(#bcf81335-a15c-4e8a-85c4-cb14c4ef74b0)"})]})]})})]}),xVe=()=>N.jsxs("svg",{fill:"currentColor",width:"16px",height:"16px",viewBox:"0 0 2048 2048",role:"img",xmlns:"http://www.w3.org/2000/svg",children:[N.jsx("title",{children:"OpenAI icon"}),N.jsx("path",{d:"M832 676l575 288v760l-575 288-575-288V964l575-288zm0 144l-368 184 368 183 368-183-368-184zm-447 825l383 191v-538l-383-191v538zm894 0v-538l-383 191v538l383-191zm577-733q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9zM704 496q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9zm1206-48q0 23-15 38t-39 16q-27 0-57 11t-58 28-54 37-45 40q-19 19-39 44t-38 54-28 59-11 57q0 23-15 38t-39 16q-23 0-38-15t-16-39q0-27-11-57t-28-58-37-54-40-45q-19-19-44-39t-54-38-59-28-57-11q-23 0-38-15t-16-39q0-23 15-38t39-16q27 0 57-11t58-28 54-37 45-40q19-19 39-44t38-54 28-59 11-57q0-23 15-38t39-16q23 0 38 15t16 39q0 27 11 57t28 58 37 54 40 45q19 19 44 39t54 38 59 28 57 11q23 0 38 15t16 39zm-438 212q38-65 92-119t120-93q-65-38-119-92t-93-120q-38 65-92 119t-120 93q65 38 119 92t93 120z"})]}),TVe=()=>N.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:N.jsx("path",{d:"M9.5 6.50238C9.5 6.22624 9.72386 6.00238 10 6.00238C10.2761 6.00238 10.5 6.22624 10.5 6.50238V7.50391C10.5 7.78005 10.2761 8.00391 10 8.00391C9.72386 8.00391 9.5 7.78005 9.5 7.50391V6.50238ZM12.8506 7.44332C12.6553 7.24806 12.3388 7.24806 12.1435 7.44332L11.4353 8.15151C11.2401 8.34677 11.2401 8.66335 11.4353 8.85861C11.6306 9.05388 11.9472 9.05388 12.1424 8.85861L12.8506 8.15043C13.0459 7.95517 13.0459 7.63858 12.8506 7.44332ZM7.8521 7.44332C7.65684 7.24806 7.34026 7.24806 7.145 7.44332C6.94973 7.63858 6.94973 7.95517 7.145 8.15043L7.85318 8.85861C8.04844 9.05388 8.36503 9.05388 8.56029 8.85861C8.75555 8.66335 8.75555 8.34677 8.56029 8.15151L7.8521 7.44332ZM10 2C13.3137 2 16 4.59693 16 7.80041C16 9.47737 15.2546 11.0164 13.7961 12.3942C13.7324 12.4544 13.6831 12.5269 13.6512 12.6065L13.6251 12.6883L12.6891 16.6051C12.5048 17.3763 11.8236 17.935 11.0181 17.9947L10.8748 18H9.12546C8.30655 18 7.59 17.4839 7.34866 16.7385L7.31108 16.6047L6.37626 12.6886C6.34955 12.5766 6.29016 12.4745 6.20516 12.3942C4.8153 11.0819 4.07265 9.62354 4.00507 8.03903L4 7.80041L4.00321 7.60894C4.1077 4.49409 6.75257 2 10 2ZM7.955 15L8.27386 16.3344L8.30004 16.4305C8.39695 16.7298 8.67583 16.9517 9.0116 16.993L9.12546 17L10.8379 17.0007L10.9442 16.9974C11.2865 16.9721 11.5726 16.7609 11.6854 16.4718L11.7165 16.3727L12.045 15H7.955ZM10 3C7.36782 3 5.21188 4.95301 5.0151 7.41357L5.00307 7.62569L4.99977 7.77916L5.00416 7.99642C5.05977 9.30026 5.67758 10.5208 6.89167 11.6671C7.07995 11.8449 7.22191 12.0647 7.30572 12.3078L7.34894 12.4564L7.716 14H9.50024V9.49707C9.50024 9.22093 9.7241 8.99707 10.0002 8.99707C10.2764 8.99707 10.5002 9.22093 10.5002 9.49707V14H12.285L12.6722 12.3851L12.7231 12.2343C12.8091 12.0198 12.9409 11.8265 13.1094 11.6673C14.3825 10.4646 15 9.18054 15 7.80041C15 5.15693 12.7689 3 10 3Z",fill:"currentColor"})}),IVe=()=>N.jsxs("svg",{width:"16px",height:"16px",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0164 2C10.8193 2 9.03825 3.72453 9.03825 5.85185V8.51852H15.9235V9.25926H5.97814C3.78107 9.25926 2 10.9838 2 13.1111L2 18.8889C2 21.0162 3.78107 22.7407 5.97814 22.7407H8.27322V19.4815C8.27322 17.3542 10.0543 15.6296 12.2514 15.6296H19.5956C21.4547 15.6296 22.9617 14.1704 22.9617 12.3704V5.85185C22.9617 3.72453 21.1807 2 18.9836 2H13.0164ZM12.0984 6.74074C12.8589 6.74074 13.4754 6.14378 13.4754 5.40741C13.4754 4.67103 12.8589 4.07407 12.0984 4.07407C11.3378 4.07407 10.7213 4.67103 10.7213 5.40741C10.7213 6.14378 11.3378 6.74074 12.0984 6.74074Z",fill:"#327EBD"}),N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.9834 30C21.1805 30 22.9616 28.2755 22.9616 26.1482V23.4815L16.0763 23.4815L16.0763 22.7408L26.0217 22.7408C28.2188 22.7408 29.9998 21.0162 29.9998 18.8889V13.1111C29.9998 10.9838 28.2188 9.25928 26.0217 9.25928L23.7266 9.25928V12.5185C23.7266 14.6459 21.9455 16.3704 19.7485 16.3704L12.4042 16.3704C10.5451 16.3704 9.03809 17.8296 9.03809 19.6296L9.03809 26.1482C9.03809 28.2755 10.8192 30 13.0162 30H18.9834ZM19.9015 25.2593C19.1409 25.2593 18.5244 25.8562 18.5244 26.5926C18.5244 27.329 19.1409 27.9259 19.9015 27.9259C20.662 27.9259 21.2785 27.329 21.2785 26.5926C21.2785 25.8562 20.662 25.2593 19.9015 25.2593Z",fill:"#FFDA4B"})]}),CVe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20aria-label='TypeScript'%20role='img'%20viewBox='0%200%20512%20512'%3e%3crect%20width='512'%20height='512'%20rx='15%25'%20fill='%233178c6'/%3e%3cpath%20fill='%23ffffff'%20d='m233%20284h64v-41H118v41h64v183h51zm84%20173c8.1%204.2%2018%207.3%2029%209.4s23%203.1%2035%203.1c12%200%2023-1.1%2034-3.4c11-2.3%2020-6.1%2028-11c8.1-5.3%2015-12%2019-21s7.1-19%207.1-32c0-9.1-1.4-17-4.1-24s-6.6-13-12-18c-5.1-5.3-11-10-18-14s-15-8.2-24-12c-6.6-2.7-12-5.3-18-7.9c-5.2-2.6-9.7-5.2-13-7.8c-3.7-2.7-6.5-5.5-8.5-8.4c-2-3-3-6.3-3-10c0-3.4.89-6.5%202.7-9.3s4.3-5.1%207.5-7.1c3.2-2%207.2-3.5%2012-4.6c4.7-1.1%209.9-1.6%2016-1.6c4.2%200%208.6.31%2013%20.94c4.6.63%209.3%201.6%2014%202.9c4.7%201.3%209.3%202.9%2014%204.9c4.4%202%208.5%204.3%2012%206.9v-47c-7.6-2.9-16-5.1-25-6.5s-19-2.1-31-2.1c-12%200-23%201.3-34%203.8s-20%206.5-28%2012c-8.1%205.4-14%2012-19%2021c-4.7%208.4-7%2018-7%2030c0%2015%204.3%2028%2013%2038c8.6%2011%2022%2019%2039%2027c6.9%202.8%2013%205.6%2019%208.3s11%205.5%2015%208.4c4.3%202.9%207.7%206.1%2010%209.5c2.5%203.4%203.8%207.4%203.8%2012c0%203.2-.78%206.2-2.3%209s-3.9%205.2-7.1%207.2s-7.1%203.6-12%204.8c-4.7%201.1-10%201.7-17%201.7c-11%200-22-1.9-32-5.7c-11-3.8-21-9.5-28.1-15.44z'/%3e%3c/svg%3e",mw=()=>N.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",role:"img",children:[N.jsx("defs",{children:N.jsxs("linearGradient",{id:"fb5d9d20-fc2c-4e2c-bffd-dc236176d8b2",x1:"-6428.21",y1:"9646.124",x2:"-6428.21",y2:"9617.899",gradientTransform:"matrix(0.5, 0, 0, -0.5, 3224.856, 4823.856)",gradientUnits:"userSpaceOnUse",children:[N.jsx("stop",{offset:"0",stopColor:"#5ea0ef"}),N.jsx("stop",{offset:"0.178",stopColor:"#589eed"}),N.jsx("stop",{offset:"0.406",stopColor:"#4897e9"}),N.jsx("stop",{offset:"0.662",stopColor:"#2e8ce1"}),N.jsx("stop",{offset:"0.936",stopColor:"#0a7cd7"}),N.jsx("stop",{offset:"1",stopColor:"#0078d4"})]})}),N.jsx("g",{id:"a05a9809-540f-4ec8-9a73-07896b5e7f5c",children:N.jsxs("g",{children:[N.jsx("path",{d:"M8.438,10.379h4.234v4.234H8.438ZM3.5,4.734H7.732V.5H4.086a.588.588,0,0,0-.588.588Zm.588,9.879H7.732V10.379H3.5v3.646A.588.588,0,0,0,4.086,14.613ZM3.5,9.674H7.732V5.44H3.5Zm9.88,4.939h3.646a.588.588,0,0,0,.588-.588V10.379H13.378ZM8.438,9.674h4.234V5.44H8.438Zm4.94,0h4.234V5.44H13.378Zm0-9.174V4.734h4.234V1.088A.588.588,0,0,0,17.024.5ZM8.438,4.734h4.234V.5H8.438Z",fill:"url(#fb5d9d20-fc2c-4e2c-bffd-dc236176d8b2)"}),N.jsx("rect",{x:"-0.212",y:"14.751",width:"5.457",height:"1.243",rx:"0.581",transform:"translate(-10.133 6.282) rotate(-45)",fill:"#198ab3"}),N.jsx("circle",{cx:"5.959",cy:"11.709",r:"3.744",fill:"#50e6ff"}),N.jsx("circle",{cx:"5.952",cy:"11.642",r:"2.94",fill:"#fff"})]})})]}),ud=16,NVe={PromptFlowToolAzureContentSafety:N.jsx(ZQ,{width:ud,height:ud}),PromptFlowToolSerpAPI:N.jsx(JQ,{}),PromptFlowToolBing:N.jsx(AVe,{width:ud,height:ud}),PromptFlowToolAzureContentModerator:N.jsx(ZQ,{width:ud,height:ud}),PromptFlowToolVectorIndexLookupByText:N.jsx(mw,{}),PromptFlowToolFaissIndexLookup:N.jsx(mw,{}),PromptFlowToolVectorDBLookup:N.jsx(mw,{}),PromptFlowToolVectorSearch:N.jsx(mw,{}),PromptFlowToolLlm:N.jsx(xVe,{}),PromptFlowToolPython:N.jsx(IVe,{}),PromptFlowToolTypeScript:N.jsx(CVe,{width:ud,height:ud}),PromptFlowToolPrompt:N.jsx(TVe,{}),PromptFlowToolDefault:N.jsx(JQ,{})};xo({icons:{...NVe}});var eZ=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),RVe=new Uint8Array(16);function OVe(){if(!eZ)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return eZ(RVe)}var Tfe=[];for(var yw=0;yw<256;++yw)Tfe[yw]=(yw+256).toString(16).substr(1);function DVe(e,t){var r=t||0,n=Tfe;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}function QA(e,t,r){var n=t&&r||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||OVe)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||DVe(o)}var Ife={exports:{}};Ife.exports=function(e){return Cfe(FVe(e),e)};Ife.exports.array=Cfe;function Cfe(e,t){for(var r=e.length,n=new Array(r),o={},i=r;i--;)o[i]||s(e[i],i,[]);return n;function s(a,l,u){if(u.indexOf(a)>=0){var c;try{c=", node was:"+JSON.stringify(a)}catch{c=""}throw new Error("Cyclic dependency"+c)}if(!~e.indexOf(a))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(a));if(!o[l]){o[l]=!0;var f=t.filter(function(g){return g[0]===a});if(l=f.length){var d=u.concat(a);do{var h=f[--l][1];s(h,e.indexOf(h),d)}while(l)}n[--r]=a}}}function FVe(e){for(var t=[],r=0,n=e.length;r1?r-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:Fk;tZ&&tZ(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const i=r(o);i!==o&&(BVe(t)||(t[n]=i),o=i)}e[o]=!0}return e}function PVe(e){for(let t=0;t/gm),VVe=hu(/\${[\w\W]*}/gm),UVe=hu(/^data-[\-\w.\u00B7-\uFFFF]/),YVe=hu(/^aria-[\-\w]+$/),Ofe=hu(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),XVe=hu(/^(?:\w+script|data):/i),QVe=hu(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Dfe=hu(/^html$/i);var aZ=Object.freeze({__proto__:null,MUSTACHE_EXPR:GVe,ERB_EXPR:KVe,TMPLIT_EXPR:VVe,DATA_ATTR:UVe,ARIA_ATTR:YVe,IS_ALLOWED_URI:Ofe,IS_SCRIPT_OR_DATA:XVe,ATTR_WHITESPACE:QVe,DOCTYPE_NAME:Dfe});const ZVe=function(){return typeof window>"u"?null:window},JVe=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function Ffe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ZVe();const t=q=>Ffe(q);if(t.version="3.0.9",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:d,trustedTypes:h}=e,g=l.prototype,v=_w(g,"cloneNode"),y=_w(g,"nextSibling"),E=_w(g,"childNodes"),_=_w(g,"parentNode");if(typeof s=="function"){const q=r.createElement("template");q.content&&q.content.ownerDocument&&(r=q.content.ownerDocument)}let S,b="";const{implementation:k,createNodeIterator:T,createDocumentFragment:x,getElementsByTagName:I}=r,{importNode:C}=n;let R={};t.isSupported=typeof Nfe=="function"&&typeof _=="function"&&k&&k.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:D,ERB_EXPR:L,TMPLIT_EXPR:M,DATA_ATTR:W,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:P}=aZ;let{IS_ALLOWED_URI:K}=aZ,V=null;const Z=pr({},[...nZ,...VD,...UD,...YD,...oZ]);let J=null;const ee=pr({},[...iZ,...XD,...sZ,...Ew]);let de=Object.seal(Rfe(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}})),ge=null,Se=null,Re=!0,ve=!0,Ee=!1,me=!0,we=!1,Ge=!1,nt=!1,Qe=!1,Ze=!1,Fe=!1,ot=!1,Me=!0,_t=!1;const qt="user-content-";let Nt=!0,ut=!1,xe={},Ve=null;const Xt=pr({},["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 le=pr({},["audio","video","img","source","image","track"]);let se=null;const pe=pr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Oe="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",ke="http://www.w3.org/1999/xhtml";let Ie=ke,$e=!1,lt=null;const mt=pr({},[Oe,je,ke],KD);let Rt=null;const dr=["application/xhtml+xml","text/html"],Cr="text/html";let Lt=null,Wr=null;const dn=r.createElement("form"),tr=function(B){return B instanceof RegExp||B instanceof Function},Ot=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Wr&&Wr===B)){if((!B||typeof B!="object")&&(B={}),B=ah(B),Rt=dr.indexOf(B.PARSER_MEDIA_TYPE)===-1?Cr:B.PARSER_MEDIA_TYPE,Lt=Rt==="application/xhtml+xml"?KD:Fk,V=Xl(B,"ALLOWED_TAGS")?pr({},B.ALLOWED_TAGS,Lt):Z,J=Xl(B,"ALLOWED_ATTR")?pr({},B.ALLOWED_ATTR,Lt):ee,lt=Xl(B,"ALLOWED_NAMESPACES")?pr({},B.ALLOWED_NAMESPACES,KD):mt,se=Xl(B,"ADD_URI_SAFE_ATTR")?pr(ah(pe),B.ADD_URI_SAFE_ATTR,Lt):pe,he=Xl(B,"ADD_DATA_URI_TAGS")?pr(ah(le),B.ADD_DATA_URI_TAGS,Lt):le,Ve=Xl(B,"FORBID_CONTENTS")?pr({},B.FORBID_CONTENTS,Lt):Xt,ge=Xl(B,"FORBID_TAGS")?pr({},B.FORBID_TAGS,Lt):{},Se=Xl(B,"FORBID_ATTR")?pr({},B.FORBID_ATTR,Lt):{},xe=Xl(B,"USE_PROFILES")?B.USE_PROFILES:!1,Re=B.ALLOW_ARIA_ATTR!==!1,ve=B.ALLOW_DATA_ATTR!==!1,Ee=B.ALLOW_UNKNOWN_PROTOCOLS||!1,me=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=B.SAFE_FOR_TEMPLATES||!1,Ge=B.WHOLE_DOCUMENT||!1,Ze=B.RETURN_DOM||!1,Fe=B.RETURN_DOM_FRAGMENT||!1,ot=B.RETURN_TRUSTED_TYPE||!1,Qe=B.FORCE_BODY||!1,Me=B.SANITIZE_DOM!==!1,_t=B.SANITIZE_NAMED_PROPS||!1,Nt=B.KEEP_CONTENT!==!1,ut=B.IN_PLACE||!1,K=B.ALLOWED_URI_REGEXP||Ofe,Ie=B.NAMESPACE||ke,de=B.CUSTOM_ELEMENT_HANDLING||{},B.CUSTOM_ELEMENT_HANDLING&&tr(B.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(de.tagNameCheck=B.CUSTOM_ELEMENT_HANDLING.tagNameCheck),B.CUSTOM_ELEMENT_HANDLING&&tr(B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(de.attributeNameCheck=B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),B.CUSTOM_ELEMENT_HANDLING&&typeof B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(de.allowCustomizedBuiltInElements=B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(ve=!1),Fe&&(Ze=!0),xe&&(V=pr({},oZ),J=[],xe.html===!0&&(pr(V,nZ),pr(J,iZ)),xe.svg===!0&&(pr(V,VD),pr(J,XD),pr(J,Ew)),xe.svgFilters===!0&&(pr(V,UD),pr(J,XD),pr(J,Ew)),xe.mathMl===!0&&(pr(V,YD),pr(J,sZ),pr(J,Ew))),B.ADD_TAGS&&(V===Z&&(V=ah(V)),pr(V,B.ADD_TAGS,Lt)),B.ADD_ATTR&&(J===ee&&(J=ah(J)),pr(J,B.ADD_ATTR,Lt)),B.ADD_URI_SAFE_ATTR&&pr(se,B.ADD_URI_SAFE_ATTR,Lt),B.FORBID_CONTENTS&&(Ve===Xt&&(Ve=ah(Ve)),pr(Ve,B.FORBID_CONTENTS,Lt)),Nt&&(V["#text"]=!0),Ge&&pr(V,["html","head","body"]),V.table&&(pr(V,["tbody"]),delete ge.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw zm('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw zm('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=B.TRUSTED_TYPES_POLICY,b=S.createHTML("")}else S===void 0&&(S=JVe(h,o)),S!==null&&typeof b=="string"&&(b=S.createHTML(""));fs&&fs(B),Wr=B}},Gr=pr({},["mi","mo","mn","ms","mtext"]),Nr=pr({},["foreignobject","desc","title","annotation-xml"]),Kr=pr({},["title","style","font","a","script"]),gr=pr({},[...VD,...UD,...qVe]),Bt=pr({},[...YD,...WVe]),dt=function(B){let Q=_(B);(!Q||!Q.tagName)&&(Q={namespaceURI:Ie,tagName:"template"});const ie=Fk(B.tagName),ae=Fk(Q.tagName);return lt[B.namespaceURI]?B.namespaceURI===je?Q.namespaceURI===ke?ie==="svg":Q.namespaceURI===Oe?ie==="svg"&&(ae==="annotation-xml"||Gr[ae]):!!gr[ie]:B.namespaceURI===Oe?Q.namespaceURI===ke?ie==="math":Q.namespaceURI===je?ie==="math"&&Nr[ae]:!!Bt[ie]:B.namespaceURI===ke?Q.namespaceURI===je&&!Nr[ae]||Q.namespaceURI===Oe&&!Gr[ae]?!1:!Bt[ie]&&(Kr[ie]||!gr[ie]):!!(Rt==="application/xhtml+xml"&<[B.namespaceURI]):!1},Ue=function(B){Lm(t.removed,{element:B});try{B.parentNode.removeChild(B)}catch{B.remove()}},Vr=function(B,Q){try{Lm(t.removed,{attribute:Q.getAttributeNode(B),from:Q})}catch{Lm(t.removed,{attribute:null,from:Q})}if(Q.removeAttribute(B),B==="is"&&!J[B])if(Ze||Fe)try{Ue(Q)}catch{}else try{Q.setAttribute(B,"")}catch{}},No=function(B){let Q=null,ie=null;if(Qe)B=""+B;else{const ye=jVe(B,/^[\r\n\t ]+/);ie=ye&&ye[0]}Rt==="application/xhtml+xml"&&Ie===ke&&(B=''+B+"");const ae=S?S.createHTML(B):B;if(Ie===ke)try{Q=new d().parseFromString(ae,Rt)}catch{}if(!Q||!Q.documentElement){Q=k.createDocument(Ie,"template",null);try{Q.documentElement.innerHTML=$e?b:ae}catch{}}const ne=Q.body||Q.documentElement;return B&&ie&&ne.insertBefore(r.createTextNode(ie),ne.childNodes[0]||null),Ie===ke?I.call(Q,Ge?"html":"body")[0]:Ge?Q.documentElement:ne},Hr=function(B){return T.call(B.ownerDocument||B,B,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},Fl=function(B){return B instanceof f&&(typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||!(B.attributes instanceof c)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function")},ys=function(B){return typeof a=="function"&&B instanceof a},mo=function(B,Q,ie){R[B]&&bw(R[B],ae=>{ae.call(t,Q,ie,Wr)})},ja=function(B){let Q=null;if(mo("beforeSanitizeElements",B,null),Fl(B))return Ue(B),!0;const ie=Lt(B.nodeName);if(mo("uponSanitizeElement",B,{tagName:ie,allowedTags:V}),B.hasChildNodes()&&!ys(B.firstElementChild)&&ra(/<[/\w]/g,B.innerHTML)&&ra(/<[/\w]/g,B.textContent))return Ue(B),!0;if(!V[ie]||ge[ie]){if(!ge[ie]&&Y(ie)&&(de.tagNameCheck instanceof RegExp&&ra(de.tagNameCheck,ie)||de.tagNameCheck instanceof Function&&de.tagNameCheck(ie)))return!1;if(Nt&&!Ve[ie]){const ae=_(B)||B.parentNode,ne=E(B)||B.childNodes;if(ne&&ae){const ye=ne.length;for(let Pe=ye-1;Pe>=0;--Pe)ae.insertBefore(v(ne[Pe],!0),y(B))}}return Ue(B),!0}return B instanceof l&&!dt(B)||(ie==="noscript"||ie==="noembed"||ie==="noframes")&&ra(/<\/no(script|embed|frames)/i,B.innerHTML)?(Ue(B),!0):(we&&B.nodeType===3&&(Q=B.textContent,bw([D,L,M],ae=>{Q=jm(Q,ae," ")}),B.textContent!==Q&&(Lm(t.removed,{element:B.cloneNode()}),B.textContent=Q)),mo("afterSanitizeElements",B,null),!1)},He=function(B,Q,ie){if(Me&&(Q==="id"||Q==="name")&&(ie in r||ie in dn))return!1;if(!(ve&&!Se[Q]&&ra(W,Q))){if(!(Re&&ra(z,Q))){if(!J[Q]||Se[Q]){if(!(Y(B)&&(de.tagNameCheck instanceof RegExp&&ra(de.tagNameCheck,B)||de.tagNameCheck instanceof Function&&de.tagNameCheck(B))&&(de.attributeNameCheck instanceof RegExp&&ra(de.attributeNameCheck,Q)||de.attributeNameCheck instanceof Function&&de.attributeNameCheck(Q))||Q==="is"&&de.allowCustomizedBuiltInElements&&(de.tagNameCheck instanceof RegExp&&ra(de.tagNameCheck,ie)||de.tagNameCheck instanceof Function&&de.tagNameCheck(ie))))return!1}else if(!se[Q]){if(!ra(K,jm(ie,P,""))){if(!((Q==="src"||Q==="xlink:href"||Q==="href")&&B!=="script"&&zVe(ie,"data:")===0&&he[B])){if(!(Ee&&!ra(F,jm(ie,P,"")))){if(ie)return!1}}}}}}return!0},Y=function(B){return B!=="annotation-xml"&&B.indexOf("-")>0},X=function(B){mo("beforeSanitizeAttributes",B,null);const{attributes:Q}=B;if(!Q)return;const ie={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J};let ae=Q.length;for(;ae--;){const ne=Q[ae],{name:ye,namespaceURI:Pe,value:xt}=ne,Dt=Lt(ye);let wt=ye==="value"?xt:HVe(xt);if(ie.attrName=Dt,ie.attrValue=wt,ie.keepAttr=!0,ie.forceKeepAttr=void 0,mo("uponSanitizeAttribute",B,ie),wt=ie.attrValue,ie.forceKeepAttr||(Vr(ye,B),!ie.keepAttr))continue;if(!me&&ra(/\/>/i,wt)){Vr(ye,B);continue}we&&bw([D,L,M],Gt=>{wt=jm(wt,Gt," ")});const Et=Lt(B.nodeName);if(He(Et,Dt,wt)){if(_t&&(Dt==="id"||Dt==="name")&&(Vr(ye,B),wt=qt+wt),S&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!Pe)switch(h.getAttributeType(Et,Dt)){case"TrustedHTML":{wt=S.createHTML(wt);break}case"TrustedScriptURL":{wt=S.createScriptURL(wt);break}}try{Pe?B.setAttributeNS(Pe,ye,wt):B.setAttribute(ye,wt),rZ(t.removed)}catch{}}}mo("afterSanitizeAttributes",B,null)},$=function q(B){let Q=null;const ie=Hr(B);for(mo("beforeSanitizeShadowDOM",B,null);Q=ie.nextNode();)mo("uponSanitizeShadowNode",Q,null),!ja(Q)&&(Q.content instanceof i&&q(Q.content),X(Q));mo("afterSanitizeShadowDOM",B,null)};return t.sanitize=function(q){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=null,ie=null,ae=null,ne=null;if($e=!q,$e&&(q=""),typeof q!="string"&&!ys(q))if(typeof q.toString=="function"){if(q=q.toString(),typeof q!="string")throw zm("dirty is not a string, aborting")}else throw zm("toString is not a function");if(!t.isSupported)return q;if(nt||Ot(B),t.removed=[],typeof q=="string"&&(ut=!1),ut){if(q.nodeName){const xt=Lt(q.nodeName);if(!V[xt]||ge[xt])throw zm("root node is forbidden and cannot be sanitized in-place")}}else if(q instanceof a)Q=No(""),ie=Q.ownerDocument.importNode(q,!0),ie.nodeType===1&&ie.nodeName==="BODY"||ie.nodeName==="HTML"?Q=ie:Q.appendChild(ie);else{if(!Ze&&!we&&!Ge&&q.indexOf("<")===-1)return S&&ot?S.createHTML(q):q;if(Q=No(q),!Q)return Ze?null:ot?b:""}Q&&Qe&&Ue(Q.firstChild);const ye=Hr(ut?q:Q);for(;ae=ye.nextNode();)ja(ae)||(ae.content instanceof i&&$(ae.content),X(ae));if(ut)return q;if(Ze){if(Fe)for(ne=x.call(Q.ownerDocument);Q.firstChild;)ne.appendChild(Q.firstChild);else ne=Q;return(J.shadowroot||J.shadowrootmode)&&(ne=C.call(n,ne,!0)),ne}let Pe=Ge?Q.outerHTML:Q.innerHTML;return Ge&&V["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&ra(Dfe,Q.ownerDocument.doctype.name)&&(Pe=" -`+Pe),we&&bw([D,L,M],xt=>{Pe=jm(Pe,xt," ")}),S&&ot?S.createHTML(Pe):Pe},t.setConfig=function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ot(q),nt=!0},t.clearConfig=function(){Wr=null,nt=!1},t.isValidAttribute=function(q,B,Q){Wr||Ot({});const ie=Lt(q),ae=Lt(B);return He(ie,ae,Q)},t.addHook=function(q,B){typeof B=="function"&&(R[q]=R[q]||[],Lm(R[q],B))},t.removeHook=function(q){if(R[q])return rZ(R[q])},t.removeHooks=function(q){R[q]&&(R[q]=[])},t.removeAllHooks=function(){R={}},t}var eUe=Ffe(),tUe={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function i(l,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new o(c,f||l,d),g=r?r+u:u;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],h]:l._events[g].push(h):(l._events[g]=h,l._eventsCount++),l}function s(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function a(){this._events=new n,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},a.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,g=new Array(h);d=W)return Ie(!0)}else for(he=P,P++;;){if((he=V.indexOf(C,he+1))===-1)return J||Ee.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ve.length,index:P}),je();if(he===ee-1)return je(V.substring(P,he).replace(Xt,C));if(C!==F||V[he+1]!==F){if(C===F||he===0||V[he-1]!==F){xe!==-1&&xe=W)return Ie(!0);break}Ee.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ve.length,index:P}),he++}}else he++}return je();function pe(lt){ve.push(lt),we=P}function Oe(lt){var mt=0;if(lt!==-1){var Rt=V.substring(he+1,lt);Rt&&Rt.trim()===""&&(mt=Rt.length)}return mt}function je(lt){return J||(lt===void 0&&(lt=V.substring(P)),me.push(lt),P=ee,pe(me),Re&&$e()),Ie()}function ke(lt){P=lt,pe(me),me=[],Ue=V.indexOf(D,P)}function Ie(lt){return{data:ve,errors:Ee,meta:{delimiter:R,linebreak:D,aborted:K,truncated:!!lt,cursor:we+(Z||0)}}}function $e(){M(Ie()),ve=[],Ee=[]}},this.abort=function(){K=!0},this.getCharIndex=function(){return P}}function _(I){var C=I.data,R=s[C.workerId],D=!1;if(C.error)R.userError(C.error,C.file);else if(C.results&&C.results.data){var L={abort:function(){D=!0,S(C.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:b,resume:b};if(x(R.userStep)){for(var M=0;M{const n={};return Object.keys(e).forEach(o=>{const i=e[o];o===t?n[r]=i:n[o]=i}),n},nce=e=>{const{defaultVariantId:t=Ki,variants:r={}}=e,n=r[t];return n==null?void 0:n.node},VK=(e,t)=>{const r=[];return e.forEach(n=>{const o=t.get(n);if(!o)return;const i=nce(o);i&&r.push(i)}),r},S$e=(e,t,r)=>{const n=[];return e.forEach(o=>{if(r.includes(o)){n.push({name:o,use_variants:!0});return}const i=t[o];if(!i)return;const s={inputs:{},...nce(i)};s&&n.push(s)}),n};Ri.llm;Ri.prompt;Te.string,Ri.python;Te.string,Ri.typescript;const v7=e=>{var t,r,n,o,i,s;return e.children&&e.children.length>0?e.children.reduce((a,l)=>{const u=v7(l);return{totalTokens:a.totalTokens+u.totalTokens,promptTokens:a.promptTokens+u.promptTokens,completionTokens:a.completionTokens+u.completionTokens}},{totalTokens:0,promptTokens:0,completionTokens:0}):{totalTokens:((r=(t=e.output)==null?void 0:t.usage)==null?void 0:r.total_tokens)??0,promptTokens:((o=(n=e.output)==null?void 0:n.usage)==null?void 0:o.prompt_tokens)??0,completionTokens:((s=(i=e.output)==null?void 0:i.usage)==null?void 0:s.completion_tokens)??0}},Uy=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),UK=e=>{const t=new Date(e),r=w$e();return`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()} ${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}:${t.getMilliseconds()} (${r})`},w$e=()=>{const e=new Date().getTimezoneOffset(),t=Math.abs(e);return`UTC${(e<0?"+":"-")+`00${Math.floor(t/60)}`.slice(-2)}:${`00${t%60}`.slice(-2)}`},o9=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),k$e=(e,t,r,n)=>{var o,i,s;if(((o=e==null?void 0:e.source)==null?void 0:o.type)==="code")return t;if(((i=e==null?void 0:e.source)==null?void 0:i.type)==="package_with_prompt"){const a=(s=e==null?void 0:e.source)==null?void 0:s.path,l=n(a??"");return r?{...r,inputs:{...l==null?void 0:l.inputs,...A$e(r==null?void 0:r.inputs,"parameter")},code:l==null?void 0:l.code}:void 0}return r},A$e=(e,t)=>{if(!e)return e;const r={...e};return Object.keys(r).forEach(n=>{r[n]={...r[n],position:t}}),r},YK=async e=>new Promise(t=>setTimeout(t,e)),m7=async e=>new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=function(){var i;const o=(i=n.result)==null?void 0:i.split(",")[1];t(o)},n.onerror=function(o){r(o)}}),x$e=["and","as","assert","break","class","continue","def","del","elif","else","except","False","finally","for","from","global","if","import","in","is","lambda","None","nonlocal","not","or","pass","raise","return","True","try","while","with","yield"],T$e=["abs","all","any","ascii","bin","bool","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","str","sum","super","tuple","type","vars","zip"],I$e=["input","inputs","output","outputs","flow","flows"],C$e=e=>x$e.some(t=>t===e)||T$e.some(t=>t===e)||I$e.some(t=>t===e)?!1:/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e),N$e=(e={})=>{const t=[];return Object.keys(e).forEach(r=>{const n=e[r],{variants:o={},defaultVariantId:i,default_variant_id:s}=n,a=Object.keys(o).length;a>1&&t.push({nodeName:r,variantsCount:a,defaultVariantId:i??s??Ki,variants:o})}),t},R$e=(e={})=>{const t={};return Object.keys(e).forEach(r=>{const n=e[r],{variants:o={}}=n;if(Object.keys(o).length>1){const s=Xb.cloneDeep(n);Object.entries((s==null?void 0:s.variants)??{}).forEach(([l,u])=>{u.node&&delete u.node.name});const a=s.defaultVariantId;delete s.defaultVariantId,t[r]={default_variant_id:a,...s}}}),Object.keys(t).length>0?t:void 0},O$e=e=>{const t=/^data:(image|video|audio)\/(.*);(path|base64|url)/,r=e.match(t),n=r==null?void 0:r[1],o=r==null?void 0:r[2],i=r==null?void 0:r[3];return{mimeType:n,ext:o,valType:i}},D$e=/^\$\{(\S+)\}$/,QC=e=>{var t,r;return(r=(t=`${e??""}`)==null?void 0:t.match(D$e))==null?void 0:r[1]},F$e=e=>{const t="abcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let n=0;nF$e(8),B$e=oce,M$e=/^[+-]?\d+$/,L$e=/^[+-]?\d+(\.\d+)?$/,j$e=e=>e.toLowerCase()==="true"||e.toLowerCase()==="false",ice=e=>L$e.test(e.trim())?e===e.trim()&&e.length>0&&!Number.isNaN(Number(e)):!1,z$e=e=>M$e.test(e.trim())?ice(e)&&Number.isInteger(Number(e)):!1,H$e=e=>{try{const t=JSON.parse(e);return Array.isArray(t)}catch{return!1}},$$e=e=>{try{const t=JSON.parse(e);return Object.prototype.toString.call(t)==="[object Object]"}catch{return!1}},ZC=(e,t)=>{const r=typeof e,n=r==="string";switch(t){case Te.int:return n?z$e(e):Number.isInteger(e);case Te.double:return n?ice(e):r==="number";case Te.list:return n?H$e(e):Array.isArray(e);case Te.object:return n?$$e(e):r==="object";case Te.bool:return n?j$e(e):r==="boolean";case Te.function_str:return!0;default:return!0}},P$e=(e,t,r,n)=>{var s,a;const o=[],i=new Set(e.keys());for(e.forEach((l,u)=>{l===0&&o.push(u)});o.length>0;){const l=o.shift();l&&(i.delete(l),(s=t.get(l))==null||s.forEach(u=>{const c=(e.get(u)??0)-1;e.set(u,c),c===0&&o.push(u)}))}for(r.forEach((l,u)=>{l===0&&o.push(u)});o.length>0;){const l=o.shift();l&&(i.delete(l),(a=n.get(l))==null||a.forEach(u=>{const c=(r.get(u)??0)-1;r.set(u,c),c===0&&o.push(u)}))}return i};function y7(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var JC,XK;function q$e(){if(XK)return JC;XK=1;function e(){this.__data__=[],this.size=0}return JC=e,JC}var eN,QK;function Ev(){if(QK)return eN;QK=1;function e(t,r){return t===r||t!==t&&r!==r}return eN=e,eN}var tN,ZK;function i9(){if(ZK)return tN;ZK=1;var e=Ev();function t(r,n){for(var o=r.length;o--;)if(e(r[o][0],n))return o;return-1}return tN=t,tN}var rN,JK;function W$e(){if(JK)return rN;JK=1;var e=i9(),t=Array.prototype,r=t.splice;function n(o){var i=this.__data__,s=e(i,o);if(s<0)return!1;var a=i.length-1;return s==a?i.pop():r.call(i,s,1),--this.size,!0}return rN=n,rN}var nN,eV;function G$e(){if(eV)return nN;eV=1;var e=i9();function t(r){var n=this.__data__,o=e(n,r);return o<0?void 0:n[o][1]}return nN=t,nN}var oN,tV;function K$e(){if(tV)return oN;tV=1;var e=i9();function t(r){return e(this.__data__,r)>-1}return oN=t,oN}var iN,rV;function V$e(){if(rV)return iN;rV=1;var e=i9();function t(r,n){var o=this.__data__,i=e(o,r);return i<0?(++this.size,o.push([r,n])):o[i][1]=n,this}return iN=t,iN}var sN,nV;function s9(){if(nV)return sN;nV=1;var e=q$e(),t=W$e(),r=G$e(),n=K$e(),o=V$e();function i(s){var a=-1,l=s==null?0:s.length;for(this.clear();++a-1&&n%1==0&&n-1&&r%1==0&&r<=e}return tR=t,tR}var rR,eU;function _Pe(){if(eU)return rR;eU=1;var e=cp(),t=S7(),r=Ic(),n="[object Arguments]",o="[object Array]",i="[object Boolean]",s="[object Date]",a="[object Error]",l="[object Function]",u="[object Map]",c="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",g="[object String]",v="[object WeakMap]",y="[object ArrayBuffer]",E="[object DataView]",_="[object Float32Array]",S="[object Float64Array]",b="[object Int8Array]",k="[object Int16Array]",T="[object Int32Array]",x="[object Uint8Array]",I="[object Uint8ClampedArray]",C="[object Uint16Array]",R="[object Uint32Array]",D={};D[_]=D[S]=D[b]=D[k]=D[T]=D[x]=D[I]=D[C]=D[R]=!0,D[n]=D[o]=D[y]=D[i]=D[E]=D[s]=D[a]=D[l]=D[u]=D[c]=D[f]=D[d]=D[h]=D[g]=D[v]=!1;function L(M){return r(M)&&t(M.length)&&!!D[e(M)]}return rR=L,rR}var nR,tU;function h9(){if(tU)return nR;tU=1;function e(t){return function(r){return t(r)}}return nR=e,nR}var cy={exports:{}};cy.exports;var rU;function w7(){return rU||(rU=1,function(e,t){var r=sce(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,s=i&&r.process,a=function(){try{var l=o&&o.require&&o.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=a}(cy,cy.exports)),cy.exports}var oR,nU;function sE(){if(nU)return oR;nU=1;var e=_Pe(),t=h9(),r=w7(),n=r&&r.isTypedArray,o=n?t(n):e;return oR=o,oR}var iR,oU;function uce(){if(oU)return iR;oU=1;var e=mPe(),t=iE(),r=Co(),n=wv(),o=d9(),i=sE(),s=Object.prototype,a=s.hasOwnProperty;function l(u,c){var f=r(u),d=!f&&t(u),h=!f&&!d&&n(u),g=!f&&!d&&!h&&i(u),v=f||d||h||g,y=v?e(u.length,String):[],E=y.length;for(var _ in u)(c||a.call(u,_))&&!(v&&(_=="length"||h&&(_=="offset"||_=="parent")||g&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||o(_,E)))&&y.push(_);return y}return iR=l,iR}var sR,iU;function p9(){if(iU)return sR;iU=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||e;return r===o}return sR=t,sR}var aR,sU;function cce(){if(sU)return aR;sU=1;function e(t,r){return function(n){return t(r(n))}}return aR=e,aR}var lR,aU;function EPe(){if(aU)return lR;aU=1;var e=cce(),t=e(Object.keys,Object);return lR=t,lR}var uR,lU;function k7(){if(lU)return uR;lU=1;var e=p9(),t=EPe(),r=Object.prototype,n=r.hasOwnProperty;function o(i){if(!e(i))return t(i);var s=[];for(var a in Object(i))n.call(i,a)&&a!="constructor"&&s.push(a);return s}return uR=o,uR}var cR,uU;function qf(){if(uU)return cR;uU=1;var e=nE(),t=S7();function r(n){return n!=null&&t(n.length)&&!e(n)}return cR=r,cR}var fR,cU;function R1(){if(cU)return fR;cU=1;var e=uce(),t=k7(),r=qf();function n(o){return r(o)?e(o):t(o)}return fR=n,fR}var dR,fU;function SPe(){if(fU)return dR;fU=1;var e=oE(),t=R1();function r(n,o){return n&&e(o,t(o),n)}return dR=r,dR}var hR,dU;function wPe(){if(dU)return hR;dU=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return hR=e,hR}var pR,hU;function kPe(){if(hU)return pR;hU=1;var e=Cl(),t=p9(),r=wPe(),n=Object.prototype,o=n.hasOwnProperty;function i(s){if(!e(s))return r(s);var a=t(s),l=[];for(var u in s)u=="constructor"&&(a||!o.call(s,u))||l.push(u);return l}return pR=i,pR}var gR,pU;function dp(){if(pU)return gR;pU=1;var e=uce(),t=kPe(),r=qf();function n(o){return r(o)?e(o,!0):t(o)}return gR=n,gR}var vR,gU;function APe(){if(gU)return vR;gU=1;var e=oE(),t=dp();function r(n,o){return n&&e(o,t(o),n)}return vR=r,vR}var fy={exports:{}};fy.exports;var vU;function fce(){return vU||(vU=1,function(e,t){var r=bu(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,s=i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var f=u.length,d=a?a(f):new u.constructor(f);return u.copy(d),d}e.exports=l}(fy,fy.exports)),fy.exports}var mR,mU;function dce(){if(mU)return mR;mU=1;function e(t,r){var n=-1,o=t.length;for(r||(r=Array(o));++nh))return!1;var v=f.get(s),y=f.get(a);if(v&&y)return v==a&&y==s;var E=-1,_=!0,S=l&o?new e:void 0;for(f.set(s,a),f.set(a,s);++E0&&i(c)?o>1?r(c,o-1,i,s,a):e(a,c):s||(a[a.length]=c)}return a}return l4=r,l4}var u4,uX;function Sqe(){if(uX)return u4;uX=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return u4=e,u4}var c4,cX;function qce(){if(cX)return c4;cX=1;var e=Sqe(),t=Math.max;function r(n,o,i){return o=t(o===void 0?n.length-1:o,0),function(){for(var s=arguments,a=-1,l=t(s.length-o,0),u=Array(l);++a0){if(++i>=e)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}return d4=n,d4}var h4,hX;function Wce(){if(hX)return h4;hX=1;var e=wqe(),t=kqe(),r=t(e);return h4=r,h4}var p4,pX;function _9(){if(pX)return p4;pX=1;var e=hp(),t=qce(),r=Wce();function n(o,i){return r(t(o,i,e),o+"")}return p4=n,p4}var g4,gX;function Gce(){if(gX)return g4;gX=1;function e(t,r,n,o){for(var i=t.length,s=n+(o?1:-1);o?s--:++s-1}return b4=t,b4}var _4,_X;function Cqe(){if(_X)return _4;_X=1;function e(t,r,n){for(var o=-1,i=t==null?0:t.length;++o=s){var E=u?null:o(l);if(E)return i(E);g=!1,d=n,y=new e}else y=u?[]:v;e:for(;++f1?h.setNode(g,f):h.setNode(g)}),this},o.prototype.setNode=function(c,f){return e.has(this._nodes,c)?(arguments.length>1&&(this._nodes[c]=f),this):(this._nodes[c]=arguments.length>1?f:this._defaultNodeLabelFn(c),this._isCompound&&(this._parent[c]=r,this._children[c]={},this._children[r][c]=!0),this._in[c]={},this._preds[c]={},this._out[c]={},this._sucs[c]={},++this._nodeCount,this)},o.prototype.node=function(c){return this._nodes[c]},o.prototype.hasNode=function(c){return e.has(this._nodes,c)},o.prototype.removeNode=function(c){var f=this;if(e.has(this._nodes,c)){var d=function(h){f.removeEdge(f._edgeObjs[h])};delete this._nodes[c],this._isCompound&&(this._removeFromParentsChildList(c),delete this._parent[c],e.each(this.children(c),function(h){f.setParent(h)}),delete this._children[c]),e.each(e.keys(this._in[c]),d),delete this._in[c],delete this._preds[c],e.each(e.keys(this._out[c]),d),delete this._out[c],delete this._sucs[c],--this._nodeCount}return this},o.prototype.setParent=function(c,f){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(f))f=r;else{f+="";for(var d=f;!e.isUndefined(d);d=this.parent(d))if(d===c)throw new Error("Setting "+f+" as parent of "+c+" would create a cycle");this.setNode(f)}return this.setNode(c),this._removeFromParentsChildList(c),this._parent[c]=f,this._children[f][c]=!0,this},o.prototype._removeFromParentsChildList=function(c){delete this._children[this._parent[c]][c]},o.prototype.parent=function(c){if(this._isCompound){var f=this._parent[c];if(f!==r)return f}},o.prototype.children=function(c){if(e.isUndefined(c)&&(c=r),this._isCompound){var f=this._children[c];if(f)return e.keys(f)}else{if(c===r)return this.nodes();if(this.hasNode(c))return[]}},o.prototype.predecessors=function(c){var f=this._preds[c];if(f)return e.keys(f)},o.prototype.successors=function(c){var f=this._sucs[c];if(f)return e.keys(f)},o.prototype.neighbors=function(c){var f=this.predecessors(c);if(f)return e.union(f,this.successors(c))},o.prototype.isLeaf=function(c){var f;return this.isDirected()?f=this.successors(c):f=this.neighbors(c),f.length===0},o.prototype.filterNodes=function(c){var f=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});f.setGraph(this.graph());var d=this;e.each(this._nodes,function(v,y){c(y)&&f.setNode(y,v)}),e.each(this._edgeObjs,function(v){f.hasNode(v.v)&&f.hasNode(v.w)&&f.setEdge(v,d.edge(v))});var h={};function g(v){var y=d.parent(v);return y===void 0||f.hasNode(y)?(h[v]=y,y):y in h?h[y]:g(y)}return this._isCompound&&e.each(f.nodes(),function(v){f.setParent(v,g(v))}),f},o.prototype.setDefaultEdgeLabel=function(c){return e.isFunction(c)||(c=e.constant(c)),this._defaultEdgeLabelFn=c,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return e.values(this._edgeObjs)},o.prototype.setPath=function(c,f){var d=this,h=arguments;return e.reduce(c,function(g,v){return h.length>1?d.setEdge(g,v,f):d.setEdge(g,v),v}),this},o.prototype.setEdge=function(){var c,f,d,h,g=!1,v=arguments[0];typeof v=="object"&&v!==null&&"v"in v?(c=v.v,f=v.w,d=v.name,arguments.length===2&&(h=arguments[1],g=!0)):(c=v,f=arguments[1],d=arguments[3],arguments.length>2&&(h=arguments[2],g=!0)),c=""+c,f=""+f,e.isUndefined(d)||(d=""+d);var y=a(this._isDirected,c,f,d);if(e.has(this._edgeLabels,y))return g&&(this._edgeLabels[y]=h),this;if(!e.isUndefined(d)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(c),this.setNode(f),this._edgeLabels[y]=g?h:this._defaultEdgeLabelFn(c,f,d);var E=l(this._isDirected,c,f,d);return c=E.v,f=E.w,Object.freeze(E),this._edgeObjs[y]=E,i(this._preds[f],c),i(this._sucs[c],f),this._in[f][y]=E,this._out[c][y]=E,this._edgeCount++,this},o.prototype.edge=function(c,f,d){var h=arguments.length===1?u(this._isDirected,arguments[0]):a(this._isDirected,c,f,d);return this._edgeLabels[h]},o.prototype.hasEdge=function(c,f,d){var h=arguments.length===1?u(this._isDirected,arguments[0]):a(this._isDirected,c,f,d);return e.has(this._edgeLabels,h)},o.prototype.removeEdge=function(c,f,d){var h=arguments.length===1?u(this._isDirected,arguments[0]):a(this._isDirected,c,f,d),g=this._edgeObjs[h];return g&&(c=g.v,f=g.w,delete this._edgeLabels[h],delete this._edgeObjs[h],s(this._preds[f],c),s(this._sucs[c],f),delete this._in[f][h],delete this._out[c][h],this._edgeCount--),this},o.prototype.inEdges=function(c,f){var d=this._in[c];if(d){var h=e.values(d);return f?e.filter(h,function(g){return g.v===f}):h}},o.prototype.outEdges=function(c,f){var d=this._out[c];if(d){var h=e.values(d);return f?e.filter(h,function(g){return g.w===f}):h}},o.prototype.nodeEdges=function(c,f){var d=this.inEdges(c,f);if(d)return d.concat(this.outEdges(c,f))};function i(c,f){c[f]?c[f]++:c[f]=1}function s(c,f){--c[f]||delete c[f]}function a(c,f,d,h){var g=""+f,v=""+d;if(!c&&g>v){var y=g;g=v,v=y}return g+n+v+n+(e.isUndefined(h)?t:h)}function l(c,f,d,h){var g=""+f,v=""+d;if(!c&&g>v){var y=g;g=v,v=y}var E={v:g,w:v};return h&&(E.name=h),E}function u(c,f){return a(c,f.v,f.w,f.name)}return C4}var N4,NX;function Bqe(){return NX||(NX=1,N4="2.1.8"),N4}var R4,RX;function Mqe(){return RX||(RX=1,R4={Graph:F7(),version:Bqe()}),R4}var O4,OX;function Lqe(){if(OX)return O4;OX=1;var e=Nl(),t=F7();O4={write:r,read:i};function r(s){var a={options:{directed:s.isDirected(),multigraph:s.isMultigraph(),compound:s.isCompound()},nodes:n(s),edges:o(s)};return e.isUndefined(s.graph())||(a.value=e.clone(s.graph())),a}function n(s){return e.map(s.nodes(),function(a){var l=s.node(a),u=s.parent(a),c={v:a};return e.isUndefined(l)||(c.value=l),e.isUndefined(u)||(c.parent=u),c})}function o(s){return e.map(s.edges(),function(a){var l=s.edge(a),u={v:a.v,w:a.w};return e.isUndefined(a.name)||(u.name=a.name),e.isUndefined(l)||(u.value=l),u})}function i(s){var a=new t(s.options).setGraph(s.value);return e.each(s.nodes,function(l){a.setNode(l.v,l.value),l.parent&&a.setParent(l.v,l.parent)}),e.each(s.edges,function(l){a.setEdge({v:l.v,w:l.w,name:l.name},l.value)}),a}return O4}var D4,DX;function jqe(){if(DX)return D4;DX=1;var e=Nl();D4=t;function t(r){var n={},o=[],i;function s(a){e.has(n,a)||(n[a]=!0,i.push(a),e.each(r.successors(a),s),e.each(r.predecessors(a),s))}return e.each(r.nodes(),function(a){i=[],s(a),i.length&&o.push(i)}),o}return D4}var F4,FX;function Uce(){if(FX)return F4;FX=1;var e=Nl();F4=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(r){return r.key})},t.prototype.has=function(r){return e.has(this._keyIndices,r)},t.prototype.priority=function(r){var n=this._keyIndices[r];if(n!==void 0)return this._arr[n].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(r,n){var o=this._keyIndices;if(r=String(r),!e.has(o,r)){var i=this._arr,s=i.length;return o[r]=s,i.push({key:r,priority:n}),this._decrease(s),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var r=this._arr.pop();return delete this._keyIndices[r.key],this._heapify(0),r.key},t.prototype.decrease=function(r,n){var o=this._keyIndices[r];if(n>this._arr[o].priority)throw new Error("New priority is greater than current priority. Key: "+r+" Old: "+this._arr[o].priority+" New: "+n);this._arr[o].priority=n,this._decrease(o)},t.prototype._heapify=function(r){var n=this._arr,o=2*r,i=o+1,s=r;o>1,!(n[i].priority0&&(f=c.removeMin(),d=u[f],d.distance!==Number.POSITIVE_INFINITY);)l(f).forEach(h);return u}return B4}var M4,MX;function zqe(){if(MX)return M4;MX=1;var e=Yce(),t=Nl();M4=r;function r(n,o,i){return t.transform(n.nodes(),function(s,a){s[a]=e(n,a,o,i)},{})}return M4}var L4,LX;function Xce(){if(LX)return L4;LX=1;var e=Nl();L4=t;function t(r){var n=0,o=[],i={},s=[];function a(l){var u=i[l]={onStack:!0,lowlink:n,index:n++};if(o.push(l),r.successors(l).forEach(function(d){e.has(i,d)?i[d].onStack&&(u.lowlink=Math.min(u.lowlink,i[d].index)):(a(d),u.lowlink=Math.min(u.lowlink,i[d].lowlink))}),u.lowlink===u.index){var c=[],f;do f=o.pop(),i[f].onStack=!1,c.push(f);while(l!==f);s.push(c)}}return r.nodes().forEach(function(l){e.has(i,l)||a(l)}),s}return L4}var j4,jX;function Hqe(){if(jX)return j4;jX=1;var e=Nl(),t=Xce();j4=r;function r(n){return e.filter(t(n),function(o){return o.length>1||o.length===1&&n.hasEdge(o[0],o[0])})}return j4}var z4,zX;function $qe(){if(zX)return z4;zX=1;var e=Nl();z4=r;var t=e.constant(1);function r(o,i,s){return n(o,i||t,s||function(a){return o.outEdges(a)})}function n(o,i,s){var a={},l=o.nodes();return l.forEach(function(u){a[u]={},a[u][u]={distance:0},l.forEach(function(c){u!==c&&(a[u][c]={distance:Number.POSITIVE_INFINITY})}),s(u).forEach(function(c){var f=c.v===u?c.w:c.v,d=i(c);a[u][f]={distance:d,predecessor:u}})}),l.forEach(function(u){var c=a[u];l.forEach(function(f){var d=a[f];l.forEach(function(h){var g=d[u],v=c[h],y=d[h],E=g.distance+v.distance;E0;){if(u=l.removeMin(),e.has(a,u))s.setEdge(u,a[u]);else{if(f)throw new Error("Input graph is not connected: "+o);f=!0}o.nodeEdges(u).forEach(c)}return s}return G4}var K4,KX;function Kqe(){return KX||(KX=1,K4={components:jqe(),dijkstra:Yce(),dijkstraAll:zqe(),findCycles:Hqe(),floydWarshall:$qe(),isAcyclic:Pqe(),postorder:qqe(),preorder:Wqe(),prim:Gqe(),tarjan:Xce(),topsort:Qce()}),K4}var V4,VX;function Vqe(){if(VX)return V4;VX=1;var e=Mqe();return V4={Graph:e.Graph,json:Lqe(),alg:Kqe(),version:e.version},V4}var UA;if(typeof y7=="function")try{UA=Vqe()}catch{}UA||(UA=window.graphlib);var _u=UA,U4,UX;function Uqe(){if(UX)return U4;UX=1;var e=wce(),t=1,r=4;function n(o){return e(o,t|r)}return U4=n,U4}var Y4,YX;function E9(){if(YX)return Y4;YX=1;var e=Ev(),t=qf(),r=d9(),n=Cl();function o(i,s,a){if(!n(a))return!1;var l=typeof s;return(l=="number"?t(a)&&r(s,a.length):l=="string"&&s in a)?e(a[s],i):!1}return Y4=o,Y4}var X4,XX;function Yqe(){if(XX)return X4;XX=1;var e=_9(),t=Ev(),r=E9(),n=dp(),o=Object.prototype,i=o.hasOwnProperty,s=e(function(a,l){a=Object(a);var u=-1,c=l.length,f=c>2?l[2]:void 0;for(f&&r(l[0],l[1],f)&&(c=1);++u-1?l[u?i[c]:c]:void 0}}return Q4=n,Q4}var Z4,ZX;function Qqe(){if(ZX)return Z4;ZX=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Z4=t,Z4}var J4,JX;function Zqe(){if(JX)return J4;JX=1;var e=Qqe(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return J4=r,J4}var eD,eQ;function Jqe(){if(eQ)return eD;eQ=1;var e=Zqe(),t=Cl(),r=Av(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function l(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var c=typeof u.valueOf=="function"?u.valueOf():u;u=t(c)?c+"":c}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=i.test(u);return f||s.test(u)?a(u.slice(2),f?2:8):o.test(u)?n:+u}return eD=l,eD}var tD,tQ;function Jce(){if(tQ)return tD;tQ=1;var e=Jqe(),t=1/0,r=17976931348623157e292;function n(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-t){var i=o<0?-1:1;return i*r}return o===o?o:0}return tD=n,tD}var rD,rQ;function eWe(){if(rQ)return rD;rQ=1;var e=Jce();function t(r){var n=e(r),o=n%1;return n===n?o?n-o:n:0}return rD=t,rD}var nD,nQ;function tWe(){if(nQ)return nD;nQ=1;var e=Gce(),t=Wf(),r=eWe(),n=Math.max;function o(i,s,a){var l=i==null?0:i.length;if(!l)return-1;var u=a==null?0:r(a);return u<0&&(u=n(l+u,0)),e(i,t(s,3),u)}return nD=o,nD}var oD,oQ;function rWe(){if(oQ)return oD;oQ=1;var e=Xqe(),t=tWe(),r=e(t);return oD=r,oD}var iD,iQ;function efe(){if(iQ)return iD;iQ=1;var e=D7();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return iD=t,iD}var sD,sQ;function nWe(){if(sQ)return sD;sQ=1;var e=C7(),t=kce(),r=dp();function n(o,i){return o==null?o:e(o,t(i),r)}return sD=n,sD}var aD,aQ;function oWe(){if(aQ)return aD;aQ=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return aD=e,aD}var lD,lQ;function iWe(){if(lQ)return lD;lQ=1;var e=c9(),t=N7(),r=Wf();function n(o,i){var s={};return i=r(i,3),t(o,function(a,l,u){e(s,l,i(a,l,u))}),s}return lD=n,lD}var uD,uQ;function B7(){if(uQ)return uD;uQ=1;var e=Av();function t(r,n,o){for(var i=-1,s=r.length;++ir}return cD=e,cD}var fD,fQ;function aWe(){if(fQ)return fD;fQ=1;var e=B7(),t=sWe(),r=hp();function n(o){return o&&o.length?e(o,r,t):void 0}return fD=n,fD}var dD,dQ;function tfe(){if(dQ)return dD;dQ=1;var e=c9(),t=Ev();function r(n,o,i){(i!==void 0&&!t(n[o],i)||i===void 0&&!(o in n))&&e(n,o,i)}return dD=r,dD}var hD,hQ;function lWe(){if(hQ)return hD;hQ=1;var e=cp(),t=g9(),r=Ic(),n="[object Object]",o=Function.prototype,i=Object.prototype,s=o.toString,a=i.hasOwnProperty,l=s.call(Object);function u(c){if(!r(c)||e(c)!=n)return!1;var f=t(c);if(f===null)return!0;var d=a.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&s.call(d)==l}return hD=u,hD}var pD,pQ;function rfe(){if(pQ)return pD;pQ=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return pD=e,pD}var gD,gQ;function uWe(){if(gQ)return gD;gQ=1;var e=oE(),t=dp();function r(n){return e(n,t(n))}return gD=r,gD}var vD,vQ;function cWe(){if(vQ)return vD;vQ=1;var e=tfe(),t=fce(),r=_ce(),n=dce(),o=Sce(),i=iE(),s=Co(),a=Kce(),l=wv(),u=nE(),c=Cl(),f=lWe(),d=sE(),h=rfe(),g=uWe();function v(y,E,_,S,b,k,T){var x=h(y,_),I=h(E,_),C=T.get(I);if(C){e(y,_,C);return}var R=k?k(x,I,_+"",y,E,T):void 0,D=R===void 0;if(D){var L=s(I),M=!L&&l(I),W=!L&&!M&&d(I);R=I,L||M||W?s(x)?R=x:a(x)?R=n(x):M?(D=!1,R=t(I,!0)):W?(D=!1,R=r(I,!0)):R=[]:f(I)||i(I)?(R=x,i(x)?R=g(x):(!c(x)||u(x))&&(R=o(I))):D=!1}D&&(T.set(I,R),b(R,I,S,k,T),T.delete(I)),e(y,_,R)}return vD=v,vD}var mD,mQ;function fWe(){if(mQ)return mD;mQ=1;var e=u9(),t=tfe(),r=C7(),n=cWe(),o=Cl(),i=dp(),s=rfe();function a(l,u,c,f,d){l!==u&&r(u,function(h,g){if(d||(d=new e),o(h))n(l,u,g,c,a,f,d);else{var v=f?f(s(l,g),h,g+"",l,u,d):void 0;v===void 0&&(v=h),t(l,g,v)}},i)}return mD=a,mD}var yD,yQ;function dWe(){if(yQ)return yD;yQ=1;var e=_9(),t=E9();function r(n){return e(function(o,i){var s=-1,a=i.length,l=a>1?i[a-1]:void 0,u=a>2?i[2]:void 0;for(l=n.length>3&&typeof l=="function"?(a--,l):void 0,u&&t(i[0],i[1],u)&&(l=a<3?void 0:l,a=1),o=Object(o);++sn||a&&l&&c&&!u&&!f||i&&l&&c||!o&&c||!s)return 1;if(!i&&!a&&!f&&r=u)return c;var f=o[i];return c*(f=="desc"?-1:1)}}return r.index-n.index}return FD=t,FD}var BD,BQ;function IWe(){if(BQ)return BD;BQ=1;var e=m9(),t=b9(),r=Wf(),n=Hce(),o=AWe(),i=h9(),s=TWe(),a=hp(),l=Co();function u(c,f,d){f.length?f=e(f,function(v){return l(v)?function(y){return t(y,v.length===1?v[0]:v)}:v}):f=[a];var h=-1;f=e(f,i(r));var g=n(c,function(v,y,E){var _=e(f,function(S){return S(v)});return{criteria:_,index:++h,value:v}});return o(g,function(v,y){return s(v,y,d)})}return BD=u,BD}var MD,MQ;function CWe(){if(MQ)return MD;MQ=1;var e=D7(),t=IWe(),r=_9(),n=E9(),o=r(function(i,s){if(i==null)return[];var a=s.length;return a>1&&n(i,s[0],s[1])?s=[]:a>2&&n(s[0],s[1],s[2])&&(s=[s[0]]),t(i,e(s,1),[])});return MD=o,MD}var LD,LQ;function NWe(){if(LQ)return LD;LQ=1;var e=Dce(),t=0;function r(n){var o=++t;return e(n)+o}return LD=r,LD}var jD,jQ;function RWe(){if(jQ)return jD;jQ=1;function e(t,r,n){for(var o=-1,i=t.length,s=r.length,a={};++o0;--a)if(s=t[a].dequeue(),s){n=n.concat(HD(e,t,r,s,!0));break}}}return n}function HD(e,t,r,n,o){var i=o?[]:void 0;return cf.forEach(e.inEdges(n.v),function(s){var a=e.edge(s),l=e.node(s.v);o&&i.push({v:s.v,w:s.w}),l.out-=a,PB(t,r,l)}),cf.forEach(e.outEdges(n.v),function(s){var a=e.edge(s),l=s.w,u=e.node(l);u.in-=a,PB(t,r,u)}),e.removeNode(n.v),i}function $We(e,t){var r=new BWe,n=0,o=0;cf.forEach(e.nodes(),function(a){r.setNode(a,{v:a,in:0,out:0})}),cf.forEach(e.edges(),function(a){var l=r.edge(a.v,a.w)||0,u=t(a),c=l+u;r.setEdge(a.v,a.w,c),o=Math.max(o,r.node(a.v).out+=u),n=Math.max(n,r.node(a.w).in+=u)});var i=cf.range(o+n+3).map(function(){return new MWe}),s=n+1;return cf.forEach(r.nodes(),function(a){PB(i,s,r.node(a))}),{graph:r,buckets:i,zeroIdx:s}}function PB(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}var Ah=$n,PWe=LWe,qWe={run:WWe,undo:KWe};function WWe(e){var t=e.graph().acyclicer==="greedy"?PWe(e,r(e)):GWe(e);Ah.forEach(t,function(n){var o=e.edge(n);e.removeEdge(n),o.forwardName=n.name,o.reversed=!0,e.setEdge(n.w,n.v,o,Ah.uniqueId("rev"))});function r(n){return function(o){return n.edge(o).weight}}}function GWe(e){var t=[],r={},n={};function o(i){Ah.has(n,i)||(n[i]=!0,r[i]=!0,Ah.forEach(e.outEdges(i),function(s){Ah.has(r,s.w)?t.push(s):o(s.w)}),delete r[i])}return Ah.forEach(e.nodes(),o),t}function KWe(e){Ah.forEach(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}})}var jr=$n,ife=_u.Graph,$s={addDummyNode:sfe,simplify:VWe,asNonCompoundGraph:UWe,successorWeights:YWe,predecessorWeights:XWe,intersectRect:QWe,buildLayerMatrix:ZWe,normalizeRanks:JWe,removeEmptyRanks:eGe,addBorderNode:tGe,maxRank:afe,partition:rGe,time:nGe,notime:oGe};function sfe(e,t,r,n){var o;do o=jr.uniqueId(n);while(e.hasNode(o));return r.dummy=t,e.setNode(o,r),o}function VWe(e){var t=new ife().setGraph(e.graph());return jr.forEach(e.nodes(),function(r){t.setNode(r,e.node(r))}),jr.forEach(e.edges(),function(r){var n=t.edge(r.v,r.w)||{weight:0,minlen:1},o=e.edge(r);t.setEdge(r.v,r.w,{weight:n.weight+o.weight,minlen:Math.max(n.minlen,o.minlen)})}),t}function UWe(e){var t=new ife({multigraph:e.isMultigraph()}).setGraph(e.graph());return jr.forEach(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),jr.forEach(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}function YWe(e){var t=jr.map(e.nodes(),function(r){var n={};return jr.forEach(e.outEdges(r),function(o){n[o.w]=(n[o.w]||0)+e.edge(o).weight}),n});return jr.zipObject(e.nodes(),t)}function XWe(e){var t=jr.map(e.nodes(),function(r){var n={};return jr.forEach(e.inEdges(r),function(o){n[o.v]=(n[o.v]||0)+e.edge(o).weight}),n});return jr.zipObject(e.nodes(),t)}function QWe(e,t){var r=e.x,n=e.y,o=t.x-r,i=t.y-n,s=e.width/2,a=e.height/2;if(!o&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var l,u;return Math.abs(i)*s>Math.abs(o)*a?(i<0&&(a=-a),l=a*o/i,u=a):(o<0&&(s=-s),l=s,u=s*i/o),{x:r+l,y:n+u}}function ZWe(e){var t=jr.map(jr.range(afe(e)+1),function(){return[]});return jr.forEach(e.nodes(),function(r){var n=e.node(r),o=n.rank;jr.isUndefined(o)||(t[o][n.order]=r)}),t}function JWe(e){var t=jr.min(jr.map(e.nodes(),function(r){return e.node(r).rank}));jr.forEach(e.nodes(),function(r){var n=e.node(r);jr.has(n,"rank")&&(n.rank-=t)})}function eGe(e){var t=jr.min(jr.map(e.nodes(),function(i){return e.node(i).rank})),r=[];jr.forEach(e.nodes(),function(i){var s=e.node(i).rank-t;r[s]||(r[s]=[]),r[s].push(i)});var n=0,o=e.graph().nodeRankFactor;jr.forEach(r,function(i,s){jr.isUndefined(i)&&s%o!==0?--n:n&&jr.forEach(i,function(a){e.node(a).rank+=n})})}function tGe(e,t,r,n){var o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=n),sfe(e,"border",o,t)}function afe(e){return jr.max(jr.map(e.nodes(),function(t){var r=e.node(t).rank;if(!jr.isUndefined(r))return r}))}function rGe(e,t){var r={lhs:[],rhs:[]};return jr.forEach(e,function(n){t(n)?r.lhs.push(n):r.rhs.push(n)}),r}function nGe(e,t){var r=jr.now();try{return t()}finally{console.log(e+" time: "+(jr.now()-r)+"ms")}}function oGe(e,t){return t()}var lfe=$n,iGe=$s,sGe={run:aGe,undo:uGe};function aGe(e){e.graph().dummyChains=[],lfe.forEach(e.edges(),function(t){lGe(e,t)})}function lGe(e,t){var r=t.v,n=e.node(r).rank,o=t.w,i=e.node(o).rank,s=t.name,a=e.edge(t),l=a.labelRank;if(i!==n+1){e.removeEdge(t);var u,c,f;for(f=0,++n;ns.lim&&(a=s,l=!0);var u=Rf.filter(t.edges(),function(c){return l===HQ(e,e.node(c.v),a)&&l!==HQ(e,e.node(c.w),a)});return Rf.minBy(u,function(c){return yGe(t,c)})}function pfe(e,t,r,n){var o=r.v,i=r.w;e.removeEdge(o,i),e.setEdge(n.v,n.w,{}),L7(e),M7(e,t),AGe(e,t)}function AGe(e,t){var r=Rf.find(e.nodes(),function(o){return!t.node(o).parent}),n=_Ge(e,r);n=n.slice(1),Rf.forEach(n,function(o){var i=e.node(o).parent,s=t.edge(o,i),a=!1;s||(s=t.edge(i,o),a=!0),t.node(o).rank=t.node(i).rank+(a?s.minlen:-s.minlen)})}function xGe(e,t,r){return e.hasEdge(t,r)}function HQ(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}var TGe=w9,gfe=TGe.longestPath,IGe=ufe,CGe=wGe,NGe=RGe;function RGe(e){switch(e.graph().ranker){case"network-simplex":$Q(e);break;case"tight-tree":DGe(e);break;case"longest-path":OGe(e);break;default:$Q(e)}}var OGe=gfe;function DGe(e){gfe(e),IGe(e)}function $Q(e){CGe(e)}var qB=$n,FGe=BGe;function BGe(e){var t=LGe(e);qB.forEach(e.graph().dummyChains,function(r){for(var n=e.node(r),o=n.edgeObj,i=MGe(e,t,o.v,o.w),s=i.path,a=i.lca,l=0,u=s[l],c=!0;r!==o.w;){if(n=e.node(r),c){for(;(u=s[l])!==a&&e.node(u).maxRanks||a>t[l].lim));for(u=l,l=n;(l=e.parent(l))!==u;)i.push(l);return{path:o.concat(i.reverse()),lca:u}}function LGe(e){var t={},r=0;function n(o){var i=r;qB.forEach(e.children(o),n),t[o]={low:i,lim:r++}}return qB.forEach(e.children(),n),t}var ff=$n,WB=$s,jGe={run:zGe,cleanup:PGe};function zGe(e){var t=WB.addDummyNode(e,"root",{},"_root"),r=HGe(e),n=ff.max(ff.values(r))-1,o=2*n+1;e.graph().nestingRoot=t,ff.forEach(e.edges(),function(s){e.edge(s).minlen*=o});var i=$Ge(e)+1;ff.forEach(e.children(),function(s){vfe(e,t,o,i,n,r,s)}),e.graph().nodeRankFactor=o}function vfe(e,t,r,n,o,i,s){var a=e.children(s);if(!a.length){s!==t&&e.setEdge(t,s,{weight:0,minlen:r});return}var l=WB.addBorderNode(e,"_bt"),u=WB.addBorderNode(e,"_bb"),c=e.node(s);e.setParent(l,s),c.borderTop=l,e.setParent(u,s),c.borderBottom=u,ff.forEach(a,function(f){vfe(e,t,r,n,o,i,f);var d=e.node(f),h=d.borderTop?d.borderTop:f,g=d.borderBottom?d.borderBottom:f,v=d.borderTop?n:2*n,y=h!==g?1:o-i[s]+1;e.setEdge(l,h,{weight:v,minlen:y,nestingEdge:!0}),e.setEdge(g,u,{weight:v,minlen:y,nestingEdge:!0})}),e.parent(s)||e.setEdge(t,l,{weight:0,minlen:o+i[s]})}function HGe(e){var t={};function r(n,o){var i=e.children(n);i&&i.length&&ff.forEach(i,function(s){r(s,o+1)}),t[n]=o}return ff.forEach(e.children(),function(n){r(n,1)}),t}function $Ge(e){return ff.reduce(e.edges(),function(t,r){return t+e.edge(r).weight},0)}function PGe(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,ff.forEach(e.edges(),function(r){var n=e.edge(r);n.nestingEdge&&e.removeEdge(r)})}var $D=$n,qGe=$s,WGe=GGe;function GGe(e){function t(r){var n=e.children(r),o=e.node(r);if(n.length&&$D.forEach(n,t),$D.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var i=o.minRank,s=o.maxRank+1;i0;)c%2&&(f+=a[c+1]),c=c-1>>1,a[c]+=u.weight;l+=u.weight*f})),l}var WQ=$n,rKe=nKe;function nKe(e,t){return WQ.map(t,function(r){var n=e.inEdges(r);if(n.length){var o=WQ.reduce(n,function(i,s){var a=e.edge(s),l=e.node(s.v);return{sum:i.sum+a.weight*l.order,weight:i.weight+a.weight}},{sum:0,weight:0});return{v:r,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:r}})}var ia=$n,oKe=iKe;function iKe(e,t){var r={};ia.forEach(e,function(o,i){var s=r[o.v]={indegree:0,in:[],out:[],vs:[o.v],i};ia.isUndefined(o.barycenter)||(s.barycenter=o.barycenter,s.weight=o.weight)}),ia.forEach(t.edges(),function(o){var i=r[o.v],s=r[o.w];!ia.isUndefined(i)&&!ia.isUndefined(s)&&(s.indegree++,i.out.push(r[o.w]))});var n=ia.filter(r,function(o){return!o.indegree});return sKe(n)}function sKe(e){var t=[];function r(i){return function(s){s.merged||(ia.isUndefined(s.barycenter)||ia.isUndefined(i.barycenter)||s.barycenter>=i.barycenter)&&aKe(i,s)}}function n(i){return function(s){s.in.push(i),--s.indegree===0&&e.push(s)}}for(;e.length;){var o=e.pop();t.push(o),ia.forEach(o.in.reverse(),r(o)),ia.forEach(o.out,n(o))}return ia.map(ia.filter(t,function(i){return!i.merged}),function(i){return ia.pick(i,["vs","i","barycenter","weight"])})}function aKe(e,t){var r=0,n=0;e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}var dy=$n,lKe=$s,uKe=cKe;function cKe(e,t){var r=lKe.partition(e,function(c){return dy.has(c,"barycenter")}),n=r.lhs,o=dy.sortBy(r.rhs,function(c){return-c.i}),i=[],s=0,a=0,l=0;n.sort(fKe(!!t)),l=GQ(i,o,l),dy.forEach(n,function(c){l+=c.vs.length,i.push(c.vs),s+=c.barycenter*c.weight,a+=c.weight,l=GQ(i,o,l)});var u={vs:dy.flatten(i,!0)};return a&&(u.barycenter=s/a,u.weight=a),u}function GQ(e,t,r){for(var n;t.length&&(n=dy.last(t)).i<=r;)t.pop(),e.push(n.vs),r++;return r}function fKe(e){return function(t,r){return t.barycenterr.barycenter?1:e?r.i-t.i:t.i-r.i}}var Od=$n,dKe=rKe,hKe=oKe,pKe=uKe,gKe=yfe;function yfe(e,t,r,n){var o=e.children(t),i=e.node(t),s=i?i.borderLeft:void 0,a=i?i.borderRight:void 0,l={};s&&(o=Od.filter(o,function(g){return g!==s&&g!==a}));var u=dKe(e,o);Od.forEach(u,function(g){if(e.children(g.v).length){var v=yfe(e,g.v,r,n);l[g.v]=v,Od.has(v,"barycenter")&&mKe(g,v)}});var c=hKe(u,r);vKe(c,l);var f=pKe(c,n);if(s&&(f.vs=Od.flatten([s,f.vs,a],!0),e.predecessors(s).length)){var d=e.node(e.predecessors(s)[0]),h=e.node(e.predecessors(a)[0]);Od.has(f,"barycenter")||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+d.order+h.order)/(f.weight+2),f.weight+=2}return f}function vKe(e,t){Od.forEach(e,function(r){r.vs=Od.flatten(r.vs.map(function(n){return t[n]?t[n].vs:n}),!0)})}function mKe(e,t){Od.isUndefined(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}var hy=$n,yKe=_u.Graph,bKe=_Ke;function _Ke(e,t,r){var n=EKe(e),o=new yKe({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(i){return e.node(i)});return hy.forEach(e.nodes(),function(i){var s=e.node(i),a=e.parent(i);(s.rank===t||s.minRank<=t&&t<=s.maxRank)&&(o.setNode(i),o.setParent(i,a||n),hy.forEach(e[r](i),function(l){var u=l.v===i?l.w:l.v,c=o.edge(u,i),f=hy.isUndefined(c)?0:c.weight;o.setEdge(u,i,{weight:e.edge(l).weight+f})}),hy.has(s,"minRank")&&o.setNode(i,{borderLeft:s.borderLeft[t],borderRight:s.borderRight[t]}))}),o}function EKe(e){for(var t;e.hasNode(t=hy.uniqueId("_root")););return t}var SKe=$n,wKe=kKe;function kKe(e,t,r){var n={},o;SKe.forEach(r,function(i){for(var s=e.parent(i),a,l;s;){if(a=e.parent(s),a?(l=n[a],n[a]=s):(l=o,o=s),l&&l!==s){t.setEdge(l,s);return}s=a}})}var Jd=$n,AKe=QGe,xKe=JGe,TKe=gKe,IKe=bKe,CKe=wKe,NKe=_u.Graph,KQ=$s,RKe=OKe;function OKe(e){var t=KQ.maxRank(e),r=VQ(e,Jd.range(1,t+1),"inEdges"),n=VQ(e,Jd.range(t-1,-1,-1),"outEdges"),o=AKe(e);UQ(e,o);for(var i=Number.POSITIVE_INFINITY,s,a=0,l=0;l<4;++a,++l){DKe(a%2?r:n,a%4>=2),o=KQ.buildLayerMatrix(e);var u=xKe(e,o);uu)&&j7(r,d,c)})})}function o(i,s){var a=-1,l,u=0;return Yt.forEach(s,function(c,f){if(e.node(c).dummy==="border"){var d=e.predecessors(c);d.length&&(l=e.node(d[0]).order,n(s,u,f,a,l),u=f,a=l)}n(s,u,s.length,l,i.length)}),s}return Yt.reduce(t,o),r}function LKe(e,t){if(e.node(t).dummy)return Yt.find(e.predecessors(t),function(r){return e.node(r).dummy})}function j7(e,t,r){if(t>r){var n=t;t=r,r=n}var o=e[t];o||(e[t]=o={}),o[r]=!0}function Efe(e,t,r){if(t>r){var n=t;t=r,r=n}return Yt.has(e[t],r)}function Sfe(e,t,r,n){var o={},i={},s={};return Yt.forEach(t,function(a){Yt.forEach(a,function(l,u){o[l]=l,i[l]=l,s[l]=u})}),Yt.forEach(t,function(a){var l=-1;Yt.forEach(a,function(u){var c=n(u);if(c.length){c=Yt.sortBy(c,function(v){return s[v]});for(var f=(c.length-1)/2,d=Math.floor(f),h=Math.ceil(f);d<=h;++d){var g=c[d];i[u]===u&&lN.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",children:[N.jsxs("defs",{children:[N.jsxs("linearGradient",{id:"a5efbc52-c9a4-425f-9d94-50e000195659",x1:"9",y1:"18.967",x2:"9",y2:"3.398",gradientUnits:"userSpaceOnUse",children:[N.jsx("stop",{offset:"0",stopColor:"#0078d4"}),N.jsx("stop",{offset:"0.156",stopColor:"#1380da"}),N.jsx("stop",{offset:"0.528",stopColor:"#3c91e5"}),N.jsx("stop",{offset:"0.822",stopColor:"#559cec"}),N.jsx("stop",{offset:"1",stopColor:"#5ea0ef"})]}),N.jsxs("linearGradient",{id:"a110d41d-e4ca-48ee-9efe-328e60a20dcc",x1:"9",y1:"5.019",x2:"9",y2:"13.676",gradientUnits:"userSpaceOnUse",children:[N.jsx("stop",{offset:"0.22",stopColor:"#fff"}),N.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]}),N.jsxs("linearGradient",{id:"bcf81335-a15c-4e8a-85c4-cb14c4ef74b0",x1:"8.991",y1:"2.883",x2:"8.991",y2:"11.32",gradientUnits:"userSpaceOnUse",children:[N.jsx("stop",{offset:"0.22",stopColor:"#fff"}),N.jsx("stop",{offset:"1",stopColor:"#e6e6e6"})]})]}),N.jsx("g",{id:"b5d797c5-507f-4358-b61e-ca040c36ef52",children:N.jsxs("g",{children:[N.jsx("path",{d:"M.038,9.142,4.4,16.69a.285.285,0,0,0,.246.142h8.716a.285.285,0,0,0,.246-.142l4.358-7.548a.283.283,0,0,0,0-.284L13.6,1.31a.285.285,0,0,0-.246-.142H4.642A.285.285,0,0,0,4.4,1.31L.038,8.858A.283.283,0,0,0,.038,9.142Z",fill:"url(#a5efbc52-c9a4-425f-9d94-50e000195659)"}),N.jsxs("g",{children:[N.jsx("path",{id:"a81cd782-d573-434f-a6f1-758ffbb6f88b",d:"M12.239,6.083l.048.042a.085.085,0,0,0,.115,0l.447-.374.808-1.334a.083.083,0,0,0,0-.1l-.138-.145a.085.085,0,0,0-.1,0l-1.273.863L11.78,5.5a.086.086,0,0,0,0,.109l.049.048L9.2,8.394l-.543-.6-.6.6a1.093,1.093,0,0,1-.26.911.945.945,0,0,1-.826.3L4.376,12.232a.163.163,0,0,0,0,.231l0,.005,1.255,1.3a.162.162,0,0,0,.23.011l.011-.011L8.4,11.14a1.037,1.037,0,0,1,.3-.869.964.964,0,0,1,.826-.3l.6-.6L9.6,8.78Z",opacity:"0.4",fill:"url(#a110d41d-e4ca-48ee-9efe-328e60a20dcc)"}),N.jsx("path",{d:"M13.283,12.057l-.6-.645L8.648,7.278h0l-.2-.218a2.242,2.242,0,0,0-.525-2.2,2.067,2.067,0,0,0-1.865-.6.09.09,0,0,0-.065.11.088.088,0,0,0,.017.035l1.05,1.068a.091.091,0,0,1,0,.085L6.808,6.65a.084.084,0,0,1-.061.06l-1.074.3a.084.084,0,0,1-.084,0l-1.02-1.08a.084.084,0,0,0-.145.054,2.19,2.19,0,0,0,.6,1.919,2.035,2.035,0,0,0,2.034.543l.036.043.23.235h0l4.592,4.828a.954.954,0,0,0,1.34.048l.048-.048a1.017,1.017,0,0,0,.284-.724A1.117,1.117,0,0,0,13.283,12.057Z",fill:"url(#bcf81335-a15c-4e8a-85c4-cb14c4ef74b0)"})]})]})})]}),RVe=()=>N.jsxs("svg",{fill:"currentColor",width:"16px",height:"16px",viewBox:"0 0 2048 2048",role:"img",xmlns:"http://www.w3.org/2000/svg",children:[N.jsx("title",{children:"OpenAI icon"}),N.jsx("path",{d:"M832 676l575 288v760l-575 288-575-288V964l575-288zm0 144l-368 184 368 183 368-183-368-184zm-447 825l383 191v-538l-383-191v538zm894 0v-538l-383 191v538l383-191zm577-733q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9zM704 496q-14 0-23-9t-9-23q0-23-9-43t-24-36-35-24-44-9q-14 0-23-9t-9-23q0-14 9-23t23-9q23 0 43-9t36-24 24-35 9-44q0-14 9-23t23-9q14 0 23 9t9 23q0 23 9 43t24 36 35 24 44 9q14 0 23 9t9 23q0 14-9 23t-23 9q-23 0-43 9t-36 24-24 35-9 44q0 14-9 23t-23 9zm1206-48q0 23-15 38t-39 16q-27 0-57 11t-58 28-54 37-45 40q-19 19-39 44t-38 54-28 59-11 57q0 23-15 38t-39 16q-23 0-38-15t-16-39q0-27-11-57t-28-58-37-54-40-45q-19-19-44-39t-54-38-59-28-57-11q-23 0-38-15t-16-39q0-23 15-38t39-16q27 0 57-11t58-28 54-37 45-40q19-19 39-44t38-54 28-59 11-57q0-23 15-38t39-16q23 0 38 15t16 39q0 27 11 57t28 58 37 54 40 45q19 19 44 39t54 38 59 28 57 11q23 0 38 15t16 39zm-438 212q38-65 92-119t120-93q-65-38-119-92t-93-120q-38 65-92 119t-120 93q65 38 119 92t93 120z"})]}),OVe=()=>N.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:N.jsx("path",{d:"M9.5 6.50238C9.5 6.22624 9.72386 6.00238 10 6.00238C10.2761 6.00238 10.5 6.22624 10.5 6.50238V7.50391C10.5 7.78005 10.2761 8.00391 10 8.00391C9.72386 8.00391 9.5 7.78005 9.5 7.50391V6.50238ZM12.8506 7.44332C12.6553 7.24806 12.3388 7.24806 12.1435 7.44332L11.4353 8.15151C11.2401 8.34677 11.2401 8.66335 11.4353 8.85861C11.6306 9.05388 11.9472 9.05388 12.1424 8.85861L12.8506 8.15043C13.0459 7.95517 13.0459 7.63858 12.8506 7.44332ZM7.8521 7.44332C7.65684 7.24806 7.34026 7.24806 7.145 7.44332C6.94973 7.63858 6.94973 7.95517 7.145 8.15043L7.85318 8.85861C8.04844 9.05388 8.36503 9.05388 8.56029 8.85861C8.75555 8.66335 8.75555 8.34677 8.56029 8.15151L7.8521 7.44332ZM10 2C13.3137 2 16 4.59693 16 7.80041C16 9.47737 15.2546 11.0164 13.7961 12.3942C13.7324 12.4544 13.6831 12.5269 13.6512 12.6065L13.6251 12.6883L12.6891 16.6051C12.5048 17.3763 11.8236 17.935 11.0181 17.9947L10.8748 18H9.12546C8.30655 18 7.59 17.4839 7.34866 16.7385L7.31108 16.6047L6.37626 12.6886C6.34955 12.5766 6.29016 12.4745 6.20516 12.3942C4.8153 11.0819 4.07265 9.62354 4.00507 8.03903L4 7.80041L4.00321 7.60894C4.1077 4.49409 6.75257 2 10 2ZM7.955 15L8.27386 16.3344L8.30004 16.4305C8.39695 16.7298 8.67583 16.9517 9.0116 16.993L9.12546 17L10.8379 17.0007L10.9442 16.9974C11.2865 16.9721 11.5726 16.7609 11.6854 16.4718L11.7165 16.3727L12.045 15H7.955ZM10 3C7.36782 3 5.21188 4.95301 5.0151 7.41357L5.00307 7.62569L4.99977 7.77916L5.00416 7.99642C5.05977 9.30026 5.67758 10.5208 6.89167 11.6671C7.07995 11.8449 7.22191 12.0647 7.30572 12.3078L7.34894 12.4564L7.716 14H9.50024V9.49707C9.50024 9.22093 9.7241 8.99707 10.0002 8.99707C10.2764 8.99707 10.5002 9.22093 10.5002 9.49707V14H12.285L12.6722 12.3851L12.7231 12.2343C12.8091 12.0198 12.9409 11.8265 13.1094 11.6673C14.3825 10.4646 15 9.18054 15 7.80041C15 5.15693 12.7689 3 10 3Z",fill:"currentColor"})}),DVe=()=>N.jsxs("svg",{width:"16px",height:"16px",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0164 2C10.8193 2 9.03825 3.72453 9.03825 5.85185V8.51852H15.9235V9.25926H5.97814C3.78107 9.25926 2 10.9838 2 13.1111L2 18.8889C2 21.0162 3.78107 22.7407 5.97814 22.7407H8.27322V19.4815C8.27322 17.3542 10.0543 15.6296 12.2514 15.6296H19.5956C21.4547 15.6296 22.9617 14.1704 22.9617 12.3704V5.85185C22.9617 3.72453 21.1807 2 18.9836 2H13.0164ZM12.0984 6.74074C12.8589 6.74074 13.4754 6.14378 13.4754 5.40741C13.4754 4.67103 12.8589 4.07407 12.0984 4.07407C11.3378 4.07407 10.7213 4.67103 10.7213 5.40741C10.7213 6.14378 11.3378 6.74074 12.0984 6.74074Z",fill:"#327EBD"}),N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.9834 30C21.1805 30 22.9616 28.2755 22.9616 26.1482V23.4815L16.0763 23.4815L16.0763 22.7408L26.0217 22.7408C28.2188 22.7408 29.9998 21.0162 29.9998 18.8889V13.1111C29.9998 10.9838 28.2188 9.25928 26.0217 9.25928L23.7266 9.25928V12.5185C23.7266 14.6459 21.9455 16.3704 19.7485 16.3704L12.4042 16.3704C10.5451 16.3704 9.03809 17.8296 9.03809 19.6296L9.03809 26.1482C9.03809 28.2755 10.8192 30 13.0162 30H18.9834ZM19.9015 25.2593C19.1409 25.2593 18.5244 25.8562 18.5244 26.5926C18.5244 27.329 19.1409 27.9259 19.9015 27.9259C20.662 27.9259 21.2785 27.329 21.2785 26.5926C21.2785 25.8562 20.662 25.2593 19.9015 25.2593Z",fill:"#FFDA4B"})]}),FVe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20aria-label='TypeScript'%20role='img'%20viewBox='0%200%20512%20512'%3e%3crect%20width='512'%20height='512'%20rx='15%25'%20fill='%233178c6'/%3e%3cpath%20fill='%23ffffff'%20d='m233%20284h64v-41H118v41h64v183h51zm84%20173c8.1%204.2%2018%207.3%2029%209.4s23%203.1%2035%203.1c12%200%2023-1.1%2034-3.4c11-2.3%2020-6.1%2028-11c8.1-5.3%2015-12%2019-21s7.1-19%207.1-32c0-9.1-1.4-17-4.1-24s-6.6-13-12-18c-5.1-5.3-11-10-18-14s-15-8.2-24-12c-6.6-2.7-12-5.3-18-7.9c-5.2-2.6-9.7-5.2-13-7.8c-3.7-2.7-6.5-5.5-8.5-8.4c-2-3-3-6.3-3-10c0-3.4.89-6.5%202.7-9.3s4.3-5.1%207.5-7.1c3.2-2%207.2-3.5%2012-4.6c4.7-1.1%209.9-1.6%2016-1.6c4.2%200%208.6.31%2013%20.94c4.6.63%209.3%201.6%2014%202.9c4.7%201.3%209.3%202.9%2014%204.9c4.4%202%208.5%204.3%2012%206.9v-47c-7.6-2.9-16-5.1-25-6.5s-19-2.1-31-2.1c-12%200-23%201.3-34%203.8s-20%206.5-28%2012c-8.1%205.4-14%2012-19%2021c-4.7%208.4-7%2018-7%2030c0%2015%204.3%2028%2013%2038c8.6%2011%2022%2019%2039%2027c6.9%202.8%2013%205.6%2019%208.3s11%205.5%2015%208.4c4.3%202.9%207.7%206.1%2010%209.5c2.5%203.4%203.8%207.4%203.8%2012c0%203.2-.78%206.2-2.3%209s-3.9%205.2-7.1%207.2s-7.1%203.6-12%204.8c-4.7%201.1-10%201.7-17%201.7c-11%200-22-1.9-32-5.7c-11-3.8-21-9.5-28.1-15.44z'/%3e%3c/svg%3e",yw=()=>N.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 18 18",role:"img",children:[N.jsx("defs",{children:N.jsxs("linearGradient",{id:"fb5d9d20-fc2c-4e2c-bffd-dc236176d8b2",x1:"-6428.21",y1:"9646.124",x2:"-6428.21",y2:"9617.899",gradientTransform:"matrix(0.5, 0, 0, -0.5, 3224.856, 4823.856)",gradientUnits:"userSpaceOnUse",children:[N.jsx("stop",{offset:"0",stopColor:"#5ea0ef"}),N.jsx("stop",{offset:"0.178",stopColor:"#589eed"}),N.jsx("stop",{offset:"0.406",stopColor:"#4897e9"}),N.jsx("stop",{offset:"0.662",stopColor:"#2e8ce1"}),N.jsx("stop",{offset:"0.936",stopColor:"#0a7cd7"}),N.jsx("stop",{offset:"1",stopColor:"#0078d4"})]})}),N.jsx("g",{id:"a05a9809-540f-4ec8-9a73-07896b5e7f5c",children:N.jsxs("g",{children:[N.jsx("path",{d:"M8.438,10.379h4.234v4.234H8.438ZM3.5,4.734H7.732V.5H4.086a.588.588,0,0,0-.588.588Zm.588,9.879H7.732V10.379H3.5v3.646A.588.588,0,0,0,4.086,14.613ZM3.5,9.674H7.732V5.44H3.5Zm9.88,4.939h3.646a.588.588,0,0,0,.588-.588V10.379H13.378ZM8.438,9.674h4.234V5.44H8.438Zm4.94,0h4.234V5.44H13.378Zm0-9.174V4.734h4.234V1.088A.588.588,0,0,0,17.024.5ZM8.438,4.734h4.234V.5H8.438Z",fill:"url(#fb5d9d20-fc2c-4e2c-bffd-dc236176d8b2)"}),N.jsx("rect",{x:"-0.212",y:"14.751",width:"5.457",height:"1.243",rx:"0.581",transform:"translate(-10.133 6.282) rotate(-45)",fill:"#198ab3"}),N.jsx("circle",{cx:"5.959",cy:"11.709",r:"3.744",fill:"#50e6ff"}),N.jsx("circle",{cx:"5.952",cy:"11.642",r:"2.94",fill:"#fff"})]})})]}),ud=16,BVe={PromptFlowToolAzureContentSafety:N.jsx(JQ,{width:ud,height:ud}),PromptFlowToolSerpAPI:N.jsx(eZ,{}),PromptFlowToolBing:N.jsx(NVe,{width:ud,height:ud}),PromptFlowToolAzureContentModerator:N.jsx(JQ,{width:ud,height:ud}),PromptFlowToolVectorIndexLookupByText:N.jsx(yw,{}),PromptFlowToolFaissIndexLookup:N.jsx(yw,{}),PromptFlowToolVectorDBLookup:N.jsx(yw,{}),PromptFlowToolVectorSearch:N.jsx(yw,{}),PromptFlowToolLlm:N.jsx(RVe,{}),PromptFlowToolPython:N.jsx(DVe,{}),PromptFlowToolTypeScript:N.jsx(FVe,{width:ud,height:ud}),PromptFlowToolPrompt:N.jsx(OVe,{}),PromptFlowToolDefault:N.jsx(eZ,{})};xo({icons:{...BVe}});var tZ=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),MVe=new Uint8Array(16);function LVe(){if(!tZ)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tZ(MVe)}var Ife=[];for(var bw=0;bw<256;++bw)Ife[bw]=(bw+256).toString(16).substr(1);function jVe(e,t){var r=t||0,n=Ife;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}function ZA(e,t,r){var n=t&&r||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||LVe)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||jVe(o)}var Cfe={exports:{}};Cfe.exports=function(e){return Nfe(zVe(e),e)};Cfe.exports.array=Nfe;function Nfe(e,t){for(var r=e.length,n=new Array(r),o={},i=r;i--;)o[i]||s(e[i],i,[]);return n;function s(a,l,u){if(u.indexOf(a)>=0){var c;try{c=", node was:"+JSON.stringify(a)}catch{c=""}throw new Error("Cyclic dependency"+c)}if(!~e.indexOf(a))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(a));if(!o[l]){o[l]=!0;var f=t.filter(function(g){return g[0]===a});if(l=f.length){var d=u.concat(a);do{var h=f[--l][1];s(h,e.indexOf(h),d)}while(l)}n[--r]=a}}}function zVe(e){for(var t=[],r=0,n=e.length;r1?r-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:Bk;rZ&&rZ(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const i=r(o);i!==o&&(HVe(t)||(t[n]=i),o=i)}e[o]=!0}return e}function VVe(e){for(let t=0;t/gm),ZVe=hu(/\${[\w\W]*}/gm),JVe=hu(/^data-[\-\w.\u00B7-\uFFFF]/),eUe=hu(/^aria-[\-\w]+$/),Dfe=hu(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tUe=hu(/^(?:\w+script|data):/i),rUe=hu(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ffe=hu(/^html$/i);var lZ=Object.freeze({__proto__:null,MUSTACHE_EXPR:XVe,ERB_EXPR:QVe,TMPLIT_EXPR:ZVe,DATA_ATTR:JVe,ARIA_ATTR:eUe,IS_ALLOWED_URI:Dfe,IS_SCRIPT_OR_DATA:tUe,ATTR_WHITESPACE:rUe,DOCTYPE_NAME:Ffe});const nUe=function(){return typeof window>"u"?null:window},oUe=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function Bfe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nUe();const t=q=>Bfe(q);if(t.version="3.0.9",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:d,trustedTypes:h}=e,g=l.prototype,v=Ew(g,"cloneNode"),y=Ew(g,"nextSibling"),E=Ew(g,"childNodes"),_=Ew(g,"parentNode");if(typeof s=="function"){const q=r.createElement("template");q.content&&q.content.ownerDocument&&(r=q.content.ownerDocument)}let S,b="";const{implementation:k,createNodeIterator:T,createDocumentFragment:x,getElementsByTagName:I}=r,{importNode:C}=n;let R={};t.isSupported=typeof Rfe=="function"&&typeof _=="function"&&k&&k.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:D,ERB_EXPR:L,TMPLIT_EXPR:M,DATA_ATTR:W,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:P}=lZ;let{IS_ALLOWED_URI:K}=lZ,V=null;const Z=gr({},[...oZ,...VD,...UD,...YD,...iZ]);let J=null;const ee=gr({},[...sZ,...XD,...aZ,...Sw]);let de=Object.seal(Ofe(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}})),ge=null,Se=null,Re=!0,ve=!0,Ee=!1,me=!0,we=!1,Ge=!1,nt=!1,Qe=!1,Ze=!1,Fe=!1,ot=!1,Me=!0,_t=!1;const qt="user-content-";let Nt=!0,ut=!1,xe={},Ue=null;const Xt=gr({},["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 le=gr({},["audio","video","img","source","image","track"]);let se=null;const pe=gr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Oe="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",ke="http://www.w3.org/1999/xhtml";let Ie=ke,$e=!1,lt=null;const mt=gr({},[Oe,je,ke],KD);let Rt=null;const hr=["application/xhtml+xml","text/html"],Cr="text/html";let Lt=null,Wr=null;const fn=r.createElement("form"),tr=function(B){return B instanceof RegExp||B instanceof Function},Ot=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Wr&&Wr===B)){if((!B||typeof B!="object")&&(B={}),B=lh(B),Rt=hr.indexOf(B.PARSER_MEDIA_TYPE)===-1?Cr:B.PARSER_MEDIA_TYPE,Lt=Rt==="application/xhtml+xml"?KD:Bk,V=Xl(B,"ALLOWED_TAGS")?gr({},B.ALLOWED_TAGS,Lt):Z,J=Xl(B,"ALLOWED_ATTR")?gr({},B.ALLOWED_ATTR,Lt):ee,lt=Xl(B,"ALLOWED_NAMESPACES")?gr({},B.ALLOWED_NAMESPACES,KD):mt,se=Xl(B,"ADD_URI_SAFE_ATTR")?gr(lh(pe),B.ADD_URI_SAFE_ATTR,Lt):pe,he=Xl(B,"ADD_DATA_URI_TAGS")?gr(lh(le),B.ADD_DATA_URI_TAGS,Lt):le,Ue=Xl(B,"FORBID_CONTENTS")?gr({},B.FORBID_CONTENTS,Lt):Xt,ge=Xl(B,"FORBID_TAGS")?gr({},B.FORBID_TAGS,Lt):{},Se=Xl(B,"FORBID_ATTR")?gr({},B.FORBID_ATTR,Lt):{},xe=Xl(B,"USE_PROFILES")?B.USE_PROFILES:!1,Re=B.ALLOW_ARIA_ATTR!==!1,ve=B.ALLOW_DATA_ATTR!==!1,Ee=B.ALLOW_UNKNOWN_PROTOCOLS||!1,me=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=B.SAFE_FOR_TEMPLATES||!1,Ge=B.WHOLE_DOCUMENT||!1,Ze=B.RETURN_DOM||!1,Fe=B.RETURN_DOM_FRAGMENT||!1,ot=B.RETURN_TRUSTED_TYPE||!1,Qe=B.FORCE_BODY||!1,Me=B.SANITIZE_DOM!==!1,_t=B.SANITIZE_NAMED_PROPS||!1,Nt=B.KEEP_CONTENT!==!1,ut=B.IN_PLACE||!1,K=B.ALLOWED_URI_REGEXP||Dfe,Ie=B.NAMESPACE||ke,de=B.CUSTOM_ELEMENT_HANDLING||{},B.CUSTOM_ELEMENT_HANDLING&&tr(B.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(de.tagNameCheck=B.CUSTOM_ELEMENT_HANDLING.tagNameCheck),B.CUSTOM_ELEMENT_HANDLING&&tr(B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(de.attributeNameCheck=B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),B.CUSTOM_ELEMENT_HANDLING&&typeof B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(de.allowCustomizedBuiltInElements=B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(ve=!1),Fe&&(Ze=!0),xe&&(V=gr({},iZ),J=[],xe.html===!0&&(gr(V,oZ),gr(J,sZ)),xe.svg===!0&&(gr(V,VD),gr(J,XD),gr(J,Sw)),xe.svgFilters===!0&&(gr(V,UD),gr(J,XD),gr(J,Sw)),xe.mathMl===!0&&(gr(V,YD),gr(J,aZ),gr(J,Sw))),B.ADD_TAGS&&(V===Z&&(V=lh(V)),gr(V,B.ADD_TAGS,Lt)),B.ADD_ATTR&&(J===ee&&(J=lh(J)),gr(J,B.ADD_ATTR,Lt)),B.ADD_URI_SAFE_ATTR&&gr(se,B.ADD_URI_SAFE_ATTR,Lt),B.FORBID_CONTENTS&&(Ue===Xt&&(Ue=lh(Ue)),gr(Ue,B.FORBID_CONTENTS,Lt)),Nt&&(V["#text"]=!0),Ge&&gr(V,["html","head","body"]),V.table&&(gr(V,["tbody"]),delete ge.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw zm('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw zm('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=B.TRUSTED_TYPES_POLICY,b=S.createHTML("")}else S===void 0&&(S=oUe(h,o)),S!==null&&typeof b=="string"&&(b=S.createHTML(""));fs&&fs(B),Wr=B}},Gr=gr({},["mi","mo","mn","ms","mtext"]),Nr=gr({},["foreignobject","desc","title","annotation-xml"]),Kr=gr({},["title","style","font","a","script"]),mr=gr({},[...VD,...UD,...UVe]),Bt=gr({},[...YD,...YVe]),dt=function(B){let Q=_(B);(!Q||!Q.tagName)&&(Q={namespaceURI:Ie,tagName:"template"});const ie=Bk(B.tagName),ae=Bk(Q.tagName);return lt[B.namespaceURI]?B.namespaceURI===je?Q.namespaceURI===ke?ie==="svg":Q.namespaceURI===Oe?ie==="svg"&&(ae==="annotation-xml"||Gr[ae]):!!mr[ie]:B.namespaceURI===Oe?Q.namespaceURI===ke?ie==="math":Q.namespaceURI===je?ie==="math"&&Nr[ae]:!!Bt[ie]:B.namespaceURI===ke?Q.namespaceURI===je&&!Nr[ae]||Q.namespaceURI===Oe&&!Gr[ae]?!1:!Bt[ie]&&(Kr[ie]||!mr[ie]):!!(Rt==="application/xhtml+xml"&<[B.namespaceURI]):!1},Ye=function(B){Lm(t.removed,{element:B});try{B.parentNode.removeChild(B)}catch{B.remove()}},Vr=function(B,Q){try{Lm(t.removed,{attribute:Q.getAttributeNode(B),from:Q})}catch{Lm(t.removed,{attribute:null,from:Q})}if(Q.removeAttribute(B),B==="is"&&!J[B])if(Ze||Fe)try{Ye(Q)}catch{}else try{Q.setAttribute(B,"")}catch{}},No=function(B){let Q=null,ie=null;if(Qe)B=""+B;else{const ye=qVe(B,/^[\r\n\t ]+/);ie=ye&&ye[0]}Rt==="application/xhtml+xml"&&Ie===ke&&(B=''+B+"");const ae=S?S.createHTML(B):B;if(Ie===ke)try{Q=new d().parseFromString(ae,Rt)}catch{}if(!Q||!Q.documentElement){Q=k.createDocument(Ie,"template",null);try{Q.documentElement.innerHTML=$e?b:ae}catch{}}const ne=Q.body||Q.documentElement;return B&&ie&&ne.insertBefore(r.createTextNode(ie),ne.childNodes[0]||null),Ie===ke?I.call(Q,Ge?"html":"body")[0]:Ge?Q.documentElement:ne},Hr=function(B){return T.call(B.ownerDocument||B,B,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},Fl=function(B){return B instanceof f&&(typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||!(B.attributes instanceof c)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function")},ys=function(B){return typeof a=="function"&&B instanceof a},mo=function(B,Q,ie){R[B]&&_w(R[B],ae=>{ae.call(t,Q,ie,Wr)})},za=function(B){let Q=null;if(mo("beforeSanitizeElements",B,null),Fl(B))return Ye(B),!0;const ie=Lt(B.nodeName);if(mo("uponSanitizeElement",B,{tagName:ie,allowedTags:V}),B.hasChildNodes()&&!ys(B.firstElementChild)&&ra(/<[/\w]/g,B.innerHTML)&&ra(/<[/\w]/g,B.textContent))return Ye(B),!0;if(!V[ie]||ge[ie]){if(!ge[ie]&&Y(ie)&&(de.tagNameCheck instanceof RegExp&&ra(de.tagNameCheck,ie)||de.tagNameCheck instanceof Function&&de.tagNameCheck(ie)))return!1;if(Nt&&!Ue[ie]){const ae=_(B)||B.parentNode,ne=E(B)||B.childNodes;if(ne&&ae){const ye=ne.length;for(let Pe=ye-1;Pe>=0;--Pe)ae.insertBefore(v(ne[Pe],!0),y(B))}}return Ye(B),!0}return B instanceof l&&!dt(B)||(ie==="noscript"||ie==="noembed"||ie==="noframes")&&ra(/<\/no(script|embed|frames)/i,B.innerHTML)?(Ye(B),!0):(we&&B.nodeType===3&&(Q=B.textContent,_w([D,L,M],ae=>{Q=jm(Q,ae," ")}),B.textContent!==Q&&(Lm(t.removed,{element:B.cloneNode()}),B.textContent=Q)),mo("afterSanitizeElements",B,null),!1)},He=function(B,Q,ie){if(Me&&(Q==="id"||Q==="name")&&(ie in r||ie in fn))return!1;if(!(ve&&!Se[Q]&&ra(W,Q))){if(!(Re&&ra(z,Q))){if(!J[Q]||Se[Q]){if(!(Y(B)&&(de.tagNameCheck instanceof RegExp&&ra(de.tagNameCheck,B)||de.tagNameCheck instanceof Function&&de.tagNameCheck(B))&&(de.attributeNameCheck instanceof RegExp&&ra(de.attributeNameCheck,Q)||de.attributeNameCheck instanceof Function&&de.attributeNameCheck(Q))||Q==="is"&&de.allowCustomizedBuiltInElements&&(de.tagNameCheck instanceof RegExp&&ra(de.tagNameCheck,ie)||de.tagNameCheck instanceof Function&&de.tagNameCheck(ie))))return!1}else if(!se[Q]){if(!ra(K,jm(ie,P,""))){if(!((Q==="src"||Q==="xlink:href"||Q==="href")&&B!=="script"&&WVe(ie,"data:")===0&&he[B])){if(!(Ee&&!ra(F,jm(ie,P,"")))){if(ie)return!1}}}}}}return!0},Y=function(B){return B!=="annotation-xml"&&B.indexOf("-")>0},X=function(B){mo("beforeSanitizeAttributes",B,null);const{attributes:Q}=B;if(!Q)return;const ie={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J};let ae=Q.length;for(;ae--;){const ne=Q[ae],{name:ye,namespaceURI:Pe,value:xt}=ne,Dt=Lt(ye);let wt=ye==="value"?xt:GVe(xt);if(ie.attrName=Dt,ie.attrValue=wt,ie.keepAttr=!0,ie.forceKeepAttr=void 0,mo("uponSanitizeAttribute",B,ie),wt=ie.attrValue,ie.forceKeepAttr||(Vr(ye,B),!ie.keepAttr))continue;if(!me&&ra(/\/>/i,wt)){Vr(ye,B);continue}we&&_w([D,L,M],Gt=>{wt=jm(wt,Gt," ")});const Et=Lt(B.nodeName);if(He(Et,Dt,wt)){if(_t&&(Dt==="id"||Dt==="name")&&(Vr(ye,B),wt=qt+wt),S&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!Pe)switch(h.getAttributeType(Et,Dt)){case"TrustedHTML":{wt=S.createHTML(wt);break}case"TrustedScriptURL":{wt=S.createScriptURL(wt);break}}try{Pe?B.setAttributeNS(Pe,ye,wt):B.setAttribute(ye,wt),nZ(t.removed)}catch{}}}mo("afterSanitizeAttributes",B,null)},$=function q(B){let Q=null;const ie=Hr(B);for(mo("beforeSanitizeShadowDOM",B,null);Q=ie.nextNode();)mo("uponSanitizeShadowNode",Q,null),!za(Q)&&(Q.content instanceof i&&q(Q.content),X(Q));mo("afterSanitizeShadowDOM",B,null)};return t.sanitize=function(q){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=null,ie=null,ae=null,ne=null;if($e=!q,$e&&(q=""),typeof q!="string"&&!ys(q))if(typeof q.toString=="function"){if(q=q.toString(),typeof q!="string")throw zm("dirty is not a string, aborting")}else throw zm("toString is not a function");if(!t.isSupported)return q;if(nt||Ot(B),t.removed=[],typeof q=="string"&&(ut=!1),ut){if(q.nodeName){const xt=Lt(q.nodeName);if(!V[xt]||ge[xt])throw zm("root node is forbidden and cannot be sanitized in-place")}}else if(q instanceof a)Q=No(""),ie=Q.ownerDocument.importNode(q,!0),ie.nodeType===1&&ie.nodeName==="BODY"||ie.nodeName==="HTML"?Q=ie:Q.appendChild(ie);else{if(!Ze&&!we&&!Ge&&q.indexOf("<")===-1)return S&&ot?S.createHTML(q):q;if(Q=No(q),!Q)return Ze?null:ot?b:""}Q&&Qe&&Ye(Q.firstChild);const ye=Hr(ut?q:Q);for(;ae=ye.nextNode();)za(ae)||(ae.content instanceof i&&$(ae.content),X(ae));if(ut)return q;if(Ze){if(Fe)for(ne=x.call(Q.ownerDocument);Q.firstChild;)ne.appendChild(Q.firstChild);else ne=Q;return(J.shadowroot||J.shadowrootmode)&&(ne=C.call(n,ne,!0)),ne}let Pe=Ge?Q.outerHTML:Q.innerHTML;return Ge&&V["!doctype"]&&Q.ownerDocument&&Q.ownerDocument.doctype&&Q.ownerDocument.doctype.name&&ra(Ffe,Q.ownerDocument.doctype.name)&&(Pe=" +`+Pe),we&&_w([D,L,M],xt=>{Pe=jm(Pe,xt," ")}),S&&ot?S.createHTML(Pe):Pe},t.setConfig=function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ot(q),nt=!0},t.clearConfig=function(){Wr=null,nt=!1},t.isValidAttribute=function(q,B,Q){Wr||Ot({});const ie=Lt(q),ae=Lt(B);return He(ie,ae,Q)},t.addHook=function(q,B){typeof B=="function"&&(R[q]=R[q]||[],Lm(R[q],B))},t.removeHook=function(q){if(R[q])return nZ(R[q])},t.removeHooks=function(q){R[q]&&(R[q]=[])},t.removeAllHooks=function(){R={}},t}var iUe=Bfe(),sUe={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function i(l,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new o(c,f||l,d),g=r?r+u:u;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],h]:l._events[g].push(h):(l._events[g]=h,l._eventsCount++),l}function s(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function a(){this._events=new n,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},a.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,g=new Array(h);d0?e:"Unknown")}function Sw(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZA(){return ZA=Object.assign||function(e){for(var t=1;t"u"?"undefined":dZ(window))==="object"&&(typeof document>"u"?"undefined":dZ(document))==="object"&&document.nodeType===9;function Qb(e){"@babel/helpers - typeof";return Qb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qb(e)}function kUe(e,t){if(Qb(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qb(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AUe(e){var t=kUe(e,"string");return Qb(t)=="symbol"?t:String(t)}function hZ(e,t){for(var r=0;r0?e:"Unknown")}function ww(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JA(){return JA=Object.assign||function(e){for(var t=1;t"u"?"undefined":hZ(window))==="object"&&(typeof document>"u"?"undefined":hZ(document))==="object"&&document.nodeType===9;function Qb(e){"@babel/helpers - typeof";return Qb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qb(e)}function CUe(e,t){if(Qb(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qb(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NUe(e){var t=CUe(e,"string");return Qb(t)=="symbol"?t:String(t)}function pZ(e,t){for(var r=0;r<+~=|^:(),"'`\s])/g,gZ=typeof CSS<"u"&&CSS.escape,W7=function(e){return gZ?gZ(e):e.replace(TUe,"\\$1")},$fe=function(){function e(r,n,o){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var i=o.sheet,s=o.Renderer;this.key=r,this.options=o,this.style=n,i?this.renderer=i.renderer:s&&(this.renderer=new s)}var t=e.prototype;return t.prop=function(n,o,i){if(o===void 0)return this.style[n];var s=i?i.force:!1;if(!s&&this.style[n]===o)return this;var a=o;(!i||i.process!==!1)&&(a=this.options.jss.plugins.onChangeValue(o,n,this));var l=a==null||a===!1,u=n in this.style;if(l&&!u&&!s)return this;var c=l&&u;if(c?delete this.style[n]:this.style[n]=a,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,a),this;var f=this.options.sheet;return f&&f.attached,this},e}(),VB=function(e){a7(t,e);function t(n,o,i){var s;s=e.call(this,n,o,i)||this,s.selectorText=void 0,s.id=void 0,s.renderable=void 0;var a=i.selector,l=i.scoped,u=i.sheet,c=i.generateId;return a?s.selectorText=a:l!==!1&&(s.id=c(nK(nK(s)),u),s.selectorText="."+W7(s.id)),s}var r=t.prototype;return r.applyTo=function(o){var i=this.renderer;if(i){var s=this.toJSON();for(var a in s)i.setProperty(o,a,s[a])}return this},r.toJSON=function(){var o={};for(var i in this.style){var s=this.style[i];typeof s!="object"?o[i]=s:Array.isArray(s)&&(o[i]=Bh(s))}return o},r.toString=function(o){var i=this.options.sheet,s=i?i.options.link:!1,a=s?ko({},o,{allowEmpty:!0}):o;return Zb(this.selectorText,this.style,a)},q7(t,[{key:"selector",set:function(o){if(o!==this.selectorText){this.selectorText=o;var i=this.renderer,s=this.renderable;if(!(!s||!i)){var a=i.setSelector(s,o);a||i.replaceRule(s,this)}}},get:function(){return this.selectorText}}]),t}($fe),IUe={onCreateRule:function(t,r,n){return t[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new VB(t,r,n)}},QD={indent:1,children:!0},CUe=/@([\w-]+)/,NUe=function(){function e(r,n,o){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=r,this.query=o.name;var i=r.match(CUe);this.at=i?i[1]:"unknown",this.options=o,this.rules=new F9(ko({},o,{parent:this}));for(var s in n)this.rules.add(s,n[s]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.indexOf=function(n){return this.rules.indexOf(n)},t.addRule=function(n,o,i){var s=this.rules.add(n,o,i);return s?(this.options.jss.plugins.onProcessRule(s),s):null},t.toString=function(n){if(n===void 0&&(n=QD),n.indent==null&&(n.indent=QD.indent),n.children==null&&(n.children=QD.children),n.children===!1)return this.query+" {}";var o=this.rules.toString(n);return o?this.query+` { +`),Hm(e+" {"+n,s)+Hm("}",s))}var OUe=/([[\].#*$><+~=|^:(),"'`\s])/g,vZ=typeof CSS<"u"&&CSS.escape,G7=function(e){return vZ?vZ(e):e.replace(OUe,"\\$1")},Pfe=function(){function e(r,n,o){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var i=o.sheet,s=o.Renderer;this.key=r,this.options=o,this.style=n,i?this.renderer=i.renderer:s&&(this.renderer=new s)}var t=e.prototype;return t.prop=function(n,o,i){if(o===void 0)return this.style[n];var s=i?i.force:!1;if(!s&&this.style[n]===o)return this;var a=o;(!i||i.process!==!1)&&(a=this.options.jss.plugins.onChangeValue(o,n,this));var l=a==null||a===!1,u=n in this.style;if(l&&!u&&!s)return this;var c=l&&u;if(c?delete this.style[n]:this.style[n]=a,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,a),this;var f=this.options.sheet;return f&&f.attached,this},e}(),UB=function(e){l7(t,e);function t(n,o,i){var s;s=e.call(this,n,o,i)||this,s.selectorText=void 0,s.id=void 0,s.renderable=void 0;var a=i.selector,l=i.scoped,u=i.sheet,c=i.generateId;return a?s.selectorText=a:l!==!1&&(s.id=c(oK(oK(s)),u),s.selectorText="."+G7(s.id)),s}var r=t.prototype;return r.applyTo=function(o){var i=this.renderer;if(i){var s=this.toJSON();for(var a in s)i.setProperty(o,a,s[a])}return this},r.toJSON=function(){var o={};for(var i in this.style){var s=this.style[i];typeof s!="object"?o[i]=s:Array.isArray(s)&&(o[i]=Mh(s))}return o},r.toString=function(o){var i=this.options.sheet,s=i?i.options.link:!1,a=s?ko({},o,{allowEmpty:!0}):o;return Zb(this.selectorText,this.style,a)},W7(t,[{key:"selector",set:function(o){if(o!==this.selectorText){this.selectorText=o;var i=this.renderer,s=this.renderable;if(!(!s||!i)){var a=i.setSelector(s,o);a||i.replaceRule(s,this)}}},get:function(){return this.selectorText}}]),t}(Pfe),DUe={onCreateRule:function(t,r,n){return t[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new UB(t,r,n)}},QD={indent:1,children:!0},FUe=/@([\w-]+)/,BUe=function(){function e(r,n,o){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=r,this.query=o.name;var i=r.match(FUe);this.at=i?i[1]:"unknown",this.options=o,this.rules=new B9(ko({},o,{parent:this}));for(var s in n)this.rules.add(s,n[s]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.indexOf=function(n){return this.rules.indexOf(n)},t.addRule=function(n,o,i){var s=this.rules.add(n,o,i);return s?(this.options.jss.plugins.onProcessRule(s),s):null},t.toString=function(n){if(n===void 0&&(n=QD),n.indent==null&&(n.indent=QD.indent),n.children==null&&(n.children=QD.children),n.children===!1)return this.query+" {}";var o=this.rules.toString(n);return o?this.query+` { `+o+` -}`:""},e}(),RUe=/@media|@supports\s+/,OUe={onCreateRule:function(t,r,n){return RUe.test(t)?new NUe(t,r,n):null}},ZD={indent:1,children:!0},DUe=/@keyframes\s+([\w-]+)/,UB=function(){function e(r,n,o){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var i=r.match(DUe);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=o;var s=o.scoped,a=o.sheet,l=o.generateId;this.id=s===!1?this.name:W7(l(this,a)),this.rules=new F9(ko({},o,{parent:this}));for(var u in n)this.rules.add(u,n[u],ko({},o,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(n){if(n===void 0&&(n=ZD),n.indent==null&&(n.indent=ZD.indent),n.children==null&&(n.children=ZD.children),n.children===!1)return this.at+" "+this.id+" {}";var o=this.rules.toString(n);return o&&(o=` +}`:""},e}(),MUe=/@media|@supports\s+/,LUe={onCreateRule:function(t,r,n){return MUe.test(t)?new BUe(t,r,n):null}},ZD={indent:1,children:!0},jUe=/@keyframes\s+([\w-]+)/,YB=function(){function e(r,n,o){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var i=r.match(jUe);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=o;var s=o.scoped,a=o.sheet,l=o.generateId;this.id=s===!1?this.name:G7(l(this,a)),this.rules=new B9(ko({},o,{parent:this}));for(var u in n)this.rules.add(u,n[u],ko({},o,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(n){if(n===void 0&&(n=ZD),n.indent==null&&(n.indent=ZD.indent),n.children==null&&(n.children=ZD.children),n.children===!1)return this.at+" "+this.id+" {}";var o=this.rules.toString(n);return o&&(o=` `+o+` -`),this.at+" "+this.id+" {"+o+"}"},e}(),FUe=/@keyframes\s+/,BUe=/\$([\w-]+)/g,YB=function(t,r){return typeof t=="string"?t.replace(BUe,function(n,o){return o in r?r[o]:n}):t},vZ=function(t,r,n){var o=t[r],i=YB(o,n);i!==o&&(t[r]=i)},MUe={onCreateRule:function(t,r,n){return typeof t=="string"&&FUe.test(t)?new UB(t,r,n):null},onProcessStyle:function(t,r,n){return r.type!=="style"||!n||("animation-name"in t&&vZ(t,"animation-name",n.keyframes),"animation"in t&&vZ(t,"animation",n.keyframes)),t},onChangeValue:function(t,r,n){var o=n.options.sheet;if(!o)return t;switch(r){case"animation":return YB(t,o.keyframes);case"animation-name":return YB(t,o.keyframes);default:return t}}},LUe=function(e){a7(t,e);function t(){for(var n,o=arguments.length,i=new Array(o),s=0;s=this.index){o.push(n);return}for(var s=0;si){o.splice(s,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var o=this.registry.indexOf(n);this.registry.splice(o,1)},t.toString=function(n){for(var o=n===void 0?{}:n,i=o.attached,s=s7(o,["attached"]),a="",l=0;lt.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function tYe(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function rYe(e){for(var t=Wfe(),r=0;r0){var r=eYe(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=tYe(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var o=rYe(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}function oYe(e,t){var r=t.insertionPoint,n=nYe(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling);return}Wfe().appendChild(e)}var iYe=qfe(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),EZ=function(t,r,n){var o=t.cssRules.length;(n===void 0||n>o)&&(n=o);try{if("insertRule"in t){var i=t;i.insertRule(r,n)}else if("appendRule"in t){var s=t;s.appendRule(r)}}catch{return!1}return t.cssRules[n]},sYe=function(){var t=document.createElement("style");return t.textContent=` -`,t},aYe=function(){function e(r){this.getPropertyValue=XUe,this.setProperty=QUe,this.removeProperty=ZUe,this.setSelector=JUe,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,r&&Yy.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},o=n.media,i=n.meta,s=n.element;this.element=s||sYe(),this.element.setAttribute("data-jss",""),o&&this.element.setAttribute("media",o),i&&this.element.setAttribute("data-meta",i);var a=iYe();a&&this.element.setAttribute("nonce",a)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){oYe(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){var n=this.element.parentNode;n&&n.removeChild(this.element)},t.deploy=function(){var n=this.sheet;if(n){if(n.options.link){this.insertRules(n.rules);return}this.element.textContent=` +`),this.at+" "+this.id+" {"+o+"}"},e}(),zUe=/@keyframes\s+/,HUe=/\$([\w-]+)/g,XB=function(t,r){return typeof t=="string"?t.replace(HUe,function(n,o){return o in r?r[o]:n}):t},mZ=function(t,r,n){var o=t[r],i=XB(o,n);i!==o&&(t[r]=i)},$Ue={onCreateRule:function(t,r,n){return typeof t=="string"&&zUe.test(t)?new YB(t,r,n):null},onProcessStyle:function(t,r,n){return r.type!=="style"||!n||("animation-name"in t&&mZ(t,"animation-name",n.keyframes),"animation"in t&&mZ(t,"animation",n.keyframes)),t},onChangeValue:function(t,r,n){var o=n.options.sheet;if(!o)return t;switch(r){case"animation":return XB(t,o.keyframes);case"animation-name":return XB(t,o.keyframes);default:return t}}},PUe=function(e){l7(t,e);function t(){for(var n,o=arguments.length,i=new Array(o),s=0;s=this.index){o.push(n);return}for(var s=0;si){o.splice(s,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var o=this.registry.indexOf(n);this.registry.splice(o,1)},t.toString=function(n){for(var o=n===void 0?{}:n,i=o.attached,s=a7(o,["attached"]),a="",l=0;lt.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function sYe(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function aYe(e){for(var t=Gfe(),r=0;r0){var r=iYe(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=sYe(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var o=aYe(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}function uYe(e,t){var r=t.insertionPoint,n=lYe(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling);return}Gfe().appendChild(e)}var cYe=Wfe(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),SZ=function(t,r,n){var o=t.cssRules.length;(n===void 0||n>o)&&(n=o);try{if("insertRule"in t){var i=t;i.insertRule(r,n)}else if("appendRule"in t){var s=t;s.appendRule(r)}}catch{return!1}return t.cssRules[n]},fYe=function(){var t=document.createElement("style");return t.textContent=` +`,t},dYe=function(){function e(r){this.getPropertyValue=tYe,this.setProperty=rYe,this.removeProperty=nYe,this.setSelector=oYe,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,r&&Yy.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},o=n.media,i=n.meta,s=n.element;this.element=s||fYe(),this.element.setAttribute("data-jss",""),o&&this.element.setAttribute("media",o),i&&this.element.setAttribute("data-meta",i);var a=cYe();a&&this.element.setAttribute("nonce",a)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){uYe(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){var n=this.element.parentNode;n&&n.removeChild(this.element)},t.deploy=function(){var n=this.sheet;if(n){if(n.options.link){this.insertRules(n.rules);return}this.element.textContent=` `+n.toString()+` -`}},t.insertRules=function(n,o){for(var i=0;i0&&(o.refs--,o.refs===0&&o.sheet.detach()):fZ(!1,"SheetsManager: can't find sheet to unmanage")},q7(e,[{key:"size",get:function(){return this.length}}]),e}();/** +`}},t.insertRules=function(n,o){for(var i=0;i0&&(o.refs--,o.refs===0&&o.sheet.detach()):dZ(!1,"SheetsManager: can't find sheet to unmanage")},W7(e,[{key:"size",get:function(){return this.length}}]),e}();/** * A better abstraction over CSS. * * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present * @website https://github.com/cssinjs/jss * @license MIT - */var G7=typeof CSS<"u"&&CSS&&"number"in CSS,K7=function(t){return new uYe(t)},cYe=K7(),Kfe=Date.now(),JD="fnValues"+Kfe,e3="fnStyle"+ ++Kfe;function fYe(){return{onCreateRule:function(t,r,n){if(typeof r!="function")return null;var o=D9(t,{},n);return o[e3]=r,o},onProcessStyle:function(t,r){if(JD in r||e3 in r)return t;var n={};for(var o in t){var i=t[o];typeof i=="function"&&(delete t[o],n[o]=i)}return r[JD]=n,t},onUpdate:function(t,r,n,o){var i=r,s=i[e3];s&&(i.style=s(t)||{});var a=i[JD];if(a)for(var l in a)i.prop(l,a[l](t),o)}}}function dYe(e){var t,r=e.Symbol;return typeof r=="function"?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}var d0;typeof self<"u"?d0=self:typeof window<"u"?d0=window:typeof global<"u"?d0=global:typeof h8<"u"?d0=h8:d0=Function("return this")();var wZ=dYe(d0),kZ=function(t){return t&&t[wZ]&&t===t[wZ]()};function hYe(e){return{onCreateRule:function(r,n,o){if(!kZ(n))return null;var i=n,s=D9(r,{},o);return i.subscribe(function(a){for(var l in a)s.prop(l,a[l],e)}),s},onProcessRule:function(r){if(!(r&&r.type!=="style")){var n=r,o=n.style,i=function(u){var c=o[u];if(!kZ(c))return"continue";delete o[u],c.subscribe({next:function(d){n.prop(u,d,e)}})};for(var s in o)var a=i(s)}}}}var pYe=/;\n/,gYe=function(e){for(var t={},r=e.split(pYe),n=0;n-1)return JB(e,t.split(" "));var o=e.options,i=o.parent;if(t[0]==="$"){var s=i.getRule(t.substr(1));return!s||s===e?!1:(i.classes[e.key]+=" "+i.classes[s.key],!0)}return i.classes[e.key]+=" "+t,!0}function NYe(){function e(t,r){return"composes"in t&&(JB(r,t.composes),delete t.composes),t}return{onProcessStyle:e}}var RYe=/[A-Z]/g,OYe=/^ms-/,r3={};function DYe(e){return"-"+e.toLowerCase()}function Ufe(e){if(r3.hasOwnProperty(e))return r3[e];var t=e.replace(RYe,DYe);return r3[e]=OYe.test(t)?"-"+t:t}function JA(e){var t={};for(var r in e){var n=r.indexOf("--")===0?r:Ufe(r);t[n]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(JA):t.fallbacks=JA(e.fallbacks)),t}function FYe(){function e(r){if(Array.isArray(r)){for(var n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r-1){var i=ede[t];if(!Array.isArray(i))return er.js+g1(i)in r?er.css+i:!1;if(!o)return!1;for(var s=0;sn?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var o={},i=Object.keys(r).sort(e),s=0;sAXe)&&(o=t.createStyleSheet().attach()),o};function s(){var a=arguments,l=JSON.stringify(a),u=r.get(l);if(u)return u.className;var c=[];for(var f in a){var d=a[f];if(!Array.isArray(d)){c.push(d);continue}for(var h=0;ht=>!!qXe(e)(t),Of=e=>t=>{const r=t||0;return Array.isArray(e)?e.reduce((n,o)=>n|o,r):r|e},qXe=e=>t=>(t||0)&e,lE=e=>t=>{const r=t||0;return Array.isArray(e)?e.reduce((n,o)=>n&~o,r):r&~e},sa=e=>()=>e,Y7=0,B9=1,X7=2;var Di;(function(e){e[e.Default=Y7]="Default",e[e.Selected=B9]="Selected",e[e.Activated=X7]="Activated",e[e.ConnectedToSelected=4]="ConnectedToSelected",e[e.UnconnectedToSelected=8]="UnconnectedToSelected",e[e.Editing=16]="Editing"})(Di||(Di={}));var Mo;(function(e){e[e.Default=Y7]="Default",e[e.Selected=B9]="Selected",e[e.Activated=X7]="Activated",e[e.Editing=4]="Editing",e[e.ConnectedToSelected=8]="ConnectedToSelected",e[e.UnconnectedToSelected=16]="UnconnectedToSelected"})(Mo||(Mo={}));var ls;(function(e){e[e.Default=Y7]="Default",e[e.Selected=B9]="Selected",e[e.Activated=X7]="Activated",e[e.Connecting=4]="Connecting",e[e.ConnectingAsTarget=8]="ConnectingAsTarget"})(ls||(ls={}));const Mn=e=>t=>{var r;const n=e((r=t.status)!==null&&r!==void 0?r:0);return n===t.status?t:Object.assign(Object.assign({},t),{status:n})};function Q7(e){return pp(Mo.Editing)(e.status)}function t1(e){return pp(B9)(e.status)}function NZ(e){return!t1(e)}const WXe=e=>t=>(t||0)&Mo.Activated|e;class Xh{static log(t){}static warn(t){}static error(...t){console.error(...t)}static never(t,r){throw new Error(r??`${t} is unexpected`)}}const uE=(e,t)=>{const r=t.getNodeConfig(e);if(!r){Xh.warn(`invalid node ${JSON.stringify(e)}`);return}return r};function cE(e,t){var r;const n=(r=e==null?void 0:e.getMinWidth(t))!==null&&r!==void 0?r:0;return t.width&&t.width>=n?t.width:n}function fE(e,t){var r;const n=(r=e==null?void 0:e.getMinHeight(t))!==null&&r!==void 0?r:0;return t.height&&t.height>=n?t.height:n}function Df(e,t){const r=uE(e,t),n=cE(r,e);return{height:fE(r,e),width:n}}function GXe(e,t,r){var n,o,i,s,a,l,u,c;const f=new Set(e.nodeIds),d=Array.from(t.values()).filter(k=>f.has(k.id)),h=Math.min(...d.map(k=>k.x)),g=Math.max(...d.map(k=>k.x+Df(k,r).width)),v=Math.min(...d.map(k=>k.y)),y=Math.max(...d.map(k=>k.y+Df(k,r).height)),E=h-((o=(n=e.padding)===null||n===void 0?void 0:n.left)!==null&&o!==void 0?o:0),_=v-((s=(i=e.padding)===null||i===void 0?void 0:i.top)!==null&&s!==void 0?s:0),S=y-_+((l=(a=e.padding)===null||a===void 0?void 0:a.bottom)!==null&&l!==void 0?l:0),b=g-E+((c=(u=e.padding)===null||u===void 0?void 0:u.left)!==null&&c!==void 0?c:0);return{x:E,y:_,width:b,height:S}}var ex;(function(e){e[e.Primary=0]="Primary",e[e.Auxiliary=1]="Auxiliary",e[e.Secondary=2]="Secondary",e[e.Fourth=4]="Fourth",e[e.Fifth=5]="Fifth"})(ex||(ex={}));var RZ;(function(e){e[e.None=0]="None",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Middle=4]="Middle"})(RZ||(RZ={}));const tx=50,OZ=5,DZ=500,os={controlPointColor:"#333333",primaryColor:"#0078D4",defaultColor:"#CCCCCC",borderColor:"#B3B0AD",defaultBorderColor:"#FFFFFF",unConnectableBgColor:"#E1DFDD",defaultBackgroundColor:"#FFFFFF",portStroke:"#ccc",portFill:"#fff",connectedPortColor:"gray",nodeActivateFill:"#ffffff",nodeActivateStroke:"#0078D4",nodeFill:"#ffffff",nodeStroke:"#cccccc",contextMenuBackground:"#FFFFFF",contextMenuBorder:"#E1DFDD",contextMenuHoverBackground:"rgba(0, 120, 212, 0.05)",fontColor:"#000000",canvasBackground:"#EDEDED",minimapBackground:"#EDEDED",edgeColor:"#ccc",edgeColorSelected:"#015cda",minimapShadow:"#000000",outlineStyle:"none",focusOutlineColor:"#000000",dummyNodeStroke:"#015cda",inputFocusBorderAlt:"#0078d4",buttonBorder:"#797775",scrollbarColor:"#c8c8c8"},KXe=e=>{const{style:t,node:r,width:n,height:o,textY:i}=e,s=r.data&&r.data.comment?r.data.comment:"",a=Q7(r);return N.jsxs("g",{children:[N.jsx("rect",{width:n,height:o,x:r.x,y:r.y,style:t,rx:t.borderRadius}),N.jsx("text",Object.assign({x:r.x,y:i,fontSize:12},{children:r.name})),r.data&&r.data.comment&&!a&&N.jsx("text",Object.assign({x:r.x,y:i+20,fontSize:12,className:`comment-${r.id}`},{children:r.data.comment})),a&&N.jsx("foreignObject",Object.assign({x:r.x,y:i,height:o/2.5,width:n-5},{children:N.jsx("input",{value:s,placeholder:"Input your comment here"})}))]},r.id)},n6={getMinHeight(){return 150},getMinWidth(){return 150},render(e){const t=e.model,r=cE(n6,t),n=fE(n6,t),o=pp(Mo.Selected|Mo.Activated)(t.status)?{fill:os.nodeActivateFill,stroke:os.nodeActivateStroke}:{fill:os.nodeFill,fillOpacity:.1,stroke:os.nodeStroke,borderRadius:"5"},i=t.y+n/3;return N.jsx(KXe,{style:o,node:t,width:r,height:n,textY:i})}},ide=(e,t,r,n)=>`M${e},${r}C${e},${r-FZ(r,n)},${t},${n+5+FZ(r,n)},${t},${n+5}`,FZ=(e,t)=>Math.min(5*15,Math.max(5*3,Math.abs((e-(t+5))/2))),VXe={render(e){const t=e.model,r={cursor:"crosshair",stroke:pp(Di.Selected)(t.status)?os.edgeColorSelected:os.edgeColor,strokeWidth:"2"};return N.jsx("path",{d:ide(e.x2,e.x1,e.y2,e.y1),fill:"none",style:r,id:`edge${t.id}`},t.id)}};class UXe{getStyle(t,r,n,o,i){const s=os.portStroke;let a=os.portFill;return(o||i)&&(a=os.connectedPortColor),pp(ls.Activated)(t.status)&&(a=os.primaryColor),{stroke:s,fill:a}}getIsConnectable(){return!0}render(t){const{model:r,data:n,parentNode:o}=t,i=n.isPortConnectedAsSource(o.id,r.id),s=n.isPortConnectedAsTarget(o.id,r.id),a=this.getStyle(r,o,n,i,s),{x:l,y:u}=t,c=`${l-5} ${u}, ${l+7} ${u}, ${l+1} ${u+8}`;return s?N.jsx("polygon",{points:c,style:a}):N.jsx("circle",{r:5,cx:l,cy:u,style:a},`${t.parentNode.id}-${t.model.id}`)}}const YXe=new UXe;class XXe{constructor(t){this.storage=t}write(t){this.storage.setItem("graph-clipboard",JSON.stringify({nodes:t.nodes.map(r=>Object.assign(Object.assign({},r),{data:{}})),edges:t.edges.map(r=>Object.assign(Object.assign({},r),{data:{}}))}))}read(){const t=this.storage.getItem("graph-clipboard");if(!t)return null;try{const r=JSON.parse(t),n=new Map;return{nodes:r.nodes.map(o=>{const i=QA();return n.set(o.id,i),Object.assign(Object.assign({},o),{x:o.x+tx,y:o.y+tx,id:i})}),edges:r.edges.map(o=>Object.assign(Object.assign({},o),{id:QA(),source:n.get(o.source)||"",target:n.get(o.target)||""}))}}catch{return null}}}class QXe{get length(){return this.items.size}constructor(){this.key=()=>"DefaultLocalStorage",this.items=new Map}clear(){this.items=new Map}setItem(t,r){this.items.set(t,r)}getItem(t){return this.items.has(t)?this.items.get(t):null}removeItem(t){this.items.delete(t)}}class Hg{constructor(){const t=new QXe,r=new XXe(t);this.draft={getNodeConfig:()=>n6,getEdgeConfig:()=>VXe,getPortConfig:()=>YXe,getGroupConfig:()=>{},getClipboard:()=>r}}static default(){return new Hg}static from(t){return new Hg().registerNode(t.getNodeConfig.bind(t)).registerEdge(t.getEdgeConfig.bind(t)).registerPort(t.getPortConfig.bind(t)).registerGroup(t.getGroupConfig.bind(t)).registerClipboard(t.getClipboard.bind(t))}registerNode(t){return this.draft.getNodeConfig=t,this}registerEdge(t){return this.draft.getEdgeConfig=t,this}registerPort(t){return this.draft.getPortConfig=t,this}registerGroup(t){return this.draft.getGroupConfig=t,this}registerClipboard(t){return this.draft.getClipboard=t,this}build(){return this.draft}}const ZXe=A.createContext(Hg.default().build());var BZ;(function(e){e.Node="node",e.Edge="edge",e.Port="port",e.Canvas="canvas",e.Multi="multi"})(BZ||(BZ={}));const sde=()=>({startX:0,startY:0,height:0,width:0});var at;(function(e){e.NodeDraggable="nodeDraggable",e.NodeResizable="nodeResizable",e.ClickNodeToSelect="clickNodeToSelect",e.PanCanvas="panCanvas",e.MultipleSelect="multipleSelect",e.LassoSelect="lassoSelect",e.Delete="delete",e.AddNewNodes="addNewNodes",e.AddNewEdges="addNewEdges",e.AddNewPorts="addNewPorts",e.AutoFit="autoFit",e.CanvasHorizontalScrollable="canvasHorizontalScrollable",e.CanvasVerticalScrollable="canvasVerticalScrollable",e.NodeHoverView="nodeHoverView",e.PortHoverView="portHoverView",e.AddEdgesByKeyboard="addEdgesByKeyboard",e.A11yFeatures="a11YFeatures",e.EditNode="editNode",e.AutoAlign="autoAlign",e.UndoStack="undoStack",e.CtrlKeyZoom="ctrlKeyZoom",e.LimitBoundary="limitBoundary",e.EditEdge="editEdge",e.InvisibleScrollbar="InvisibleScrollbar"})(at||(at={}));at.NodeDraggable,at.NodeResizable,at.ClickNodeToSelect,at.PanCanvas,at.MultipleSelect,at.LassoSelect,at.Delete,at.AddNewNodes,at.AddNewEdges,at.AddNewPorts,at.CanvasHorizontalScrollable,at.CanvasVerticalScrollable,at.NodeHoverView,at.PortHoverView,at.AddEdgesByKeyboard,at.A11yFeatures,at.AutoFit,at.EditNode,at.AutoAlign,at.UndoStack,at.CtrlKeyZoom,at.LimitBoundary,at.EditEdge;const JXe=new Set([at.NodeDraggable,at.NodeResizable,at.ClickNodeToSelect,at.PanCanvas,at.MultipleSelect,at.Delete,at.AddNewNodes,at.AddNewEdges,at.AddNewPorts,at.CanvasHorizontalScrollable,at.CanvasVerticalScrollable,at.NodeHoverView,at.PortHoverView,at.AddEdgesByKeyboard,at.A11yFeatures,at.EditNode,at.AutoAlign,at.UndoStack,at.CtrlKeyZoom,at.LimitBoundary]),eQe=new Set([at.NodeDraggable,at.NodeResizable,at.ClickNodeToSelect,at.PanCanvas,at.MultipleSelect,at.CanvasHorizontalScrollable,at.CanvasVerticalScrollable,at.NodeHoverView,at.PortHoverView,at.A11yFeatures,at.CtrlKeyZoom,at.LimitBoundary]);at.ClickNodeToSelect,at.CanvasHorizontalScrollable,at.CanvasVerticalScrollable,at.NodeHoverView,at.PortHoverView,at.A11yFeatures,at.LassoSelect,at.LimitBoundary;at.NodeHoverView,at.PortHoverView,at.AutoFit;const $g=()=>({dx:0,dy:0,dWidth:0,dHeight:0,alignedDX:void 0,alignedDY:void 0,nodes:[],isVisible:!1}),Dn=Object.is;let ade=class{constructor(t,r){this.upstream=t,this.f=r}[Symbol.iterator](){return this}next(){const t=this.upstream.next();return t.done?t:{done:!1,value:this.f(t.value)}}};var e_;(function(e){e[e.Bitmap=0]="Bitmap",e[e.Collision=1]="Collision"})(e_||(e_={}));const tQe=30,lh=5,rQe=1073741823;function Dd(e){return 1<>>t&31}function o6(e){return e|=0,e-=e>>>1&1431655765,e=(e&858993459)+(e>>>2&858993459),e=e+(e>>>4)&252645135,e+=e>>>8,e+=e>>>16,e&127}let Qy=class my{get valueCount(){return this.values.length}get nodeCount(){return this.children.length}constructor(t,r,n,o,i,s,a,l){this.type=e_.Bitmap,this.owner=t,this.dataMap=r,this.nodeMap=n,this.keys=o,this.values=i,this.children=s,this.hashes=a,this.size=l}static empty(t){return new my(t,0,0,[],[],[],[],0)}getKey(t){return this.keys[t]}getValue(t){return this.values[t]}getHash(t){return this.hashes[t]}getNode(t){return this.children[t]}contains(t,r,n){const o=hh(r,n),i=Dd(o),{dataMap:s,nodeMap:a}=this;if(s&i){const l=Mu(s,o,i),u=this.getKey(l);return Dn(u,t)}else if(a&i){const l=Mu(a,o,i);return this.getNode(l).contains(t,r,n+lh)}return!1}get(t,r,n){const o=hh(r,n),i=Dd(o),{dataMap:s,nodeMap:a}=this;if(s&i){const l=Mu(s,o,i),u=this.getKey(l);return Dn(u,t)?this.getValue(l):void 0}else if(a&i){const l=Mu(a,o,i);return this.getNode(l).get(t,r,n+lh)}}insert(t,r,n,o,i){const s=hh(o,i),a=Dd(s),{dataMap:l,nodeMap:u}=this;if(l&a){const c=Mu(l,s,a),f=this.getKey(c),d=this.getValue(c),h=this.getHash(c);if(h===o&&Dn(f,r))return Dn(d,n)?this:this.setValue(t,n,c);{const g=lde(t,f,d,h,r,n,o,i+lh);return this.migrateInlineToNode(t,a,g)}}else if(u&a){const c=Mu(u,s,a),d=this.getNode(c).insert(t,r,n,o,i+lh);return this.setNode(t,1,d,a)}return this.insertValue(t,a,r,o,n)}update(t,r,n,o,i){const s=hh(o,i),a=Dd(s),{dataMap:l,nodeMap:u}=this;if(l&a){const c=Mu(l,s,a),f=this.getKey(c);if(this.getHash(c)===o&&Dn(f,r)){const h=this.getValue(c),g=n(h);return Dn(h,g)?this:this.setValue(t,g,c)}}else if(u&a){const c=Mu(u,s,a),f=this.getNode(c),d=f.update(t,r,n,o,i+lh);return d===f?this:this.setNode(t,0,d,a)}return this}remove(t,r,n,o){const i=hh(n,o),s=Dd(i);if(this.dataMap&s){const a=Mu(this.dataMap,i,s),l=this.getKey(a);return Dn(l,r)?this.removeValue(t,s):void 0}else if(this.nodeMap&s){const a=Mu(this.nodeMap,i,s),l=this.getNode(a),u=l.remove(t,r,n,o+lh);if(u===void 0)return;const[c,f]=u;return c.size===1?this.size===l.size?[new my(t,s,0,[c.getKey(0)],[c.getValue(0)],[],[c.getHash(0)],1),f]:[this.migrateNodeToInline(t,s,c),f]:[this.setNode(t,-1,c,s),f]}}toOwned(t){return this.owner===t?this:new my(t,this.dataMap,this.nodeMap,this.keys.slice(),this.values.slice(),this.children.slice(),this.hashes.slice(),this.size)}iter(){return new Z7(this)}map(t,r){const n=this.valueCount,o=[],i=[],s=[];let a=!0;for(let l=0;l=tQe)return new nQe(e,n,[t,o],[r,i]);{const l=hh(n,a),u=hh(s,a);if(l!==u){const c=Dd(l)|Dd(u);return lDn(n,t));return r>=0?this.values[r]:void 0}insert(t,r,n){const o=this.keys.findIndex(i=>Dn(i,r));if(o>=0){const i=this.values[o];if(Dn(i,n))return this;const s=this.toOwned(t);return s.values[o]=n,s}else{const i=this.toOwned(t);return i.keys.push(r),i.values.push(n),i}}update(t,r,n){const o=this.keys.findIndex(i=>Dn(i,r));if(o>=0){const i=this.values[o],s=n(i);if(Dn(i,s))return this;const a=this.toOwned(t);return a.values[o]=s,a}return this}remove(t,r){const n=this.keys.findIndex(i=>Dn(i,r));if(n===-1)return;const o=this.getValue(n);return[new Mk(t,this.hash,this.keys.filter((i,s)=>s!==n),this.values.filter((i,s)=>s!==n)),o]}getKey(t){return this.keys[t]}getValue(t){return this.values[t]}getHash(){return this.hash}iter(){return new J7(this)}map(t,r){const n=this.size,o=[];let i=!1;for(let s=0;s=this.node.size)return{done:!0,value:void 0};const t=this.node.getKey(this.index),r=this.node.getValue(this.index);return this.index+=1,{done:!1,value:[t,r]}}clone(){const t=new J7(this.node);return t.index=this.index,t}}function to(e){if(e===null)return 1108378658;switch(typeof e){case"boolean":return e?839943201:839943200;case"number":return oQe(e);case"string":return MZ(e);case"object":case"function":case"symbol":throw new Error("Using object, function and symbol as hash map key is not supported");case"undefined":return 839943203;default:return MZ(String(e))}}function MZ(e){let t=0;for(let r=0;r4294967295;)e/=4294967295,t^=e;return ude(t)}function ude(e){return e&1073741823}class cde{constructor(){this.id=0}take(){return this.id+=1,this.id}peek(){return this.id+1}}const ph=new cde;class nc{get size(){return this.root.size}constructor(t){this.id=ph.take(),this.root=t}static empty(){return oc.empty().finish()}static from(t){return oc.from(t).finish()}get(t){const r=to(t);return this.root.get(t,r,0)}has(t){const r=to(t);return this.root.contains(t,r,0)}set(t,r){return this.withRoot(this.root.insert(ph.peek(),t,r,to(t),0))}update(t,r){return this.withRoot(this.root.update(ph.peek(),t,r,to(t),0))}delete(t){const r=to(t),n=ph.peek(),o=this.root.remove(n,t,r,0);return o===void 0?this:new nc(o[0])}clone(){return new nc(this.root)}[Symbol.iterator](){return this.entries()}entries(){return this.root.iter()}values(){return new ade(this.entries(),([,t])=>t)}mutate(){return new oc(this.root)}map(t){return new nc(this.root.map(ph.peek(),t))}filter(t){const r=this.mutate();return this.forEach((n,o)=>{t(n,o)||r.delete(o)}),r.finish()}forEach(t){this.root.forEach(t)}find(t){return this.root.find(t)}withRoot(t){return t===this.root?this:new nc(t)}}class oc{constructor(t){this.id=ph.take(),this.root=t}static empty(){const t=ph.peek(),r=Qy.empty(t);return new oc(r)}static from(t){if(Array.isArray(t))return oc.fromArray(t);const r=t[Symbol.iterator](),n=oc.empty();let o=r.next();for(;!o.done;){const[i,s]=o.value;n.set(i,s),o=r.next()}return n}static fromArray(t){const r=oc.empty();for(let n=0;n=t?r:n;const o=r+n>>>1;if(e[o]===t)return o;t=Yc)return u;if(n===o)return u.balanceTail(l),u;const c=this.getValue(n);return u.balanceChild(t,l,a,c,n)}}removeMostRight(t){const r=this.selfSize,[n,o,i]=this.getChild(r).removeMostRight(t),s=this.toOwned(t);return s.size-=1,s.children[r]=i,i.selfSizeYc)this.rotateRight(r,a,i,s);else if(l.selfSize>Yc)this.rotateLeft(r,l,i,s);else{const u=a.toOwned(t),c=l.toOwned(t),f=r.getKey(fd),d=r.getValue(fd);u.keys.push(this.getKey(i-1)),u.values.push(this.getValue(i-1)),u.keys.push(...r.keys.slice(0,fd)),u.values.push(...r.values.slice(0,fd)),c.keys.unshift(n),c.values.unshift(o),c.keys.unshift(...r.keys.slice(fd+1,Yc)),c.values.unshift(...r.values.slice(fd+1,Yc)),this.keys.splice(i-1,2,f),this.values.splice(i-1,2,d),this.children.splice(i-1,3,u,c),s&&(u.children.push(...r.children.slice(0,fd+1)),c.children.unshift(...r.children.slice(fd+1,Yc+1)),u.updateSize(),c.updateSize())}return this}rotateLeft(t,r,n,o){const i=r.toOwned(this.owner),s=i.keys.shift(),a=i.values.shift(),l=this.getKey(n),u=this.getValue(n);if(t.keys.push(l),t.values.push(u),this.keys[n]=s,this.values[n]=a,this.children[n+1]=i,o){const c=i.children.shift();t.children.push(c);const f=c.size+1;t.size+=f,i.size-=f}}rotateRight(t,r,n,o){const i=r.toOwned(this.owner),s=i.keys.pop(),a=i.values.pop(),l=this.getKey(n-1),u=this.getValue(n-1);if(t.keys.unshift(l),t.values.unshift(u),this.keys[n-1]=s,this.values[n-1]=a,this.children[n-1]=i,o){const c=i.children.pop();t.children.unshift(c);const f=c.size+1;t.size+=f,i.size-=f}}balanceTail(t){const r=this.selfSize,n=this.getChild(r-1),o=t.type===iu.Internal;n.selfSize===Yc?(t.keys.unshift(this.getKey(r-1)),t.values.unshift(this.getValue(r-1)),t.keys.unshift(...n.keys),t.values.unshift(...n.values),this.keys.splice(r-1,1),this.values.splice(r-1,1),this.children.splice(r-1,1),o&&(t.children.unshift(...n.children),t.size+=n.size+1)):this.rotateRight(t,n,r,o)}balanceHead(t){const r=this.getChild(1),n=t.type===iu.Internal;r.selfSize===Yc?(t.keys.push(this.getKey(0)),t.values.push(this.getValue(0)),t.keys.push(...r.keys),t.values.push(...r.values),this.keys.splice(0,1),this.values.splice(0,1),this.children.splice(1,1),n&&(t.children.push(...r.children),t.size+=r.size+1)):this.rotateLeft(t,r,0,n)}updateWithSplit(t,r,n,o,i,s){const a=this.toOwned(t);a.keys.splice(s,0,o),a.values.splice(s,0,i),a.children.splice(s,1,r,n);const l=new Zy(t,a.keys.splice(16,16),a.values.splice(16,16),a.children.splice(16,17),0),u=a.keys.pop(),c=a.values.pop();return a.updateSize(),l.updateSize(),[a,l,u,c]}updateSize(){let t=this.selfSize;const r=this.children.length;for(let n=0;n{const[s,a]=i,l=r(a);return Dn(l,a)?i:[s,l]});return this.withRoot(this.itemId,this.hashRoot,o)}[Symbol.iterator](){return this.entries()}clone(){return new yy(this.itemId,this.hashRoot,this.sortedRoot)}entries(){return new ej(new t_(this.sortedRoot))}values(){return new ade(this.entries(),([,t])=>t)}mutate(){return new Md(this.itemId,this.hashRoot,this.sortedRoot)}map(t){const r=gh.peek(),n=i=>{const[s,a]=i,l=t(a,s);return Dn(a,l)?i:[s,l]},o=this.sortedRoot.map(r,n);return new yy(this.itemId,this.hashRoot,o)}forEach(t){this.sortedRoot.forEach(([r,n])=>{t(n,r)})}find(t){const r=this.sortedRoot.find(([,n])=>t(n));return r?r[1]:void 0}first(){const t=this.entries().next();if(!t.done)return t.value[1]}filter(t){const r=this.mutate();return this.forEach((n,o)=>{t(n,o)||r.delete(o)}),r.finish()}withRoot(t,r,n){return r===this.hashRoot&&n===this.sortedRoot?this:new yy(t,r,n)}};class ej{constructor(t){this.delegate=t}[Symbol.iterator](){return this.clone()}next(){const t=this.delegate.next();return t.done?{done:!0,value:void 0}:{done:!1,value:t.value[1]}}clone(){return new ej(this.delegate.clone())}}class Md{constructor(t,r,n){this.id=gh.take(),this.itemId=t,this.hashRoot=r,this.sortedRoot=n}static empty(){const t=gh.peek(),r=Qy.empty(t),n=iQe(t);return new Md(0,r,n)}static from(t){if(Array.isArray(t))return Md.fromArray(t);const r=Md.empty(),n=t[Symbol.iterator]();let o=n.next();for(;!o.done;){const[i,s]=o.value;r.set(i,s),o=n.next()}return r}static fromArray(t){const r=Md.empty();for(let n=0;n{const[i,s]=o,a=r(s);return Dn(a,s)?o:[i,a]}),this):this}finish(){return new i6(this.itemId,this.hashRoot,this.sortedRoot)}}const aQe=(e,t,r)=>{const n=cE(r,e),o=fE(r,e),i=t.position?t.position[0]*n:n*.5,s=e.x+i,a=t.position?t.position[1]*o:o,l=e.y+a;return{x:s,y:l}},hde=(e,t,r)=>{const n=uE(e,r);if(!n)return;const i=(e.ports||[]).find(s=>s.id===t);if(!i){Xh.warn(`invalid port id ${JSON.stringify(i)}`);return}return aQe(e,i,n)},gc=e=>e;var Ja;(function(e){e.Unknown="Unknown",e.Edge="Edge",e.EdgeChromium="EdgeChromium",e.Opera="Opera",e.Chrome="Chrome",e.IE="IE",e.Firefox="Firefox",e.Safari="Safari",e.Electron="Electron"})(Ja||(Ja={}));const lQe=()=>{const e=navigator.userAgent.toLowerCase();if(e.indexOf("electron")>-1)return Ja.Electron;switch(!0){case e.indexOf("edge")>-1:return Ja.Edge;case e.indexOf("edg")>-1:return Ja.EdgeChromium;case(e.indexOf("opr")>-1&&!!window.opr):return Ja.Opera;case(e.indexOf("chrome")>-1&&!!window.chrome):return Ja.Chrome;case e.indexOf("trident")>-1:return Ja.IE;case e.indexOf("firefox")>-1:return Ja.Firefox;case e.indexOf("safari")>-1:return Ja.Safari;default:return Ja.Unknown}},uQe=navigator.userAgent.includes("Macintosh"),cQe=e=>uQe?e.metaKey:e.ctrlKey,pde=e=>e.shiftKey||cQe(e),Pg=(e,t,r)=>({x:r[0]*e+r[2]*t+r[4],y:r[1]*e+r[3]*t+r[5]}),r_=(e,t,r)=>{const[n,o,i,s,a,l]=r;return{x:((e-a)*s-(t-l)*i)/(n*s-o*i),y:((e-a)*o-(t-l)*n)/(o*i-n*s)}},fQe=(e,t,r)=>{const[n,o,i,s]=r,a=s*e/(n*s-o*i)+i*t/(o*i-n*s),l=o*e/(o*i-n*s)+n*t/(n*s-o*i);return{x:a,y:l}},LZ=(e,t,r)=>{if(!r)return{x:e,y:t};const[n,o,i,s]=r;return Pg(e,t,[n,o,i,s,0,0])},gde=(e,t,r)=>{const{rect:n}=r,o=e-n.left,i=t-n.top;return r_(o,i,r.transformMatrix)},dQe=(e,t,r)=>{const{x:n,y:o}=Pg(e,t,r.transformMatrix),{rect:i}=r;return{x:n+i.left,y:o+i.top}},hQe=(e,t,r)=>{const n=dQe(e,t,r),{rect:o}=r;return{x:n.x-o.left,y:n.y-o.top}};function Aw(e,t){e.update(t,r=>r.shallow())}const pQe=e=>{const{parentNode:t,clientX:r,clientY:n,graphConfig:o,viewport:i}=e;let s=1/0,a;if(!t.ports)return;const l=gde(r,n,i);return t.ports.forEach(u=>{if(vde(o,Object.assign(Object.assign({},e),{model:u}))){const c=hde(t,u.id,o);if(!c)return;const f=l.x-c.x,d=l.y-c.y,h=f*f+d*d;h{const r=e.getPortConfig(t.model);return r?r.getIsConnectable(t):!1},pu=()=>e=>e.mapNodes(t=>t.update(r=>{var n;const o=Object.assign(Object.assign({},r),{ports:(n=r.ports)===null||n===void 0?void 0:n.map(Mn(sa(ls.Default)))});return Mn(sa(Mo.Default))(o)})).mapEdges(t=>t.update(Mn(sa(Di.Default)))),gQe=(e,t)=>{if(Q7(t))return gc;const r=pde(e);return t1(t)&&!r?gc:n=>{const o=r?i=>i.id!==t.id?t1(i):e.button===ex.Secondary?!0:!t1(t):i=>i.id===t.id;return n.selectNodes(o,t.id)}},vQe=e=>{var t;return`node-container-${(t=e.name)!==null&&t!==void 0?t:"unnamed"}-${e.id}`},mQe=(e,t)=>`port-${t.name}-${t.id}-${e.name}-${e.id}`,yQe=(e,t)=>`node:${e}:${t.id}`,bQe=(e,t,r)=>`port:${e}:${t.id}:${r.id}`,_Qe=(e,t)=>`edge:${e}:${t.id}`;function tj(e){Object.defineProperty(e,"__preventSpread",{enumerable:!0,configurable:!1,get(){document.currentScript&&Xh.error(`${e.constructor.name} is a class, which should not be used in the spread syntax or argument of Object.assign`)}})}class fg{get id(){return this.inner.id}get automationId(){return this.inner.automationId}get source(){return this.inner.source}get target(){return this.inner.target}get sourcePortId(){return this.inner.sourcePortId}get targetPortId(){return this.inner.targetPortId}get status(){return this.inner.status}get data(){return this.inner.data}constructor(t){this.inner=t,tj(this)}static fromJSON(t){return new fg(t)}updateStatus(t){return this.update(Mn(t))}update(t){const r=t(this.inner);return r===this.inner?this:new fg(r)}shallow(){return new fg(this.inner)}toJSON(){return this.inner}}const mde=Object.is;function EQe(e,t){const r=[];let n=!0;for(let o=0;on.id===t)}link({prev:t,next:r}){return t===this.prev&&r===this.next?this:new al(this.inner,this.portPositionCache,t??this.prev,r??this.next)}updateStatus(t){return this.update(Mn(t))}update(t){const r=t(this.inner);return r===this.inner?this:new al(r,new Map,this.prev,this.next)}updateData(t){return this.data?this.update(r=>{const n=t(r.data);return n===r.data?r:Object.assign(Object.assign({},r),{data:n})}):this}getPortPosition(t,r){let n=this.portPositionCache.get(t);return n||(n=hde(this.inner,t,r),this.portPositionCache.set(t,n)),n}hasPort(t){var r;return!!(!((r=this.inner.ports)===null||r===void 0)&&r.find(n=>n.id===t))}updatePositionAndSize(t){const{x:r,y:n,width:o,height:i}=t,s=Object.assign(Object.assign({},this.inner),{x:r,y:n,width:o??this.inner.width,height:i??this.inner.height});return new al(s,new Map,this.prev,this.next)}updatePorts(t){if(!this.inner.ports)return this;const r=EQe(this.inner.ports,t),n=this.inner.ports===r?this.inner:Object.assign(Object.assign({},this.inner),{ports:r});return n===this.inner?this:new al(n,new Map,this.prev,this.next)}invalidCache(){return new al(this.inner,new Map,this.prev,this.next)}toJSON(){return this.inner}}class Mh{constructor(t){this.nodes=t.nodes,this.edges=t.edges,this.groups=t.groups,this.head=t.head,this.tail=t.tail,this.edgesBySource=t.edgesBySource,this.edgesByTarget=t.edgesByTarget,this.selectedNodes=t.selectedNodes,tj(this)}static empty(){return new Mh({nodes:i6.empty(),edges:nc.empty(),groups:[],head:void 0,tail:void 0,edgesBySource:nc.empty(),edgesByTarget:nc.empty(),selectedNodes:new Set})}static fromJSON(t){var r;const n=i6.empty().mutate(),o=nc.empty().mutate();let i,s;if(t.nodes.length===0)i=void 0,s=void 0;else if(t.nodes.length===1){const u=t.nodes[0];n.set(u.id,al.fromJSON(u,void 0,void 0)),i=u.id,s=u.id}else{const u=t.nodes[0],c=t.nodes[1],f=t.nodes[t.nodes.length-1];i=u.id,s=f.id,n.set(u.id,al.fromJSON(u,void 0,c.id));let d=t.nodes[0];if(t.nodes.length>2)for(let h=1;ha.update(r));if(i===this.nodes)return this;const s=this.edges.mutate();return(n=this.edgesBySource.get(t))===null||n===void 0||n.forEach(a=>{a.forEach(l=>{Aw(s,l)})}),(o=this.edgesByTarget.get(t))===null||o===void 0||o.forEach(a=>{a.forEach(l=>{Aw(s,l)})}),this.merge({nodes:i,edges:s.finish()})}updateNodeData(t,r){return this.merge({nodes:this.nodes.update(t,n=>n.updateData(r))})}updatePort(t,r,n){const o=this.nodes.update(t,i=>i.updatePorts(s=>s.id===r?n(s):s));return this.merge({nodes:o})}insertNode(t){const r=this.nodes.mutate().set(t.id,al.fromJSON(t,this.tail,void 0));return this.tail&&!this.nodes.has(t.id)&&r.update(this.tail,n=>n.link({next:t.id})),this.merge({nodes:r.finish(),head:this.nodes.size===0?t.id:this.head,tail:t.id})}deleteItems(t){var r;const n=new Set,o=this.nodes.mutate();let i=this.head===void 0?void 0:this.nodes.get(this.head),s=i,a;const l=this.edgesBySource.mutate(),u=this.edgesByTarget.mutate();for(;s!==void 0;){const f=s.next?this.nodes.get(s.next):void 0;!((r=t.node)===null||r===void 0)&&r.call(t,s.inner)?(o.update(s.id,d=>d.link({prev:a==null?void 0:a.id}).update(h=>pp(Mo.Editing)(h.status)?h:Object.assign(Object.assign({},h),{status:Mo.Default}))),a=s):(o.delete(s.id),l.delete(s.id),u.delete(s.id),n.add(s.id),a&&o.update(a.id,d=>d.link({next:s==null?void 0:s.next})),f&&o.update(f.id,d=>d.link({prev:a==null?void 0:a.id})),s===i&&(i=f)),s=f}const c=this.edges.mutate();return this.edges.forEach(f=>{var d,h;!n.has(f.source)&&!n.has(f.target)&&(!((h=(d=t.edge)===null||d===void 0?void 0:d.call(t,f))!==null&&h!==void 0)||h)?c.update(f.id,g=>g.update(Mn(sa(Di.Default)))):(c.delete(f.id),xw(l,f.id,f.source,f.sourcePortId),xw(u,f.id,f.target,f.targetPortId))}),this.merge({nodes:o.finish(),edges:c.finish(),head:i==null?void 0:i.id,tail:a==null?void 0:a.id,edgesBySource:l.finish(),edgesByTarget:u.finish()})}insertEdge(t){if(this.isEdgeExist(t.source,t.sourcePortId,t.target,t.targetPortId)||!this.nodes.has(t.source)||!this.nodes.has(t.target))return this;const r=jZ(this.edgesBySource,t.id,t.source,t.sourcePortId),n=jZ(this.edgesByTarget,t.id,t.target,t.targetPortId);return this.merge({nodes:this.nodes.update(t.source,o=>o.invalidCache()).update(t.target,o=>o.invalidCache()),edges:this.edges.set(t.id,fg.fromJSON(t)).map(o=>o.updateStatus(sa(Di.Default))),edgesBySource:r,edgesByTarget:n})}updateEdge(t,r){return this.merge({edges:this.edges.update(t,n=>n.update(r))})}deleteEdge(t){const r=this.edges.get(t);return r?this.merge({edges:this.edges.delete(t),edgesBySource:xw(this.edgesBySource,r.id,r.source,r.sourcePortId),edgesByTarget:xw(this.edgesByTarget,r.id,r.target,r.targetPortId)}):this}updateNodesPositionAndSize(t){const r=new Set,n=this.nodes.mutate(),o=this.edges.mutate();return t.forEach(i=>{var s,a;r.add(i.id),n.update(i.id,l=>l.updatePositionAndSize(i)),(s=this.edgesBySource.get(i.id))===null||s===void 0||s.forEach(l=>{l.forEach(u=>{Aw(o,u)})}),(a=this.edgesByTarget.get(i.id))===null||a===void 0||a.forEach(l=>{l.forEach(u=>{Aw(o,u)})})}),this.merge({nodes:n.finish(),edges:o.finish()})}mapNodes(t){return this.merge({nodes:this.nodes.map(t)})}mapEdges(t){return this.merge({edges:this.edges.map(t)})}selectNodes(t,r){const n=new Set,o=this.nodes.map(a=>{const l=t(a.inner);return l&&n.add(a.id),a.updatePorts(Mn(sa(ls.Default))).updateStatus(WXe(l?Mo.Selected:Mo.UnconnectedToSelected))}).mutate();if(n.size===0)this.nodes.forEach(a=>o.update(a.id,l=>l.updateStatus(sa(Mo.Default))));else if(r){const a=o.get(r);a&&(o.delete(r),o.set(a.id,a))}const i=a=>{o.update(a,l=>l.updateStatus(sa(t1(l)?Mo.Selected:Mo.ConnectedToSelected)))},s=n.size?this.edges.map(a=>{let l=Di.UnconnectedToSelected;return n.has(a.source)&&(i(a.target),l=Di.ConnectedToSelected),n.has(a.target)&&(i(a.source),l=Di.ConnectedToSelected),a.updateStatus(sa(l))}):this.edges.map(a=>a.updateStatus(sa(Di.Default)));return this.merge({nodes:o.finish(),edges:s,selectedNodes:n})}getEdgesBySource(t,r){var n;return(n=this.edgesBySource.get(t))===null||n===void 0?void 0:n.get(r)}getEdgesByTarget(t,r){var n;return(n=this.edgesByTarget.get(t))===null||n===void 0?void 0:n.get(r)}isPortConnectedAsSource(t,r){var n,o;return((o=(n=this.getEdgesBySource(t,r))===null||n===void 0?void 0:n.size)!==null&&o!==void 0?o:0)>0}isPortConnectedAsTarget(t,r){var n,o;return((o=(n=this.getEdgesByTarget(t,r))===null||n===void 0?void 0:n.size)!==null&&o!==void 0?o:0)>0}shallow(){return this.merge({})}toJSON(){const t=[];let r=this.head&&this.nodes.get(this.head);for(;r;)t.push(r.inner),r=r.next&&this.nodes.get(r.next);const n=Array.from(this.edges.values()).map(o=>o.inner);return{nodes:t,edges:n}}isEdgeExist(t,r,n,o){const i=this.getEdgesBySource(t,r),s=this.getEdgesByTarget(n,o);if(!i||!s)return!1;let a=!1;return i.forEach(l=>{s.has(l)&&(a=!0)}),a}merge(t){var r,n,o,i,s,a,l,u;return new Mh({nodes:(r=t.nodes)!==null&&r!==void 0?r:this.nodes,edges:(n=t.edges)!==null&&n!==void 0?n:this.edges,groups:(o=t.groups)!==null&&o!==void 0?o:this.groups,head:(i=t.head)!==null&&i!==void 0?i:this.head,tail:(s=t.tail)!==null&&s!==void 0?s:this.tail,edgesBySource:(a=t.edgesBySource)!==null&&a!==void 0?a:this.edgesBySource,edgesByTarget:(l=t.edgesByTarget)!==null&&l!==void 0?l:this.edgesByTarget,selectedNodes:(u=t.selectedNodes)!==null&&u!==void 0?u:this.selectedNodes})}}function jZ(e,t,r,n){return e.has(r)?e.update(r,o=>{const i=o.get(n);return new Map(o).set(n,(i?new Set(i):new Set).add(t))}):e.set(r,new Map([[n,new Set([t])]]))}function zZ(e,t,r,n){e.has(r)?e.update(r,o=>{let i=o.get(n);return i||(i=new Set,o.set(n,i)),i.add(t),o}):e.set(r,new Map([[n,new Set([t])]]))}function xw(e,t,r,n){return e.has(r)?e.update(r,o=>{const i=o.get(n);if(!i)return o;const s=new Set(i);return s.delete(t),new Map(o).set(n,s)}):e}var HZ;(function(e){e.Pan="Pan",e.Select="Select"})(HZ||(HZ={}));var es;(function(e){e.Default="default",e.Dragging="dragging",e.Panning="panning",e.MultiSelect="multiSelect",e.Connecting="connecting",e.AddingNode="addingNode"})(es||(es={}));function $Z(e,t,r){return e>r?e:t{const r=e.maxXt.maxX,o=e.minY>t.maxY,i=e.maxY{const{minX:r,minY:n,maxX:o,maxY:i}=e,{x:s,y:a}=t;return s>r&&sn&&ae===r?()=>Number.MAX_SAFE_INTEGER:o=>(n-t)/(r-e)*o+(t*r-n*e)/(r-e),wQe=(e,t)=>{if(!e||e.length!==t.length)return!1;for(let r=0;r{const i=t?Array.isArray(t)?t:t.apply(void 0,o):o;return wQe(r,i)||(r=i,n=e.apply(void 0,o)),n}}var vl;(function(e){e[e.X=0]="X",e[e.Y=1]="Y",e[e.XY=2]="XY"})(vl||(vl={}));const lu=e=>!!e.rect,yde=(e,t)=>{const{x:r,y:n}=e,{width:o,height:i}=Df(e,t);return{x:r,y:n,width:o,height:i}},AQe=(e,t,r)=>bde(yde(e,r),t),bde=(e,t)=>{const{x:r,y:n,width:o,height:i}=e;return Tw({x:r,y:n},t)||Tw({x:r+o,y:n},t)||Tw({x:r+o,y:n+i},t)||Tw({x:r,y:n+i},t)},Tw=(e,t)=>{const{x:r,y:n}=hQe(e.x,e.y,t),{height:o,width:i}=t.rect;return r>0&&r0&&n{const n=[];return e.forEach(o=>{AQe(o,t,r)&&n.push(o.inner)}),n},_de=(e,t)=>{const r=[],n=IQe(t);return e.forEach(o=>{TQe(o,n)&&r.push(o.inner)}),r},TQe=(e,t)=>L0(t,e),IQe=e=>{if(!lu(e))return{minX:0,minY:0,maxX:0,maxY:0};const{rect:t,transformMatrix:r}=e,n=0,o=0,i=t.width,s=t.height,a=r_(n-t.width,o-t.height,r),l=r_(i+t.width,s+t.height,r);return{minX:a.x,minY:a.y,maxX:l.x,maxY:l.y}},CQe=e=>e?typeof e=="number"?{top:e,right:e,bottom:e,left:e}:Object.assign({top:0,right:0,bottom:0,left:0},e):{top:0,right:0,bottom:0,left:0},s6=({scale:e,anchor:t,direction:r,limitScale:n})=>o=>{const i=n(e)/o.transformMatrix[0],s=n(e)/o.transformMatrix[3],{x:a,y:l}=t,u=a*(1-i),c=l*(1-s);let f;switch(r){case vl.X:f=[e,0,0,o.transformMatrix[3],o.transformMatrix[4]*i+u,o.transformMatrix[5]];break;case vl.Y:f=[o.transformMatrix[0],0,0,e,o.transformMatrix[4],o.transformMatrix[5]*s+c];break;case vl.XY:default:f=[e,0,0,e,o.transformMatrix[4]*i+u,o.transformMatrix[5]*s+c]}return Object.assign(Object.assign({},o),{transformMatrix:f})},a6=({scale:e,anchor:t,direction:r,limitScale:n})=>e===1?gc:o=>{let i;switch(r){case vl.X:return s6({anchor:t,direction:r,limitScale:n,scale:o.transformMatrix[0]*e})(o);case vl.Y:return s6({anchor:t,direction:r,limitScale:n,scale:o.transformMatrix[3]*e})(o);case vl.XY:default:{const s=n(o.transformMatrix[0]*e),a=n(o.transformMatrix[3]*e),l=s/o.transformMatrix[0],u=a/o.transformMatrix[3],{x:c,y:f}=t,d=c*(1-l),h=f*(1-u);i=[s,0,0,a,o.transformMatrix[4]*l+d,o.transformMatrix[5]*u+h]}}return Object.assign(Object.assign({},o),{transformMatrix:i})},l6=(e,t)=>e===0&&t===0?gc:r=>Object.assign(Object.assign({},r),{transformMatrix:[r.transformMatrix[0],r.transformMatrix[1],r.transformMatrix[2],r.transformMatrix[3],r.transformMatrix[4]+e,r.transformMatrix[5]+t]}),NQe=(e,t)=>e===0&&t===0?gc:r=>{const[n,o,i,s]=r.transformMatrix;return Object.assign(Object.assign({},r),{transformMatrix:[n,o,i,s,r.transformMatrix[4]+n*e+o*t,r.transformMatrix[5]+i*e+s*t]})},M9=(e,t,r)=>{let n=1/0,o=1/0,i=1/0,s=1/0,a=-1/0,l=-1/0;return(r===void 0?d=>e.nodes.forEach(d):d=>r==null?void 0:r.forEach(h=>{const g=e.nodes.get(h);g&&d(g)}))(d=>{const{width:h,height:g}=Df(d,t);d.xa&&(a=d.x+h),d.y+g>l&&(l=d.y+g),h{let{width:r,height:n}=e,{width:o,height:i}=t;if(r>o){const s=r;r=o,o=s}if(n>i){const s=n;n=i,i=s}return{nodeMinVisibleWidth:r,nodeMinVisibleHeight:n,nodeMaxVisibleWidth:o,nodeMaxVisibleHeight:i}},Ede=(e,{width:t,height:r})=>{const{nodeMinVisibleWidth:n,nodeMinVisibleHeight:o,nodeMaxVisibleWidth:i,nodeMaxVisibleHeight:s}=RQe(e);let a=0,l=0,u=1/0,c=1/0;return t&&(a=n/t,u=i/t),r&&(l=o/r,c=s/r),{minScaleX:a,minScaleY:l,maxScaleX:u,maxScaleY:c}},OQe=e=>{const{data:t,graphConfig:r,disablePan:n,direction:o,rect:i}=e,{nodes:s}=t;if(s.size===0)return[1,0,0,1,0,0];const{minNodeWidth:a,minNodeHeight:l,minNodeX:u,minNodeY:c,maxNodeX:f,maxNodeY:d}=M9(t,r),{minScaleX:h,minScaleY:g,maxScaleX:v,maxScaleY:y}=Ede(e,{width:a,height:l}),E=CQe(e.spacing),{width:_,height:S}=i,b=_/(f-u+E.left+E.right),k=S/(d-c+E.top+E.bottom),T=o===vl.Y?Math.min(Math.max(h,g,k),v,y):Math.min(Math.max(h,g,Math.min(b,k)),y,y),x=o===vl.XY?Math.min(Math.max(h,b),v):T,I=o===vl.XY?Math.min(Math.max(g,k),y):T;if(n)return[x,0,0,I,0,0];const C=-x*(u-E.left),R=-I*(c-E.top);if(xQe(t.nodes,{rect:i,transformMatrix:[x,0,0,I,C,R]},r).length>0)return[x,0,0,I,C,R];let L=t.nodes.first();return L&&t.nodes.forEach(M=>{L.y>M.y&&(L=M)}),[x,0,0,I,-x*(L.x-E.left),-I*(L.y-E.top)]},DQe=(e,t,r,n,o)=>{const i=r-e,s=n-t,a=Math.min(o.rect.width/i,o.rect.height/s),l=-a*(e+i/2)+o.rect.width/2,u=-a*(t+s/2)+o.rect.height/2;return Object.assign(Object.assign({},o),{transformMatrix:[a,0,0,a,l,u]})};function Sde(e,t){const r=t.clientX-e.left,n=t.clientY-e.top;return{x:r,y:n}}const wde=(e,t,r,n,o)=>{if(!r)return gc;const{width:i,height:s}=r;return!(e<0||e>i||t<0||t>s)&&!n?gc:l=>{const u=o?o.x-e:i/2-e,c=o?o.y-t:s/2-t;return Object.assign(Object.assign({},l),{transformMatrix:[l.transformMatrix[0],l.transformMatrix[1],l.transformMatrix[2],l.transformMatrix[3],l.transformMatrix[4]+u,l.transformMatrix[5]+c]})}},kde=(e,t)=>{const{minNodeWidth:r,minNodeHeight:n}=M9(e,t.graphConfig),{minScaleX:o,minScaleY:i}=Ede(t,{width:r,height:n});return Math.max(o,i)},FQe=kQe(M9),BQe=({data:e,graphConfig:t,rect:r,transformMatrix:n,canvasBoundaryPadding:o,groupPadding:i})=>{var s,a,l,u;const c=FQe(e,t),f=LZ(c.minNodeX-((i==null?void 0:i.left)||0),c.minNodeY-((i==null?void 0:i.top)||0),n);f.x-=(s=o==null?void 0:o.left)!==null&&s!==void 0?s:0,f.y-=(a=o==null?void 0:o.top)!==null&&a!==void 0?a:0;const d=LZ(c.maxNodeX+((i==null?void 0:i.right)||0),c.maxNodeY+((i==null?void 0:i.bottom)||0),n);d.x+=(l=o==null?void 0:o.right)!==null&&l!==void 0?l:0,d.y+=(u=o==null?void 0:o.bottom)!==null&&u!==void 0?u:0;let h=-f.x||0,g=-f.y||0,v=r.width-d.x||0,y=r.height-d.y||0;if(v({present:t,past:{next:e.past,value:r(e.present)},future:null}),MQe=e=>e.past?{present:e.past.value,past:e.past.next,future:{next:e.future,value:e.present}}:e,LQe=e=>e.future?{present:e.future.value,past:{next:e.past,value:e.present},future:e.future.next}:e,u6=e=>({present:e,future:null,past:null}),j0=[1,0,0,1,0,0],jQe={top:0,right:0,bottom:0,left:0},zQe={width:OZ,height:OZ},HQe={width:DZ,height:DZ},$Qe={features:JXe,graphConfig:Hg.default().build(),canvasBoundaryPadding:jQe,nodeMinVisibleSize:zQe,nodeMaxVisibleSize:HQe},PQe=Ade({});function Ade(e){const{data:t,transformMatrix:r,settings:n}=e;return{settings:Object.assign(Object.assign({},$Qe),n),data:u6(t??Mh.empty()),viewport:{rect:void 0,transformMatrix:r??j0},behavior:es.Default,dummyNodes:$g(),alignmentLines:[],activeKeys:new Set,selectBoxPosition:sde(),connectState:void 0}}const qQe={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0,movingPoint:{x:0,y:0}};new Proxy(Mh.empty(),{get:(e,t)=>(console.warn("Default graph data value is being used. Please check if you forget rendering Graph component"),Reflect.get(e,t))});const xde=A.createContext({});class WQe{constructor(){this.listenersRef=A.createRef(),this.externalHandlerRef=A.createRef(),this.queue=[],this.working=!1}trigger(t){this.working?this.queue.push(t):(this.working=!0,pi.unstable_batchedUpdates(()=>{this.callHandlers(t);for(let r=0;r{this.dispatchDelegate(n,o)},this.state=t,this.UNSAFE_latestState=t,this.dispatchDelegate=r}setMouseClientPosition(t){this.mouseClientPoint=t}unsetMouseClientPosition(){this.mouseClientPoint=void 0}getMouseClientPosition(){return this.mouseClientPoint}getEnabledFeatures(){return this.state.settings.features}getBehavior(){return this.behavior}setBehavior(t){this.behavior=t}getData(){return this.state.data.present}getGlobalEventTarget(){var t,r;return(r=(t=this.getGlobalEventTargetDelegate)===null||t===void 0?void 0:t.call(this))!==null&&r!==void 0?r:window}}const c6=()=>{},KQe={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0},rj=A.createContext(KQe);rj.displayName="ConnectingStateContext";const VQe=A.createContext([]),UQe=A.createContext(new GQe(PQe,c6));var $t;(function(e){e.Click="[Node]Click",e.DoubleClick="[Node]DoubleClick",e.MouseDown="[Node]MouseDown",e.MouseUp="[Node]MouseUp",e.MouseEnter="[Node]MouseEnter",e.MouseLeave="[Node]MouseLeave",e.MouseOver="[Node]MouseOver",e.MouseOut="[Node]MouseOut",e.MouseMove="[Node]MouseMove",e.ContextMenu="[Node]ContextMenu",e.Drag="[Node]Drag",e.DragStart="[Node]DragStart",e.DragEnd="[Node]DragEnd",e.PointerDown="[Node]PointerDown",e.PointerEnter="[Node]PointerEnter",e.PointerMove="[Node]PointerMove",e.PointerLeave="[Node]PointerLeave",e.PointerUp="[Node]PointerUp",e.Resizing="[Node]Resizing",e.ResizingStart="[Node]ResizingStart",e.ResizingEnd="[Node]ResizingEnd",e.KeyDown="[Node]KeyDown",e.Select="[Node]Select",e.SelectAll="[Node]SelectAll",e.Centralize="[Node]Centralize",e.Locate="[Node]Locate",e.Add="[Node]Add"})($t||($t={}));var hn;(function(e){e.Click="[Edge]Click",e.DoubleClick="[Edge]DoubleClick",e.MouseEnter="[Edge]MouseEnter",e.MouseLeave="[Edge]MouseLeave",e.MouseOver="[Edge]MouseOver",e.MouseOut="[Edge]MouseOut",e.MouseMove="[Edge]MouseMove",e.MouseDown="[Edge]MouseDown",e.MouseUp="[Edge]MouseUp",e.ContextMenu="[Edge]ContextMenu",e.ConnectStart="[Edge]ConnectStart",e.ConnectMove="[Edge]ConnectMove",e.ConnectEnd="[Edge]ConnectEnd",e.ConnectNavigate="[Edge]ConnectNavigate",e.Add="[Edge]Add"})(hn||(hn={}));var an;(function(e){e.Click="[Port]Click",e.DoubleClick="[Port]DoubleClick",e.MouseDown="[Port]MouseDown",e.PointerDown="[Port]PointerDown",e.PointerUp="[Port]PointerUp",e.PointerEnter="[Port]PointerEnter",e.PointerLeave="[Port]PointerLeave",e.MouseUp="[Port]MouseUp",e.MouseEnter="[Port]MouseEnter",e.MouseLeave="[Port]MouseLeave",e.MouseOver="[Port]MouseOver",e.MouseOut="[Port]MouseOut",e.MouseMove="[Port]MouseMove",e.ContextMenu="[Port]ContextMenu",e.KeyDown="[Port]KeyDown",e.Focus="[Port]Focus",e.Blur="[Port]Blur"})(an||(an={}));var or;(function(e){e.Click="[Canvas]Click",e.DoubleClick="[Canvas]DoubleClick",e.MouseDown="[Canvas]MouseDown",e.MouseUp="[Canvas]MouseUp",e.MouseEnter="[Canvas]MouseEnter",e.MouseLeave="[Canvas]MouseLeave",e.MouseOver="[Canvas]MouseOver",e.MouseOut="[Canvas]MouseOut",e.MouseMove="[Canvas]MouseMove",e.ContextMenu="[Canvas]ContextMenu",e.DragStart="[Canvas]DragStart",e.Drag="[Canvas]Drag",e.DragEnd="[Canvas]DragEnd",e.Pan="[Canvas]Pan",e.Focus="[Canvas]Focus",e.Blur="[Canvas]Blur",e.Zoom="[Canvas]Zoom",e.Pinch="[Canvas]Pinch",e.KeyDown="[Canvas]KeyDown",e.KeyUp="[Canvas]KeyUp",e.SelectStart="[Canvas]SelectStart",e.SelectMove="[Canvas]SelectMove",e.SelectEnd="[Canvas]SelectEnd",e.UpdateNodeSelectionBySelectBox="[Canvas]UpdateNodeSelectionBySelectBox",e.MouseWheelScroll="[Canvas]MouseWheelScroll",e.DraggingNodeFromItemPanel="[Canvas]DraggingNodeFromItemPanel",e.DraggingNodeFromItemPanelStart="[Canvas]DraggingNodeFromItemPanelStart",e.DraggingNodeFromItemPanelEnd="[Canvas]DraggingNodeFromItemPanelEnd",e.ViewportResize="[Canvas]ViewportResize",e.Navigate="[Canvas]Navigate",e.VirtualizationRecalculated="[Canvas]VirtualizationRecalculated",e.ResetSelection="[Canvas]ResetSelection",e.Copy="[Canvas]Copy",e.Paste="[Canvas]Paste",e.Delete="[Canvas]Delete",e.Undo="[Canvas]Undo",e.Redo="[Canvas]Redo",e.ScrollIntoView="[Canvas]ScrollIntoView",e.ResetUndoStack="[Canvas]ResetUndoStack",e.ResetViewport="[Canvas]ResetViewport",e.ZoomTo="[Canvas]ZoomTo",e.ZoomToFit="[Canvas]ZoomToFit",e.SetData="[Canvas]SetData",e.UpdateData="[Canvas]UpdateData",e.ScrollTo="[Canvas]ScrollTo",e.UpdateSettings="[Canvas]UpdateSettings"})(or||(or={}));var f6;(function(e){e.ScrollStart="[ScrollBar]ScrollStart",e.Scroll="[ScrollBar]Scroll",e.ScrollEnd="[ScrollBar]ScrollEnd"})(f6||(f6={}));var d6;(function(e){e.PanStart="[Minimap]PanStart",e.Pan="[Minimap]Pan",e.PanEnd="[Minimap]PanEnd",e.Click="[Minimap]Click"})(d6||(d6={}));var rx;(function(e){e.Open="[ContextMenu]Open",e.Close="[ContextMenu]Close"})(rx||(rx={}));function YQe(){try{const e=document.createElement("iframe");e.src="#",document.body.appendChild(e);const{contentDocument:t}=e;if(!t)throw new Error("Fail to create iframe");t.documentElement.innerHTML=eUe.sanitize("a",{RETURN_TRUSTED_TYPE:!0});const n=t.body.firstElementChild.offsetHeight;return document.body.removeChild(e),n}catch(e){return Xh.error("failed to calculate scroll line height",e),16}}YQe();const XQe={height:0,width:0,x:0,y:0,bottom:0,left:0,right:0,top:0,toJSON(){return this}},QQe=A.createContext({viewport:{rect:XQe,transformMatrix:j0},renderedArea:{minX:0,minY:0,maxX:0,maxY:0},visibleArea:{minX:0,minY:0,maxX:0,maxY:0},renderedNodes:new Set,renderedEdges:new Set,timestamp:0});function gp(){return A.useContext(ZXe)}function ZQe(){return A.useContext(UQe)}function JQe(){return A.useContext(VQe)}function eZe(){return A.useContext(rj)}function Tde(){return A.useContext(QQe)}function tZe(e,t,r){let n=!1,o,i;const s=(...a)=>{o=a,n||(n=!0,i=t(()=>{n=!1,pi.unstable_batchedUpdates(()=>{e.apply(null,o)})}))};return s.cancel=()=>{r(i)},s}const rZe=e=>tZe(e,requestAnimationFrame,cancelAnimationFrame);class nZe{constructor(t,r){this.onMove=c6,this.onEnd=c6,this.lastEvent=null,this.startX=0,this.startY=0,this.prevClientX=0,this.prevClientY=0,this.onMouseUp=n=>{this.lastEvent=n,this.doOnMouseUp(n),this.lastEvent=null},this.onMouseMove=n=>{this.lastEvent=n,n.preventDefault(),this.mouseMove(n)},this.eventProvider=t,this.getPositionFromEvent=r,this.mouseMove=rZe(n=>{this.doOnMouseMove(n)})}start(t){this.lastEvent=t;const{x:r,y:n}=this.getPositionFromEvent(t);this.startX=r,this.startY=n,this.prevClientX=r,this.prevClientY=n,this.eventProvider.on("move",this.onMouseMove),this.eventProvider.on("end",this.onMouseUp)}stop(){this.mouseMove.cancel(),this.eventProvider.off("move",this.onMouseMove),this.eventProvider.off("end",this.onMouseUp)}getDelta(t,r){const n=t-this.prevClientX,o=r-this.prevClientY;return this.prevClientX=t,this.prevClientY=r,{x:n,y:o}}getTotalDelta(t){const r=t.clientX-this.startX,n=t.clientY-this.startY;return{x:r,y:n}}doOnMouseMove(t){const{x:r,y:n}=this.getPositionFromEvent(t),{x:o,y:i}=this.getDelta(r,n),{x:s,y:a}=this.getTotalDelta(t);this.onMove({clientX:r,clientY:n,dx:o,dy:i,totalDX:s,totalDY:a,e:t})}doOnMouseUp(t){t.preventDefault();const{x:r,y:n}=this.getTotalDelta(t);this.onEnd({totalDX:r,totalDY:n,e:t}),this.stop()}}function oZe(e){return{x:e.clientX,y:e.clientY}}lQe(),Ja.Safari;const iZe=(e,t)=>{switch(t.type){case $t.DragStart:return es.Dragging;case hn.ConnectStart:return es.Connecting;case or.SelectStart:return es.MultiSelect;case or.DragStart:return es.Panning;case or.DraggingNodeFromItemPanelStart:return es.AddingNode;case $t.DragEnd:case hn.ConnectEnd:case or.SelectEnd:case or.DragEnd:case or.DraggingNodeFromItemPanelEnd:return es.Default;default:return e}},sZe=(e,t)=>{const r=iZe(e.behavior,t);return r===e.behavior?e:Object.assign(Object.assign({},e),{behavior:r})};function dE(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{switch(t.type){case or.Paste:{const{position:r}=t;if(!lu(e.viewport))return e;const{rect:n}=e.viewport;let o=t.data.nodes;if(r&&n){const s=gde(r.x,r.y,e.viewport);let a,l;o=o.map((u,c)=>(c===0&&(a=s.x-u.x,l=s.y-u.y),Object.assign(Object.assign({},u),{x:a?u.x-tx+a:u.x,y:l?u.y-tx+l:u.y,state:Mo.Selected})))}let i=pu()(e.data.present);return o.forEach(s=>{i=i.insertNode(s)}),t.data.edges.forEach(s=>{i=i.insertEdge(s)}),Object.assign(Object.assign({},e),{data:vf(e.data,i)})}case or.Delete:return e.settings.features.has(at.Delete)?Object.assign(Object.assign({},e),{data:vf(e.data,e.data.present.deleteItems({node:NZ,edge:NZ}),pu())}):e;case or.Undo:return Object.assign(Object.assign({},e),{data:MQe(e.data)});case or.Redo:return Object.assign(Object.assign({},e),{data:LQe(e.data)});case or.KeyDown:{const r=t.rawEvent.key.toLowerCase();if(e.activeKeys.has(r))return e;const n=new Set(e.activeKeys);return n.add(r),Object.assign(Object.assign({},e),{activeKeys:n})}case or.KeyUp:{const r=t.rawEvent.key.toLowerCase();if(!e.activeKeys.has(r))return e;const n=new Set(e.activeKeys);return n.delete(r),Object.assign(Object.assign({},e),{activeKeys:n})}case or.SetData:return Object.assign(Object.assign({},e),{data:u6(t.data)});case or.UpdateData:return Object.assign(Object.assign({},e),{data:t.shouldRecord?vf(e.data,t.updater(e.data.present)):Object.assign(Object.assign({},e.data),{present:t.updater(e.data.present)})});case or.ResetUndoStack:return Object.assign(Object.assign({},e),{data:u6(e.data.present)});case or.UpdateSettings:{const r=dE(t,["type"]);return Object.assign(Object.assign({},e),{settings:Object.assign(Object.assign({},e.settings),r)})}default:return e}};function Ide(e){return t=>e.reduceRight((r,n)=>n(r),t)}const Jy=(e=void 0,t=void 0)=>({node:e,port:t}),qZ=(e,t,r)=>{if(t.ports){const i=(r?t.ports.findIndex(s=>s.id===r.id):-1)+1;if(i(r,n,o)=>{var i,s,a;let l=qZ(r,n,o);for(;!(((i=l.node)===null||i===void 0?void 0:i.id)===n.id&&((s=l.port)===null||s===void 0?void 0:s.id)===(o==null?void 0:o.id));){if(!l.node)l=Jy(r.getNavigationFirstNode());else if(l.port&&!((a=e.getPortConfig(l.port))===null||a===void 0)&&a.getIsConnectable(Object.assign(Object.assign({},t),{data:r,parentNode:l.node,model:l.port})))return l;l=qZ(r,l.node,l.port)}return Jy()};function c3(e,t,r){if(!e.connectState)return e;let n=e.data.present;return n=n.updatePort(t,r,Mn(Of(ls.ConnectingAsTarget))),e.connectState.targetNode&&e.connectState.targetPort&&(n=n.updatePort(e.connectState.targetNode,e.connectState.targetPort,Mn(lE(ls.ConnectingAsTarget)))),Object.assign(Object.assign({},e),{connectState:Object.assign(Object.assign({},e.connectState),{targetNode:t,targetPort:r}),data:Object.assign(Object.assign({},e.data),{present:n})})}function WZ(e){if(!e.connectState)return e;let t=e.data.present;const{targetPort:r,targetNode:n}=e.connectState;return n&&r&&(t=t.updatePort(n,r,Mn(lE(ls.ConnectingAsTarget)))),Object.assign(Object.assign({},e),{connectState:Object.assign(Object.assign({},e.connectState),{targetNode:void 0,targetPort:void 0}),data:Object.assign(Object.assign({},e.data),{present:t})})}const uZe=(e,t)=>{var r,n,o;if(!lu(e.viewport))return e;const{rect:i}=e.viewport;switch(t.type){case hn.ConnectStart:return Object.assign(Object.assign({},e),{connectState:Object.assign(Object.assign({},qQe),{sourceNode:t.nodeId,sourcePort:t.portId,movingPoint:t.clientPoint?{x:t.clientPoint.x-i.left,y:t.clientPoint.y-i.top}:void 0}),data:Object.assign(Object.assign({},e.data),{present:e.data.present.updatePort(t.nodeId,t.portId,Mn(Of(ls.Connecting)))})});case hn.ConnectMove:return e.connectState?Object.assign(Object.assign({},e),{connectState:Object.assign(Object.assign({},e.connectState),{movingPoint:{x:t.clientX-i.left,y:t.clientY-i.top}})}):e;case hn.ConnectEnd:if(e.connectState){const{edgeWillAdd:s,isCancel:a}=t,{sourceNode:l,sourcePort:u,targetNode:c,targetPort:f}=e.connectState;let d=e.data.present;if(d=d.updatePort(l,u,Mn(sa(ls.Default))),!a&&c&&f){let h={source:l,sourcePortId:u,target:c,targetPortId:f,id:QA(),status:Di.Default};return s&&(h=s(h,d)),d=d.insertEdge(h).updatePort(c,f,Mn(sa(ls.Default))),Object.assign(Object.assign({},e),{connectState:void 0,data:vf(e.data,d,pu())})}return Object.assign(Object.assign({},e),{connectState:void 0,data:Object.assign(Object.assign({},e.data),{present:d})})}return e;case hn.ConnectNavigate:if(e.connectState){const s=e.data.present,a=s.nodes.get(e.connectState.sourceNode),l=a==null?void 0:a.getPort(e.connectState.sourcePort),u=e.connectState.targetNode?s.nodes.get(e.connectState.targetNode):void 0,c=e.connectState.targetPort?u==null?void 0:u.getPort(e.connectState.targetPort):void 0;if(!a||!l)return e;const f=lZe(e.settings.graphConfig,{anotherNode:a,anotherPort:l})(s,u||a,c);return!f.node||!f.port||f.node.id===a.id&&f.port.id===l.id?e:c3(e,f.node.id,f.port.id)}return e;case an.PointerEnter:if(e.connectState){const{sourceNode:s,sourcePort:a}=e.connectState,l=e.data.present,u=l.nodes.get(t.node.id),c=u==null?void 0:u.getPort(t.port.id),f=l.nodes.get(s),d=f==null?void 0:f.getPort(a);if(u&&c&&f&&d&&vde(e.settings.graphConfig,{parentNode:u,model:c,data:l,anotherPort:d,anotherNode:f}))return c3(e,u.id,c.id)}return e;case $t.PointerEnter:case $t.PointerMove:if(e.connectState){const{clientX:s,clientY:a}=t.rawEvent,{sourceNode:l,sourcePort:u}=e.connectState,c=e.data.present,f=c.nodes.get(t.node.id),d=c.nodes.get(l),h=d==null?void 0:d.getPort(u);if(f&&d&&h){const g=pQe({parentNode:f,clientX:s,clientY:a,graphConfig:e.settings.graphConfig,data:e.data.present,viewport:e.viewport,anotherPort:h,anotherNode:d});return g?c3(e,f.id,g.id):e}}return e;case $t.PointerLeave:return((r=e.connectState)===null||r===void 0?void 0:r.targetNode)===t.node.id?WZ(e):e;case an.PointerLeave:return((n=e.connectState)===null||n===void 0?void 0:n.targetNode)===t.node.id&&((o=e.connectState)===null||o===void 0?void 0:o.targetPort)===t.port.id?WZ(e):e;default:return e}},cZe=(e,t)=>{let r=e.contextMenuPosition;switch(t.type){case or.ContextMenu:case $t.ContextMenu:case hn.ContextMenu:case an.ContextMenu:{const n=t.rawEvent;n.button===ex.Secondary&&(r={x:n.clientX,y:n.clientY})}break;case or.Click:case $t.Click:case hn.Click:case an.Click:r=void 0;break;case rx.Open:r={x:t.x,y:t.y};break;case rx.Close:r=void 0;break}return e.contextMenuPosition===r?e:Object.assign(Object.assign({},e),{contextMenuPosition:r})},fZe=(e,t)=>{switch(t.type){case hn.DoubleClick:return e.settings.features.has(at.EditEdge)?Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updateEdge(t.edge.id,Mn(sa(Di.Editing)))})}):e;case hn.MouseEnter:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updateEdge(t.edge.id,Mn(Of(Di.Activated)))})});case hn.MouseLeave:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updateEdge(t.edge.id,Mn(lE(Di.Activated)))})});case hn.Click:case hn.ContextMenu:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:pu()(e.data.present).updateEdge(t.edge.id,Mn(Of(Di.Selected)))})});case hn.Add:return Object.assign(Object.assign({},e),{data:vf(e.data,e.data.present.insertEdge(t.edge))});default:return e}},Cde=(e,t,r,n=2)=>{const o=Nde(e),i=pZe(o,e,t,r,n);return gZe(o,i,e.length)},GZ=(e,t,r,n)=>{let o=1/0,i=0;const s=Nde(t),a=n==="x"?s.width||0:s.height||0;return e.forEach(l=>{let u;if(n==="x"&&l.x1===l.x2)u=l.x1;else if(n==="y"&&l.y1===l.y2)u=l.y1;else return;const c=s[n]-u,f=s[n]+(a||0)/2-u,d=s[n]+(a||0)-u;Math.abs(c)0?-o:o),Math.abs(f)0?-o:o),Math.abs(d)0?-o:o)}),i},KZ=(e,t)=>{if(e.length)return Math.min(...e.map(r=>r[t]))},VZ=(e,t)=>{if(e.length)return Math.max(...e.map(r=>r[t]+(t==="y"?r.height||0:r.width||0)))},dZe=(e,t)=>Object.assign(Object.assign({},e),Df(e,t)),hZe=e=>{let t=1/0,r=1/0,n=-1/0,o=-1/0;return e.forEach(i=>{const s=i.x,a=i.y,l=i.x+(i.width||0),u=i.y+(i.height||0);sn&&(n=l),u>o&&(o=u)}),{x:t,y:r,width:n-t,height:o-r}},Nde=e=>{const{x:t,y:r,width:n,height:o}=hZe(e);return{id:QA(),x:t,y:r,width:n,height:o}},pZe=(e,t,r,n,o=2)=>{const i=[],s=[],{x:a,y:l,width:u=0,height:c=0}=e;let f=o,d=o;return r.forEach(h=>{if(t.find(E=>E.id===h.id))return;const g=dZe(h,n),{width:v=0,height:y=0}=g;[a,a+u/2,a+u].forEach((E,_)=>{i[_]||(i[_]={}),i[_].closestNodes||(i[_].closestNodes=[]),[g.x,g.x+v/2,g.x+v].forEach(S=>{var b;const k=Math.abs(E-S);k<=f&&((b=i[_].closestNodes)===null||b===void 0||b.push(g),i[_].alignCoordinateValue=S,f=k)})}),[l,l+c/2,l+c].forEach((E,_)=>{s[_]||(s[_]={}),s[_].closestNodes||(s[_].closestNodes=[]),[g.y,g.y+y/2,g.y+y].forEach(S=>{var b;const k=Math.abs(E-S);k<=d&&((b=s[_].closestNodes)===null||b===void 0||b.push(g),s[_].alignCoordinateValue=S,d=k)})})}),{closestX:i,closestY:s}},gZe=(e,t,r=1)=>{const n=[],o=[],i=t.closestX,s=t.closestY;return i.forEach((a,l)=>{var u;if(a.alignCoordinateValue===void 0||l===1&&(n.length||r>1))return;const c=[],f=a.alignCoordinateValue;(u=a.closestNodes)===null||u===void 0||u.forEach(g=>{(g.x===f||g.x+(g.width||0)/2===f||g.x+(g.width||0)===f)&&c.push(g)});const d=KZ([e,...c],"y"),h=VZ([e,...c],"y");d!==void 0&&h!==void 0&&n.push({x1:f,y1:d,x2:f,y2:h,visible:!0})}),s.forEach((a,l)=>{var u;if(a.alignCoordinateValue===void 0||l===1&&(o.length||r>1))return;const c=[],f=a.alignCoordinateValue;(u=a.closestNodes)===null||u===void 0||u.forEach(g=>{(g.y===f||g.y+(g.height||0)/2===f||g.y+(g.height||0)===f)&&c.push(g)});const d=KZ([e,...c],"x"),h=VZ([e,...c],"x");d!==void 0&&h!==void 0&&o.push({x1:d,y1:f,x2:h,y2:f,visible:!0})}),[...n,...o]};function Rde(...e){return e.reduceRight((t,r)=>n=>t(r(n)),gc)}const UZ=(e,t,r)=>rt?10:0;function h6(e,t){const r=[];return e.nodes.forEach(n=>{t1(n)&&r.push(Object.assign({id:n.id,x:n.x,y:n.y},Df(n,t)))}),r}function vZe(e,t){if(!lu(e.viewport))return e;const r=h=>Math.max(h,kde(s,e.settings)),n=t.rawEvent,{rect:o}=e.viewport,i=Object.assign({},e),s=e.data.present,a=UZ(o.left,o.right,n.clientX),l=UZ(o.top,o.bottom,n.clientY),u=a!==0||l!==0?.999:1,c=a!==0||a!==0?Rde(l6(-a,-l),a6({scale:u,anchor:Sde(o,n),direction:vl.XY,limitScale:r}))(e.viewport):e.viewport,f=fQe(t.dx+a*u,t.dy+l*u,c.transformMatrix),d=Object.assign(Object.assign({},e.dummyNodes),{dx:e.dummyNodes.dx+f.x,dy:e.dummyNodes.dy+f.y,isVisible:t.isVisible});if(t.isAutoAlignEnable){const h=_de(s.nodes,e.viewport);if(h.lengthObject.assign(Object.assign({},y),{x:y.x+d.dx,y:y.y+d.dy})),v=Cde(g,h,e.settings.graphConfig,e.viewport.transformMatrix[0]>.3?2:5);if(v.length){const y=GZ(v,g,e.settings.graphConfig,"x"),E=GZ(v,g,e.settings.graphConfig,"y");d.alignedDX=d.dx+y,d.alignedDY=d.dy+E}else d.alignedDX=void 0,d.alignedDY=void 0;i.alignmentLines=v}else d.alignedDX=void 0,d.alignedDY=void 0}return i.dummyNodes=d,i.viewport=c,i}function mZe(e,t){if(!e.settings.features.has(at.AutoAlign))return e;const r=e.data.present,n=_de(r.nodes,e.viewport),o=Cde([t.node],n,e.settings.graphConfig,e.viewport.transformMatrix[0]>.3?2:5);return Object.assign(Object.assign({},e),{alignmentLines:o})}function yZe(e,t){let r=e.data.present;const n=r.nodes.get(t.node.id);if(!n)return e;let o;return t.isMultiSelect?(r=r.selectNodes(i=>i.id===t.node.id||t1(i)),o=h6(r,e.settings.graphConfig)):t1(n)?o=h6(r,e.settings.graphConfig):o=[Object.assign({id:t.node.id,x:t.node.x,y:t.node.y},Df(t.node,e.settings.graphConfig))],Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:r}),dummyNodes:Object.assign(Object.assign({},$g()),{isVisible:!1,nodes:o})})}function bZe(e,t){let r=e.data.present;if(t.isDragCanceled)return Object.assign(Object.assign({},e),{alignmentLines:[],dummyNodes:$g()});const{dx:n,dy:o}=e.dummyNodes;return r=r.updateNodesPositionAndSize(e.dummyNodes.nodes.map(i=>Object.assign(Object.assign({},i),{x:i.x+n,y:i.y+o,width:void 0,height:void 0}))),Object.assign(Object.assign({},e),{alignmentLines:[],dummyNodes:$g(),data:vf(e.data,r,pu())})}function _Ze(e,t){const r=t.data.present;if(!lu(t.viewport)||!e.nodes.length)return t;if(e.nodes.length===1){const a=e.nodes[0],l=r.nodes.get(a);if(!l)return t;const{width:u,height:c}=Df(l,t.settings.graphConfig),f=e.type===$t.Centralize?l.x+u/2:l.x,d=e.type===$t.Centralize?l.y+c/2:l.y,{x:h,y:g}=Pg(f,d,t.viewport.transformMatrix),v=e.type===$t.Locate?e.position:void 0;return Object.assign(Object.assign({},t),{viewport:wde(h,g,t.viewport.rect,!0,v)(t.viewport)})}const{minNodeX:n,minNodeY:o,maxNodeX:i,maxNodeY:s}=M9(r,t.settings.graphConfig,new Set(e.nodes));return Object.assign(Object.assign({},t),{viewport:DQe(n,o,i,s,t.viewport)})}const EZe=(e,t)=>{const r=e.data.present;switch(t.type){case $t.ResizingStart:return Object.assign(Object.assign({},e),{dummyNodes:Object.assign(Object.assign({},$g()),{isVisible:!0,nodes:h6(r,e.settings.graphConfig)})});case $t.Resizing:return Object.assign(Object.assign({},e),{dummyNodes:Object.assign(Object.assign({},e.dummyNodes),{dx:t.dx,dy:t.dy,dWidth:t.dWidth,dHeight:t.dHeight})});case $t.ResizingEnd:{const{dx:n,dy:o,dWidth:i,dHeight:s}=e.dummyNodes;return Object.assign(Object.assign({},e),{dummyNodes:$g(),data:vf(e.data,r.updateNodesPositionAndSize(e.dummyNodes.nodes.map(a=>Object.assign(Object.assign({},a),{x:a.x+n,y:a.y+o,width:a.width+i,height:a.height+s}))),pu())})}case $t.DragStart:return yZe(e,t);case $t.Drag:return vZe(e,t);case $t.DragEnd:return bZe(e,t);case $t.PointerEnter:switch(e.behavior){case es.Default:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:r.updateNode(t.node.id,Mn(Of(Mo.Activated)))})});default:return e}case $t.PointerLeave:switch(e.behavior){case es.Default:case es.Connecting:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:r.updateNode(t.node.id,Mn(lE(Mo.Activated)))})});default:return e}case or.DraggingNodeFromItemPanel:return mZe(e,t);case or.DraggingNodeFromItemPanelEnd:return t.node?Object.assign(Object.assign({},e),{alignmentLines:[],data:vf(e.data,e.data.present.insertNode(Object.assign(Object.assign({},t.node),{status:Mo.Selected})),pu())}):Object.assign(Object.assign({},e),{alignmentLines:[]});case $t.Centralize:case $t.Locate:return _Ze(t,e);case $t.Add:return Object.assign(Object.assign({},e),{data:vf(e.data,r.insertNode(t.node))});case $t.DoubleClick:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updateNode(t.node.id,Mn(Of(Mo.Editing)))})});default:return e}},SZe=(e,t)=>{switch(t.type){case an.Focus:case an.PointerEnter:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updatePort(t.node.id,t.port.id,Mn(Of(ls.Activated)))})});case an.Blur:case an.PointerLeave:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updatePort(t.node.id,t.port.id,Mn(lE(ls.Activated)))})});case an.Click:case an.ContextMenu:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:pu()(e.data.present).updatePort(t.node.id,t.port.id,Mn(Of(ls.Selected)))})});default:return e}},YZ=(e,t,r,n)=>{if(!r.width||!r.height)return n;const o=Math.min(r.startX,r.startX+r.width),i=Math.max(r.startX,r.startX+r.width),s=Math.min(r.startY,r.startY+r.height),a=Math.max(r.startY,r.startY+r.height),l=r_(o,s,t),u=r_(i,a,t),c={minX:l.x,minY:l.y,maxX:u.x,maxY:u.y};return n.selectNodes(f=>{const{width:d,height:h}=Df(f,e),g={minX:f.x,minY:f.y,maxX:f.x+d,maxY:f.y+h};return SQe(c,g)})};function wZe(e,t){let r=pu()(e.data.present);if(t.node&&t.port)r=r.updatePort(t.node.id,t.port.id,Mn(Of(ls.Selected)));else if(t.node){const n=t.node.id;r=r.selectNodes(o=>o.id===n)}return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:r})})}const kZe=(e,t)=>{var r,n;const o=e.data.present,i=e.settings.features.has(at.LassoSelect);switch(t.type){case or.Click:case or.ResetSelection:case or.ContextMenu:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:pu()(o)})});case $t.Click:case $t.ContextMenu:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:gQe(t.rawEvent,t.node)(o)})});case or.SelectStart:{if(!lu(e.viewport))return e;const s=Sde(e.viewport.rect,t.rawEvent);return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:pu()(o)}),selectBoxPosition:{startX:s.x,startY:i?0:s.y,width:0,height:0}})}case or.SelectMove:return e.behavior!==es.MultiSelect?e:Object.assign(Object.assign({},e),{selectBoxPosition:Object.assign(Object.assign({},e.selectBoxPosition),{width:e.selectBoxPosition.width+t.dx,height:i?(n=(r=e.viewport.rect)===null||r===void 0?void 0:r.height)!==null&&n!==void 0?n:e.selectBoxPosition.height:e.selectBoxPosition.height+t.dy})});case or.SelectEnd:return Object.assign(Object.assign({},e),{selectBoxPosition:sde(),data:Object.assign(Object.assign({},e.data),{present:YZ(e.settings.graphConfig,e.viewport.transformMatrix,e.selectBoxPosition,o)})});case or.UpdateNodeSelectionBySelectBox:return e.behavior!==es.MultiSelect?e:Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:YZ(e.settings.graphConfig,e.viewport.transformMatrix,e.selectBoxPosition,o)})});case or.Navigate:return wZe(e,t);case $t.SelectAll:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:o.selectNodes(()=>!0)})});case $t.Select:{const s=new Set(t.nodes);return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:o.selectNodes(a=>s.has(a.id))})})}default:return e}};function XZ(e){return{x:e.width/2,y:e.height/2}}function AZe(e,t,r,n){if(!lu(e))return e;if(!n.ensureNodeVisible)return Object.assign(Object.assign({},e),{transformMatrix:j0});const{nodes:o,groups:i}=t;if(o.size===0)return Object.assign(Object.assign({},e),{transformMatrix:j0});const s=h=>bde(h,e),a=o.map(h=>yde(h,r));if(a.find(s))return Object.assign(Object.assign({},e),{transformMatrix:j0});const u=i.map(h=>GXe(h,o,r));if(u.find(s))return Object.assign(Object.assign({},e),{transformMatrix:j0});let f=a.first();const d=h=>{f.y>h.y&&(f=h)};return a.forEach(d),u.forEach(d),Object.assign(Object.assign({},e),{transformMatrix:[1,0,0,1,-f.x,-f.y]})}function xZe(e,t,r,n){if(!lu(e))return e;const{graphConfig:o,nodeMaxVisibleSize:i,nodeMinVisibleSize:s}=r,a=OQe(Object.assign(Object.assign({},n),{data:t,graphConfig:o,rect:e.rect,nodeMaxVisibleSize:i,nodeMinVisibleSize:s}));return Object.assign(Object.assign({},e),{transformMatrix:a})}const TZe=(e,t,r,n)=>{var o,i,s,a;const{graphConfig:l,canvasBoundaryPadding:u,features:c}=n,f=d=>Math.max(d,kde(r,n));switch(t.type){case or.ViewportResize:return Object.assign(Object.assign({},e),{rect:t.viewportRect});case or.Zoom:return lu(e)?a6({scale:t.scale,anchor:(o=t.anchor)!==null&&o!==void 0?o:XZ(e.rect),direction:t.direction,limitScale:f})(e):e;case f6.Scroll:case or.MouseWheelScroll:case or.Pan:case or.Drag:{if(!lu(e))return e;const{transformMatrix:d,rect:h}=e;let{dx:g,dy:v}=t;const y=c.has(at.LimitBoundary),E=(s=(i=r.groups)===null||i===void 0?void 0:i[0])===null||s===void 0?void 0:s.padding;if(y){const{minX:_,maxX:S,minY:b,maxY:k}=BQe({data:r,graphConfig:l,rect:h,transformMatrix:d,canvasBoundaryPadding:u,groupPadding:E});g=$Z(_-d[4],S-d[4],g),v=$Z(b-d[5],k-d[5],v)}return l6(g,v)(e)}case or.Pinch:{const{dx:d,dy:h,scale:g,anchor:v}=t;return Rde(l6(d,h),a6({scale:g,anchor:v,limitScale:f}))(e)}case d6.Pan:return NQe(t.dx,t.dy)(e);case or.ResetViewport:return AZe(e,r,l,t);case or.ZoomTo:return lu(e)?s6({scale:t.scale,anchor:(a=t.anchor)!==null&&a!==void 0?a:XZ(e.rect),direction:t.direction,limitScale:f})(e):e;case or.ZoomToFit:return xZe(e,r,n,t);case or.ScrollIntoView:if(e.rect){const{x:d,y:h}=Pg(t.x,t.y,e.transformMatrix);return wde(d,h,e.rect,!0)(e)}return e;default:return e}},IZe=(e,t)=>{const r=TZe(e.viewport,t,e.data.present,e.settings);return r===e.viewport?e:Object.assign(Object.assign({},e),{viewport:r})},QZ=Ide([sZe,IZe,EZe,SZe,fZe,aZe,uZe,kZe,cZe].map(e=>t=>(r,n)=>t(e(r,n),n)));function CZe(e=void 0,t=gc){return(e?Ide([e,QZ]):QZ)(t)}class NZe{constructor(t){this.target=t}off(t,r){switch(t){case"move":this.target.removeEventListener("mousemove",r);break;case"end":this.target.removeEventListener("mouseup",r);break}return this}on(t,r){switch(t){case"move":this.target.addEventListener("mousemove",r);break;case"end":this.target.addEventListener("mouseup",r);break}return this}}const RZe=(e,t)=>{const r=ZQe();return A.useCallback(n=>o=>{o.preventDefault(),o.stopPropagation(),t.trigger({type:$t.ResizingStart,rawEvent:o,node:e});const i=new nZe(new NZe(r.getGlobalEventTarget()),oZe);i.onMove=({totalDX:s,totalDY:a,e:l})=>{t.trigger(Object.assign({type:$t.Resizing,rawEvent:l,node:e,dx:0,dy:0,dWidth:0,dHeight:0},n(s,a)))},i.onEnd=({e:s})=>{t.trigger({type:$t.ResizingEnd,rawEvent:s,node:e})},t.trigger({type:$t.ResizingStart,rawEvent:o,node:e}),i.start(o.nativeEvent)},[t,r,e])},OZe=()=>({x1:0,y1:0,x2:0,y2:0,visible:!1}),DZe=e=>{var t;const{line:r,style:n}=e,o=Object.assign(Object.assign({strokeWidth:1},n),{stroke:r.visible?(t=n==null?void 0:n.stroke)!==null&&t!==void 0?t:"#ea4300":"none"});return N.jsx("line",{className:"auto-align-hint",x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2,style:o})},FZe=A.memo(({style:e})=>{const t=JQe();return N.jsx(N.Fragment,{children:t.map((r,n)=>r.visible?N.jsx(DZe,{line:r,style:e},n):null)})});FZe.displayName="AlignmentLines";const BZe=e=>{var t,r;const n=A.useContext(xde);return N.jsx(N.Fragment,{children:(r=(t=n.renderNodeFrame)===null||t===void 0?void 0:t.call(n,e))!==null&&r!==void 0?r:e.children})},MZe=e=>{var t,r;const n=A.useContext(xde);return N.jsx(N.Fragment,{children:(r=(t=n.renderNodeResizeHandler)===null||t===void 0?void 0:t.call(n,e))!==null&&r!==void 0?r:e.children})},LZe={NodeFrame:BZe,NodeResizeHandler:MZe},jZe=e=>{const{autoAttachLine:t,connectingLine:r,styles:n}=e,o=(n==null?void 0:n.stroke)||os.primaryColor,i=(n==null?void 0:n.fill)||"none",s=(n==null?void 0:n.strokeDasharray)||"4,4",a=r.visible?o:"none";return N.jsxs("g",{children:[N.jsx("defs",{children:N.jsx("marker",Object.assign({id:"markerArrow",markerWidth:"10",markerHeight:"10",refX:"6",refY:"5",orient:"auto",markerUnits:"strokeWidth"},{children:N.jsx("path",{d:"M0,0 L6,5 L0,10",style:{stroke:a,fill:"none"}})}))}),N.jsx("line",{x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2,style:{stroke:a,fill:i,strokeDasharray:s},markerEnd:"url(#markerArrow)"}),N.jsx("path",{d:ide(t.x2,t.x1,t.y2,t.y1),style:{stroke:t.visible?o:"none",fill:"none"}})]})},zZe=A.memo(e=>{const{styles:t,graphConfig:r,viewport:n,movingPoint:o}=e,{sourcePort:i,sourceNode:s,targetPort:a,targetNode:l}=eZe();if(!s||!i)return null;const u=s.getPortPosition(i.id,r);let c,f=!1;if(l&&a?(f=!0,c=l==null?void 0:l.getPortPosition(a.id,r)):c=u,!u||!c)return null;const d=Pg(u.x,u.y,n.transformMatrix),h=Pg(c.x,c.y,n.transformMatrix),g=o?{x1:d.x,y1:d.y,x2:o.x,y2:o.y,visible:!f}:OZe(),v={x1:d.x,y1:d.y,x2:h.x,y2:h.y,visible:f};return N.jsx(jZe,{connectingLine:g,autoAttachLine:v,styles:t})});zZe.displayName="Connecting";const f3=10,ZZ={position:"absolute",cursor:"initial"};PXe({verticalScrollWrapper:Object.assign(Object.assign({},ZZ),{height:"100%",width:f3,top:0,right:0}),horizontalScrollWrapper:Object.assign(Object.assign({},ZZ),{height:f3,width:"100%",bottom:0,left:0}),verticalScrollStyle:e=>({height:e.scrollbarLayout.verticalScrollHeight,width:"100%",backgroundColor:os.scrollbarColor,position:"absolute",top:0,right:0,transform:`translateY(${e.scrollbarLayout.verticalScrollTop}px)`}),horizontalScrollStyle:e=>({width:e.scrollbarLayout.horizontalScrollWidth-f3,height:"100%",backgroundColor:os.scrollbarColor,position:"absolute",left:0,bottom:0,transform:`translateX(${e.scrollbarLayout.horizontalScrollLeft}px)`})});function HZe(e,t,{minX:r,minY:n,maxX:o,maxY:i},s,a,l,u){return e.x===t.x?{x:e.x,y:e.y=n?{x:o,y:s}:{x:l,y:n}:e.yr?{x:a,y:i}:{x:r,y:u}:u>n?{x:r,y:u}:{x:l,y:n}}const Ode=A.memo(e=>{var t;const{edge:r,data:n,eventChannel:o,source:i,target:s,graphId:a}=e,l=gp(),u=Tde(),{viewport:c,renderedArea:f,visibleArea:d}=u,h=I=>C=>{C.persist(),o.trigger({type:I,edge:r,rawEvent:C})},g=L0(f,i),v=L0(f,s),y=g&&v;if(A.useLayoutEffect(()=>{y&&u.renderedEdges.add(r.id)},[u]),!y)return null;const E=l.getEdgeConfig(r);if(!E)return Xh.warn(`invalid edge ${JSON.stringify(r)}`),null;if(!E.render)return Xh.warn(`Missing "render" method in edge config ${JSON.stringify(r)}`),null;const _=L0(d,i),S=L0(d,s);let b=E.render({model:r,data:n,x1:i.x,y1:i.y,x2:s.x,y2:s.y,viewport:c});if(pp(Di.ConnectedToSelected)(r.status)&&(!_||!S)){const I=PZ(i.x,i.y,s.x,s.y),C=PZ(i.y,i.x,s.y,s.x),R=_?i:s,D=_?s:i,L=I(d.maxX),M=C(d.maxY),W=C(d.minY),z=I(d.minX),F=HZe(R,D,d,L,M,W,z);_&&E.renderWithTargetHint?b=E.renderWithTargetHint({model:r,data:n,x1:i.x,y1:i.y,x2:F.x,y2:F.y,viewport:c}):S&&E.renderWithSourceHint&&(b=E.renderWithSourceHint({model:r,data:n,x1:F.x,y1:F.y,x2:s.x,y2:s.y,viewport:c}))}const k=_Qe(a,r),T=`edge-container-${r.id}`,x=(t=r.automationId)!==null&&t!==void 0?t:T;return N.jsx("g",Object.assign({id:k,onClick:h(hn.Click),onDoubleClick:h(hn.DoubleClick),onMouseDown:h(hn.MouseDown),onMouseUp:h(hn.MouseUp),onMouseEnter:h(hn.MouseEnter),onMouseLeave:h(hn.MouseLeave),onContextMenu:h(hn.ContextMenu),onMouseMove:h(hn.MouseMove),onMouseOver:h(hn.MouseOver),onMouseOut:h(hn.MouseOut),onFocus:void 0,onBlur:void 0,className:T,"data-automation-id":x},{children:b}))});function Dde(e,t){return e.node===t.node}const Fde=A.memo(e=>{var t,r;const{node:n,data:o}=e,i=dE(e,["node","data"]),s=gp(),a=[],l=n.valueCount;for(let f=0;f{const{data:t,node:r}=e,n=dE(e,["data","node"]),o=gp();return N.jsx(N.Fragment,{children:r.values.map(i=>{var s,a;const l=(s=t.nodes.get(i.source))===null||s===void 0?void 0:s.getPortPosition(i.sourcePortId,o),u=(a=t.nodes.get(i.target))===null||a===void 0?void 0:a.getPortPosition(i.targetPortId,o);return l&&u?A.createElement(Ode,Object.assign({},n,{key:i.id,data:t,edge:i,source:l,target:u})):null})})},Dde);Bde.displayName="EdgeHashCollisionNodeRender";const $Ze=mi({svg:[{position:"absolute",overflow:"hidden",top:0,left:0,width:"100%",height:"100%"},{"&:focus":{outline:"none"}}],node:{cursor:"move"},container:{position:"relative",width:"100%",height:"100%",overflow:"hidden",touchAction:"none"},buttonA11Y:{opacity:0,width:0,height:0,overflow:"hidden"},addingNodeSvg:{zIndex:1e6,position:"fixed",left:0,top:0,width:"100%",height:"100%"},moduleItem:{userSelect:"none",cursor:"pointer"},minimap:{height:320,width:320,userSelect:"none",touchAction:"none"},minimapSvg:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}}),PZe=e=>{var t;const{node:r,eventChannel:n,getNodeAriaLabel:o,viewport:i,graphId:s}=e,a=gp(),l=uE(r,a),u=h=>g=>{g.persist();const v={type:h,node:r,rawEvent:g};n.trigger(v)},c=h=>{h.persist();const g=pde(h);n.trigger({type:$t.Click,rawEvent:h,isMultiSelect:g,node:r})},f=yQe(s,r),d=(t=r.automationId)!==null&&t!==void 0?t:vQe(r);return l!=null&&l.render?N.jsx("g",Object.assign({id:f,focusable:"true",tabIndex:0,className:$Ze.node,onPointerDown:u($t.PointerDown),onPointerEnter:u($t.PointerEnter),onPointerMove:u($t.PointerMove),onPointerLeave:u($t.PointerLeave),onPointerUp:u($t.PointerUp),onDoubleClick:u($t.DoubleClick),onMouseDown:u($t.MouseDown),onMouseUp:u($t.MouseUp),onMouseEnter:u($t.MouseEnter),onMouseLeave:u($t.MouseLeave),onContextMenu:u($t.ContextMenu),onMouseMove:u($t.MouseMove),onMouseOver:u($t.MouseOver),onMouseOut:u($t.MouseOut),onClick:c,onKeyDown:u($t.KeyDown),"aria-label":o(r),role:"group","aria-roledescription":"node","data-automation-id":d},{children:N.jsx("g",Object.assign({className:"node-box-container"},{children:l.render({model:r,viewport:i})}))})):null},h0=8,p0=8,dd=({x:e,y:t,cursor:r,onMouseDown:n})=>N.jsx(LZe.NodeResizeHandler,Object.assign({x:e,y:t,cursor:r,onMouseDown:n},{children:N.jsx("rect",{x:e,y:t,height:p0,width:h0,stroke:os.controlPointColor,fill:"transparent",cursor:r,onMouseDown:n})})),Ya=15,qZe=e=>{var t,r;const{node:n,getMouseDown:o}=e,i=gp(),s=uE(n,i),a=(t=s==null?void 0:s.getMinWidth(n))!==null&&t!==void 0?t:0,l=(r=s==null?void 0:s.getMinHeight(n))!==null&&r!==void 0?r:0,u=fE(s,n),c=cE(s,n),f=o((S,b)=>{const k=Math.min(S,c-a),T=Math.min(b,u-l);return{dx:+k,dy:+T,dWidth:-k,dHeight:-T}}),d=o((S,b)=>{const k=Math.min(b,u-l);return{dy:+k,dHeight:-k}}),h=o((S,b)=>{const k=Math.max(S,a-c),T=Math.min(b,u-l);return{dy:+T,dWidth:+k,dHeight:-T}}),g=o(S=>({dWidth:+Math.max(S,a-c)})),v=o((S,b)=>{const k=Math.max(S,a-c),T=Math.max(b,l-u);return{dWidth:+k,dHeight:+T}}),y=o((S,b)=>({dHeight:+Math.max(b,l-u)})),E=o((S,b)=>{const k=Math.min(S,c-a),T=Math.max(b,l-u);return{dx:+k,dWidth:-k,dHeight:+T}}),_=o(S=>{const b=Math.min(S,c-a);return{dx:b,dWidth:-b}});return N.jsxs(N.Fragment,{children:[N.jsx(dd,{cursor:"nw-resize",x:n.x-Ya,y:n.y-Ya-p0,onMouseDown:f},"nw-resize"),N.jsx(dd,{x:n.x+c/2-h0/2,y:n.y-Ya-p0,cursor:"n-resize",onMouseDown:d},"n-resize"),N.jsx(dd,{x:n.x+c+Ya-h0,y:n.y-Ya-p0,cursor:"ne-resize",onMouseDown:h},"ne-resize"),N.jsx(dd,{x:n.x+c+Ya-h0,y:n.y+u/2-p0/2,cursor:"e-resize",onMouseDown:g},"e-resize"),N.jsx(dd,{x:n.x+c+Ya-h0,y:n.y+u+Ya,cursor:"se-resize",onMouseDown:v},"se-resize"),N.jsx(dd,{x:n.x+c/2-h0/2,y:n.y+u+Ya,cursor:"s-resize",onMouseDown:y},"s-resize"),N.jsx(dd,{x:n.x-Ya,y:n.y+u+Ya,cursor:"sw-resize",onMouseDown:E},"sw-resize"),N.jsx(dd,{x:n.x-Ya,y:n.y+u/2-p0/2,cursor:"w-resize",onMouseDown:_},"w-resize")]})},WZe=e=>{const{data:t,node:r,getPortAriaLabel:n,eventChannel:o,viewport:i,graphId:s}=e,a=gp(),l=r.ports;if(!l)return null;const u=(c,f)=>d=>{d.persist(),o.trigger({type:c,node:r,port:f,rawEvent:d})};return N.jsx("g",{children:l.map(c=>{var f;const d=a.getPortConfig(c);if(!d||!d.render)return Xh.warn(`invalid port config ${r.id}:${r.name} - ${c.id}:${c.name}`),null;const h=r.getPortPosition(c.id,a);if(!h)return null;const g=bQe(s,r,c),v=(f=c.automationId)!==null&&f!==void 0?f:mQe(c,r);return N.jsx("g",Object.assign({id:g,tabIndex:0,focusable:"true",onPointerDown:u(an.PointerDown,c),onPointerUp:u(an.PointerUp,c),onDoubleClick:u(an.DoubleClick,c),onMouseDown:u(an.MouseDown,c),onMouseUp:u(an.MouseUp,c),onContextMenu:u(an.ContextMenu,c),onPointerEnter:u(an.PointerEnter,c),onPointerLeave:u(an.PointerLeave,c),onMouseMove:u(an.MouseMove,c),onMouseOver:u(an.MouseOver,c),onMouseOut:u(an.MouseOut,c),onFocus:u(an.Focus,c),onBlur:u(an.Blur,c),onKeyDown:u(an.KeyDown,c),onClick:u(an.Click,c),"aria-label":n(t,r,c),role:"group","aria-roledescription":"port","data-automation-id":v},{children:N.jsx(rj.Consumer,{children:({sourceNode:y,sourcePort:E})=>d==null?void 0:d.render(Object.assign({model:c,data:t,parentNode:r,anotherNode:y,anotherPort:E,viewport:i},h))})}),g)})})},GZe=e=>{var{node:t,isNodeResizable:r,renderNodeAnchors:n}=e,o=dE(e,["node","isNodeResizable","renderNodeAnchors"]);const i=Tde(),{renderedArea:s,viewport:a}=i,l=RZe(t,o.eventChannel),u=L0(s,t);if(A.useLayoutEffect(()=>{u&&i.renderedEdges.add(t.id)},[i]),!u)return null;let c;if(r&&Q7(t)){const f=N.jsx(qZe,{node:t,getMouseDown:l});c=n?n(t,l,f):f}return N.jsxs(N.Fragment,{children:[N.jsx(PZe,Object.assign({},o,{node:t,viewport:a})),N.jsx(WZe,Object.assign({},o,{node:t,viewport:a})),c]})},KZe=A.memo(GZe),Mde=A.memo(e=>{var{node:t}=e,r=dE(e,["node"]);const n=t.values.map(i=>{const s=i[1];return N.jsx(KZe,Object.assign({node:s},r),s.id)}),o=t.type===iu.Internal?t.children.map((i,s)=>{const a=se.node===t.node);Mde.displayName="NodeTreeNode";const VZe=document.createElement("div");document.body.appendChild(VZe);const UZe=e=>{const{node:t}=e,r=gp(),n=uE(t,r);if(n!=null&&n.renderStatic)return N.jsx("g",{children:n.renderStatic({model:t})});const o=fE(n,t),i=cE(n,t);return N.jsx("rect",{transform:`translate(${t.x}, ${t.y})`,height:o,width:i,fill:os.dummyNodeStroke})},YZe=A.memo(UZe,(e,t)=>{const r=e.node,n=t.node;return r.x===n.x&&r.y===n.y&&r.height===n.height&&r.width===n.width&&r.isInSearchResults===n.isInSearchResults&&r.isCurrentSearchResult===n.isCurrentSearchResult}),Lde=A.memo(({node:e})=>{const t=e.values.map(n=>N.jsx(YZe,{node:n[1]},n[1].id)),r=e.type===iu.Internal?e.children.map((n,o)=>{const i=o>>0;if(""+r!==t||r===4294967295)return NaN;t=r}return t<0?qg(e)+t:t}function jde(){return!0}function L9(e,t,r){return(e===0&&!Hde(e)||r!==void 0&&e<=-r)&&(t===void 0||r!==void 0&&t>=r)}function pE(e,t){return zde(e,t,0)}function j9(e,t){return zde(e,t,t)}function zde(e,t,r){return e===void 0?r:Hde(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function Hde(e){return e<0||e===0&&1/e===-1/0}var $de="@@__IMMUTABLE_ITERABLE__@@";function Ps(e){return!!(e&&e[$de])}var Pde="@@__IMMUTABLE_KEYED__@@";function Bn(e){return!!(e&&e[Pde])}var qde="@@__IMMUTABLE_INDEXED__@@";function js(e){return!!(e&&e[qde])}function z9(e){return Bn(e)||js(e)}var po=function(t){return Ps(t)?t:Ia(t)},Nl=function(e){function t(r){return Bn(r)?r:O1(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(po),vp=function(e){function t(r){return js(r)?r:Eu(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(po),Tv=function(e){function t(r){return Ps(r)&&!z9(r)?r:Rv(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(po);po.Keyed=Nl;po.Indexed=vp;po.Set=Tv;var Wde="@@__IMMUTABLE_SEQ__@@";function oj(e){return!!(e&&e[Wde])}var Gde="@@__IMMUTABLE_RECORD__@@";function Iv(e){return!!(e&&e[Gde])}function Cc(e){return Ps(e)||Iv(e)}var Cv="@@__IMMUTABLE_ORDERED__@@";function uu(e){return!!(e&&e[Cv])}var gE=0,gu=1,Sl=2,g6=typeof Symbol=="function"&&Symbol.iterator,Kde="@@iterator",H9=g6||Kde,zr=function(t){this.next=t};zr.prototype.toString=function(){return"[Iterator]"};zr.KEYS=gE;zr.VALUES=gu;zr.ENTRIES=Sl;zr.prototype.inspect=zr.prototype.toSource=function(){return this.toString()};zr.prototype[H9]=function(){return this};function Ln(e,t,r,n){var o=e===0?t:e===1?r:[t,r];return n?n.value=o:n={value:o,done:!1},n}function qs(){return{value:void 0,done:!0}}function Vde(e){return Array.isArray(e)?!0:!!$9(e)}function JZ(e){return e&&typeof e.next=="function"}function v6(e){var t=$9(e);return t&&t.call(e)}function $9(e){var t=e&&(g6&&e[g6]||e[Kde]);if(typeof t=="function")return t}function XZe(e){var t=$9(e);return t&&t===e.entries}function QZe(e){var t=$9(e);return t&&t===e.keys}var Nv=Object.prototype.hasOwnProperty;function Ude(e){return Array.isArray(e)||typeof e=="string"?!0:e&&typeof e=="object"&&Number.isInteger(e.length)&&e.length>=0&&(e.length===0?Object.keys(e).length===1:e.hasOwnProperty(e.length-1))}var Ia=function(e){function t(r){return r==null?sj():Cc(r)?r.toSeq():JZe(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(n,o){var i=this._cache;if(i){for(var s=i.length,a=0;a!==s;){var l=i[o?s-++a:a++];if(n(l[1],l[0],this)===!1)break}return a}return this.__iterateUncached(n,o)},t.prototype.__iterator=function(n,o){var i=this._cache;if(i){var s=i.length,a=0;return new zr(function(){if(a===s)return qs();var l=i[o?s-++a:a++];return Ln(n,l[0],l[1])})}return this.__iteratorUncached(n,o)},t}(po),O1=function(e){function t(r){return r==null?sj().toKeyedSeq():Ps(r)?Bn(r)?r.toSeq():r.fromEntrySeq():Iv(r)?r.toSeq():aj(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Ia),Eu=function(e){function t(r){return r==null?sj():Ps(r)?Bn(r)?r.entrySeq():r.toIndexedSeq():Iv(r)?r.toSeq().entrySeq():Yde(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(Ia),Rv=function(e){function t(r){return(Ps(r)&&!z9(r)?r:Eu(r)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(Ia);Ia.isSeq=oj;Ia.Keyed=O1;Ia.Set=Rv;Ia.Indexed=Eu;Ia.prototype[Wde]=!0;var Qh=function(e){function t(r){this._array=r,this.size=r.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,o){return this.has(n)?this._array[v1(this,n)]:o},t.prototype.__iterate=function(n,o){for(var i=this._array,s=i.length,a=0;a!==s;){var l=o?s-++a:a++;if(n(i[l],l,this)===!1)break}return a},t.prototype.__iterator=function(n,o){var i=this._array,s=i.length,a=0;return new zr(function(){if(a===s)return qs();var l=o?s-++a:a++;return Ln(n,l,i[l])})},t}(Eu),ij=function(e){function t(r){var n=Object.keys(r).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r):[]);this._object=r,this._keys=n,this.size=n.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,o){return o!==void 0&&!this.has(n)?o:this._object[n]},t.prototype.has=function(n){return Nv.call(this._object,n)},t.prototype.__iterate=function(n,o){for(var i=this._object,s=this._keys,a=s.length,l=0;l!==a;){var u=s[o?a-++l:l++];if(n(i[u],u,this)===!1)break}return l},t.prototype.__iterator=function(n,o){var i=this._object,s=this._keys,a=s.length,l=0;return new zr(function(){if(l===a)return qs();var u=s[o?a-++l:l++];return Ln(n,u,i[u])})},t}(O1);ij.prototype[Cv]=!0;var ZZe=function(e){function t(r){this._collection=r,this.size=r.length||r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(n,o){if(o)return this.cacheResult().__iterate(n,o);var i=this._collection,s=v6(i),a=0;if(JZ(s))for(var l;!(l=s.next()).done&&n(l.value,a++,this)!==!1;);return a},t.prototype.__iteratorUncached=function(n,o){if(o)return this.cacheResult().__iterator(n,o);var i=this._collection,s=v6(i);if(!JZ(s))return new zr(qs);var a=0;return new zr(function(){var l=s.next();return l.done?l:Ln(n,a++,l.value)})},t}(Eu),eJ;function sj(){return eJ||(eJ=new Qh([]))}function aj(e){var t=lj(e);if(t)return t.fromEntrySeq();if(typeof e=="object")return new ij(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function Yde(e){var t=lj(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function JZe(e){var t=lj(e);if(t)return XZe(e)?t.fromEntrySeq():QZe(e)?t.toSetSeq():t;if(typeof e=="object")return new ij(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}function lj(e){return Ude(e)?new Qh(e):Vde(e)?new ZZe(e):void 0}var Xde="@@__IMMUTABLE_MAP__@@";function uj(e){return!!(e&&e[Xde])}function Qde(e){return uj(e)&&uu(e)}function tJ(e){return!!(e&&typeof e.equals=="function"&&typeof e.hashCode=="function")}function va(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf=="function"&&typeof t.valueOf=="function"){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(tJ(e)&&tJ(t)&&e.equals(t))}var $m=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(t,r){t|=0,r|=0;var n=t&65535,o=r&65535;return n*o+((t>>>16)*o+n*(r>>>16)<<16>>>0)|0};function P9(e){return e>>>1&1073741824|e&3221225471}var eJe=Object.prototype.valueOf;function la(e){if(e==null)return rJ(e);if(typeof e.hashCode=="function")return P9(e.hashCode(e));var t=sJe(e);if(t==null)return rJ(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return tJe(t);case"string":return t.length>aJe?rJe(t):m6(t);case"object":case"function":return oJe(t);case"symbol":return nJe(t);default:if(typeof t.toString=="function")return m6(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function rJ(e){return e===null?1108378658:1108378659}function tJe(e){if(e!==e||e===1/0)return 0;var t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)e/=4294967295,t^=e;return P9(t)}function rJe(e){var t=p3[e];return t===void 0&&(t=m6(e),h3===lJe&&(h3=0,p3={}),h3++,p3[e]=t),t}function m6(e){for(var t=0,r=0;r0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function sJe(e){return e.valueOf!==eJe&&typeof e.valueOf=="function"?e.valueOf(e):e}function Zde(){var e=++d3;return d3&1073741824&&(d3=0),e}var y6=typeof WeakMap=="function",b6;y6&&(b6=new WeakMap);var iJ=Object.create(null),d3=0,vh="__immutablehash__";typeof Symbol=="function"&&(vh=Symbol(vh));var aJe=16,lJe=255,h3=0,p3={},q9=function(e){function t(r,n){this._iter=r,this._useKeys=n,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,o){return this._iter.get(n,o)},t.prototype.has=function(n){return this._iter.has(n)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var n=this,o=cj(this,!0);return this._useKeys||(o.valueSeq=function(){return n._iter.toSeq().reverse()}),o},t.prototype.map=function(n,o){var i=this,s=n1e(this,n,o);return this._useKeys||(s.valueSeq=function(){return i._iter.toSeq().map(n,o)}),s},t.prototype.__iterate=function(n,o){var i=this;return this._iter.__iterate(function(s,a){return n(s,a,i)},o)},t.prototype.__iterator=function(n,o){return this._iter.__iterator(n,o)},t}(O1);q9.prototype[Cv]=!0;var Jde=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(n){return this._iter.includes(n)},t.prototype.__iterate=function(n,o){var i=this,s=0;return o&&qg(this),this._iter.__iterate(function(a){return n(a,o?i.size-++s:s++,i)},o)},t.prototype.__iterator=function(n,o){var i=this,s=this._iter.__iterator(gu,o),a=0;return o&&qg(this),new zr(function(){var l=s.next();return l.done?l:Ln(n,o?i.size-++a:a++,l.value,l)})},t}(Eu),e1e=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(n){return this._iter.includes(n)},t.prototype.__iterate=function(n,o){var i=this;return this._iter.__iterate(function(s){return n(s,s,i)},o)},t.prototype.__iterator=function(n,o){var i=this._iter.__iterator(gu,o);return new zr(function(){var s=i.next();return s.done?s:Ln(n,s.value,s.value,s)})},t}(Rv),t1e=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(n,o){var i=this;return this._iter.__iterate(function(s){if(s){aJ(s);var a=Ps(s);return n(a?s.get(1):s[1],a?s.get(0):s[0],i)}},o)},t.prototype.__iterator=function(n,o){var i=this._iter.__iterator(gu,o);return new zr(function(){for(;;){var s=i.next();if(s.done)return s;var a=s.value;if(a){aJ(a);var l=Ps(a);return Ln(n,l?a.get(0):a[0],l?a.get(1):a[1],s)}}})},t}(O1);Jde.prototype.cacheResult=q9.prototype.cacheResult=e1e.prototype.cacheResult=t1e.prototype.cacheResult=hj;function r1e(e){var t=Nc(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var r=e.reverse.apply(this);return r.flip=function(){return e.reverse()},r},t.has=function(r){return e.includes(r)},t.includes=function(r){return e.has(r)},t.cacheResult=hj,t.__iterateUncached=function(r,n){var o=this;return e.__iterate(function(i,s){return r(s,i,o)!==!1},n)},t.__iteratorUncached=function(r,n){if(r===Sl){var o=e.__iterator(r,n);return new zr(function(){var i=o.next();if(!i.done){var s=i.value[0];i.value[0]=i.value[1],i.value[1]=s}return i})}return e.__iterator(r===gu?gE:gu,n)},t}function n1e(e,t,r){var n=Nc(e);return n.size=e.size,n.has=function(o){return e.has(o)},n.get=function(o,i){var s=e.get(o,wr);return s===wr?i:t.call(r,s,o,e)},n.__iterateUncached=function(o,i){var s=this;return e.__iterate(function(a,l,u){return o(t.call(r,a,l,u),l,s)!==!1},i)},n.__iteratorUncached=function(o,i){var s=e.__iterator(Sl,i);return new zr(function(){var a=s.next();if(a.done)return a;var l=a.value,u=l[0];return Ln(o,u,t.call(r,l[1],u,e),a)})},n}function cj(e,t){var r=this,n=Nc(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var o=r1e(e);return o.reverse=function(){return e.flip()},o}),n.get=function(o,i){return e.get(t?o:-1-o,i)},n.has=function(o){return e.has(t?o:-1-o)},n.includes=function(o){return e.includes(o)},n.cacheResult=hj,n.__iterate=function(o,i){var s=this,a=0;return i&&qg(e),e.__iterate(function(l,u){return o(l,t?u:i?s.size-++a:a++,s)},!i)},n.__iterator=function(o,i){var s=0;i&&qg(e);var a=e.__iterator(Sl,!i);return new zr(function(){var l=a.next();if(l.done)return l;var u=l.value;return Ln(o,t?u[0]:i?r.size-++s:s++,u[1],l)})},n}function o1e(e,t,r,n){var o=Nc(e);return n&&(o.has=function(i){var s=e.get(i,wr);return s!==wr&&!!t.call(r,s,i,e)},o.get=function(i,s){var a=e.get(i,wr);return a!==wr&&t.call(r,a,i,e)?a:s}),o.__iterateUncached=function(i,s){var a=this,l=0;return e.__iterate(function(u,c,f){if(t.call(r,u,c,f))return l++,i(u,n?c:l-1,a)},s),l},o.__iteratorUncached=function(i,s){var a=e.__iterator(Sl,s),l=0;return new zr(function(){for(;;){var u=a.next();if(u.done)return u;var c=u.value,f=c[0],d=c[1];if(t.call(r,d,f,e))return Ln(i,n?f:l++,d,u)}})},o}function uJe(e,t,r){var n=vc().asMutable();return e.__iterate(function(o,i){n.update(t.call(r,o,i,e),0,function(s){return s+1})}),n.asImmutable()}function cJe(e,t,r){var n=Bn(e),o=(uu(e)?ma():vc()).asMutable();e.__iterate(function(s,a){o.update(t.call(r,s,a,e),function(l){return l=l||[],l.push(n?[a,s]:s),l})});var i=dj(e);return o.map(function(s){return ln(e,i(s))}).asImmutable()}function fJe(e,t,r){var n=Bn(e),o=[[],[]];e.__iterate(function(s,a){o[t.call(r,s,a,e)?1:0].push(n?[a,s]:s)});var i=dj(e);return o.map(function(s){return ln(e,i(s))})}function fj(e,t,r,n){var o=e.size;if(L9(t,r,o))return e;var i=pE(t,o),s=j9(r,o);if(i!==i||s!==s)return fj(e.toSeq().cacheResult(),t,r,n);var a=s-i,l;a===a&&(l=a<0?0:a);var u=Nc(e);return u.size=l===0?l:e.size&&l||void 0,!n&&oj(e)&&l>=0&&(u.get=function(c,f){return c=v1(this,c),c>=0&&cl)return qs();var v=d.next();return n||c===gu||v.done?v:c===gE?Ln(c,g-1,void 0,v):Ln(c,g-1,v.value[1],v)})},u}function dJe(e,t,r){var n=Nc(e);return n.__iterateUncached=function(o,i){var s=this;if(i)return this.cacheResult().__iterate(o,i);var a=0;return e.__iterate(function(l,u,c){return t.call(r,l,u,c)&&++a&&o(l,u,s)}),a},n.__iteratorUncached=function(o,i){var s=this;if(i)return this.cacheResult().__iterator(o,i);var a=e.__iterator(Sl,i),l=!0;return new zr(function(){if(!l)return qs();var u=a.next();if(u.done)return u;var c=u.value,f=c[0],d=c[1];return t.call(r,d,f,s)?o===Sl?u:Ln(o,f,d,u):(l=!1,qs())})},n}function i1e(e,t,r,n){var o=Nc(e);return o.__iterateUncached=function(i,s){var a=this;if(s)return this.cacheResult().__iterate(i,s);var l=!0,u=0;return e.__iterate(function(c,f,d){if(!(l&&(l=t.call(r,c,f,d))))return u++,i(c,n?f:u-1,a)}),u},o.__iteratorUncached=function(i,s){var a=this;if(s)return this.cacheResult().__iterator(i,s);var l=e.__iterator(Sl,s),u=!0,c=0;return new zr(function(){var f,d,h;do{if(f=l.next(),f.done)return n||i===gu?f:i===gE?Ln(i,c++,void 0,f):Ln(i,c++,f.value[1],f);var g=f.value;d=g[0],h=g[1],u&&(u=t.call(r,h,d,a))}while(u);return i===Sl?f:Ln(i,d,h,f)})},o}function hJe(e,t){var r=Bn(e),n=[e].concat(t).map(function(s){return Ps(s)?r&&(s=Nl(s)):s=r?aj(s):Yde(Array.isArray(s)?s:[s]),s}).filter(function(s){return s.size!==0});if(n.length===0)return e;if(n.length===1){var o=n[0];if(o===e||r&&Bn(o)||js(e)&&js(o))return o}var i=new Qh(n);return r?i=i.toKeyedSeq():js(e)||(i=i.toSetSeq()),i=i.flatten(!0),i.size=n.reduce(function(s,a){if(s!==void 0){var l=a.size;if(l!==void 0)return s+l}},0),i}function s1e(e,t,r){var n=Nc(e);return n.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var s=0,a=!1;function l(u,c){u.__iterate(function(f,d){return(!t||c0}function Cw(e,t,r,n){var o=Nc(e),i=new Qh(r).map(function(s){return s.size});return o.size=n?i.max():i.min(),o.__iterate=function(s,a){for(var l=this.__iterator(gu,a),u,c=0;!(u=l.next()).done&&s(u.value,c++,this)!==!1;);return c},o.__iteratorUncached=function(s,a){var l=r.map(function(f){return f=po(f),v6(a?f.reverse():f)}),u=0,c=!1;return new zr(function(){var f;return c||(f=l.map(function(d){return d.next()}),c=n?f.every(function(d){return d.done}):f.some(function(d){return d.done})),c?qs():Ln(s,u++,t.apply(null,f.map(function(d){return d.value})))})},o}function ln(e,t){return e===t?e:oj(e)?t:e.constructor(t)}function aJ(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function dj(e){return Bn(e)?Nl:js(e)?vp:Tv}function Nc(e){return Object.create((Bn(e)?O1:js(e)?Eu:Rv).prototype)}function hj(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Ia.prototype.cacheResult.call(this)}function a1e(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:e>t?1:e0;)t[r]=arguments[r+1];if(typeof e!="function")throw new TypeError("Invalid merger function: "+e);return p1e(this,t,e)}function p1e(e,t,r){for(var n=[],o=0;o0;)t[r]=arguments[r+1];return bj(this,t,e)}function Ej(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return Ov(this,e,ou(),function(n){return _j(n,t)})}function Sj(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return Ov(this,e,ou(),function(n){return bj(n,t)})}function vE(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function mE(){return this.__ownerID?this:this.__ensureOwner(new nj)}function yE(){return this.__ensureOwner()}function wj(){return this.__altered}var vc=function(e){function t(r){return r==null?ou():uj(r)&&!uu(r)?r:ou().withMutations(function(n){var o=e(r);ua(o.size),o.forEach(function(i,s){return n.set(s,i)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return ou().withMutations(function(i){for(var s=0;s=n.length)throw new Error("Missing value for key: "+n[s]);i.set(n[s],n[s+1])}})},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(n,o){return this._root?this._root.get(0,void 0,n,o):o},t.prototype.set=function(n,o){return cJ(this,n,o)},t.prototype.remove=function(n){return cJ(this,n,wr)},t.prototype.deleteAll=function(n){var o=po(n);return o.size===0?this:this.withMutations(function(i){o.forEach(function(s){return i.remove(s)})})},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ou()},t.prototype.sort=function(n){return ma(Wg(this,n))},t.prototype.sortBy=function(n,o){return ma(Wg(this,o,n))},t.prototype.map=function(n,o){var i=this;return this.withMutations(function(s){s.forEach(function(a,l){s.set(l,n.call(o,a,l,i))})})},t.prototype.__iterator=function(n,o){return new AJe(this,n,o)},t.prototype.__iterate=function(n,o){var i=this,s=0;return this._root&&this._root.iterate(function(a){return s++,n(a[1],a[0],i)},o),s},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?kj(this.size,this._root,n,this.__hash):this.size===0?ou():(this.__ownerID=n,this.__altered=!1,this)},t}(Nl);vc.isMap=uj;var In=vc.prototype;In[Xde]=!0;In[hE]=In.remove;In.removeAll=In.deleteAll;In.setIn=gj;In.removeIn=In.deleteIn=vj;In.update=mj;In.updateIn=yj;In.merge=In.concat=d1e;In.mergeWith=h1e;In.mergeDeep=g1e;In.mergeDeepWith=v1e;In.mergeIn=Ej;In.mergeDeepIn=Sj;In.withMutations=vE;In.wasAltered=wj;In.asImmutable=yE;In["@@transducer/init"]=In.asMutable=mE;In["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])};In["@@transducer/result"]=function(e){return e.asImmutable()};var o_=function(t,r){this.ownerID=t,this.entries=r};o_.prototype.get=function(t,r,n,o){for(var i=this.entries,s=0,a=i.length;s=RJe)return xJe(t,u,o,i);var h=t&&t===this.ownerID,g=h?u:Ju(u);return d?l?c===f-1?g.pop():g[c]=g.pop():g[c]=[o,i]:g.push([o,i]),h?(this.entries=g,this):new o_(t,g)}};var Gg=function(t,r,n){this.ownerID=t,this.bitmap=r,this.nodes=n};Gg.prototype.get=function(t,r,n,o){r===void 0&&(r=la(n));var i=1<<((t===0?r:r>>>t)&is),s=this.bitmap;return s&i?this.nodes[m1e(s&i-1)].get(t+wn,r,n,o):o};Gg.prototype.update=function(t,r,n,o,i,s,a){n===void 0&&(n=la(o));var l=(r===0?n:n>>>r)&is,u=1<=OJe)return IJe(t,h,c,l,v);if(f&&!v&&h.length===2&&fJ(h[d^1]))return h[d^1];if(f&&v&&h.length===1&&fJ(v))return v;var y=t&&t===this.ownerID,E=f?v?c:c^u:c|u,_=f?v?y1e(h,d,v,y):NJe(h,d,y):CJe(h,d,v,y);return y?(this.bitmap=E,this.nodes=_,this):new Gg(t,E,_)};var i_=function(t,r,n){this.ownerID=t,this.count=r,this.nodes=n};i_.prototype.get=function(t,r,n,o){r===void 0&&(r=la(n));var i=(t===0?r:r>>>t)&is,s=this.nodes[i];return s?s.get(t+wn,r,n,o):o};i_.prototype.update=function(t,r,n,o,i,s,a){n===void 0&&(n=la(o));var l=(r===0?n:n>>>r)&is,u=i===wr,c=this.nodes,f=c[l];if(u&&!f)return this;var d=Aj(f,t,r+wn,n,o,i,s,a);if(d===f)return this;var h=this.count;if(!f)h++;else if(!d&&(h--,h>>r)&is,s=(r===0?n:n>>>r)&is,a,l=i===s?[xj(e,t,r+wn,n,o)]:(a=new Ff(t,n,o),i>>=1)s[a]=r&1?t[i++]:void 0;return s[n]=o,new i_(e,i+1,s)}function m1e(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function y1e(e,t,r,n){var o=n?e:Ju(e);return o[t]=r,o}function CJe(e,t,r,n){var o=e.length+1;if(n&&t+1===o)return e[t]=r,e;for(var i=new Array(o),s=0,a=0;a0&&i=0&&n>>r&is;if(o>=this.array.length)return new r1([],t);var i=o===0,s;if(r>0){var a=this.array[o];if(s=a&&a.removeBefore(t,r-wn,n),s===a&&i)return this}if(i&&!s)return this;var l=Vg(this,t);if(!i)for(var u=0;u>>r&is;if(o>=this.array.length)return this;var i;if(r>0){var s=this.array[o];if(i=s&&s.removeAfter(t,r-wn,n),i===s&&o===this.array.length-1)return this}var a=Vg(this,t);return a.array.splice(o+1),i&&(a.array[o]=i),a};var eb={};function dJ(e,t){var r=e._origin,n=e._capacity,o=a_(n),i=e._tail;return s(e._root,e._level,0);function s(u,c,f){return c===0?a(u,f):l(u,c,f)}function a(u,c){var f=c===o?i&&i.array:u&&u.array,d=c>r?0:r-c,h=n-c;return h>ul&&(h=ul),function(){if(d===h)return eb;var g=t?--h:d++;return f&&f[g]}}function l(u,c,f){var d,h=u&&u.array,g=f>r?0:r-f>>c,v=(n-f>>c)+1;return v>ul&&(v=ul),function(){for(;;){if(d){var y=d();if(y!==eb)return y;d=null}if(g===v)return eb;var E=t?--v:g++;d=s(h&&h[E],c-wn,f+(E<=e.size||t<0)return e.withMutations(function(s){t<0?xd(s,t).set(0,r):xd(s,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,o=e._root,i=p6();return t>=a_(e._capacity)?n=_6(n,e.__ownerID,0,t,r,i):o=_6(o,e.__ownerID,e._level,t,r,i),i.value?e.__ownerID?(e._root=o,e._tail=n,e.__hash=void 0,e.__altered=!0,e):s_(e._origin,e._capacity,e._level,o,n):e}function _6(e,t,r,n,o,i){var s=n>>>r&is,a=e&&s0){var u=e&&e.array[s],c=_6(u,t,r-wn,n,o,i);return c===u?e:(l=Vg(e,t),l.array[s]=c,l)}return a&&e.array[s]===o?e:(i&&cl(i),l=Vg(e,t),o===void 0&&s===l.array.length-1?l.array.pop():l.array[s]=o,l)}function Vg(e,t){return t&&e&&t===e.ownerID?e:new r1(e?e.array.slice():[],t)}function E1e(e,t){if(t>=a_(e._capacity))return e._tail;if(t<1<0;)r=r.array[t>>>n&is],n-=wn;return r}}function xd(e,t,r){t!==void 0&&(t|=0),r!==void 0&&(r|=0);var n=e.__ownerID||new nj,o=e._origin,i=e._capacity,s=o+t,a=r===void 0?i:r<0?i+r:o+r;if(s===o&&a===i)return e;if(s>=a)return e.clear();for(var l=e._level,u=e._root,c=0;s+c<0;)u=new r1(u&&u.array.length?[void 0,u]:[],n),l+=wn,c+=1<=1<f?new r1([],n):h;if(h&&d>f&&swn;y-=wn){var E=f>>>y&is;v=v.array[E]=Vg(v.array[E],n)}v.array[f>>>wn&is]=h}if(a=d)s-=d,a-=d,l=wn,u=null,g=g&&g.removeBefore(n,0,s);else if(s>o||d>>l&is;if(_!==d>>>l&is)break;_&&(c+=(1<o&&(u=u.removeBefore(n,l,s-c)),u&&d>>wn<=ul&&o.size>=n.size*2?(l=o.filter(function(u,c){return u!==void 0&&i!==c}),a=l.toKeyedSeq().map(function(u){return u[0]}).flip().toMap(),e.__ownerID&&(a.__ownerID=l.__ownerID=e.__ownerID)):(a=n.remove(t),l=i===o.size-1?o.pop():o.set(i,void 0))}else if(s){if(r===o.get(i)[1])return e;a=n,l=o.set(i,[t,r])}else a=n.set(t,o.size),l=o.set(o.size,[t,r]);return e.__ownerID?(e.size=a.size,e._map=a,e._list=l,e.__hash=void 0,e.__altered=!0,e):Tj(a,l)}var S1e="@@__IMMUTABLE_STACK__@@";function E6(e){return!!(e&&e[S1e])}var Ij=function(e){function t(r){return r==null?Nw():E6(r)?r:Nw().pushAll(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(n,o){var i=this._head;for(n=v1(this,n);i&&n--;)i=i.next;return i?i.value:o},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var n=arguments;if(arguments.length===0)return this;for(var o=this.size+arguments.length,i=this._head,s=arguments.length-1;s>=0;s--)i={value:n[s],next:i};return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):_y(o,i)},t.prototype.pushAll=function(n){if(n=e(n),n.size===0)return this;if(this.size===0&&E6(n))return n;ua(n.size);var o=this.size,i=this._head;return n.__iterate(function(s){o++,i={value:s,next:i}},!0),this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):_y(o,i)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Nw()},t.prototype.slice=function(n,o){if(L9(n,o,this.size))return this;var i=pE(n,this.size),s=j9(o,this.size);if(s!==this.size)return e.prototype.slice.call(this,n,o);for(var a=this.size-i,l=this._head;i--;)l=l.next;return this.__ownerID?(this.size=a,this._head=l,this.__hash=void 0,this.__altered=!0,this):_y(a,l)},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?_y(this.size,this._head,n,this.__hash):this.size===0?Nw():(this.__ownerID=n,this.__altered=!1,this)},t.prototype.__iterate=function(n,o){var i=this;if(o)return new Qh(this.toArray()).__iterate(function(l,u){return n(l,u,i)},o);for(var s=0,a=this._head;a&&n(a.value,s++,this)!==!1;)a=a.next;return s},t.prototype.__iterator=function(n,o){if(o)return new Qh(this.toArray()).__iterator(n,o);var i=0,s=this._head;return new zr(function(){if(s){var a=s.value;return s=s.next,Ln(n,i++,a)}return qs()})},t}(vp);Ij.isStack=E6;var ds=Ij.prototype;ds[S1e]=!0;ds.shift=ds.pop;ds.unshift=ds.push;ds.unshiftAll=ds.pushAll;ds.withMutations=vE;ds.wasAltered=wj;ds.asImmutable=yE;ds["@@transducer/init"]=ds.asMutable=mE;ds["@@transducer/step"]=function(e,t){return e.unshift(t)};ds["@@transducer/result"]=function(e){return e.asImmutable()};function _y(e,t,r,n){var o=Object.create(ds);return o.size=e,o._head=t,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}var vJ;function Nw(){return vJ||(vJ=_y(0))}var w1e="@@__IMMUTABLE_SET__@@";function Cj(e){return!!(e&&e[w1e])}function k1e(e){return Cj(e)&&uu(e)}function A1e(e,t){if(e===t)return!0;if(!Ps(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||Bn(e)!==Bn(t)||js(e)!==js(t)||uu(e)!==uu(t))return!1;if(e.size===0&&t.size===0)return!0;var r=!z9(e);if(uu(e)){var n=e.entries();return t.every(function(l,u){var c=n.next().value;return c&&va(c[1],l)&&(r||va(c[0],u))})&&n.next().done}var o=!1;if(e.size===void 0)if(t.size===void 0)typeof e.cacheResult=="function"&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var s=!0,a=t.__iterate(function(l,u){if(r?!e.has(l):o?!va(l,e.get(u,wr)):!va(e.get(u,wr),l))return s=!1,!1});return s&&e.size===a}function mp(e,t){var r=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}function ox(e){if(!e||typeof e!="object")return e;if(!Ps(e)){if(!m1(e))return e;e=Ia(e)}if(Bn(e)){var t={};return e.__iterate(function(n,o){t[o]=ox(n)}),t}var r=[];return e.__iterate(function(n){r.push(ox(n))}),r}var bE=function(e){function t(r){return r==null?Ey():Cj(r)&&!uu(r)?r:Ey().withMutations(function(n){var o=e(r);ua(o.size),o.forEach(function(i){return n.add(i)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(n){return this(Nl(n).keySeq())},t.intersect=function(n){return n=po(n).toArray(),n.length?gi.intersect.apply(t(n.pop()),n):Ey()},t.union=function(n){return n=po(n).toArray(),n.length?gi.union.apply(t(n.pop()),n):Ey()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(n){return this._map.has(n)},t.prototype.add=function(n){return Rw(this,this._map.set(n,n))},t.prototype.remove=function(n){return Rw(this,this._map.remove(n))},t.prototype.clear=function(){return Rw(this,this._map.clear())},t.prototype.map=function(n,o){var i=this,s=!1,a=Rw(this,this._map.mapEntries(function(l){var u=l[1],c=n.call(o,u,u,i);return c!==u&&(s=!0),[c,c]},o));return s?a:this},t.prototype.union=function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return n=n.filter(function(i){return i.size!==0}),n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(i){for(var s=0;s=0&&o=0&&ithis.size?r:this.find(function(n,o){return o===t},void 0,r)},has:function(t){return t=v1(this,t),t>=0&&(this.size!==void 0?this.size===1/0||tt?-1:0}function HJe(e){if(e.size===1/0)return 0;var t=uu(e),r=Bn(e),n=t?1:0,o=e.__iterate(r?t?function(i,s){n=31*n+SJ(la(i),la(s))|0}:function(i,s){n=n+SJ(la(i),la(s))|0}:t?function(i){n=31*n+la(i)|0}:function(i){n=n+la(i)|0});return $Je(o,n)}function $Je(e,t){return t=$m(t,3432918353),t=$m(t<<15|t>>>-15,461845907),t=$m(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=$m(t^t>>>16,2246822507),t=$m(t^t>>>13,3266489909),t=P9(t^t>>>16),t}function SJ(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var l_=function(e){function t(r){return r==null?S6():k1e(r)?r:S6().withMutations(function(n){var o=Tv(r);ua(o.size),o.forEach(function(i){return n.add(i)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(n){return this(Nl(n).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(bE);l_.isOrderedSet=k1e;var yp=l_.prototype;yp[Cv]=!0;yp.zip=Dv.zip;yp.zipWith=Dv.zipWith;yp.zipAll=Dv.zipAll;yp.__empty=S6;yp.__make=N1e;function N1e(e,t){var r=Object.create(yp);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var wJ;function S6(){return wJ||(wJ=N1e(by()))}function PJe(e){if(Iv(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Cc(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(e===null||typeof e!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var oi=function(t,r){var n;PJe(t);var o=function(a){var l=this;if(a instanceof o)return a;if(!(this instanceof o))return new o(a);if(!n){n=!0;var u=Object.keys(t),c=i._indices={};i._name=r,i._keys=u,i._defaultValues=t;for(var f=0;f-1)return e6(e,t.split(" "));var o=e.options,i=o.parent;if(t[0]==="$"){var s=i.getRule(t.substr(1));return!s||s===e?!1:(i.classes[e.key]+=" "+i.classes[s.key],!0)}return i.classes[e.key]+=" "+t,!0}function BYe(){function e(t,r){return"composes"in t&&(e6(r,t.composes),delete t.composes),t}return{onProcessStyle:e}}var MYe=/[A-Z]/g,LYe=/^ms-/,r3={};function jYe(e){return"-"+e.toLowerCase()}function Yfe(e){if(r3.hasOwnProperty(e))return r3[e];var t=e.replace(MYe,jYe);return r3[e]=LYe.test(t)?"-"+t:t}function ex(e){var t={};for(var r in e){var n=r.indexOf("--")===0?r:Yfe(r);t[n]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(ex):t.fallbacks=ex(e.fallbacks)),t}function zYe(){function e(r){if(Array.isArray(r)){for(var n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r-1){var i=tde[t];if(!Array.isArray(i))return er.js+g1(i)in r?er.css+i:!1;if(!o)return!1;for(var s=0;sn?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var o={},i=Object.keys(r).sort(e),s=0;sNXe)&&(o=t.createStyleSheet().attach()),o};function s(){var a=arguments,l=JSON.stringify(a),u=r.get(l);if(u)return u.className;var c=[];for(var f in a){var d=a[f];if(!Array.isArray(d)){c.push(d);continue}for(var h=0;ht=>!!UXe(e)(t),Of=e=>t=>{const r=t||0;return Array.isArray(e)?e.reduce((n,o)=>n|o,r):r|e},UXe=e=>t=>(t||0)&e,lE=e=>t=>{const r=t||0;return Array.isArray(e)?e.reduce((n,o)=>n&~o,r):r&~e},sa=e=>()=>e,X7=0,M9=1,Q7=2;var Oi;(function(e){e[e.Default=X7]="Default",e[e.Selected=M9]="Selected",e[e.Activated=Q7]="Activated",e[e.ConnectedToSelected=4]="ConnectedToSelected",e[e.UnconnectedToSelected=8]="UnconnectedToSelected",e[e.Editing=16]="Editing"})(Oi||(Oi={}));var Mo;(function(e){e[e.Default=X7]="Default",e[e.Selected=M9]="Selected",e[e.Activated=Q7]="Activated",e[e.Editing=4]="Editing",e[e.ConnectedToSelected=8]="ConnectedToSelected",e[e.UnconnectedToSelected=16]="UnconnectedToSelected"})(Mo||(Mo={}));var ls;(function(e){e[e.Default=X7]="Default",e[e.Selected=M9]="Selected",e[e.Activated=Q7]="Activated",e[e.Connecting=4]="Connecting",e[e.ConnectingAsTarget=8]="ConnectingAsTarget"})(ls||(ls={}));const Mn=e=>t=>{var r;const n=e((r=t.status)!==null&&r!==void 0?r:0);return n===t.status?t:Object.assign(Object.assign({},t),{status:n})};function Z7(e){return gp(Mo.Editing)(e.status)}function t1(e){return gp(M9)(e.status)}function RZ(e){return!t1(e)}const YXe=e=>t=>(t||0)&Mo.Activated|e;class Qh{static log(t){}static warn(t){}static error(...t){console.error(...t)}static never(t,r){throw new Error(r??`${t} is unexpected`)}}const uE=(e,t)=>{const r=t.getNodeConfig(e);if(!r){Qh.warn(`invalid node ${JSON.stringify(e)}`);return}return r};function cE(e,t){var r;const n=(r=e==null?void 0:e.getMinWidth(t))!==null&&r!==void 0?r:0;return t.width&&t.width>=n?t.width:n}function fE(e,t){var r;const n=(r=e==null?void 0:e.getMinHeight(t))!==null&&r!==void 0?r:0;return t.height&&t.height>=n?t.height:n}function Df(e,t){const r=uE(e,t),n=cE(r,e);return{height:fE(r,e),width:n}}function XXe(e,t,r){var n,o,i,s,a,l,u,c;const f=new Set(e.nodeIds),d=Array.from(t.values()).filter(k=>f.has(k.id)),h=Math.min(...d.map(k=>k.x)),g=Math.max(...d.map(k=>k.x+Df(k,r).width)),v=Math.min(...d.map(k=>k.y)),y=Math.max(...d.map(k=>k.y+Df(k,r).height)),E=h-((o=(n=e.padding)===null||n===void 0?void 0:n.left)!==null&&o!==void 0?o:0),_=v-((s=(i=e.padding)===null||i===void 0?void 0:i.top)!==null&&s!==void 0?s:0),S=y-_+((l=(a=e.padding)===null||a===void 0?void 0:a.bottom)!==null&&l!==void 0?l:0),b=g-E+((c=(u=e.padding)===null||u===void 0?void 0:u.left)!==null&&c!==void 0?c:0);return{x:E,y:_,width:b,height:S}}var tx;(function(e){e[e.Primary=0]="Primary",e[e.Auxiliary=1]="Auxiliary",e[e.Secondary=2]="Secondary",e[e.Fourth=4]="Fourth",e[e.Fifth=5]="Fifth"})(tx||(tx={}));var OZ;(function(e){e[e.None=0]="None",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Middle=4]="Middle"})(OZ||(OZ={}));const rx=50,DZ=5,FZ=500,os={controlPointColor:"#333333",primaryColor:"#0078D4",defaultColor:"#CCCCCC",borderColor:"#B3B0AD",defaultBorderColor:"#FFFFFF",unConnectableBgColor:"#E1DFDD",defaultBackgroundColor:"#FFFFFF",portStroke:"#ccc",portFill:"#fff",connectedPortColor:"gray",nodeActivateFill:"#ffffff",nodeActivateStroke:"#0078D4",nodeFill:"#ffffff",nodeStroke:"#cccccc",contextMenuBackground:"#FFFFFF",contextMenuBorder:"#E1DFDD",contextMenuHoverBackground:"rgba(0, 120, 212, 0.05)",fontColor:"#000000",canvasBackground:"#EDEDED",minimapBackground:"#EDEDED",edgeColor:"#ccc",edgeColorSelected:"#015cda",minimapShadow:"#000000",outlineStyle:"none",focusOutlineColor:"#000000",dummyNodeStroke:"#015cda",inputFocusBorderAlt:"#0078d4",buttonBorder:"#797775",scrollbarColor:"#c8c8c8"},QXe=e=>{const{style:t,node:r,width:n,height:o,textY:i}=e,s=r.data&&r.data.comment?r.data.comment:"",a=Z7(r);return N.jsxs("g",{children:[N.jsx("rect",{width:n,height:o,x:r.x,y:r.y,style:t,rx:t.borderRadius}),N.jsx("text",Object.assign({x:r.x,y:i,fontSize:12},{children:r.name})),r.data&&r.data.comment&&!a&&N.jsx("text",Object.assign({x:r.x,y:i+20,fontSize:12,className:`comment-${r.id}`},{children:r.data.comment})),a&&N.jsx("foreignObject",Object.assign({x:r.x,y:i,height:o/2.5,width:n-5},{children:N.jsx("input",{value:s,placeholder:"Input your comment here"})}))]},r.id)},o6={getMinHeight(){return 150},getMinWidth(){return 150},render(e){const t=e.model,r=cE(o6,t),n=fE(o6,t),o=gp(Mo.Selected|Mo.Activated)(t.status)?{fill:os.nodeActivateFill,stroke:os.nodeActivateStroke}:{fill:os.nodeFill,fillOpacity:.1,stroke:os.nodeStroke,borderRadius:"5"},i=t.y+n/3;return N.jsx(QXe,{style:o,node:t,width:r,height:n,textY:i})}},sde=(e,t,r,n)=>`M${e},${r}C${e},${r-BZ(r,n)},${t},${n+5+BZ(r,n)},${t},${n+5}`,BZ=(e,t)=>Math.min(5*15,Math.max(5*3,Math.abs((e-(t+5))/2))),ZXe={render(e){const t=e.model,r={cursor:"crosshair",stroke:gp(Oi.Selected)(t.status)?os.edgeColorSelected:os.edgeColor,strokeWidth:"2"};return N.jsx("path",{d:sde(e.x2,e.x1,e.y2,e.y1),fill:"none",style:r,id:`edge${t.id}`},t.id)}};class JXe{getStyle(t,r,n,o,i){const s=os.portStroke;let a=os.portFill;return(o||i)&&(a=os.connectedPortColor),gp(ls.Activated)(t.status)&&(a=os.primaryColor),{stroke:s,fill:a}}getIsConnectable(){return!0}render(t){const{model:r,data:n,parentNode:o}=t,i=n.isPortConnectedAsSource(o.id,r.id),s=n.isPortConnectedAsTarget(o.id,r.id),a=this.getStyle(r,o,n,i,s),{x:l,y:u}=t,c=`${l-5} ${u}, ${l+7} ${u}, ${l+1} ${u+8}`;return s?N.jsx("polygon",{points:c,style:a}):N.jsx("circle",{r:5,cx:l,cy:u,style:a},`${t.parentNode.id}-${t.model.id}`)}}const eQe=new JXe;class tQe{constructor(t){this.storage=t}write(t){this.storage.setItem("graph-clipboard",JSON.stringify({nodes:t.nodes.map(r=>Object.assign(Object.assign({},r),{data:{}})),edges:t.edges.map(r=>Object.assign(Object.assign({},r),{data:{}}))}))}read(){const t=this.storage.getItem("graph-clipboard");if(!t)return null;try{const r=JSON.parse(t),n=new Map;return{nodes:r.nodes.map(o=>{const i=ZA();return n.set(o.id,i),Object.assign(Object.assign({},o),{x:o.x+rx,y:o.y+rx,id:i})}),edges:r.edges.map(o=>Object.assign(Object.assign({},o),{id:ZA(),source:n.get(o.source)||"",target:n.get(o.target)||""}))}}catch{return null}}}class rQe{get length(){return this.items.size}constructor(){this.key=()=>"DefaultLocalStorage",this.items=new Map}clear(){this.items=new Map}setItem(t,r){this.items.set(t,r)}getItem(t){return this.items.has(t)?this.items.get(t):null}removeItem(t){this.items.delete(t)}}class Hg{constructor(){const t=new rQe,r=new tQe(t);this.draft={getNodeConfig:()=>o6,getEdgeConfig:()=>ZXe,getPortConfig:()=>eQe,getGroupConfig:()=>{},getClipboard:()=>r}}static default(){return new Hg}static from(t){return new Hg().registerNode(t.getNodeConfig.bind(t)).registerEdge(t.getEdgeConfig.bind(t)).registerPort(t.getPortConfig.bind(t)).registerGroup(t.getGroupConfig.bind(t)).registerClipboard(t.getClipboard.bind(t))}registerNode(t){return this.draft.getNodeConfig=t,this}registerEdge(t){return this.draft.getEdgeConfig=t,this}registerPort(t){return this.draft.getPortConfig=t,this}registerGroup(t){return this.draft.getGroupConfig=t,this}registerClipboard(t){return this.draft.getClipboard=t,this}build(){return this.draft}}const nQe=A.createContext(Hg.default().build());var MZ;(function(e){e.Node="node",e.Edge="edge",e.Port="port",e.Canvas="canvas",e.Multi="multi"})(MZ||(MZ={}));const ade=()=>({startX:0,startY:0,height:0,width:0});var at;(function(e){e.NodeDraggable="nodeDraggable",e.NodeResizable="nodeResizable",e.ClickNodeToSelect="clickNodeToSelect",e.PanCanvas="panCanvas",e.MultipleSelect="multipleSelect",e.LassoSelect="lassoSelect",e.Delete="delete",e.AddNewNodes="addNewNodes",e.AddNewEdges="addNewEdges",e.AddNewPorts="addNewPorts",e.AutoFit="autoFit",e.CanvasHorizontalScrollable="canvasHorizontalScrollable",e.CanvasVerticalScrollable="canvasVerticalScrollable",e.NodeHoverView="nodeHoverView",e.PortHoverView="portHoverView",e.AddEdgesByKeyboard="addEdgesByKeyboard",e.A11yFeatures="a11YFeatures",e.EditNode="editNode",e.AutoAlign="autoAlign",e.UndoStack="undoStack",e.CtrlKeyZoom="ctrlKeyZoom",e.LimitBoundary="limitBoundary",e.EditEdge="editEdge",e.InvisibleScrollbar="InvisibleScrollbar"})(at||(at={}));at.NodeDraggable,at.NodeResizable,at.ClickNodeToSelect,at.PanCanvas,at.MultipleSelect,at.LassoSelect,at.Delete,at.AddNewNodes,at.AddNewEdges,at.AddNewPorts,at.CanvasHorizontalScrollable,at.CanvasVerticalScrollable,at.NodeHoverView,at.PortHoverView,at.AddEdgesByKeyboard,at.A11yFeatures,at.AutoFit,at.EditNode,at.AutoAlign,at.UndoStack,at.CtrlKeyZoom,at.LimitBoundary,at.EditEdge;const oQe=new Set([at.NodeDraggable,at.NodeResizable,at.ClickNodeToSelect,at.PanCanvas,at.MultipleSelect,at.Delete,at.AddNewNodes,at.AddNewEdges,at.AddNewPorts,at.CanvasHorizontalScrollable,at.CanvasVerticalScrollable,at.NodeHoverView,at.PortHoverView,at.AddEdgesByKeyboard,at.A11yFeatures,at.EditNode,at.AutoAlign,at.UndoStack,at.CtrlKeyZoom,at.LimitBoundary]),iQe=new Set([at.NodeDraggable,at.NodeResizable,at.ClickNodeToSelect,at.PanCanvas,at.MultipleSelect,at.CanvasHorizontalScrollable,at.CanvasVerticalScrollable,at.NodeHoverView,at.PortHoverView,at.A11yFeatures,at.CtrlKeyZoom,at.LimitBoundary]);at.ClickNodeToSelect,at.CanvasHorizontalScrollable,at.CanvasVerticalScrollable,at.NodeHoverView,at.PortHoverView,at.A11yFeatures,at.LassoSelect,at.LimitBoundary;at.NodeHoverView,at.PortHoverView,at.AutoFit;const $g=()=>({dx:0,dy:0,dWidth:0,dHeight:0,alignedDX:void 0,alignedDY:void 0,nodes:[],isVisible:!1}),Dn=Object.is;let lde=class{constructor(t,r){this.upstream=t,this.f=r}[Symbol.iterator](){return this}next(){const t=this.upstream.next();return t.done?t:{done:!1,value:this.f(t.value)}}};var e_;(function(e){e[e.Bitmap=0]="Bitmap",e[e.Collision=1]="Collision"})(e_||(e_={}));const sQe=30,uh=5,aQe=1073741823;function Dd(e){return 1<>>t&31}function i6(e){return e|=0,e-=e>>>1&1431655765,e=(e&858993459)+(e>>>2&858993459),e=e+(e>>>4)&252645135,e+=e>>>8,e+=e>>>16,e&127}let Qy=class my{get valueCount(){return this.values.length}get nodeCount(){return this.children.length}constructor(t,r,n,o,i,s,a,l){this.type=e_.Bitmap,this.owner=t,this.dataMap=r,this.nodeMap=n,this.keys=o,this.values=i,this.children=s,this.hashes=a,this.size=l}static empty(t){return new my(t,0,0,[],[],[],[],0)}getKey(t){return this.keys[t]}getValue(t){return this.values[t]}getHash(t){return this.hashes[t]}getNode(t){return this.children[t]}contains(t,r,n){const o=ph(r,n),i=Dd(o),{dataMap:s,nodeMap:a}=this;if(s&i){const l=Mu(s,o,i),u=this.getKey(l);return Dn(u,t)}else if(a&i){const l=Mu(a,o,i);return this.getNode(l).contains(t,r,n+uh)}return!1}get(t,r,n){const o=ph(r,n),i=Dd(o),{dataMap:s,nodeMap:a}=this;if(s&i){const l=Mu(s,o,i),u=this.getKey(l);return Dn(u,t)?this.getValue(l):void 0}else if(a&i){const l=Mu(a,o,i);return this.getNode(l).get(t,r,n+uh)}}insert(t,r,n,o,i){const s=ph(o,i),a=Dd(s),{dataMap:l,nodeMap:u}=this;if(l&a){const c=Mu(l,s,a),f=this.getKey(c),d=this.getValue(c),h=this.getHash(c);if(h===o&&Dn(f,r))return Dn(d,n)?this:this.setValue(t,n,c);{const g=ude(t,f,d,h,r,n,o,i+uh);return this.migrateInlineToNode(t,a,g)}}else if(u&a){const c=Mu(u,s,a),d=this.getNode(c).insert(t,r,n,o,i+uh);return this.setNode(t,1,d,a)}return this.insertValue(t,a,r,o,n)}update(t,r,n,o,i){const s=ph(o,i),a=Dd(s),{dataMap:l,nodeMap:u}=this;if(l&a){const c=Mu(l,s,a),f=this.getKey(c);if(this.getHash(c)===o&&Dn(f,r)){const h=this.getValue(c),g=n(h);return Dn(h,g)?this:this.setValue(t,g,c)}}else if(u&a){const c=Mu(u,s,a),f=this.getNode(c),d=f.update(t,r,n,o,i+uh);return d===f?this:this.setNode(t,0,d,a)}return this}remove(t,r,n,o){const i=ph(n,o),s=Dd(i);if(this.dataMap&s){const a=Mu(this.dataMap,i,s),l=this.getKey(a);return Dn(l,r)?this.removeValue(t,s):void 0}else if(this.nodeMap&s){const a=Mu(this.nodeMap,i,s),l=this.getNode(a),u=l.remove(t,r,n,o+uh);if(u===void 0)return;const[c,f]=u;return c.size===1?this.size===l.size?[new my(t,s,0,[c.getKey(0)],[c.getValue(0)],[],[c.getHash(0)],1),f]:[this.migrateNodeToInline(t,s,c),f]:[this.setNode(t,-1,c,s),f]}}toOwned(t){return this.owner===t?this:new my(t,this.dataMap,this.nodeMap,this.keys.slice(),this.values.slice(),this.children.slice(),this.hashes.slice(),this.size)}iter(){return new J7(this)}map(t,r){const n=this.valueCount,o=[],i=[],s=[];let a=!0;for(let l=0;l=sQe)return new lQe(e,n,[t,o],[r,i]);{const l=ph(n,a),u=ph(s,a);if(l!==u){const c=Dd(l)|Dd(u);return lDn(n,t));return r>=0?this.values[r]:void 0}insert(t,r,n){const o=this.keys.findIndex(i=>Dn(i,r));if(o>=0){const i=this.values[o];if(Dn(i,n))return this;const s=this.toOwned(t);return s.values[o]=n,s}else{const i=this.toOwned(t);return i.keys.push(r),i.values.push(n),i}}update(t,r,n){const o=this.keys.findIndex(i=>Dn(i,r));if(o>=0){const i=this.values[o],s=n(i);if(Dn(i,s))return this;const a=this.toOwned(t);return a.values[o]=s,a}return this}remove(t,r){const n=this.keys.findIndex(i=>Dn(i,r));if(n===-1)return;const o=this.getValue(n);return[new Lk(t,this.hash,this.keys.filter((i,s)=>s!==n),this.values.filter((i,s)=>s!==n)),o]}getKey(t){return this.keys[t]}getValue(t){return this.values[t]}getHash(){return this.hash}iter(){return new ej(this)}map(t,r){const n=this.size,o=[];let i=!1;for(let s=0;s=this.node.size)return{done:!0,value:void 0};const t=this.node.getKey(this.index),r=this.node.getValue(this.index);return this.index+=1,{done:!1,value:[t,r]}}clone(){const t=new ej(this.node);return t.index=this.index,t}}function ro(e){if(e===null)return 1108378658;switch(typeof e){case"boolean":return e?839943201:839943200;case"number":return uQe(e);case"string":return LZ(e);case"object":case"function":case"symbol":throw new Error("Using object, function and symbol as hash map key is not supported");case"undefined":return 839943203;default:return LZ(String(e))}}function LZ(e){let t=0;for(let r=0;r4294967295;)e/=4294967295,t^=e;return cde(t)}function cde(e){return e&1073741823}class fde{constructor(){this.id=0}take(){return this.id+=1,this.id}peek(){return this.id+1}}const gh=new fde;class nc{get size(){return this.root.size}constructor(t){this.id=gh.take(),this.root=t}static empty(){return oc.empty().finish()}static from(t){return oc.from(t).finish()}get(t){const r=ro(t);return this.root.get(t,r,0)}has(t){const r=ro(t);return this.root.contains(t,r,0)}set(t,r){return this.withRoot(this.root.insert(gh.peek(),t,r,ro(t),0))}update(t,r){return this.withRoot(this.root.update(gh.peek(),t,r,ro(t),0))}delete(t){const r=ro(t),n=gh.peek(),o=this.root.remove(n,t,r,0);return o===void 0?this:new nc(o[0])}clone(){return new nc(this.root)}[Symbol.iterator](){return this.entries()}entries(){return this.root.iter()}values(){return new lde(this.entries(),([,t])=>t)}mutate(){return new oc(this.root)}map(t){return new nc(this.root.map(gh.peek(),t))}filter(t){const r=this.mutate();return this.forEach((n,o)=>{t(n,o)||r.delete(o)}),r.finish()}forEach(t){this.root.forEach(t)}find(t){return this.root.find(t)}withRoot(t){return t===this.root?this:new nc(t)}}class oc{constructor(t){this.id=gh.take(),this.root=t}static empty(){const t=gh.peek(),r=Qy.empty(t);return new oc(r)}static from(t){if(Array.isArray(t))return oc.fromArray(t);const r=t[Symbol.iterator](),n=oc.empty();let o=r.next();for(;!o.done;){const[i,s]=o.value;n.set(i,s),o=r.next()}return n}static fromArray(t){const r=oc.empty();for(let n=0;n=t?r:n;const o=r+n>>>1;if(e[o]===t)return o;t=Yc)return u;if(n===o)return u.balanceTail(l),u;const c=this.getValue(n);return u.balanceChild(t,l,a,c,n)}}removeMostRight(t){const r=this.selfSize,[n,o,i]=this.getChild(r).removeMostRight(t),s=this.toOwned(t);return s.size-=1,s.children[r]=i,i.selfSizeYc)this.rotateRight(r,a,i,s);else if(l.selfSize>Yc)this.rotateLeft(r,l,i,s);else{const u=a.toOwned(t),c=l.toOwned(t),f=r.getKey(fd),d=r.getValue(fd);u.keys.push(this.getKey(i-1)),u.values.push(this.getValue(i-1)),u.keys.push(...r.keys.slice(0,fd)),u.values.push(...r.values.slice(0,fd)),c.keys.unshift(n),c.values.unshift(o),c.keys.unshift(...r.keys.slice(fd+1,Yc)),c.values.unshift(...r.values.slice(fd+1,Yc)),this.keys.splice(i-1,2,f),this.values.splice(i-1,2,d),this.children.splice(i-1,3,u,c),s&&(u.children.push(...r.children.slice(0,fd+1)),c.children.unshift(...r.children.slice(fd+1,Yc+1)),u.updateSize(),c.updateSize())}return this}rotateLeft(t,r,n,o){const i=r.toOwned(this.owner),s=i.keys.shift(),a=i.values.shift(),l=this.getKey(n),u=this.getValue(n);if(t.keys.push(l),t.values.push(u),this.keys[n]=s,this.values[n]=a,this.children[n+1]=i,o){const c=i.children.shift();t.children.push(c);const f=c.size+1;t.size+=f,i.size-=f}}rotateRight(t,r,n,o){const i=r.toOwned(this.owner),s=i.keys.pop(),a=i.values.pop(),l=this.getKey(n-1),u=this.getValue(n-1);if(t.keys.unshift(l),t.values.unshift(u),this.keys[n-1]=s,this.values[n-1]=a,this.children[n-1]=i,o){const c=i.children.pop();t.children.unshift(c);const f=c.size+1;t.size+=f,i.size-=f}}balanceTail(t){const r=this.selfSize,n=this.getChild(r-1),o=t.type===iu.Internal;n.selfSize===Yc?(t.keys.unshift(this.getKey(r-1)),t.values.unshift(this.getValue(r-1)),t.keys.unshift(...n.keys),t.values.unshift(...n.values),this.keys.splice(r-1,1),this.values.splice(r-1,1),this.children.splice(r-1,1),o&&(t.children.unshift(...n.children),t.size+=n.size+1)):this.rotateRight(t,n,r,o)}balanceHead(t){const r=this.getChild(1),n=t.type===iu.Internal;r.selfSize===Yc?(t.keys.push(this.getKey(0)),t.values.push(this.getValue(0)),t.keys.push(...r.keys),t.values.push(...r.values),this.keys.splice(0,1),this.values.splice(0,1),this.children.splice(1,1),n&&(t.children.push(...r.children),t.size+=r.size+1)):this.rotateLeft(t,r,0,n)}updateWithSplit(t,r,n,o,i,s){const a=this.toOwned(t);a.keys.splice(s,0,o),a.values.splice(s,0,i),a.children.splice(s,1,r,n);const l=new Zy(t,a.keys.splice(16,16),a.values.splice(16,16),a.children.splice(16,17),0),u=a.keys.pop(),c=a.values.pop();return a.updateSize(),l.updateSize(),[a,l,u,c]}updateSize(){let t=this.selfSize;const r=this.children.length;for(let n=0;n{const[s,a]=i,l=r(a);return Dn(l,a)?i:[s,l]});return this.withRoot(this.itemId,this.hashRoot,o)}[Symbol.iterator](){return this.entries()}clone(){return new yy(this.itemId,this.hashRoot,this.sortedRoot)}entries(){return new tj(new t_(this.sortedRoot))}values(){return new lde(this.entries(),([,t])=>t)}mutate(){return new Md(this.itemId,this.hashRoot,this.sortedRoot)}map(t){const r=vh.peek(),n=i=>{const[s,a]=i,l=t(a,s);return Dn(a,l)?i:[s,l]},o=this.sortedRoot.map(r,n);return new yy(this.itemId,this.hashRoot,o)}forEach(t){this.sortedRoot.forEach(([r,n])=>{t(n,r)})}find(t){const r=this.sortedRoot.find(([,n])=>t(n));return r?r[1]:void 0}first(){const t=this.entries().next();if(!t.done)return t.value[1]}filter(t){const r=this.mutate();return this.forEach((n,o)=>{t(n,o)||r.delete(o)}),r.finish()}withRoot(t,r,n){return r===this.hashRoot&&n===this.sortedRoot?this:new yy(t,r,n)}};class tj{constructor(t){this.delegate=t}[Symbol.iterator](){return this.clone()}next(){const t=this.delegate.next();return t.done?{done:!0,value:void 0}:{done:!1,value:t.value[1]}}clone(){return new tj(this.delegate.clone())}}class Md{constructor(t,r,n){this.id=vh.take(),this.itemId=t,this.hashRoot=r,this.sortedRoot=n}static empty(){const t=vh.peek(),r=Qy.empty(t),n=cQe(t);return new Md(0,r,n)}static from(t){if(Array.isArray(t))return Md.fromArray(t);const r=Md.empty(),n=t[Symbol.iterator]();let o=n.next();for(;!o.done;){const[i,s]=o.value;r.set(i,s),o=n.next()}return r}static fromArray(t){const r=Md.empty();for(let n=0;n{const[i,s]=o,a=r(s);return Dn(a,s)?o:[i,a]}),this):this}finish(){return new s6(this.itemId,this.hashRoot,this.sortedRoot)}}const dQe=(e,t,r)=>{const n=cE(r,e),o=fE(r,e),i=t.position?t.position[0]*n:n*.5,s=e.x+i,a=t.position?t.position[1]*o:o,l=e.y+a;return{x:s,y:l}},pde=(e,t,r)=>{const n=uE(e,r);if(!n)return;const i=(e.ports||[]).find(s=>s.id===t);if(!i){Qh.warn(`invalid port id ${JSON.stringify(i)}`);return}return dQe(e,i,n)},gc=e=>e;var el;(function(e){e.Unknown="Unknown",e.Edge="Edge",e.EdgeChromium="EdgeChromium",e.Opera="Opera",e.Chrome="Chrome",e.IE="IE",e.Firefox="Firefox",e.Safari="Safari",e.Electron="Electron"})(el||(el={}));const hQe=()=>{const e=navigator.userAgent.toLowerCase();if(e.indexOf("electron")>-1)return el.Electron;switch(!0){case e.indexOf("edge")>-1:return el.Edge;case e.indexOf("edg")>-1:return el.EdgeChromium;case(e.indexOf("opr")>-1&&!!window.opr):return el.Opera;case(e.indexOf("chrome")>-1&&!!window.chrome):return el.Chrome;case e.indexOf("trident")>-1:return el.IE;case e.indexOf("firefox")>-1:return el.Firefox;case e.indexOf("safari")>-1:return el.Safari;default:return el.Unknown}},pQe=navigator.userAgent.includes("Macintosh"),gQe=e=>pQe?e.metaKey:e.ctrlKey,gde=e=>e.shiftKey||gQe(e),Pg=(e,t,r)=>({x:r[0]*e+r[2]*t+r[4],y:r[1]*e+r[3]*t+r[5]}),r_=(e,t,r)=>{const[n,o,i,s,a,l]=r;return{x:((e-a)*s-(t-l)*i)/(n*s-o*i),y:((e-a)*o-(t-l)*n)/(o*i-n*s)}},vQe=(e,t,r)=>{const[n,o,i,s]=r,a=s*e/(n*s-o*i)+i*t/(o*i-n*s),l=o*e/(o*i-n*s)+n*t/(n*s-o*i);return{x:a,y:l}},jZ=(e,t,r)=>{if(!r)return{x:e,y:t};const[n,o,i,s]=r;return Pg(e,t,[n,o,i,s,0,0])},vde=(e,t,r)=>{const{rect:n}=r,o=e-n.left,i=t-n.top;return r_(o,i,r.transformMatrix)},mQe=(e,t,r)=>{const{x:n,y:o}=Pg(e,t,r.transformMatrix),{rect:i}=r;return{x:n+i.left,y:o+i.top}},yQe=(e,t,r)=>{const n=mQe(e,t,r),{rect:o}=r;return{x:n.x-o.left,y:n.y-o.top}};function xw(e,t){e.update(t,r=>r.shallow())}const bQe=e=>{const{parentNode:t,clientX:r,clientY:n,graphConfig:o,viewport:i}=e;let s=1/0,a;if(!t.ports)return;const l=vde(r,n,i);return t.ports.forEach(u=>{if(mde(o,Object.assign(Object.assign({},e),{model:u}))){const c=pde(t,u.id,o);if(!c)return;const f=l.x-c.x,d=l.y-c.y,h=f*f+d*d;h{const r=e.getPortConfig(t.model);return r?r.getIsConnectable(t):!1},pu=()=>e=>e.mapNodes(t=>t.update(r=>{var n;const o=Object.assign(Object.assign({},r),{ports:(n=r.ports)===null||n===void 0?void 0:n.map(Mn(sa(ls.Default)))});return Mn(sa(Mo.Default))(o)})).mapEdges(t=>t.update(Mn(sa(Oi.Default)))),_Qe=(e,t)=>{if(Z7(t))return gc;const r=gde(e);return t1(t)&&!r?gc:n=>{const o=r?i=>i.id!==t.id?t1(i):e.button===tx.Secondary?!0:!t1(t):i=>i.id===t.id;return n.selectNodes(o,t.id)}},EQe=e=>{var t;return`node-container-${(t=e.name)!==null&&t!==void 0?t:"unnamed"}-${e.id}`},SQe=(e,t)=>`port-${t.name}-${t.id}-${e.name}-${e.id}`,wQe=(e,t)=>`node:${e}:${t.id}`,kQe=(e,t,r)=>`port:${e}:${t.id}:${r.id}`,AQe=(e,t)=>`edge:${e}:${t.id}`;function rj(e){Object.defineProperty(e,"__preventSpread",{enumerable:!0,configurable:!1,get(){document.currentScript&&Qh.error(`${e.constructor.name} is a class, which should not be used in the spread syntax or argument of Object.assign`)}})}class fg{get id(){return this.inner.id}get automationId(){return this.inner.automationId}get source(){return this.inner.source}get target(){return this.inner.target}get sourcePortId(){return this.inner.sourcePortId}get targetPortId(){return this.inner.targetPortId}get status(){return this.inner.status}get data(){return this.inner.data}constructor(t){this.inner=t,rj(this)}static fromJSON(t){return new fg(t)}updateStatus(t){return this.update(Mn(t))}update(t){const r=t(this.inner);return r===this.inner?this:new fg(r)}shallow(){return new fg(this.inner)}toJSON(){return this.inner}}const yde=Object.is;function xQe(e,t){const r=[];let n=!0;for(let o=0;on.id===t)}link({prev:t,next:r}){return t===this.prev&&r===this.next?this:new ll(this.inner,this.portPositionCache,t??this.prev,r??this.next)}updateStatus(t){return this.update(Mn(t))}update(t){const r=t(this.inner);return r===this.inner?this:new ll(r,new Map,this.prev,this.next)}updateData(t){return this.data?this.update(r=>{const n=t(r.data);return n===r.data?r:Object.assign(Object.assign({},r),{data:n})}):this}getPortPosition(t,r){let n=this.portPositionCache.get(t);return n||(n=pde(this.inner,t,r),this.portPositionCache.set(t,n)),n}hasPort(t){var r;return!!(!((r=this.inner.ports)===null||r===void 0)&&r.find(n=>n.id===t))}updatePositionAndSize(t){const{x:r,y:n,width:o,height:i}=t,s=Object.assign(Object.assign({},this.inner),{x:r,y:n,width:o??this.inner.width,height:i??this.inner.height});return new ll(s,new Map,this.prev,this.next)}updatePorts(t){if(!this.inner.ports)return this;const r=xQe(this.inner.ports,t),n=this.inner.ports===r?this.inner:Object.assign(Object.assign({},this.inner),{ports:r});return n===this.inner?this:new ll(n,new Map,this.prev,this.next)}invalidCache(){return new ll(this.inner,new Map,this.prev,this.next)}toJSON(){return this.inner}}class Lh{constructor(t){this.nodes=t.nodes,this.edges=t.edges,this.groups=t.groups,this.head=t.head,this.tail=t.tail,this.edgesBySource=t.edgesBySource,this.edgesByTarget=t.edgesByTarget,this.selectedNodes=t.selectedNodes,rj(this)}static empty(){return new Lh({nodes:s6.empty(),edges:nc.empty(),groups:[],head:void 0,tail:void 0,edgesBySource:nc.empty(),edgesByTarget:nc.empty(),selectedNodes:new Set})}static fromJSON(t){var r;const n=s6.empty().mutate(),o=nc.empty().mutate();let i,s;if(t.nodes.length===0)i=void 0,s=void 0;else if(t.nodes.length===1){const u=t.nodes[0];n.set(u.id,ll.fromJSON(u,void 0,void 0)),i=u.id,s=u.id}else{const u=t.nodes[0],c=t.nodes[1],f=t.nodes[t.nodes.length-1];i=u.id,s=f.id,n.set(u.id,ll.fromJSON(u,void 0,c.id));let d=t.nodes[0];if(t.nodes.length>2)for(let h=1;ha.update(r));if(i===this.nodes)return this;const s=this.edges.mutate();return(n=this.edgesBySource.get(t))===null||n===void 0||n.forEach(a=>{a.forEach(l=>{xw(s,l)})}),(o=this.edgesByTarget.get(t))===null||o===void 0||o.forEach(a=>{a.forEach(l=>{xw(s,l)})}),this.merge({nodes:i,edges:s.finish()})}updateNodeData(t,r){return this.merge({nodes:this.nodes.update(t,n=>n.updateData(r))})}updatePort(t,r,n){const o=this.nodes.update(t,i=>i.updatePorts(s=>s.id===r?n(s):s));return this.merge({nodes:o})}insertNode(t){const r=this.nodes.mutate().set(t.id,ll.fromJSON(t,this.tail,void 0));return this.tail&&!this.nodes.has(t.id)&&r.update(this.tail,n=>n.link({next:t.id})),this.merge({nodes:r.finish(),head:this.nodes.size===0?t.id:this.head,tail:t.id})}deleteItems(t){var r;const n=new Set,o=this.nodes.mutate();let i=this.head===void 0?void 0:this.nodes.get(this.head),s=i,a;const l=this.edgesBySource.mutate(),u=this.edgesByTarget.mutate();for(;s!==void 0;){const f=s.next?this.nodes.get(s.next):void 0;!((r=t.node)===null||r===void 0)&&r.call(t,s.inner)?(o.update(s.id,d=>d.link({prev:a==null?void 0:a.id}).update(h=>gp(Mo.Editing)(h.status)?h:Object.assign(Object.assign({},h),{status:Mo.Default}))),a=s):(o.delete(s.id),l.delete(s.id),u.delete(s.id),n.add(s.id),a&&o.update(a.id,d=>d.link({next:s==null?void 0:s.next})),f&&o.update(f.id,d=>d.link({prev:a==null?void 0:a.id})),s===i&&(i=f)),s=f}const c=this.edges.mutate();return this.edges.forEach(f=>{var d,h;!n.has(f.source)&&!n.has(f.target)&&(!((h=(d=t.edge)===null||d===void 0?void 0:d.call(t,f))!==null&&h!==void 0)||h)?c.update(f.id,g=>g.update(Mn(sa(Oi.Default)))):(c.delete(f.id),Tw(l,f.id,f.source,f.sourcePortId),Tw(u,f.id,f.target,f.targetPortId))}),this.merge({nodes:o.finish(),edges:c.finish(),head:i==null?void 0:i.id,tail:a==null?void 0:a.id,edgesBySource:l.finish(),edgesByTarget:u.finish()})}insertEdge(t){if(this.isEdgeExist(t.source,t.sourcePortId,t.target,t.targetPortId)||!this.nodes.has(t.source)||!this.nodes.has(t.target))return this;const r=zZ(this.edgesBySource,t.id,t.source,t.sourcePortId),n=zZ(this.edgesByTarget,t.id,t.target,t.targetPortId);return this.merge({nodes:this.nodes.update(t.source,o=>o.invalidCache()).update(t.target,o=>o.invalidCache()),edges:this.edges.set(t.id,fg.fromJSON(t)).map(o=>o.updateStatus(sa(Oi.Default))),edgesBySource:r,edgesByTarget:n})}updateEdge(t,r){return this.merge({edges:this.edges.update(t,n=>n.update(r))})}deleteEdge(t){const r=this.edges.get(t);return r?this.merge({edges:this.edges.delete(t),edgesBySource:Tw(this.edgesBySource,r.id,r.source,r.sourcePortId),edgesByTarget:Tw(this.edgesByTarget,r.id,r.target,r.targetPortId)}):this}updateNodesPositionAndSize(t){const r=new Set,n=this.nodes.mutate(),o=this.edges.mutate();return t.forEach(i=>{var s,a;r.add(i.id),n.update(i.id,l=>l.updatePositionAndSize(i)),(s=this.edgesBySource.get(i.id))===null||s===void 0||s.forEach(l=>{l.forEach(u=>{xw(o,u)})}),(a=this.edgesByTarget.get(i.id))===null||a===void 0||a.forEach(l=>{l.forEach(u=>{xw(o,u)})})}),this.merge({nodes:n.finish(),edges:o.finish()})}mapNodes(t){return this.merge({nodes:this.nodes.map(t)})}mapEdges(t){return this.merge({edges:this.edges.map(t)})}selectNodes(t,r){const n=new Set,o=this.nodes.map(a=>{const l=t(a.inner);return l&&n.add(a.id),a.updatePorts(Mn(sa(ls.Default))).updateStatus(YXe(l?Mo.Selected:Mo.UnconnectedToSelected))}).mutate();if(n.size===0)this.nodes.forEach(a=>o.update(a.id,l=>l.updateStatus(sa(Mo.Default))));else if(r){const a=o.get(r);a&&(o.delete(r),o.set(a.id,a))}const i=a=>{o.update(a,l=>l.updateStatus(sa(t1(l)?Mo.Selected:Mo.ConnectedToSelected)))},s=n.size?this.edges.map(a=>{let l=Oi.UnconnectedToSelected;return n.has(a.source)&&(i(a.target),l=Oi.ConnectedToSelected),n.has(a.target)&&(i(a.source),l=Oi.ConnectedToSelected),a.updateStatus(sa(l))}):this.edges.map(a=>a.updateStatus(sa(Oi.Default)));return this.merge({nodes:o.finish(),edges:s,selectedNodes:n})}getEdgesBySource(t,r){var n;return(n=this.edgesBySource.get(t))===null||n===void 0?void 0:n.get(r)}getEdgesByTarget(t,r){var n;return(n=this.edgesByTarget.get(t))===null||n===void 0?void 0:n.get(r)}isPortConnectedAsSource(t,r){var n,o;return((o=(n=this.getEdgesBySource(t,r))===null||n===void 0?void 0:n.size)!==null&&o!==void 0?o:0)>0}isPortConnectedAsTarget(t,r){var n,o;return((o=(n=this.getEdgesByTarget(t,r))===null||n===void 0?void 0:n.size)!==null&&o!==void 0?o:0)>0}shallow(){return this.merge({})}toJSON(){const t=[];let r=this.head&&this.nodes.get(this.head);for(;r;)t.push(r.inner),r=r.next&&this.nodes.get(r.next);const n=Array.from(this.edges.values()).map(o=>o.inner);return{nodes:t,edges:n}}isEdgeExist(t,r,n,o){const i=this.getEdgesBySource(t,r),s=this.getEdgesByTarget(n,o);if(!i||!s)return!1;let a=!1;return i.forEach(l=>{s.has(l)&&(a=!0)}),a}merge(t){var r,n,o,i,s,a,l,u;return new Lh({nodes:(r=t.nodes)!==null&&r!==void 0?r:this.nodes,edges:(n=t.edges)!==null&&n!==void 0?n:this.edges,groups:(o=t.groups)!==null&&o!==void 0?o:this.groups,head:(i=t.head)!==null&&i!==void 0?i:this.head,tail:(s=t.tail)!==null&&s!==void 0?s:this.tail,edgesBySource:(a=t.edgesBySource)!==null&&a!==void 0?a:this.edgesBySource,edgesByTarget:(l=t.edgesByTarget)!==null&&l!==void 0?l:this.edgesByTarget,selectedNodes:(u=t.selectedNodes)!==null&&u!==void 0?u:this.selectedNodes})}}function zZ(e,t,r,n){return e.has(r)?e.update(r,o=>{const i=o.get(n);return new Map(o).set(n,(i?new Set(i):new Set).add(t))}):e.set(r,new Map([[n,new Set([t])]]))}function HZ(e,t,r,n){e.has(r)?e.update(r,o=>{let i=o.get(n);return i||(i=new Set,o.set(n,i)),i.add(t),o}):e.set(r,new Map([[n,new Set([t])]]))}function Tw(e,t,r,n){return e.has(r)?e.update(r,o=>{const i=o.get(n);if(!i)return o;const s=new Set(i);return s.delete(t),new Map(o).set(n,s)}):e}var $Z;(function(e){e.Pan="Pan",e.Select="Select"})($Z||($Z={}));var es;(function(e){e.Default="default",e.Dragging="dragging",e.Panning="panning",e.MultiSelect="multiSelect",e.Connecting="connecting",e.AddingNode="addingNode"})(es||(es={}));function PZ(e,t,r){return e>r?e:t{const r=e.maxXt.maxX,o=e.minY>t.maxY,i=e.maxY{const{minX:r,minY:n,maxX:o,maxY:i}=e,{x:s,y:a}=t;return s>r&&sn&&ae===r?()=>Number.MAX_SAFE_INTEGER:o=>(n-t)/(r-e)*o+(t*r-n*e)/(r-e),IQe=(e,t)=>{if(!e||e.length!==t.length)return!1;for(let r=0;r{const i=t?Array.isArray(t)?t:t.apply(void 0,o):o;return IQe(r,i)||(r=i,n=e.apply(void 0,o)),n}}var ml;(function(e){e[e.X=0]="X",e[e.Y=1]="Y",e[e.XY=2]="XY"})(ml||(ml={}));const lu=e=>!!e.rect,bde=(e,t)=>{const{x:r,y:n}=e,{width:o,height:i}=Df(e,t);return{x:r,y:n,width:o,height:i}},NQe=(e,t,r)=>_de(bde(e,r),t),_de=(e,t)=>{const{x:r,y:n,width:o,height:i}=e;return Iw({x:r,y:n},t)||Iw({x:r+o,y:n},t)||Iw({x:r+o,y:n+i},t)||Iw({x:r,y:n+i},t)},Iw=(e,t)=>{const{x:r,y:n}=yQe(e.x,e.y,t),{height:o,width:i}=t.rect;return r>0&&r0&&n{const n=[];return e.forEach(o=>{NQe(o,t,r)&&n.push(o.inner)}),n},Ede=(e,t)=>{const r=[],n=DQe(t);return e.forEach(o=>{OQe(o,n)&&r.push(o.inner)}),r},OQe=(e,t)=>L0(t,e),DQe=e=>{if(!lu(e))return{minX:0,minY:0,maxX:0,maxY:0};const{rect:t,transformMatrix:r}=e,n=0,o=0,i=t.width,s=t.height,a=r_(n-t.width,o-t.height,r),l=r_(i+t.width,s+t.height,r);return{minX:a.x,minY:a.y,maxX:l.x,maxY:l.y}},FQe=e=>e?typeof e=="number"?{top:e,right:e,bottom:e,left:e}:Object.assign({top:0,right:0,bottom:0,left:0},e):{top:0,right:0,bottom:0,left:0},a6=({scale:e,anchor:t,direction:r,limitScale:n})=>o=>{const i=n(e)/o.transformMatrix[0],s=n(e)/o.transformMatrix[3],{x:a,y:l}=t,u=a*(1-i),c=l*(1-s);let f;switch(r){case ml.X:f=[e,0,0,o.transformMatrix[3],o.transformMatrix[4]*i+u,o.transformMatrix[5]];break;case ml.Y:f=[o.transformMatrix[0],0,0,e,o.transformMatrix[4],o.transformMatrix[5]*s+c];break;case ml.XY:default:f=[e,0,0,e,o.transformMatrix[4]*i+u,o.transformMatrix[5]*s+c]}return Object.assign(Object.assign({},o),{transformMatrix:f})},l6=({scale:e,anchor:t,direction:r,limitScale:n})=>e===1?gc:o=>{let i;switch(r){case ml.X:return a6({anchor:t,direction:r,limitScale:n,scale:o.transformMatrix[0]*e})(o);case ml.Y:return a6({anchor:t,direction:r,limitScale:n,scale:o.transformMatrix[3]*e})(o);case ml.XY:default:{const s=n(o.transformMatrix[0]*e),a=n(o.transformMatrix[3]*e),l=s/o.transformMatrix[0],u=a/o.transformMatrix[3],{x:c,y:f}=t,d=c*(1-l),h=f*(1-u);i=[s,0,0,a,o.transformMatrix[4]*l+d,o.transformMatrix[5]*u+h]}}return Object.assign(Object.assign({},o),{transformMatrix:i})},u6=(e,t)=>e===0&&t===0?gc:r=>Object.assign(Object.assign({},r),{transformMatrix:[r.transformMatrix[0],r.transformMatrix[1],r.transformMatrix[2],r.transformMatrix[3],r.transformMatrix[4]+e,r.transformMatrix[5]+t]}),BQe=(e,t)=>e===0&&t===0?gc:r=>{const[n,o,i,s]=r.transformMatrix;return Object.assign(Object.assign({},r),{transformMatrix:[n,o,i,s,r.transformMatrix[4]+n*e+o*t,r.transformMatrix[5]+i*e+s*t]})},L9=(e,t,r)=>{let n=1/0,o=1/0,i=1/0,s=1/0,a=-1/0,l=-1/0;return(r===void 0?d=>e.nodes.forEach(d):d=>r==null?void 0:r.forEach(h=>{const g=e.nodes.get(h);g&&d(g)}))(d=>{const{width:h,height:g}=Df(d,t);d.xa&&(a=d.x+h),d.y+g>l&&(l=d.y+g),h{let{width:r,height:n}=e,{width:o,height:i}=t;if(r>o){const s=r;r=o,o=s}if(n>i){const s=n;n=i,i=s}return{nodeMinVisibleWidth:r,nodeMinVisibleHeight:n,nodeMaxVisibleWidth:o,nodeMaxVisibleHeight:i}},Sde=(e,{width:t,height:r})=>{const{nodeMinVisibleWidth:n,nodeMinVisibleHeight:o,nodeMaxVisibleWidth:i,nodeMaxVisibleHeight:s}=MQe(e);let a=0,l=0,u=1/0,c=1/0;return t&&(a=n/t,u=i/t),r&&(l=o/r,c=s/r),{minScaleX:a,minScaleY:l,maxScaleX:u,maxScaleY:c}},LQe=e=>{const{data:t,graphConfig:r,disablePan:n,direction:o,rect:i}=e,{nodes:s}=t;if(s.size===0)return[1,0,0,1,0,0];const{minNodeWidth:a,minNodeHeight:l,minNodeX:u,minNodeY:c,maxNodeX:f,maxNodeY:d}=L9(t,r),{minScaleX:h,minScaleY:g,maxScaleX:v,maxScaleY:y}=Sde(e,{width:a,height:l}),E=FQe(e.spacing),{width:_,height:S}=i,b=_/(f-u+E.left+E.right),k=S/(d-c+E.top+E.bottom),T=o===ml.Y?Math.min(Math.max(h,g,k),v,y):Math.min(Math.max(h,g,Math.min(b,k)),y,y),x=o===ml.XY?Math.min(Math.max(h,b),v):T,I=o===ml.XY?Math.min(Math.max(g,k),y):T;if(n)return[x,0,0,I,0,0];const C=-x*(u-E.left),R=-I*(c-E.top);if(RQe(t.nodes,{rect:i,transformMatrix:[x,0,0,I,C,R]},r).length>0)return[x,0,0,I,C,R];let L=t.nodes.first();return L&&t.nodes.forEach(M=>{L.y>M.y&&(L=M)}),[x,0,0,I,-x*(L.x-E.left),-I*(L.y-E.top)]},jQe=(e,t,r,n,o)=>{const i=r-e,s=n-t,a=Math.min(o.rect.width/i,o.rect.height/s),l=-a*(e+i/2)+o.rect.width/2,u=-a*(t+s/2)+o.rect.height/2;return Object.assign(Object.assign({},o),{transformMatrix:[a,0,0,a,l,u]})};function wde(e,t){const r=t.clientX-e.left,n=t.clientY-e.top;return{x:r,y:n}}const kde=(e,t,r,n,o)=>{if(!r)return gc;const{width:i,height:s}=r;return!(e<0||e>i||t<0||t>s)&&!n?gc:l=>{const u=o?o.x-e:i/2-e,c=o?o.y-t:s/2-t;return Object.assign(Object.assign({},l),{transformMatrix:[l.transformMatrix[0],l.transformMatrix[1],l.transformMatrix[2],l.transformMatrix[3],l.transformMatrix[4]+u,l.transformMatrix[5]+c]})}},Ade=(e,t)=>{const{minNodeWidth:r,minNodeHeight:n}=L9(e,t.graphConfig),{minScaleX:o,minScaleY:i}=Sde(t,{width:r,height:n});return Math.max(o,i)},zQe=CQe(L9),HQe=({data:e,graphConfig:t,rect:r,transformMatrix:n,canvasBoundaryPadding:o,groupPadding:i})=>{var s,a,l,u;const c=zQe(e,t),f=jZ(c.minNodeX-((i==null?void 0:i.left)||0),c.minNodeY-((i==null?void 0:i.top)||0),n);f.x-=(s=o==null?void 0:o.left)!==null&&s!==void 0?s:0,f.y-=(a=o==null?void 0:o.top)!==null&&a!==void 0?a:0;const d=jZ(c.maxNodeX+((i==null?void 0:i.right)||0),c.maxNodeY+((i==null?void 0:i.bottom)||0),n);d.x+=(l=o==null?void 0:o.right)!==null&&l!==void 0?l:0,d.y+=(u=o==null?void 0:o.bottom)!==null&&u!==void 0?u:0;let h=-f.x||0,g=-f.y||0,v=r.width-d.x||0,y=r.height-d.y||0;if(v({present:t,past:{next:e.past,value:r(e.present)},future:null}),$Qe=e=>e.past?{present:e.past.value,past:e.past.next,future:{next:e.future,value:e.present}}:e,PQe=e=>e.future?{present:e.future.value,past:{next:e.past,value:e.present},future:e.future.next}:e,c6=e=>({present:e,future:null,past:null}),j0=[1,0,0,1,0,0],qQe={top:0,right:0,bottom:0,left:0},WQe={width:DZ,height:DZ},GQe={width:FZ,height:FZ},KQe={features:oQe,graphConfig:Hg.default().build(),canvasBoundaryPadding:qQe,nodeMinVisibleSize:WQe,nodeMaxVisibleSize:GQe},VQe=xde({});function xde(e){const{data:t,transformMatrix:r,settings:n}=e;return{settings:Object.assign(Object.assign({},KQe),n),data:c6(t??Lh.empty()),viewport:{rect:void 0,transformMatrix:r??j0},behavior:es.Default,dummyNodes:$g(),alignmentLines:[],activeKeys:new Set,selectBoxPosition:ade(),connectState:void 0}}const UQe={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0,movingPoint:{x:0,y:0}};new Proxy(Lh.empty(),{get:(e,t)=>(console.warn("Default graph data value is being used. Please check if you forget rendering Graph component"),Reflect.get(e,t))});const Tde=A.createContext({});class YQe{constructor(){this.listenersRef=A.createRef(),this.externalHandlerRef=A.createRef(),this.queue=[],this.working=!1}trigger(t){this.working?this.queue.push(t):(this.working=!0,pi.unstable_batchedUpdates(()=>{this.callHandlers(t);for(let r=0;r{this.dispatchDelegate(n,o)},this.state=t,this.UNSAFE_latestState=t,this.dispatchDelegate=r}setMouseClientPosition(t){this.mouseClientPoint=t}unsetMouseClientPosition(){this.mouseClientPoint=void 0}getMouseClientPosition(){return this.mouseClientPoint}getEnabledFeatures(){return this.state.settings.features}getBehavior(){return this.behavior}setBehavior(t){this.behavior=t}getData(){return this.state.data.present}getGlobalEventTarget(){var t,r;return(r=(t=this.getGlobalEventTargetDelegate)===null||t===void 0?void 0:t.call(this))!==null&&r!==void 0?r:window}}const f6=()=>{},QQe={sourceNode:void 0,sourcePort:void 0,targetNode:void 0,targetPort:void 0},nj=A.createContext(QQe);nj.displayName="ConnectingStateContext";const ZQe=A.createContext([]),JQe=A.createContext(new XQe(VQe,f6));var $t;(function(e){e.Click="[Node]Click",e.DoubleClick="[Node]DoubleClick",e.MouseDown="[Node]MouseDown",e.MouseUp="[Node]MouseUp",e.MouseEnter="[Node]MouseEnter",e.MouseLeave="[Node]MouseLeave",e.MouseOver="[Node]MouseOver",e.MouseOut="[Node]MouseOut",e.MouseMove="[Node]MouseMove",e.ContextMenu="[Node]ContextMenu",e.Drag="[Node]Drag",e.DragStart="[Node]DragStart",e.DragEnd="[Node]DragEnd",e.PointerDown="[Node]PointerDown",e.PointerEnter="[Node]PointerEnter",e.PointerMove="[Node]PointerMove",e.PointerLeave="[Node]PointerLeave",e.PointerUp="[Node]PointerUp",e.Resizing="[Node]Resizing",e.ResizingStart="[Node]ResizingStart",e.ResizingEnd="[Node]ResizingEnd",e.KeyDown="[Node]KeyDown",e.Select="[Node]Select",e.SelectAll="[Node]SelectAll",e.Centralize="[Node]Centralize",e.Locate="[Node]Locate",e.Add="[Node]Add"})($t||($t={}));var dn;(function(e){e.Click="[Edge]Click",e.DoubleClick="[Edge]DoubleClick",e.MouseEnter="[Edge]MouseEnter",e.MouseLeave="[Edge]MouseLeave",e.MouseOver="[Edge]MouseOver",e.MouseOut="[Edge]MouseOut",e.MouseMove="[Edge]MouseMove",e.MouseDown="[Edge]MouseDown",e.MouseUp="[Edge]MouseUp",e.ContextMenu="[Edge]ContextMenu",e.ConnectStart="[Edge]ConnectStart",e.ConnectMove="[Edge]ConnectMove",e.ConnectEnd="[Edge]ConnectEnd",e.ConnectNavigate="[Edge]ConnectNavigate",e.Add="[Edge]Add"})(dn||(dn={}));var an;(function(e){e.Click="[Port]Click",e.DoubleClick="[Port]DoubleClick",e.MouseDown="[Port]MouseDown",e.PointerDown="[Port]PointerDown",e.PointerUp="[Port]PointerUp",e.PointerEnter="[Port]PointerEnter",e.PointerLeave="[Port]PointerLeave",e.MouseUp="[Port]MouseUp",e.MouseEnter="[Port]MouseEnter",e.MouseLeave="[Port]MouseLeave",e.MouseOver="[Port]MouseOver",e.MouseOut="[Port]MouseOut",e.MouseMove="[Port]MouseMove",e.ContextMenu="[Port]ContextMenu",e.KeyDown="[Port]KeyDown",e.Focus="[Port]Focus",e.Blur="[Port]Blur"})(an||(an={}));var or;(function(e){e.Click="[Canvas]Click",e.DoubleClick="[Canvas]DoubleClick",e.MouseDown="[Canvas]MouseDown",e.MouseUp="[Canvas]MouseUp",e.MouseEnter="[Canvas]MouseEnter",e.MouseLeave="[Canvas]MouseLeave",e.MouseOver="[Canvas]MouseOver",e.MouseOut="[Canvas]MouseOut",e.MouseMove="[Canvas]MouseMove",e.ContextMenu="[Canvas]ContextMenu",e.DragStart="[Canvas]DragStart",e.Drag="[Canvas]Drag",e.DragEnd="[Canvas]DragEnd",e.Pan="[Canvas]Pan",e.Focus="[Canvas]Focus",e.Blur="[Canvas]Blur",e.Zoom="[Canvas]Zoom",e.Pinch="[Canvas]Pinch",e.KeyDown="[Canvas]KeyDown",e.KeyUp="[Canvas]KeyUp",e.SelectStart="[Canvas]SelectStart",e.SelectMove="[Canvas]SelectMove",e.SelectEnd="[Canvas]SelectEnd",e.UpdateNodeSelectionBySelectBox="[Canvas]UpdateNodeSelectionBySelectBox",e.MouseWheelScroll="[Canvas]MouseWheelScroll",e.DraggingNodeFromItemPanel="[Canvas]DraggingNodeFromItemPanel",e.DraggingNodeFromItemPanelStart="[Canvas]DraggingNodeFromItemPanelStart",e.DraggingNodeFromItemPanelEnd="[Canvas]DraggingNodeFromItemPanelEnd",e.ViewportResize="[Canvas]ViewportResize",e.Navigate="[Canvas]Navigate",e.VirtualizationRecalculated="[Canvas]VirtualizationRecalculated",e.ResetSelection="[Canvas]ResetSelection",e.Copy="[Canvas]Copy",e.Paste="[Canvas]Paste",e.Delete="[Canvas]Delete",e.Undo="[Canvas]Undo",e.Redo="[Canvas]Redo",e.ScrollIntoView="[Canvas]ScrollIntoView",e.ResetUndoStack="[Canvas]ResetUndoStack",e.ResetViewport="[Canvas]ResetViewport",e.ZoomTo="[Canvas]ZoomTo",e.ZoomToFit="[Canvas]ZoomToFit",e.SetData="[Canvas]SetData",e.UpdateData="[Canvas]UpdateData",e.ScrollTo="[Canvas]ScrollTo",e.UpdateSettings="[Canvas]UpdateSettings"})(or||(or={}));var d6;(function(e){e.ScrollStart="[ScrollBar]ScrollStart",e.Scroll="[ScrollBar]Scroll",e.ScrollEnd="[ScrollBar]ScrollEnd"})(d6||(d6={}));var h6;(function(e){e.PanStart="[Minimap]PanStart",e.Pan="[Minimap]Pan",e.PanEnd="[Minimap]PanEnd",e.Click="[Minimap]Click"})(h6||(h6={}));var nx;(function(e){e.Open="[ContextMenu]Open",e.Close="[ContextMenu]Close"})(nx||(nx={}));function eZe(){try{const e=document.createElement("iframe");e.src="#",document.body.appendChild(e);const{contentDocument:t}=e;if(!t)throw new Error("Fail to create iframe");t.documentElement.innerHTML=iUe.sanitize("a",{RETURN_TRUSTED_TYPE:!0});const n=t.body.firstElementChild.offsetHeight;return document.body.removeChild(e),n}catch(e){return Qh.error("failed to calculate scroll line height",e),16}}eZe();const tZe={height:0,width:0,x:0,y:0,bottom:0,left:0,right:0,top:0,toJSON(){return this}},rZe=A.createContext({viewport:{rect:tZe,transformMatrix:j0},renderedArea:{minX:0,minY:0,maxX:0,maxY:0},visibleArea:{minX:0,minY:0,maxX:0,maxY:0},renderedNodes:new Set,renderedEdges:new Set,timestamp:0});function vp(){return A.useContext(nQe)}function nZe(){return A.useContext(JQe)}function oZe(){return A.useContext(ZQe)}function iZe(){return A.useContext(nj)}function Ide(){return A.useContext(rZe)}function sZe(e,t,r){let n=!1,o,i;const s=(...a)=>{o=a,n||(n=!0,i=t(()=>{n=!1,pi.unstable_batchedUpdates(()=>{e.apply(null,o)})}))};return s.cancel=()=>{r(i)},s}const aZe=e=>sZe(e,requestAnimationFrame,cancelAnimationFrame);class lZe{constructor(t,r){this.onMove=f6,this.onEnd=f6,this.lastEvent=null,this.startX=0,this.startY=0,this.prevClientX=0,this.prevClientY=0,this.onMouseUp=n=>{this.lastEvent=n,this.doOnMouseUp(n),this.lastEvent=null},this.onMouseMove=n=>{this.lastEvent=n,n.preventDefault(),this.mouseMove(n)},this.eventProvider=t,this.getPositionFromEvent=r,this.mouseMove=aZe(n=>{this.doOnMouseMove(n)})}start(t){this.lastEvent=t;const{x:r,y:n}=this.getPositionFromEvent(t);this.startX=r,this.startY=n,this.prevClientX=r,this.prevClientY=n,this.eventProvider.on("move",this.onMouseMove),this.eventProvider.on("end",this.onMouseUp)}stop(){this.mouseMove.cancel(),this.eventProvider.off("move",this.onMouseMove),this.eventProvider.off("end",this.onMouseUp)}getDelta(t,r){const n=t-this.prevClientX,o=r-this.prevClientY;return this.prevClientX=t,this.prevClientY=r,{x:n,y:o}}getTotalDelta(t){const r=t.clientX-this.startX,n=t.clientY-this.startY;return{x:r,y:n}}doOnMouseMove(t){const{x:r,y:n}=this.getPositionFromEvent(t),{x:o,y:i}=this.getDelta(r,n),{x:s,y:a}=this.getTotalDelta(t);this.onMove({clientX:r,clientY:n,dx:o,dy:i,totalDX:s,totalDY:a,e:t})}doOnMouseUp(t){t.preventDefault();const{x:r,y:n}=this.getTotalDelta(t);this.onEnd({totalDX:r,totalDY:n,e:t}),this.stop()}}function uZe(e){return{x:e.clientX,y:e.clientY}}hQe(),el.Safari;const cZe=(e,t)=>{switch(t.type){case $t.DragStart:return es.Dragging;case dn.ConnectStart:return es.Connecting;case or.SelectStart:return es.MultiSelect;case or.DragStart:return es.Panning;case or.DraggingNodeFromItemPanelStart:return es.AddingNode;case $t.DragEnd:case dn.ConnectEnd:case or.SelectEnd:case or.DragEnd:case or.DraggingNodeFromItemPanelEnd:return es.Default;default:return e}},fZe=(e,t)=>{const r=cZe(e.behavior,t);return r===e.behavior?e:Object.assign(Object.assign({},e),{behavior:r})};function dE(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o{switch(t.type){case or.Paste:{const{position:r}=t;if(!lu(e.viewport))return e;const{rect:n}=e.viewport;let o=t.data.nodes;if(r&&n){const s=vde(r.x,r.y,e.viewport);let a,l;o=o.map((u,c)=>(c===0&&(a=s.x-u.x,l=s.y-u.y),Object.assign(Object.assign({},u),{x:a?u.x-rx+a:u.x,y:l?u.y-rx+l:u.y,state:Mo.Selected})))}let i=pu()(e.data.present);return o.forEach(s=>{i=i.insertNode(s)}),t.data.edges.forEach(s=>{i=i.insertEdge(s)}),Object.assign(Object.assign({},e),{data:vf(e.data,i)})}case or.Delete:return e.settings.features.has(at.Delete)?Object.assign(Object.assign({},e),{data:vf(e.data,e.data.present.deleteItems({node:RZ,edge:RZ}),pu())}):e;case or.Undo:return Object.assign(Object.assign({},e),{data:$Qe(e.data)});case or.Redo:return Object.assign(Object.assign({},e),{data:PQe(e.data)});case or.KeyDown:{const r=t.rawEvent.key.toLowerCase();if(e.activeKeys.has(r))return e;const n=new Set(e.activeKeys);return n.add(r),Object.assign(Object.assign({},e),{activeKeys:n})}case or.KeyUp:{const r=t.rawEvent.key.toLowerCase();if(!e.activeKeys.has(r))return e;const n=new Set(e.activeKeys);return n.delete(r),Object.assign(Object.assign({},e),{activeKeys:n})}case or.SetData:return Object.assign(Object.assign({},e),{data:c6(t.data)});case or.UpdateData:return Object.assign(Object.assign({},e),{data:t.shouldRecord?vf(e.data,t.updater(e.data.present)):Object.assign(Object.assign({},e.data),{present:t.updater(e.data.present)})});case or.ResetUndoStack:return Object.assign(Object.assign({},e),{data:c6(e.data.present)});case or.UpdateSettings:{const r=dE(t,["type"]);return Object.assign(Object.assign({},e),{settings:Object.assign(Object.assign({},e.settings),r)})}default:return e}};function Cde(e){return t=>e.reduceRight((r,n)=>n(r),t)}const Jy=(e=void 0,t=void 0)=>({node:e,port:t}),WZ=(e,t,r)=>{if(t.ports){const i=(r?t.ports.findIndex(s=>s.id===r.id):-1)+1;if(i(r,n,o)=>{var i,s,a;let l=WZ(r,n,o);for(;!(((i=l.node)===null||i===void 0?void 0:i.id)===n.id&&((s=l.port)===null||s===void 0?void 0:s.id)===(o==null?void 0:o.id));){if(!l.node)l=Jy(r.getNavigationFirstNode());else if(l.port&&!((a=e.getPortConfig(l.port))===null||a===void 0)&&a.getIsConnectable(Object.assign(Object.assign({},t),{data:r,parentNode:l.node,model:l.port})))return l;l=WZ(r,l.node,l.port)}return Jy()};function c3(e,t,r){if(!e.connectState)return e;let n=e.data.present;return n=n.updatePort(t,r,Mn(Of(ls.ConnectingAsTarget))),e.connectState.targetNode&&e.connectState.targetPort&&(n=n.updatePort(e.connectState.targetNode,e.connectState.targetPort,Mn(lE(ls.ConnectingAsTarget)))),Object.assign(Object.assign({},e),{connectState:Object.assign(Object.assign({},e.connectState),{targetNode:t,targetPort:r}),data:Object.assign(Object.assign({},e.data),{present:n})})}function GZ(e){if(!e.connectState)return e;let t=e.data.present;const{targetPort:r,targetNode:n}=e.connectState;return n&&r&&(t=t.updatePort(n,r,Mn(lE(ls.ConnectingAsTarget)))),Object.assign(Object.assign({},e),{connectState:Object.assign(Object.assign({},e.connectState),{targetNode:void 0,targetPort:void 0}),data:Object.assign(Object.assign({},e.data),{present:t})})}const pZe=(e,t)=>{var r,n,o;if(!lu(e.viewport))return e;const{rect:i}=e.viewport;switch(t.type){case dn.ConnectStart:return Object.assign(Object.assign({},e),{connectState:Object.assign(Object.assign({},UQe),{sourceNode:t.nodeId,sourcePort:t.portId,movingPoint:t.clientPoint?{x:t.clientPoint.x-i.left,y:t.clientPoint.y-i.top}:void 0}),data:Object.assign(Object.assign({},e.data),{present:e.data.present.updatePort(t.nodeId,t.portId,Mn(Of(ls.Connecting)))})});case dn.ConnectMove:return e.connectState?Object.assign(Object.assign({},e),{connectState:Object.assign(Object.assign({},e.connectState),{movingPoint:{x:t.clientX-i.left,y:t.clientY-i.top}})}):e;case dn.ConnectEnd:if(e.connectState){const{edgeWillAdd:s,isCancel:a}=t,{sourceNode:l,sourcePort:u,targetNode:c,targetPort:f}=e.connectState;let d=e.data.present;if(d=d.updatePort(l,u,Mn(sa(ls.Default))),!a&&c&&f){let h={source:l,sourcePortId:u,target:c,targetPortId:f,id:ZA(),status:Oi.Default};return s&&(h=s(h,d)),d=d.insertEdge(h).updatePort(c,f,Mn(sa(ls.Default))),Object.assign(Object.assign({},e),{connectState:void 0,data:vf(e.data,d,pu())})}return Object.assign(Object.assign({},e),{connectState:void 0,data:Object.assign(Object.assign({},e.data),{present:d})})}return e;case dn.ConnectNavigate:if(e.connectState){const s=e.data.present,a=s.nodes.get(e.connectState.sourceNode),l=a==null?void 0:a.getPort(e.connectState.sourcePort),u=e.connectState.targetNode?s.nodes.get(e.connectState.targetNode):void 0,c=e.connectState.targetPort?u==null?void 0:u.getPort(e.connectState.targetPort):void 0;if(!a||!l)return e;const f=hZe(e.settings.graphConfig,{anotherNode:a,anotherPort:l})(s,u||a,c);return!f.node||!f.port||f.node.id===a.id&&f.port.id===l.id?e:c3(e,f.node.id,f.port.id)}return e;case an.PointerEnter:if(e.connectState){const{sourceNode:s,sourcePort:a}=e.connectState,l=e.data.present,u=l.nodes.get(t.node.id),c=u==null?void 0:u.getPort(t.port.id),f=l.nodes.get(s),d=f==null?void 0:f.getPort(a);if(u&&c&&f&&d&&mde(e.settings.graphConfig,{parentNode:u,model:c,data:l,anotherPort:d,anotherNode:f}))return c3(e,u.id,c.id)}return e;case $t.PointerEnter:case $t.PointerMove:if(e.connectState){const{clientX:s,clientY:a}=t.rawEvent,{sourceNode:l,sourcePort:u}=e.connectState,c=e.data.present,f=c.nodes.get(t.node.id),d=c.nodes.get(l),h=d==null?void 0:d.getPort(u);if(f&&d&&h){const g=bQe({parentNode:f,clientX:s,clientY:a,graphConfig:e.settings.graphConfig,data:e.data.present,viewport:e.viewport,anotherPort:h,anotherNode:d});return g?c3(e,f.id,g.id):e}}return e;case $t.PointerLeave:return((r=e.connectState)===null||r===void 0?void 0:r.targetNode)===t.node.id?GZ(e):e;case an.PointerLeave:return((n=e.connectState)===null||n===void 0?void 0:n.targetNode)===t.node.id&&((o=e.connectState)===null||o===void 0?void 0:o.targetPort)===t.port.id?GZ(e):e;default:return e}},gZe=(e,t)=>{let r=e.contextMenuPosition;switch(t.type){case or.ContextMenu:case $t.ContextMenu:case dn.ContextMenu:case an.ContextMenu:{const n=t.rawEvent;n.button===tx.Secondary&&(r={x:n.clientX,y:n.clientY})}break;case or.Click:case $t.Click:case dn.Click:case an.Click:r=void 0;break;case nx.Open:r={x:t.x,y:t.y};break;case nx.Close:r=void 0;break}return e.contextMenuPosition===r?e:Object.assign(Object.assign({},e),{contextMenuPosition:r})},vZe=(e,t)=>{switch(t.type){case dn.DoubleClick:return e.settings.features.has(at.EditEdge)?Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updateEdge(t.edge.id,Mn(sa(Oi.Editing)))})}):e;case dn.MouseEnter:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updateEdge(t.edge.id,Mn(Of(Oi.Activated)))})});case dn.MouseLeave:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updateEdge(t.edge.id,Mn(lE(Oi.Activated)))})});case dn.Click:case dn.ContextMenu:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:pu()(e.data.present).updateEdge(t.edge.id,Mn(Of(Oi.Selected)))})});case dn.Add:return Object.assign(Object.assign({},e),{data:vf(e.data,e.data.present.insertEdge(t.edge))});default:return e}},Nde=(e,t,r,n=2)=>{const o=Rde(e),i=bZe(o,e,t,r,n);return _Ze(o,i,e.length)},KZ=(e,t,r,n)=>{let o=1/0,i=0;const s=Rde(t),a=n==="x"?s.width||0:s.height||0;return e.forEach(l=>{let u;if(n==="x"&&l.x1===l.x2)u=l.x1;else if(n==="y"&&l.y1===l.y2)u=l.y1;else return;const c=s[n]-u,f=s[n]+(a||0)/2-u,d=s[n]+(a||0)-u;Math.abs(c)0?-o:o),Math.abs(f)0?-o:o),Math.abs(d)0?-o:o)}),i},VZ=(e,t)=>{if(e.length)return Math.min(...e.map(r=>r[t]))},UZ=(e,t)=>{if(e.length)return Math.max(...e.map(r=>r[t]+(t==="y"?r.height||0:r.width||0)))},mZe=(e,t)=>Object.assign(Object.assign({},e),Df(e,t)),yZe=e=>{let t=1/0,r=1/0,n=-1/0,o=-1/0;return e.forEach(i=>{const s=i.x,a=i.y,l=i.x+(i.width||0),u=i.y+(i.height||0);sn&&(n=l),u>o&&(o=u)}),{x:t,y:r,width:n-t,height:o-r}},Rde=e=>{const{x:t,y:r,width:n,height:o}=yZe(e);return{id:ZA(),x:t,y:r,width:n,height:o}},bZe=(e,t,r,n,o=2)=>{const i=[],s=[],{x:a,y:l,width:u=0,height:c=0}=e;let f=o,d=o;return r.forEach(h=>{if(t.find(E=>E.id===h.id))return;const g=mZe(h,n),{width:v=0,height:y=0}=g;[a,a+u/2,a+u].forEach((E,_)=>{i[_]||(i[_]={}),i[_].closestNodes||(i[_].closestNodes=[]),[g.x,g.x+v/2,g.x+v].forEach(S=>{var b;const k=Math.abs(E-S);k<=f&&((b=i[_].closestNodes)===null||b===void 0||b.push(g),i[_].alignCoordinateValue=S,f=k)})}),[l,l+c/2,l+c].forEach((E,_)=>{s[_]||(s[_]={}),s[_].closestNodes||(s[_].closestNodes=[]),[g.y,g.y+y/2,g.y+y].forEach(S=>{var b;const k=Math.abs(E-S);k<=d&&((b=s[_].closestNodes)===null||b===void 0||b.push(g),s[_].alignCoordinateValue=S,d=k)})})}),{closestX:i,closestY:s}},_Ze=(e,t,r=1)=>{const n=[],o=[],i=t.closestX,s=t.closestY;return i.forEach((a,l)=>{var u;if(a.alignCoordinateValue===void 0||l===1&&(n.length||r>1))return;const c=[],f=a.alignCoordinateValue;(u=a.closestNodes)===null||u===void 0||u.forEach(g=>{(g.x===f||g.x+(g.width||0)/2===f||g.x+(g.width||0)===f)&&c.push(g)});const d=VZ([e,...c],"y"),h=UZ([e,...c],"y");d!==void 0&&h!==void 0&&n.push({x1:f,y1:d,x2:f,y2:h,visible:!0})}),s.forEach((a,l)=>{var u;if(a.alignCoordinateValue===void 0||l===1&&(o.length||r>1))return;const c=[],f=a.alignCoordinateValue;(u=a.closestNodes)===null||u===void 0||u.forEach(g=>{(g.y===f||g.y+(g.height||0)/2===f||g.y+(g.height||0)===f)&&c.push(g)});const d=VZ([e,...c],"x"),h=UZ([e,...c],"x");d!==void 0&&h!==void 0&&o.push({x1:d,y1:f,x2:h,y2:f,visible:!0})}),[...n,...o]};function Ode(...e){return e.reduceRight((t,r)=>n=>t(r(n)),gc)}const YZ=(e,t,r)=>rt?10:0;function p6(e,t){const r=[];return e.nodes.forEach(n=>{t1(n)&&r.push(Object.assign({id:n.id,x:n.x,y:n.y},Df(n,t)))}),r}function EZe(e,t){if(!lu(e.viewport))return e;const r=h=>Math.max(h,Ade(s,e.settings)),n=t.rawEvent,{rect:o}=e.viewport,i=Object.assign({},e),s=e.data.present,a=YZ(o.left,o.right,n.clientX),l=YZ(o.top,o.bottom,n.clientY),u=a!==0||l!==0?.999:1,c=a!==0||a!==0?Ode(u6(-a,-l),l6({scale:u,anchor:wde(o,n),direction:ml.XY,limitScale:r}))(e.viewport):e.viewport,f=vQe(t.dx+a*u,t.dy+l*u,c.transformMatrix),d=Object.assign(Object.assign({},e.dummyNodes),{dx:e.dummyNodes.dx+f.x,dy:e.dummyNodes.dy+f.y,isVisible:t.isVisible});if(t.isAutoAlignEnable){const h=Ede(s.nodes,e.viewport);if(h.lengthObject.assign(Object.assign({},y),{x:y.x+d.dx,y:y.y+d.dy})),v=Nde(g,h,e.settings.graphConfig,e.viewport.transformMatrix[0]>.3?2:5);if(v.length){const y=KZ(v,g,e.settings.graphConfig,"x"),E=KZ(v,g,e.settings.graphConfig,"y");d.alignedDX=d.dx+y,d.alignedDY=d.dy+E}else d.alignedDX=void 0,d.alignedDY=void 0;i.alignmentLines=v}else d.alignedDX=void 0,d.alignedDY=void 0}return i.dummyNodes=d,i.viewport=c,i}function SZe(e,t){if(!e.settings.features.has(at.AutoAlign))return e;const r=e.data.present,n=Ede(r.nodes,e.viewport),o=Nde([t.node],n,e.settings.graphConfig,e.viewport.transformMatrix[0]>.3?2:5);return Object.assign(Object.assign({},e),{alignmentLines:o})}function wZe(e,t){let r=e.data.present;const n=r.nodes.get(t.node.id);if(!n)return e;let o;return t.isMultiSelect?(r=r.selectNodes(i=>i.id===t.node.id||t1(i)),o=p6(r,e.settings.graphConfig)):t1(n)?o=p6(r,e.settings.graphConfig):o=[Object.assign({id:t.node.id,x:t.node.x,y:t.node.y},Df(t.node,e.settings.graphConfig))],Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:r}),dummyNodes:Object.assign(Object.assign({},$g()),{isVisible:!1,nodes:o})})}function kZe(e,t){let r=e.data.present;if(t.isDragCanceled)return Object.assign(Object.assign({},e),{alignmentLines:[],dummyNodes:$g()});const{dx:n,dy:o}=e.dummyNodes;return r=r.updateNodesPositionAndSize(e.dummyNodes.nodes.map(i=>Object.assign(Object.assign({},i),{x:i.x+n,y:i.y+o,width:void 0,height:void 0}))),Object.assign(Object.assign({},e),{alignmentLines:[],dummyNodes:$g(),data:vf(e.data,r,pu())})}function AZe(e,t){const r=t.data.present;if(!lu(t.viewport)||!e.nodes.length)return t;if(e.nodes.length===1){const a=e.nodes[0],l=r.nodes.get(a);if(!l)return t;const{width:u,height:c}=Df(l,t.settings.graphConfig),f=e.type===$t.Centralize?l.x+u/2:l.x,d=e.type===$t.Centralize?l.y+c/2:l.y,{x:h,y:g}=Pg(f,d,t.viewport.transformMatrix),v=e.type===$t.Locate?e.position:void 0;return Object.assign(Object.assign({},t),{viewport:kde(h,g,t.viewport.rect,!0,v)(t.viewport)})}const{minNodeX:n,minNodeY:o,maxNodeX:i,maxNodeY:s}=L9(r,t.settings.graphConfig,new Set(e.nodes));return Object.assign(Object.assign({},t),{viewport:jQe(n,o,i,s,t.viewport)})}const xZe=(e,t)=>{const r=e.data.present;switch(t.type){case $t.ResizingStart:return Object.assign(Object.assign({},e),{dummyNodes:Object.assign(Object.assign({},$g()),{isVisible:!0,nodes:p6(r,e.settings.graphConfig)})});case $t.Resizing:return Object.assign(Object.assign({},e),{dummyNodes:Object.assign(Object.assign({},e.dummyNodes),{dx:t.dx,dy:t.dy,dWidth:t.dWidth,dHeight:t.dHeight})});case $t.ResizingEnd:{const{dx:n,dy:o,dWidth:i,dHeight:s}=e.dummyNodes;return Object.assign(Object.assign({},e),{dummyNodes:$g(),data:vf(e.data,r.updateNodesPositionAndSize(e.dummyNodes.nodes.map(a=>Object.assign(Object.assign({},a),{x:a.x+n,y:a.y+o,width:a.width+i,height:a.height+s}))),pu())})}case $t.DragStart:return wZe(e,t);case $t.Drag:return EZe(e,t);case $t.DragEnd:return kZe(e,t);case $t.PointerEnter:switch(e.behavior){case es.Default:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:r.updateNode(t.node.id,Mn(Of(Mo.Activated)))})});default:return e}case $t.PointerLeave:switch(e.behavior){case es.Default:case es.Connecting:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:r.updateNode(t.node.id,Mn(lE(Mo.Activated)))})});default:return e}case or.DraggingNodeFromItemPanel:return SZe(e,t);case or.DraggingNodeFromItemPanelEnd:return t.node?Object.assign(Object.assign({},e),{alignmentLines:[],data:vf(e.data,e.data.present.insertNode(Object.assign(Object.assign({},t.node),{status:Mo.Selected})),pu())}):Object.assign(Object.assign({},e),{alignmentLines:[]});case $t.Centralize:case $t.Locate:return AZe(t,e);case $t.Add:return Object.assign(Object.assign({},e),{data:vf(e.data,r.insertNode(t.node))});case $t.DoubleClick:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updateNode(t.node.id,Mn(Of(Mo.Editing)))})});default:return e}},TZe=(e,t)=>{switch(t.type){case an.Focus:case an.PointerEnter:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updatePort(t.node.id,t.port.id,Mn(Of(ls.Activated)))})});case an.Blur:case an.PointerLeave:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:e.data.present.updatePort(t.node.id,t.port.id,Mn(lE(ls.Activated)))})});case an.Click:case an.ContextMenu:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:pu()(e.data.present).updatePort(t.node.id,t.port.id,Mn(Of(ls.Selected)))})});default:return e}},XZ=(e,t,r,n)=>{if(!r.width||!r.height)return n;const o=Math.min(r.startX,r.startX+r.width),i=Math.max(r.startX,r.startX+r.width),s=Math.min(r.startY,r.startY+r.height),a=Math.max(r.startY,r.startY+r.height),l=r_(o,s,t),u=r_(i,a,t),c={minX:l.x,minY:l.y,maxX:u.x,maxY:u.y};return n.selectNodes(f=>{const{width:d,height:h}=Df(f,e),g={minX:f.x,minY:f.y,maxX:f.x+d,maxY:f.y+h};return TQe(c,g)})};function IZe(e,t){let r=pu()(e.data.present);if(t.node&&t.port)r=r.updatePort(t.node.id,t.port.id,Mn(Of(ls.Selected)));else if(t.node){const n=t.node.id;r=r.selectNodes(o=>o.id===n)}return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:r})})}const CZe=(e,t)=>{var r,n;const o=e.data.present,i=e.settings.features.has(at.LassoSelect);switch(t.type){case or.Click:case or.ResetSelection:case or.ContextMenu:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:pu()(o)})});case $t.Click:case $t.ContextMenu:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:_Qe(t.rawEvent,t.node)(o)})});case or.SelectStart:{if(!lu(e.viewport))return e;const s=wde(e.viewport.rect,t.rawEvent);return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:pu()(o)}),selectBoxPosition:{startX:s.x,startY:i?0:s.y,width:0,height:0}})}case or.SelectMove:return e.behavior!==es.MultiSelect?e:Object.assign(Object.assign({},e),{selectBoxPosition:Object.assign(Object.assign({},e.selectBoxPosition),{width:e.selectBoxPosition.width+t.dx,height:i?(n=(r=e.viewport.rect)===null||r===void 0?void 0:r.height)!==null&&n!==void 0?n:e.selectBoxPosition.height:e.selectBoxPosition.height+t.dy})});case or.SelectEnd:return Object.assign(Object.assign({},e),{selectBoxPosition:ade(),data:Object.assign(Object.assign({},e.data),{present:XZ(e.settings.graphConfig,e.viewport.transformMatrix,e.selectBoxPosition,o)})});case or.UpdateNodeSelectionBySelectBox:return e.behavior!==es.MultiSelect?e:Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:XZ(e.settings.graphConfig,e.viewport.transformMatrix,e.selectBoxPosition,o)})});case or.Navigate:return IZe(e,t);case $t.SelectAll:return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:o.selectNodes(()=>!0)})});case $t.Select:{const s=new Set(t.nodes);return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{present:o.selectNodes(a=>s.has(a.id))})})}default:return e}};function QZ(e){return{x:e.width/2,y:e.height/2}}function NZe(e,t,r,n){if(!lu(e))return e;if(!n.ensureNodeVisible)return Object.assign(Object.assign({},e),{transformMatrix:j0});const{nodes:o,groups:i}=t;if(o.size===0)return Object.assign(Object.assign({},e),{transformMatrix:j0});const s=h=>_de(h,e),a=o.map(h=>bde(h,r));if(a.find(s))return Object.assign(Object.assign({},e),{transformMatrix:j0});const u=i.map(h=>XXe(h,o,r));if(u.find(s))return Object.assign(Object.assign({},e),{transformMatrix:j0});let f=a.first();const d=h=>{f.y>h.y&&(f=h)};return a.forEach(d),u.forEach(d),Object.assign(Object.assign({},e),{transformMatrix:[1,0,0,1,-f.x,-f.y]})}function RZe(e,t,r,n){if(!lu(e))return e;const{graphConfig:o,nodeMaxVisibleSize:i,nodeMinVisibleSize:s}=r,a=LQe(Object.assign(Object.assign({},n),{data:t,graphConfig:o,rect:e.rect,nodeMaxVisibleSize:i,nodeMinVisibleSize:s}));return Object.assign(Object.assign({},e),{transformMatrix:a})}const OZe=(e,t,r,n)=>{var o,i,s,a;const{graphConfig:l,canvasBoundaryPadding:u,features:c}=n,f=d=>Math.max(d,Ade(r,n));switch(t.type){case or.ViewportResize:return Object.assign(Object.assign({},e),{rect:t.viewportRect});case or.Zoom:return lu(e)?l6({scale:t.scale,anchor:(o=t.anchor)!==null&&o!==void 0?o:QZ(e.rect),direction:t.direction,limitScale:f})(e):e;case d6.Scroll:case or.MouseWheelScroll:case or.Pan:case or.Drag:{if(!lu(e))return e;const{transformMatrix:d,rect:h}=e;let{dx:g,dy:v}=t;const y=c.has(at.LimitBoundary),E=(s=(i=r.groups)===null||i===void 0?void 0:i[0])===null||s===void 0?void 0:s.padding;if(y){const{minX:_,maxX:S,minY:b,maxY:k}=HQe({data:r,graphConfig:l,rect:h,transformMatrix:d,canvasBoundaryPadding:u,groupPadding:E});g=PZ(_-d[4],S-d[4],g),v=PZ(b-d[5],k-d[5],v)}return u6(g,v)(e)}case or.Pinch:{const{dx:d,dy:h,scale:g,anchor:v}=t;return Ode(u6(d,h),l6({scale:g,anchor:v,limitScale:f}))(e)}case h6.Pan:return BQe(t.dx,t.dy)(e);case or.ResetViewport:return NZe(e,r,l,t);case or.ZoomTo:return lu(e)?a6({scale:t.scale,anchor:(a=t.anchor)!==null&&a!==void 0?a:QZ(e.rect),direction:t.direction,limitScale:f})(e):e;case or.ZoomToFit:return RZe(e,r,n,t);case or.ScrollIntoView:if(e.rect){const{x:d,y:h}=Pg(t.x,t.y,e.transformMatrix);return kde(d,h,e.rect,!0)(e)}return e;default:return e}},DZe=(e,t)=>{const r=OZe(e.viewport,t,e.data.present,e.settings);return r===e.viewport?e:Object.assign(Object.assign({},e),{viewport:r})},ZZ=Cde([fZe,DZe,xZe,TZe,vZe,dZe,pZe,CZe,gZe].map(e=>t=>(r,n)=>t(e(r,n),n)));function FZe(e=void 0,t=gc){return(e?Cde([e,ZZ]):ZZ)(t)}class BZe{constructor(t){this.target=t}off(t,r){switch(t){case"move":this.target.removeEventListener("mousemove",r);break;case"end":this.target.removeEventListener("mouseup",r);break}return this}on(t,r){switch(t){case"move":this.target.addEventListener("mousemove",r);break;case"end":this.target.addEventListener("mouseup",r);break}return this}}const MZe=(e,t)=>{const r=nZe();return A.useCallback(n=>o=>{o.preventDefault(),o.stopPropagation(),t.trigger({type:$t.ResizingStart,rawEvent:o,node:e});const i=new lZe(new BZe(r.getGlobalEventTarget()),uZe);i.onMove=({totalDX:s,totalDY:a,e:l})=>{t.trigger(Object.assign({type:$t.Resizing,rawEvent:l,node:e,dx:0,dy:0,dWidth:0,dHeight:0},n(s,a)))},i.onEnd=({e:s})=>{t.trigger({type:$t.ResizingEnd,rawEvent:s,node:e})},t.trigger({type:$t.ResizingStart,rawEvent:o,node:e}),i.start(o.nativeEvent)},[t,r,e])},LZe=()=>({x1:0,y1:0,x2:0,y2:0,visible:!1}),jZe=e=>{var t;const{line:r,style:n}=e,o=Object.assign(Object.assign({strokeWidth:1},n),{stroke:r.visible?(t=n==null?void 0:n.stroke)!==null&&t!==void 0?t:"#ea4300":"none"});return N.jsx("line",{className:"auto-align-hint",x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2,style:o})},zZe=A.memo(({style:e})=>{const t=oZe();return N.jsx(N.Fragment,{children:t.map((r,n)=>r.visible?N.jsx(jZe,{line:r,style:e},n):null)})});zZe.displayName="AlignmentLines";const HZe=e=>{var t,r;const n=A.useContext(Tde);return N.jsx(N.Fragment,{children:(r=(t=n.renderNodeFrame)===null||t===void 0?void 0:t.call(n,e))!==null&&r!==void 0?r:e.children})},$Ze=e=>{var t,r;const n=A.useContext(Tde);return N.jsx(N.Fragment,{children:(r=(t=n.renderNodeResizeHandler)===null||t===void 0?void 0:t.call(n,e))!==null&&r!==void 0?r:e.children})},PZe={NodeFrame:HZe,NodeResizeHandler:$Ze},qZe=e=>{const{autoAttachLine:t,connectingLine:r,styles:n}=e,o=(n==null?void 0:n.stroke)||os.primaryColor,i=(n==null?void 0:n.fill)||"none",s=(n==null?void 0:n.strokeDasharray)||"4,4",a=r.visible?o:"none";return N.jsxs("g",{children:[N.jsx("defs",{children:N.jsx("marker",Object.assign({id:"markerArrow",markerWidth:"10",markerHeight:"10",refX:"6",refY:"5",orient:"auto",markerUnits:"strokeWidth"},{children:N.jsx("path",{d:"M0,0 L6,5 L0,10",style:{stroke:a,fill:"none"}})}))}),N.jsx("line",{x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2,style:{stroke:a,fill:i,strokeDasharray:s},markerEnd:"url(#markerArrow)"}),N.jsx("path",{d:sde(t.x2,t.x1,t.y2,t.y1),style:{stroke:t.visible?o:"none",fill:"none"}})]})},WZe=A.memo(e=>{const{styles:t,graphConfig:r,viewport:n,movingPoint:o}=e,{sourcePort:i,sourceNode:s,targetPort:a,targetNode:l}=iZe();if(!s||!i)return null;const u=s.getPortPosition(i.id,r);let c,f=!1;if(l&&a?(f=!0,c=l==null?void 0:l.getPortPosition(a.id,r)):c=u,!u||!c)return null;const d=Pg(u.x,u.y,n.transformMatrix),h=Pg(c.x,c.y,n.transformMatrix),g=o?{x1:d.x,y1:d.y,x2:o.x,y2:o.y,visible:!f}:LZe(),v={x1:d.x,y1:d.y,x2:h.x,y2:h.y,visible:f};return N.jsx(qZe,{connectingLine:g,autoAttachLine:v,styles:t})});WZe.displayName="Connecting";const f3=10,JZ={position:"absolute",cursor:"initial"};VXe({verticalScrollWrapper:Object.assign(Object.assign({},JZ),{height:"100%",width:f3,top:0,right:0}),horizontalScrollWrapper:Object.assign(Object.assign({},JZ),{height:f3,width:"100%",bottom:0,left:0}),verticalScrollStyle:e=>({height:e.scrollbarLayout.verticalScrollHeight,width:"100%",backgroundColor:os.scrollbarColor,position:"absolute",top:0,right:0,transform:`translateY(${e.scrollbarLayout.verticalScrollTop}px)`}),horizontalScrollStyle:e=>({width:e.scrollbarLayout.horizontalScrollWidth-f3,height:"100%",backgroundColor:os.scrollbarColor,position:"absolute",left:0,bottom:0,transform:`translateX(${e.scrollbarLayout.horizontalScrollLeft}px)`})});function GZe(e,t,{minX:r,minY:n,maxX:o,maxY:i},s,a,l,u){return e.x===t.x?{x:e.x,y:e.y=n?{x:o,y:s}:{x:l,y:n}:e.yr?{x:a,y:i}:{x:r,y:u}:u>n?{x:r,y:u}:{x:l,y:n}}const Dde=A.memo(e=>{var t;const{edge:r,data:n,eventChannel:o,source:i,target:s,graphId:a}=e,l=vp(),u=Ide(),{viewport:c,renderedArea:f,visibleArea:d}=u,h=I=>C=>{C.persist(),o.trigger({type:I,edge:r,rawEvent:C})},g=L0(f,i),v=L0(f,s),y=g&&v;if(A.useLayoutEffect(()=>{y&&u.renderedEdges.add(r.id)},[u]),!y)return null;const E=l.getEdgeConfig(r);if(!E)return Qh.warn(`invalid edge ${JSON.stringify(r)}`),null;if(!E.render)return Qh.warn(`Missing "render" method in edge config ${JSON.stringify(r)}`),null;const _=L0(d,i),S=L0(d,s);let b=E.render({model:r,data:n,x1:i.x,y1:i.y,x2:s.x,y2:s.y,viewport:c});if(gp(Oi.ConnectedToSelected)(r.status)&&(!_||!S)){const I=qZ(i.x,i.y,s.x,s.y),C=qZ(i.y,i.x,s.y,s.x),R=_?i:s,D=_?s:i,L=I(d.maxX),M=C(d.maxY),W=C(d.minY),z=I(d.minX),F=GZe(R,D,d,L,M,W,z);_&&E.renderWithTargetHint?b=E.renderWithTargetHint({model:r,data:n,x1:i.x,y1:i.y,x2:F.x,y2:F.y,viewport:c}):S&&E.renderWithSourceHint&&(b=E.renderWithSourceHint({model:r,data:n,x1:F.x,y1:F.y,x2:s.x,y2:s.y,viewport:c}))}const k=AQe(a,r),T=`edge-container-${r.id}`,x=(t=r.automationId)!==null&&t!==void 0?t:T;return N.jsx("g",Object.assign({id:k,onClick:h(dn.Click),onDoubleClick:h(dn.DoubleClick),onMouseDown:h(dn.MouseDown),onMouseUp:h(dn.MouseUp),onMouseEnter:h(dn.MouseEnter),onMouseLeave:h(dn.MouseLeave),onContextMenu:h(dn.ContextMenu),onMouseMove:h(dn.MouseMove),onMouseOver:h(dn.MouseOver),onMouseOut:h(dn.MouseOut),onFocus:void 0,onBlur:void 0,className:T,"data-automation-id":x},{children:b}))});function Fde(e,t){return e.node===t.node}const Bde=A.memo(e=>{var t,r;const{node:n,data:o}=e,i=dE(e,["node","data"]),s=vp(),a=[],l=n.valueCount;for(let f=0;f{const{data:t,node:r}=e,n=dE(e,["data","node"]),o=vp();return N.jsx(N.Fragment,{children:r.values.map(i=>{var s,a;const l=(s=t.nodes.get(i.source))===null||s===void 0?void 0:s.getPortPosition(i.sourcePortId,o),u=(a=t.nodes.get(i.target))===null||a===void 0?void 0:a.getPortPosition(i.targetPortId,o);return l&&u?A.createElement(Dde,Object.assign({},n,{key:i.id,data:t,edge:i,source:l,target:u})):null})})},Fde);Mde.displayName="EdgeHashCollisionNodeRender";const KZe=mi({svg:[{position:"absolute",overflow:"hidden",top:0,left:0,width:"100%",height:"100%"},{"&:focus":{outline:"none"}}],node:{cursor:"move"},container:{position:"relative",width:"100%",height:"100%",overflow:"hidden",touchAction:"none"},buttonA11Y:{opacity:0,width:0,height:0,overflow:"hidden"},addingNodeSvg:{zIndex:1e6,position:"fixed",left:0,top:0,width:"100%",height:"100%"},moduleItem:{userSelect:"none",cursor:"pointer"},minimap:{height:320,width:320,userSelect:"none",touchAction:"none"},minimapSvg:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}}),VZe=e=>{var t;const{node:r,eventChannel:n,getNodeAriaLabel:o,viewport:i,graphId:s}=e,a=vp(),l=uE(r,a),u=h=>g=>{g.persist();const v={type:h,node:r,rawEvent:g};n.trigger(v)},c=h=>{h.persist();const g=gde(h);n.trigger({type:$t.Click,rawEvent:h,isMultiSelect:g,node:r})},f=wQe(s,r),d=(t=r.automationId)!==null&&t!==void 0?t:EQe(r);return l!=null&&l.render?N.jsx("g",Object.assign({id:f,focusable:"true",tabIndex:0,className:KZe.node,onPointerDown:u($t.PointerDown),onPointerEnter:u($t.PointerEnter),onPointerMove:u($t.PointerMove),onPointerLeave:u($t.PointerLeave),onPointerUp:u($t.PointerUp),onDoubleClick:u($t.DoubleClick),onMouseDown:u($t.MouseDown),onMouseUp:u($t.MouseUp),onMouseEnter:u($t.MouseEnter),onMouseLeave:u($t.MouseLeave),onContextMenu:u($t.ContextMenu),onMouseMove:u($t.MouseMove),onMouseOver:u($t.MouseOver),onMouseOut:u($t.MouseOut),onClick:c,onKeyDown:u($t.KeyDown),"aria-label":o(r),role:"group","aria-roledescription":"node","data-automation-id":d},{children:N.jsx("g",Object.assign({className:"node-box-container"},{children:l.render({model:r,viewport:i})}))})):null},h0=8,p0=8,dd=({x:e,y:t,cursor:r,onMouseDown:n})=>N.jsx(PZe.NodeResizeHandler,Object.assign({x:e,y:t,cursor:r,onMouseDown:n},{children:N.jsx("rect",{x:e,y:t,height:p0,width:h0,stroke:os.controlPointColor,fill:"transparent",cursor:r,onMouseDown:n})})),Xa=15,UZe=e=>{var t,r;const{node:n,getMouseDown:o}=e,i=vp(),s=uE(n,i),a=(t=s==null?void 0:s.getMinWidth(n))!==null&&t!==void 0?t:0,l=(r=s==null?void 0:s.getMinHeight(n))!==null&&r!==void 0?r:0,u=fE(s,n),c=cE(s,n),f=o((S,b)=>{const k=Math.min(S,c-a),T=Math.min(b,u-l);return{dx:+k,dy:+T,dWidth:-k,dHeight:-T}}),d=o((S,b)=>{const k=Math.min(b,u-l);return{dy:+k,dHeight:-k}}),h=o((S,b)=>{const k=Math.max(S,a-c),T=Math.min(b,u-l);return{dy:+T,dWidth:+k,dHeight:-T}}),g=o(S=>({dWidth:+Math.max(S,a-c)})),v=o((S,b)=>{const k=Math.max(S,a-c),T=Math.max(b,l-u);return{dWidth:+k,dHeight:+T}}),y=o((S,b)=>({dHeight:+Math.max(b,l-u)})),E=o((S,b)=>{const k=Math.min(S,c-a),T=Math.max(b,l-u);return{dx:+k,dWidth:-k,dHeight:+T}}),_=o(S=>{const b=Math.min(S,c-a);return{dx:b,dWidth:-b}});return N.jsxs(N.Fragment,{children:[N.jsx(dd,{cursor:"nw-resize",x:n.x-Xa,y:n.y-Xa-p0,onMouseDown:f},"nw-resize"),N.jsx(dd,{x:n.x+c/2-h0/2,y:n.y-Xa-p0,cursor:"n-resize",onMouseDown:d},"n-resize"),N.jsx(dd,{x:n.x+c+Xa-h0,y:n.y-Xa-p0,cursor:"ne-resize",onMouseDown:h},"ne-resize"),N.jsx(dd,{x:n.x+c+Xa-h0,y:n.y+u/2-p0/2,cursor:"e-resize",onMouseDown:g},"e-resize"),N.jsx(dd,{x:n.x+c+Xa-h0,y:n.y+u+Xa,cursor:"se-resize",onMouseDown:v},"se-resize"),N.jsx(dd,{x:n.x+c/2-h0/2,y:n.y+u+Xa,cursor:"s-resize",onMouseDown:y},"s-resize"),N.jsx(dd,{x:n.x-Xa,y:n.y+u+Xa,cursor:"sw-resize",onMouseDown:E},"sw-resize"),N.jsx(dd,{x:n.x-Xa,y:n.y+u/2-p0/2,cursor:"w-resize",onMouseDown:_},"w-resize")]})},YZe=e=>{const{data:t,node:r,getPortAriaLabel:n,eventChannel:o,viewport:i,graphId:s}=e,a=vp(),l=r.ports;if(!l)return null;const u=(c,f)=>d=>{d.persist(),o.trigger({type:c,node:r,port:f,rawEvent:d})};return N.jsx("g",{children:l.map(c=>{var f;const d=a.getPortConfig(c);if(!d||!d.render)return Qh.warn(`invalid port config ${r.id}:${r.name} - ${c.id}:${c.name}`),null;const h=r.getPortPosition(c.id,a);if(!h)return null;const g=kQe(s,r,c),v=(f=c.automationId)!==null&&f!==void 0?f:SQe(c,r);return N.jsx("g",Object.assign({id:g,tabIndex:0,focusable:"true",onPointerDown:u(an.PointerDown,c),onPointerUp:u(an.PointerUp,c),onDoubleClick:u(an.DoubleClick,c),onMouseDown:u(an.MouseDown,c),onMouseUp:u(an.MouseUp,c),onContextMenu:u(an.ContextMenu,c),onPointerEnter:u(an.PointerEnter,c),onPointerLeave:u(an.PointerLeave,c),onMouseMove:u(an.MouseMove,c),onMouseOver:u(an.MouseOver,c),onMouseOut:u(an.MouseOut,c),onFocus:u(an.Focus,c),onBlur:u(an.Blur,c),onKeyDown:u(an.KeyDown,c),onClick:u(an.Click,c),"aria-label":n(t,r,c),role:"group","aria-roledescription":"port","data-automation-id":v},{children:N.jsx(nj.Consumer,{children:({sourceNode:y,sourcePort:E})=>d==null?void 0:d.render(Object.assign({model:c,data:t,parentNode:r,anotherNode:y,anotherPort:E,viewport:i},h))})}),g)})})},XZe=e=>{var{node:t,isNodeResizable:r,renderNodeAnchors:n}=e,o=dE(e,["node","isNodeResizable","renderNodeAnchors"]);const i=Ide(),{renderedArea:s,viewport:a}=i,l=MZe(t,o.eventChannel),u=L0(s,t);if(A.useLayoutEffect(()=>{u&&i.renderedEdges.add(t.id)},[i]),!u)return null;let c;if(r&&Z7(t)){const f=N.jsx(UZe,{node:t,getMouseDown:l});c=n?n(t,l,f):f}return N.jsxs(N.Fragment,{children:[N.jsx(VZe,Object.assign({},o,{node:t,viewport:a})),N.jsx(YZe,Object.assign({},o,{node:t,viewport:a})),c]})},QZe=A.memo(XZe),Lde=A.memo(e=>{var{node:t}=e,r=dE(e,["node"]);const n=t.values.map(i=>{const s=i[1];return N.jsx(QZe,Object.assign({node:s},r),s.id)}),o=t.type===iu.Internal?t.children.map((i,s)=>{const a=se.node===t.node);Lde.displayName="NodeTreeNode";const ZZe=document.createElement("div");document.body.appendChild(ZZe);const JZe=e=>{const{node:t}=e,r=vp(),n=uE(t,r);if(n!=null&&n.renderStatic)return N.jsx("g",{children:n.renderStatic({model:t})});const o=fE(n,t),i=cE(n,t);return N.jsx("rect",{transform:`translate(${t.x}, ${t.y})`,height:o,width:i,fill:os.dummyNodeStroke})},eJe=A.memo(JZe,(e,t)=>{const r=e.node,n=t.node;return r.x===n.x&&r.y===n.y&&r.height===n.height&&r.width===n.width&&r.isInSearchResults===n.isInSearchResults&&r.isCurrentSearchResult===n.isCurrentSearchResult}),jde=A.memo(({node:e})=>{const t=e.values.map(n=>N.jsx(eJe,{node:n[1]},n[1].id)),r=e.type===iu.Internal?e.children.map((n,o)=>{const i=o>>0;if(""+r!==t||r===4294967295)return NaN;t=r}return t<0?qg(e)+t:t}function zde(){return!0}function j9(e,t,r){return(e===0&&!$de(e)||r!==void 0&&e<=-r)&&(t===void 0||r!==void 0&&t>=r)}function pE(e,t){return Hde(e,t,0)}function z9(e,t){return Hde(e,t,t)}function Hde(e,t,r){return e===void 0?r:$de(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function $de(e){return e<0||e===0&&1/e===-1/0}var Pde="@@__IMMUTABLE_ITERABLE__@@";function Ps(e){return!!(e&&e[Pde])}var qde="@@__IMMUTABLE_KEYED__@@";function Bn(e){return!!(e&&e[qde])}var Wde="@@__IMMUTABLE_INDEXED__@@";function js(e){return!!(e&&e[Wde])}function H9(e){return Bn(e)||js(e)}var po=function(t){return Ps(t)?t:Ia(t)},Rl=function(e){function t(r){return Bn(r)?r:O1(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(po),mp=function(e){function t(r){return js(r)?r:Eu(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(po),Tv=function(e){function t(r){return Ps(r)&&!H9(r)?r:Rv(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(po);po.Keyed=Rl;po.Indexed=mp;po.Set=Tv;var Gde="@@__IMMUTABLE_SEQ__@@";function ij(e){return!!(e&&e[Gde])}var Kde="@@__IMMUTABLE_RECORD__@@";function Iv(e){return!!(e&&e[Kde])}function Cc(e){return Ps(e)||Iv(e)}var Cv="@@__IMMUTABLE_ORDERED__@@";function uu(e){return!!(e&&e[Cv])}var gE=0,gu=1,wl=2,v6=typeof Symbol=="function"&&Symbol.iterator,Vde="@@iterator",$9=v6||Vde,zr=function(t){this.next=t};zr.prototype.toString=function(){return"[Iterator]"};zr.KEYS=gE;zr.VALUES=gu;zr.ENTRIES=wl;zr.prototype.inspect=zr.prototype.toSource=function(){return this.toString()};zr.prototype[$9]=function(){return this};function Ln(e,t,r,n){var o=e===0?t:e===1?r:[t,r];return n?n.value=o:n={value:o,done:!1},n}function qs(){return{value:void 0,done:!0}}function Ude(e){return Array.isArray(e)?!0:!!P9(e)}function eJ(e){return e&&typeof e.next=="function"}function m6(e){var t=P9(e);return t&&t.call(e)}function P9(e){var t=e&&(v6&&e[v6]||e[Vde]);if(typeof t=="function")return t}function tJe(e){var t=P9(e);return t&&t===e.entries}function rJe(e){var t=P9(e);return t&&t===e.keys}var Nv=Object.prototype.hasOwnProperty;function Yde(e){return Array.isArray(e)||typeof e=="string"?!0:e&&typeof e=="object"&&Number.isInteger(e.length)&&e.length>=0&&(e.length===0?Object.keys(e).length===1:e.hasOwnProperty(e.length-1))}var Ia=function(e){function t(r){return r==null?aj():Cc(r)?r.toSeq():oJe(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(n,o){var i=this._cache;if(i){for(var s=i.length,a=0;a!==s;){var l=i[o?s-++a:a++];if(n(l[1],l[0],this)===!1)break}return a}return this.__iterateUncached(n,o)},t.prototype.__iterator=function(n,o){var i=this._cache;if(i){var s=i.length,a=0;return new zr(function(){if(a===s)return qs();var l=i[o?s-++a:a++];return Ln(n,l[0],l[1])})}return this.__iteratorUncached(n,o)},t}(po),O1=function(e){function t(r){return r==null?aj().toKeyedSeq():Ps(r)?Bn(r)?r.toSeq():r.fromEntrySeq():Iv(r)?r.toSeq():lj(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Ia),Eu=function(e){function t(r){return r==null?aj():Ps(r)?Bn(r)?r.entrySeq():r.toIndexedSeq():Iv(r)?r.toSeq().entrySeq():Xde(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(Ia),Rv=function(e){function t(r){return(Ps(r)&&!H9(r)?r:Eu(r)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(Ia);Ia.isSeq=ij;Ia.Keyed=O1;Ia.Set=Rv;Ia.Indexed=Eu;Ia.prototype[Gde]=!0;var Zh=function(e){function t(r){this._array=r,this.size=r.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,o){return this.has(n)?this._array[v1(this,n)]:o},t.prototype.__iterate=function(n,o){for(var i=this._array,s=i.length,a=0;a!==s;){var l=o?s-++a:a++;if(n(i[l],l,this)===!1)break}return a},t.prototype.__iterator=function(n,o){var i=this._array,s=i.length,a=0;return new zr(function(){if(a===s)return qs();var l=o?s-++a:a++;return Ln(n,l,i[l])})},t}(Eu),sj=function(e){function t(r){var n=Object.keys(r).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r):[]);this._object=r,this._keys=n,this.size=n.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,o){return o!==void 0&&!this.has(n)?o:this._object[n]},t.prototype.has=function(n){return Nv.call(this._object,n)},t.prototype.__iterate=function(n,o){for(var i=this._object,s=this._keys,a=s.length,l=0;l!==a;){var u=s[o?a-++l:l++];if(n(i[u],u,this)===!1)break}return l},t.prototype.__iterator=function(n,o){var i=this._object,s=this._keys,a=s.length,l=0;return new zr(function(){if(l===a)return qs();var u=s[o?a-++l:l++];return Ln(n,u,i[u])})},t}(O1);sj.prototype[Cv]=!0;var nJe=function(e){function t(r){this._collection=r,this.size=r.length||r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(n,o){if(o)return this.cacheResult().__iterate(n,o);var i=this._collection,s=m6(i),a=0;if(eJ(s))for(var l;!(l=s.next()).done&&n(l.value,a++,this)!==!1;);return a},t.prototype.__iteratorUncached=function(n,o){if(o)return this.cacheResult().__iterator(n,o);var i=this._collection,s=m6(i);if(!eJ(s))return new zr(qs);var a=0;return new zr(function(){var l=s.next();return l.done?l:Ln(n,a++,l.value)})},t}(Eu),tJ;function aj(){return tJ||(tJ=new Zh([]))}function lj(e){var t=uj(e);if(t)return t.fromEntrySeq();if(typeof e=="object")return new sj(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function Xde(e){var t=uj(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function oJe(e){var t=uj(e);if(t)return tJe(e)?t.fromEntrySeq():rJe(e)?t.toSetSeq():t;if(typeof e=="object")return new sj(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}function uj(e){return Yde(e)?new Zh(e):Ude(e)?new nJe(e):void 0}var Qde="@@__IMMUTABLE_MAP__@@";function cj(e){return!!(e&&e[Qde])}function Zde(e){return cj(e)&&uu(e)}function rJ(e){return!!(e&&typeof e.equals=="function"&&typeof e.hashCode=="function")}function va(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf=="function"&&typeof t.valueOf=="function"){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(rJ(e)&&rJ(t)&&e.equals(t))}var $m=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(t,r){t|=0,r|=0;var n=t&65535,o=r&65535;return n*o+((t>>>16)*o+n*(r>>>16)<<16>>>0)|0};function q9(e){return e>>>1&1073741824|e&3221225471}var iJe=Object.prototype.valueOf;function la(e){if(e==null)return nJ(e);if(typeof e.hashCode=="function")return q9(e.hashCode(e));var t=fJe(e);if(t==null)return nJ(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return sJe(t);case"string":return t.length>dJe?aJe(t):y6(t);case"object":case"function":return uJe(t);case"symbol":return lJe(t);default:if(typeof t.toString=="function")return y6(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function nJ(e){return e===null?1108378658:1108378659}function sJe(e){if(e!==e||e===1/0)return 0;var t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)e/=4294967295,t^=e;return q9(t)}function aJe(e){var t=p3[e];return t===void 0&&(t=y6(e),h3===hJe&&(h3=0,p3={}),h3++,p3[e]=t),t}function y6(e){for(var t=0,r=0;r0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function fJe(e){return e.valueOf!==iJe&&typeof e.valueOf=="function"?e.valueOf(e):e}function Jde(){var e=++d3;return d3&1073741824&&(d3=0),e}var b6=typeof WeakMap=="function",_6;b6&&(_6=new WeakMap);var sJ=Object.create(null),d3=0,mh="__immutablehash__";typeof Symbol=="function"&&(mh=Symbol(mh));var dJe=16,hJe=255,h3=0,p3={},W9=function(e){function t(r,n){this._iter=r,this._useKeys=n,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,o){return this._iter.get(n,o)},t.prototype.has=function(n){return this._iter.has(n)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var n=this,o=fj(this,!0);return this._useKeys||(o.valueSeq=function(){return n._iter.toSeq().reverse()}),o},t.prototype.map=function(n,o){var i=this,s=o1e(this,n,o);return this._useKeys||(s.valueSeq=function(){return i._iter.toSeq().map(n,o)}),s},t.prototype.__iterate=function(n,o){var i=this;return this._iter.__iterate(function(s,a){return n(s,a,i)},o)},t.prototype.__iterator=function(n,o){return this._iter.__iterator(n,o)},t}(O1);W9.prototype[Cv]=!0;var e1e=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(n){return this._iter.includes(n)},t.prototype.__iterate=function(n,o){var i=this,s=0;return o&&qg(this),this._iter.__iterate(function(a){return n(a,o?i.size-++s:s++,i)},o)},t.prototype.__iterator=function(n,o){var i=this,s=this._iter.__iterator(gu,o),a=0;return o&&qg(this),new zr(function(){var l=s.next();return l.done?l:Ln(n,o?i.size-++a:a++,l.value,l)})},t}(Eu),t1e=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(n){return this._iter.includes(n)},t.prototype.__iterate=function(n,o){var i=this;return this._iter.__iterate(function(s){return n(s,s,i)},o)},t.prototype.__iterator=function(n,o){var i=this._iter.__iterator(gu,o);return new zr(function(){var s=i.next();return s.done?s:Ln(n,s.value,s.value,s)})},t}(Rv),r1e=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(n,o){var i=this;return this._iter.__iterate(function(s){if(s){lJ(s);var a=Ps(s);return n(a?s.get(1):s[1],a?s.get(0):s[0],i)}},o)},t.prototype.__iterator=function(n,o){var i=this._iter.__iterator(gu,o);return new zr(function(){for(;;){var s=i.next();if(s.done)return s;var a=s.value;if(a){lJ(a);var l=Ps(a);return Ln(n,l?a.get(0):a[0],l?a.get(1):a[1],s)}}})},t}(O1);e1e.prototype.cacheResult=W9.prototype.cacheResult=t1e.prototype.cacheResult=r1e.prototype.cacheResult=pj;function n1e(e){var t=Nc(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var r=e.reverse.apply(this);return r.flip=function(){return e.reverse()},r},t.has=function(r){return e.includes(r)},t.includes=function(r){return e.has(r)},t.cacheResult=pj,t.__iterateUncached=function(r,n){var o=this;return e.__iterate(function(i,s){return r(s,i,o)!==!1},n)},t.__iteratorUncached=function(r,n){if(r===wl){var o=e.__iterator(r,n);return new zr(function(){var i=o.next();if(!i.done){var s=i.value[0];i.value[0]=i.value[1],i.value[1]=s}return i})}return e.__iterator(r===gu?gE:gu,n)},t}function o1e(e,t,r){var n=Nc(e);return n.size=e.size,n.has=function(o){return e.has(o)},n.get=function(o,i){var s=e.get(o,kr);return s===kr?i:t.call(r,s,o,e)},n.__iterateUncached=function(o,i){var s=this;return e.__iterate(function(a,l,u){return o(t.call(r,a,l,u),l,s)!==!1},i)},n.__iteratorUncached=function(o,i){var s=e.__iterator(wl,i);return new zr(function(){var a=s.next();if(a.done)return a;var l=a.value,u=l[0];return Ln(o,u,t.call(r,l[1],u,e),a)})},n}function fj(e,t){var r=this,n=Nc(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var o=n1e(e);return o.reverse=function(){return e.flip()},o}),n.get=function(o,i){return e.get(t?o:-1-o,i)},n.has=function(o){return e.has(t?o:-1-o)},n.includes=function(o){return e.includes(o)},n.cacheResult=pj,n.__iterate=function(o,i){var s=this,a=0;return i&&qg(e),e.__iterate(function(l,u){return o(l,t?u:i?s.size-++a:a++,s)},!i)},n.__iterator=function(o,i){var s=0;i&&qg(e);var a=e.__iterator(wl,!i);return new zr(function(){var l=a.next();if(l.done)return l;var u=l.value;return Ln(o,t?u[0]:i?r.size-++s:s++,u[1],l)})},n}function i1e(e,t,r,n){var o=Nc(e);return n&&(o.has=function(i){var s=e.get(i,kr);return s!==kr&&!!t.call(r,s,i,e)},o.get=function(i,s){var a=e.get(i,kr);return a!==kr&&t.call(r,a,i,e)?a:s}),o.__iterateUncached=function(i,s){var a=this,l=0;return e.__iterate(function(u,c,f){if(t.call(r,u,c,f))return l++,i(u,n?c:l-1,a)},s),l},o.__iteratorUncached=function(i,s){var a=e.__iterator(wl,s),l=0;return new zr(function(){for(;;){var u=a.next();if(u.done)return u;var c=u.value,f=c[0],d=c[1];if(t.call(r,d,f,e))return Ln(i,n?f:l++,d,u)}})},o}function pJe(e,t,r){var n=vc().asMutable();return e.__iterate(function(o,i){n.update(t.call(r,o,i,e),0,function(s){return s+1})}),n.asImmutable()}function gJe(e,t,r){var n=Bn(e),o=(uu(e)?ma():vc()).asMutable();e.__iterate(function(s,a){o.update(t.call(r,s,a,e),function(l){return l=l||[],l.push(n?[a,s]:s),l})});var i=hj(e);return o.map(function(s){return ln(e,i(s))}).asImmutable()}function vJe(e,t,r){var n=Bn(e),o=[[],[]];e.__iterate(function(s,a){o[t.call(r,s,a,e)?1:0].push(n?[a,s]:s)});var i=hj(e);return o.map(function(s){return ln(e,i(s))})}function dj(e,t,r,n){var o=e.size;if(j9(t,r,o))return e;var i=pE(t,o),s=z9(r,o);if(i!==i||s!==s)return dj(e.toSeq().cacheResult(),t,r,n);var a=s-i,l;a===a&&(l=a<0?0:a);var u=Nc(e);return u.size=l===0?l:e.size&&l||void 0,!n&&ij(e)&&l>=0&&(u.get=function(c,f){return c=v1(this,c),c>=0&&cl)return qs();var v=d.next();return n||c===gu||v.done?v:c===gE?Ln(c,g-1,void 0,v):Ln(c,g-1,v.value[1],v)})},u}function mJe(e,t,r){var n=Nc(e);return n.__iterateUncached=function(o,i){var s=this;if(i)return this.cacheResult().__iterate(o,i);var a=0;return e.__iterate(function(l,u,c){return t.call(r,l,u,c)&&++a&&o(l,u,s)}),a},n.__iteratorUncached=function(o,i){var s=this;if(i)return this.cacheResult().__iterator(o,i);var a=e.__iterator(wl,i),l=!0;return new zr(function(){if(!l)return qs();var u=a.next();if(u.done)return u;var c=u.value,f=c[0],d=c[1];return t.call(r,d,f,s)?o===wl?u:Ln(o,f,d,u):(l=!1,qs())})},n}function s1e(e,t,r,n){var o=Nc(e);return o.__iterateUncached=function(i,s){var a=this;if(s)return this.cacheResult().__iterate(i,s);var l=!0,u=0;return e.__iterate(function(c,f,d){if(!(l&&(l=t.call(r,c,f,d))))return u++,i(c,n?f:u-1,a)}),u},o.__iteratorUncached=function(i,s){var a=this;if(s)return this.cacheResult().__iterator(i,s);var l=e.__iterator(wl,s),u=!0,c=0;return new zr(function(){var f,d,h;do{if(f=l.next(),f.done)return n||i===gu?f:i===gE?Ln(i,c++,void 0,f):Ln(i,c++,f.value[1],f);var g=f.value;d=g[0],h=g[1],u&&(u=t.call(r,h,d,a))}while(u);return i===wl?f:Ln(i,d,h,f)})},o}function yJe(e,t){var r=Bn(e),n=[e].concat(t).map(function(s){return Ps(s)?r&&(s=Rl(s)):s=r?lj(s):Xde(Array.isArray(s)?s:[s]),s}).filter(function(s){return s.size!==0});if(n.length===0)return e;if(n.length===1){var o=n[0];if(o===e||r&&Bn(o)||js(e)&&js(o))return o}var i=new Zh(n);return r?i=i.toKeyedSeq():js(e)||(i=i.toSetSeq()),i=i.flatten(!0),i.size=n.reduce(function(s,a){if(s!==void 0){var l=a.size;if(l!==void 0)return s+l}},0),i}function a1e(e,t,r){var n=Nc(e);return n.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var s=0,a=!1;function l(u,c){u.__iterate(function(f,d){return(!t||c0}function Nw(e,t,r,n){var o=Nc(e),i=new Zh(r).map(function(s){return s.size});return o.size=n?i.max():i.min(),o.__iterate=function(s,a){for(var l=this.__iterator(gu,a),u,c=0;!(u=l.next()).done&&s(u.value,c++,this)!==!1;);return c},o.__iteratorUncached=function(s,a){var l=r.map(function(f){return f=po(f),m6(a?f.reverse():f)}),u=0,c=!1;return new zr(function(){var f;return c||(f=l.map(function(d){return d.next()}),c=n?f.every(function(d){return d.done}):f.some(function(d){return d.done})),c?qs():Ln(s,u++,t.apply(null,f.map(function(d){return d.value})))})},o}function ln(e,t){return e===t?e:ij(e)?t:e.constructor(t)}function lJ(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function hj(e){return Bn(e)?Rl:js(e)?mp:Tv}function Nc(e){return Object.create((Bn(e)?O1:js(e)?Eu:Rv).prototype)}function pj(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Ia.prototype.cacheResult.call(this)}function l1e(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:e>t?1:e0;)t[r]=arguments[r+1];if(typeof e!="function")throw new TypeError("Invalid merger function: "+e);return g1e(this,t,e)}function g1e(e,t,r){for(var n=[],o=0;o0;)t[r]=arguments[r+1];return _j(this,t,e)}function Sj(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return Ov(this,e,ou(),function(n){return Ej(n,t)})}function wj(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return Ov(this,e,ou(),function(n){return _j(n,t)})}function vE(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function mE(){return this.__ownerID?this:this.__ensureOwner(new oj)}function yE(){return this.__ensureOwner()}function kj(){return this.__altered}var vc=function(e){function t(r){return r==null?ou():cj(r)&&!uu(r)?r:ou().withMutations(function(n){var o=e(r);ua(o.size),o.forEach(function(i,s){return n.set(s,i)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return ou().withMutations(function(i){for(var s=0;s=n.length)throw new Error("Missing value for key: "+n[s]);i.set(n[s],n[s+1])}})},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(n,o){return this._root?this._root.get(0,void 0,n,o):o},t.prototype.set=function(n,o){return fJ(this,n,o)},t.prototype.remove=function(n){return fJ(this,n,kr)},t.prototype.deleteAll=function(n){var o=po(n);return o.size===0?this:this.withMutations(function(i){o.forEach(function(s){return i.remove(s)})})},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ou()},t.prototype.sort=function(n){return ma(Wg(this,n))},t.prototype.sortBy=function(n,o){return ma(Wg(this,o,n))},t.prototype.map=function(n,o){var i=this;return this.withMutations(function(s){s.forEach(function(a,l){s.set(l,n.call(o,a,l,i))})})},t.prototype.__iterator=function(n,o){return new NJe(this,n,o)},t.prototype.__iterate=function(n,o){var i=this,s=0;return this._root&&this._root.iterate(function(a){return s++,n(a[1],a[0],i)},o),s},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?Aj(this.size,this._root,n,this.__hash):this.size===0?ou():(this.__ownerID=n,this.__altered=!1,this)},t}(Rl);vc.isMap=cj;var In=vc.prototype;In[Qde]=!0;In[hE]=In.remove;In.removeAll=In.deleteAll;In.setIn=vj;In.removeIn=In.deleteIn=mj;In.update=yj;In.updateIn=bj;In.merge=In.concat=h1e;In.mergeWith=p1e;In.mergeDeep=v1e;In.mergeDeepWith=m1e;In.mergeIn=Sj;In.mergeDeepIn=wj;In.withMutations=vE;In.wasAltered=kj;In.asImmutable=yE;In["@@transducer/init"]=In.asMutable=mE;In["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])};In["@@transducer/result"]=function(e){return e.asImmutable()};var o_=function(t,r){this.ownerID=t,this.entries=r};o_.prototype.get=function(t,r,n,o){for(var i=this.entries,s=0,a=i.length;s=MJe)return RJe(t,u,o,i);var h=t&&t===this.ownerID,g=h?u:Ju(u);return d?l?c===f-1?g.pop():g[c]=g.pop():g[c]=[o,i]:g.push([o,i]),h?(this.entries=g,this):new o_(t,g)}};var Gg=function(t,r,n){this.ownerID=t,this.bitmap=r,this.nodes=n};Gg.prototype.get=function(t,r,n,o){r===void 0&&(r=la(n));var i=1<<((t===0?r:r>>>t)&is),s=this.bitmap;return s&i?this.nodes[y1e(s&i-1)].get(t+wn,r,n,o):o};Gg.prototype.update=function(t,r,n,o,i,s,a){n===void 0&&(n=la(o));var l=(r===0?n:n>>>r)&is,u=1<=LJe)return DJe(t,h,c,l,v);if(f&&!v&&h.length===2&&dJ(h[d^1]))return h[d^1];if(f&&v&&h.length===1&&dJ(v))return v;var y=t&&t===this.ownerID,E=f?v?c:c^u:c|u,_=f?v?b1e(h,d,v,y):BJe(h,d,y):FJe(h,d,v,y);return y?(this.bitmap=E,this.nodes=_,this):new Gg(t,E,_)};var i_=function(t,r,n){this.ownerID=t,this.count=r,this.nodes=n};i_.prototype.get=function(t,r,n,o){r===void 0&&(r=la(n));var i=(t===0?r:r>>>t)&is,s=this.nodes[i];return s?s.get(t+wn,r,n,o):o};i_.prototype.update=function(t,r,n,o,i,s,a){n===void 0&&(n=la(o));var l=(r===0?n:n>>>r)&is,u=i===kr,c=this.nodes,f=c[l];if(u&&!f)return this;var d=xj(f,t,r+wn,n,o,i,s,a);if(d===f)return this;var h=this.count;if(!f)h++;else if(!d&&(h--,h>>r)&is,s=(r===0?n:n>>>r)&is,a,l=i===s?[Tj(e,t,r+wn,n,o)]:(a=new Ff(t,n,o),i>>=1)s[a]=r&1?t[i++]:void 0;return s[n]=o,new i_(e,i+1,s)}function y1e(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function b1e(e,t,r,n){var o=n?e:Ju(e);return o[t]=r,o}function FJe(e,t,r,n){var o=e.length+1;if(n&&t+1===o)return e[t]=r,e;for(var i=new Array(o),s=0,a=0;a0&&i=0&&n>>r&is;if(o>=this.array.length)return new r1([],t);var i=o===0,s;if(r>0){var a=this.array[o];if(s=a&&a.removeBefore(t,r-wn,n),s===a&&i)return this}if(i&&!s)return this;var l=Vg(this,t);if(!i)for(var u=0;u>>r&is;if(o>=this.array.length)return this;var i;if(r>0){var s=this.array[o];if(i=s&&s.removeAfter(t,r-wn,n),i===s&&o===this.array.length-1)return this}var a=Vg(this,t);return a.array.splice(o+1),i&&(a.array[o]=i),a};var eb={};function hJ(e,t){var r=e._origin,n=e._capacity,o=a_(n),i=e._tail;return s(e._root,e._level,0);function s(u,c,f){return c===0?a(u,f):l(u,c,f)}function a(u,c){var f=c===o?i&&i.array:u&&u.array,d=c>r?0:r-c,h=n-c;return h>cl&&(h=cl),function(){if(d===h)return eb;var g=t?--h:d++;return f&&f[g]}}function l(u,c,f){var d,h=u&&u.array,g=f>r?0:r-f>>c,v=(n-f>>c)+1;return v>cl&&(v=cl),function(){for(;;){if(d){var y=d();if(y!==eb)return y;d=null}if(g===v)return eb;var E=t?--v:g++;d=s(h&&h[E],c-wn,f+(E<=e.size||t<0)return e.withMutations(function(s){t<0?xd(s,t).set(0,r):xd(s,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,o=e._root,i=g6();return t>=a_(e._capacity)?n=E6(n,e.__ownerID,0,t,r,i):o=E6(o,e.__ownerID,e._level,t,r,i),i.value?e.__ownerID?(e._root=o,e._tail=n,e.__hash=void 0,e.__altered=!0,e):s_(e._origin,e._capacity,e._level,o,n):e}function E6(e,t,r,n,o,i){var s=n>>>r&is,a=e&&s0){var u=e&&e.array[s],c=E6(u,t,r-wn,n,o,i);return c===u?e:(l=Vg(e,t),l.array[s]=c,l)}return a&&e.array[s]===o?e:(i&&fl(i),l=Vg(e,t),o===void 0&&s===l.array.length-1?l.array.pop():l.array[s]=o,l)}function Vg(e,t){return t&&e&&t===e.ownerID?e:new r1(e?e.array.slice():[],t)}function S1e(e,t){if(t>=a_(e._capacity))return e._tail;if(t<1<0;)r=r.array[t>>>n&is],n-=wn;return r}}function xd(e,t,r){t!==void 0&&(t|=0),r!==void 0&&(r|=0);var n=e.__ownerID||new oj,o=e._origin,i=e._capacity,s=o+t,a=r===void 0?i:r<0?i+r:o+r;if(s===o&&a===i)return e;if(s>=a)return e.clear();for(var l=e._level,u=e._root,c=0;s+c<0;)u=new r1(u&&u.array.length?[void 0,u]:[],n),l+=wn,c+=1<=1<f?new r1([],n):h;if(h&&d>f&&swn;y-=wn){var E=f>>>y&is;v=v.array[E]=Vg(v.array[E],n)}v.array[f>>>wn&is]=h}if(a=d)s-=d,a-=d,l=wn,u=null,g=g&&g.removeBefore(n,0,s);else if(s>o||d>>l&is;if(_!==d>>>l&is)break;_&&(c+=(1<o&&(u=u.removeBefore(n,l,s-c)),u&&d>>wn<=cl&&o.size>=n.size*2?(l=o.filter(function(u,c){return u!==void 0&&i!==c}),a=l.toKeyedSeq().map(function(u){return u[0]}).flip().toMap(),e.__ownerID&&(a.__ownerID=l.__ownerID=e.__ownerID)):(a=n.remove(t),l=i===o.size-1?o.pop():o.set(i,void 0))}else if(s){if(r===o.get(i)[1])return e;a=n,l=o.set(i,[t,r])}else a=n.set(t,o.size),l=o.set(o.size,[t,r]);return e.__ownerID?(e.size=a.size,e._map=a,e._list=l,e.__hash=void 0,e.__altered=!0,e):Ij(a,l)}var w1e="@@__IMMUTABLE_STACK__@@";function S6(e){return!!(e&&e[w1e])}var Cj=function(e){function t(r){return r==null?Rw():S6(r)?r:Rw().pushAll(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(n,o){var i=this._head;for(n=v1(this,n);i&&n--;)i=i.next;return i?i.value:o},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var n=arguments;if(arguments.length===0)return this;for(var o=this.size+arguments.length,i=this._head,s=arguments.length-1;s>=0;s--)i={value:n[s],next:i};return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):_y(o,i)},t.prototype.pushAll=function(n){if(n=e(n),n.size===0)return this;if(this.size===0&&S6(n))return n;ua(n.size);var o=this.size,i=this._head;return n.__iterate(function(s){o++,i={value:s,next:i}},!0),this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):_y(o,i)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Rw()},t.prototype.slice=function(n,o){if(j9(n,o,this.size))return this;var i=pE(n,this.size),s=z9(o,this.size);if(s!==this.size)return e.prototype.slice.call(this,n,o);for(var a=this.size-i,l=this._head;i--;)l=l.next;return this.__ownerID?(this.size=a,this._head=l,this.__hash=void 0,this.__altered=!0,this):_y(a,l)},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?_y(this.size,this._head,n,this.__hash):this.size===0?Rw():(this.__ownerID=n,this.__altered=!1,this)},t.prototype.__iterate=function(n,o){var i=this;if(o)return new Zh(this.toArray()).__iterate(function(l,u){return n(l,u,i)},o);for(var s=0,a=this._head;a&&n(a.value,s++,this)!==!1;)a=a.next;return s},t.prototype.__iterator=function(n,o){if(o)return new Zh(this.toArray()).__iterator(n,o);var i=0,s=this._head;return new zr(function(){if(s){var a=s.value;return s=s.next,Ln(n,i++,a)}return qs()})},t}(mp);Cj.isStack=S6;var ds=Cj.prototype;ds[w1e]=!0;ds.shift=ds.pop;ds.unshift=ds.push;ds.unshiftAll=ds.pushAll;ds.withMutations=vE;ds.wasAltered=kj;ds.asImmutable=yE;ds["@@transducer/init"]=ds.asMutable=mE;ds["@@transducer/step"]=function(e,t){return e.unshift(t)};ds["@@transducer/result"]=function(e){return e.asImmutable()};function _y(e,t,r,n){var o=Object.create(ds);return o.size=e,o._head=t,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}var mJ;function Rw(){return mJ||(mJ=_y(0))}var k1e="@@__IMMUTABLE_SET__@@";function Nj(e){return!!(e&&e[k1e])}function A1e(e){return Nj(e)&&uu(e)}function x1e(e,t){if(e===t)return!0;if(!Ps(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||Bn(e)!==Bn(t)||js(e)!==js(t)||uu(e)!==uu(t))return!1;if(e.size===0&&t.size===0)return!0;var r=!H9(e);if(uu(e)){var n=e.entries();return t.every(function(l,u){var c=n.next().value;return c&&va(c[1],l)&&(r||va(c[0],u))})&&n.next().done}var o=!1;if(e.size===void 0)if(t.size===void 0)typeof e.cacheResult=="function"&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var s=!0,a=t.__iterate(function(l,u){if(r?!e.has(l):o?!va(l,e.get(u,kr)):!va(e.get(u,kr),l))return s=!1,!1});return s&&e.size===a}function yp(e,t){var r=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}function ix(e){if(!e||typeof e!="object")return e;if(!Ps(e)){if(!m1(e))return e;e=Ia(e)}if(Bn(e)){var t={};return e.__iterate(function(n,o){t[o]=ix(n)}),t}var r=[];return e.__iterate(function(n){r.push(ix(n))}),r}var bE=function(e){function t(r){return r==null?Ey():Nj(r)&&!uu(r)?r:Ey().withMutations(function(n){var o=e(r);ua(o.size),o.forEach(function(i){return n.add(i)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(n){return this(Rl(n).keySeq())},t.intersect=function(n){return n=po(n).toArray(),n.length?gi.intersect.apply(t(n.pop()),n):Ey()},t.union=function(n){return n=po(n).toArray(),n.length?gi.union.apply(t(n.pop()),n):Ey()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(n){return this._map.has(n)},t.prototype.add=function(n){return Ow(this,this._map.set(n,n))},t.prototype.remove=function(n){return Ow(this,this._map.remove(n))},t.prototype.clear=function(){return Ow(this,this._map.clear())},t.prototype.map=function(n,o){var i=this,s=!1,a=Ow(this,this._map.mapEntries(function(l){var u=l[1],c=n.call(o,u,u,i);return c!==u&&(s=!0),[c,c]},o));return s?a:this},t.prototype.union=function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return n=n.filter(function(i){return i.size!==0}),n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(i){for(var s=0;s=0&&o=0&&ithis.size?r:this.find(function(n,o){return o===t},void 0,r)},has:function(t){return t=v1(this,t),t>=0&&(this.size!==void 0?this.size===1/0||tt?-1:0}function GJe(e){if(e.size===1/0)return 0;var t=uu(e),r=Bn(e),n=t?1:0,o=e.__iterate(r?t?function(i,s){n=31*n+wJ(la(i),la(s))|0}:function(i,s){n=n+wJ(la(i),la(s))|0}:t?function(i){n=31*n+la(i)|0}:function(i){n=n+la(i)|0});return KJe(o,n)}function KJe(e,t){return t=$m(t,3432918353),t=$m(t<<15|t>>>-15,461845907),t=$m(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=$m(t^t>>>16,2246822507),t=$m(t^t>>>13,3266489909),t=q9(t^t>>>16),t}function wJ(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var l_=function(e){function t(r){return r==null?w6():A1e(r)?r:w6().withMutations(function(n){var o=Tv(r);ua(o.size),o.forEach(function(i){return n.add(i)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(n){return this(Rl(n).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(bE);l_.isOrderedSet=A1e;var bp=l_.prototype;bp[Cv]=!0;bp.zip=Dv.zip;bp.zipWith=Dv.zipWith;bp.zipAll=Dv.zipAll;bp.__empty=w6;bp.__make=R1e;function R1e(e,t){var r=Object.create(bp);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var kJ;function w6(){return kJ||(kJ=R1e(by()))}function VJe(e){if(Iv(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Cc(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(e===null||typeof e!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var oi=function(t,r){var n;VJe(t);var o=function(a){var l=this;if(a instanceof o)return a;if(!(this instanceof o))return new o(a);if(!n){n=!0;var u=Object.keys(t),c=i._indices={};i._name=r,i._keys=u,i._defaultValues=t;for(var f=0;f0?this._next(r.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},t}(Aet);function Cet(e){return e===void 0&&(e=Number.POSITIVE_INFINITY),H1e(D1e,e)}function y3(){for(var e=[],t=0;t1&&typeof e[e.length-1]=="number"&&(r=e.pop())):typeof o=="number"&&(r=e.pop()),n===null&&e.length===1&&e[0]instanceof Ws?e[0]:Cet(r)(Fj(e,n))}function RJ(e,t){return function(n){return n.lift(new Net(e,t))}}var Net=function(){function e(t,r){this.predicate=t,this.thisArg=r}return e.prototype.call=function(t,r){return r.subscribe(new Ret(t,this.predicate,this.thisArg))},e}(),Ret=function(e){$o(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.predicate=n,i.thisArg=o,i.count=0,i}return t.prototype._next=function(r){var n;try{n=this.predicate.call(this.thisArg,r,this.count++)}catch(o){this.destination.error(o);return}n&&this.destination.next(r)},t}(Ea);function b3(e,t){return t===void 0&&(t=ret),function(r){return r.lift(new Oet(e,t))}}var Oet=function(){function e(t,r){this.dueTime=t,this.scheduler=r}return e.prototype.call=function(t,r){return r.subscribe(new Det(t,this.dueTime,this.scheduler))},e}(),Det=function(e){$o(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.dueTime=n,i.scheduler=o,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return t.prototype._next=function(r){this.clearDebounce(),this.lastValue=r,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Fet,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var r=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(r)}},t.prototype.clearDebounce=function(){var r=this.debouncedSubscription;r!==null&&(this.remove(r),r.unsubscribe(),this.debouncedSubscription=null)},t}(Ea);function Fet(e){e.debouncedNext()}function mh(){return mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const a=n.singletonCache.get(s)||n.requestCache.get(s)||n.transientCache.get(s);a&&(i.proxyTarget.current=a)}),n.postConstruct.forEach(i=>{i.postConstruct()}),this.currentCtx=null,o}child(){const t=new this.constructor;return t.parent=this,t}getParent(){return this.parent}getInjectable(t){var r;const n=this.pool.get(t);if(n)return{value:n,fromParent:!1};const o=(r=this.parent)==null?void 0:r.getInjectable(t);return o?{value:o.value,fromParent:!0}:void 0}_resolve(t,r,n){const o=this.getInjectable(t);if((r==null?void 0:r.optional)===!0&&!o)return;if(!o)throw new Error(`Key: ${Ow(t)} not found`);const{value:{value:i,scope:s,type:a},fromParent:l}=o;let u,c=!1;if(a===Jp.VALUE)return i;{const f=n.requestedKeys.get(t);if(f){if(!f.constructed){if(!r.lazy&&!l){const d=Array.from(n.requestedKeys.entries()).pop(),h=d?`[ ${String(d[0])}: ${d[1].value.name} ]`:"";throw new Error(`Circular reference detected: ${h} -> [ ${Ow(t)}: ${i.name} ]`)}c=!0}}else n.requestedKeys.set(t,{constructed:!1,value:i})}return u=c?()=>this.createLazy(t,a,n):()=>this.create(t,o.value,n),this.run(s,t,u,n)}resolveDeps(t,r){const n=[];for(const o of t){const{key:i,options:s}=jet(o);if(Array.isArray(i)){const a=[];for(const l of i){let u=r.singletonCache.get(l.key);u===void 0&&(u=this._resolve(l.key,mh({},l.options),r)),u===void 0&&s.removeUndefined||a.push(u)}n.push(a.length?a:s.setToUndefinedIfEmpty?void 0:a)}else{let a=r.singletonCache.get(i);a===void 0&&(a=this._resolve(i,mh({},s),r)),n.push(a)}}return n}createLazy(t,r,n){const o=n.delayed.get(t);if(o)return o.proxy;const i=r===Jp.CLASS?{}:function(){},s=function(a,l,u){function c(){if(!a.current)throw new Error(`Lazy target for key:${String(u)} not yet set`);return a.current}return new Proxy(a,{apply:function(f,d){const h=c();return Reflect.apply(h,l?h:void 0,d)},construct:function(f,d){return Reflect.construct(c(),d)},get:function(f,d,h){return d===Bet?f.current:d===Met||Reflect.get(c(),d,h)},set:function(f,d,h){return Reflect.set(d==="current"?f:c(),d,h)},defineProperty:function(f,d,h){return Reflect.defineProperty(c(),d,h)},deleteProperty:function(f,d){return Reflect.deleteProperty(c(),d)},getPrototypeOf:function(f){return Reflect.getPrototypeOf(c())},setPrototypeOf:function(f,d){return Reflect.setPrototypeOf(c(),d)},getOwnPropertyDescriptor:function(f,d){return Reflect.getOwnPropertyDescriptor(c(),d)},has:function(f,d){return Reflect.has(c(),d)},isExtensible:function(f){return Reflect.isExtensible(c())},ownKeys:function(f){return Reflect.ownKeys(c())},preventExtensions:function(f){return Reflect.preventExtensions(c())}})}(i,r===Jp.CLASS,t);return n.delayed.set(t,{proxy:s,proxyTarget:i}),s}create(t,r,n){const{beforeResolve:o,afterResolve:i,value:s,type:a}=r,l=s.inject;let u=[];l&&(u=Array.isArray(l)?this.resolveDeps(l,n):l.fn({container:this,ctx:n.ctx},...this.resolveDeps(l.deps,n)));const c=o?o({container:this,value:s.original,ctx:n.ctx},...u):s(...u);return i&&i({container:this,value:c,ctx:n.ctx}),n.requestedKeys.get(t).constructed=!0,a==="CLASS"&&"postConstruct"in c&&n.postConstruct.push(c),c}run(t,r,n,o){if(t===Q1.SINGLETON||t===Q1.CONTAINER_SINGLETON){var i;if(!this.pool.has(r)&&t===Q1.SINGLETON)return(i=this.parent)==null?void 0:i.resolve(r);const a=o.singletonCache.get(r);if(a!==void 0)return a===Dw?void 0:a;{let l=n();return l===void 0&&(l=Dw),this.singletonCache.set(r,l),l}}if(Q1.REQUEST===t){const a=o.requestCache.get(r);if(a!==void 0)return a===Dw?void 0:a;{let l=n();return l===void 0&&(l=Dw),o.requestCache.set(r,l),l}}const s=n();return o.transientCache.set(r,s),s}};function Het(e){return n9(e,"useClass")}function $et(e){return n9(e,"useFactory")}function Pet(e){return n9(e,"useValue")}function qet(e){return n9(e,"useToken")}const SE=Symbol("singleton");function Wet(e){return typeof e=="function"&&!!e.inject}function _3(e){return e[SE]?"SINGLETON":e.scope?e.scope:"TRANSIENT"}class Get extends zet{constructor(){super(...arguments),this.name="DependencyContainer"}bindValue(t,r){return this.has(t,!1)&&this.unbind(t),super.bindValue(t,r)}bindClass(t,r,n){const o=(n==null?void 0:n.scope)??_3(t);return super.bindClass(t,r,{...n,scope:o})}register(t,r){if(Pet(r))this.bindValue(t,r.useValue);else if($et(r)){const{useFactory:n}=r;this.bindFactory(t,{value:n,inject:[$1e]},{scope:r.scope})}else if(qet(r))this.bindFactory(t,{value:n=>n,inject:[r.useToken]});else if(Het(r)){const n=r.scope??_3(r.useClass);this.bindClass(t,r.useClass,{scope:n})}}_resolve(t,r,n){if(!this.getInjectable(t)&&Wet(t)){const o=_3(t);this.bindClass(t,t,{scope:o})}return super._resolve(t,r,n)}}const Ket=()=>{const e=new Get;return e.name="global",e},Mj=Ket();function ii(e,t){return Mj.bindValue(e,t),e}const $1e=ii("DependencyContainer",Mj),A6=A.createContext(Mj),Vet=({provide:e,name:t})=>({containerRef:n,onInitialize:o,onDispose:i,children:s})=>{const a=A.useContext(A6),l=A.useMemo(()=>{const u=a.child();return t&&(u.name=t),e==null||e.forEach(c=>{u.register(c.token,c)}),u.bindValue($1e,u),o==null||o(u),u},[o,a]);return A.useImperativeHandle(n,()=>l,[l]),A.useEffect(()=>()=>{i==null||i(l),l.unbindAll(!0)},[l]),N.jsx(A6.Provider,{value:l,children:s})};ii("isControlFlowEnabledToken",!1);ii("isDoWhileLoopEnabledToken",!1);ii("isAnnotationEnabledToken",!1);ii("isDesignerUnifiedSubmissionFlowEnabledToken",!1);ii("isPipelineComputeDatastoreEnabledToken",!1);ii("TransactionalAuthoringEnabled",!1);ii("ComponentSettingsEnabled",!1);ii("isPipelineOwnerToken",!1);ii("isExecutionPhaseEnabledToken",!1);ii("isPipelineStreamingEnabledToken",!1);ii("useFocusedNodeId",()=>{});ii("useIsInSearchResult",()=>!1);ii("dismissCompareCheckListPanel",()=>null);const Uet=e=>(t,r)=>e(t,r),Yet=()=>CZe(Uet);let x6=class P1e extends Ws{constructor(t,r){super(n=>this.state$.subscribe(n)),this.getSnapshot=()=>this.state$.getValue(),this.state$=new B1e(t),this.subscription=r.subscribe(this.state$)}static fromStates(t,r){const n=r(t.map(i=>i.getSnapshot())),o=het(t).pipe(L1e(r));return new P1e(n,o)}destroy(){this.subscription.unsubscribe()}},st=class extends B1e{constructor(){super(...arguments),this.getState=()=>this.getValue(),this.setState=t=>{this.next(t)},this.updateState=t=>{this.next(t(this.getValue()))},this.getSnapshot=()=>this.getValue()}next(t,r){!r&&this.value===t||super.next(t)}copyFrom(t){this.next(t.getSnapshot())}};const bH=class bH{constructor(){this.nodesIndex$=new st(Ds()),this.allNodeNames$=x6.fromStates([],()=>Ds()),this.orientation$=new st(Zue.Vertical),this.language$=new st(void 0)}tweakFlattenNodeOrder(t,r){const n=this.nodesIndex$.getSnapshot(),o=n.findIndex(s=>s===t),i=o+r;if(o>=0&&i>=0&&i(this.addListener(t,r),r.next(this.get(t)),()=>{this.removeListener(t,r)}))}notify(t){var r;(r=this.listeners.get(t))==null||r.forEach(n=>{n.next(this.get(t))})}next(t){const r=this.getSnapshot();super.next(t);const n=new Set;r.forEach((o,i)=>{t.has(i)||n.add(i)}),t.forEach((o,i)=>{r.has(i)&&Object.is(r.get(i),o)||n.add(i)}),n.forEach(o=>{this.notify(o)})}addListener(t,r){let n=this.listeners.get(t);n||(n=new Set,this.listeners.set(t,n)),n.add(r)}removeListener(t,r){const n=this.listeners.get(t);n&&(n.delete(r),n.size===0&&this.listeners.delete(t))}}class Fw extends q1e{constructor(){super(vc())}set(t,r){return this.updateState(n=>n.set(t,r)),this}update(t,r){return this.updateState(n=>n.update(t,r)),this}delete(t){return this.updateState(r=>r.delete(t)),this}deleteAll(t){return this.updateState(r=>r.deleteAll(t)),this}clear(){return this.next(vc()),this}merge(t){return this.updateState(r=>r.merge(t)),this}}class Ko extends q1e{constructor(){super(ma())}set(t,r){return this.updateState(n=>n.set(t,r)),this}update(t,r){return this.updateState(n=>n.update(t,r)),this}delete(t){return this.updateState(r=>r.delete(t)),this}deleteAll(t){return this.updateState(r=>r.deleteAll(t)),this}clear(){return this.next(ma()),this}merge(t){return this.updateState(r=>r.merge(t)),this}insertBefore(t,r,n){return this.updateState(o=>ma().withMutations(i=>{for(const[s,a]of o.entries())t===s&&i.set(r,n),i.set(s,a)})),this.notify(r),this}insertAfter(t,r,n){return this.updateState(o=>ma().withMutations(i=>{for(const[s,a]of o.entries())i.set(s,a),t===s&&i.set(r,n)})),this.notify(r),this}sortByValue(t){return this.updateState(r=>r.sort(t)),this}}var OJ;const _H=class _H extends T6{constructor(){super(),this.isWorkspaceReady$=new st(!1),this.currentNodeId$=new st(void 0),this.graphConfig=Hg.default().build(),this.graphReducer=Yet(),this.isReadonly$=new st(!1),this.name$=new st(""),this.flowType$=new st(Ad.Default),this.owner$=new st(void 0),this.isArchived$=new st(!1),this.selectedStepId$=new st(void 0),this.tools$=new Ko,this.toolsStatus$=new Ko,this.batchInputs$=new st([]),this.bulkRunDataReference$=new st(void 0),this.chatMessages$=new st([]),this.nodeVariants$=new Ko,this.tuningNodeNames$=new st([]),this.inputSpec$=new Ko,this.selectedBulkIndex$=new st(void 0),this.nodeRuns$=new Ko,this.flowRuns$=new st([]),this.rootFlowRunMap$=new Fw,this.flowOutputs$=new Ko,this.connections$=new Ko,this.promptToolSetting$=new st(void 0),this.userInfo$=new st(void 0),this.bulkRunDescription$=new st(""),this.bulkRunTags$=new st([]),this.nodeParameterTypes$=new Fw,this.theme$=new st(void 0),this.selectedRuntimeName$=new st(void 0),this.connectionList$=new st([]),this.connectionSpecList$=new st([]),this.connectionDeployments$=new Ko,this.connectionDeploymentsLoading$=new Ko,this.runStatus$=new st(void 0),this.flowRunType$=new st(void 0),this.packageToolsDictionary$=new Fw,this.codeToolsDictionary$=new Fw,this.isToolsJsonReady$=new st(!1),this.flowGraphLayout$=new st(void 0),this.flowUIHint$=new st(void 0),this.isInitialized$=new st(!1),this.flowFeatures$=new st(new Set),this.loaded=!1,this._allLlmParameterKeys=[],new Set(eQe).add(at.AutoFit);const r=new Set;r.add(Xue.OpenCodeFileInNode),this.flowFeatures$.next(r),this.canvasState$=new st(Ade({settings:{graphConfig:this.graphConfig,canvasBoundaryPadding:{top:800,bottom:800}},data:Mh.empty()})),this.allNodeNames$=x6.fromStates([this.nodeVariants$],([n])=>Ds(Array.from(n.keys()).filter(o=>!!o&&o!==LK&&o!==ZHe))),y3(this.flowOutputs$,this.batchInputs$,this.inputSpec$,this.selectedRuntimeName$,this.bulkRunTags$,this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$).pipe(RJ(()=>this.loaded),RJ(()=>this.isInitialized$.getSnapshot()),b3(100)).subscribe(()=>{this.notifyFlowChange()}),y3(this.flowGraphLayout$,this.orientation$).pipe(b3(100)).subscribe(()=>{this.notifyLayoutChange()}),y3(this.flowUIHint$).pipe(b3(100)).subscribe(()=>{this.notifyUIHintChange()}),this.invalidStepInputs$=x6.fromStates([this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$,this.connectionList$,this.inputSpec$,this.nodeParameterTypes$],([n,o,i,s,a,l])=>this.validateNodeInputs(n))}attemptToRenameStep(t,r){if(!k$e(r))return`step name ${r} is not valid`;if(this.nodeVariants$.get(r))return`step with name ${r} already exists`;if(!this.nodeVariants$.get(t))return`step ${t} not found`;const o=(s,a,l)=>{const u={...s};return Object.keys(u).forEach(c=>{const f=u[c],d=QC(f),[h]=(d==null?void 0:d.split("."))??[];h===a&&(u[c]=f.replace(`${a}`,`${l}`))}),u},i=(s,a,l)=>{if(!s)return;const u={};return Object.entries(s).forEach(([c,f])=>{var d,h,g;u[c]={...f,node:{...f.node,name:((d=f.node)==null?void 0:d.name)===a?l:(h=f.node)==null?void 0:h.name,inputs:o(((g=f.node)==null?void 0:g.inputs)??{},a,l)}}}),u};pi.unstable_batchedUpdates(()=>{this.nodeVariants$.updateState(s=>s.mapEntries(([a,l])=>{const u={...l,variants:i(l.variants,t,r)};return[a===t?r:a,u]})),this.flowGraphLayout$.updateState(s=>({...s,nodeLayouts:XC((s==null?void 0:s.nodeLayouts)??{},t,r)})),this.flowUIHint$.updateState(s=>({...s,nodes:XC((s==null?void 0:s.nodes)??{},t,r)})),this.currentNodeId$.getSnapshot()===t&&this.currentNodeId$.next(r),this.selectedStepId$.getSnapshot()===t&&this.selectedStepId$.next(r),this.nodeRuns$.getSnapshot().forEach((s,a)=>{if(s.node===t){const[,l,u,c]=a.split("#"),f=parseInt(l,10);this.nodeRuns$.set(this.getNodeRunKey(r,isNaN(f)?0:f,u,c),{...s,node:r}),this.nodeRuns$.delete(a)}})})}acceptFlowEdit(t,r){t!==this.viewType&&this.loadFlow(r)}loadFlow(t){this.loaded=!1;try{pi.unstable_batchedUpdates(()=>{this.baseEntity=t,this.owner$.next(t.owner),this.isArchived$.next(t.isArchived??!1),this.loadFlowDto(t),t.flowRunResult&&this.loadStatus(t.flowRunResult)}),this.loaded=!0}catch(r){throw this.loaded=!0,r}}loadCodeTool(t,r){this.codeToolsDictionary$.set(t,r)}loadPackageTool(t,r){this.packageToolsDictionary$.set(t,r)}toBatchRequestData(){return{flow:{flowGraph:this.toFlowGraph(),nodeVariants:this.toNodeVariants(),flowGraphLayout:this.flowGraphLayout$.getSnapshot()},flowSubmitRunSettings:{...this.toFlowRunSettings()},flowRunDisplayName:this.name$.getSnapshot()}}toAddOnEvaluationRequestData(){return{flowSubmitRunSettings:{...this.toFlowRunSettings()}}}loadStatus(t){var i;this.clearStatus();let r=0;const n=[],o=new Map;if((i=t.flow_runs)!=null&&i.length){for(const s of t.flow_runs)s.index===null?o.set(s.run_id,s):(r=s.index,n.push(s));n.sort((s,a)=>{var l;return s.root_run_id===a.root_run_id?(s.index??0)-(a.index??0):s.variant_id&&a.variant_id?s.variant_id.localeCompare(a.variant_id):((l=s.root_run_id)==null?void 0:l.localeCompare((a==null?void 0:a.root_run_id)??""))??0}),this.flowRuns$.next(n),this.rootFlowRunMap$.next(vc(o))}t.flowRunType&&this.flowRunType$.next(t.flowRunType),t.runStatus&&this.runStatus$.next(t.runStatus),this.loadNodesStatus(t.node_runs||[]),this.selectedBulkIndex$.next(r)}loadNodesStatus(t){const r=this.tuningNodeNames$.getSnapshot()[0];t.forEach(n=>{const o=n.node===r,i=this.getDefaultVariantId(n.node),s=n.variant_id||i,a=o?s:i,l=this.getNodeRunKey(n.node,n.index??0,a,s);this.nodeRuns$.set(l,n)})}loadSingleNodeRunStatus(t,r,n){this.resetNodesStatus(t,r),n.forEach(o=>{const i=this.getDefaultVariantId(o.node),s=o.variant_id||i,a=o.variant_id||i,l=this.getNodeRunKey(o.node,o.index??0,a,s);this.nodeRuns$.set(l,o)})}resetNodesStatus(t,r){this.nodeRuns$.updateState(n=>n.filter(o=>{if(o.node!==t)return!0;const i=this.getDefaultVariantId(o.node);return(o.variant_id||i)!==r}))}clearStatus(){this.selectedBulkIndex$.next(void 0),this.nodeRuns$.clear(),this.flowRuns$.next([]),this.rootFlowRunMap$.clear()}getDefaultVariantId(t){var r;return((r=this.nodeVariants$.get(t))==null?void 0:r.defaultVariantId)||Ki}setStepInput(t,r,n,o){const i=this.getNode(t,o);if(!(i!=null&&i.name))return;const s={...i,inputs:{...i.inputs,[r]:n}};this.setNode(t,o,s)}removeStepInputs(t,r,n){const o=this.getNode(t,n);if(!(o!=null&&o.name))return;const i={...o.inputs};r.forEach(a=>{delete i[a]});const s={...o,inputs:i};this.setNode(t,n,s)}renameStepInput(t,r,n){const o=this.getNode(t,Ki);if(!(o!=null&&o.name))return;const i={...o,inputs:XC(o.inputs??{},r,n)};this.setNode(t,Ki,i)}setStepActivate(t,r,n){const o=this.getNode(t,r);if(!(o!=null&&o.name))return;const i={...o,activate:n};this.setNode(t,r,i)}setStepKeyValue(t,r,n,o){const i=this.getNode(t,o);if(!(i!=null&&i.name))return;const s={...i,[r]:n};this.setNode(t,o,s)}setStepSourcePath(t,r,n){const o=this.getNode(t,n);if(!(o!=null&&o.name))return;const i={...o,source:{...o.source,path:r}};this.setNode(t,n,i)}setBatchInput(t,r,n){const o=this.batchInputs$.getSnapshot();if(!o[t])return;const i=[...o];i[t]={...i[t],[r]:n},this.batchInputs$.setState(i)}setBulkRunTag(t,r,n){const o=[...this.bulkRunTags$.getSnapshot()];if(!o[t])return;const i={};i[r]=n,o[t]=i,this.bulkRunTags$.next(o)}deleteBulkRunTag(t){const r=[...this.bulkRunTags$.getSnapshot()];r.splice(t,1),this.bulkRunTags$.next(r)}addBulkRunTagRow(){const t=this.bulkRunTags$.getSnapshot(),r={"":""};this.bulkRunTags$.next([...t,r])}getNodeRunKey(t,r,n=Ki,o=Ki){return`${t}#${r}#${n}#${o}`}dispatch(t){var i;let r="";switch(t.type){case or.Click:this.currentNodeId$.next(void 0);break;case $t.Click:this.currentNodeId$.next(t.node.id,!0);break;case $t.DragEnd:{r=t.node.name??"";break}}const n=this.canvasState$.getSnapshot(),o=this.graphReducer(n,t);if(this.canvasState$.next(o),r){const s=o.data.present.nodes.find(u=>u.name===r),a=this.flowGraphLayout$.getSnapshot(),l={...a,nodeLayouts:{...a==null?void 0:a.nodeLayouts,[r]:{...(i=a==null?void 0:a.nodeLayouts)==null?void 0:i[r],x:s==null?void 0:s.x,y:s==null?void 0:s.y}}};this.flowGraphLayout$.next(l)}}setGraphConfig(t){this.graphConfig=t;const r=this.canvasState$.getSnapshot();this.canvasState$.next({...r,settings:{...r.settings,graphConfig:t}})}toFlowGraph(){const t=this.nodeVariants$.getSnapshot(),r=KK(Ds.of(...t.keys()),t);return{inputs:this.inputSpec$.getSnapshot().toJSON(),outputs:this.flowOutputs$.getSnapshot().toJSON(),nodes:r,tools:void 0}}toFlowGraphSnapshot(t){const r=Xb.mapValues(this.inputSpec$.getSnapshot().toJSON(),l=>{l.default!==void 0&&(l.default=Dk(l.default,l.type));const{name:u,id:c,...f}=l;return f}),n=Xb.mapValues(this.flowOutputs$.getSnapshot().toJSON(),l=>{const{name:u,id:c,...f}=l;return f}),i=A$e(t).map(l=>l.nodeName),s=m$e(Ds.of(...Object.keys(t)),t,i),a=x$e(t);return{inputs:r,outputs:n,nodes:s,node_variants:a}}toNodeVariants(){const t=this.nodeVariants$.getSnapshot().toJSON(),r={};return Object.keys(t).forEach(n=>{const o=t[n],i={};Object.keys(o.variants??{}).forEach(s=>{const a=(o.variants??{})[s];i[s]={...a,node:a.node?this.pruneNodeInputs(a.node):void 0}}),r[n]={...o,variants:i}}),r}toFlowRunSettings(){var t,r;return{tuningNodeNames:this.tuningNodeNames$.getSnapshot(),variants:void 0,runtimeName:(t=this.selectedRuntimeName$)==null?void 0:t.getSnapshot(),description:this.bulkRunDescription$.getSnapshot(),tags:Object.assign({},...this.bulkRunTags$.getSnapshot()),...this.bulkRunDataReference$.getSnapshot()!==void 0?{batchDataInput:{dataUri:(r=this.bulkRunDataReference$.getSnapshot())==null?void 0:r.id}}:{batch_inputs:this.batchInputs$.getSnapshot()}}}toJSON(){const t=this.toNodeVariants();return{...this.baseEntity,flow:{flowGraph:this.toFlowGraphSnapshot(t)},flowName:this.name$.getSnapshot(),flowRunSettings:this.toFlowRunSettings()}}toFlowGraphLayout(){const t=this.flowGraphLayout$.getSnapshot()??{},r=Array.from(this.nodeVariants$.getSnapshot().keys()),n={...t.nodeLayouts};return Object.keys(n).forEach(o=>{n[o]={...n[o],index:r.indexOf(o)}}),{...t,nodeLayouts:n,orientation:this.orientation$.getSnapshot()}}toFlowUIHint(){return this.flowUIHint$.getSnapshot()??{nodes:{}}}updateToolCode(t,r){const n=this.codeToolsDictionary$.get(t);n&&this.codeToolsDictionary$.set(t,{...n,code:r})}updateToolStatus(t,r){const n=this.toolsStatus$.get(t);this.toolsStatus$.set(t,{...n,...r})}updateFlowInput(t,r){const n=this.batchInputs$.getSnapshot(),o=n==null?void 0:n[0];let i=r;try{const s=JSON.parse(r);i=JSON.stringify(s)}catch{i=r}this.batchInputs$.next([{...o,[t]:i},...n.slice(1)])}addNewNode(t,r){if(!t.name)return;const n=t,o={defaultVariantId:Ki,variants:{[Ki]:{node:n}}};r?this.nodeVariants$.insertBefore(r,t.name,o):this.nodeVariants$.set(t.name,o)}patchEditData(t){var r,n,o,i;switch(t.type){case"chatInput":{if(this.flowType$.getSnapshot()!==Ad.Chat)return;const s=this.batchInputs$.getSnapshot(),a=((r=this.getChatInputDefinition())==null?void 0:r.name)??Xp;this.batchInputs$.next([{...s[0],[a]:t.value}]);break}case"chatHistory":{if(this.flowType$.getSnapshot()!==Ad.Chat)return;const s=this.batchInputs$.getSnapshot(),a=((n=this.getChatHistoryDefinition())==null?void 0:n.name)??sh,l=((o=this.getChatInputDefinition())==null?void 0:o.name)??Xp,u=((i=this.getChatOutputDefinition())==null?void 0:i.name)??Mm;this.batchInputs$.next([{...s[0],[a]:[...s[0][a],{inputs:{[l]:t.value.chatInput},outputs:{[u]:t.value.chatOutput}}].slice(-10)}]);break}case"flowGraph":{try{this.loaded=!1,pi.unstable_batchedUpdates(()=>{this.loadFlorGraph(t.value)})}finally{this.loaded=!0}break}default:{const s=t;throw new Error(`Didn't expect to get here: ${s}`)}}}getChatInputDefinition(){return this.inputSpec$.getSnapshot().find(zK)}getChatHistoryDefinition(){const t=this.flowType$.getSnapshot();return this.inputSpec$.getSnapshot().find(r=>HK(t,r))}getChatOutputDefinition(){return this.flowOutputs$.getSnapshot().find($K)}clearChatMessages(){this.chatMessages$.next([]),this.syncChatMessagesToInputsValues([])}getProviderByConnection(t){var s;if(!t)return;const r=this.connectionList$.getSnapshot(),n=this.promptToolSetting$.getSnapshot(),o=r.find(a=>a.connectionName===t);if(!o)return;const i=(s=n==null?void 0:n.providers)==null?void 0:s.find(a=>{var l;return o.connectionType&&((l=a.connection_type)==null?void 0:l.includes(o.connectionType))});if(i)return i.provider}addFlowInput(t,r){this.inputSpec$.set(t,{...r,name:t,id:(r==null?void 0:r.id)??nce()})}addFlowOutput(t,r){this.flowOutputs$.set(t,{...r,name:t,id:(r==null?void 0:r.id)??N$e()})}loadFlorGraph(t){var i;const r=(t==null?void 0:t.nodes)||[],n=(t==null?void 0:t.outputs)||{},o=(t==null?void 0:t.inputs)||{};this.nodeVariants$.clear(),r.forEach(s=>{s.name&&(this.nodeVariants$.get(s.name)||this.nodeVariants$.set(s.name,{defaultVariantId:Ki,variants:{[Ki]:{node:s}}}))}),(i=Object.entries((t==null?void 0:t.node_variants)??{}))==null||i.forEach(([s,a])=>{const l={...a.variants};Object.entries(l).forEach(([u,c])=>{c.node&&(c.node.name=s)}),this.nodeVariants$.set(s,{defaultVariantId:a.default_variant_id??Ki,variants:l})}),this.flowOutputs$.clear(),Object.keys(n).forEach(s=>{const a=n[s];a&&this.addFlowOutput(s,a)}),this.inputSpec$.clear(),Object.keys(o).forEach(s=>{const a=o[s];a&&this.addFlowInput(s,a)})}loadFlowDto(t){var r,n,o,i,s,a,l,u,c,f,d,h,g,v;if(this.name$.next(t.flowName??""),this.flowType$.next(t.flowType??Ad.Default),this.loadFlorGraph((r=t.flow)==null?void 0:r.flowGraph),(n=t.flow)!=null&&n.nodeVariants&&((i=Object.entries(((o=t.flow)==null?void 0:o.nodeVariants)??{}))==null||i.forEach(([y,E])=>{this.nodeVariants$.set(y,{...E,defaultVariantId:E.defaultVariantId??Ki})})),(a=(s=t.flow)==null?void 0:s.flowGraphLayout)!=null&&a.nodeLayouts){const y=(l=t.flow)==null?void 0:l.flowGraphLayout;this.flowGraphLayout$.next(y),y.orientation&&this.orientation$.next(y.orientation)}if(this.selectedRuntimeName$.setState(((u=t.flowRunSettings)==null?void 0:u.runtimeName)??""),this.batchInputs$.setState(((c=t.flowRunSettings)==null?void 0:c.batch_inputs)??[{}]),this.tuningNodeNames$.setState(((f=t.flowRunSettings)==null?void 0:f.tuningNodeNames)??[]),this.bulkRunDescription$.next(t.description??""),this.bulkRunTags$.next([]),t.tags){const y=[];Object.keys(t.tags).forEach(E=>{var _;y.push({[E]:((_=t==null?void 0:t.tags)==null?void 0:_[E])??""})}),this.bulkRunTags$.next(y)}this.initNodeParameterTypes((d=t.flow)==null?void 0:d.flowGraph),t.flowType===Ad.Chat&&(this.initChatFlow(t),this.initChatMessages(((h=t.flowRunSettings)==null?void 0:h.batch_inputs)??[{}])),this.language$.next((v=(g=t.flow)==null?void 0:g.flowGraph)==null?void 0:v.language)}initNodeParameterTypes(t){if(!t)return;const r=this.nodeVariants$.getSnapshot().toJSON();let n=vc(new Map);Object.keys(r).forEach(o=>{const i=r[o];Object.keys(i.variants??{}).forEach(s=>{var l;const a=(i.variants??{})[s];if(a.node){const u={inputs:{},activate:{is:void 0}},c=this.getToolOfNode(a.node);if((a.node.type??(c==null?void 0:c.type))===Oi.python){const f=Object.keys((c==null?void 0:c.inputs)??{});Object.keys(a.node.inputs??{}).filter(g=>!f.includes(g)).forEach(g=>{var v,y;u.inputs[g]=WK((y=(v=a.node)==null?void 0:v.inputs)==null?void 0:y[g])??Te.string})}u.activate.is=WK((l=a.node.activate)==null?void 0:l.is)??Te.string,n=n.set(`${o}#${s}`,u)}})}),this.nodeParameterTypes$.next(n)}initChatFlow(t){if(t.flowType!==Ad.Chat)return;this.inputSpec$.getSnapshot().some(i=>HK(t.flowType,i))||(this.addFlowInput(sh,{name:sh,type:Te.list}),this.batchInputs$.updateState(i=>[{...i[0],[sh]:[]},...i.slice(1)])),this.inputSpec$.getSnapshot().some(i=>zK(i))||this.addFlowInput(Xp,{name:Xp,type:Te.string,is_chat_input:!0}),this.flowOutputs$.getSnapshot().some(i=>$K(i))||this.addFlowOutput(Mm,{name:Mm,type:Te.string,is_chat_output:!0})}initChatMessages(t){var a,l,u;const r=((a=this.getChatHistoryDefinition())==null?void 0:a.name)??sh,n=t[0][r];if(!Array.isArray(n))return;const o=((l=this.getChatInputDefinition())==null?void 0:l.name)??Xp,i=((u=this.getChatOutputDefinition())==null?void 0:u.name)??Mm,s=o$e(o,i,n);this.chatMessages$.next(s),this.syncChatMessagesToInputsValues(s)}syncChatMessagesToInputsValues(t){var n,o,i;if(this.batchInputs$.getSnapshot().length<=1){const s=((n=this.getChatInputDefinition())==null?void 0:n.name)??Xp,a=((o=this.getChatOutputDefinition())==null?void 0:o.name)??Mm,l=((i=this.getChatHistoryDefinition())==null?void 0:i.name)??sh,u=[];for(let c=0;c[{...c[0],[l]:u}])}}getNode(t,r){var n,o,i;return(i=(o=(n=this.nodeVariants$.get(t))==null?void 0:n.variants)==null?void 0:o[r])==null?void 0:i.node}setNode(t,r,n){var i;const o=this.nodeVariants$.get(t);this.nodeVariants$.set(t,{defaultVariantId:(o==null?void 0:o.defaultVariantId)??Ki,variants:{...o==null?void 0:o.variants,[r]:{...(i=o==null?void 0:o.variants)==null?void 0:i[r],node:n}}})}getAllLlmParameterKeys(){var t;if(this._allLlmParameterKeys.length===0){const r=this.promptToolSetting$.getSnapshot();if(!r)return[];const n=(t=r.providers)==null?void 0:t.flatMap(i=>{var s;return(s=i.apis)==null?void 0:s.map(a=>a.parameters)}),o=new Set(n==null?void 0:n.flatMap(i=>Object.keys(i??{})));this._allLlmParameterKeys=[...o.values()]}return this._allLlmParameterKeys}pruneNodeInputs(t){var f,d,h,g;const r=t?this.getToolOfNode(t):void 0,n=this.promptToolSetting$.getSnapshot(),o=this.connectionList$.getSnapshot(),i=this.connectionSpecList$.getSnapshot();if(!r||!n)return t;if((t.type??r.type)===Oi.python&&r.enable_kwargs){const v={};return Object.keys(t.inputs??{}).forEach(y=>{var E,_,S,b;if(((E=t.inputs)==null?void 0:E[y])!==void 0){const k=(_=r.inputs)==null?void 0:_[y];v[y]=Dk((S=t.inputs)==null?void 0:S[y],(b=k==null?void 0:k.type)==null?void 0:b[0])}}),{...t,inputs:v}}const s=this.getProviderByConnection(t.connection??"");if((t.type??r.type)===Oi.llm&&(!s||!t.api))return t;const a=(t.type??r.type)===Oi.llm,l=a?(g=(h=(d=(f=n==null?void 0:n.providers)==null?void 0:f.find(v=>v.provider===s))==null?void 0:d.apis)==null?void 0:h.find(v=>v.api===t.api))==null?void 0:g.parameters:void 0,u=new Set(GK(r.inputs,t.inputs,o,i).concat(a?this.getAllLlmParameterKeys():[])),c={};return Object.keys(t.inputs??{}).forEach(v=>{var y,E,_,S;if(u.has(v)&&((y=t.inputs)==null?void 0:y[v])!==void 0){const b=((E=r.inputs)==null?void 0:E[v])??(l==null?void 0:l[v]);c[v]=Dk((_=t.inputs)==null?void 0:_[v],(S=b==null?void 0:b.type)==null?void 0:S[0])}}),{...t,inputs:c}}getToolOfNode(t){var o,i;const r=this.codeToolsDictionary$.get(((o=t.source)==null?void 0:o.path)??""),n=this.packageToolsDictionary$.get(((i=t.source)==null?void 0:i.tool)??"");return b$e(t,r,n,s=>this.codeToolsDictionary$.get(s))}validateNodeInputs(t){const r=new Map,n=this.getNodesInCycle(t),o=this.connectionList$.getSnapshot(),i=this.connectionSpecList$.getSnapshot(),s=[];return this.inputSpec$.getSnapshot().forEach((l,u)=>{const c=l.default,f=l.type;if(c!==void 0&&c!==""&&!ZC(c,f)){const d={section:"inputs",parameterName:u,type:Ai.InputInvalidType,message:"Input type is not valid"};s.push(d)}}),s.length>0&&r.set(`${LK}#`,s),Array.from(t.values()).forEach(l=>{const{variants:u={}}=l;Object.keys(u).forEach(c=>{var E,_,S;const f=u[c],{node:d}=f,h=d?this.getToolOfNode(d):void 0,g=GK(h==null?void 0:h.inputs,d==null?void 0:d.inputs,o,i);if(!d||!d.name)return;if(!h){const b=d;r.set(`${d.name}#${c}`,[{type:Ai.MissingTool,message:`Can't find tool ${((E=b==null?void 0:b.source)==null?void 0:E.tool)??((_=b==null?void 0:b.source)==null?void 0:_.path)}`}]);return}const v=[],y=this.validateNodeConfig(d,h);if(y&&v.push(y),g.forEach(b=>{const k=this.validateNodeInputRequired(h,d,b);k&&v.push(k)}),d.inputs&&v.push(...Object.keys(d.inputs).map(b=>{if(!g.includes(b)&&!h.enable_kwargs)return;const{isReference:k,error:T}=this.validateNodeInputReference(d,"inputs",b,t,n);if(T)return T;if(!k)return this.validateNodeInputType(h,d,c,b)}).filter(Boolean)),d.activate){const{error:b}=this.validateNodeInputReference(d,"activate","when",t,n);b&&v.push(b);const k=d.activate.is,T=(S=this.nodeParameterTypes$.get(`${d.name}#${c}`))==null?void 0:S.activate.is;if(!ZC(k,T)){const x={section:"activate",parameterName:"is",type:Ai.InputInvalidType,message:"Input type is not valid"};v.push(x)}}r.set(`${d.name}#${c}`,v)})}),r}getNodesInCycle(t){const r=KK(Ds.of(...t.keys()),t),n=new Map;r.forEach(u=>{var f;const c=(d,h,g)=>{const v=QC(g),[y]=(v==null?void 0:v.split("."))??[];!y||jK(y)||n.set(`${u.name}.${d}.${h}`,y)};Object.keys((u==null?void 0:u.inputs)??{}).forEach(d=>{var g;const h=(g=u.inputs)==null?void 0:g[d];c("inputs",d,h)}),c("activate","when",(f=u.activate)==null?void 0:f.when)});const o=new Map,i=new Map,s=new Map,a=new Map;return r.forEach(u=>{const c=u.name;c&&(o.set(c,0),i.set(c,0),s.set(c,[]),a.set(c,[]))}),r.forEach(u=>{const c=u.name;if(!c)return;const f=(d,h)=>{const g=n.get(`${c}.${d}.${h}`);g&&(o.set(c,(o.get(c)??0)+1),i.set(g,(i.get(g)??0)+1),s.set(g,[...s.get(g)??[],c]),a.set(c,[...a.get(c)??[],g]))};Object.keys((u==null?void 0:u.inputs)??{}).forEach(d=>{f("inputs",d)}),f("activate","when")}),L$e(o,s,i,a)}validateNodeConfig(t,r){var o,i,s,a,l,u,c;const n=this.promptToolSetting$.getSnapshot();if((t.type??(r==null?void 0:r.type))===Oi.llm){if(!t.connection)return{parameterName:"connection",type:Ai.NodeConfigInvalid,message:"connection is required"};if(!this.connectionList$.getSnapshot().some(v=>v.connectionName===t.connection))return{parameterName:"connection",type:Ai.NodeConfigInvalid,message:"connection is not valid"};if(!t.api)return{parameterName:"api",type:Ai.NodeConfigInvalid,message:"api is required"};const f=this.getProviderByConnection(t.connection),d=(a=(s=(i=(o=n==null?void 0:n.providers)==null?void 0:o.find(v=>v.provider===f))==null?void 0:i.apis)==null?void 0:s.find(v=>v.api===t.api))==null?void 0:a.parameters;if((d==null?void 0:d.model)&&!((l=t.inputs)!=null&&l.model))return{parameterName:"model",type:Ai.NodeConfigInvalid,message:"model is required"};if((d==null?void 0:d.deployment_name)&&!((u=t.inputs)!=null&&u.deployment_name))return{parameterName:"deployment_name",type:Ai.NodeConfigInvalid,message:"deployment_name is required"}}if(r&&((c=r==null?void 0:r.connection_type)!=null&&c.length)&&!t.connection)return{parameterName:"connection",type:Ai.NodeConfigInvalid,message:"connection is required"}}validateNodeInputRequired(t,r,n){var i,s,a;if(((s=(i=t.inputs)==null?void 0:i[n])==null?void 0:s.default)!==void 0)return;const o=(a=r.inputs)==null?void 0:a[n];if(o===void 0||o==="")return{section:"inputs",parameterName:n,type:Ai.InputEmpty,message:"Input cannot be empty"}}validateNodeInputReference(t,r,n,o,i){var f;const s=(f=t==null?void 0:t[r])==null?void 0:f[n],a=QC(s),[l,u]=(a==null?void 0:a.split("."))??[];return l?jK(l)?this.inputSpec$.get(u)?{isReference:!0,error:void 0}:{isReference:!0,error:{section:r,parameterName:n,type:Ai.InputDependencyNotFound,message:`${a} is not a valid flow input`}}:l===t.name?{isReference:!0,error:{section:r,parameterName:n,type:Ai.InputSelfReference,message:"Input cannot reference itself"}}:o.get(l)?t.name&&i.has(t.name)&&i.has(l)?{isReference:!0,error:{section:r,parameterName:n,type:Ai.CircularDependency,message:"Input cannot reference a node in a cycle"}}:{isReference:!0,error:void 0}:{isReference:!0,error:{section:r,parameterName:n,type:Ai.InputDependencyNotFound,message:`${l} is not a valid node name`}}:{isReference:!1,error:void 0}}validateNodeInputType(t,r,n,o){var u,c,f,d,h;const i=(u=r.inputs)==null?void 0:u[o];if(!i)return;const s=(c=t==null?void 0:t.inputs)==null?void 0:c[o],a=((f=s==null?void 0:s.type)==null?void 0:f[0])??((h=(d=this.nodeParameterTypes$.get(`${r.name}#${n}`))==null?void 0:d.inputs)==null?void 0:h[o]),l=(r.type??t.type)===Oi.custom_llm&&o==="tool_choice";if(!(!i||!t||!a||l)&&!ZC(i,a))return{section:"inputs",parameterName:o,type:Ai.InputInvalidType,message:"Input type is not valid"}}};OJ=SE,_H[OJ]=!0;let I6=_H;class Xet extends I6{constructor(){super(...arguments),this.viewType="default"}fetchConnectionList(){}fetchPromptToolSetting(){}openRunListView(){}deployFlow(){}setSelectedStepId(){}notifyFlowChange(){}notifyLayoutChange(){}notifyUIHintChange(){}}ii("FlowViewModel",new Xet);function Qet(...e){const t=A.useContext(A6);return A.useMemo(()=>e.map(r=>{try{return t.resolve(r)}catch(n){throw[r,n]}}),[t].concat(e))}var W1e={exports:{}},G1e={};/** + `):"",this.name="UnsubscriptionError",this.errors=t,this}return e.prototype=Object.create(Error.prototype),e}(),zk=YJe,mc=function(){function e(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return e.prototype.unsubscribe=function(){var t;if(!this.closed){var r=this,n=r._parentOrParents,o=r._ctorUnsubscribe,i=r._unsubscribe,s=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(n!==null)for(var a=0;a0?this._next(r.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},t}(Net);function Fet(e){return e===void 0&&(e=Number.POSITIVE_INFINITY),$1e(F1e,e)}function y3(){for(var e=[],t=0;t1&&typeof e[e.length-1]=="number"&&(r=e.pop())):typeof o=="number"&&(r=e.pop()),n===null&&e.length===1&&e[0]instanceof Ws?e[0]:Fet(r)(Bj(e,n))}function OJ(e,t){return function(n){return n.lift(new Bet(e,t))}}var Bet=function(){function e(t,r){this.predicate=t,this.thisArg=r}return e.prototype.call=function(t,r){return r.subscribe(new Met(t,this.predicate,this.thisArg))},e}(),Met=function(e){$o(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.predicate=n,i.thisArg=o,i.count=0,i}return t.prototype._next=function(r){var n;try{n=this.predicate.call(this.thisArg,r,this.count++)}catch(o){this.destination.error(o);return}n&&this.destination.next(r)},t}(Ea);function b3(e,t){return t===void 0&&(t=aet),function(r){return r.lift(new Let(e,t))}}var Let=function(){function e(t,r){this.dueTime=t,this.scheduler=r}return e.prototype.call=function(t,r){return r.subscribe(new jet(t,this.dueTime,this.scheduler))},e}(),jet=function(e){$o(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.dueTime=n,i.scheduler=o,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return t.prototype._next=function(r){this.clearDebounce(),this.lastValue=r,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(zet,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var r=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(r)}},t.prototype.clearDebounce=function(){var r=this.debouncedSubscription;r!==null&&(this.remove(r),r.unsubscribe(),this.debouncedSubscription=null)},t}(Ea);function zet(e){e.debouncedNext()}function yh(){return yh=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const a=n.singletonCache.get(s)||n.requestCache.get(s)||n.transientCache.get(s);a&&(i.proxyTarget.current=a)}),n.postConstruct.forEach(i=>{i.postConstruct()}),this.currentCtx=null,o}child(){const t=new this.constructor;return t.parent=this,t}getParent(){return this.parent}getInjectable(t){var r;const n=this.pool.get(t);if(n)return{value:n,fromParent:!1};const o=(r=this.parent)==null?void 0:r.getInjectable(t);return o?{value:o.value,fromParent:!0}:void 0}_resolve(t,r,n){const o=this.getInjectable(t);if((r==null?void 0:r.optional)===!0&&!o)return;if(!o)throw new Error(`Key: ${Dw(t)} not found`);const{value:{value:i,scope:s,type:a},fromParent:l}=o;let u,c=!1;if(a===Jp.VALUE)return i;{const f=n.requestedKeys.get(t);if(f){if(!f.constructed){if(!r.lazy&&!l){const d=Array.from(n.requestedKeys.entries()).pop(),h=d?`[ ${String(d[0])}: ${d[1].value.name} ]`:"";throw new Error(`Circular reference detected: ${h} -> [ ${Dw(t)}: ${i.name} ]`)}c=!0}}else n.requestedKeys.set(t,{constructed:!1,value:i})}return u=c?()=>this.createLazy(t,a,n):()=>this.create(t,o.value,n),this.run(s,t,u,n)}resolveDeps(t,r){const n=[];for(const o of t){const{key:i,options:s}=qet(o);if(Array.isArray(i)){const a=[];for(const l of i){let u=r.singletonCache.get(l.key);u===void 0&&(u=this._resolve(l.key,yh({},l.options),r)),u===void 0&&s.removeUndefined||a.push(u)}n.push(a.length?a:s.setToUndefinedIfEmpty?void 0:a)}else{let a=r.singletonCache.get(i);a===void 0&&(a=this._resolve(i,yh({},s),r)),n.push(a)}}return n}createLazy(t,r,n){const o=n.delayed.get(t);if(o)return o.proxy;const i=r===Jp.CLASS?{}:function(){},s=function(a,l,u){function c(){if(!a.current)throw new Error(`Lazy target for key:${String(u)} not yet set`);return a.current}return new Proxy(a,{apply:function(f,d){const h=c();return Reflect.apply(h,l?h:void 0,d)},construct:function(f,d){return Reflect.construct(c(),d)},get:function(f,d,h){return d===Het?f.current:d===$et||Reflect.get(c(),d,h)},set:function(f,d,h){return Reflect.set(d==="current"?f:c(),d,h)},defineProperty:function(f,d,h){return Reflect.defineProperty(c(),d,h)},deleteProperty:function(f,d){return Reflect.deleteProperty(c(),d)},getPrototypeOf:function(f){return Reflect.getPrototypeOf(c())},setPrototypeOf:function(f,d){return Reflect.setPrototypeOf(c(),d)},getOwnPropertyDescriptor:function(f,d){return Reflect.getOwnPropertyDescriptor(c(),d)},has:function(f,d){return Reflect.has(c(),d)},isExtensible:function(f){return Reflect.isExtensible(c())},ownKeys:function(f){return Reflect.ownKeys(c())},preventExtensions:function(f){return Reflect.preventExtensions(c())}})}(i,r===Jp.CLASS,t);return n.delayed.set(t,{proxy:s,proxyTarget:i}),s}create(t,r,n){const{beforeResolve:o,afterResolve:i,value:s,type:a}=r,l=s.inject;let u=[];l&&(u=Array.isArray(l)?this.resolveDeps(l,n):l.fn({container:this,ctx:n.ctx},...this.resolveDeps(l.deps,n)));const c=o?o({container:this,value:s.original,ctx:n.ctx},...u):s(...u);return i&&i({container:this,value:c,ctx:n.ctx}),n.requestedKeys.get(t).constructed=!0,a==="CLASS"&&"postConstruct"in c&&n.postConstruct.push(c),c}run(t,r,n,o){if(t===Z1.SINGLETON||t===Z1.CONTAINER_SINGLETON){var i;if(!this.pool.has(r)&&t===Z1.SINGLETON)return(i=this.parent)==null?void 0:i.resolve(r);const a=o.singletonCache.get(r);if(a!==void 0)return a===Fw?void 0:a;{let l=n();return l===void 0&&(l=Fw),this.singletonCache.set(r,l),l}}if(Z1.REQUEST===t){const a=o.requestCache.get(r);if(a!==void 0)return a===Fw?void 0:a;{let l=n();return l===void 0&&(l=Fw),o.requestCache.set(r,l),l}}const s=n();return o.transientCache.set(r,s),s}};function Get(e){return o9(e,"useClass")}function Ket(e){return o9(e,"useFactory")}function Vet(e){return o9(e,"useValue")}function Uet(e){return o9(e,"useToken")}const SE=Symbol("singleton");function Yet(e){return typeof e=="function"&&!!e.inject}function _3(e){return e[SE]?"SINGLETON":e.scope?e.scope:"TRANSIENT"}class Xet extends Wet{constructor(){super(...arguments),this.name="DependencyContainer"}bindValue(t,r){return this.has(t,!1)&&this.unbind(t),super.bindValue(t,r)}bindClass(t,r,n){const o=(n==null?void 0:n.scope)??_3(t);return super.bindClass(t,r,{...n,scope:o})}register(t,r){if(Vet(r))this.bindValue(t,r.useValue);else if(Ket(r)){const{useFactory:n}=r;this.bindFactory(t,{value:n,inject:[P1e]},{scope:r.scope})}else if(Uet(r))this.bindFactory(t,{value:n=>n,inject:[r.useToken]});else if(Get(r)){const n=r.scope??_3(r.useClass);this.bindClass(t,r.useClass,{scope:n})}}_resolve(t,r,n){if(!this.getInjectable(t)&&Yet(t)){const o=_3(t);this.bindClass(t,t,{scope:o})}return super._resolve(t,r,n)}}const Qet=()=>{const e=new Xet;return e.name="global",e},Lj=Qet();function ii(e,t){return Lj.bindValue(e,t),e}const P1e=ii("DependencyContainer",Lj),x6=A.createContext(Lj),Zet=({provide:e,name:t})=>({containerRef:n,onInitialize:o,onDispose:i,children:s})=>{const a=A.useContext(x6),l=A.useMemo(()=>{const u=a.child();return t&&(u.name=t),e==null||e.forEach(c=>{u.register(c.token,c)}),u.bindValue(P1e,u),o==null||o(u),u},[o,a]);return A.useImperativeHandle(n,()=>l,[l]),A.useEffect(()=>()=>{i==null||i(l),l.unbindAll(!0)},[l]),N.jsx(x6.Provider,{value:l,children:s})};ii("isControlFlowEnabledToken",!1);ii("isDoWhileLoopEnabledToken",!1);ii("isAnnotationEnabledToken",!1);ii("isDesignerUnifiedSubmissionFlowEnabledToken",!1);ii("isPipelineComputeDatastoreEnabledToken",!1);ii("TransactionalAuthoringEnabled",!1);ii("ComponentSettingsEnabled",!1);ii("isPipelineOwnerToken",!1);ii("isExecutionPhaseEnabledToken",!1);ii("isPipelineStreamingEnabledToken",!1);ii("useFocusedNodeId",()=>{});ii("useIsInSearchResult",()=>!1);ii("dismissCompareCheckListPanel",()=>null);const Jet=e=>(t,r)=>e(t,r),ett=()=>FZe(Jet);let T6=class q1e extends Ws{constructor(t,r){super(n=>this.state$.subscribe(n)),this.getSnapshot=()=>this.state$.getValue(),this.state$=new M1e(t),this.subscription=r.subscribe(this.state$)}static fromStates(t,r){const n=r(t.map(i=>i.getSnapshot())),o=yet(t).pipe(j1e(r));return new q1e(n,o)}destroy(){this.subscription.unsubscribe()}},st=class extends M1e{constructor(){super(...arguments),this.getState=()=>this.getValue(),this.setState=t=>{this.next(t)},this.updateState=t=>{this.next(t(this.getValue()))},this.getSnapshot=()=>this.getValue()}next(t,r){!r&&this.value===t||super.next(t)}copyFrom(t){this.next(t.getSnapshot())}};const _H=class _H{constructor(){this.nodesIndex$=new st(Ds()),this.allNodeNames$=T6.fromStates([],()=>Ds()),this.orientation$=new st(Jue.Vertical),this.language$=new st(void 0)}tweakFlattenNodeOrder(t,r){const n=this.nodesIndex$.getSnapshot(),o=n.findIndex(s=>s===t),i=o+r;if(o>=0&&i>=0&&i(this.addListener(t,r),r.next(this.get(t)),()=>{this.removeListener(t,r)}))}notify(t){var r;(r=this.listeners.get(t))==null||r.forEach(n=>{n.next(this.get(t))})}next(t){const r=this.getSnapshot();super.next(t);const n=new Set;r.forEach((o,i)=>{t.has(i)||n.add(i)}),t.forEach((o,i)=>{r.has(i)&&Object.is(r.get(i),o)||n.add(i)}),n.forEach(o=>{this.notify(o)})}addListener(t,r){let n=this.listeners.get(t);n||(n=new Set,this.listeners.set(t,n)),n.add(r)}removeListener(t,r){const n=this.listeners.get(t);n&&(n.delete(r),n.size===0&&this.listeners.delete(t))}}class Bw extends W1e{constructor(){super(vc())}set(t,r){return this.updateState(n=>n.set(t,r)),this}update(t,r){return this.updateState(n=>n.update(t,r)),this}delete(t){return this.updateState(r=>r.delete(t)),this}deleteAll(t){return this.updateState(r=>r.deleteAll(t)),this}clear(){return this.next(vc()),this}merge(t){return this.updateState(r=>r.merge(t)),this}}class Ko extends W1e{constructor(){super(ma())}set(t,r){return this.updateState(n=>n.set(t,r)),this}update(t,r){return this.updateState(n=>n.update(t,r)),this}delete(t){return this.updateState(r=>r.delete(t)),this}deleteAll(t){return this.updateState(r=>r.deleteAll(t)),this}clear(){return this.next(ma()),this}merge(t){return this.updateState(r=>r.merge(t)),this}insertBefore(t,r,n){return this.updateState(o=>ma().withMutations(i=>{for(const[s,a]of o.entries())t===s&&i.set(r,n),i.set(s,a)})),this.notify(r),this}insertAfter(t,r,n){return this.updateState(o=>ma().withMutations(i=>{for(const[s,a]of o.entries())i.set(s,a),t===s&&i.set(r,n)})),this.notify(r),this}sortByValue(t){return this.updateState(r=>r.sort(t)),this}}var DJ;const EH=class EH extends I6{constructor(){super(),this.isWorkspaceReady$=new st(!1),this.currentNodeId$=new st(void 0),this.graphConfig=Hg.default().build(),this.graphReducer=ett(),this.isReadonly$=new st(!1),this.name$=new st(""),this.flowType$=new st(Ad.Default),this.owner$=new st(void 0),this.isArchived$=new st(!1),this.selectedStepId$=new st(void 0),this.tools$=new Ko,this.toolsStatus$=new Ko,this.batchInputs$=new st([]),this.bulkRunDataReference$=new st(void 0),this.chatMessages$=new st([]),this.nodeVariants$=new Ko,this.tuningNodeNames$=new st([]),this.inputSpec$=new Ko,this.selectedBulkIndex$=new st(void 0),this.nodeRuns$=new Ko,this.flowRuns$=new st([]),this.rootFlowRunMap$=new Bw,this.flowOutputs$=new Ko,this.connections$=new Ko,this.promptToolSetting$=new st(void 0),this.userInfo$=new st(void 0),this.bulkRunDescription$=new st(""),this.bulkRunTags$=new st([]),this.nodeParameterTypes$=new Bw,this.theme$=new st(void 0),this.selectedRuntimeName$=new st(void 0),this.connectionList$=new st([]),this.connectionSpecList$=new st([]),this.connectionDeployments$=new Ko,this.connectionDeploymentsLoading$=new Ko,this.runStatus$=new st(void 0),this.flowRunType$=new st(void 0),this.packageToolsDictionary$=new Bw,this.codeToolsDictionary$=new Bw,this.isToolsJsonReady$=new st(!1),this.flowGraphLayout$=new st(void 0),this.flowUIHint$=new st(void 0),this.isInitialized$=new st(!1),this.flowFeatures$=new st(new Set),this.loaded=!1,this._allLlmParameterKeys=[],new Set(iQe).add(at.AutoFit);const r=new Set;r.add(Que.OpenCodeFileInNode),this.flowFeatures$.next(r),this.canvasState$=new st(xde({settings:{graphConfig:this.graphConfig,canvasBoundaryPadding:{top:800,bottom:800}},data:Lh.empty()})),this.allNodeNames$=T6.fromStates([this.nodeVariants$],([n])=>Ds(Array.from(n.keys()).filter(o=>!!o&&o!==jK&&o!==n$e))),y3(this.flowOutputs$,this.batchInputs$,this.inputSpec$,this.selectedRuntimeName$,this.bulkRunTags$,this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$).pipe(OJ(()=>this.loaded),OJ(()=>this.isInitialized$.getSnapshot()),b3(100)).subscribe(()=>{this.notifyFlowChange()}),y3(this.flowGraphLayout$,this.orientation$).pipe(b3(100)).subscribe(()=>{this.notifyLayoutChange()}),y3(this.flowUIHint$).pipe(b3(100)).subscribe(()=>{this.notifyUIHintChange()}),this.invalidStepInputs$=T6.fromStates([this.nodeVariants$,this.codeToolsDictionary$,this.packageToolsDictionary$,this.connectionList$,this.inputSpec$,this.nodeParameterTypes$],([n,o,i,s,a,l])=>this.validateNodeInputs(n))}attemptToRenameStep(t,r){if(!C$e(r))return`step name ${r} is not valid`;if(this.nodeVariants$.get(r))return`step with name ${r} already exists`;if(!this.nodeVariants$.get(t))return`step ${t} not found`;const o=(s,a,l)=>{const u={...s};return Object.keys(u).forEach(c=>{const f=u[c],d=QC(f),[h]=(d==null?void 0:d.split("."))??[];h===a&&(u[c]=f.replace(`${a}`,`${l}`))}),u},i=(s,a,l)=>{if(!s)return;const u={};return Object.entries(s).forEach(([c,f])=>{var d,h,g;u[c]={...f,node:{...f.node,name:((d=f.node)==null?void 0:d.name)===a?l:(h=f.node)==null?void 0:h.name,inputs:o(((g=f.node)==null?void 0:g.inputs)??{},a,l)}}}),u};pi.unstable_batchedUpdates(()=>{this.nodeVariants$.updateState(s=>s.mapEntries(([a,l])=>{const u={...l,variants:i(l.variants,t,r)};return[a===t?r:a,u]})),this.flowGraphLayout$.updateState(s=>({...s,nodeLayouts:XC((s==null?void 0:s.nodeLayouts)??{},t,r)})),this.flowUIHint$.updateState(s=>({...s,nodes:XC((s==null?void 0:s.nodes)??{},t,r)})),this.currentNodeId$.getSnapshot()===t&&this.currentNodeId$.next(r),this.selectedStepId$.getSnapshot()===t&&this.selectedStepId$.next(r),this.nodeRuns$.getSnapshot().forEach((s,a)=>{if(s.node===t){const[,l,u,c]=a.split("#"),f=parseInt(l,10);this.nodeRuns$.set(this.getNodeRunKey(r,isNaN(f)?0:f,u,c),{...s,node:r}),this.nodeRuns$.delete(a)}})})}acceptFlowEdit(t,r){t!==this.viewType&&this.loadFlow(r)}loadFlow(t){this.loaded=!1;try{pi.unstable_batchedUpdates(()=>{this.baseEntity=t,this.owner$.next(t.owner),this.isArchived$.next(t.isArchived??!1),this.loadFlowDto(t),t.flowRunResult&&this.loadStatus(t.flowRunResult)}),this.loaded=!0}catch(r){throw this.loaded=!0,r}}loadCodeTool(t,r){this.codeToolsDictionary$.set(t,r)}loadPackageTool(t,r){this.packageToolsDictionary$.set(t,r)}toBatchRequestData(){return{flow:{flowGraph:this.toFlowGraph(),nodeVariants:this.toNodeVariants(),flowGraphLayout:this.flowGraphLayout$.getSnapshot()},flowSubmitRunSettings:{...this.toFlowRunSettings()},flowRunDisplayName:this.name$.getSnapshot()}}toAddOnEvaluationRequestData(){return{flowSubmitRunSettings:{...this.toFlowRunSettings()}}}loadStatus(t){var i;this.clearStatus();let r=0;const n=[],o=new Map;if((i=t.flow_runs)!=null&&i.length){for(const s of t.flow_runs)s.index===null?o.set(s.run_id,s):(r=s.index,n.push(s));n.sort((s,a)=>{var l;return s.root_run_id===a.root_run_id?(s.index??0)-(a.index??0):s.variant_id&&a.variant_id?s.variant_id.localeCompare(a.variant_id):((l=s.root_run_id)==null?void 0:l.localeCompare((a==null?void 0:a.root_run_id)??""))??0}),this.flowRuns$.next(n),this.rootFlowRunMap$.next(vc(o))}t.flowRunType&&this.flowRunType$.next(t.flowRunType),t.runStatus&&this.runStatus$.next(t.runStatus),this.loadNodesStatus(t.node_runs||[]),this.selectedBulkIndex$.next(r)}loadNodesStatus(t){const r=this.tuningNodeNames$.getSnapshot()[0];t.forEach(n=>{const o=n.node===r,i=this.getDefaultVariantId(n.node),s=n.variant_id||i,a=o?s:i,l=this.getNodeRunKey(n.node,n.index??0,a,s);this.nodeRuns$.set(l,n)})}loadSingleNodeRunStatus(t,r,n){this.resetNodesStatus(t,r),n.forEach(o=>{const i=this.getDefaultVariantId(o.node),s=o.variant_id||i,a=o.variant_id||i,l=this.getNodeRunKey(o.node,o.index??0,a,s);this.nodeRuns$.set(l,o)})}resetNodesStatus(t,r){this.nodeRuns$.updateState(n=>n.filter(o=>{if(o.node!==t)return!0;const i=this.getDefaultVariantId(o.node);return(o.variant_id||i)!==r}))}clearStatus(){this.selectedBulkIndex$.next(void 0),this.nodeRuns$.clear(),this.flowRuns$.next([]),this.rootFlowRunMap$.clear()}getDefaultVariantId(t){var r;return((r=this.nodeVariants$.get(t))==null?void 0:r.defaultVariantId)||Ki}setStepInput(t,r,n,o){const i=this.getNode(t,o);if(!(i!=null&&i.name))return;const s={...i,inputs:{...i.inputs,[r]:n}};this.setNode(t,o,s)}removeStepInputs(t,r,n){const o=this.getNode(t,n);if(!(o!=null&&o.name))return;const i={...o.inputs};r.forEach(a=>{delete i[a]});const s={...o,inputs:i};this.setNode(t,n,s)}renameStepInput(t,r,n){const o=this.getNode(t,Ki);if(!(o!=null&&o.name))return;const i={...o,inputs:XC(o.inputs??{},r,n)};this.setNode(t,Ki,i)}setStepActivate(t,r,n){const o=this.getNode(t,r);if(!(o!=null&&o.name))return;const i={...o,activate:n};this.setNode(t,r,i)}setStepKeyValue(t,r,n,o){const i=this.getNode(t,o);if(!(i!=null&&i.name))return;const s={...i,[r]:n};this.setNode(t,o,s)}setStepSourcePath(t,r,n){const o=this.getNode(t,n);if(!(o!=null&&o.name))return;const i={...o,source:{...o.source,path:r}};this.setNode(t,n,i)}setBatchInput(t,r,n){const o=this.batchInputs$.getSnapshot();if(!o[t])return;const i=[...o];i[t]={...i[t],[r]:n},this.batchInputs$.setState(i)}setBulkRunTag(t,r,n){const o=[...this.bulkRunTags$.getSnapshot()];if(!o[t])return;const i={};i[r]=n,o[t]=i,this.bulkRunTags$.next(o)}deleteBulkRunTag(t){const r=[...this.bulkRunTags$.getSnapshot()];r.splice(t,1),this.bulkRunTags$.next(r)}addBulkRunTagRow(){const t=this.bulkRunTags$.getSnapshot(),r={"":""};this.bulkRunTags$.next([...t,r])}getNodeRunKey(t,r,n=Ki,o=Ki){return`${t}#${r}#${n}#${o}`}dispatch(t){var i;let r="";switch(t.type){case or.Click:this.currentNodeId$.next(void 0);break;case $t.Click:this.currentNodeId$.next(t.node.id,!0);break;case $t.DragEnd:{r=t.node.name??"";break}}const n=this.canvasState$.getSnapshot(),o=this.graphReducer(n,t);if(this.canvasState$.next(o),r){const s=o.data.present.nodes.find(u=>u.name===r),a=this.flowGraphLayout$.getSnapshot(),l={...a,nodeLayouts:{...a==null?void 0:a.nodeLayouts,[r]:{...(i=a==null?void 0:a.nodeLayouts)==null?void 0:i[r],x:s==null?void 0:s.x,y:s==null?void 0:s.y}}};this.flowGraphLayout$.next(l)}}setGraphConfig(t){this.graphConfig=t;const r=this.canvasState$.getSnapshot();this.canvasState$.next({...r,settings:{...r.settings,graphConfig:t}})}toFlowGraph(){const t=this.nodeVariants$.getSnapshot(),r=VK(Ds.of(...t.keys()),t);return{inputs:this.inputSpec$.getSnapshot().toJSON(),outputs:this.flowOutputs$.getSnapshot().toJSON(),nodes:r,tools:void 0}}toFlowGraphSnapshot(t){const r=Xb.mapValues(this.inputSpec$.getSnapshot().toJSON(),l=>{l.default!==void 0&&(l.default=Fk(l.default,l.type));const{name:u,id:c,...f}=l;return f}),n=Xb.mapValues(this.flowOutputs$.getSnapshot().toJSON(),l=>{const{name:u,id:c,...f}=l;return f}),i=N$e(t).map(l=>l.nodeName),s=S$e(Ds.of(...Object.keys(t)),t,i),a=R$e(t);return{inputs:r,outputs:n,nodes:s,node_variants:a}}toNodeVariants(){const t=this.nodeVariants$.getSnapshot().toJSON(),r={};return Object.keys(t).forEach(n=>{const o=t[n],i={};Object.keys(o.variants??{}).forEach(s=>{const a=(o.variants??{})[s];i[s]={...a,node:a.node?this.pruneNodeInputs(a.node):void 0}}),r[n]={...o,variants:i}}),r}toFlowRunSettings(){var t,r;return{tuningNodeNames:this.tuningNodeNames$.getSnapshot(),variants:void 0,runtimeName:(t=this.selectedRuntimeName$)==null?void 0:t.getSnapshot(),description:this.bulkRunDescription$.getSnapshot(),tags:Object.assign({},...this.bulkRunTags$.getSnapshot()),...this.bulkRunDataReference$.getSnapshot()!==void 0?{batchDataInput:{dataUri:(r=this.bulkRunDataReference$.getSnapshot())==null?void 0:r.id}}:{batch_inputs:this.batchInputs$.getSnapshot()}}}toJSON(){const t=this.toNodeVariants();return{...this.baseEntity,flow:{flowGraph:this.toFlowGraphSnapshot(t)},flowName:this.name$.getSnapshot(),flowRunSettings:this.toFlowRunSettings()}}toFlowGraphLayout(){const t=this.flowGraphLayout$.getSnapshot()??{},r=Array.from(this.nodeVariants$.getSnapshot().keys()),n={...t.nodeLayouts};return Object.keys(n).forEach(o=>{n[o]={...n[o],index:r.indexOf(o)}}),{...t,nodeLayouts:n,orientation:this.orientation$.getSnapshot()}}toFlowUIHint(){return this.flowUIHint$.getSnapshot()??{nodes:{}}}updateToolCode(t,r){const n=this.codeToolsDictionary$.get(t);n&&this.codeToolsDictionary$.set(t,{...n,code:r})}updateToolStatus(t,r){const n=this.toolsStatus$.get(t);this.toolsStatus$.set(t,{...n,...r})}updateFlowInput(t,r){const n=this.batchInputs$.getSnapshot(),o=n==null?void 0:n[0];let i=r;try{const s=JSON.parse(r);i=JSON.stringify(s)}catch{i=r}this.batchInputs$.next([{...o,[t]:i},...n.slice(1)])}addNewNode(t,r){if(!t.name)return;const n=t,o={defaultVariantId:Ki,variants:{[Ki]:{node:n}}};r?this.nodeVariants$.insertBefore(r,t.name,o):this.nodeVariants$.set(t.name,o)}patchEditData(t){var r,n,o,i;switch(t.type){case"chatInput":{if(this.flowType$.getSnapshot()!==Ad.Chat)return;const s=this.batchInputs$.getSnapshot(),a=((r=this.getChatInputDefinition())==null?void 0:r.name)??Xp;this.batchInputs$.next([{...s[0],[a]:t.value}]);break}case"chatHistory":{if(this.flowType$.getSnapshot()!==Ad.Chat)return;const s=this.batchInputs$.getSnapshot(),a=((n=this.getChatHistoryDefinition())==null?void 0:n.name)??ah,l=((o=this.getChatInputDefinition())==null?void 0:o.name)??Xp,u=((i=this.getChatOutputDefinition())==null?void 0:i.name)??Mm;this.batchInputs$.next([{...s[0],[a]:[...s[0][a],{inputs:{[l]:t.value.chatInput},outputs:{[u]:t.value.chatOutput}}].slice(-10)}]);break}case"flowGraph":{try{this.loaded=!1,pi.unstable_batchedUpdates(()=>{this.loadFlorGraph(t.value)})}finally{this.loaded=!0}break}default:{const s=t;throw new Error(`Didn't expect to get here: ${s}`)}}}getChatInputDefinition(){return this.inputSpec$.getSnapshot().find(HK)}getChatHistoryDefinition(){const t=this.flowType$.getSnapshot();return this.inputSpec$.getSnapshot().find(r=>$K(t,r))}getChatOutputDefinition(){return this.flowOutputs$.getSnapshot().find(PK)}clearChatMessages(){this.chatMessages$.next([]),this.syncChatMessagesToInputsValues([])}getProviderByConnection(t){var s;if(!t)return;const r=this.connectionList$.getSnapshot(),n=this.promptToolSetting$.getSnapshot(),o=r.find(a=>a.connectionName===t);if(!o)return;const i=(s=n==null?void 0:n.providers)==null?void 0:s.find(a=>{var l;return o.connectionType&&((l=a.connection_type)==null?void 0:l.includes(o.connectionType))});if(i)return i.provider}addFlowInput(t,r){this.inputSpec$.set(t,{...r,name:t,id:(r==null?void 0:r.id)??oce()})}addFlowOutput(t,r){this.flowOutputs$.set(t,{...r,name:t,id:(r==null?void 0:r.id)??B$e()})}loadFlorGraph(t){var i;const r=(t==null?void 0:t.nodes)||[],n=(t==null?void 0:t.outputs)||{},o=(t==null?void 0:t.inputs)||{};this.nodeVariants$.clear(),r.forEach(s=>{s.name&&(this.nodeVariants$.get(s.name)||this.nodeVariants$.set(s.name,{defaultVariantId:Ki,variants:{[Ki]:{node:s}}}))}),(i=Object.entries((t==null?void 0:t.node_variants)??{}))==null||i.forEach(([s,a])=>{const l={...a.variants};Object.entries(l).forEach(([u,c])=>{c.node&&(c.node.name=s)}),this.nodeVariants$.set(s,{defaultVariantId:a.default_variant_id??Ki,variants:l})}),this.flowOutputs$.clear(),Object.keys(n).forEach(s=>{const a=n[s];a&&this.addFlowOutput(s,a)}),this.inputSpec$.clear(),Object.keys(o).forEach(s=>{const a=o[s];a&&this.addFlowInput(s,a)})}loadFlowDto(t){var r,n,o,i,s,a,l,u,c,f,d,h,g,v;if(this.name$.next(t.flowName??""),this.flowType$.next(t.flowType??Ad.Default),this.loadFlorGraph((r=t.flow)==null?void 0:r.flowGraph),(n=t.flow)!=null&&n.nodeVariants&&((i=Object.entries(((o=t.flow)==null?void 0:o.nodeVariants)??{}))==null||i.forEach(([y,E])=>{this.nodeVariants$.set(y,{...E,defaultVariantId:E.defaultVariantId??Ki})})),(a=(s=t.flow)==null?void 0:s.flowGraphLayout)!=null&&a.nodeLayouts){const y=(l=t.flow)==null?void 0:l.flowGraphLayout;this.flowGraphLayout$.next(y),y.orientation&&this.orientation$.next(y.orientation)}if(this.selectedRuntimeName$.setState(((u=t.flowRunSettings)==null?void 0:u.runtimeName)??""),this.batchInputs$.setState(((c=t.flowRunSettings)==null?void 0:c.batch_inputs)??[{}]),this.tuningNodeNames$.setState(((f=t.flowRunSettings)==null?void 0:f.tuningNodeNames)??[]),this.bulkRunDescription$.next(t.description??""),this.bulkRunTags$.next([]),t.tags){const y=[];Object.keys(t.tags).forEach(E=>{var _;y.push({[E]:((_=t==null?void 0:t.tags)==null?void 0:_[E])??""})}),this.bulkRunTags$.next(y)}this.initNodeParameterTypes((d=t.flow)==null?void 0:d.flowGraph),t.flowType===Ad.Chat&&(this.initChatFlow(t),this.initChatMessages(((h=t.flowRunSettings)==null?void 0:h.batch_inputs)??[{}])),this.language$.next((v=(g=t.flow)==null?void 0:g.flowGraph)==null?void 0:v.language)}initNodeParameterTypes(t){if(!t)return;const r=this.nodeVariants$.getSnapshot().toJSON();let n=vc(new Map);Object.keys(r).forEach(o=>{const i=r[o];Object.keys(i.variants??{}).forEach(s=>{var l;const a=(i.variants??{})[s];if(a.node){const u={inputs:{},activate:{is:void 0}},c=this.getToolOfNode(a.node);if((a.node.type??(c==null?void 0:c.type))===Ri.python){const f=Object.keys((c==null?void 0:c.inputs)??{});Object.keys(a.node.inputs??{}).filter(g=>!f.includes(g)).forEach(g=>{var v,y;u.inputs[g]=GK((y=(v=a.node)==null?void 0:v.inputs)==null?void 0:y[g])??Te.string})}u.activate.is=GK((l=a.node.activate)==null?void 0:l.is)??Te.string,n=n.set(`${o}#${s}`,u)}})}),this.nodeParameterTypes$.next(n)}initChatFlow(t){if(t.flowType!==Ad.Chat)return;this.inputSpec$.getSnapshot().some(i=>$K(t.flowType,i))||(this.addFlowInput(ah,{name:ah,type:Te.list}),this.batchInputs$.updateState(i=>[{...i[0],[ah]:[]},...i.slice(1)])),this.inputSpec$.getSnapshot().some(i=>HK(i))||this.addFlowInput(Xp,{name:Xp,type:Te.string,is_chat_input:!0}),this.flowOutputs$.getSnapshot().some(i=>PK(i))||this.addFlowOutput(Mm,{name:Mm,type:Te.string,is_chat_output:!0})}initChatMessages(t){var a,l,u;const r=((a=this.getChatHistoryDefinition())==null?void 0:a.name)??ah,n=t[0][r];if(!Array.isArray(n))return;const o=((l=this.getChatInputDefinition())==null?void 0:l.name)??Xp,i=((u=this.getChatOutputDefinition())==null?void 0:u.name)??Mm,s=u$e(o,i,n);this.chatMessages$.next(s),this.syncChatMessagesToInputsValues(s)}syncChatMessagesToInputsValues(t){var n,o,i;if(this.batchInputs$.getSnapshot().length<=1){const s=((n=this.getChatInputDefinition())==null?void 0:n.name)??Xp,a=((o=this.getChatOutputDefinition())==null?void 0:o.name)??Mm,l=((i=this.getChatHistoryDefinition())==null?void 0:i.name)??ah,u=[];for(let c=0;c[{...c[0],[l]:u}])}}getNode(t,r){var n,o,i;return(i=(o=(n=this.nodeVariants$.get(t))==null?void 0:n.variants)==null?void 0:o[r])==null?void 0:i.node}setNode(t,r,n){var i;const o=this.nodeVariants$.get(t);this.nodeVariants$.set(t,{defaultVariantId:(o==null?void 0:o.defaultVariantId)??Ki,variants:{...o==null?void 0:o.variants,[r]:{...(i=o==null?void 0:o.variants)==null?void 0:i[r],node:n}}})}getAllLlmParameterKeys(){var t;if(this._allLlmParameterKeys.length===0){const r=this.promptToolSetting$.getSnapshot();if(!r)return[];const n=(t=r.providers)==null?void 0:t.flatMap(i=>{var s;return(s=i.apis)==null?void 0:s.map(a=>a.parameters)}),o=new Set(n==null?void 0:n.flatMap(i=>Object.keys(i??{})));this._allLlmParameterKeys=[...o.values()]}return this._allLlmParameterKeys}pruneNodeInputs(t){var f,d,h,g;const r=t?this.getToolOfNode(t):void 0,n=this.promptToolSetting$.getSnapshot(),o=this.connectionList$.getSnapshot(),i=this.connectionSpecList$.getSnapshot();if(!r||!n)return t;if((t.type??r.type)===Ri.python&&r.enable_kwargs){const v={};return Object.keys(t.inputs??{}).forEach(y=>{var E,_,S,b;if(((E=t.inputs)==null?void 0:E[y])!==void 0){const k=(_=r.inputs)==null?void 0:_[y];v[y]=Fk((S=t.inputs)==null?void 0:S[y],(b=k==null?void 0:k.type)==null?void 0:b[0])}}),{...t,inputs:v}}const s=this.getProviderByConnection(t.connection??"");if((t.type??r.type)===Ri.llm&&(!s||!t.api))return t;const a=(t.type??r.type)===Ri.llm,l=a?(g=(h=(d=(f=n==null?void 0:n.providers)==null?void 0:f.find(v=>v.provider===s))==null?void 0:d.apis)==null?void 0:h.find(v=>v.api===t.api))==null?void 0:g.parameters:void 0,u=new Set(KK(r.inputs,t.inputs,o,i).concat(a?this.getAllLlmParameterKeys():[])),c={};return Object.keys(t.inputs??{}).forEach(v=>{var y,E,_,S;if(u.has(v)&&((y=t.inputs)==null?void 0:y[v])!==void 0){const b=((E=r.inputs)==null?void 0:E[v])??(l==null?void 0:l[v]);c[v]=Fk((_=t.inputs)==null?void 0:_[v],(S=b==null?void 0:b.type)==null?void 0:S[0])}}),{...t,inputs:c}}getToolOfNode(t){var o,i;const r=this.codeToolsDictionary$.get(((o=t.source)==null?void 0:o.path)??""),n=this.packageToolsDictionary$.get(((i=t.source)==null?void 0:i.tool)??"");return k$e(t,r,n,s=>this.codeToolsDictionary$.get(s))}validateNodeInputs(t){const r=new Map,n=this.getNodesInCycle(t),o=this.connectionList$.getSnapshot(),i=this.connectionSpecList$.getSnapshot(),s=[];return this.inputSpec$.getSnapshot().forEach((l,u)=>{const c=l.default,f=l.type;if(c!==void 0&&c!==""&&!ZC(c,f)){const d={section:"inputs",parameterName:u,type:ki.InputInvalidType,message:"Input type is not valid"};s.push(d)}}),s.length>0&&r.set(`${jK}#`,s),Array.from(t.values()).forEach(l=>{const{variants:u={}}=l;Object.keys(u).forEach(c=>{var E,_,S;const f=u[c],{node:d}=f,h=d?this.getToolOfNode(d):void 0,g=KK(h==null?void 0:h.inputs,d==null?void 0:d.inputs,o,i);if(!d||!d.name)return;if(!h){const b=d;r.set(`${d.name}#${c}`,[{type:ki.MissingTool,message:`Can't find tool ${((E=b==null?void 0:b.source)==null?void 0:E.tool)??((_=b==null?void 0:b.source)==null?void 0:_.path)}`}]);return}const v=[],y=this.validateNodeConfig(d,h);if(y&&v.push(y),g.forEach(b=>{const k=this.validateNodeInputRequired(h,d,b);k&&v.push(k)}),d.inputs&&v.push(...Object.keys(d.inputs).map(b=>{if(!g.includes(b)&&!h.enable_kwargs)return;const{isReference:k,error:T}=this.validateNodeInputReference(d,"inputs",b,t,n);if(T)return T;if(!k)return this.validateNodeInputType(h,d,c,b)}).filter(Boolean)),d.activate){const{error:b}=this.validateNodeInputReference(d,"activate","when",t,n);b&&v.push(b);const k=d.activate.is,T=(S=this.nodeParameterTypes$.get(`${d.name}#${c}`))==null?void 0:S.activate.is;if(!ZC(k,T)){const x={section:"activate",parameterName:"is",type:ki.InputInvalidType,message:"Input type is not valid"};v.push(x)}}r.set(`${d.name}#${c}`,v)})}),r}getNodesInCycle(t){const r=VK(Ds.of(...t.keys()),t),n=new Map;r.forEach(u=>{var f;const c=(d,h,g)=>{const v=QC(g),[y]=(v==null?void 0:v.split("."))??[];!y||zK(y)||n.set(`${u.name}.${d}.${h}`,y)};Object.keys((u==null?void 0:u.inputs)??{}).forEach(d=>{var g;const h=(g=u.inputs)==null?void 0:g[d];c("inputs",d,h)}),c("activate","when",(f=u.activate)==null?void 0:f.when)});const o=new Map,i=new Map,s=new Map,a=new Map;return r.forEach(u=>{const c=u.name;c&&(o.set(c,0),i.set(c,0),s.set(c,[]),a.set(c,[]))}),r.forEach(u=>{const c=u.name;if(!c)return;const f=(d,h)=>{const g=n.get(`${c}.${d}.${h}`);g&&(o.set(c,(o.get(c)??0)+1),i.set(g,(i.get(g)??0)+1),s.set(g,[...s.get(g)??[],c]),a.set(c,[...a.get(c)??[],g]))};Object.keys((u==null?void 0:u.inputs)??{}).forEach(d=>{f("inputs",d)}),f("activate","when")}),P$e(o,s,i,a)}validateNodeConfig(t,r){var o,i,s,a,l,u,c;const n=this.promptToolSetting$.getSnapshot();if((t.type??(r==null?void 0:r.type))===Ri.llm){if(!t.connection)return{parameterName:"connection",type:ki.NodeConfigInvalid,message:"connection is required"};if(!this.connectionList$.getSnapshot().some(v=>v.connectionName===t.connection))return{parameterName:"connection",type:ki.NodeConfigInvalid,message:"connection is not valid"};if(!t.api)return{parameterName:"api",type:ki.NodeConfigInvalid,message:"api is required"};const f=this.getProviderByConnection(t.connection),d=(a=(s=(i=(o=n==null?void 0:n.providers)==null?void 0:o.find(v=>v.provider===f))==null?void 0:i.apis)==null?void 0:s.find(v=>v.api===t.api))==null?void 0:a.parameters;if((d==null?void 0:d.model)&&!((l=t.inputs)!=null&&l.model))return{parameterName:"model",type:ki.NodeConfigInvalid,message:"model is required"};if((d==null?void 0:d.deployment_name)&&!((u=t.inputs)!=null&&u.deployment_name))return{parameterName:"deployment_name",type:ki.NodeConfigInvalid,message:"deployment_name is required"}}if(r&&((c=r==null?void 0:r.connection_type)!=null&&c.length)&&!t.connection)return{parameterName:"connection",type:ki.NodeConfigInvalid,message:"connection is required"}}validateNodeInputRequired(t,r,n){var i,s,a;if(((s=(i=t.inputs)==null?void 0:i[n])==null?void 0:s.default)!==void 0)return;const o=(a=r.inputs)==null?void 0:a[n];if(o===void 0||o==="")return{section:"inputs",parameterName:n,type:ki.InputEmpty,message:"Input cannot be empty"}}validateNodeInputReference(t,r,n,o,i){var f;const s=(f=t==null?void 0:t[r])==null?void 0:f[n],a=QC(s),[l,u]=(a==null?void 0:a.split("."))??[];return l?zK(l)?this.inputSpec$.get(u)?{isReference:!0,error:void 0}:{isReference:!0,error:{section:r,parameterName:n,type:ki.InputDependencyNotFound,message:`${a} is not a valid flow input`}}:l===t.name?{isReference:!0,error:{section:r,parameterName:n,type:ki.InputSelfReference,message:"Input cannot reference itself"}}:o.get(l)?t.name&&i.has(t.name)&&i.has(l)?{isReference:!0,error:{section:r,parameterName:n,type:ki.CircularDependency,message:"Input cannot reference a node in a cycle"}}:{isReference:!0,error:void 0}:{isReference:!0,error:{section:r,parameterName:n,type:ki.InputDependencyNotFound,message:`${l} is not a valid node name`}}:{isReference:!1,error:void 0}}validateNodeInputType(t,r,n,o){var u,c,f,d,h;const i=(u=r.inputs)==null?void 0:u[o];if(!i)return;const s=(c=t==null?void 0:t.inputs)==null?void 0:c[o],a=((f=s==null?void 0:s.type)==null?void 0:f[0])??((h=(d=this.nodeParameterTypes$.get(`${r.name}#${n}`))==null?void 0:d.inputs)==null?void 0:h[o]),l=(r.type??t.type)===Ri.custom_llm&&o==="tool_choice";if(!(!i||!t||!a||l)&&!ZC(i,a))return{section:"inputs",parameterName:o,type:ki.InputInvalidType,message:"Input type is not valid"}}};DJ=SE,EH[DJ]=!0;let C6=EH;class ttt extends C6{constructor(){super(...arguments),this.viewType="default"}fetchConnectionList(){}fetchPromptToolSetting(){}openRunListView(){}deployFlow(){}setSelectedStepId(){}notifyFlowChange(){}notifyLayoutChange(){}notifyUIHintChange(){}}ii("FlowViewModel",new ttt);function rtt(...e){const t=A.useContext(x6);return A.useMemo(()=>e.map(r=>{try{return t.resolve(r)}catch(n){throw[r,n]}}),[t].concat(e))}var G1e={exports:{}},K1e={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -421,21 +421,21 @@ PERFORMANCE OF THIS SOFTWARE. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Xg=A;function Zet(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jet=typeof Object.is=="function"?Object.is:Zet,ett=Xg.useState,ttt=Xg.useEffect,rtt=Xg.useLayoutEffect,ntt=Xg.useDebugValue;function ott(e,t){var r=t(),n=ett({inst:{value:r,getSnapshot:t}}),o=n[0].inst,i=n[1];return rtt(function(){o.value=r,o.getSnapshot=t,E3(o)&&i({inst:o})},[e,r,t]),ttt(function(){return E3(o)&&i({inst:o}),e(function(){E3(o)&&i({inst:o})})},[e]),ntt(r),r}function E3(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Jet(e,r)}catch{return!0}}function itt(e,t){return t()}var stt=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?itt:ott;G1e.useSyncExternalStore=Xg.useSyncExternalStore!==void 0?Xg.useSyncExternalStore:stt;W1e.exports=G1e;var K1e=W1e.exports;const V1e=e=>A.useCallback(t=>{const r=e.subscribe(t);return()=>{r.unsubscribe()}},[e]);function ri(e){const t=V1e(e),{getSnapshot:r}=e;return K1e.useSyncExternalStore(t,r)}function Lj(e){return A.useCallback(t=>{typeof t!="function"?e.setState(t):e.setState(t(e.getSnapshot()))},[e])}function Su(e){const t=ri(e),r=Lj(e);return[t,r]}const att=eet(void 0);function jj(e,t){const r=A.useMemo(()=>t&&e?e==null?void 0:e.observeKey(t):att,[t,e]),n=V1e(r),o=A.useCallback(()=>t?e==null?void 0:e.get(t):void 0,[t,e]);return K1e.useSyncExternalStore(n,o)}var DJ;const EH=class EH{constructor(t,r){this.isChatBoxBottomTipVisible$=new st(t.isChatBoxBottomTipVisible),this.simpleMode$=new st(t.simpleMode),this.freezeLayout$=new st(t.freezeLayout),this.viewMyOnlyFlow$=new st(t.viewMyOnlyFlow),this.viewOnlyMyRuns$=new st(t.viewOnlyMyRuns),this.viewArchived$=new st(t.viewArchived),this.wrapTextOn$=new st(t.wrapTextOn),this.diffModeOn$=new st(t.diffModeOn),this.isRightTopPaneCollapsed$=new st(t.isRightTopPaneCollapsed),this.isRightBottomPaneCollapsed$=new st(t.isRightBottomPaneCollapsed),this.leftPaneWidth$=new st(t.leftPaneWidth),this.rightTopPaneHeight$=new st(t.rightTopPaneHeight);const n=(o,i)=>{i.subscribe(s=>{r({...this.getSettingsSnapshot(),[o]:s})})};n("isChatBoxBottomTipVisible",this.isChatBoxBottomTipVisible$),n("simpleMode",this.simpleMode$),n("freezeLayout",this.freezeLayout$),n("viewMyOnlyFlow",this.viewMyOnlyFlow$),n("viewOnlyMyRuns",this.viewOnlyMyRuns$),n("viewArchived",this.viewArchived$),n("wrapTextOn",this.wrapTextOn$),n("diffModeOn",this.diffModeOn$),n("isRightTopPaneCollapsed",this.isRightTopPaneCollapsed$),n("isRightBottomPaneCollapsed",this.isRightBottomPaneCollapsed$),n("leftPaneWidth",this.leftPaneWidth$),n("rightTopPaneHeight",this.rightTopPaneHeight$)}getSettingsSnapshot(){return{isChatBoxBottomTipVisible:this.isChatBoxBottomTipVisible$.getSnapshot(),simpleMode:this.simpleMode$.getSnapshot(),freezeLayout:this.freezeLayout$.getSnapshot(),viewMyOnlyFlow:this.viewMyOnlyFlow$.getSnapshot(),viewOnlyMyRuns:this.viewOnlyMyRuns$.getSnapshot(),viewArchived:this.viewArchived$.getSnapshot(),wrapTextOn:this.wrapTextOn$.getSnapshot(),diffModeOn:this.diffModeOn$.getSnapshot(),isRightTopPaneCollapsed:this.isRightTopPaneCollapsed$.getSnapshot(),isRightBottomPaneCollapsed:this.isRightBottomPaneCollapsed$.getSnapshot(),leftPaneWidth:this.leftPaneWidth$.getSnapshot(),rightTopPaneHeight:this.rightTopPaneHeight$.getSnapshot()}}};DJ=SE,EH[DJ]=!0;let C6=EH;class ltt extends C6{constructor(){super({isChatBoxBottomTipVisible:!0,simpleMode:!0,freezeLayout:!1,viewMyOnlyFlow:!1,viewOnlyMyRuns:!1,viewArchived:!0,wrapTextOn:!1,diffModeOn:!1,isRightTopPaneCollapsed:!0,isRightBottomPaneCollapsed:!1,leftPaneWidth:"66%",rightTopPaneHeight:360},()=>{})}}ii("FlowSettingViewModel",new ltt);_r({root:{display:"flex",flexWrap:"nowrap"},item:{display:"inline-flex",alignItems:"center",marginRight:"8px",lineHeight:"14px"}});mi({line:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});function It(e){const t=A.useRef(e);return A.useLayoutEffect(()=>{t.current=e}),A.useCallback((...r)=>{const n=t.current;return n(...r)},[])}const no=typeof acquireVsCodeApi<"u",yi=no?acquireVsCodeApi():{postMessage:()=>{},getState:()=>({}),setState:()=>{}};function wl(e,t){const r=It(n=>{n.data.name===e&&t(n.data.payload)});A.useEffect(()=>(yi.postMessage({subscribeMessage:e}),window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}),[r,e])}const utt=e=>{const[t]=re.useState(()=>Math.random().toString(32).slice(2)),r=async n=>{const o=U1e(n);o&&yi.postMessage({name:cn.FILE_RELATIVE_PATH_REQUEST,payload:{id:t,path:o.path,fileName:o.name,fileBase64:o.path?void 0:await v7(o)}})};return wl(cn.FILE_RELATIVE_PATH_RESPONSE,({id:n,relativePath:o})=>{n!==t||!o||e(o)}),{onPaste:r}},U1e=e=>{var r,n;const t=((r=e.clipboardData)==null?void 0:r.files)||((n=e.dataTransfer)==null?void 0:n.files)||[];if(t.length>0)return e.preventDefault(),e.stopPropagation(),t[0]};var FJ;const SH=class SH{constructor(){this.extensionConfigurations$=new st(void 0),this.isPackageInstalled$=new st(void 0),this.sdkVersion$=new st(void 0),this.sdkFeatureList$=new st([]),this.uxFeatureList$=new st([])}};FJ=SE,SH[FJ]=!0;let N6=SH;ii("VSCodeFlowViewModel",new N6);re.createContext({variantName:Ki,haveMultipleVariants:!1,showAllVariantsOutputs:!1,isDisableEditing:!1});function ctt(e,t){const[r,n]=A.useState(e);return A.useEffect(()=>{const o=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(o)}},[e,t]),r}var BJ;const Y1e=(e,t)=>e.map(r=>({...r,level:t,children:r.children?Y1e(r.children,t+1):void 0})),wH=class wH{constructor(){this.rows$=new st(Ds([])),this.selectedRowId$=new st(void 0),this.startTime=Number.MAX_SAFE_INTEGER,this.endTime=0}toggleRow(t){const r=this.rows$.getSnapshot(),n=r.findIndex(a=>a.id===t),o=r.get(n);if(!o)return;const{children:i}=o;if(!i)return;const s=[...r];if(s[n]={...o,isExpanded:!o.isExpanded},o.isExpanded){let a=0;const l=u=>{var f;!u.children||!((f=this.rows$.getSnapshot().find(d=>d.id===u.id))!=null&&f.isExpanded)||(a+=u.children.length,u.children.forEach(l))};l(o),s.splice(n+1,a)}else s.splice(n+1,0,...i);this.rows$.next(Ds(s))}setRows(t){this.rows$.next(Ds(t))}setTasks(t){this.startTime=Number.MAX_SAFE_INTEGER,this.endTime=0,this.rows$.next(Ds(Y1e(t,0)));const r=n=>{n.forEach(o=>{o.startTimethis.endTime&&(this.endTime=o.endTime),o.children&&r(o.children)})};r(t)}expandAllChildrenRowsByRowId(t){const r=this.rows$.getSnapshot().find(n=>n.id===t);!r||r.isExpanded||(this.toggleRow(t),r.children&&r.children.forEach(n=>{this.expandAllChildrenRowsByRowId(n.id)}))}expandAllRows(){this.rows$.getSnapshot().forEach(r=>{r.children&&!r.isExpanded&&this.expandAllChildrenRowsByRowId(r.id)})}};BJ=SE,wH[BJ]=!0;let ax=wH;const X1e=ii("GanttViewModel",new ax);function zj(e,t,r){return r={path:t,exports:{},require:function(n,o){return ftt(n,o??r.path)}},e(r,r.exports),r.exports}function ftt(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var lx=zj(function(e){/*! + */var Xg=A;function ntt(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ott=typeof Object.is=="function"?Object.is:ntt,itt=Xg.useState,stt=Xg.useEffect,att=Xg.useLayoutEffect,ltt=Xg.useDebugValue;function utt(e,t){var r=t(),n=itt({inst:{value:r,getSnapshot:t}}),o=n[0].inst,i=n[1];return att(function(){o.value=r,o.getSnapshot=t,E3(o)&&i({inst:o})},[e,r,t]),stt(function(){return E3(o)&&i({inst:o}),e(function(){E3(o)&&i({inst:o})})},[e]),ltt(r),r}function E3(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ott(e,r)}catch{return!0}}function ctt(e,t){return t()}var ftt=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ctt:utt;K1e.useSyncExternalStore=Xg.useSyncExternalStore!==void 0?Xg.useSyncExternalStore:ftt;G1e.exports=K1e;var V1e=G1e.exports;const U1e=e=>A.useCallback(t=>{const r=e.subscribe(t);return()=>{r.unsubscribe()}},[e]);function ri(e){const t=U1e(e),{getSnapshot:r}=e;return V1e.useSyncExternalStore(t,r)}function jj(e){return A.useCallback(t=>{typeof t!="function"?e.setState(t):e.setState(t(e.getSnapshot()))},[e])}function Su(e){const t=ri(e),r=jj(e);return[t,r]}const dtt=iet(void 0);function zj(e,t){const r=A.useMemo(()=>t&&e?e==null?void 0:e.observeKey(t):dtt,[t,e]),n=U1e(r),o=A.useCallback(()=>t?e==null?void 0:e.get(t):void 0,[t,e]);return V1e.useSyncExternalStore(n,o)}var FJ;const SH=class SH{constructor(t,r){this.isChatBoxBottomTipVisible$=new st(t.isChatBoxBottomTipVisible),this.simpleMode$=new st(t.simpleMode),this.freezeLayout$=new st(t.freezeLayout),this.viewMyOnlyFlow$=new st(t.viewMyOnlyFlow),this.viewOnlyMyRuns$=new st(t.viewOnlyMyRuns),this.viewArchived$=new st(t.viewArchived),this.wrapTextOn$=new st(t.wrapTextOn),this.diffModeOn$=new st(t.diffModeOn),this.isRightTopPaneCollapsed$=new st(t.isRightTopPaneCollapsed),this.isRightBottomPaneCollapsed$=new st(t.isRightBottomPaneCollapsed),this.leftPaneWidth$=new st(t.leftPaneWidth),this.rightTopPaneHeight$=new st(t.rightTopPaneHeight);const n=(o,i)=>{i.subscribe(s=>{r({...this.getSettingsSnapshot(),[o]:s})})};n("isChatBoxBottomTipVisible",this.isChatBoxBottomTipVisible$),n("simpleMode",this.simpleMode$),n("freezeLayout",this.freezeLayout$),n("viewMyOnlyFlow",this.viewMyOnlyFlow$),n("viewOnlyMyRuns",this.viewOnlyMyRuns$),n("viewArchived",this.viewArchived$),n("wrapTextOn",this.wrapTextOn$),n("diffModeOn",this.diffModeOn$),n("isRightTopPaneCollapsed",this.isRightTopPaneCollapsed$),n("isRightBottomPaneCollapsed",this.isRightBottomPaneCollapsed$),n("leftPaneWidth",this.leftPaneWidth$),n("rightTopPaneHeight",this.rightTopPaneHeight$)}getSettingsSnapshot(){return{isChatBoxBottomTipVisible:this.isChatBoxBottomTipVisible$.getSnapshot(),simpleMode:this.simpleMode$.getSnapshot(),freezeLayout:this.freezeLayout$.getSnapshot(),viewMyOnlyFlow:this.viewMyOnlyFlow$.getSnapshot(),viewOnlyMyRuns:this.viewOnlyMyRuns$.getSnapshot(),viewArchived:this.viewArchived$.getSnapshot(),wrapTextOn:this.wrapTextOn$.getSnapshot(),diffModeOn:this.diffModeOn$.getSnapshot(),isRightTopPaneCollapsed:this.isRightTopPaneCollapsed$.getSnapshot(),isRightBottomPaneCollapsed:this.isRightBottomPaneCollapsed$.getSnapshot(),leftPaneWidth:this.leftPaneWidth$.getSnapshot(),rightTopPaneHeight:this.rightTopPaneHeight$.getSnapshot()}}};FJ=SE,SH[FJ]=!0;let N6=SH;class htt extends N6{constructor(){super({isChatBoxBottomTipVisible:!0,simpleMode:!0,freezeLayout:!1,viewMyOnlyFlow:!1,viewOnlyMyRuns:!1,viewArchived:!0,wrapTextOn:!1,diffModeOn:!1,isRightTopPaneCollapsed:!0,isRightBottomPaneCollapsed:!1,leftPaneWidth:"66%",rightTopPaneHeight:360},()=>{})}}ii("FlowSettingViewModel",new htt);vr({root:{display:"flex",flexWrap:"nowrap"},item:{display:"inline-flex",alignItems:"center",marginRight:"8px",lineHeight:"14px"}});mi({line:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});function It(e){const t=A.useRef(e);return A.useLayoutEffect(()=>{t.current=e}),A.useCallback((...r)=>{const n=t.current;return n(...r)},[])}const Un=typeof acquireVsCodeApi<"u",zi=Un?acquireVsCodeApi():{postMessage:()=>{},getState:()=>({}),setState:()=>{}};function kl(e,t){const r=It(n=>{n.data.name===e&&t(n.data.payload)});A.useEffect(()=>(zi.postMessage({subscribeMessage:e}),window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}),[r,e])}const ptt=e=>{const[t]=re.useState(()=>Math.random().toString(32).slice(2)),r=async n=>{const o=Y1e(n);o&&zi.postMessage({name:gn.FILE_RELATIVE_PATH_REQUEST,payload:{id:t,path:o.path,fileName:o.name,fileBase64:o.path?void 0:await m7(o)}})};return kl(gn.FILE_RELATIVE_PATH_RESPONSE,({id:n,relativePath:o})=>{n!==t||!o||e(o)}),{onPaste:r}},Y1e=e=>{var r,n;const t=((r=e.clipboardData)==null?void 0:r.files)||((n=e.dataTransfer)==null?void 0:n.files)||[];if(t.length>0)return e.preventDefault(),e.stopPropagation(),t[0]};var BJ;const wH=class wH{constructor(){this.extensionConfigurations$=new st(void 0),this.isPackageInstalled$=new st(void 0),this.sdkVersion$=new st(void 0),this.sdkFeatureList$=new st([]),this.uxFeatureList$=new st([])}};BJ=SE,wH[BJ]=!0;let R6=wH;ii("VSCodeFlowViewModel",new R6);re.createContext({variantName:Ki,haveMultipleVariants:!1,showAllVariantsOutputs:!1,isDisableEditing:!1});function gtt(e,t){const[r,n]=A.useState(e);return A.useEffect(()=>{const o=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(o)}},[e,t]),r}var MJ;const X1e=(e,t)=>e.map(r=>({...r,level:t,children:r.children?X1e(r.children,t+1):void 0})),kH=class kH{constructor(){this.rows$=new st(Ds([])),this.selectedRowId$=new st(void 0),this.startTime=Number.MAX_SAFE_INTEGER,this.endTime=0}toggleRow(t){const r=this.rows$.getSnapshot(),n=r.findIndex(a=>a.id===t),o=r.get(n);if(!o)return;const{children:i}=o;if(!i)return;const s=[...r];if(s[n]={...o,isExpanded:!o.isExpanded},o.isExpanded){let a=0;const l=u=>{var f;!u.children||!((f=this.rows$.getSnapshot().find(d=>d.id===u.id))!=null&&f.isExpanded)||(a+=u.children.length,u.children.forEach(l))};l(o),s.splice(n+1,a)}else s.splice(n+1,0,...i);this.rows$.next(Ds(s))}setRows(t){this.rows$.next(Ds(t))}setTasks(t){this.startTime=Number.MAX_SAFE_INTEGER,this.endTime=0,this.rows$.next(Ds(X1e(t,0)));const r=n=>{n.forEach(o=>{o.startTimethis.endTime&&(this.endTime=o.endTime),o.children&&r(o.children)})};r(t)}expandAllChildrenRowsByRowId(t){const r=this.rows$.getSnapshot().find(n=>n.id===t);!r||r.isExpanded||(this.toggleRow(t),r.children&&r.children.forEach(n=>{this.expandAllChildrenRowsByRowId(n.id)}))}expandAllRows(){this.rows$.getSnapshot().forEach(r=>{r.children&&!r.isExpanded&&this.expandAllChildrenRowsByRowId(r.id)})}};MJ=SE,kH[MJ]=!0;let lx=kH;const Q1e=ii("GanttViewModel",new lx);function Hj(e,t,r){return r={path:t,exports:{},require:function(n,o){return vtt(n,o??r.path)}},e(r,r.exports),r.exports}function vtt(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var ux=Hj(function(e){/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(){var t={}.hasOwnProperty;function r(){for(var n=[],o=0;o1&&arguments[1]!==void 0?arguments[1]:{},r=[];return re.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(O6(n)):Z1e.isFragment(n)&&n.props?r=r.concat(O6(n.props.children,t)):r.push(n))}),r}function Ktt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MJ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function LJ(e){for(var t=1;t0},e.prototype.connect_=function(){!F6||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),trt?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!F6||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=ert.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ehe=function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof Qg(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new crt(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Qg(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new frt(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),rhe=typeof WeakMap<"u"?new WeakMap:new J1e,nhe=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=rrt.getInstance(),n=new drt(t,r,this);rhe.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){nhe.prototype[e]=function(){var t;return(t=rhe.get(this))[e].apply(t,arguments)}});var hrt=function(){return typeof ux.ResizeObserver<"u"?ux.ResizeObserver:nhe}(),Ld=new Map;function prt(e){e.forEach(function(t){var r,n=t.target;(r=Ld.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var ohe=new hrt(prt);function grt(e,t){Ld.has(e)||(Ld.set(e,new Set),ohe.observe(e)),Ld.get(e).add(t)}function vrt(e,t){Ld.has(e)&&(Ld.get(e).delete(t),Ld.get(e).size||(ohe.unobserve(e),Ld.delete(e)))}function mrt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zJ(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function M6(e){"@babel/helpers - typeof";return M6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},M6(e)}function Ert(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Srt(e,t){if(t&&(M6(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ert(e)}function wrt(e){var t=_rt();return function(){var n=fx(e),o;if(t){var i=fx(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return Srt(this,o)}}var krt=function(e){brt(r,e);var t=wrt(r);function r(){return mrt(this,r),t.apply(this,arguments)}return yrt(r,[{key:"render",value:function(){return this.props.children}}]),r}(A.Component),L6=A.createContext(null);function Art(e){var t=e.children,r=e.onBatchResize,n=A.useRef(0),o=A.useRef([]),i=A.useContext(L6),s=A.useCallback(function(a,l,u){n.current+=1;var c=n.current;o.current.push({size:a,element:l,data:u}),Promise.resolve().then(function(){c===n.current&&(r==null||r(o.current),o.current=[])}),i==null||i(a,l,u)},[r,i]);return A.createElement(L6.Provider,{value:s},t)}function xrt(e){var t=e.children,r=e.disabled,n=A.useRef(null),o=A.useRef(null),i=A.useContext(L6),s=typeof t=="function",a=s?t(n):t,l=A.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&A.isValidElement(a)&&Ytt(a),c=u?a.ref:null,f=A.useMemo(function(){return Utt(c,n)},[c,n]),d=A.useRef(e);d.current=e;var h=A.useCallback(function(g){var v=d.current,y=v.onResize,E=v.data,_=g.getBoundingClientRect(),S=_.width,b=_.height,k=g.offsetWidth,T=g.offsetHeight,x=Math.floor(S),I=Math.floor(b);if(l.current.width!==x||l.current.height!==I||l.current.offsetWidth!==k||l.current.offsetHeight!==T){var C={width:x,height:I,offsetWidth:k,offsetHeight:T};l.current=C;var R=k===Math.round(S)?S:k,D=T===Math.round(b)?b:T,L=LJ(LJ({},C),{},{offsetWidth:R,offsetHeight:D});i==null||i(L,g,E),y&&Promise.resolve().then(function(){y(L,g)})}},[]);return A.useEffect(function(){var g=D6(n.current)||D6(o.current);return g&&!r&&grt(g,h),function(){return vrt(g,h)}},[n.current,r]),A.createElement(krt,{ref:o},u?A.cloneElement(a,{ref:f}):a)}var Trt="rc-observer-key";function ihe(e){var t=e.children,r=typeof t=="function"?[t]:O6(t);return r.map(function(n,o){var i=(n==null?void 0:n.key)||"".concat(Trt,"-").concat(o);return A.createElement(xrt,R6({},e,{key:i}),n)})}ihe.Collection=Art;function HJ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function $J(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:1;PJ+=1;var r=PJ;function n(o){if(o===0)che(r),e();else{var i=lhe(function(){n(o-1)});qj.set(r,i)}}return n(t),r}lc.cancel=function(e){var t=qj.get(e);return che(t),uhe(t)};function j6(e){"@babel/helpers - typeof";return j6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j6(e)}function qJ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Irt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WJ(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function dx(e){return dx=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},dx(e)}var Brt=20;function GJ(e){return"touches"in e?e.touches[0].pageY:e.pageY}var Mrt=function(e){Nrt(r,e);var t=Rrt(r);function r(){var n;Irt(this,r);for(var o=arguments.length,i=new Array(o),s=0;sl},n}return Crt(r,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(o){o.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var o=this.state,i=o.dragging,s=o.visible,a=this.props.prefixCls,l=this.getSpinHeight(),u=this.getTop(),c=this.showScroll(),f=c&&s;return A.createElement("div",{ref:this.scrollbarRef,className:lx("".concat(a,"-scrollbar"),qJ({},"".concat(a,"-scrollbar-show"),c)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:f?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},A.createElement("div",{ref:this.thumbRef,className:lx("".concat(a,"-scrollbar-thumb"),qJ({},"".concat(a,"-scrollbar-thumb-moving"),i)),style:{width:"100%",height:l,top:u,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),r}(A.Component);function Lrt(e){var t=e.children,r=e.setRef,n=A.useCallback(function(o){r(o)},[]);return A.cloneElement(t,{ref:n})}function jrt(e,t,r,n,o,i){var s=i.getKey;return e.slice(t,r+1).map(function(a,l){var u=t+l,c=o(a,u,{}),f=s(a);return A.createElement(Lrt,{key:f,setRef:function(h){return n(a,h)}},c)})}function zrt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KJ(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);rz&&(b="bottom")}}M!==null&&M!==e.current.scrollTop&&s(M)}l.current=lc(function(){S&&i(),v(y-1,b)})}};g(3)}}}function Yrt(e,t,r){var n=e.length,o=t.length,i,s;if(n===0&&o===0)return null;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"?"undefined":$6(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),fhe=function(e,t){var r=A.useRef(!1),n=A.useRef(null);function o(){clearTimeout(n.current),r.current=!0,n.current=setTimeout(function(){r.current=!1},50)}var i=A.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=s<0&&i.current.top||s>0&&i.current.bottom;return a&&l?(clearTimeout(n.current),r.current=!1):(!l||r.current)&&o(),!r.current&&l}};function rnt(e,t,r,n){var o=A.useRef(0),i=A.useRef(null),s=A.useRef(null),a=A.useRef(!1),l=fhe(t,r);function u(f){if(e){lc.cancel(i.current);var d=f.deltaY;o.current+=d,s.current=d,!l(d)&&(tnt||f.preventDefault(),i.current=lc(function(){var h=a.current?10:1;n(o.current*h),o.current=0}))}}function c(f){e&&(a.current=f.detail===s.current)}return[u,c]}function nnt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var P6=nnt()?A.useLayoutEffect:A.useEffect,ont=14/15;function int(e,t,r){var n=A.useRef(!1),o=A.useRef(0),i=A.useRef(null),s=A.useRef(null),a,l=function(d){if(n.current){var h=Math.ceil(d.touches[0].pageY),g=o.current-h;o.current=h,r(g)&&d.preventDefault(),clearInterval(s.current),s.current=setInterval(function(){g*=ont,(!r(g,!0)||Math.abs(g)<=.1)&&clearInterval(s.current)},16)}},u=function(){n.current=!1,a()},c=function(d){a(),d.touches.length===1&&!n.current&&(n.current=!0,o.current=Math.ceil(d.touches[0].pageY),i.current=d.target,i.current.addEventListener("touchmove",l),i.current.addEventListener("touchend",u))};a=function(){i.current&&(i.current.removeEventListener("touchmove",l),i.current.removeEventListener("touchend",u))},P6(function(){return e&&t.current.addEventListener("touchstart",c),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",c),a(),clearInterval(s.current)}},[e])}var snt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function q6(){return q6=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dnt(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i=0)&&(r[o]=e[o]);return r}var hnt=[],pnt={overflowY:"auto",overflowAnchor:"none"};function gnt(e,t){var r=e.prefixCls,n=r===void 0?"rc-virtual-list":r,o=e.className,i=e.height,s=e.itemHeight,a=e.fullHeight,l=a===void 0?!0:a,u=e.style,c=e.data,f=e.children,d=e.itemKey,h=e.virtual,g=e.component,v=g===void 0?"div":g,y=e.onScroll,E=e.onVisibleChange,_=fnt(e,snt),S=!!(h!==!1&&i&&s),b=S&&c&&s*c.length>i,k=A.useState(0),T=Pm(k,2),x=T[0],I=T[1],C=A.useState(!1),R=Pm(C,2),D=R[0],L=R[1],M=lx(n,o),W=c||hnt,z=A.useRef(),F=A.useRef(),P=A.useRef(),K=A.useCallback(function(Ie){return typeof d=="function"?d(Ie):Ie==null?void 0:Ie[d]},[d]),V={getKey:K};function Z(Ie){I(function($e){var lt;typeof Ie=="function"?lt=Ie($e):lt=Ie;var mt=qt(lt);return z.current.scrollTop=mt,mt})}var J=A.useRef({start:0,end:W.length}),ee=A.useRef(),de=ent(W,K),ge=Pm(de,1),Se=ge[0];ee.current=Se;var Re=Vrt(K,null,null),ve=Pm(Re,4),Ee=ve[0],me=ve[1],we=ve[2],Ge=ve[3],nt=A.useMemo(function(){if(!S)return{scrollHeight:void 0,start:0,end:W.length-1,offset:void 0};if(!b){var Ie;return{scrollHeight:((Ie=F.current)===null||Ie===void 0?void 0:Ie.offsetHeight)||0,start:0,end:W.length-1,offset:void 0}}for(var $e=0,lt,mt,Rt,dr=W.length,Cr=0;Cr=x&<===void 0&&(lt=Cr,mt=$e),tr>x+i&&Rt===void 0&&(Rt=Cr),$e=tr}return lt===void 0&&(lt=0,mt=0),Rt===void 0&&(Rt=W.length-1),Rt=Math.min(Rt+1,W.length),{scrollHeight:$e,start:lt,end:Rt,offset:mt}},[b,S,x,W,Ge,i]),Qe=nt.scrollHeight,Ze=nt.start,Fe=nt.end,ot=nt.offset;J.current.start=Ze,J.current.end=Fe;var Me=Qe-i,_t=A.useRef(Me);_t.current=Me;function qt(Ie){var $e=Ie;return Number.isNaN(_t.current)||($e=Math.min($e,_t.current)),$e=Math.max($e,0),$e}var Nt=x<=0,ut=x>=Me,xe=fhe(Nt,ut);function Ve(Ie){var $e=Ie;Z($e)}function Xt(Ie){var $e=Ie.currentTarget.scrollTop;$e!==x&&Z($e),y==null||y(Ie)}var he=rnt(S,Nt,ut,function(Ie){Z(function($e){var lt=$e+Ie;return lt})}),le=Pm(he,2),se=le[0],pe=le[1];int(S,z,function(Ie,$e){return xe(Ie,$e)?!1:(se({preventDefault:function(){},deltaY:Ie}),!0)}),P6(function(){function Ie($e){S&&$e.preventDefault()}return z.current.addEventListener("wheel",se),z.current.addEventListener("DOMMouseScroll",pe),z.current.addEventListener("MozMousePixelScroll",Ie),function(){z.current&&(z.current.removeEventListener("wheel",se),z.current.removeEventListener("DOMMouseScroll",pe),z.current.removeEventListener("MozMousePixelScroll",Ie))}},[S]);var Oe=Urt(z,W,we,s,K,me,Z,function(){var Ie;(Ie=P.current)===null||Ie===void 0||Ie.delayHidden()});A.useImperativeHandle(t,function(){return{scrollTo:Oe}}),P6(function(){if(E){var Ie=W.slice(Ze,Fe+1);E(Ie,W)}},[Ze,Fe,W]);var je=jrt(W,Ze,Fe,Ee,f,V),ke=null;return i&&(ke=S3(dhe({},l?"height":"maxHeight",i),pnt),S&&(ke.overflowY="hidden",D&&(ke.pointerEvents="none"))),A.createElement("div",q6({style:S3(S3({},u),{},{position:"relative"}),className:M},_),A.createElement(v,{className:"".concat(n,"-holder"),style:ke,ref:z,onScroll:Xt},A.createElement(ahe,{prefixCls:n,height:Qe,offset:ot,onInnerResize:me,ref:F},je)),S&&A.createElement(Mrt,{ref:P,prefixCls:n,scrollTop:x,height:i,scrollHeight:Qe,count:W.length,onScroll:Ve,onStartMove:function(){L(!0)},onStopMove:function(){L(!1)}}))}var hhe=A.forwardRef(gnt);hhe.displayName="List";var w3=function(e,t){var r=e.slice(),n=r.indexOf(t);return n>=0&&r.splice(n,1),r},Bw=function(e,t){var r=e.slice();return r.indexOf(t)===-1&&r.push(t),r},k3="$root",ZJ=function(){function e(t){var r=this,n,o,i,s=t.node,a=t.flattenNodes,l=t.parent,u=t.selectedKeySet,c=u===void 0?new Set:u,f=t.expandedKeySet,d=f===void 0?new Set:f,h=t.loadInfo,g=h===void 0?{loadingKeys:[],loadedKeys:[]}:h;this.internal=s,this.parent=l,this.level=((o=(n=this.parent)===null||n===void 0?void 0:n.level)!==null&&o!==void 0?o:-1)+1,this.selected=c.has(s.id),this.expanded=d.has(s.id)||s.id===k3,this.ancestorExpanded=!!(l!=null&&l.expanded&&(l!=null&&l.ancestorExpanded))||s.id===k3,this.loading=g.loadingKeys.includes(s.id),this.loaded=g.loadedKeys.includes(s.id),this.isLeaf=(i=s.isLeaf)!==null&&i!==void 0?i:!(s.children.length>0),e.nodesMap.set(s.id,this),this.level>0&&this.ancestorExpanded&&a.push(this),this.childNodes=s.children.map(function(v){return new e({node:v,parent:r,selectedKeySet:c,expandedKeySet:d,loadInfo:g,flattenNodes:a})})}return Object.defineProperty(e.prototype,"id",{get:function(){return this.internal.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.internal.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"searchKeys",{get:function(){return this.internal.searchKeys},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isTag",{get:function(){return this.internal.isTag},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaLabel",{get:function(){return this.internal.ariaLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extra",{get:function(){return this.internal.extra},enumerable:!1,configurable:!0}),e.init=function(t,r,n,o){r===void 0&&(r=[]),n===void 0&&(n=[]),e.nodesMap=new Map;var i=[];return e.root=new e({node:{title:"",children:t,searchKeys:[],id:k3},selectedKeySet:new Set(r),expandedKeySet:new Set(n),loadInfo:o,flattenNodes:i}),i},e.nodesMap=new Map,e}();/*! ***************************************************************************** + */var si=typeof Symbol=="function"&&Symbol.for,$j=si?Symbol.for("react.element"):60103,Pj=si?Symbol.for("react.portal"):60106,K9=si?Symbol.for("react.fragment"):60107,V9=si?Symbol.for("react.strict_mode"):60108,U9=si?Symbol.for("react.profiler"):60114,Y9=si?Symbol.for("react.provider"):60109,X9=si?Symbol.for("react.context"):60110,qj=si?Symbol.for("react.async_mode"):60111,Q9=si?Symbol.for("react.concurrent_mode"):60111,Z9=si?Symbol.for("react.forward_ref"):60112,J9=si?Symbol.for("react.suspense"):60113,mtt=si?Symbol.for("react.suspense_list"):60120,e5=si?Symbol.for("react.memo"):60115,t5=si?Symbol.for("react.lazy"):60116,ytt=si?Symbol.for("react.block"):60121,btt=si?Symbol.for("react.fundamental"):60117,_tt=si?Symbol.for("react.responder"):60118,Ett=si?Symbol.for("react.scope"):60119;function La(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case $j:switch(e=e.type,e){case qj:case Q9:case K9:case U9:case V9:case J9:return e;default:switch(e=e&&e.$$typeof,e){case X9:case Z9:case t5:case e5:case Y9:return e;default:return t}}case Pj:return t}}}function Z1e(e){return La(e)===Q9}var Stt=qj,wtt=Q9,ktt=X9,Att=Y9,xtt=$j,Ttt=Z9,Itt=K9,Ctt=t5,Ntt=e5,Rtt=Pj,Ott=U9,Dtt=V9,Ftt=J9,Btt=function(e){return Z1e(e)||La(e)===qj},Mtt=Z1e,Ltt=function(e){return La(e)===X9},jtt=function(e){return La(e)===Y9},ztt=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$j},Htt=function(e){return La(e)===Z9},$tt=function(e){return La(e)===K9},Ptt=function(e){return La(e)===t5},qtt=function(e){return La(e)===e5},Wtt=function(e){return La(e)===Pj},Gtt=function(e){return La(e)===U9},Ktt=function(e){return La(e)===V9},Vtt=function(e){return La(e)===J9},Utt=function(e){return typeof e=="string"||typeof e=="function"||e===K9||e===Q9||e===U9||e===V9||e===J9||e===mtt||typeof e=="object"&&e!==null&&(e.$$typeof===t5||e.$$typeof===e5||e.$$typeof===Y9||e.$$typeof===X9||e.$$typeof===Z9||e.$$typeof===btt||e.$$typeof===_tt||e.$$typeof===Ett||e.$$typeof===ytt)},Ytt=La,Xtt={AsyncMode:Stt,ConcurrentMode:wtt,ContextConsumer:ktt,ContextProvider:Att,Element:xtt,ForwardRef:Ttt,Fragment:Itt,Lazy:Ctt,Memo:Ntt,Portal:Rtt,Profiler:Ott,StrictMode:Dtt,Suspense:Ftt,isAsyncMode:Btt,isConcurrentMode:Mtt,isContextConsumer:Ltt,isContextProvider:jtt,isElement:ztt,isForwardRef:Htt,isFragment:$tt,isLazy:Ptt,isMemo:qtt,isPortal:Wtt,isProfiler:Gtt,isStrictMode:Ktt,isSuspense:Vtt,isValidElementType:Utt,typeOf:Ytt};Hj(function(e,t){});var J1e=Hj(function(e){e.exports=Xtt});function D6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return re.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(D6(n)):J1e.isFragment(n)&&n.props?r=r.concat(D6(n.props.children,t)):r.push(n))}),r}function Qtt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LJ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function jJ(e){for(var t=1;t0},e.prototype.connect_=function(){!B6||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),srt?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!B6||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=irt.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),the=function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof Qg(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new grt(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Qg(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new vrt(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),nhe=typeof WeakMap<"u"?new WeakMap:new ehe,ohe=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=art.getInstance(),n=new mrt(t,r,this);nhe.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ohe.prototype[e]=function(){var t;return(t=nhe.get(this))[e].apply(t,arguments)}});var yrt=function(){return typeof cx.ResizeObserver<"u"?cx.ResizeObserver:ohe}(),Ld=new Map;function brt(e){e.forEach(function(t){var r,n=t.target;(r=Ld.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var ihe=new yrt(brt);function _rt(e,t){Ld.has(e)||(Ld.set(e,new Set),ihe.observe(e)),Ld.get(e).add(t)}function Ert(e,t){Ld.has(e)&&(Ld.get(e).delete(t),Ld.get(e).size||(ihe.unobserve(e),Ld.delete(e)))}function Srt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HJ(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function L6(e){"@babel/helpers - typeof";return L6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L6(e)}function xrt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Trt(e,t){if(t&&(L6(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xrt(e)}function Irt(e){var t=Art();return function(){var n=dx(e),o;if(t){var i=dx(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return Trt(this,o)}}var Crt=function(e){krt(r,e);var t=Irt(r);function r(){return Srt(this,r),t.apply(this,arguments)}return wrt(r,[{key:"render",value:function(){return this.props.children}}]),r}(A.Component),j6=A.createContext(null);function Nrt(e){var t=e.children,r=e.onBatchResize,n=A.useRef(0),o=A.useRef([]),i=A.useContext(j6),s=A.useCallback(function(a,l,u){n.current+=1;var c=n.current;o.current.push({size:a,element:l,data:u}),Promise.resolve().then(function(){c===n.current&&(r==null||r(o.current),o.current=[])}),i==null||i(a,l,u)},[r,i]);return A.createElement(j6.Provider,{value:s},t)}function Rrt(e){var t=e.children,r=e.disabled,n=A.useRef(null),o=A.useRef(null),i=A.useContext(j6),s=typeof t=="function",a=s?t(n):t,l=A.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&A.isValidElement(a)&&ert(a),c=u?a.ref:null,f=A.useMemo(function(){return Jtt(c,n)},[c,n]),d=A.useRef(e);d.current=e;var h=A.useCallback(function(g){var v=d.current,y=v.onResize,E=v.data,_=g.getBoundingClientRect(),S=_.width,b=_.height,k=g.offsetWidth,T=g.offsetHeight,x=Math.floor(S),I=Math.floor(b);if(l.current.width!==x||l.current.height!==I||l.current.offsetWidth!==k||l.current.offsetHeight!==T){var C={width:x,height:I,offsetWidth:k,offsetHeight:T};l.current=C;var R=k===Math.round(S)?S:k,D=T===Math.round(b)?b:T,L=jJ(jJ({},C),{},{offsetWidth:R,offsetHeight:D});i==null||i(L,g,E),y&&Promise.resolve().then(function(){y(L,g)})}},[]);return A.useEffect(function(){var g=F6(n.current)||F6(o.current);return g&&!r&&_rt(g,h),function(){return Ert(g,h)}},[n.current,r]),A.createElement(Crt,{ref:o},u?A.cloneElement(a,{ref:f}):a)}var Ort="rc-observer-key";function she(e){var t=e.children,r=typeof t=="function"?[t]:D6(t);return r.map(function(n,o){var i=(n==null?void 0:n.key)||"".concat(Ort,"-").concat(o);return A.createElement(Rrt,O6({},e,{key:i}),n)})}she.Collection=Nrt;function $J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function PJ(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:1;qJ+=1;var r=qJ;function n(o){if(o===0)fhe(r),e();else{var i=uhe(function(){n(o-1)});Wj.set(r,i)}}return n(t),r}lc.cancel=function(e){var t=Wj.get(e);return fhe(t),che(t)};function z6(e){"@babel/helpers - typeof";return z6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z6(e)}function WJ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Drt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GJ(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hx(e){return hx=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},hx(e)}var Hrt=20;function KJ(e){return"touches"in e?e.touches[0].pageY:e.pageY}var $rt=function(e){Brt(r,e);var t=Mrt(r);function r(){var n;Drt(this,r);for(var o=arguments.length,i=new Array(o),s=0;sl},n}return Frt(r,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(o){o.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var o=this.state,i=o.dragging,s=o.visible,a=this.props.prefixCls,l=this.getSpinHeight(),u=this.getTop(),c=this.showScroll(),f=c&&s;return A.createElement("div",{ref:this.scrollbarRef,className:ux("".concat(a,"-scrollbar"),WJ({},"".concat(a,"-scrollbar-show"),c)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:f?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},A.createElement("div",{ref:this.thumbRef,className:ux("".concat(a,"-scrollbar-thumb"),WJ({},"".concat(a,"-scrollbar-thumb-moving"),i)),style:{width:"100%",height:l,top:u,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),r}(A.Component);function Prt(e){var t=e.children,r=e.setRef,n=A.useCallback(function(o){r(o)},[]);return A.cloneElement(t,{ref:n})}function qrt(e,t,r,n,o,i){var s=i.getKey;return e.slice(t,r+1).map(function(a,l){var u=t+l,c=o(a,u,{}),f=s(a);return A.createElement(Prt,{key:f,setRef:function(h){return n(a,h)}},c)})}function Wrt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VJ(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);rz&&(b="bottom")}}M!==null&&M!==e.current.scrollTop&&s(M)}l.current=lc(function(){S&&i(),v(y-1,b)})}};g(3)}}}function ent(e,t,r){var n=e.length,o=t.length,i,s;if(n===0&&o===0)return null;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"?"undefined":P6(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),dhe=function(e,t){var r=A.useRef(!1),n=A.useRef(null);function o(){clearTimeout(n.current),r.current=!0,n.current=setTimeout(function(){r.current=!1},50)}var i=A.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=s<0&&i.current.top||s>0&&i.current.bottom;return a&&l?(clearTimeout(n.current),r.current=!1):(!l||r.current)&&o(),!r.current&&l}};function ant(e,t,r,n){var o=A.useRef(0),i=A.useRef(null),s=A.useRef(null),a=A.useRef(!1),l=dhe(t,r);function u(f){if(e){lc.cancel(i.current);var d=f.deltaY;o.current+=d,s.current=d,!l(d)&&(snt||f.preventDefault(),i.current=lc(function(){var h=a.current?10:1;n(o.current*h),o.current=0}))}}function c(f){e&&(a.current=f.detail===s.current)}return[u,c]}function lnt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var q6=lnt()?A.useLayoutEffect:A.useEffect,unt=14/15;function cnt(e,t,r){var n=A.useRef(!1),o=A.useRef(0),i=A.useRef(null),s=A.useRef(null),a,l=function(d){if(n.current){var h=Math.ceil(d.touches[0].pageY),g=o.current-h;o.current=h,r(g)&&d.preventDefault(),clearInterval(s.current),s.current=setInterval(function(){g*=unt,(!r(g,!0)||Math.abs(g)<=.1)&&clearInterval(s.current)},16)}},u=function(){n.current=!1,a()},c=function(d){a(),d.touches.length===1&&!n.current&&(n.current=!0,o.current=Math.ceil(d.touches[0].pageY),i.current=d.target,i.current.addEventListener("touchmove",l),i.current.addEventListener("touchend",u))};a=function(){i.current&&(i.current.removeEventListener("touchmove",l),i.current.removeEventListener("touchend",u))},q6(function(){return e&&t.current.addEventListener("touchstart",c),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",c),a(),clearInterval(s.current)}},[e])}var fnt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function W6(){return W6=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mnt(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i=0)&&(r[o]=e[o]);return r}var ynt=[],bnt={overflowY:"auto",overflowAnchor:"none"};function _nt(e,t){var r=e.prefixCls,n=r===void 0?"rc-virtual-list":r,o=e.className,i=e.height,s=e.itemHeight,a=e.fullHeight,l=a===void 0?!0:a,u=e.style,c=e.data,f=e.children,d=e.itemKey,h=e.virtual,g=e.component,v=g===void 0?"div":g,y=e.onScroll,E=e.onVisibleChange,_=vnt(e,fnt),S=!!(h!==!1&&i&&s),b=S&&c&&s*c.length>i,k=A.useState(0),T=Pm(k,2),x=T[0],I=T[1],C=A.useState(!1),R=Pm(C,2),D=R[0],L=R[1],M=ux(n,o),W=c||ynt,z=A.useRef(),F=A.useRef(),P=A.useRef(),K=A.useCallback(function(Ie){return typeof d=="function"?d(Ie):Ie==null?void 0:Ie[d]},[d]),V={getKey:K};function Z(Ie){I(function($e){var lt;typeof Ie=="function"?lt=Ie($e):lt=Ie;var mt=qt(lt);return z.current.scrollTop=mt,mt})}var J=A.useRef({start:0,end:W.length}),ee=A.useRef(),de=int(W,K),ge=Pm(de,1),Se=ge[0];ee.current=Se;var Re=Zrt(K,null,null),ve=Pm(Re,4),Ee=ve[0],me=ve[1],we=ve[2],Ge=ve[3],nt=A.useMemo(function(){if(!S)return{scrollHeight:void 0,start:0,end:W.length-1,offset:void 0};if(!b){var Ie;return{scrollHeight:((Ie=F.current)===null||Ie===void 0?void 0:Ie.offsetHeight)||0,start:0,end:W.length-1,offset:void 0}}for(var $e=0,lt,mt,Rt,hr=W.length,Cr=0;Cr=x&<===void 0&&(lt=Cr,mt=$e),tr>x+i&&Rt===void 0&&(Rt=Cr),$e=tr}return lt===void 0&&(lt=0,mt=0),Rt===void 0&&(Rt=W.length-1),Rt=Math.min(Rt+1,W.length),{scrollHeight:$e,start:lt,end:Rt,offset:mt}},[b,S,x,W,Ge,i]),Qe=nt.scrollHeight,Ze=nt.start,Fe=nt.end,ot=nt.offset;J.current.start=Ze,J.current.end=Fe;var Me=Qe-i,_t=A.useRef(Me);_t.current=Me;function qt(Ie){var $e=Ie;return Number.isNaN(_t.current)||($e=Math.min($e,_t.current)),$e=Math.max($e,0),$e}var Nt=x<=0,ut=x>=Me,xe=dhe(Nt,ut);function Ue(Ie){var $e=Ie;Z($e)}function Xt(Ie){var $e=Ie.currentTarget.scrollTop;$e!==x&&Z($e),y==null||y(Ie)}var he=ant(S,Nt,ut,function(Ie){Z(function($e){var lt=$e+Ie;return lt})}),le=Pm(he,2),se=le[0],pe=le[1];cnt(S,z,function(Ie,$e){return xe(Ie,$e)?!1:(se({preventDefault:function(){},deltaY:Ie}),!0)}),q6(function(){function Ie($e){S&&$e.preventDefault()}return z.current.addEventListener("wheel",se),z.current.addEventListener("DOMMouseScroll",pe),z.current.addEventListener("MozMousePixelScroll",Ie),function(){z.current&&(z.current.removeEventListener("wheel",se),z.current.removeEventListener("DOMMouseScroll",pe),z.current.removeEventListener("MozMousePixelScroll",Ie))}},[S]);var Oe=Jrt(z,W,we,s,K,me,Z,function(){var Ie;(Ie=P.current)===null||Ie===void 0||Ie.delayHidden()});A.useImperativeHandle(t,function(){return{scrollTo:Oe}}),q6(function(){if(E){var Ie=W.slice(Ze,Fe+1);E(Ie,W)}},[Ze,Fe,W]);var je=qrt(W,Ze,Fe,Ee,f,V),ke=null;return i&&(ke=S3(hhe({},l?"height":"maxHeight",i),bnt),S&&(ke.overflowY="hidden",D&&(ke.pointerEvents="none"))),A.createElement("div",W6({style:S3(S3({},u),{},{position:"relative"}),className:M},_),A.createElement(v,{className:"".concat(n,"-holder"),style:ke,ref:z,onScroll:Xt},A.createElement(lhe,{prefixCls:n,height:Qe,offset:ot,onInnerResize:me,ref:F},je)),S&&A.createElement($rt,{ref:P,prefixCls:n,scrollTop:x,height:i,scrollHeight:Qe,count:W.length,onScroll:Ue,onStartMove:function(){L(!0)},onStopMove:function(){L(!1)}}))}var phe=A.forwardRef(_nt);phe.displayName="List";var w3=function(e,t){var r=e.slice(),n=r.indexOf(t);return n>=0&&r.splice(n,1),r},Mw=function(e,t){var r=e.slice();return r.indexOf(t)===-1&&r.push(t),r},k3="$root",JJ=function(){function e(t){var r=this,n,o,i,s=t.node,a=t.flattenNodes,l=t.parent,u=t.selectedKeySet,c=u===void 0?new Set:u,f=t.expandedKeySet,d=f===void 0?new Set:f,h=t.loadInfo,g=h===void 0?{loadingKeys:[],loadedKeys:[]}:h;this.internal=s,this.parent=l,this.level=((o=(n=this.parent)===null||n===void 0?void 0:n.level)!==null&&o!==void 0?o:-1)+1,this.selected=c.has(s.id),this.expanded=d.has(s.id)||s.id===k3,this.ancestorExpanded=!!(l!=null&&l.expanded&&(l!=null&&l.ancestorExpanded))||s.id===k3,this.loading=g.loadingKeys.includes(s.id),this.loaded=g.loadedKeys.includes(s.id),this.isLeaf=(i=s.isLeaf)!==null&&i!==void 0?i:!(s.children.length>0),e.nodesMap.set(s.id,this),this.level>0&&this.ancestorExpanded&&a.push(this),this.childNodes=s.children.map(function(v){return new e({node:v,parent:r,selectedKeySet:c,expandedKeySet:d,loadInfo:g,flattenNodes:a})})}return Object.defineProperty(e.prototype,"id",{get:function(){return this.internal.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.internal.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"searchKeys",{get:function(){return this.internal.searchKeys},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isTag",{get:function(){return this.internal.isTag},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaLabel",{get:function(){return this.internal.ariaLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extra",{get:function(){return this.internal.extra},enumerable:!1,configurable:!0}),e.init=function(t,r,n,o){r===void 0&&(r=[]),n===void 0&&(n=[]),e.nodesMap=new Map;var i=[];return e.root=new e({node:{title:"",children:t,searchKeys:[],id:k3},selectedKeySet:new Set(r),expandedKeySet:new Set(n),loadInfo:o,flattenNodes:i}),i},e.nodesMap=new Map,e}();/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -448,10 +448,10 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var tb=function(){return tb=Object.assign||function(t){for(var r,n=1,o=arguments.length;n"u"?qm.none:qm.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=(n=r==null?void 0:r.classNameToArgs)!==null&&n!==void 0?n:this._classNameToArgs,this._counter=(o=r==null?void 0:r.counter)!==null&&o!==void 0?o:this._counter,this._keyToClassName=(s=(i=this._config.classNameCache)!==null&&i!==void 0?i:r==null?void 0:r.keyToClassName)!==null&&s!==void 0?s:this._keyToClassName,this._preservedRules=(a=r==null?void 0:r.preservedRules)!==null&&a!==void 0?a:this._preservedRules,this._rules=(l=r==null?void 0:r.rules)!==null&&l!==void 0?l:this._rules}return e.getInstance=function(){if(e0=v0[JJ],!e0||e0._lastStyleElement&&e0._lastStyleElement.ownerDocument!==document){var t=(v0==null?void 0:v0.FabricConfig)||{},r=new e(t.mergeStyles,t.serializedStylesheet);e0=r,v0[JJ]=r}return e0},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(t){this._config=tb(tb({},this._config),t)},e.prototype.onReset=function(t){var r=this;return this._onResetCallbacks.push(t),function(){r._onResetCallbacks=r._onResetCallbacks.filter(function(n){return n!==t})}},e.prototype.onInsertRule=function(t){var r=this;return this._onInsertRuleCallbacks.push(t),function(){r._onInsertRuleCallbacks=r._onInsertRuleCallbacks.filter(function(n){return n!==t})}},e.prototype.getClassName=function(t){var r=this._config.namespace,n=t||this._config.defaultPrefix;return(r?r+"-":"")+n+"-"+this._counter++},e.prototype.cacheClassName=function(t,r,n,o){this._keyToClassName[r]=t,this._classNameToArgs[t]={args:n,rules:o}},e.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.args},e.prototype.insertedRulesFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.rules},e.prototype.insertRule=function(t,r){var n=this._config.injectionMode,o=n!==qm.none?this._getStyleElement():void 0;if(r&&this._preservedRules.push(t),o)switch(n){case qm.insertNode:var i=o.sheet;try{i.insertRule(t,i.cssRules.length)}catch{}break;case qm.appendChild:o.appendChild(document.createTextNode(t));break}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach(function(s){return s()})},e.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(t){return t()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var t=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),mnt||window.requestAnimationFrame(function(){t._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var t=document.head,r=document.createElement("style"),n=null;r.setAttribute("data-merge-styles","true");var o=this._config.cspSettings;if(o&&o.nonce&&r.setAttribute("nonce",o.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();i?n=i.nextElementSibling:n=t.childNodes[0]}return t.insertBefore(r,t.contains(n)?n:null),this._lastStyleElement=r,r},e.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},e}();function ynt(){for(var e=[],t=0;t=0)i(u.split(" "));else{var c=o.argsFromClassName(u);c?i(c):r.indexOf(u)===-1&&r.push(u)}else Array.isArray(u)?i(u):typeof u=="object"&&n.push(u)}}return i(e),{classes:r,objects:n}}function phe(){return Hk===void 0&&(Hk=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),Hk}var Hk;Hk=phe();function bnt(){return{rtl:phe()}}var eee={};function _nt(e,t){var r=e[t];r.charAt(0)!=="-"&&(e[t]=eee[r]=eee[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase())}var Mw;function Ent(){var e;if(!Mw){var t=typeof document<"u"?document:void 0,r=typeof navigator<"u"?navigator:void 0,n=(e=r==null?void 0:r.userAgent)===null||e===void 0?void 0:e.toLowerCase();t?Mw={isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!!(r&&(/rv:11.0/i.test(r.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:Mw={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return Mw}var tee={"user-select":1};function Snt(e,t){var r=Ent(),n=e[t];if(tee[n]){var o=e[t+1];tee[n]&&(r.isWebkit&&e.push("-webkit-"+n,o),r.isMoz&&e.push("-moz-"+n,o),r.isMs&&e.push("-ms-"+n,o),r.isOpera&&e.push("-o-"+n,o))}}var wnt=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function knt(e,t){var r=e[t],n=e[t+1];if(typeof n=="number"){var o=wnt.indexOf(r)>-1,i=r.indexOf("--")>-1,s=o||i?"":"px";e[t+1]=""+n+s}}var Lw,Td="left",Id="right",Ant="@noflip",ree=(Lw={},Lw[Td]=Id,Lw[Id]=Td,Lw),nee={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function xnt(e,t,r){if(e.rtl){var n=t[r];if(!n)return;var o=t[r+1];if(typeof o=="string"&&o.indexOf(Ant)>=0)t[r+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(n.indexOf(Td)>=0)t[r]=n.replace(Td,Id);else if(n.indexOf(Id)>=0)t[r]=n.replace(Id,Td);else if(String(o).indexOf(Td)>=0)t[r+1]=o.replace(Td,Id);else if(String(o).indexOf(Id)>=0)t[r+1]=o.replace(Id,Td);else if(ree[n])t[r]=ree[n];else if(nee[o])t[r+1]=nee[o];else switch(n){case"margin":case"padding":t[r+1]=Int(o);break;case"box-shadow":t[r+1]=Tnt(o,0);break}}}function Tnt(e,t){var r=e.split(" "),n=parseInt(r[t],10);return r[0]=r[0].replace(String(n),String(n*-1)),r.join(" ")}function Int(e){if(typeof e=="string"){var t=e.split(" ");if(t.length===4)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}function Cnt(e){for(var t=[],r=0,n=0,o=0;or&&t.push(e.substring(r,o)),r=o+1);break}return r-1&&t.push([n.index,n.index+n[0].length,n[1].split(",").map(function(o){return":global("+o.trim()+")"}).join(", ")]);return t.reverse().reduce(function(o,i){var s=i[0],a=i[1],l=i[2],u=o.slice(0,s),c=o.slice(a);return u+l+c},e)}function oee(e,t){return e.indexOf(":global(")>=0?e.replace(ghe,"$1"):e.indexOf(":")===0?t+e:e.indexOf("&")<0?t+" "+e:e}function iee(e,t,r,n){t===void 0&&(t={__order:[]}),r.indexOf("@")===0?(r=r+"{"+e,dg([n],t,r)):r.indexOf(",")>-1?Ont(r).split(",").map(function(o){return o.trim()}).forEach(function(o){return dg([n],t,oee(o,e))}):dg([n],t,oee(r,e))}function dg(e,t,r){t===void 0&&(t={__order:[]}),r===void 0&&(r="&");var n=r5.getInstance(),o=t[r];o||(o={},t[r]=o,t.__order.push(r));for(var i=0,s=e;i"u")){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r==="top"&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var $nt=".root_ce9fd48c{margin:0;padding:0}.item_34141342{list-style:none}.content_6abc12be{display:flex;align-items:center}.content_6abc12be:hover{cursor:pointer;background-color:#f3f2f1}.icon_aaa0d589{border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid #8a8886;margin:0 11px 0 3px}.expanded_6233c4e1{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #8a8886;margin:3px 8px 0 0}.leaf_f2922997{border:6px solid transparent;margin:0 8px 0 0}.group_7e2ac704,.inner_683a43d6{padding:0;margin:0}",vd={root:"root_ce9fd48c",item:"item_34141342",content:"content_6abc12be",icon:"icon_aaa0d589",expanded:"expanded_6233c4e1",leaf:"leaf_f2922997",group:"group_7e2ac704",inner:"inner_683a43d6"};Hnt($nt);var Pnt=function(e){return{root:m0(vd.root,e==null?void 0:e.root)}},qnt=function(e,t){var r,n,o;return{item:m0(vd.item,t==null?void 0:t.item),icon:m0(vd.icon,e.expanded&&vd.expanded,e.isLeaf&&vd.leaf),group:m0(vd.group,t==null?void 0:t.group),inner:m0(vd.inner,t==null?void 0:t.inner),content:m0(vd.content,(r=t==null?void 0:t.content)===null||r===void 0?void 0:r.base,e.expanded&&((n=t==null?void 0:t.content)===null||n===void 0?void 0:n.expand),e.isLeaf&&((o=t==null?void 0:t.content)===null||o===void 0?void 0:o.leaf))}},mhe=A.forwardRef(function(e,t){var r,n,o,i,s,a,l,u,c=e.node,f=e.classes,d=e.indent,h=e.calcIndent,g=e.onNodeClick,v=e.renderIcon,y=e.renderContent,E=e.renderInnerContent,_=!c.isLeaf&&c.expanded,S=qnt(c,f),b=h?h(c):{item:(c.level-1)*((r=d==null?void 0:d.item)!==null&&r!==void 0?r:20)+((n=d==null?void 0:d.root)!==null&&n!==void 0?n:0),innerItem:c.level*((o=d==null?void 0:d.item)!==null&&o!==void 0?o:20)+((i=d==null?void 0:d.root)!==null&&i!==void 0?i:0)},k=A.useCallback(function(T){T.preventDefault(),T.stopPropagation()},[]);return A.createElement("div",{key:c.id,role:"treeitem","aria-selected":c.selected,"aria-expanded":c.expanded,tabIndex:-1,className:S.item,onClick:g.bind(null,c),"data-item-id":c.id,ref:t},A.createElement("div",{className:S.content,style:{paddingLeft:(s=b.item)!==null&&s!==void 0?s:20}},(a=v==null?void 0:v(c))!==null&&a!==void 0?a:A.createElement("span",{className:S.icon}),(l=y==null?void 0:y(c))!==null&&l!==void 0?l:A.createElement("span",{role:"button"},c.title)),_&&A.createElement(A.Fragment,null,E&&A.createElement("div",{role:"group",key:"innerContent",className:S.inner,style:{paddingLeft:(u=b.innerItem)!==null&&u!==void 0?u:40},onClick:k},E(c))))});mhe.displayName="TreeNode";var Wnt=A.forwardRef(function(e,t){var r=e.selectedKeys,n=r===void 0?[]:r,o=e.expandedKeys,i=o===void 0?[]:o,s=e.treeData,a=e.classes,l=e.indent,u=e.height,c=e.itemHeight,f=e.virtual,d=e.calcIndent,h=e.onKeyDown,g=e.renderIcon,v=e.renderContent,y=e.renderInnerContent,E=e.onSelect,_=e.multiple,S=e.onExpand,b=e.loadData,k=A.useState({loadedKeys:[],loadingKeys:[]}),T=k[0],x=k[1],I=A.useRef(null),C=A.useRef(null),R=A.useMemo(function(){return ZJ.init(s,n,i,T)},[s,n,i,T]);A.useImperativeHandle(t,function(){return{scrollTo:function(Z){var J;(J=C.current)===null||J===void 0||J.scrollTo(Z)}}}),A.useEffect(function(){W(0)},[]);var D=function(Z,J){var ee=n,de=J.id,ge=!J.selected;ge?_?ee=Bw(ee,de):ee=[de]:ee=w3(ee,de),E==null||E(ee,{node:J,selected:ge,nativeEvent:Z})},L=function(Z,J){var ee=i,de=J.id,ge=!J.expanded;ge?ee=Bw(ee,de):ee=w3(ee,de),S==null||S(ee,{node:J,expanded:ge,nativeEvent:Z}),ge&&b&&M(J)},M=function(Z){x(function(J){var ee=J.loadedKeys,de=J.loadingKeys,ge=Z.id;if(!b||ee.includes(ge)||de.includes(ge))return T;var Se=b(Z);return Se.then(function(){var Re=T.loadedKeys,ve=T.loadingKeys,Ee=Bw(Re,ge),me=w3(ve,ge);x({loadedKeys:Ee,loadingKeys:me})}),{loadedKeys:ee,loadingKeys:Bw(de,ge)}})},W=function(Z){var J,ee,de=Array.from((ee=(J=I.current)===null||J===void 0?void 0:J.querySelectorAll("div[role='treeitem']"))!==null&&ee!==void 0?ee:[]);de.forEach(function(ge,Se){Se===Z?ge.setAttribute("tabindex","0"):ge.setAttribute("tabindex","-1")})},z=function(Z){var J,ee,de;Z.stopPropagation();var ge=Z.target;if(ge.getAttribute("role")!=="treeitem"||Z.ctrlKey||Z.metaKey)return-1;var Se=Array.from((ee=(J=I.current)===null||J===void 0?void 0:J.querySelectorAll("div[role='treeitem']"))!==null&&ee!==void 0?ee:[]),Re=Se.indexOf(ge),ve=Z.keyCode>=65&&Z.keyCode<=90;if(ve){var Ee=-1,me=Se.findIndex(function(nt,Qe){var Ze=nt.getAttribute("data-item-id"),Fe=ZJ.nodesMap.get(Ze??""),ot=Fe==null?void 0:Fe.searchKeys.some(function(Me){return Me.match(new RegExp("^"+Z.key,"i"))});return ot&&Qe>Re?!0:(ot&&Qe<=Re&&(Ee=Ee===-1?Qe:Ee),!1)}),we=me===-1?Ee:me;return(de=Se[we])===null||de===void 0||de.focus(),we}switch(Z.key){case"ArrowDown":{var Ge=(Re+1)%Se.length;return Se[Ge].focus(),Ge}case"ArrowUp":{var Ge=(Re-1+Se.length)%Se.length;return Se[Ge].focus(),Ge}case"ArrowLeft":case"ArrowRight":return ge.click(),Re;case"Home":return Se[0].focus(),0;case"End":return Se[Se.length-1].focus(),Se.length-1;default:return h==null||h(Z),Re}},F=function(Z){var J=z(Z);J>-1&&W(J)},P=function(Z,J){J.stopPropagation(),D(J,Z),!(Z.loading||Z.loaded&&Z.isLeaf)&&L(J,Z)},K=Pnt(a),V=function(Z){return Z.id};return A.createElement("div",{role:"tree",className:K.root,onKeyDown:F,ref:I},A.createElement(hhe,{data:R,itemKey:V,height:u,fullHeight:!1,virtual:f,itemHeight:c,ref:C},function(Z){return A.createElement(mhe,{key:Z.id,node:Z,classes:a,indent:l,calcIndent:d,renderIcon:g,renderContent:v,renderInnerContent:y,onNodeClick:P})}))});Wnt.displayName="ReactAccessibleTree";var Gnt=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),bo=function(){return bo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"?void 0:Number(n),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof i>"u"?void 0:Number(i),minHeight:typeof s>"u"?void 0:Number(s)}},Znt=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],cee="__resizable_base__",yhe=function(e){Unt(t,e);function t(r){var n=e.call(this,r)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var o=n.parentNode;if(!o)return null;var i=n.window.document.createElement("div");return i.style.width="100%",i.style.height="100%",i.style.position="absolute",i.style.transform="scale(0, 0)",i.style.left="0",i.style.flex="0 0 100%",i.classList?i.classList.add(cee):i.className+=cee,o.appendChild(i),i},n.removeBase=function(o){var i=n.parentNode;i&&i.removeChild(o)},n.ref=function(o){o&&(n.resizable=o)},n.state={isResizing:!1,width:typeof(n.propsSize&&n.propsSize.width)>"u"?"auto":n.propsSize&&n.propsSize.width,height:typeof(n.propsSize&&n.propsSize.height)>"u"?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Ynt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,i=this.resizable.offsetHeight,s=this.resizable.style.position;s!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:i,this.resizable.style.position=s}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,o=function(a){if(typeof r.state[a]>"u"||r.state[a]==="auto")return"auto";if(r.propsSize&&r.propsSize[a]&&r.propsSize[a].toString().endsWith("%")){if(r.state[a].toString().endsWith("%"))return r.state[a].toString();var l=r.getParentSize(),u=Number(r.state[a].toString().replace("px","")),c=u/l[a]*100;return c+"%"}return A3(r.state[a])},i=n&&typeof n.width<"u"&&!this.state.isResizing?A3(n.width):o("width"),s=n&&typeof n.height<"u"&&!this.state.isResizing?A3(n.height):o("height");return{width:i,height:s}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var i={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=o),this.removeBase(r),i},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var o=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof o>"u"||o==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var o=this.props.boundsByDirection,i=this.state.direction,s=o&&t0("left",i),a=o&&t0("top",i),l,u;if(this.props.bounds==="parent"){var c=this.parentNode;c&&(l=s?this.resizableRight-this.parentLeft:c.offsetWidth+(this.parentLeft-this.resizableLeft),u=a?this.resizableBottom-this.parentTop:c.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,u=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),u=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(r=r&&r"u"?10:i.width,f=typeof o.width>"u"||o.width<0?r:o.width,d=typeof i.height>"u"?10:i.height,h=typeof o.height>"u"||o.height<0?n:o.height,g=l||0,v=u||0;if(a){var y=(d-g)*this.ratio+v,E=(h-g)*this.ratio+v,_=(c-v)/this.ratio+g,S=(f-v)/this.ratio+g,b=Math.max(c,y),k=Math.min(f,E),T=Math.max(d,_),x=Math.min(h,S);r=zw(r,b,k),n=zw(n,T,x)}else r=zw(r,c,f),n=zw(n,d,h);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var r=this.parentNode;if(r){var n=r.getBoundingClientRect();this.parentLeft=n.left,this.parentTop=n.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left,this.targetTop=o.top}if(this.resizable){var i=this.resizable.getBoundingClientRect(),s=i.left,a=i.top,l=i.right,u=i.bottom;this.resizableLeft=s,this.resizableRight=l,this.resizableTop=a,this.resizableBottom=u}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var o=0,i=0;if(r.nativeEvent&&Xnt(r.nativeEvent)?(o=r.nativeEvent.clientX,i=r.nativeEvent.clientY):r.nativeEvent&&Hw(r.nativeEvent)&&(o=r.nativeEvent.touches[0].clientX,i=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var s=this.props.onResizeStart(r,n,this.resizable);if(s===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var a,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var u=this.parentNode;if(u){var c=this.window.getComputedStyle(u).flexDirection;this.flexDir=c.startsWith("row")?"row":"column",a=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var f={original:{x:o,y:i,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Hu(Hu({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:a};this.setState(f)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Hw(r))try{r.preventDefault(),r.stopPropagation()}catch{}var o=this.props,i=o.maxWidth,s=o.maxHeight,a=o.minWidth,l=o.minHeight,u=Hw(r)?r.touches[0].clientX:r.clientX,c=Hw(r)?r.touches[0].clientY:r.clientY,f=this.state,d=f.direction,h=f.original,g=f.width,v=f.height,y=this.getParentSize(),E=Qnt(y,this.window.innerWidth,this.window.innerHeight,i,s,a,l);i=E.maxWidth,s=E.maxHeight,a=E.minWidth,l=E.minHeight;var _=this.calculateNewSizeFromDirection(u,c),S=_.newHeight,b=_.newWidth,k=this.calculateNewMaxFromBoundary(i,s);this.props.snap&&this.props.snap.x&&(b=uee(b,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(S=uee(S,this.props.snap.y,this.props.snapGap));var T=this.calculateNewSizeFromAspectRatio(b,S,{width:k.maxWidth,height:k.maxHeight},{width:a,height:l});if(b=T.newWidth,S=T.newHeight,this.props.grid){var x=lee(b,this.props.grid[0]),I=lee(S,this.props.grid[1]),C=this.props.snapGap||0;b=C===0||Math.abs(x-b)<=C?x:b,S=C===0||Math.abs(I-S)<=C?I:S}var R={width:b-h.width,height:S-h.height};if(g&&typeof g=="string"){if(g.endsWith("%")){var D=b/y.width*100;b=D+"%"}else if(g.endsWith("vw")){var L=b/this.window.innerWidth*100;b=L+"vw"}else if(g.endsWith("vh")){var M=b/this.window.innerHeight*100;b=M+"vh"}}if(v&&typeof v=="string"){if(v.endsWith("%")){var D=S/y.height*100;S=D+"%"}else if(v.endsWith("vw")){var L=S/this.window.innerWidth*100;S=L+"vw"}else if(v.endsWith("vh")){var M=S/this.window.innerHeight*100;S=M+"vh"}}var W={width:this.createSizeForCssProperty(b,"width"),height:this.createSizeForCssProperty(S,"height")};this.flexDir==="row"?W.flexBasis=W.width:this.flexDir==="column"&&(W.flexBasis=W.height),pi.flushSync(function(){n.setState(W)}),this.props.onResize&&this.props.onResize(r,d,this.resizable,R)}},t.prototype.onMouseUp=function(r){var n=this.state,o=n.isResizing,i=n.direction,s=n.original;if(!(!o||!this.resizable)){var a={width:this.size.width-s.width,height:this.size.height-s.height};this.props.onResizeStop&&this.props.onResizeStop(r,i,this.resizable,a),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Hu(Hu({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(r){this.setState({width:r.width,height:r.height})},t.prototype.renderResizer=function(){var r=this,n=this.props,o=n.enable,i=n.handleStyles,s=n.handleClasses,a=n.handleWrapperStyle,l=n.handleWrapperClass,u=n.handleComponent;if(!o)return null;var c=Object.keys(o).map(function(f){return o[f]!==!1?A.createElement(Vnt,{key:f,direction:f,onResizeStart:r.onResizeStart,replaceStyles:i&&i[f],className:s&&s[f]},u&&u[f]?u[f]:null):null});return A.createElement("div",{className:l,style:a},c)},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(s,a){return Znt.indexOf(a)!==-1||(s[a]=r.props[a]),s},{}),o=Hu(Hu(Hu({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var i=this.props.as||"div";return A.createElement(i,Hu({ref:this.ref,style:o,className:this.props.className},n),this.state.isResizing&&A.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(A.PureComponent);function bhe(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t1&&(!e.frozen||e.idx+n-1<=t))return n}function Jnt(e){e.stopPropagation()}function $k(e){e==null||e.scrollIntoView({inline:"nearest",block:"nearest"})}function rb(e){let t=!1;const r={...e,preventGridDefault(){t=!0},isGridDefaultPrevented(){return t}};return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),r}const eot=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function fee(e){return(e.ctrlKey||e.metaKey)&&e.key!=="Control"}function tot(e){return!eot.has(e.key)}function rot({key:e,target:t}){var r;return e==="Tab"&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)?((r=t.closest(".rdg-editor-container"))==null?void 0:r.querySelectorAll("input, textarea, select").length)===1:!1}const not="m1l09lto7-0-0-beta-39";function oot(e){return e.map(({key:t,idx:r,minWidth:n,maxWidth:o})=>N.jsx("div",{className:not,style:{gridColumnStart:r+1,minWidth:n,maxWidth:o},"data-measuring-cell-key":t},t))}function iot({selectedPosition:e,columns:t,rows:r}){const n=t[e.idx],o=r[e.rowIdx];return _he(n,o)}function _he(e,t){return e.renderEditCell!=null&&(typeof e.editable=="function"?e.editable(t):e.editable)!==!1}function sot({rows:e,topSummaryRows:t,bottomSummaryRows:r,rowIdx:n,mainHeaderRowIdx:o,lastFrozenColumnIndex:i,column:s}){const a=(t==null?void 0:t.length)??0;if(n===o)return fl(s,i,{type:"HEADER"});if(t&&n>o&&n<=a+o)return fl(s,i,{type:"SUMMARY",row:t[n+a]});if(n>=0&&n{for(const x of o){const I=x.idx;if(I>y)break;const C=sot({rows:i,topSummaryRows:s,bottomSummaryRows:a,rowIdx:E,mainHeaderRowIdx:u,lastFrozenColumnIndex:g,column:x});if(C&&y>I&&yT.level+u,k=()=>{if(t){let x=n[y].parent;for(;x!==void 0;){const I=b(x);if(E===I){y=x.idx+x.colSpan;break}x=x.parent}}else if(e){let x=n[y].parent,I=!1;for(;x!==void 0;){const C=b(x);if(E>=C){y=x.idx,E=C,I=!0;break}x=x.parent}I||(y=f,E=d)}};if(v(h)&&(S(t),E=I&&(E=C,y=x.idx),x=x.parent}}return{idx:y,rowIdx:E}}function lot({maxColIdx:e,minRowIdx:t,maxRowIdx:r,selectedPosition:{rowIdx:n,idx:o},shiftKey:i}){return i?o===0&&n===t:o===e&&n===r}const uot="c1wupbe7-0-0-beta-39",Ehe=`rdg-cell ${uot}`,cot="cd0kgiy7-0-0-beta-39",fot=`rdg-cell-frozen ${cot}`,dot="c1730fa47-0-0-beta-39",hot=`rdg-cell-frozen-last ${dot}`;function She(e,t){return t!==void 0?{"--rdg-grid-row-start":e,"--rdg-row-height":`${t}px`}:{"--rdg-grid-row-start":e}}function whe(e,t,r){const n=t+1,o=`calc(${r-1} * var(--rdg-header-row-height))`;return e.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:n,paddingBlockStart:o}:{insetBlockStart:`calc(${t-r} * var(--rdg-header-row-height))`,gridRowStart:n-r,gridRowEnd:n,paddingBlockStart:o}}function wE(e,t=1){const r=e.idx+1;return{gridColumnStart:r,gridColumnEnd:r+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function n5(e,...t){return Bf(Ehe,...t,e.frozen&&fot,e.isLastFrozenColumn&&hot)}const{min:u_,max:hx,round:w_t,floor:dee,sign:pot,abs:got}=Math;function hee(e){if(typeof e!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function khe(e,{minWidth:t,maxWidth:r}){return e=hx(e,t),typeof r=="number"&&r>=t?u_(e,r):e}function Ahe(e,t){return e.parent===void 0?t:e.level-e.parent.level}const vot="c1hs68w07-0-0-beta-39",mot=`rdg-checkbox-label ${vot}`,yot="cojpd0n7-0-0-beta-39",bot=`rdg-checkbox-input ${yot}`,_ot="cwsfieb7-0-0-beta-39",Eot=`rdg-checkbox ${_ot}`,Sot="c1fgadbl7-0-0-beta-39",wot=`rdg-checkbox-label-disabled ${Sot}`;function kot({onChange:e,...t}){function r(n){e(n.target.checked,n.nativeEvent.shiftKey)}return N.jsxs("label",{className:Bf(mot,t.disabled&&wot),children:[N.jsx("input",{type:"checkbox",...t,className:bot,onChange:r}),N.jsx("div",{className:Eot})]})}function Aot(e){try{return e.row[e.column.key]}catch{return null}}const xhe=A.createContext(void 0),xot=xhe.Provider;function The(){return A.useContext(xhe)}const Tot=A.createContext(void 0),Ihe=Tot.Provider,Iot=A.createContext(void 0),Cot=Iot.Provider,pee="select-row",Not="auto",Rot=50;function Oot({rawColumns:e,defaultColumnOptions:t,measuredColumnWidths:r,resizedColumnWidths:n,viewportWidth:o,scrollLeft:i,enableVirtualization:s}){const a=(t==null?void 0:t.width)??Not,l=(t==null?void 0:t.minWidth)??Rot,u=(t==null?void 0:t.maxWidth)??void 0,c=(t==null?void 0:t.renderCell)??Aot,f=(t==null?void 0:t.sortable)??!1,d=(t==null?void 0:t.resizable)??!1,h=(t==null?void 0:t.draggable)??!1,{columns:g,colSpanColumns:v,lastFrozenColumnIndex:y,headerRowsCount:E}=A.useMemo(()=>{let I=-1,C=1;const R=[];D(e,1);function D(M,W,z){for(const F of M){if("children"in F){const V={name:F.name,parent:z,idx:-1,colSpan:0,level:0,headerCellClass:F.headerCellClass};D(F.children,W+1,V);continue}const P=F.frozen??!1,K={...F,parent:z,idx:0,level:0,frozen:P,isLastFrozenColumn:!1,width:F.width??a,minWidth:F.minWidth??l,maxWidth:F.maxWidth??u,sortable:F.sortable??f,resizable:F.resizable??d,draggable:F.draggable??h,renderCell:F.renderCell??c};R.push(K),P&&I++,W>C&&(C=W)}}R.sort(({key:M,frozen:W},{key:z,frozen:F})=>M===pee?-1:z===pee?1:W?F?0:-1:F?1:0);const L=[];return R.forEach((M,W)=>{M.idx=W,Che(M,W,0),M.colSpan!=null&&L.push(M)}),I!==-1&&(R[I].isLastFrozenColumn=!0),{columns:R,colSpanColumns:L,lastFrozenColumnIndex:I,headerRowsCount:C}},[e,a,l,u,c,d,f,h]),{templateColumns:_,layoutCssVars:S,totalFrozenColumnWidth:b,columnMetrics:k}=A.useMemo(()=>{const I=new Map;let C=0,R=0;const D=[];for(const M of g){let W=n.get(M.key)??r.get(M.key)??M.width;typeof W=="number"?W=khe(W,M):W=M.minWidth,D.push(`${W}px`),I.set(M,{width:W,left:C}),C+=W}if(y!==-1){const M=I.get(g[y]);R=M.left+M.width}const L={};for(let M=0;M<=y;M++){const W=g[M];L[`--rdg-frozen-left-${W.idx}`]=`${I.get(W).left}px`}return{templateColumns:D,layoutCssVars:L,totalFrozenColumnWidth:R,columnMetrics:I}},[r,n,g,y]),[T,x]=A.useMemo(()=>{if(!s)return[0,g.length-1];const I=i+b,C=i+o,R=g.length-1,D=u_(y+1,R);if(I>=C)return[D,D];let L=D;for(;LI)break;L++}let M=L;for(;M=C)break;M++}const W=hx(D,L-1),z=u_(R,M+1);return[W,z]},[k,g,y,i,b,o,s]);return{columns:g,colSpanColumns:v,colOverscanStartIdx:T,colOverscanEndIdx:x,templateColumns:_,layoutCssVars:S,headerRowsCount:E,lastFrozenColumnIndex:y,totalFrozenColumnWidth:b}}function Che(e,t,r){if(r"u"?A.useEffect:A.useLayoutEffect;function Dot(e,t,r,n,o,i,s,a,l,u){const c=A.useRef(o),f=e.length===t.length,d=f&&o!==c.current,h=[...r],g=[];for(const{key:_,idx:S,width:b}of t)typeof b=="string"&&(d||!s.has(_))&&!i.has(_)&&(h[S]=b,g.push(_));const v=h.join(" ");Zg(()=>{c.current=o,y(g)});function y(_){_.length!==0&&l(S=>{const b=new Map(S);let k=!1;for(const T of _){const x=gee(n,T);k||(k=x!==S.get(T)),x===void 0?b.delete(T):b.set(T,x)}return k?b:S})}function E(_,S){const{key:b}=_,k=[...r],T=[];for(const{key:I,idx:C,width:R}of t)if(b===I){const D=typeof S=="number"?`${S}px`:S;k[C]=D}else f&&typeof R=="string"&&!i.has(I)&&(k[C]=R,T.push(I));n.current.style.gridTemplateColumns=k.join(" ");const x=typeof S=="number"?S:gee(n,b);pi.flushSync(()=>{a(I=>{const C=new Map(I);return C.set(b,x),C}),y(T)}),u==null||u(_.idx,x)}return{gridTemplateColumns:v,handleColumnResize:E}}function gee(e,t){const r=`[data-measuring-cell-key="${CSS.escape(t)}"]`,n=e.current.querySelector(r);return n==null?void 0:n.getBoundingClientRect().width}function Fot(){const e=A.useRef(null),[t,r]=A.useState(1),[n,o]=A.useState(1);return Zg(()=>{const{ResizeObserver:i}=window;if(i==null)return;const{clientWidth:s,clientHeight:a,offsetWidth:l,offsetHeight:u}=e.current,{width:c,height:f}=e.current.getBoundingClientRect(),d=c-l+s,h=f-u+a;r(d),o(h);const g=new i(v=>{const y=v[0].contentBoxSize[0];pi.flushSync(()=>{r(y.inlineSize),o(y.blockSize)})});return g.observe(e.current),()=>{g.disconnect()}},[]),[e,t,n]}function Za(e){const t=A.useRef(e);A.useEffect(()=>{t.current=e});const r=A.useCallback((...n)=>{t.current(...n)},[]);return e&&r}function o5(e){const[t,r]=A.useState(!1);t&&!e&&r(!1);function n(i){i.target!==i.currentTarget&&r(!0)}return{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?n:void 0}}function Bot({columns:e,colSpanColumns:t,rows:r,topSummaryRows:n,bottomSummaryRows:o,colOverscanStartIdx:i,colOverscanEndIdx:s,lastFrozenColumnIndex:a,rowOverscanStartIdx:l,rowOverscanEndIdx:u}){const c=A.useMemo(()=>{if(i===0)return 0;let f=i;const d=(h,g)=>g!==void 0&&h+g>i?(f=h,!0):!1;for(const h of t){const g=h.idx;if(g>=f||d(g,fl(h,a,{type:"HEADER"})))break;for(let v=l;v<=u;v++){const y=r[v];if(d(g,fl(h,a,{type:"ROW",row:y})))break}if(n!=null){for(const v of n)if(d(g,fl(h,a,{type:"SUMMARY",row:v})))break}if(o!=null){for(const v of o)if(d(g,fl(h,a,{type:"SUMMARY",row:v})))break}}return f},[l,u,r,n,o,i,a,t]);return A.useMemo(()=>{const f=[];for(let d=0;d<=s;d++){const h=e[d];d{if(typeof t=="number")return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:y=>y*t,getRowHeight:()=>t,findRowIdx:y=>dee(y/t)};let d=0,h=" ";const g=e.map(y=>{const E=t(y),_={top:d,height:E};return h+=`${E}px `,d+=E,_}),v=y=>hx(0,u_(e.length-1,y));return{totalRowHeight:d,gridTemplateRows:h,getRowTop:y=>g[v(y)].top,getRowHeight:y=>g[v(y)].height,findRowIdx(y){let E=0,_=g.length-1;for(;E<=_;){const S=E+dee((_-E)/2),b=g[S].top;if(b===y)return S;if(by&&(_=S-1),E>_)return _}return 0}}},[t,e]);let c=0,f=e.length-1;if(o){const h=u(n),g=u(n+r);c=hx(0,h-4),f=u_(e.length-1,g+4)}return{rowOverscanStartIdx:c,rowOverscanEndIdx:f,totalRowHeight:i,gridTemplateRows:s,getRowTop:a,getRowHeight:l,findRowIdx:u}}const Lot="cadd3bp7-0-0-beta-39",jot="ccmuez27-0-0-beta-39",zot=`rdg-cell-drag-handle ${Lot}`;function Hot({gridRowStart:e,rows:t,columns:r,selectedPosition:n,latestDraggedOverRowIdx:o,isCellEditable:i,onRowsChange:s,onFill:a,onClick:l,setDragging:u,setDraggedOverRowIdx:c}){var b;const{idx:f,rowIdx:d}=n,h=r[f];function g(k){if(k.preventDefault(),k.buttons!==1)return;u(!0),window.addEventListener("mouseover",T),window.addEventListener("mouseup",x);function T(I){I.buttons!==1&&x()}function x(){window.removeEventListener("mouseover",T),window.removeEventListener("mouseup",x),u(!1),v()}}function v(){const k=o.current;if(k===void 0)return;const T=d0&&(s==null||s(C,{indexes:R,column:x}))}const _=((b=h.colSpan)==null?void 0:b.call(h,{type:"ROW",row:t[d]}))??1,S=wE(h,_);return N.jsx("div",{style:{...S,gridRowStart:e,insetInlineStart:S.insetInlineStart&&typeof h.width=="number"?`calc(${S.insetInlineStart} + ${h.width}px - var(--rdg-drag-handle-size))`:void 0},className:Bf(zot,h.frozen&&jot),onClick:l,onMouseDown:g,onDoubleClick:y})}const $ot="c1tngyp17-0-0-beta-39";function Pot({column:e,colSpan:t,row:r,rowIdx:n,onRowChange:o,closeEditor:i,onKeyDown:s,navigate:a}){var E,_,S;const l=A.useRef(),u=((E=e.editorOptions)==null?void 0:E.commitOnOutsideClick)!==!1,c=Za(()=>{h(!0,!1)});A.useEffect(()=>{if(!u)return;function b(){l.current=requestAnimationFrame(c)}return addEventListener("mousedown",b,{capture:!0}),()=>{removeEventListener("mousedown",b,{capture:!0}),f()}},[u,c]);function f(){cancelAnimationFrame(l.current)}function d(b){if(s){const k=rb(b);if(s({mode:"EDIT",row:r,column:e,rowIdx:n,navigate(){a(b)},onClose:h},k),k.isGridDefaultPrevented())return}b.key==="Escape"?h():b.key==="Enter"?h(!0):rot(b)&&a(b)}function h(b=!1,k=!0){b?o(r,!0,k):i(k)}function g(b,k=!1){o(b,k,k)}const{cellClass:v}=e,y=n5(e,"rdg-editor-container",typeof v=="function"?v(r):v,!((_=e.editorOptions)!=null&&_.displayCellContent)&&$ot);return N.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:y,style:wE(e,t),onKeyDown:d,onMouseDownCapture:f,children:e.renderEditCell!=null&&N.jsxs(N.Fragment,{children:[e.renderEditCell({column:e,row:r,onRowChange:g,onClose:h}),((S=e.editorOptions)==null?void 0:S.displayCellContent)&&e.renderCell({column:e,row:r,isCellEditable:!0,tabIndex:-1,onRowChange:g})]})})}function qot({column:e,rowIdx:t,isCellSelected:r,selectCell:n}){const{tabIndex:o,onFocus:i}=o5(r),{colSpan:s}=e,a=Ahe(e,t),l=e.idx+1;function u(){n({idx:e.idx,rowIdx:t})}return N.jsx("div",{role:"columnheader","aria-colindex":l,"aria-colspan":s,"aria-rowspan":a,"aria-selected":r,tabIndex:o,className:Bf(Ehe,e.headerCellClass),style:{...whe(e,t,a),gridColumnStart:l,gridColumnEnd:l+s},onFocus:i,onClick:u,children:e.name})}const Wot="hizp7y17-0-0-beta-39",Got="h14cojrm7-0-0-beta-39",Kot=`rdg-header-sort-name ${Got}`;function Vot({column:e,sortDirection:t,priority:r}){return e.sortable?N.jsx(Uot,{sortDirection:t,priority:r,children:e.name}):e.name}function Uot({sortDirection:e,priority:t,children:r}){const n=The().renderSortStatus;return N.jsxs("span",{className:Wot,children:[N.jsx("span",{className:Kot,children:r}),N.jsx("span",{children:n({sortDirection:e,priority:t})})]})}const Yot="celq7o97-0-0-beta-39",Xot="ceqw94e7-0-0-beta-39",Qot=`rdg-cell-resizable ${Xot}`,Zot="r12jy2ca7-0-0-beta-39",Jot="c1j3os1p7-0-0-beta-39",eit=`rdg-cell-dragging ${Jot}`,tit="c1ui3nad7-0-0-beta-39",rit=`rdg-cell-drag-over ${tit}`;function nit({column:e,colSpan:t,rowIdx:r,isCellSelected:n,onColumnResize:o,onColumnsReorder:i,sortColumns:s,onSortColumnsChange:a,selectCell:l,shouldFocusGrid:u,direction:c}){const[f,d]=A.useState(!1),[h,g]=A.useState(!1),v=c==="rtl",y=Ahe(e,r),{tabIndex:E,childTabIndex:_,onFocus:S}=o5(n),b=s==null?void 0:s.findIndex(ve=>ve.columnKey===e.key),k=b!==void 0&&b>-1?s[b]:void 0,T=k==null?void 0:k.direction,x=k!==void 0&&s.length>1?b+1:void 0,I=T&&!x?T==="ASC"?"ascending":"descending":void 0,{sortable:C,resizable:R,draggable:D}=e,L=n5(e,e.headerCellClass,C&&Yot,R&&Qot,f&&eit,h&&rit),M=e.renderHeaderCell??Vot;function W(ve){if(ve.pointerType==="mouse"&&ve.buttons!==1)return;const{currentTarget:Ee,pointerId:me}=ve,we=Ee.parentElement,{right:Ge,left:nt}=we.getBoundingClientRect(),Qe=v?ve.clientX-nt:Ge-ve.clientX;function Ze(ot){ot.preventDefault();const{right:Me,left:_t}=we.getBoundingClientRect(),qt=v?Me+Qe-ot.clientX:ot.clientX+Qe-_t;qt>0&&o(e,khe(qt,e))}function Fe(){Ee.removeEventListener("pointermove",Ze),Ee.removeEventListener("lostpointercapture",Fe)}Ee.setPointerCapture(me),Ee.addEventListener("pointermove",Ze),Ee.addEventListener("lostpointercapture",Fe)}function z(ve){if(a==null)return;const{sortDescendingFirst:Ee}=e;if(k===void 0){const me={columnKey:e.key,direction:Ee?"DESC":"ASC"};a(s&&ve?[...s,me]:[me])}else{let me;if((Ee===!0&&T==="DESC"||Ee!==!0&&T==="ASC")&&(me={columnKey:e.key,direction:T==="ASC"?"DESC":"ASC"}),ve){const we=[...s];me?we[b]=me:we.splice(b,1),a(we)}else a(me?[me]:[])}}function F(ve){l({idx:e.idx,rowIdx:r}),C&&z(ve.ctrlKey||ve.metaKey)}function P(){o(e,"max-content")}function K(ve){S==null||S(ve),u&&l({idx:0,rowIdx:r})}function V(ve){(ve.key===" "||ve.key==="Enter")&&(ve.preventDefault(),z(ve.ctrlKey||ve.metaKey))}function Z(ve){ve.dataTransfer.setData("text/plain",e.key),ve.dataTransfer.dropEffect="move",d(!0)}function J(){d(!1)}function ee(ve){ve.preventDefault(),ve.dataTransfer.dropEffect="move"}function de(ve){g(!1);const Ee=ve.dataTransfer.getData("text/plain");Ee!==e.key&&(ve.preventDefault(),i==null||i(Ee,e.key))}function ge(ve){vee(ve)&&g(!0)}function Se(ve){vee(ve)&&g(!1)}let Re;return D&&(Re={draggable:!0,onDragStart:Z,onDragEnd:J,onDragOver:ee,onDragEnter:ge,onDragLeave:Se,onDrop:de}),N.jsxs("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":y,"aria-selected":n,"aria-sort":I,tabIndex:u?0:E,className:L,style:{...whe(e,r,y),...wE(e,t)},onFocus:K,onClick:F,onKeyDown:C?V:void 0,...Re,children:[M({column:e,sortDirection:T,priority:x,tabIndex:_}),R&&N.jsx("div",{className:Zot,onClick:Jnt,onDoubleClick:P,onPointerDown:W})]})}function vee(e){const t=e.relatedTarget;return!e.currentTarget.contains(t)}const oit="r1otpg647-0-0-beta-39",Nhe=`rdg-row ${oit}`,iit="rel5gk27-0-0-beta-39",Wj="rdg-row-selected",sit="r1qymf1z7-0-0-beta-39",ait="h197vzie7-0-0-beta-39",Rhe=`rdg-header-row ${ait}`;function lit({rowIdx:e,columns:t,onColumnResize:r,onColumnsReorder:n,sortColumns:o,onSortColumnsChange:i,lastFrozenColumnIndex:s,selectedCellIdx:a,selectCell:l,shouldFocusGrid:u,direction:c}){const f=[];for(let d=0;dt&&l.parent!==void 0;)l=l.parent;if(l.level===t&&!s.has(l)){s.add(l);const{idx:u}=l;i.push(N.jsx(qot,{column:l,rowIdx:e,isCellSelected:n===u,selectCell:o},u))}}}return N.jsx("div",{role:"row","aria-rowindex":e,className:Rhe,children:i})}const fit=A.memo(cit),dit="ccpfvsn7-0-0-beta-39",hit=`rdg-cell-copied ${dit}`,pit="c1bmg16t7-0-0-beta-39",git=`rdg-cell-dragged-over ${pit}`;function vit({column:e,colSpan:t,isCellSelected:r,isCopied:n,isDraggedOver:o,row:i,rowIdx:s,onClick:a,onDoubleClick:l,onContextMenu:u,onRowChange:c,selectCell:f,...d}){const{tabIndex:h,childTabIndex:g,onFocus:v}=o5(r),{cellClass:y}=e,E=n5(e,typeof y=="function"?y(i):y,n&&hit,o&&git),_=_he(e,i);function S(I){f({rowIdx:s,idx:e.idx},I)}function b(I){if(a){const C=rb(I);if(a({row:i,column:e,selectCell:S},C),C.isGridDefaultPrevented())return}S()}function k(I){if(u){const C=rb(I);if(u({row:i,column:e,selectCell:S},C),C.isGridDefaultPrevented())return}S()}function T(I){if(l){const C=rb(I);if(l({row:i,column:e,selectCell:S},C),C.isGridDefaultPrevented())return}S(!0)}function x(I){c(e,I)}return N.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":r,"aria-readonly":!_||void 0,tabIndex:h,className:E,style:wE(e,t),onClick:b,onDoubleClick:T,onContextMenu:k,onFocus:v,...d,children:e.renderCell({column:e,row:i,isCellEditable:_,tabIndex:g,onRowChange:x})})}const mit=A.memo(vit);function yit({className:e,rowIdx:t,gridRowStart:r,height:n,selectedCellIdx:o,isRowSelected:i,copiedCellIdx:s,draggedOverCellIdx:a,lastFrozenColumnIndex:l,row:u,viewportColumns:c,selectedCellEditor:f,onCellClick:d,onCellDoubleClick:h,onCellContextMenu:g,rowClass:v,setDraggedOverRowIdx:y,onMouseEnter:E,onRowChange:_,selectCell:S,...b},k){const T=Za((C,R)=>{_(C,t,R)});function x(C){y==null||y(t),E==null||E(C)}e=Bf(Nhe,`rdg-row-${t%2===0?"even":"odd"}`,v==null?void 0:v(u,t),e,o===-1&&Wj);const I=[];for(let C=0;C{$k(o.current)}),Zg(()=>{function i(){n(null)}const s=new IntersectionObserver(i,{root:r,threshold:1});return s.observe(o.current),()=>{s.disconnect()}},[r,n]),N.jsx("div",{ref:o,style:{gridColumn:e===void 0?"1/-1":e+1,gridRow:t===void 0?"1/-1":t+2}})}const Sit="a1mygwml7-0-0-beta-39",wit=`rdg-sort-arrow ${Sit}`;function kit({sortDirection:e,priority:t}){return N.jsxs(N.Fragment,{children:[Ait({sortDirection:e}),xit({priority:t})]})}function Ait({sortDirection:e}){return e===void 0?null:N.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:wit,"aria-hidden":!0,children:N.jsx("path",{d:e==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function xit({priority:e}){return e}const Tit="r104f42s7-0-0-beta-39",Iit=`rdg ${Tit}`,Cit="v7ly7s7-0-0-beta-39",Nit=`rdg-viewport-dragging ${Cit}`,Rit="fc4f4zb7-0-0-beta-39",Oit="fq51q037-0-0-beta-39",Dit="s1n3hxke7-0-0-beta-39";function Fit({column:e,colSpan:t,row:r,rowIdx:n,isCellSelected:o,selectCell:i}){var d;const{tabIndex:s,childTabIndex:a,onFocus:l}=o5(o),{summaryCellClass:u}=e,c=n5(e,Dit,typeof u=="function"?u(r):u);function f(){i({rowIdx:n,idx:e.idx})}return N.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":o,tabIndex:s,className:c,style:wE(e,t),onClick:f,onFocus:l,children:(d=e.renderSummaryCell)==null?void 0:d.call(e,{column:e,row:r,tabIndex:a})})}const Bit=A.memo(Fit),Mit="snfqesz7-0-0-beta-39",Lit="t1jijrjz7-0-0-beta-39",jit="t14bmecc7-0-0-beta-39",zit="b1odhhml7-0-0-beta-39",Hit=`rdg-summary-row ${Mit}`,$it=`rdg-top-summary-row ${Lit}`;function Pit({rowIdx:e,gridRowStart:t,row:r,viewportColumns:n,top:o,bottom:i,lastFrozenColumnIndex:s,selectedCellIdx:a,isTop:l,showBorder:u,selectCell:c,"aria-rowindex":f}){const d=[];for(let h=0;hnew Map),[Nt,ut]=A.useState(()=>new Map),[xe,Ve]=A.useState(null),[Xt,he]=A.useState(!1),[le,se]=A.useState(void 0),[pe,Oe]=A.useState(null),[je,ke,Ie]=Fot(),{columns:$e,colSpanColumns:lt,lastFrozenColumnIndex:mt,headerRowsCount:Rt,colOverscanStartIdx:dr,colOverscanEndIdx:Cr,templateColumns:Lt,layoutCssVars:Wr,totalFrozenColumnWidth:dn}=Oot({rawColumns:r,defaultColumnOptions:v,measuredColumnWidths:Nt,resizedColumnWidths:_t,scrollLeft:ot,viewportWidth:ke,enableVirtualization:nt}),tr=(o==null?void 0:o.length)??0,Ot=(i==null?void 0:i.length)??0,Gr=tr+Ot,Nr=Rt+tr,Kr=Rt-1,gr=-Nr,Bt=gr+Kr,dt=n.length+Ot-1,[Ue,Vr]=A.useState(()=>({idx:-1,rowIdx:gr-1,mode:"SELECT"})),No=A.useRef(Ue),Hr=A.useRef(le),Fl=A.useRef(-1),ys=A.useRef(null),mo=A.useRef(!1),ja=ge==="treegrid",He=Rt*Re,Y=Ie-He-Gr*ve,X=f!=null&&d!=null,$=Qe==="rtl",q=$?"ArrowRight":"ArrowLeft",B=$?"ArrowLeft":"ArrowRight",Q=J??Rt+n.length+Gr,ie=A.useMemo(()=>({renderCheckbox:we,renderSortStatus:me}),[we,me]),ae=A.useMemo(()=>{const{length:Ke}=n;return Ke!==0&&f!=null&&s!=null&&f.size>=Ke&&n.every(tt=>f.has(s(tt)))},[n,f,s]),{rowOverscanStartIdx:ne,rowOverscanEndIdx:ye,totalRowHeight:Pe,gridTemplateRows:xt,getRowTop:Dt,getRowHeight:wt,findRowIdx:Et}=Mot({rows:n,rowHeight:Se,clientHeight:Y,scrollTop:Ze,enableVirtualization:nt}),Gt=Bot({columns:$e,colSpanColumns:lt,colOverscanStartIdx:dr,colOverscanEndIdx:Cr,lastFrozenColumnIndex:mt,rowOverscanStartIdx:ne,rowOverscanEndIdx:ye,rows:n,topSummaryRows:o,bottomSummaryRows:i}),{gridTemplateColumns:$r,handleColumnResize:Ft}=Dot($e,Gt,Lt,je,ke,_t,Nt,qt,ut,T),En=ja?-1:0,yo=$e.length-1,$i=kp(Ue),Bl=Ap(Ue),Us=Za(Ft),Oc=Za(x),Ml=Za(g),so=Za(y),za=Za(E),Dc=Za(_),Ll=Za(Bc),Fc=Za(Nu),jl=Za(Yf),Vf=Za(({idx:Ke,rowIdx:tt})=>{Yf({rowIdx:gr+tt-1,idx:Ke})});Zg(()=>{if(!$i||x3(Ue,No.current)){No.current=Ue;return}No.current=Ue,Ue.idx===-1&&(ys.current.focus({preventScroll:!0}),$k(ys.current))}),Zg(()=>{mo.current&&(mo.current=!1,em())}),A.useImperativeHandle(t,()=>({element:je.current,scrollToCell({idx:Ke,rowIdx:tt}){const Wt=Ke!==void 0&&Ke>mt&&Ke<$e.length?Ke:void 0,jt=tt!==void 0&&M1(tt)?tt:void 0;(Wt!==void 0||jt!==void 0)&&Oe({idx:Wt,rowIdx:jt})},selectCell:Yf}));const Iu=A.useCallback(Ke=>{se(Ke),Hr.current=Ke},[]);function Bc(Ke){if(!d)return;if(hee(s),Ke.type==="HEADER"){const Jr=new Set(f);for(const nn of n){const Ro=s(nn);Ke.checked?Jr.add(Ro):Jr.delete(Ro)}d(Jr);return}const{row:tt,checked:Wt,isShiftClick:jt}=Ke,St=new Set(f),Tt=s(tt);if(Wt){St.add(Tt);const Jr=Fl.current,nn=n.indexOf(tt);if(Fl.current=nn,jt&&Jr!==-1&&Jr!==nn){const Ro=pot(nn-Jr);for(let Ha=Jr+Ro;Ha!==nn;Ha+=Ro){const Lc=n[Ha];St.add(s(Lc))}}}else St.delete(Tt),Fl.current=-1;d(St)}function Mc(Ke){const{idx:tt,rowIdx:Wt,mode:jt}=Ue;if(jt==="EDIT")return;if(S&&M1(Wt)){const nn=n[Wt],Ro=rb(Ke);if(S({mode:"SELECT",row:nn,column:$e[tt],rowIdx:Wt,selectCell:Yf},Ro),Ro.isGridDefaultPrevented())return}if(!(Ke.target instanceof Element))return;const St=Ke.target.closest(".rdg-cell")!==null,Tt=ja&&Ke.target===ys.current;if(!St&&!Tt)return;const{keyCode:Jr}=Ke;if(Bl&&(R!=null||C!=null)&&fee(Ke)){if(Jr===67){Zv();return}if(Jr===86){Uf();return}}switch(Ke.key){case"Escape":Ve(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":GE(Ke);break;default:WE(Ke);break}}function Cu(Ke){const{scrollTop:tt,scrollLeft:Wt}=Ke.currentTarget;pi.flushSync(()=>{Fe(tt),Me(got(Wt))}),k==null||k(Ke)}function Nu(Ke,tt,Wt){if(typeof a!="function"||Wt===n[tt])return;const jt=[...n];jt[tt]=Wt,a(jt,{indexes:[tt],column:Ke})}function wp(){Ue.mode==="EDIT"&&Nu($e[Ue.idx],Ue.rowIdx,Ue.row)}function Zv(){const{idx:Ke,rowIdx:tt}=Ue,Wt=n[tt],jt=$e[Ke].key;Ve({row:Wt,columnKey:jt}),C==null||C({sourceRow:Wt,sourceColumnKey:jt})}function Uf(){if(!R||!a||xe===null||!L1(Ue))return;const{idx:Ke,rowIdx:tt}=Ue,Wt=$e[Ke],jt=n[tt],St=R({sourceRow:xe.row,sourceColumnKey:xe.columnKey,targetRow:jt,targetColumnKey:Wt.key});Nu(Wt,tt,St)}function WE(Ke){if(!Bl)return;const tt=n[Ue.rowIdx],{key:Wt,shiftKey:jt}=Ke;if(X&&jt&&Wt===" "){hee(s);const St=s(tt);Bc({type:"ROW",row:tt,checked:!f.has(St),isShiftClick:!1}),Ke.preventDefault();return}L1(Ue)&&tot(Ke)&&Vr(({idx:St,rowIdx:Tt})=>({idx:St,rowIdx:Tt,mode:"EDIT",row:tt,originalRow:tt}))}function Jv(Ke){return Ke>=En&&Ke<=yo}function M1(Ke){return Ke>=0&&Ke=gr&&tt<=dt&&Jv(Ke)}function Ap({idx:Ke,rowIdx:tt}){return M1(tt)&&Jv(Ke)}function L1(Ke){return Ap(Ke)&&iot({columns:$e,rows:n,selectedPosition:Ke})}function Yf(Ke,tt){if(!kp(Ke))return;wp();const Wt=n[Ke.rowIdx],jt=x3(Ue,Ke);tt&&L1(Ke)?Vr({...Ke,mode:"EDIT",row:Wt,originalRow:Wt}):jt?$k(yee(je.current)):(mo.current=!0,Vr({...Ke,mode:"SELECT"})),b&&!jt&&b({rowIdx:Ke.rowIdx,row:Wt,column:$e[Ke.idx]})}function Q5(Ke,tt,Wt){const{idx:jt,rowIdx:St}=Ue,Tt=$i&&jt===-1;switch(Ke){case"ArrowUp":return{idx:jt,rowIdx:St-1};case"ArrowDown":return{idx:jt,rowIdx:St+1};case q:return{idx:jt-1,rowIdx:St};case B:return{idx:jt+1,rowIdx:St};case"Tab":return{idx:jt+(Wt?-1:1),rowIdx:St};case"Home":return Tt?{idx:jt,rowIdx:gr}:{idx:0,rowIdx:tt?gr:St};case"End":return Tt?{idx:jt,rowIdx:dt}:{idx:yo,rowIdx:tt?dt:St};case"PageUp":{if(Ue.rowIdx===gr)return Ue;const Jr=Dt(St)+wt(St)-Y;return{idx:jt,rowIdx:Jr>0?Et(Jr):0}}case"PageDown":{if(Ue.rowIdx>=n.length)return Ue;const Jr=Dt(St)+Y;return{idx:jt,rowIdx:JrKe&&Ke>=le)?Ue.idx:void 0}function em(){const Ke=yee(je.current);if(Ke===null)return;$k(Ke),(Ke.querySelector('[tabindex="0"]')??Ke).focus({preventScroll:!0})}function J5(){if(!(I==null||Ue.mode==="EDIT"||!Ap(Ue)))return N.jsx(Hot,{gridRowStart:Nr+Ue.rowIdx+1,rows:n,columns:$e,selectedPosition:Ue,isCellEditable:L1,latestDraggedOverRowIdx:Hr,onRowsChange:a,onClick:em,onFill:I,setDragging:he,setDraggedOverRowIdx:Iu})}function eI(Ke){if(Ue.rowIdx!==Ke||Ue.mode==="SELECT")return;const{idx:tt,row:Wt}=Ue,jt=$e[tt],St=fl(jt,mt,{type:"ROW",row:Wt}),Tt=nn=>{mo.current=nn,Vr(({idx:Ro,rowIdx:Ha})=>({idx:Ro,rowIdx:Ha,mode:"SELECT"}))},Jr=(nn,Ro,Ha)=>{Ro?pi.flushSync(()=>{Nu(jt,Ue.rowIdx,nn),Tt(Ha)}):Vr(Lc=>({...Lc,row:nn}))};return n[Ue.rowIdx]!==Ue.originalRow&&Tt(!1),N.jsx(Pot,{column:jt,colSpan:St,row:Wt,rowIdx:Ke,onRowChange:Jr,closeEditor:Tt,onKeyDown:S,navigate:GE},jt.key)}function j1(Ke){const tt=Ue.idx===-1?void 0:$e[Ue.idx];return tt!==void 0&&Ue.rowIdx===Ke&&!Gt.includes(tt)?Ue.idx>Cr?[...Gt,tt]:[...Gt.slice(0,mt+1),tt,...Gt.slice(mt+1)]:Gt}function tI(){const Ke=[],{idx:tt,rowIdx:Wt}=Ue,jt=Bl&&Wtye?ye+1:ye;for(let Tt=jt;Tt<=St;Tt++){const Jr=Tt===ne-1||Tt===ye+1,nn=Jr?Wt:Tt;let Ro=Gt;const Ha=tt===-1?void 0:$e[tt];Ha!==void 0&&(Jr?Ro=[Ha]:Ro=j1(nn));const Lc=n[nn],rI=Nr+nn+1;let xp=nn,tm=!1;typeof s=="function"&&(xp=s(Lc),tm=(f==null?void 0:f.has(xp))??!1),Ke.push(Ee(xp,{"aria-rowindex":Nr+nn+1,"aria-selected":X?tm:void 0,rowIdx:nn,row:Lc,viewportColumns:Ro,isRowSelected:tm,onCellClick:so,onCellDoubleClick:za,onCellContextMenu:Dc,rowClass:z,gridRowStart:rI,height:wt(nn),copiedCellIdx:xe!==null&&xe.row===Lc?$e.findIndex(Oo=>Oo.key===xe.columnKey):void 0,selectedCellIdx:Wt===nn?tt:void 0,draggedOverCellIdx:Z5(nn),setDraggedOverRowIdx:Xt?Iu:void 0,lastFrozenColumnIndex:mt,onRowChange:Fc,selectCell:jl,selectedCellEditor:eI(nn)}))}return Ke}(Ue.idx>yo||Ue.rowIdx>dt)&&(Vr({idx:-1,rowIdx:gr-1,mode:"SELECT"}),Iu(void 0));let Xf=`repeat(${Rt}, ${Re}px)`;tr>0&&(Xf+=` repeat(${tr}, ${ve}px)`),n.length>0&&(Xf+=xt),Ot>0&&(Xf+=` repeat(${Ot}, ${ve}px)`);const KE=Ue.idx===-1&&Ue.rowIdx!==gr-1;return N.jsxs("div",{role:ge,"aria-label":K,"aria-labelledby":V,"aria-describedby":Z,"aria-multiselectable":X?!0:void 0,"aria-colcount":$e.length,"aria-rowcount":Q,className:Bf(Iit,M,Xt&&Nit),style:{...W,scrollPaddingInlineStart:Ue.idx>mt||(pe==null?void 0:pe.idx)!==void 0?`${dn}px`:void 0,scrollPaddingBlock:M1(Ue.rowIdx)||(pe==null?void 0:pe.rowIdx)!==void 0?`${He+tr*ve}px ${Ot*ve}px`:void 0,gridTemplateColumns:$r,gridTemplateRows:Xf,"--rdg-header-row-height":`${Re}px`,"--rdg-summary-row-height":`${ve}px`,"--rdg-sign":$?-1:1,...Wr},dir:Qe,ref:je,onScroll:Cu,onKeyDown:Mc,"data-testid":ee,children:[N.jsx(xot,{value:ie,children:N.jsxs(Cot,{value:Ll,children:[N.jsxs(Ihe,{value:ae,children:[Array.from({length:Kr},(Ke,tt)=>N.jsx(fit,{rowIdx:tt+1,level:-Kr+tt,columns:j1(gr+tt),selectedCellIdx:Ue.rowIdx===gr+tt?Ue.idx:void 0,selectCell:Vf},tt)),N.jsx(uit,{rowIdx:Rt,columns:j1(Bt),onColumnResize:Us,onColumnsReorder:Oc,sortColumns:h,onSortColumnsChange:Ml,lastFrozenColumnIndex:mt,selectedCellIdx:Ue.rowIdx===Bt?Ue.idx:void 0,selectCell:Vf,shouldFocusGrid:!$i,direction:Qe})]}),n.length===0&&Ge?Ge:N.jsxs(N.Fragment,{children:[o==null?void 0:o.map((Ke,tt)=>{const Wt=Rt+1+tt,jt=Bt+1+tt,St=Ue.rowIdx===jt,Tt=He+ve*tt;return N.jsx(mee,{"aria-rowindex":Wt,rowIdx:jt,gridRowStart:Wt,row:Ke,top:Tt,bottom:void 0,viewportColumns:j1(jt),lastFrozenColumnIndex:mt,selectedCellIdx:St?Ue.idx:void 0,isTop:!0,showBorder:tt===tr-1,selectCell:jl},tt)}),tI(),i==null?void 0:i.map((Ke,tt)=>{const Wt=Nr+n.length+tt+1,jt=n.length+tt,St=Ue.rowIdx===jt,Tt=Y>Pe?Ie-ve*(i.length-tt):void 0,Jr=Tt===void 0?ve*(i.length-1-tt):void 0;return N.jsx(mee,{"aria-rowindex":Q-Ot+tt+1,rowIdx:jt,gridRowStart:Wt,row:Ke,top:Tt,bottom:Jr,viewportColumns:j1(jt),lastFrozenColumnIndex:mt,selectedCellIdx:St?Ue.idx:void 0,isTop:!1,showBorder:tt===0,selectCell:jl},tt)})]})]})}),J5(),oot(Gt),ja&&N.jsx("div",{ref:ys,tabIndex:KE?0:-1,className:Bf(Rit,KE&&[iit,mt!==-1&&sit],!M1(Ue.rowIdx)&&Oit),style:{gridRowStart:Ue.rowIdx+Nr+1}}),pe!==null&&N.jsx(Eit,{scrollToPosition:pe,setScrollToCellPosition:Oe,gridElement:je.current})]})}function yee(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function x3(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}const Wit=A.forwardRef(qit),kE=()=>{const[e]=Qet(X1e);return e},Git=()=>{const e=kE();return ri(e.rows$).toArray()},Kit=()=>{const e=kE();return A.useCallback(t=>{e.toggleRow(t)},[e])},Vit=()=>{const e=kE();return[e.startTime,e.endTime]},Uit=()=>{const e=kE();return ri(e.selectedRowId$)},Yit=()=>{const e=kE();return Lj(e.selectedRowId$)},Xit=({row:e})=>{const[t,r]=Vit(),n=`${(e.startTime-t)*100/(r-t)}%`,o=`${(r-e.endTime)*100/(r-t)}%`,i=e.children&&e.children.length>0,s=e.isExpanded;return N.jsx("div",{style:{marginLeft:n,marginRight:o,height:"100%",marginTop:4,marginBottom:4,display:"flex"},children:i&&!s?N.jsx(N.Fragment,{children:(e.children??[]).map((a,l)=>{const u=`${(a.endTime-a.startTime)*100/(e.endTime-e.startTime)}%`;return N.jsx("div",{style:{backgroundColor:a.color??`rgba(0, 120, 212, ${1-.2*l})`,width:u}},a.id)})}):N.jsx("div",{style:{backgroundColor:e.color??"rgba(0, 120, 212, 1)",width:"100%"}})})},Qit=({row:e})=>{const t=e.children!==void 0&&e.children.length>0,r=e.isExpanded,n=Kit(),o=A.useCallback(i=>{i.preventDefault(),i.stopPropagation(),n(e.id)},[e.id,n]);return N.jsxs("div",{style:{display:"flex",gap:4,paddingLeft:e.level*24},children:[t?N.jsx("div",{onClick:o,role:"button",children:r?"▼":"▶"}):N.jsx(N.Fragment,{}),N.jsx("div",{children:e.node_name||e.name})]})},Zit=[{key:"name",name:"node name",resizable:!0,width:320,renderCell({row:e}){return N.jsx(Qit,{row:e})}},{key:"duration",name:"duration",resizable:!0,width:60,renderHeaderCell(){return N.jsx("div",{style:{textAlign:"right"},children:"duration"})},renderCell({row:e}){return N.jsxs("div",{style:{textAlign:"right"},children:[Math.round((e.endTime-e.startTime)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")," ","ms"]})}},{key:"ganttChart",name:"gantt-chart",renderCell({row:e}){return N.jsx(Xit,{row:e})},renderHeaderCell:()=>N.jsx(N.Fragment,{})}],Jit=({styles:e,gridRef:t,getColumns:r=n=>n})=>{const n=Git(),o=Yit(),i=Uit(),s=A.useCallback(u=>{const{row:c}=u;o(c.id)},[o]),a=mr(e==null?void 0:e.grid,{borderBottom:"none",borderRight:"none"}),l=A.useCallback(u=>mr(i===u.id?e==null?void 0:e.selectedRow:""),[i,e==null?void 0:e.selectedRow]);return N.jsx(Wit,{rows:n,columns:r(Zit),onCellClick:s,className:a,rowClass:l,ref:t})},est=({viewModel:e,children:t})=>{const r=Vet({name:"gantt-wrapper"}),n=A.useCallback(o=>{o.register(X1e,{useValue:e})},[e]);return N.jsx(r,{onInitialize:n,children:t})};var W6=(e=>(e.Light="rdg-light",e.Dark="rdg-dark",e))(W6||{});const tst=({viewModel:e,styles:t,getColumns:r,gridRef:n})=>N.jsx(est,{viewModel:e,children:N.jsx(Jit,{styles:t,getColumns:r,gridRef:n})}),rst=({trace:e,JSONView:t})=>{const r=mi({root:["api-call-detail",{padding:8,width:"100%",height:"100%",display:"flex",flexDirection:"column"}],header:["api-call-detail-header",{fontWeight:600,fontSize:20,lineHeight:28,marginBottom:16}],section:["api-call-detail-section",{display:"flex",flexDirection:"column",width:"85%",height:"auto",boxShadow:"rgba(0, 0, 0, 0.18) 0px 1.6px 3.6px 0px, rgba(0, 0, 0, 0.22) 0px 0.3px 0.9px 0px",marginBottom:16}],sectionTitle:["api-call-detail-section-title",{fontWeight:500,fontSize:16,marginTop:8,marginBottom:8,lineHeight:20,borderBottom:"1px inset #ccc",padding:"9px 12px"}],sectionContent:["api-call-detail-section-content",{padding:16,overflow:"auto",maxHeight:"600px"}],fieldTitle:["api-call-detail-field-title",{fontWeight:500,fontSize:14,lineHeight:20}],overviewContainer:["api-call-detail-overview-container",{display:"flex",flexDirection:"row"}],overviewColumn:["api-call-detail-overview-column",{display:"flex",flexGrow:1,flexDirection:"column"}]}),n=e.node_name??e.name??"",o=g7(e),i=e.inputs??{},s=e.output??{};return N.jsxs("div",{className:r.root,children:[N.jsx("div",{className:r.header,children:n}),N.jsxs("div",{className:r.section,children:[N.jsx("div",{className:r.sectionTitle,children:"Overview"}),N.jsx("div",{className:r.sectionContent,children:N.jsxs("div",{className:r.overviewContainer,children:[N.jsxs("div",{className:r.overviewColumn,children:[N.jsx("div",{className:r.fieldTitle,children:"total tokens"}),N.jsx("div",{children:Uy(o.totalTokens)}),N.jsx("div",{className:r.fieldTitle,children:"prompt tokens"}),N.jsx("div",{children:Uy(o.promptTokens)}),N.jsx("div",{className:r.fieldTitle,children:"completion tokens"}),N.jsx("div",{children:Uy(o.completionTokens)})]}),N.jsxs("div",{className:r.overviewColumn,children:[N.jsx("div",{className:r.fieldTitle,children:"duration"}),N.jsx("div",{children:e.end_time&&e.start_time?`${Math.round((e.end_time-e.start_time)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")} ms`:"N/A"}),N.jsx("div",{className:r.fieldTitle,children:"started at"}),N.jsx("div",{children:e.start_time?VK(e.start_time*1e3):"N/A"}),N.jsx("div",{className:r.fieldTitle,children:"finished at"}),N.jsx("div",{children:e.end_time?VK(e.end_time*1e3):"N/A"})]})]})})]}),N.jsxs("div",{className:r.section,children:[N.jsx("div",{className:r.sectionTitle,children:"Inputs"}),N.jsx("div",{className:r.sectionContent,children:N.jsx(t,{src:i})})]}),N.jsxs("div",{className:r.section,children:[N.jsx("div",{className:r.sectionTitle,children:"Outputs"}),N.jsx("div",{className:r.sectionContent,children:N.jsx(t,{src:s})})]})]})},Ohe=new Map,nst=e=>{let t=0,r=0;if(e.length===0)return t;for(let n=0;ne.map(t=>{const r=Ri.v4();return Ohe.set(r,t),{startTime:t.start_time??performance.now(),endTime:t.end_time??performance.now(),color:Jue[nst(t.name??"")%ost],id:r,name:t.name??"",node_name:t.node_name??"",output:t.output??[],children:t.children?Dhe(t.children):void 0}}),ist=({children:e,className:t})=>N.jsx(yhe,{enable:{right:!0},className:t,defaultSize:{width:"50%",height:"100%"},children:e}),bee=({children:e,className:t})=>N.jsx("div",{className:t,children:e}),sst=A.forwardRef(({traces:e,styles:t,isDarkMode:r=!1,classNames:n,RootContainer:o=bee,GridContainer:i=ist,DetailContainer:s=bee,renderDetail:a=f=>N.jsx(rst,{JSONView:d=>N.jsx("pre",{children:JSON.stringify(d)}),trace:f}),onChangeSelectedTrace:l,renderUnselectedHint:u=()=>N.jsx("div",{children:"Click on a row to see details"})},c)=>{const f=A.useMemo(()=>e.reduce((T,x)=>[...T,...Dhe(x)],[]),[e]),d=A.useMemo(()=>new ax,[]);A.useEffect(()=>{d.setTasks(f)},[f,d]);const h=ri(d.selectedRowId$),g=Lj(d.selectedRowId$),v=A.useMemo(()=>h?Ohe.get(h):void 0,[h]),y=A.useMemo(()=>({...t,grid:mr(t==null?void 0:t.grid,r?W6.Dark:W6.Light)}),[t,r]),E=mr({display:"flex",height:"100%",borderTop:"1px solid #ccc"},n==null?void 0:n.root),_=mr({height:"100%",width:"100%",padding:16,borderRight:"1px solid #ccc"},n==null?void 0:n.gridContainer),S=mr({height:"100%",width:"100%",padding:8},n==null?void 0:n.detailContainer),b=A.useCallback(T=>{var I;const x=(I=f.find(C=>C.node_name===T))==null?void 0:I.id;x&&g(x)},[f,g]);A.useImperativeHandle(c,()=>({setSelectedTraceRow:b})),A.useEffect(()=>{l&&l(v)},[l,v]),A.useEffect(()=>{g(void 0)},[e]);const k=A.useCallback(T=>{const x={key:"token",name:"token",resizable:!0,width:60,renderHeaderCell(){return N.jsx("div",{style:{textAlign:"right"},children:"Tokens"})},renderCell({row:R}){const D=g7(R),L=`prompt tokens: ${Uy(D.promptTokens)}, - completion tokens: ${D.completionTokens}`;return N.jsx("div",{style:{textAlign:"right"},title:L,children:Uy(D.totalTokens)})}},[I,...C]=T;return[I,x,...C]},[]);return N.jsxs(o,{className:E,children:[N.jsx(i,{className:_,children:N.jsx(tst,{viewModel:d,styles:y,getColumns:k})}),N.jsx(s,{className:S,children:v?a(v):u()})]})});sst.displayName="ApiLogs";gs((e,t)=>mi({root:mr({display:"flex",flexDirection:"row",alignItems:"center",height:"30px",background:"var(--background)",width:"100%",...t&&{position:"fixed",top:0,zIndex:100}},e),buttonGroup:{display:"flex",flexDirection:"row",height:"30px"},searchField:{marginRight:"100px",selectors:{"div.root":{height:"30px"}}}}));var ast=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=_ee[t.format]||_ee.default;window.clipboardData.setData(f,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(a),i.selectNodeContents(a),s.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!0}catch(c){r&&console.error("unable to copy using execCommand: ",c),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){r&&console.error("unable to copy using clipboardData: ",f),r&&console.error("falling back to prompt"),n=cst("message"in t?t.message:ust),window.prompt(n,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(i):s.removeAllRanges()),a&&document.body.removeChild(a),o()}return l}var dst=fst;const Fhe=zf(dst);class hst extends A.Component{constructor(t){super(t),this.state={}}componentDidCatch(t,r){yi.postMessage({name:cn.ERROR_BOUNDARY_CAUGHT,payload:{error:t,errorInfo:r}}),this.setState({error:t,errorInfo:r})}renderDefaultFallback(){const t=()=>{var r,n;(n=(r=this.props)==null?void 0:r.onReload)==null||n.call(r),this.setState({error:void 0,errorInfo:void 0})};return N.jsxs("div",{children:[N.jsx("div",{children:"Something went wrong!"}),!!this.props.onReload&&N.jsx("button",{onClick:t,children:"Reload"})]})}render(){return this.state.error?this.props.fallback??this.renderDefaultFallback():this.props.children}}var pst={exports:{}};(function(e,t){(function(r,n){e.exports=n(A)})(Ns,function(r){return function(n){var o={};function i(s){if(o[s])return o[s].exports;var a=o[s]={i:s,l:!1,exports:{}};return n[s].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=n,i.c=o,i.d=function(s,a,l){i.o(s,a)||Object.defineProperty(s,a,{enumerable:!0,get:l})},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,a){if(1&a&&(s=i(s)),8&a||4&a&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(i.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),2&a&&typeof s!="string")for(var u in s)i.d(l,u,(function(c){return s[c]}).bind(null,u));return l},i.n=function(s){var a=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(a,"a",a),a},i.o=function(s,a){return Object.prototype.hasOwnProperty.call(s,a)},i.p="",i(i.s=48)}([function(n,o){n.exports=r},function(n,o){var i=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=i)},function(n,o,i){var s=i(26)("wks"),a=i(17),l=i(3).Symbol,u=typeof l=="function";(n.exports=function(c){return s[c]||(s[c]=u&&l[c]||(u?l:a)("Symbol."+c))}).store=s},function(n,o){var i=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=i)},function(n,o,i){n.exports=!i(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,o){var i={}.hasOwnProperty;n.exports=function(s,a){return i.call(s,a)}},function(n,o,i){var s=i(7),a=i(16);n.exports=i(4)?function(l,u,c){return s.f(l,u,a(1,c))}:function(l,u,c){return l[u]=c,l}},function(n,o,i){var s=i(10),a=i(35),l=i(23),u=Object.defineProperty;o.f=i(4)?Object.defineProperty:function(c,f,d){if(s(c),f=l(f,!0),s(d),a)try{return u(c,f,d)}catch{}if("get"in d||"set"in d)throw TypeError("Accessors not supported!");return"value"in d&&(c[f]=d.value),c}},function(n,o){n.exports=function(i){try{return!!i()}catch{return!0}}},function(n,o,i){var s=i(40),a=i(22);n.exports=function(l){return s(a(l))}},function(n,o,i){var s=i(11);n.exports=function(a){if(!s(a))throw TypeError(a+" is not an object!");return a}},function(n,o){n.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},function(n,o){n.exports={}},function(n,o,i){var s=i(39),a=i(27);n.exports=Object.keys||function(l){return s(l,a)}},function(n,o){n.exports=!0},function(n,o,i){var s=i(3),a=i(1),l=i(53),u=i(6),c=i(5),f=function(d,h,g){var v,y,E,_=d&f.F,S=d&f.G,b=d&f.S,k=d&f.P,T=d&f.B,x=d&f.W,I=S?a:a[h]||(a[h]={}),C=I.prototype,R=S?s:b?s[h]:(s[h]||{}).prototype;for(v in S&&(g=h),g)(y=!_&&R&&R[v]!==void 0)&&c(I,v)||(E=y?R[v]:g[v],I[v]=S&&typeof R[v]!="function"?g[v]:T&&y?l(E,s):x&&R[v]==E?function(D){var L=function(M,W,z){if(this instanceof D){switch(arguments.length){case 0:return new D;case 1:return new D(M);case 2:return new D(M,W)}return new D(M,W,z)}return D.apply(this,arguments)};return L.prototype=D.prototype,L}(E):k&&typeof E=="function"?l(Function.call,E):E,k&&((I.virtual||(I.virtual={}))[v]=E,d&f.R&&C&&!C[v]&&u(C,v,E)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,n.exports=f},function(n,o){n.exports=function(i,s){return{enumerable:!(1&i),configurable:!(2&i),writable:!(4&i),value:s}}},function(n,o){var i=0,s=Math.random();n.exports=function(a){return"Symbol(".concat(a===void 0?"":a,")_",(++i+s).toString(36))}},function(n,o,i){var s=i(22);n.exports=function(a){return Object(s(a))}},function(n,o){o.f={}.propertyIsEnumerable},function(n,o,i){var s=i(52)(!0);i(34)(String,"String",function(a){this._t=String(a),this._i=0},function(){var a,l=this._t,u=this._i;return u>=l.length?{value:void 0,done:!0}:(a=s(l,u),this._i+=a.length,{value:a,done:!1})})},function(n,o){var i=Math.ceil,s=Math.floor;n.exports=function(a){return isNaN(a=+a)?0:(a>0?s:i)(a)}},function(n,o){n.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},function(n,o,i){var s=i(11);n.exports=function(a,l){if(!s(a))return a;var u,c;if(l&&typeof(u=a.toString)=="function"&&!s(c=u.call(a))||typeof(u=a.valueOf)=="function"&&!s(c=u.call(a))||!l&&typeof(u=a.toString)=="function"&&!s(c=u.call(a)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,o){var i={}.toString;n.exports=function(s){return i.call(s).slice(8,-1)}},function(n,o,i){var s=i(26)("keys"),a=i(17);n.exports=function(l){return s[l]||(s[l]=a(l))}},function(n,o,i){var s=i(1),a=i(3),l=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(n.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:s.version,mode:i(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,o){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,o,i){var s=i(7).f,a=i(5),l=i(2)("toStringTag");n.exports=function(u,c,f){u&&!a(u=f?u:u.prototype,l)&&s(u,l,{configurable:!0,value:c})}},function(n,o,i){i(62);for(var s=i(3),a=i(6),l=i(12),u=i(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;fdocument.F=Object<\/script>"),d.close(),f=d.F;g--;)delete f.prototype[l[g]];return f()};n.exports=Object.create||function(d,h){var g;return d!==null?(c.prototype=s(d),g=new c,c.prototype=null,g[u]=d):g=f(),h===void 0?g:a(g,h)}},function(n,o,i){var s=i(5),a=i(9),l=i(57)(!1),u=i(25)("IE_PROTO");n.exports=function(c,f){var d,h=a(c),g=0,v=[];for(d in h)d!=u&&s(h,d)&&v.push(d);for(;f.length>g;)s(h,d=f[g++])&&(~l(v,d)||v.push(d));return v}},function(n,o,i){var s=i(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return s(a)=="String"?a.split(""):Object(a)}},function(n,o,i){var s=i(39),a=i(27).concat("length","prototype");o.f=Object.getOwnPropertyNames||function(l){return s(l,a)}},function(n,o,i){var s=i(24),a=i(2)("toStringTag"),l=s(function(){return arguments}())=="Arguments";n.exports=function(u){var c,f,d;return u===void 0?"Undefined":u===null?"Null":typeof(f=function(h,g){try{return h[g]}catch{}}(c=Object(u),a))=="string"?f:l?s(c):(d=s(c))=="Object"&&typeof c.callee=="function"?"Arguments":d}},function(n,o){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}n.exports=i},function(n,o){var i=/-?\d+(\.\d+)?%?/g;n.exports=function(s){return s.match(i)}},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.getBase16Theme=o.createStyling=o.invertTheme=void 0;var s=y(i(49)),a=y(i(76)),l=y(i(81)),u=y(i(89)),c=y(i(93)),f=function(C){if(C&&C.__esModule)return C;var R={};if(C!=null)for(var D in C)Object.prototype.hasOwnProperty.call(C,D)&&(R[D]=C[D]);return R.default=C,R}(i(94)),d=y(i(132)),h=y(i(133)),g=y(i(138)),v=i(139);function y(C){return C&&C.__esModule?C:{default:C}}var E=f.default,_=(0,u.default)(E),S=(0,g.default)(h.default,v.rgb2yuv,function(C){var R,D=(0,l.default)(C,3),L=D[0],M=D[1],W=D[2];return[(R=L,R<.25?1:R<.5?.9-R:1.1-R),M,W]},v.yuv2rgb,d.default),b=function(C){return function(R){return{className:[R.className,C.className].filter(Boolean).join(" "),style:(0,a.default)({},R.style||{},C.style||{})}}},k=function(C,R){var D=(0,u.default)(R);for(var L in C)D.indexOf(L)===-1&&D.push(L);return D.reduce(function(M,W){return M[W]=function(z,F){if(z===void 0)return F;if(F===void 0)return z;var P=z===void 0?"undefined":(0,s.default)(z),K=F===void 0?"undefined":(0,s.default)(F);switch(P){case"string":switch(K){case"string":return[F,z].filter(Boolean).join(" ");case"object":return b({className:z,style:F});case"function":return function(V){for(var Z=arguments.length,J=Array(Z>1?Z-1:0),ee=1;ee1?Z-1:0),ee=1;ee1?Z-1:0),ee=1;ee1?Z-1:0),ee=1;ee1?Z-1:0),ee=1;ee2?D-2:0),M=2;M3?R-3:0),L=3;L1&&arguments[1]!==void 0?arguments[1]:{},W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=M.defaultBase16,F=z===void 0?E:z,P=M.base16Themes,K=P===void 0?null:P,V=I(W,K);V&&(W=(0,a.default)({},V,W));var Z=_.reduce(function(ge,Se){return ge[Se]=W[Se]||F[Se],ge},{}),J=(0,u.default)(W).reduce(function(ge,Se){return _.indexOf(Se)===-1&&(ge[Se]=W[Se]),ge},{}),ee=C(Z),de=k(J,ee);return(0,c.default)(T,2).apply(void 0,[de].concat(D))},3),o.getBase16Theme=function(C,R){if(C&&C.extend&&(C=C.extend),typeof C=="string"){var D=C.split(":"),L=(0,l.default)(D,2),M=L[0],W=L[1];C=(R||{})[M]||f[M],W==="inverted"&&(C=x(C))}return C&&C.hasOwnProperty("base00")?C:void 0})},function(n,o,i){var s,a=typeof Reflect=="object"?Reflect:null,l=a&&typeof a.apply=="function"?a.apply:function(b,k,T){return Function.prototype.apply.call(b,k,T)};s=a&&typeof a.ownKeys=="function"?a.ownKeys:Object.getOwnPropertySymbols?function(b){return Object.getOwnPropertyNames(b).concat(Object.getOwnPropertySymbols(b))}:function(b){return Object.getOwnPropertyNames(b)};var u=Number.isNaN||function(b){return b!=b};function c(){c.init.call(this)}n.exports=c,n.exports.once=function(b,k){return new Promise(function(T,x){function I(){C!==void 0&&b.removeListener("error",C),T([].slice.call(arguments))}var C;k!=="error"&&(C=function(R){b.removeListener(k,I),x(R)},b.once("error",C)),b.once(k,I)})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var f=10;function d(b){if(typeof b!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof b)}function h(b){return b._maxListeners===void 0?c.defaultMaxListeners:b._maxListeners}function g(b,k,T,x){var I,C,R,D;if(d(T),(C=b._events)===void 0?(C=b._events=Object.create(null),b._eventsCount=0):(C.newListener!==void 0&&(b.emit("newListener",k,T.listener?T.listener:T),C=b._events),R=C[k]),R===void 0)R=C[k]=T,++b._eventsCount;else if(typeof R=="function"?R=C[k]=x?[T,R]:[R,T]:x?R.unshift(T):R.push(T),(I=h(b))>0&&R.length>I&&!R.warned){R.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(k)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=b,L.type=k,L.count=R.length,D=L,console&&console.warn&&console.warn(D)}return b}function v(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(b,k,T){var x={fired:!1,wrapFn:void 0,target:b,type:k,listener:T},I=v.bind(x);return I.listener=T,x.wrapFn=I,I}function E(b,k,T){var x=b._events;if(x===void 0)return[];var I=x[k];return I===void 0?[]:typeof I=="function"?T?[I.listener||I]:[I]:T?function(C){for(var R=new Array(C.length),D=0;D0&&(C=k[0]),C instanceof Error)throw C;var R=new Error("Unhandled error."+(C?" ("+C.message+")":""));throw R.context=C,R}var D=I[b];if(D===void 0)return!1;if(typeof D=="function")l(D,this,k);else{var L=D.length,M=S(D,L);for(T=0;T=0;C--)if(T[C]===k||T[C].listener===k){R=T[C].listener,I=C;break}if(I<0)return this;I===0?T.shift():function(D,L){for(;L+1=0;x--)this.removeListener(b,k[x]);return this},c.prototype.listeners=function(b){return E(this,b,!0)},c.prototype.rawListeners=function(b){return E(this,b,!1)},c.listenerCount=function(b,k){return typeof b.listenerCount=="function"?b.listenerCount(k):_.call(b,k)},c.prototype.listenerCount=_,c.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(n,o,i){n.exports.Dispatcher=i(140)},function(n,o,i){n.exports=i(142)},function(n,o,i){o.__esModule=!0;var s=u(i(50)),a=u(i(65)),l=typeof a.default=="function"&&typeof s.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof a.default=="function"&&c.constructor===a.default&&c!==a.default.prototype?"symbol":typeof c};function u(c){return c&&c.__esModule?c:{default:c}}o.default=typeof a.default=="function"&&l(s.default)==="symbol"?function(c){return c===void 0?"undefined":l(c)}:function(c){return c&&typeof a.default=="function"&&c.constructor===a.default&&c!==a.default.prototype?"symbol":c===void 0?"undefined":l(c)}},function(n,o,i){n.exports={default:i(51),__esModule:!0}},function(n,o,i){i(20),i(29),n.exports=i(30).f("iterator")},function(n,o,i){var s=i(21),a=i(22);n.exports=function(l){return function(u,c){var f,d,h=String(a(u)),g=s(c),v=h.length;return g<0||g>=v?l?"":void 0:(f=h.charCodeAt(g))<55296||f>56319||g+1===v||(d=h.charCodeAt(g+1))<56320||d>57343?l?h.charAt(g):f:l?h.slice(g,g+2):d-56320+(f-55296<<10)+65536}}},function(n,o,i){var s=i(54);n.exports=function(a,l,u){if(s(a),l===void 0)return a;switch(u){case 1:return function(c){return a.call(l,c)};case 2:return function(c,f){return a.call(l,c,f)};case 3:return function(c,f,d){return a.call(l,c,f,d)}}return function(){return a.apply(l,arguments)}}},function(n,o){n.exports=function(i){if(typeof i!="function")throw TypeError(i+" is not a function!");return i}},function(n,o,i){var s=i(38),a=i(16),l=i(28),u={};i(6)(u,i(2)("iterator"),function(){return this}),n.exports=function(c,f,d){c.prototype=s(u,{next:a(1,d)}),l(c,f+" Iterator")}},function(n,o,i){var s=i(7),a=i(10),l=i(13);n.exports=i(4)?Object.defineProperties:function(u,c){a(u);for(var f,d=l(c),h=d.length,g=0;h>g;)s.f(u,f=d[g++],c[f]);return u}},function(n,o,i){var s=i(9),a=i(58),l=i(59);n.exports=function(u){return function(c,f,d){var h,g=s(c),v=a(g.length),y=l(d,v);if(u&&f!=f){for(;v>y;)if((h=g[y++])!=h)return!0}else for(;v>y;y++)if((u||y in g)&&g[y]===f)return u||y||0;return!u&&-1}}},function(n,o,i){var s=i(21),a=Math.min;n.exports=function(l){return l>0?a(s(l),9007199254740991):0}},function(n,o,i){var s=i(21),a=Math.max,l=Math.min;n.exports=function(u,c){return(u=s(u))<0?a(u+c,0):l(u,c)}},function(n,o,i){var s=i(3).document;n.exports=s&&s.documentElement},function(n,o,i){var s=i(5),a=i(18),l=i(25)("IE_PROTO"),u=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=a(c),s(c,l)?c[l]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?u:null}},function(n,o,i){var s=i(63),a=i(64),l=i(12),u=i(9);n.exports=i(34)(Array,"Array",function(c,f){this._t=u(c),this._i=0,this._k=f},function(){var c=this._t,f=this._k,d=this._i++;return!c||d>=c.length?(this._t=void 0,a(1)):a(0,f=="keys"?d:f=="values"?c[d]:[d,c[d]])},"values"),l.Arguments=l.Array,s("keys"),s("values"),s("entries")},function(n,o){n.exports=function(){}},function(n,o){n.exports=function(i,s){return{value:s,done:!!i}}},function(n,o,i){n.exports={default:i(66),__esModule:!0}},function(n,o,i){i(67),i(73),i(74),i(75),n.exports=i(1).Symbol},function(n,o,i){var s=i(3),a=i(5),l=i(4),u=i(15),c=i(37),f=i(68).KEY,d=i(8),h=i(26),g=i(28),v=i(17),y=i(2),E=i(30),_=i(31),S=i(69),b=i(70),k=i(10),T=i(11),x=i(18),I=i(9),C=i(23),R=i(16),D=i(38),L=i(71),M=i(72),W=i(32),z=i(7),F=i(13),P=M.f,K=z.f,V=L.f,Z=s.Symbol,J=s.JSON,ee=J&&J.stringify,de=y("_hidden"),ge=y("toPrimitive"),Se={}.propertyIsEnumerable,Re=h("symbol-registry"),ve=h("symbols"),Ee=h("op-symbols"),me=Object.prototype,we=typeof Z=="function"&&!!W.f,Ge=s.QObject,nt=!Ge||!Ge.prototype||!Ge.prototype.findChild,Qe=l&&d(function(){return D(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a!=7})?function(se,pe,Oe){var je=P(me,pe);je&&delete me[pe],K(se,pe,Oe),je&&se!==me&&K(me,pe,je)}:K,Ze=function(se){var pe=ve[se]=D(Z.prototype);return pe._k=se,pe},Fe=we&&typeof Z.iterator=="symbol"?function(se){return typeof se=="symbol"}:function(se){return se instanceof Z},ot=function(se,pe,Oe){return se===me&&ot(Ee,pe,Oe),k(se),pe=C(pe,!0),k(Oe),a(ve,pe)?(Oe.enumerable?(a(se,de)&&se[de][pe]&&(se[de][pe]=!1),Oe=D(Oe,{enumerable:R(0,!1)})):(a(se,de)||K(se,de,R(1,{})),se[de][pe]=!0),Qe(se,pe,Oe)):K(se,pe,Oe)},Me=function(se,pe){k(se);for(var Oe,je=S(pe=I(pe)),ke=0,Ie=je.length;Ie>ke;)ot(se,Oe=je[ke++],pe[Oe]);return se},_t=function(se){var pe=Se.call(this,se=C(se,!0));return!(this===me&&a(ve,se)&&!a(Ee,se))&&(!(pe||!a(this,se)||!a(ve,se)||a(this,de)&&this[de][se])||pe)},qt=function(se,pe){if(se=I(se),pe=C(pe,!0),se!==me||!a(ve,pe)||a(Ee,pe)){var Oe=P(se,pe);return!Oe||!a(ve,pe)||a(se,de)&&se[de][pe]||(Oe.enumerable=!0),Oe}},Nt=function(se){for(var pe,Oe=V(I(se)),je=[],ke=0;Oe.length>ke;)a(ve,pe=Oe[ke++])||pe==de||pe==f||je.push(pe);return je},ut=function(se){for(var pe,Oe=se===me,je=V(Oe?Ee:I(se)),ke=[],Ie=0;je.length>Ie;)!a(ve,pe=je[Ie++])||Oe&&!a(me,pe)||ke.push(ve[pe]);return ke};we||(c((Z=function(){if(this instanceof Z)throw TypeError("Symbol is not a constructor!");var se=v(arguments.length>0?arguments[0]:void 0),pe=function(Oe){this===me&&pe.call(Ee,Oe),a(this,de)&&a(this[de],se)&&(this[de][se]=!1),Qe(this,se,R(1,Oe))};return l&&nt&&Qe(me,se,{configurable:!0,set:pe}),Ze(se)}).prototype,"toString",function(){return this._k}),M.f=qt,z.f=ot,i(41).f=L.f=Nt,i(19).f=_t,W.f=ut,l&&!i(14)&&c(me,"propertyIsEnumerable",_t,!0),E.f=function(se){return Ze(y(se))}),u(u.G+u.W+u.F*!we,{Symbol:Z});for(var xe="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Ve=0;xe.length>Ve;)y(xe[Ve++]);for(var Xt=F(y.store),he=0;Xt.length>he;)_(Xt[he++]);u(u.S+u.F*!we,"Symbol",{for:function(se){return a(Re,se+="")?Re[se]:Re[se]=Z(se)},keyFor:function(se){if(!Fe(se))throw TypeError(se+" is not a symbol!");for(var pe in Re)if(Re[pe]===se)return pe},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),u(u.S+u.F*!we,"Object",{create:function(se,pe){return pe===void 0?D(se):Me(D(se),pe)},defineProperty:ot,defineProperties:Me,getOwnPropertyDescriptor:qt,getOwnPropertyNames:Nt,getOwnPropertySymbols:ut});var le=d(function(){W.f(1)});u(u.S+u.F*le,"Object",{getOwnPropertySymbols:function(se){return W.f(x(se))}}),J&&u(u.S+u.F*(!we||d(function(){var se=Z();return ee([se])!="[null]"||ee({a:se})!="{}"||ee(Object(se))!="{}"})),"JSON",{stringify:function(se){for(var pe,Oe,je=[se],ke=1;arguments.length>ke;)je.push(arguments[ke++]);if(Oe=pe=je[1],(T(pe)||se!==void 0)&&!Fe(se))return b(pe)||(pe=function(Ie,$e){if(typeof Oe=="function"&&($e=Oe.call(this,Ie,$e)),!Fe($e))return $e}),je[1]=pe,ee.apply(J,je)}}),Z.prototype[ge]||i(6)(Z.prototype,ge,Z.prototype.valueOf),g(Z,"Symbol"),g(Math,"Math",!0),g(s.JSON,"JSON",!0)},function(n,o,i){var s=i(17)("meta"),a=i(11),l=i(5),u=i(7).f,c=0,f=Object.isExtensible||function(){return!0},d=!i(8)(function(){return f(Object.preventExtensions({}))}),h=function(v){u(v,s,{value:{i:"O"+ ++c,w:{}}})},g=n.exports={KEY:s,NEED:!1,fastKey:function(v,y){if(!a(v))return typeof v=="symbol"?v:(typeof v=="string"?"S":"P")+v;if(!l(v,s)){if(!f(v))return"F";if(!y)return"E";h(v)}return v[s].i},getWeak:function(v,y){if(!l(v,s)){if(!f(v))return!0;if(!y)return!1;h(v)}return v[s].w},onFreeze:function(v){return d&&g.NEED&&f(v)&&!l(v,s)&&h(v),v}}},function(n,o,i){var s=i(13),a=i(32),l=i(19);n.exports=function(u){var c=s(u),f=a.f;if(f)for(var d,h=f(u),g=l.f,v=0;h.length>v;)g.call(u,d=h[v++])&&c.push(d);return c}},function(n,o,i){var s=i(24);n.exports=Array.isArray||function(a){return s(a)=="Array"}},function(n,o,i){var s=i(9),a=i(41).f,l={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(c){return u&&l.call(c)=="[object Window]"?function(f){try{return a(f)}catch{return u.slice()}}(c):a(s(c))}},function(n,o,i){var s=i(19),a=i(16),l=i(9),u=i(23),c=i(5),f=i(35),d=Object.getOwnPropertyDescriptor;o.f=i(4)?d:function(h,g){if(h=l(h),g=u(g,!0),f)try{return d(h,g)}catch{}if(c(h,g))return a(!s.f.call(h,g),h[g])}},function(n,o){},function(n,o,i){i(31)("asyncIterator")},function(n,o,i){i(31)("observable")},function(n,o,i){o.__esModule=!0;var s,a=i(77),l=(s=a)&&s.__esModule?s:{default:s};o.default=l.default||function(u){for(var c=1;cE;)for(var b,k=f(arguments[E++]),T=_?a(k).concat(_(k)):a(k),x=T.length,I=0;x>I;)b=T[I++],s&&!S.call(k,b)||(v[b]=k[b]);return v}:d},function(n,o,i){o.__esModule=!0;var s=l(i(82)),a=l(i(85));function l(u){return u&&u.__esModule?u:{default:u}}o.default=function(u,c){if(Array.isArray(u))return u;if((0,s.default)(Object(u)))return function(f,d){var h=[],g=!0,v=!1,y=void 0;try{for(var E,_=(0,a.default)(f);!(g=(E=_.next()).done)&&(h.push(E.value),!d||h.length!==d);g=!0);}catch(S){v=!0,y=S}finally{try{!g&&_.return&&_.return()}finally{if(v)throw y}}return h}(u,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,o,i){n.exports={default:i(83),__esModule:!0}},function(n,o,i){i(29),i(20),n.exports=i(84)},function(n,o,i){var s=i(42),a=i(2)("iterator"),l=i(12);n.exports=i(1).isIterable=function(u){var c=Object(u);return c[a]!==void 0||"@@iterator"in c||l.hasOwnProperty(s(c))}},function(n,o,i){n.exports={default:i(86),__esModule:!0}},function(n,o,i){i(29),i(20),n.exports=i(87)},function(n,o,i){var s=i(10),a=i(88);n.exports=i(1).getIterator=function(l){var u=a(l);if(typeof u!="function")throw TypeError(l+" is not iterable!");return s(u.call(l))}},function(n,o,i){var s=i(42),a=i(2)("iterator"),l=i(12);n.exports=i(1).getIteratorMethod=function(u){if(u!=null)return u[a]||u["@@iterator"]||l[s(u)]}},function(n,o,i){n.exports={default:i(90),__esModule:!0}},function(n,o,i){i(91),n.exports=i(1).Object.keys},function(n,o,i){var s=i(18),a=i(13);i(92)("keys",function(){return function(l){return a(s(l))}})},function(n,o,i){var s=i(15),a=i(1),l=i(8);n.exports=function(u,c){var f=(a.Object||{})[u]||Object[u],d={};d[u]=c(f),s(s.S+s.F*l(function(){f(1)}),"Object",d)}},function(n,o,i){(function(s){var a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l=/^\s+|\s+$/g,u=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,f=/,? & /,d=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,g=/^\[object .+?Constructor\]$/,v=/^0o[0-7]+$/i,y=/^(?:0|[1-9]\d*)$/,E=parseInt,_=typeof s=="object"&&s&&s.Object===Object&&s,S=typeof self=="object"&&self&&self.Object===Object&&self,b=_||S||Function("return this")();function k(he,le,se){switch(se.length){case 0:return he.call(le);case 1:return he.call(le,se[0]);case 2:return he.call(le,se[0],se[1]);case 3:return he.call(le,se[0],se[1],se[2])}return he.apply(le,se)}function T(he,le){return!!(he&&he.length)&&function(se,pe,Oe){if(pe!=pe)return function(Ie,$e,lt,mt){for(var Rt=Ie.length,dr=lt+(mt?1:-1);mt?dr--:++dr-1}function x(he){return he!=he}function I(he,le){for(var se=he.length,pe=0;se--;)he[se]===le&&pe++;return pe}function C(he,le){for(var se=-1,pe=he.length,Oe=0,je=[];++se2?D:void 0);function Se(he){return xe(he)?J(he):{}}function Re(he){return!(!xe(he)||function(le){return!!F&&F in le}(he))&&(function(le){var se=xe(le)?V.call(le):"";return se=="[object Function]"||se=="[object GeneratorFunction]"}(he)||function(le){var se=!1;if(le!=null&&typeof le.toString!="function")try{se=!!(le+"")}catch{}return se}(he)?Z:g).test(function(le){if(le!=null){try{return P.call(le)}catch{}try{return le+""}catch{}}return""}(he))}function ve(he,le,se,pe){for(var Oe=-1,je=he.length,ke=se.length,Ie=-1,$e=le.length,lt=ee(je-ke,0),mt=Array($e+lt),Rt=!pe;++Ie<$e;)mt[Ie]=le[Ie];for(;++Oe1&&Ot.reverse(),mt&&$e1?"& ":"")+le[pe],le=le.join(se>2?", ":" "),he.replace(u,`{ +***************************************************************************** */var tb=function(){return tb=Object.assign||function(t){for(var r,n=1,o=arguments.length;n"u"?qm.none:qm.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=(n=r==null?void 0:r.classNameToArgs)!==null&&n!==void 0?n:this._classNameToArgs,this._counter=(o=r==null?void 0:r.counter)!==null&&o!==void 0?o:this._counter,this._keyToClassName=(s=(i=this._config.classNameCache)!==null&&i!==void 0?i:r==null?void 0:r.keyToClassName)!==null&&s!==void 0?s:this._keyToClassName,this._preservedRules=(a=r==null?void 0:r.preservedRules)!==null&&a!==void 0?a:this._preservedRules,this._rules=(l=r==null?void 0:r.rules)!==null&&l!==void 0?l:this._rules}return e.getInstance=function(){if(e0=v0[eee],!e0||e0._lastStyleElement&&e0._lastStyleElement.ownerDocument!==document){var t=(v0==null?void 0:v0.FabricConfig)||{},r=new e(t.mergeStyles,t.serializedStylesheet);e0=r,v0[eee]=r}return e0},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(t){this._config=tb(tb({},this._config),t)},e.prototype.onReset=function(t){var r=this;return this._onResetCallbacks.push(t),function(){r._onResetCallbacks=r._onResetCallbacks.filter(function(n){return n!==t})}},e.prototype.onInsertRule=function(t){var r=this;return this._onInsertRuleCallbacks.push(t),function(){r._onInsertRuleCallbacks=r._onInsertRuleCallbacks.filter(function(n){return n!==t})}},e.prototype.getClassName=function(t){var r=this._config.namespace,n=t||this._config.defaultPrefix;return(r?r+"-":"")+n+"-"+this._counter++},e.prototype.cacheClassName=function(t,r,n,o){this._keyToClassName[r]=t,this._classNameToArgs[t]={args:n,rules:o}},e.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.args},e.prototype.insertedRulesFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.rules},e.prototype.insertRule=function(t,r){var n=this._config.injectionMode,o=n!==qm.none?this._getStyleElement():void 0;if(r&&this._preservedRules.push(t),o)switch(n){case qm.insertNode:var i=o.sheet;try{i.insertRule(t,i.cssRules.length)}catch{}break;case qm.appendChild:o.appendChild(document.createTextNode(t));break}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach(function(s){return s()})},e.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(t){return t()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var t=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),Snt||window.requestAnimationFrame(function(){t._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var t=document.head,r=document.createElement("style"),n=null;r.setAttribute("data-merge-styles","true");var o=this._config.cspSettings;if(o&&o.nonce&&r.setAttribute("nonce",o.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();i?n=i.nextElementSibling:n=t.childNodes[0]}return t.insertBefore(r,t.contains(n)?n:null),this._lastStyleElement=r,r},e.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},e}();function wnt(){for(var e=[],t=0;t=0)i(u.split(" "));else{var c=o.argsFromClassName(u);c?i(c):r.indexOf(u)===-1&&r.push(u)}else Array.isArray(u)?i(u):typeof u=="object"&&n.push(u)}}return i(e),{classes:r,objects:n}}function ghe(){return $k===void 0&&($k=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),$k}var $k;$k=ghe();function knt(){return{rtl:ghe()}}var tee={};function Ant(e,t){var r=e[t];r.charAt(0)!=="-"&&(e[t]=tee[r]=tee[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase())}var Lw;function xnt(){var e;if(!Lw){var t=typeof document<"u"?document:void 0,r=typeof navigator<"u"?navigator:void 0,n=(e=r==null?void 0:r.userAgent)===null||e===void 0?void 0:e.toLowerCase();t?Lw={isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!!(r&&(/rv:11.0/i.test(r.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:Lw={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return Lw}var ree={"user-select":1};function Tnt(e,t){var r=xnt(),n=e[t];if(ree[n]){var o=e[t+1];ree[n]&&(r.isWebkit&&e.push("-webkit-"+n,o),r.isMoz&&e.push("-moz-"+n,o),r.isMs&&e.push("-ms-"+n,o),r.isOpera&&e.push("-o-"+n,o))}}var Int=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function Cnt(e,t){var r=e[t],n=e[t+1];if(typeof n=="number"){var o=Int.indexOf(r)>-1,i=r.indexOf("--")>-1,s=o||i?"":"px";e[t+1]=""+n+s}}var jw,Td="left",Id="right",Nnt="@noflip",nee=(jw={},jw[Td]=Id,jw[Id]=Td,jw),oee={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Rnt(e,t,r){if(e.rtl){var n=t[r];if(!n)return;var o=t[r+1];if(typeof o=="string"&&o.indexOf(Nnt)>=0)t[r+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(n.indexOf(Td)>=0)t[r]=n.replace(Td,Id);else if(n.indexOf(Id)>=0)t[r]=n.replace(Id,Td);else if(String(o).indexOf(Td)>=0)t[r+1]=o.replace(Td,Id);else if(String(o).indexOf(Id)>=0)t[r+1]=o.replace(Id,Td);else if(nee[n])t[r]=nee[n];else if(oee[o])t[r+1]=oee[o];else switch(n){case"margin":case"padding":t[r+1]=Dnt(o);break;case"box-shadow":t[r+1]=Ont(o,0);break}}}function Ont(e,t){var r=e.split(" "),n=parseInt(r[t],10);return r[0]=r[0].replace(String(n),String(n*-1)),r.join(" ")}function Dnt(e){if(typeof e=="string"){var t=e.split(" ");if(t.length===4)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}function Fnt(e){for(var t=[],r=0,n=0,o=0;or&&t.push(e.substring(r,o)),r=o+1);break}return r-1&&t.push([n.index,n.index+n[0].length,n[1].split(",").map(function(o){return":global("+o.trim()+")"}).join(", ")]);return t.reverse().reduce(function(o,i){var s=i[0],a=i[1],l=i[2],u=o.slice(0,s),c=o.slice(a);return u+l+c},e)}function iee(e,t){return e.indexOf(":global(")>=0?e.replace(vhe,"$1"):e.indexOf(":")===0?t+e:e.indexOf("&")<0?t+" "+e:e}function see(e,t,r,n){t===void 0&&(t={__order:[]}),r.indexOf("@")===0?(r=r+"{"+e,dg([n],t,r)):r.indexOf(",")>-1?Lnt(r).split(",").map(function(o){return o.trim()}).forEach(function(o){return dg([n],t,iee(o,e))}):dg([n],t,iee(r,e))}function dg(e,t,r){t===void 0&&(t={__order:[]}),r===void 0&&(r="&");var n=n5.getInstance(),o=t[r];o||(o={},t[r]=o,t.__order.push(r));for(var i=0,s=e;i"u")){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r==="top"&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var Knt=".root_ce9fd48c{margin:0;padding:0}.item_34141342{list-style:none}.content_6abc12be{display:flex;align-items:center}.content_6abc12be:hover{cursor:pointer;background-color:#f3f2f1}.icon_aaa0d589{border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid #8a8886;margin:0 11px 0 3px}.expanded_6233c4e1{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #8a8886;margin:3px 8px 0 0}.leaf_f2922997{border:6px solid transparent;margin:0 8px 0 0}.group_7e2ac704,.inner_683a43d6{padding:0;margin:0}",vd={root:"root_ce9fd48c",item:"item_34141342",content:"content_6abc12be",icon:"icon_aaa0d589",expanded:"expanded_6233c4e1",leaf:"leaf_f2922997",group:"group_7e2ac704",inner:"inner_683a43d6"};Gnt(Knt);var Vnt=function(e){return{root:m0(vd.root,e==null?void 0:e.root)}},Unt=function(e,t){var r,n,o;return{item:m0(vd.item,t==null?void 0:t.item),icon:m0(vd.icon,e.expanded&&vd.expanded,e.isLeaf&&vd.leaf),group:m0(vd.group,t==null?void 0:t.group),inner:m0(vd.inner,t==null?void 0:t.inner),content:m0(vd.content,(r=t==null?void 0:t.content)===null||r===void 0?void 0:r.base,e.expanded&&((n=t==null?void 0:t.content)===null||n===void 0?void 0:n.expand),e.isLeaf&&((o=t==null?void 0:t.content)===null||o===void 0?void 0:o.leaf))}},yhe=A.forwardRef(function(e,t){var r,n,o,i,s,a,l,u,c=e.node,f=e.classes,d=e.indent,h=e.calcIndent,g=e.onNodeClick,v=e.renderIcon,y=e.renderContent,E=e.renderInnerContent,_=!c.isLeaf&&c.expanded,S=Unt(c,f),b=h?h(c):{item:(c.level-1)*((r=d==null?void 0:d.item)!==null&&r!==void 0?r:20)+((n=d==null?void 0:d.root)!==null&&n!==void 0?n:0),innerItem:c.level*((o=d==null?void 0:d.item)!==null&&o!==void 0?o:20)+((i=d==null?void 0:d.root)!==null&&i!==void 0?i:0)},k=A.useCallback(function(T){T.preventDefault(),T.stopPropagation()},[]);return A.createElement("div",{key:c.id,role:"treeitem","aria-selected":c.selected,"aria-expanded":c.expanded,tabIndex:-1,className:S.item,onClick:g.bind(null,c),"data-item-id":c.id,ref:t},A.createElement("div",{className:S.content,style:{paddingLeft:(s=b.item)!==null&&s!==void 0?s:20}},(a=v==null?void 0:v(c))!==null&&a!==void 0?a:A.createElement("span",{className:S.icon}),(l=y==null?void 0:y(c))!==null&&l!==void 0?l:A.createElement("span",{role:"button"},c.title)),_&&A.createElement(A.Fragment,null,E&&A.createElement("div",{role:"group",key:"innerContent",className:S.inner,style:{paddingLeft:(u=b.innerItem)!==null&&u!==void 0?u:40},onClick:k},E(c))))});yhe.displayName="TreeNode";var Ynt=A.forwardRef(function(e,t){var r=e.selectedKeys,n=r===void 0?[]:r,o=e.expandedKeys,i=o===void 0?[]:o,s=e.treeData,a=e.classes,l=e.indent,u=e.height,c=e.itemHeight,f=e.virtual,d=e.calcIndent,h=e.onKeyDown,g=e.renderIcon,v=e.renderContent,y=e.renderInnerContent,E=e.onSelect,_=e.multiple,S=e.onExpand,b=e.loadData,k=A.useState({loadedKeys:[],loadingKeys:[]}),T=k[0],x=k[1],I=A.useRef(null),C=A.useRef(null),R=A.useMemo(function(){return JJ.init(s,n,i,T)},[s,n,i,T]);A.useImperativeHandle(t,function(){return{scrollTo:function(Z){var J;(J=C.current)===null||J===void 0||J.scrollTo(Z)}}}),A.useEffect(function(){W(0)},[]);var D=function(Z,J){var ee=n,de=J.id,ge=!J.selected;ge?_?ee=Mw(ee,de):ee=[de]:ee=w3(ee,de),E==null||E(ee,{node:J,selected:ge,nativeEvent:Z})},L=function(Z,J){var ee=i,de=J.id,ge=!J.expanded;ge?ee=Mw(ee,de):ee=w3(ee,de),S==null||S(ee,{node:J,expanded:ge,nativeEvent:Z}),ge&&b&&M(J)},M=function(Z){x(function(J){var ee=J.loadedKeys,de=J.loadingKeys,ge=Z.id;if(!b||ee.includes(ge)||de.includes(ge))return T;var Se=b(Z);return Se.then(function(){var Re=T.loadedKeys,ve=T.loadingKeys,Ee=Mw(Re,ge),me=w3(ve,ge);x({loadedKeys:Ee,loadingKeys:me})}),{loadedKeys:ee,loadingKeys:Mw(de,ge)}})},W=function(Z){var J,ee,de=Array.from((ee=(J=I.current)===null||J===void 0?void 0:J.querySelectorAll("div[role='treeitem']"))!==null&&ee!==void 0?ee:[]);de.forEach(function(ge,Se){Se===Z?ge.setAttribute("tabindex","0"):ge.setAttribute("tabindex","-1")})},z=function(Z){var J,ee,de;Z.stopPropagation();var ge=Z.target;if(ge.getAttribute("role")!=="treeitem"||Z.ctrlKey||Z.metaKey)return-1;var Se=Array.from((ee=(J=I.current)===null||J===void 0?void 0:J.querySelectorAll("div[role='treeitem']"))!==null&&ee!==void 0?ee:[]),Re=Se.indexOf(ge),ve=Z.keyCode>=65&&Z.keyCode<=90;if(ve){var Ee=-1,me=Se.findIndex(function(nt,Qe){var Ze=nt.getAttribute("data-item-id"),Fe=JJ.nodesMap.get(Ze??""),ot=Fe==null?void 0:Fe.searchKeys.some(function(Me){return Me.match(new RegExp("^"+Z.key,"i"))});return ot&&Qe>Re?!0:(ot&&Qe<=Re&&(Ee=Ee===-1?Qe:Ee),!1)}),we=me===-1?Ee:me;return(de=Se[we])===null||de===void 0||de.focus(),we}switch(Z.key){case"ArrowDown":{var Ge=(Re+1)%Se.length;return Se[Ge].focus(),Ge}case"ArrowUp":{var Ge=(Re-1+Se.length)%Se.length;return Se[Ge].focus(),Ge}case"ArrowLeft":case"ArrowRight":return ge.click(),Re;case"Home":return Se[0].focus(),0;case"End":return Se[Se.length-1].focus(),Se.length-1;default:return h==null||h(Z),Re}},F=function(Z){var J=z(Z);J>-1&&W(J)},P=function(Z,J){J.stopPropagation(),D(J,Z),!(Z.loading||Z.loaded&&Z.isLeaf)&&L(J,Z)},K=Vnt(a),V=function(Z){return Z.id};return A.createElement("div",{role:"tree",className:K.root,onKeyDown:F,ref:I},A.createElement(phe,{data:R,itemKey:V,height:u,fullHeight:!1,virtual:f,itemHeight:c,ref:C},function(Z){return A.createElement(yhe,{key:Z.id,node:Z,classes:a,indent:l,calcIndent:d,renderIcon:g,renderContent:v,renderInnerContent:y,onNodeClick:P})}))});Ynt.displayName="ReactAccessibleTree";var Xnt=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),bo=function(){return bo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r"u"?void 0:Number(n),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof i>"u"?void 0:Number(i),minHeight:typeof s>"u"?void 0:Number(s)}},not=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],fee="__resizable_base__",bhe=function(e){Jnt(t,e);function t(r){var n=e.call(this,r)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var o=n.parentNode;if(!o)return null;var i=n.window.document.createElement("div");return i.style.width="100%",i.style.height="100%",i.style.position="absolute",i.style.transform="scale(0, 0)",i.style.left="0",i.style.flex="0 0 100%",i.classList?i.classList.add(fee):i.className+=fee,o.appendChild(i),i},n.removeBase=function(o){var i=n.parentNode;i&&i.removeChild(o)},n.ref=function(o){o&&(n.resizable=o)},n.state={isResizing:!1,width:typeof(n.propsSize&&n.propsSize.width)>"u"?"auto":n.propsSize&&n.propsSize.width,height:typeof(n.propsSize&&n.propsSize.height)>"u"?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||eot},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,i=this.resizable.offsetHeight,s=this.resizable.style.position;s!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:i,this.resizable.style.position=s}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,o=function(a){if(typeof r.state[a]>"u"||r.state[a]==="auto")return"auto";if(r.propsSize&&r.propsSize[a]&&r.propsSize[a].toString().endsWith("%")){if(r.state[a].toString().endsWith("%"))return r.state[a].toString();var l=r.getParentSize(),u=Number(r.state[a].toString().replace("px","")),c=u/l[a]*100;return c+"%"}return A3(r.state[a])},i=n&&typeof n.width<"u"&&!this.state.isResizing?A3(n.width):o("width"),s=n&&typeof n.height<"u"&&!this.state.isResizing?A3(n.height):o("height");return{width:i,height:s}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var i={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=o),this.removeBase(r),i},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var o=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof o>"u"||o==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var o=this.props.boundsByDirection,i=this.state.direction,s=o&&t0("left",i),a=o&&t0("top",i),l,u;if(this.props.bounds==="parent"){var c=this.parentNode;c&&(l=s?this.resizableRight-this.parentLeft:c.offsetWidth+(this.parentLeft-this.resizableLeft),u=a?this.resizableBottom-this.parentTop:c.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,u=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),u=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(r=r&&r"u"?10:i.width,f=typeof o.width>"u"||o.width<0?r:o.width,d=typeof i.height>"u"?10:i.height,h=typeof o.height>"u"||o.height<0?n:o.height,g=l||0,v=u||0;if(a){var y=(d-g)*this.ratio+v,E=(h-g)*this.ratio+v,_=(c-v)/this.ratio+g,S=(f-v)/this.ratio+g,b=Math.max(c,y),k=Math.min(f,E),T=Math.max(d,_),x=Math.min(h,S);r=Hw(r,b,k),n=Hw(n,T,x)}else r=Hw(r,c,f),n=Hw(n,d,h);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var r=this.parentNode;if(r){var n=r.getBoundingClientRect();this.parentLeft=n.left,this.parentTop=n.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left,this.targetTop=o.top}if(this.resizable){var i=this.resizable.getBoundingClientRect(),s=i.left,a=i.top,l=i.right,u=i.bottom;this.resizableLeft=s,this.resizableRight=l,this.resizableTop=a,this.resizableBottom=u}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var o=0,i=0;if(r.nativeEvent&&tot(r.nativeEvent)?(o=r.nativeEvent.clientX,i=r.nativeEvent.clientY):r.nativeEvent&&$w(r.nativeEvent)&&(o=r.nativeEvent.touches[0].clientX,i=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var s=this.props.onResizeStart(r,n,this.resizable);if(s===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var a,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var u=this.parentNode;if(u){var c=this.window.getComputedStyle(u).flexDirection;this.flexDir=c.startsWith("row")?"row":"column",a=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var f={original:{x:o,y:i,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Hu(Hu({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:a};this.setState(f)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&$w(r))try{r.preventDefault(),r.stopPropagation()}catch{}var o=this.props,i=o.maxWidth,s=o.maxHeight,a=o.minWidth,l=o.minHeight,u=$w(r)?r.touches[0].clientX:r.clientX,c=$w(r)?r.touches[0].clientY:r.clientY,f=this.state,d=f.direction,h=f.original,g=f.width,v=f.height,y=this.getParentSize(),E=rot(y,this.window.innerWidth,this.window.innerHeight,i,s,a,l);i=E.maxWidth,s=E.maxHeight,a=E.minWidth,l=E.minHeight;var _=this.calculateNewSizeFromDirection(u,c),S=_.newHeight,b=_.newWidth,k=this.calculateNewMaxFromBoundary(i,s);this.props.snap&&this.props.snap.x&&(b=cee(b,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(S=cee(S,this.props.snap.y,this.props.snapGap));var T=this.calculateNewSizeFromAspectRatio(b,S,{width:k.maxWidth,height:k.maxHeight},{width:a,height:l});if(b=T.newWidth,S=T.newHeight,this.props.grid){var x=uee(b,this.props.grid[0]),I=uee(S,this.props.grid[1]),C=this.props.snapGap||0;b=C===0||Math.abs(x-b)<=C?x:b,S=C===0||Math.abs(I-S)<=C?I:S}var R={width:b-h.width,height:S-h.height};if(g&&typeof g=="string"){if(g.endsWith("%")){var D=b/y.width*100;b=D+"%"}else if(g.endsWith("vw")){var L=b/this.window.innerWidth*100;b=L+"vw"}else if(g.endsWith("vh")){var M=b/this.window.innerHeight*100;b=M+"vh"}}if(v&&typeof v=="string"){if(v.endsWith("%")){var D=S/y.height*100;S=D+"%"}else if(v.endsWith("vw")){var L=S/this.window.innerWidth*100;S=L+"vw"}else if(v.endsWith("vh")){var M=S/this.window.innerHeight*100;S=M+"vh"}}var W={width:this.createSizeForCssProperty(b,"width"),height:this.createSizeForCssProperty(S,"height")};this.flexDir==="row"?W.flexBasis=W.width:this.flexDir==="column"&&(W.flexBasis=W.height),pi.flushSync(function(){n.setState(W)}),this.props.onResize&&this.props.onResize(r,d,this.resizable,R)}},t.prototype.onMouseUp=function(r){var n=this.state,o=n.isResizing,i=n.direction,s=n.original;if(!(!o||!this.resizable)){var a={width:this.size.width-s.width,height:this.size.height-s.height};this.props.onResizeStop&&this.props.onResizeStop(r,i,this.resizable,a),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Hu(Hu({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(r){this.setState({width:r.width,height:r.height})},t.prototype.renderResizer=function(){var r=this,n=this.props,o=n.enable,i=n.handleStyles,s=n.handleClasses,a=n.handleWrapperStyle,l=n.handleWrapperClass,u=n.handleComponent;if(!o)return null;var c=Object.keys(o).map(function(f){return o[f]!==!1?A.createElement(Znt,{key:f,direction:f,onResizeStart:r.onResizeStart,replaceStyles:i&&i[f],className:s&&s[f]},u&&u[f]?u[f]:null):null});return A.createElement("div",{className:l,style:a},c)},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(s,a){return not.indexOf(a)!==-1||(s[a]=r.props[a]),s},{}),o=Hu(Hu(Hu({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var i=this.props.as||"div";return A.createElement(i,Hu({ref:this.ref,style:o,className:this.props.className},n),this.state.isResizing&&A.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(A.PureComponent);function _he(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t1&&(!e.frozen||e.idx+n-1<=t))return n}function oot(e){e.stopPropagation()}function Pk(e){e==null||e.scrollIntoView({inline:"nearest",block:"nearest"})}function rb(e){let t=!1;const r={...e,preventGridDefault(){t=!0},isGridDefaultPrevented(){return t}};return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),r}const iot=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function dee(e){return(e.ctrlKey||e.metaKey)&&e.key!=="Control"}function sot(e){return!iot.has(e.key)}function aot({key:e,target:t}){var r;return e==="Tab"&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)?((r=t.closest(".rdg-editor-container"))==null?void 0:r.querySelectorAll("input, textarea, select").length)===1:!1}const lot="m1l09lto7-0-0-beta-39";function uot(e){return e.map(({key:t,idx:r,minWidth:n,maxWidth:o})=>N.jsx("div",{className:lot,style:{gridColumnStart:r+1,minWidth:n,maxWidth:o},"data-measuring-cell-key":t},t))}function cot({selectedPosition:e,columns:t,rows:r}){const n=t[e.idx],o=r[e.rowIdx];return Ehe(n,o)}function Ehe(e,t){return e.renderEditCell!=null&&(typeof e.editable=="function"?e.editable(t):e.editable)!==!1}function fot({rows:e,topSummaryRows:t,bottomSummaryRows:r,rowIdx:n,mainHeaderRowIdx:o,lastFrozenColumnIndex:i,column:s}){const a=(t==null?void 0:t.length)??0;if(n===o)return dl(s,i,{type:"HEADER"});if(t&&n>o&&n<=a+o)return dl(s,i,{type:"SUMMARY",row:t[n+a]});if(n>=0&&n{for(const x of o){const I=x.idx;if(I>y)break;const C=fot({rows:i,topSummaryRows:s,bottomSummaryRows:a,rowIdx:E,mainHeaderRowIdx:u,lastFrozenColumnIndex:g,column:x});if(C&&y>I&&yT.level+u,k=()=>{if(t){let x=n[y].parent;for(;x!==void 0;){const I=b(x);if(E===I){y=x.idx+x.colSpan;break}x=x.parent}}else if(e){let x=n[y].parent,I=!1;for(;x!==void 0;){const C=b(x);if(E>=C){y=x.idx,E=C,I=!0;break}x=x.parent}I||(y=f,E=d)}};if(v(h)&&(S(t),E=I&&(E=C,y=x.idx),x=x.parent}}return{idx:y,rowIdx:E}}function hot({maxColIdx:e,minRowIdx:t,maxRowIdx:r,selectedPosition:{rowIdx:n,idx:o},shiftKey:i}){return i?o===0&&n===t:o===e&&n===r}const pot="c1wupbe7-0-0-beta-39",She=`rdg-cell ${pot}`,got="cd0kgiy7-0-0-beta-39",vot=`rdg-cell-frozen ${got}`,mot="c1730fa47-0-0-beta-39",yot=`rdg-cell-frozen-last ${mot}`;function whe(e,t){return t!==void 0?{"--rdg-grid-row-start":e,"--rdg-row-height":`${t}px`}:{"--rdg-grid-row-start":e}}function khe(e,t,r){const n=t+1,o=`calc(${r-1} * var(--rdg-header-row-height))`;return e.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:n,paddingBlockStart:o}:{insetBlockStart:`calc(${t-r} * var(--rdg-header-row-height))`,gridRowStart:n-r,gridRowEnd:n,paddingBlockStart:o}}function wE(e,t=1){const r=e.idx+1;return{gridColumnStart:r,gridColumnEnd:r+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function o5(e,...t){return Bf(She,...t,e.frozen&&vot,e.isLastFrozenColumn&&yot)}const{min:u_,max:px,round:N_t,floor:hee,sign:bot,abs:_ot}=Math;function pee(e){if(typeof e!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function Ahe(e,{minWidth:t,maxWidth:r}){return e=px(e,t),typeof r=="number"&&r>=t?u_(e,r):e}function xhe(e,t){return e.parent===void 0?t:e.level-e.parent.level}const Eot="c1hs68w07-0-0-beta-39",Sot=`rdg-checkbox-label ${Eot}`,wot="cojpd0n7-0-0-beta-39",kot=`rdg-checkbox-input ${wot}`,Aot="cwsfieb7-0-0-beta-39",xot=`rdg-checkbox ${Aot}`,Tot="c1fgadbl7-0-0-beta-39",Iot=`rdg-checkbox-label-disabled ${Tot}`;function Cot({onChange:e,...t}){function r(n){e(n.target.checked,n.nativeEvent.shiftKey)}return N.jsxs("label",{className:Bf(Sot,t.disabled&&Iot),children:[N.jsx("input",{type:"checkbox",...t,className:kot,onChange:r}),N.jsx("div",{className:xot})]})}function Not(e){try{return e.row[e.column.key]}catch{return null}}const The=A.createContext(void 0),Rot=The.Provider;function Ihe(){return A.useContext(The)}const Oot=A.createContext(void 0),Che=Oot.Provider,Dot=A.createContext(void 0),Fot=Dot.Provider,gee="select-row",Bot="auto",Mot=50;function Lot({rawColumns:e,defaultColumnOptions:t,measuredColumnWidths:r,resizedColumnWidths:n,viewportWidth:o,scrollLeft:i,enableVirtualization:s}){const a=(t==null?void 0:t.width)??Bot,l=(t==null?void 0:t.minWidth)??Mot,u=(t==null?void 0:t.maxWidth)??void 0,c=(t==null?void 0:t.renderCell)??Not,f=(t==null?void 0:t.sortable)??!1,d=(t==null?void 0:t.resizable)??!1,h=(t==null?void 0:t.draggable)??!1,{columns:g,colSpanColumns:v,lastFrozenColumnIndex:y,headerRowsCount:E}=A.useMemo(()=>{let I=-1,C=1;const R=[];D(e,1);function D(M,W,z){for(const F of M){if("children"in F){const V={name:F.name,parent:z,idx:-1,colSpan:0,level:0,headerCellClass:F.headerCellClass};D(F.children,W+1,V);continue}const P=F.frozen??!1,K={...F,parent:z,idx:0,level:0,frozen:P,isLastFrozenColumn:!1,width:F.width??a,minWidth:F.minWidth??l,maxWidth:F.maxWidth??u,sortable:F.sortable??f,resizable:F.resizable??d,draggable:F.draggable??h,renderCell:F.renderCell??c};R.push(K),P&&I++,W>C&&(C=W)}}R.sort(({key:M,frozen:W},{key:z,frozen:F})=>M===gee?-1:z===gee?1:W?F?0:-1:F?1:0);const L=[];return R.forEach((M,W)=>{M.idx=W,Nhe(M,W,0),M.colSpan!=null&&L.push(M)}),I!==-1&&(R[I].isLastFrozenColumn=!0),{columns:R,colSpanColumns:L,lastFrozenColumnIndex:I,headerRowsCount:C}},[e,a,l,u,c,d,f,h]),{templateColumns:_,layoutCssVars:S,totalFrozenColumnWidth:b,columnMetrics:k}=A.useMemo(()=>{const I=new Map;let C=0,R=0;const D=[];for(const M of g){let W=n.get(M.key)??r.get(M.key)??M.width;typeof W=="number"?W=Ahe(W,M):W=M.minWidth,D.push(`${W}px`),I.set(M,{width:W,left:C}),C+=W}if(y!==-1){const M=I.get(g[y]);R=M.left+M.width}const L={};for(let M=0;M<=y;M++){const W=g[M];L[`--rdg-frozen-left-${W.idx}`]=`${I.get(W).left}px`}return{templateColumns:D,layoutCssVars:L,totalFrozenColumnWidth:R,columnMetrics:I}},[r,n,g,y]),[T,x]=A.useMemo(()=>{if(!s)return[0,g.length-1];const I=i+b,C=i+o,R=g.length-1,D=u_(y+1,R);if(I>=C)return[D,D];let L=D;for(;LI)break;L++}let M=L;for(;M=C)break;M++}const W=px(D,L-1),z=u_(R,M+1);return[W,z]},[k,g,y,i,b,o,s]);return{columns:g,colSpanColumns:v,colOverscanStartIdx:T,colOverscanEndIdx:x,templateColumns:_,layoutCssVars:S,headerRowsCount:E,lastFrozenColumnIndex:y,totalFrozenColumnWidth:b}}function Nhe(e,t,r){if(r"u"?A.useEffect:A.useLayoutEffect;function jot(e,t,r,n,o,i,s,a,l,u){const c=A.useRef(o),f=e.length===t.length,d=f&&o!==c.current,h=[...r],g=[];for(const{key:_,idx:S,width:b}of t)typeof b=="string"&&(d||!s.has(_))&&!i.has(_)&&(h[S]=b,g.push(_));const v=h.join(" ");Zg(()=>{c.current=o,y(g)});function y(_){_.length!==0&&l(S=>{const b=new Map(S);let k=!1;for(const T of _){const x=vee(n,T);k||(k=x!==S.get(T)),x===void 0?b.delete(T):b.set(T,x)}return k?b:S})}function E(_,S){const{key:b}=_,k=[...r],T=[];for(const{key:I,idx:C,width:R}of t)if(b===I){const D=typeof S=="number"?`${S}px`:S;k[C]=D}else f&&typeof R=="string"&&!i.has(I)&&(k[C]=R,T.push(I));n.current.style.gridTemplateColumns=k.join(" ");const x=typeof S=="number"?S:vee(n,b);pi.flushSync(()=>{a(I=>{const C=new Map(I);return C.set(b,x),C}),y(T)}),u==null||u(_.idx,x)}return{gridTemplateColumns:v,handleColumnResize:E}}function vee(e,t){const r=`[data-measuring-cell-key="${CSS.escape(t)}"]`,n=e.current.querySelector(r);return n==null?void 0:n.getBoundingClientRect().width}function zot(){const e=A.useRef(null),[t,r]=A.useState(1),[n,o]=A.useState(1);return Zg(()=>{const{ResizeObserver:i}=window;if(i==null)return;const{clientWidth:s,clientHeight:a,offsetWidth:l,offsetHeight:u}=e.current,{width:c,height:f}=e.current.getBoundingClientRect(),d=c-l+s,h=f-u+a;r(d),o(h);const g=new i(v=>{const y=v[0].contentBoxSize[0];pi.flushSync(()=>{r(y.inlineSize),o(y.blockSize)})});return g.observe(e.current),()=>{g.disconnect()}},[]),[e,t,n]}function Ja(e){const t=A.useRef(e);A.useEffect(()=>{t.current=e});const r=A.useCallback((...n)=>{t.current(...n)},[]);return e&&r}function i5(e){const[t,r]=A.useState(!1);t&&!e&&r(!1);function n(i){i.target!==i.currentTarget&&r(!0)}return{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?n:void 0}}function Hot({columns:e,colSpanColumns:t,rows:r,topSummaryRows:n,bottomSummaryRows:o,colOverscanStartIdx:i,colOverscanEndIdx:s,lastFrozenColumnIndex:a,rowOverscanStartIdx:l,rowOverscanEndIdx:u}){const c=A.useMemo(()=>{if(i===0)return 0;let f=i;const d=(h,g)=>g!==void 0&&h+g>i?(f=h,!0):!1;for(const h of t){const g=h.idx;if(g>=f||d(g,dl(h,a,{type:"HEADER"})))break;for(let v=l;v<=u;v++){const y=r[v];if(d(g,dl(h,a,{type:"ROW",row:y})))break}if(n!=null){for(const v of n)if(d(g,dl(h,a,{type:"SUMMARY",row:v})))break}if(o!=null){for(const v of o)if(d(g,dl(h,a,{type:"SUMMARY",row:v})))break}}return f},[l,u,r,n,o,i,a,t]);return A.useMemo(()=>{const f=[];for(let d=0;d<=s;d++){const h=e[d];d{if(typeof t=="number")return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:y=>y*t,getRowHeight:()=>t,findRowIdx:y=>hee(y/t)};let d=0,h=" ";const g=e.map(y=>{const E=t(y),_={top:d,height:E};return h+=`${E}px `,d+=E,_}),v=y=>px(0,u_(e.length-1,y));return{totalRowHeight:d,gridTemplateRows:h,getRowTop:y=>g[v(y)].top,getRowHeight:y=>g[v(y)].height,findRowIdx(y){let E=0,_=g.length-1;for(;E<=_;){const S=E+hee((_-E)/2),b=g[S].top;if(b===y)return S;if(by&&(_=S-1),E>_)return _}return 0}}},[t,e]);let c=0,f=e.length-1;if(o){const h=u(n),g=u(n+r);c=px(0,h-4),f=u_(e.length-1,g+4)}return{rowOverscanStartIdx:c,rowOverscanEndIdx:f,totalRowHeight:i,gridTemplateRows:s,getRowTop:a,getRowHeight:l,findRowIdx:u}}const Pot="cadd3bp7-0-0-beta-39",qot="ccmuez27-0-0-beta-39",Wot=`rdg-cell-drag-handle ${Pot}`;function Got({gridRowStart:e,rows:t,columns:r,selectedPosition:n,latestDraggedOverRowIdx:o,isCellEditable:i,onRowsChange:s,onFill:a,onClick:l,setDragging:u,setDraggedOverRowIdx:c}){var b;const{idx:f,rowIdx:d}=n,h=r[f];function g(k){if(k.preventDefault(),k.buttons!==1)return;u(!0),window.addEventListener("mouseover",T),window.addEventListener("mouseup",x);function T(I){I.buttons!==1&&x()}function x(){window.removeEventListener("mouseover",T),window.removeEventListener("mouseup",x),u(!1),v()}}function v(){const k=o.current;if(k===void 0)return;const T=d0&&(s==null||s(C,{indexes:R,column:x}))}const _=((b=h.colSpan)==null?void 0:b.call(h,{type:"ROW",row:t[d]}))??1,S=wE(h,_);return N.jsx("div",{style:{...S,gridRowStart:e,insetInlineStart:S.insetInlineStart&&typeof h.width=="number"?`calc(${S.insetInlineStart} + ${h.width}px - var(--rdg-drag-handle-size))`:void 0},className:Bf(Wot,h.frozen&&qot),onClick:l,onMouseDown:g,onDoubleClick:y})}const Kot="c1tngyp17-0-0-beta-39";function Vot({column:e,colSpan:t,row:r,rowIdx:n,onRowChange:o,closeEditor:i,onKeyDown:s,navigate:a}){var E,_,S;const l=A.useRef(),u=((E=e.editorOptions)==null?void 0:E.commitOnOutsideClick)!==!1,c=Ja(()=>{h(!0,!1)});A.useEffect(()=>{if(!u)return;function b(){l.current=requestAnimationFrame(c)}return addEventListener("mousedown",b,{capture:!0}),()=>{removeEventListener("mousedown",b,{capture:!0}),f()}},[u,c]);function f(){cancelAnimationFrame(l.current)}function d(b){if(s){const k=rb(b);if(s({mode:"EDIT",row:r,column:e,rowIdx:n,navigate(){a(b)},onClose:h},k),k.isGridDefaultPrevented())return}b.key==="Escape"?h():b.key==="Enter"?h(!0):aot(b)&&a(b)}function h(b=!1,k=!0){b?o(r,!0,k):i(k)}function g(b,k=!1){o(b,k,k)}const{cellClass:v}=e,y=o5(e,"rdg-editor-container",typeof v=="function"?v(r):v,!((_=e.editorOptions)!=null&&_.displayCellContent)&&Kot);return N.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:y,style:wE(e,t),onKeyDown:d,onMouseDownCapture:f,children:e.renderEditCell!=null&&N.jsxs(N.Fragment,{children:[e.renderEditCell({column:e,row:r,onRowChange:g,onClose:h}),((S=e.editorOptions)==null?void 0:S.displayCellContent)&&e.renderCell({column:e,row:r,isCellEditable:!0,tabIndex:-1,onRowChange:g})]})})}function Uot({column:e,rowIdx:t,isCellSelected:r,selectCell:n}){const{tabIndex:o,onFocus:i}=i5(r),{colSpan:s}=e,a=xhe(e,t),l=e.idx+1;function u(){n({idx:e.idx,rowIdx:t})}return N.jsx("div",{role:"columnheader","aria-colindex":l,"aria-colspan":s,"aria-rowspan":a,"aria-selected":r,tabIndex:o,className:Bf(She,e.headerCellClass),style:{...khe(e,t,a),gridColumnStart:l,gridColumnEnd:l+s},onFocus:i,onClick:u,children:e.name})}const Yot="hizp7y17-0-0-beta-39",Xot="h14cojrm7-0-0-beta-39",Qot=`rdg-header-sort-name ${Xot}`;function Zot({column:e,sortDirection:t,priority:r}){return e.sortable?N.jsx(Jot,{sortDirection:t,priority:r,children:e.name}):e.name}function Jot({sortDirection:e,priority:t,children:r}){const n=Ihe().renderSortStatus;return N.jsxs("span",{className:Yot,children:[N.jsx("span",{className:Qot,children:r}),N.jsx("span",{children:n({sortDirection:e,priority:t})})]})}const eit="celq7o97-0-0-beta-39",tit="ceqw94e7-0-0-beta-39",rit=`rdg-cell-resizable ${tit}`,nit="r12jy2ca7-0-0-beta-39",oit="c1j3os1p7-0-0-beta-39",iit=`rdg-cell-dragging ${oit}`,sit="c1ui3nad7-0-0-beta-39",ait=`rdg-cell-drag-over ${sit}`;function lit({column:e,colSpan:t,rowIdx:r,isCellSelected:n,onColumnResize:o,onColumnsReorder:i,sortColumns:s,onSortColumnsChange:a,selectCell:l,shouldFocusGrid:u,direction:c}){const[f,d]=A.useState(!1),[h,g]=A.useState(!1),v=c==="rtl",y=xhe(e,r),{tabIndex:E,childTabIndex:_,onFocus:S}=i5(n),b=s==null?void 0:s.findIndex(ve=>ve.columnKey===e.key),k=b!==void 0&&b>-1?s[b]:void 0,T=k==null?void 0:k.direction,x=k!==void 0&&s.length>1?b+1:void 0,I=T&&!x?T==="ASC"?"ascending":"descending":void 0,{sortable:C,resizable:R,draggable:D}=e,L=o5(e,e.headerCellClass,C&&eit,R&&rit,f&&iit,h&&ait),M=e.renderHeaderCell??Zot;function W(ve){if(ve.pointerType==="mouse"&&ve.buttons!==1)return;const{currentTarget:Ee,pointerId:me}=ve,we=Ee.parentElement,{right:Ge,left:nt}=we.getBoundingClientRect(),Qe=v?ve.clientX-nt:Ge-ve.clientX;function Ze(ot){ot.preventDefault();const{right:Me,left:_t}=we.getBoundingClientRect(),qt=v?Me+Qe-ot.clientX:ot.clientX+Qe-_t;qt>0&&o(e,Ahe(qt,e))}function Fe(){Ee.removeEventListener("pointermove",Ze),Ee.removeEventListener("lostpointercapture",Fe)}Ee.setPointerCapture(me),Ee.addEventListener("pointermove",Ze),Ee.addEventListener("lostpointercapture",Fe)}function z(ve){if(a==null)return;const{sortDescendingFirst:Ee}=e;if(k===void 0){const me={columnKey:e.key,direction:Ee?"DESC":"ASC"};a(s&&ve?[...s,me]:[me])}else{let me;if((Ee===!0&&T==="DESC"||Ee!==!0&&T==="ASC")&&(me={columnKey:e.key,direction:T==="ASC"?"DESC":"ASC"}),ve){const we=[...s];me?we[b]=me:we.splice(b,1),a(we)}else a(me?[me]:[])}}function F(ve){l({idx:e.idx,rowIdx:r}),C&&z(ve.ctrlKey||ve.metaKey)}function P(){o(e,"max-content")}function K(ve){S==null||S(ve),u&&l({idx:0,rowIdx:r})}function V(ve){(ve.key===" "||ve.key==="Enter")&&(ve.preventDefault(),z(ve.ctrlKey||ve.metaKey))}function Z(ve){ve.dataTransfer.setData("text/plain",e.key),ve.dataTransfer.dropEffect="move",d(!0)}function J(){d(!1)}function ee(ve){ve.preventDefault(),ve.dataTransfer.dropEffect="move"}function de(ve){g(!1);const Ee=ve.dataTransfer.getData("text/plain");Ee!==e.key&&(ve.preventDefault(),i==null||i(Ee,e.key))}function ge(ve){mee(ve)&&g(!0)}function Se(ve){mee(ve)&&g(!1)}let Re;return D&&(Re={draggable:!0,onDragStart:Z,onDragEnd:J,onDragOver:ee,onDragEnter:ge,onDragLeave:Se,onDrop:de}),N.jsxs("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":y,"aria-selected":n,"aria-sort":I,tabIndex:u?0:E,className:L,style:{...khe(e,r,y),...wE(e,t)},onFocus:K,onClick:F,onKeyDown:C?V:void 0,...Re,children:[M({column:e,sortDirection:T,priority:x,tabIndex:_}),R&&N.jsx("div",{className:nit,onClick:oot,onDoubleClick:P,onPointerDown:W})]})}function mee(e){const t=e.relatedTarget;return!e.currentTarget.contains(t)}const uit="r1otpg647-0-0-beta-39",Rhe=`rdg-row ${uit}`,cit="rel5gk27-0-0-beta-39",Gj="rdg-row-selected",fit="r1qymf1z7-0-0-beta-39",dit="h197vzie7-0-0-beta-39",Ohe=`rdg-header-row ${dit}`;function hit({rowIdx:e,columns:t,onColumnResize:r,onColumnsReorder:n,sortColumns:o,onSortColumnsChange:i,lastFrozenColumnIndex:s,selectedCellIdx:a,selectCell:l,shouldFocusGrid:u,direction:c}){const f=[];for(let d=0;dt&&l.parent!==void 0;)l=l.parent;if(l.level===t&&!s.has(l)){s.add(l);const{idx:u}=l;i.push(N.jsx(Uot,{column:l,rowIdx:e,isCellSelected:n===u,selectCell:o},u))}}}return N.jsx("div",{role:"row","aria-rowindex":e,className:Ohe,children:i})}const vit=A.memo(git),mit="ccpfvsn7-0-0-beta-39",yit=`rdg-cell-copied ${mit}`,bit="c1bmg16t7-0-0-beta-39",_it=`rdg-cell-dragged-over ${bit}`;function Eit({column:e,colSpan:t,isCellSelected:r,isCopied:n,isDraggedOver:o,row:i,rowIdx:s,onClick:a,onDoubleClick:l,onContextMenu:u,onRowChange:c,selectCell:f,...d}){const{tabIndex:h,childTabIndex:g,onFocus:v}=i5(r),{cellClass:y}=e,E=o5(e,typeof y=="function"?y(i):y,n&&yit,o&&_it),_=Ehe(e,i);function S(I){f({rowIdx:s,idx:e.idx},I)}function b(I){if(a){const C=rb(I);if(a({row:i,column:e,selectCell:S},C),C.isGridDefaultPrevented())return}S()}function k(I){if(u){const C=rb(I);if(u({row:i,column:e,selectCell:S},C),C.isGridDefaultPrevented())return}S()}function T(I){if(l){const C=rb(I);if(l({row:i,column:e,selectCell:S},C),C.isGridDefaultPrevented())return}S(!0)}function x(I){c(e,I)}return N.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":r,"aria-readonly":!_||void 0,tabIndex:h,className:E,style:wE(e,t),onClick:b,onDoubleClick:T,onContextMenu:k,onFocus:v,...d,children:e.renderCell({column:e,row:i,isCellEditable:_,tabIndex:g,onRowChange:x})})}const Sit=A.memo(Eit);function wit({className:e,rowIdx:t,gridRowStart:r,height:n,selectedCellIdx:o,isRowSelected:i,copiedCellIdx:s,draggedOverCellIdx:a,lastFrozenColumnIndex:l,row:u,viewportColumns:c,selectedCellEditor:f,onCellClick:d,onCellDoubleClick:h,onCellContextMenu:g,rowClass:v,setDraggedOverRowIdx:y,onMouseEnter:E,onRowChange:_,selectCell:S,...b},k){const T=Ja((C,R)=>{_(C,t,R)});function x(C){y==null||y(t),E==null||E(C)}e=Bf(Rhe,`rdg-row-${t%2===0?"even":"odd"}`,v==null?void 0:v(u,t),e,o===-1&&Gj);const I=[];for(let C=0;C{Pk(o.current)}),Zg(()=>{function i(){n(null)}const s=new IntersectionObserver(i,{root:r,threshold:1});return s.observe(o.current),()=>{s.disconnect()}},[r,n]),N.jsx("div",{ref:o,style:{gridColumn:e===void 0?"1/-1":e+1,gridRow:t===void 0?"1/-1":t+2}})}const Tit="a1mygwml7-0-0-beta-39",Iit=`rdg-sort-arrow ${Tit}`;function Cit({sortDirection:e,priority:t}){return N.jsxs(N.Fragment,{children:[Nit({sortDirection:e}),Rit({priority:t})]})}function Nit({sortDirection:e}){return e===void 0?null:N.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:Iit,"aria-hidden":!0,children:N.jsx("path",{d:e==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function Rit({priority:e}){return e}const Oit="r104f42s7-0-0-beta-39",Dit=`rdg ${Oit}`,Fit="v7ly7s7-0-0-beta-39",Bit=`rdg-viewport-dragging ${Fit}`,Mit="fc4f4zb7-0-0-beta-39",Lit="fq51q037-0-0-beta-39",jit="s1n3hxke7-0-0-beta-39";function zit({column:e,colSpan:t,row:r,rowIdx:n,isCellSelected:o,selectCell:i}){var d;const{tabIndex:s,childTabIndex:a,onFocus:l}=i5(o),{summaryCellClass:u}=e,c=o5(e,jit,typeof u=="function"?u(r):u);function f(){i({rowIdx:n,idx:e.idx})}return N.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":o,tabIndex:s,className:c,style:wE(e,t),onClick:f,onFocus:l,children:(d=e.renderSummaryCell)==null?void 0:d.call(e,{column:e,row:r,tabIndex:a})})}const Hit=A.memo(zit),$it="snfqesz7-0-0-beta-39",Pit="t1jijrjz7-0-0-beta-39",qit="t14bmecc7-0-0-beta-39",Wit="b1odhhml7-0-0-beta-39",Git=`rdg-summary-row ${$it}`,Kit=`rdg-top-summary-row ${Pit}`;function Vit({rowIdx:e,gridRowStart:t,row:r,viewportColumns:n,top:o,bottom:i,lastFrozenColumnIndex:s,selectedCellIdx:a,isTop:l,showBorder:u,selectCell:c,"aria-rowindex":f}){const d=[];for(let h=0;hnew Map),[Nt,ut]=A.useState(()=>new Map),[xe,Ue]=A.useState(null),[Xt,he]=A.useState(!1),[le,se]=A.useState(void 0),[pe,Oe]=A.useState(null),[je,ke,Ie]=zot(),{columns:$e,colSpanColumns:lt,lastFrozenColumnIndex:mt,headerRowsCount:Rt,colOverscanStartIdx:hr,colOverscanEndIdx:Cr,templateColumns:Lt,layoutCssVars:Wr,totalFrozenColumnWidth:fn}=Lot({rawColumns:r,defaultColumnOptions:v,measuredColumnWidths:Nt,resizedColumnWidths:_t,scrollLeft:ot,viewportWidth:ke,enableVirtualization:nt}),tr=(o==null?void 0:o.length)??0,Ot=(i==null?void 0:i.length)??0,Gr=tr+Ot,Nr=Rt+tr,Kr=Rt-1,mr=-Nr,Bt=mr+Kr,dt=n.length+Ot-1,[Ye,Vr]=A.useState(()=>({idx:-1,rowIdx:mr-1,mode:"SELECT"})),No=A.useRef(Ye),Hr=A.useRef(le),Fl=A.useRef(-1),ys=A.useRef(null),mo=A.useRef(!1),za=ge==="treegrid",He=Rt*Re,Y=Ie-He-Gr*ve,X=f!=null&&d!=null,$=Qe==="rtl",q=$?"ArrowRight":"ArrowLeft",B=$?"ArrowLeft":"ArrowRight",Q=J??Rt+n.length+Gr,ie=A.useMemo(()=>({renderCheckbox:we,renderSortStatus:me}),[we,me]),ae=A.useMemo(()=>{const{length:Ke}=n;return Ke!==0&&f!=null&&s!=null&&f.size>=Ke&&n.every(tt=>f.has(s(tt)))},[n,f,s]),{rowOverscanStartIdx:ne,rowOverscanEndIdx:ye,totalRowHeight:Pe,gridTemplateRows:xt,getRowTop:Dt,getRowHeight:wt,findRowIdx:Et}=$ot({rows:n,rowHeight:Se,clientHeight:Y,scrollTop:Ze,enableVirtualization:nt}),Gt=Hot({columns:$e,colSpanColumns:lt,colOverscanStartIdx:hr,colOverscanEndIdx:Cr,lastFrozenColumnIndex:mt,rowOverscanStartIdx:ne,rowOverscanEndIdx:ye,rows:n,topSummaryRows:o,bottomSummaryRows:i}),{gridTemplateColumns:$r,handleColumnResize:Ft}=jot($e,Gt,Lt,je,ke,_t,Nt,qt,ut,T),En=za?-1:0,yo=$e.length-1,$i=kp(Ye),Bl=Ap(Ye),Us=Ja(Ft),Oc=Ja(x),Ml=Ja(g),so=Ja(y),Ha=Ja(E),Dc=Ja(_),Ll=Ja(Bc),Fc=Ja(Nu),jl=Ja(Yf),Vf=Ja(({idx:Ke,rowIdx:tt})=>{Yf({rowIdx:mr+tt-1,idx:Ke})});Zg(()=>{if(!$i||x3(Ye,No.current)){No.current=Ye;return}No.current=Ye,Ye.idx===-1&&(ys.current.focus({preventScroll:!0}),Pk(ys.current))}),Zg(()=>{mo.current&&(mo.current=!1,em())}),A.useImperativeHandle(t,()=>({element:je.current,scrollToCell({idx:Ke,rowIdx:tt}){const Wt=Ke!==void 0&&Ke>mt&&Ke<$e.length?Ke:void 0,jt=tt!==void 0&&L1(tt)?tt:void 0;(Wt!==void 0||jt!==void 0)&&Oe({idx:Wt,rowIdx:jt})},selectCell:Yf}));const Iu=A.useCallback(Ke=>{se(Ke),Hr.current=Ke},[]);function Bc(Ke){if(!d)return;if(pee(s),Ke.type==="HEADER"){const Jr=new Set(f);for(const nn of n){const Ro=s(nn);Ke.checked?Jr.add(Ro):Jr.delete(Ro)}d(Jr);return}const{row:tt,checked:Wt,isShiftClick:jt}=Ke,St=new Set(f),Tt=s(tt);if(Wt){St.add(Tt);const Jr=Fl.current,nn=n.indexOf(tt);if(Fl.current=nn,jt&&Jr!==-1&&Jr!==nn){const Ro=bot(nn-Jr);for(let $a=Jr+Ro;$a!==nn;$a+=Ro){const Lc=n[$a];St.add(s(Lc))}}}else St.delete(Tt),Fl.current=-1;d(St)}function Mc(Ke){const{idx:tt,rowIdx:Wt,mode:jt}=Ye;if(jt==="EDIT")return;if(S&&L1(Wt)){const nn=n[Wt],Ro=rb(Ke);if(S({mode:"SELECT",row:nn,column:$e[tt],rowIdx:Wt,selectCell:Yf},Ro),Ro.isGridDefaultPrevented())return}if(!(Ke.target instanceof Element))return;const St=Ke.target.closest(".rdg-cell")!==null,Tt=za&&Ke.target===ys.current;if(!St&&!Tt)return;const{keyCode:Jr}=Ke;if(Bl&&(R!=null||C!=null)&&dee(Ke)){if(Jr===67){Zv();return}if(Jr===86){Uf();return}}switch(Ke.key){case"Escape":Ue(null);return;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Tab":case"Home":case"End":case"PageUp":case"PageDown":KE(Ke);break;default:GE(Ke);break}}function Cu(Ke){const{scrollTop:tt,scrollLeft:Wt}=Ke.currentTarget;pi.flushSync(()=>{Fe(tt),Me(_ot(Wt))}),k==null||k(Ke)}function Nu(Ke,tt,Wt){if(typeof a!="function"||Wt===n[tt])return;const jt=[...n];jt[tt]=Wt,a(jt,{indexes:[tt],column:Ke})}function wp(){Ye.mode==="EDIT"&&Nu($e[Ye.idx],Ye.rowIdx,Ye.row)}function Zv(){const{idx:Ke,rowIdx:tt}=Ye,Wt=n[tt],jt=$e[Ke].key;Ue({row:Wt,columnKey:jt}),C==null||C({sourceRow:Wt,sourceColumnKey:jt})}function Uf(){if(!R||!a||xe===null||!j1(Ye))return;const{idx:Ke,rowIdx:tt}=Ye,Wt=$e[Ke],jt=n[tt],St=R({sourceRow:xe.row,sourceColumnKey:xe.columnKey,targetRow:jt,targetColumnKey:Wt.key});Nu(Wt,tt,St)}function GE(Ke){if(!Bl)return;const tt=n[Ye.rowIdx],{key:Wt,shiftKey:jt}=Ke;if(X&&jt&&Wt===" "){pee(s);const St=s(tt);Bc({type:"ROW",row:tt,checked:!f.has(St),isShiftClick:!1}),Ke.preventDefault();return}j1(Ye)&&sot(Ke)&&Vr(({idx:St,rowIdx:Tt})=>({idx:St,rowIdx:Tt,mode:"EDIT",row:tt,originalRow:tt}))}function Jv(Ke){return Ke>=En&&Ke<=yo}function L1(Ke){return Ke>=0&&Ke=mr&&tt<=dt&&Jv(Ke)}function Ap({idx:Ke,rowIdx:tt}){return L1(tt)&&Jv(Ke)}function j1(Ke){return Ap(Ke)&&cot({columns:$e,rows:n,selectedPosition:Ke})}function Yf(Ke,tt){if(!kp(Ke))return;wp();const Wt=n[Ke.rowIdx],jt=x3(Ye,Ke);tt&&j1(Ke)?Vr({...Ke,mode:"EDIT",row:Wt,originalRow:Wt}):jt?Pk(bee(je.current)):(mo.current=!0,Vr({...Ke,mode:"SELECT"})),b&&!jt&&b({rowIdx:Ke.rowIdx,row:Wt,column:$e[Ke.idx]})}function Q5(Ke,tt,Wt){const{idx:jt,rowIdx:St}=Ye,Tt=$i&&jt===-1;switch(Ke){case"ArrowUp":return{idx:jt,rowIdx:St-1};case"ArrowDown":return{idx:jt,rowIdx:St+1};case q:return{idx:jt-1,rowIdx:St};case B:return{idx:jt+1,rowIdx:St};case"Tab":return{idx:jt+(Wt?-1:1),rowIdx:St};case"Home":return Tt?{idx:jt,rowIdx:mr}:{idx:0,rowIdx:tt?mr:St};case"End":return Tt?{idx:jt,rowIdx:dt}:{idx:yo,rowIdx:tt?dt:St};case"PageUp":{if(Ye.rowIdx===mr)return Ye;const Jr=Dt(St)+wt(St)-Y;return{idx:jt,rowIdx:Jr>0?Et(Jr):0}}case"PageDown":{if(Ye.rowIdx>=n.length)return Ye;const Jr=Dt(St)+Y;return{idx:jt,rowIdx:JrKe&&Ke>=le)?Ye.idx:void 0}function em(){const Ke=bee(je.current);if(Ke===null)return;Pk(Ke),(Ke.querySelector('[tabindex="0"]')??Ke).focus({preventScroll:!0})}function J5(){if(!(I==null||Ye.mode==="EDIT"||!Ap(Ye)))return N.jsx(Got,{gridRowStart:Nr+Ye.rowIdx+1,rows:n,columns:$e,selectedPosition:Ye,isCellEditable:j1,latestDraggedOverRowIdx:Hr,onRowsChange:a,onClick:em,onFill:I,setDragging:he,setDraggedOverRowIdx:Iu})}function eI(Ke){if(Ye.rowIdx!==Ke||Ye.mode==="SELECT")return;const{idx:tt,row:Wt}=Ye,jt=$e[tt],St=dl(jt,mt,{type:"ROW",row:Wt}),Tt=nn=>{mo.current=nn,Vr(({idx:Ro,rowIdx:$a})=>({idx:Ro,rowIdx:$a,mode:"SELECT"}))},Jr=(nn,Ro,$a)=>{Ro?pi.flushSync(()=>{Nu(jt,Ye.rowIdx,nn),Tt($a)}):Vr(Lc=>({...Lc,row:nn}))};return n[Ye.rowIdx]!==Ye.originalRow&&Tt(!1),N.jsx(Vot,{column:jt,colSpan:St,row:Wt,rowIdx:Ke,onRowChange:Jr,closeEditor:Tt,onKeyDown:S,navigate:KE},jt.key)}function z1(Ke){const tt=Ye.idx===-1?void 0:$e[Ye.idx];return tt!==void 0&&Ye.rowIdx===Ke&&!Gt.includes(tt)?Ye.idx>Cr?[...Gt,tt]:[...Gt.slice(0,mt+1),tt,...Gt.slice(mt+1)]:Gt}function tI(){const Ke=[],{idx:tt,rowIdx:Wt}=Ye,jt=Bl&&Wtye?ye+1:ye;for(let Tt=jt;Tt<=St;Tt++){const Jr=Tt===ne-1||Tt===ye+1,nn=Jr?Wt:Tt;let Ro=Gt;const $a=tt===-1?void 0:$e[tt];$a!==void 0&&(Jr?Ro=[$a]:Ro=z1(nn));const Lc=n[nn],rI=Nr+nn+1;let xp=nn,tm=!1;typeof s=="function"&&(xp=s(Lc),tm=(f==null?void 0:f.has(xp))??!1),Ke.push(Ee(xp,{"aria-rowindex":Nr+nn+1,"aria-selected":X?tm:void 0,rowIdx:nn,row:Lc,viewportColumns:Ro,isRowSelected:tm,onCellClick:so,onCellDoubleClick:Ha,onCellContextMenu:Dc,rowClass:z,gridRowStart:rI,height:wt(nn),copiedCellIdx:xe!==null&&xe.row===Lc?$e.findIndex(Oo=>Oo.key===xe.columnKey):void 0,selectedCellIdx:Wt===nn?tt:void 0,draggedOverCellIdx:Z5(nn),setDraggedOverRowIdx:Xt?Iu:void 0,lastFrozenColumnIndex:mt,onRowChange:Fc,selectCell:jl,selectedCellEditor:eI(nn)}))}return Ke}(Ye.idx>yo||Ye.rowIdx>dt)&&(Vr({idx:-1,rowIdx:mr-1,mode:"SELECT"}),Iu(void 0));let Xf=`repeat(${Rt}, ${Re}px)`;tr>0&&(Xf+=` repeat(${tr}, ${ve}px)`),n.length>0&&(Xf+=xt),Ot>0&&(Xf+=` repeat(${Ot}, ${ve}px)`);const VE=Ye.idx===-1&&Ye.rowIdx!==mr-1;return N.jsxs("div",{role:ge,"aria-label":K,"aria-labelledby":V,"aria-describedby":Z,"aria-multiselectable":X?!0:void 0,"aria-colcount":$e.length,"aria-rowcount":Q,className:Bf(Dit,M,Xt&&Bit),style:{...W,scrollPaddingInlineStart:Ye.idx>mt||(pe==null?void 0:pe.idx)!==void 0?`${fn}px`:void 0,scrollPaddingBlock:L1(Ye.rowIdx)||(pe==null?void 0:pe.rowIdx)!==void 0?`${He+tr*ve}px ${Ot*ve}px`:void 0,gridTemplateColumns:$r,gridTemplateRows:Xf,"--rdg-header-row-height":`${Re}px`,"--rdg-summary-row-height":`${ve}px`,"--rdg-sign":$?-1:1,...Wr},dir:Qe,ref:je,onScroll:Cu,onKeyDown:Mc,"data-testid":ee,children:[N.jsx(Rot,{value:ie,children:N.jsxs(Fot,{value:Ll,children:[N.jsxs(Che,{value:ae,children:[Array.from({length:Kr},(Ke,tt)=>N.jsx(vit,{rowIdx:tt+1,level:-Kr+tt,columns:z1(mr+tt),selectedCellIdx:Ye.rowIdx===mr+tt?Ye.idx:void 0,selectCell:Vf},tt)),N.jsx(pit,{rowIdx:Rt,columns:z1(Bt),onColumnResize:Us,onColumnsReorder:Oc,sortColumns:h,onSortColumnsChange:Ml,lastFrozenColumnIndex:mt,selectedCellIdx:Ye.rowIdx===Bt?Ye.idx:void 0,selectCell:Vf,shouldFocusGrid:!$i,direction:Qe})]}),n.length===0&&Ge?Ge:N.jsxs(N.Fragment,{children:[o==null?void 0:o.map((Ke,tt)=>{const Wt=Rt+1+tt,jt=Bt+1+tt,St=Ye.rowIdx===jt,Tt=He+ve*tt;return N.jsx(yee,{"aria-rowindex":Wt,rowIdx:jt,gridRowStart:Wt,row:Ke,top:Tt,bottom:void 0,viewportColumns:z1(jt),lastFrozenColumnIndex:mt,selectedCellIdx:St?Ye.idx:void 0,isTop:!0,showBorder:tt===tr-1,selectCell:jl},tt)}),tI(),i==null?void 0:i.map((Ke,tt)=>{const Wt=Nr+n.length+tt+1,jt=n.length+tt,St=Ye.rowIdx===jt,Tt=Y>Pe?Ie-ve*(i.length-tt):void 0,Jr=Tt===void 0?ve*(i.length-1-tt):void 0;return N.jsx(yee,{"aria-rowindex":Q-Ot+tt+1,rowIdx:jt,gridRowStart:Wt,row:Ke,top:Tt,bottom:Jr,viewportColumns:z1(jt),lastFrozenColumnIndex:mt,selectedCellIdx:St?Ye.idx:void 0,isTop:!1,showBorder:tt===0,selectCell:jl},tt)})]})]})}),J5(),uot(Gt),za&&N.jsx("div",{ref:ys,tabIndex:VE?0:-1,className:Bf(Mit,VE&&[cit,mt!==-1&&fit],!L1(Ye.rowIdx)&&Lit),style:{gridRowStart:Ye.rowIdx+Nr+1}}),pe!==null&&N.jsx(xit,{scrollToPosition:pe,setScrollToCellPosition:Oe,gridElement:je.current})]})}function bee(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function x3(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}const Yit=A.forwardRef(Uit),kE=()=>{const[e]=rtt(Q1e);return e},Xit=()=>{const e=kE();return ri(e.rows$).toArray()},Qit=()=>{const e=kE();return A.useCallback(t=>{e.toggleRow(t)},[e])},Zit=()=>{const e=kE();return[e.startTime,e.endTime]},Jit=()=>{const e=kE();return ri(e.selectedRowId$)},est=()=>{const e=kE();return jj(e.selectedRowId$)},tst=({row:e})=>{const[t,r]=Zit(),n=`${(e.startTime-t)*100/(r-t)}%`,o=`${(r-e.endTime)*100/(r-t)}%`,i=e.children&&e.children.length>0,s=e.isExpanded;return N.jsx("div",{style:{marginLeft:n,marginRight:o,height:"100%",marginTop:4,marginBottom:4,display:"flex"},children:i&&!s?N.jsx(N.Fragment,{children:(e.children??[]).map((a,l)=>{const u=`${(a.endTime-a.startTime)*100/(e.endTime-e.startTime)}%`;return N.jsx("div",{style:{backgroundColor:a.color??`rgba(0, 120, 212, ${1-.2*l})`,width:u}},a.id)})}):N.jsx("div",{style:{backgroundColor:e.color??"rgba(0, 120, 212, 1)",width:"100%"}})})},rst=({row:e})=>{const t=e.children!==void 0&&e.children.length>0,r=e.isExpanded,n=Qit(),o=A.useCallback(i=>{i.preventDefault(),i.stopPropagation(),n(e.id)},[e.id,n]);return N.jsxs("div",{style:{display:"flex",gap:4,paddingLeft:e.level*24},children:[t?N.jsx("div",{onClick:o,role:"button",children:r?"▼":"▶"}):N.jsx(N.Fragment,{}),N.jsx("div",{children:e.node_name||e.name})]})},nst=[{key:"name",name:"node name",resizable:!0,width:320,renderCell({row:e}){return N.jsx(rst,{row:e})}},{key:"duration",name:"duration",resizable:!0,width:60,renderHeaderCell(){return N.jsx("div",{style:{textAlign:"right"},children:"duration"})},renderCell({row:e}){return N.jsxs("div",{style:{textAlign:"right"},children:[Math.round((e.endTime-e.startTime)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")," ","ms"]})}},{key:"ganttChart",name:"gantt-chart",renderCell({row:e}){return N.jsx(tst,{row:e})},renderHeaderCell:()=>N.jsx(N.Fragment,{})}],ost=({styles:e,gridRef:t,getColumns:r=n=>n})=>{const n=Xit(),o=est(),i=Jit(),s=A.useCallback(u=>{const{row:c}=u;o(c.id)},[o]),a=br(e==null?void 0:e.grid,{borderBottom:"none",borderRight:"none"}),l=A.useCallback(u=>br(i===u.id?e==null?void 0:e.selectedRow:""),[i,e==null?void 0:e.selectedRow]);return N.jsx(Yit,{rows:n,columns:r(nst),onCellClick:s,className:a,rowClass:l,ref:t})},ist=({viewModel:e,children:t})=>{const r=Zet({name:"gantt-wrapper"}),n=A.useCallback(o=>{o.register(Q1e,{useValue:e})},[e]);return N.jsx(r,{onInitialize:n,children:t})};var G6=(e=>(e.Light="rdg-light",e.Dark="rdg-dark",e))(G6||{});const sst=({viewModel:e,styles:t,getColumns:r,gridRef:n})=>N.jsx(ist,{viewModel:e,children:N.jsx(ost,{styles:t,getColumns:r,gridRef:n})}),ast=({trace:e,JSONView:t})=>{const r=mi({root:["api-call-detail",{padding:8,width:"100%",height:"100%",display:"flex",flexDirection:"column"}],header:["api-call-detail-header",{fontWeight:600,fontSize:20,lineHeight:28,marginBottom:16}],section:["api-call-detail-section",{display:"flex",flexDirection:"column",width:"85%",height:"auto",boxShadow:"rgba(0, 0, 0, 0.18) 0px 1.6px 3.6px 0px, rgba(0, 0, 0, 0.22) 0px 0.3px 0.9px 0px",marginBottom:16}],sectionTitle:["api-call-detail-section-title",{fontWeight:500,fontSize:16,marginTop:8,marginBottom:8,lineHeight:20,borderBottom:"1px inset #ccc",padding:"9px 12px"}],sectionContent:["api-call-detail-section-content",{padding:16,overflow:"auto",maxHeight:"600px"}],fieldTitle:["api-call-detail-field-title",{fontWeight:500,fontSize:14,lineHeight:20}],overviewContainer:["api-call-detail-overview-container",{display:"flex",flexDirection:"row"}],overviewColumn:["api-call-detail-overview-column",{display:"flex",flexGrow:1,flexDirection:"column"}]}),n=e.node_name??e.name??"",o=v7(e),i=e.inputs??{},s=e.output??{};return N.jsxs("div",{className:r.root,children:[N.jsx("div",{className:r.header,children:n}),N.jsxs("div",{className:r.section,children:[N.jsx("div",{className:r.sectionTitle,children:"Overview"}),N.jsx("div",{className:r.sectionContent,children:N.jsxs("div",{className:r.overviewContainer,children:[N.jsxs("div",{className:r.overviewColumn,children:[N.jsx("div",{className:r.fieldTitle,children:"total tokens"}),N.jsx("div",{children:Uy(o.totalTokens)}),N.jsx("div",{className:r.fieldTitle,children:"prompt tokens"}),N.jsx("div",{children:Uy(o.promptTokens)}),N.jsx("div",{className:r.fieldTitle,children:"completion tokens"}),N.jsx("div",{children:Uy(o.completionTokens)})]}),N.jsxs("div",{className:r.overviewColumn,children:[N.jsx("div",{className:r.fieldTitle,children:"duration"}),N.jsx("div",{children:e.end_time&&e.start_time?`${Math.round((e.end_time-e.start_time)*1e3).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")} ms`:"N/A"}),N.jsx("div",{className:r.fieldTitle,children:"started at"}),N.jsx("div",{children:e.start_time?UK(e.start_time*1e3):"N/A"}),N.jsx("div",{className:r.fieldTitle,children:"finished at"}),N.jsx("div",{children:e.end_time?UK(e.end_time*1e3):"N/A"})]})]})})]}),N.jsxs("div",{className:r.section,children:[N.jsx("div",{className:r.sectionTitle,children:"Inputs"}),N.jsx("div",{className:r.sectionContent,children:N.jsx(t,{src:i})})]}),N.jsxs("div",{className:r.section,children:[N.jsx("div",{className:r.sectionTitle,children:"Outputs"}),N.jsx("div",{className:r.sectionContent,children:N.jsx(t,{src:s})})]})]})},Dhe=new Map,lst=e=>{let t=0,r=0;if(e.length===0)return t;for(let n=0;ne.map(t=>{const r=Ni.v4();return Dhe.set(r,t),{startTime:t.start_time??performance.now(),endTime:t.end_time??performance.now(),color:ece[lst(t.name??"")%ust],id:r,name:t.name??"",node_name:t.node_name??"",output:t.output??[],children:t.children?Fhe(t.children):void 0}}),cst=({children:e,className:t})=>N.jsx(bhe,{enable:{right:!0},className:t,defaultSize:{width:"50%",height:"100%"},children:e}),_ee=({children:e,className:t})=>N.jsx("div",{className:t,children:e}),fst=A.forwardRef(({traces:e,styles:t,isDarkMode:r=!1,classNames:n,RootContainer:o=_ee,GridContainer:i=cst,DetailContainer:s=_ee,renderDetail:a=f=>N.jsx(ast,{JSONView:d=>N.jsx("pre",{children:JSON.stringify(d)}),trace:f}),onChangeSelectedTrace:l,renderUnselectedHint:u=()=>N.jsx("div",{children:"Click on a row to see details"})},c)=>{const f=A.useMemo(()=>e.reduce((T,x)=>[...T,...Fhe(x)],[]),[e]),d=A.useMemo(()=>new lx,[]);A.useEffect(()=>{d.setTasks(f)},[f,d]);const h=ri(d.selectedRowId$),g=jj(d.selectedRowId$),v=A.useMemo(()=>h?Dhe.get(h):void 0,[h]),y=A.useMemo(()=>({...t,grid:br(t==null?void 0:t.grid,r?G6.Dark:G6.Light)}),[t,r]),E=br({display:"flex",height:"100%",borderTop:"1px solid #ccc"},n==null?void 0:n.root),_=br({height:"100%",width:"100%",padding:16,borderRight:"1px solid #ccc"},n==null?void 0:n.gridContainer),S=br({height:"100%",width:"100%",padding:8},n==null?void 0:n.detailContainer),b=A.useCallback(T=>{var I;const x=(I=f.find(C=>C.node_name===T))==null?void 0:I.id;x&&g(x)},[f,g]);A.useImperativeHandle(c,()=>({setSelectedTraceRow:b})),A.useEffect(()=>{l&&l(v)},[l,v]),A.useEffect(()=>{g(void 0)},[e]);const k=A.useCallback(T=>{const x={key:"token",name:"token",resizable:!0,width:60,renderHeaderCell(){return N.jsx("div",{style:{textAlign:"right"},children:"Tokens"})},renderCell({row:R}){const D=v7(R),L=`prompt tokens: ${Uy(D.promptTokens)}, + completion tokens: ${D.completionTokens}`;return N.jsx("div",{style:{textAlign:"right"},title:L,children:Uy(D.totalTokens)})}},[I,...C]=T;return[I,x,...C]},[]);return N.jsxs(o,{className:E,children:[N.jsx(i,{className:_,children:N.jsx(sst,{viewModel:d,styles:y,getColumns:k})}),N.jsx(s,{className:S,children:v?a(v):u()})]})});fst.displayName="ApiLogs";gs((e,t)=>mi({root:br({display:"flex",flexDirection:"row",alignItems:"center",height:"30px",background:"var(--background)",width:"100%",...t&&{position:"fixed",top:0,zIndex:100}},e),buttonGroup:{display:"flex",flexDirection:"row",height:"30px"},searchField:{marginRight:"100px",selectors:{"div.root":{height:"30px"}}}}));var dst=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=Eee[t.format]||Eee.default;window.clipboardData.setData(f,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(a),i.selectNodeContents(a),s.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!0}catch(c){r&&console.error("unable to copy using execCommand: ",c),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){r&&console.error("unable to copy using clipboardData: ",f),r&&console.error("falling back to prompt"),n=gst("message"in t?t.message:pst),window.prompt(n,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(i):s.removeAllRanges()),a&&document.body.removeChild(a),o()}return l}var mst=vst;const Bhe=zf(mst);class yst extends A.Component{constructor(t){super(t),this.state={}}componentDidCatch(t,r){zi.postMessage({name:gn.ERROR_BOUNDARY_CAUGHT,payload:{error:t,errorInfo:r}}),this.setState({error:t,errorInfo:r})}renderDefaultFallback(){const t=()=>{var r,n;(n=(r=this.props)==null?void 0:r.onReload)==null||n.call(r),this.setState({error:void 0,errorInfo:void 0})};return N.jsxs("div",{children:[N.jsx("div",{children:"Something went wrong!"}),!!this.props.onReload&&N.jsx("button",{onClick:t,children:"Reload"})]})}render(){return this.state.error?this.props.fallback??this.renderDefaultFallback():this.props.children}}var bst={exports:{}};(function(e,t){(function(r,n){e.exports=n(A)})(Ns,function(r){return function(n){var o={};function i(s){if(o[s])return o[s].exports;var a=o[s]={i:s,l:!1,exports:{}};return n[s].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=n,i.c=o,i.d=function(s,a,l){i.o(s,a)||Object.defineProperty(s,a,{enumerable:!0,get:l})},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,a){if(1&a&&(s=i(s)),8&a||4&a&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(i.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),2&a&&typeof s!="string")for(var u in s)i.d(l,u,(function(c){return s[c]}).bind(null,u));return l},i.n=function(s){var a=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(a,"a",a),a},i.o=function(s,a){return Object.prototype.hasOwnProperty.call(s,a)},i.p="",i(i.s=48)}([function(n,o){n.exports=r},function(n,o){var i=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=i)},function(n,o,i){var s=i(26)("wks"),a=i(17),l=i(3).Symbol,u=typeof l=="function";(n.exports=function(c){return s[c]||(s[c]=u&&l[c]||(u?l:a)("Symbol."+c))}).store=s},function(n,o){var i=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=i)},function(n,o,i){n.exports=!i(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,o){var i={}.hasOwnProperty;n.exports=function(s,a){return i.call(s,a)}},function(n,o,i){var s=i(7),a=i(16);n.exports=i(4)?function(l,u,c){return s.f(l,u,a(1,c))}:function(l,u,c){return l[u]=c,l}},function(n,o,i){var s=i(10),a=i(35),l=i(23),u=Object.defineProperty;o.f=i(4)?Object.defineProperty:function(c,f,d){if(s(c),f=l(f,!0),s(d),a)try{return u(c,f,d)}catch{}if("get"in d||"set"in d)throw TypeError("Accessors not supported!");return"value"in d&&(c[f]=d.value),c}},function(n,o){n.exports=function(i){try{return!!i()}catch{return!0}}},function(n,o,i){var s=i(40),a=i(22);n.exports=function(l){return s(a(l))}},function(n,o,i){var s=i(11);n.exports=function(a){if(!s(a))throw TypeError(a+" is not an object!");return a}},function(n,o){n.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},function(n,o){n.exports={}},function(n,o,i){var s=i(39),a=i(27);n.exports=Object.keys||function(l){return s(l,a)}},function(n,o){n.exports=!0},function(n,o,i){var s=i(3),a=i(1),l=i(53),u=i(6),c=i(5),f=function(d,h,g){var v,y,E,_=d&f.F,S=d&f.G,b=d&f.S,k=d&f.P,T=d&f.B,x=d&f.W,I=S?a:a[h]||(a[h]={}),C=I.prototype,R=S?s:b?s[h]:(s[h]||{}).prototype;for(v in S&&(g=h),g)(y=!_&&R&&R[v]!==void 0)&&c(I,v)||(E=y?R[v]:g[v],I[v]=S&&typeof R[v]!="function"?g[v]:T&&y?l(E,s):x&&R[v]==E?function(D){var L=function(M,W,z){if(this instanceof D){switch(arguments.length){case 0:return new D;case 1:return new D(M);case 2:return new D(M,W)}return new D(M,W,z)}return D.apply(this,arguments)};return L.prototype=D.prototype,L}(E):k&&typeof E=="function"?l(Function.call,E):E,k&&((I.virtual||(I.virtual={}))[v]=E,d&f.R&&C&&!C[v]&&u(C,v,E)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,n.exports=f},function(n,o){n.exports=function(i,s){return{enumerable:!(1&i),configurable:!(2&i),writable:!(4&i),value:s}}},function(n,o){var i=0,s=Math.random();n.exports=function(a){return"Symbol(".concat(a===void 0?"":a,")_",(++i+s).toString(36))}},function(n,o,i){var s=i(22);n.exports=function(a){return Object(s(a))}},function(n,o){o.f={}.propertyIsEnumerable},function(n,o,i){var s=i(52)(!0);i(34)(String,"String",function(a){this._t=String(a),this._i=0},function(){var a,l=this._t,u=this._i;return u>=l.length?{value:void 0,done:!0}:(a=s(l,u),this._i+=a.length,{value:a,done:!1})})},function(n,o){var i=Math.ceil,s=Math.floor;n.exports=function(a){return isNaN(a=+a)?0:(a>0?s:i)(a)}},function(n,o){n.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},function(n,o,i){var s=i(11);n.exports=function(a,l){if(!s(a))return a;var u,c;if(l&&typeof(u=a.toString)=="function"&&!s(c=u.call(a))||typeof(u=a.valueOf)=="function"&&!s(c=u.call(a))||!l&&typeof(u=a.toString)=="function"&&!s(c=u.call(a)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,o){var i={}.toString;n.exports=function(s){return i.call(s).slice(8,-1)}},function(n,o,i){var s=i(26)("keys"),a=i(17);n.exports=function(l){return s[l]||(s[l]=a(l))}},function(n,o,i){var s=i(1),a=i(3),l=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(n.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:s.version,mode:i(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,o){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,o,i){var s=i(7).f,a=i(5),l=i(2)("toStringTag");n.exports=function(u,c,f){u&&!a(u=f?u:u.prototype,l)&&s(u,l,{configurable:!0,value:c})}},function(n,o,i){i(62);for(var s=i(3),a=i(6),l=i(12),u=i(2)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;fdocument.F=Object<\/script>"),d.close(),f=d.F;g--;)delete f.prototype[l[g]];return f()};n.exports=Object.create||function(d,h){var g;return d!==null?(c.prototype=s(d),g=new c,c.prototype=null,g[u]=d):g=f(),h===void 0?g:a(g,h)}},function(n,o,i){var s=i(5),a=i(9),l=i(57)(!1),u=i(25)("IE_PROTO");n.exports=function(c,f){var d,h=a(c),g=0,v=[];for(d in h)d!=u&&s(h,d)&&v.push(d);for(;f.length>g;)s(h,d=f[g++])&&(~l(v,d)||v.push(d));return v}},function(n,o,i){var s=i(24);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return s(a)=="String"?a.split(""):Object(a)}},function(n,o,i){var s=i(39),a=i(27).concat("length","prototype");o.f=Object.getOwnPropertyNames||function(l){return s(l,a)}},function(n,o,i){var s=i(24),a=i(2)("toStringTag"),l=s(function(){return arguments}())=="Arguments";n.exports=function(u){var c,f,d;return u===void 0?"Undefined":u===null?"Null":typeof(f=function(h,g){try{return h[g]}catch{}}(c=Object(u),a))=="string"?f:l?s(c):(d=s(c))=="Object"&&typeof c.callee=="function"?"Arguments":d}},function(n,o){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}n.exports=i},function(n,o){var i=/-?\d+(\.\d+)?%?/g;n.exports=function(s){return s.match(i)}},function(n,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.getBase16Theme=o.createStyling=o.invertTheme=void 0;var s=y(i(49)),a=y(i(76)),l=y(i(81)),u=y(i(89)),c=y(i(93)),f=function(C){if(C&&C.__esModule)return C;var R={};if(C!=null)for(var D in C)Object.prototype.hasOwnProperty.call(C,D)&&(R[D]=C[D]);return R.default=C,R}(i(94)),d=y(i(132)),h=y(i(133)),g=y(i(138)),v=i(139);function y(C){return C&&C.__esModule?C:{default:C}}var E=f.default,_=(0,u.default)(E),S=(0,g.default)(h.default,v.rgb2yuv,function(C){var R,D=(0,l.default)(C,3),L=D[0],M=D[1],W=D[2];return[(R=L,R<.25?1:R<.5?.9-R:1.1-R),M,W]},v.yuv2rgb,d.default),b=function(C){return function(R){return{className:[R.className,C.className].filter(Boolean).join(" "),style:(0,a.default)({},R.style||{},C.style||{})}}},k=function(C,R){var D=(0,u.default)(R);for(var L in C)D.indexOf(L)===-1&&D.push(L);return D.reduce(function(M,W){return M[W]=function(z,F){if(z===void 0)return F;if(F===void 0)return z;var P=z===void 0?"undefined":(0,s.default)(z),K=F===void 0?"undefined":(0,s.default)(F);switch(P){case"string":switch(K){case"string":return[F,z].filter(Boolean).join(" ");case"object":return b({className:z,style:F});case"function":return function(V){for(var Z=arguments.length,J=Array(Z>1?Z-1:0),ee=1;ee1?Z-1:0),ee=1;ee1?Z-1:0),ee=1;ee1?Z-1:0),ee=1;ee1?Z-1:0),ee=1;ee2?D-2:0),M=2;M3?R-3:0),L=3;L1&&arguments[1]!==void 0?arguments[1]:{},W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=M.defaultBase16,F=z===void 0?E:z,P=M.base16Themes,K=P===void 0?null:P,V=I(W,K);V&&(W=(0,a.default)({},V,W));var Z=_.reduce(function(ge,Se){return ge[Se]=W[Se]||F[Se],ge},{}),J=(0,u.default)(W).reduce(function(ge,Se){return _.indexOf(Se)===-1&&(ge[Se]=W[Se]),ge},{}),ee=C(Z),de=k(J,ee);return(0,c.default)(T,2).apply(void 0,[de].concat(D))},3),o.getBase16Theme=function(C,R){if(C&&C.extend&&(C=C.extend),typeof C=="string"){var D=C.split(":"),L=(0,l.default)(D,2),M=L[0],W=L[1];C=(R||{})[M]||f[M],W==="inverted"&&(C=x(C))}return C&&C.hasOwnProperty("base00")?C:void 0})},function(n,o,i){var s,a=typeof Reflect=="object"?Reflect:null,l=a&&typeof a.apply=="function"?a.apply:function(b,k,T){return Function.prototype.apply.call(b,k,T)};s=a&&typeof a.ownKeys=="function"?a.ownKeys:Object.getOwnPropertySymbols?function(b){return Object.getOwnPropertyNames(b).concat(Object.getOwnPropertySymbols(b))}:function(b){return Object.getOwnPropertyNames(b)};var u=Number.isNaN||function(b){return b!=b};function c(){c.init.call(this)}n.exports=c,n.exports.once=function(b,k){return new Promise(function(T,x){function I(){C!==void 0&&b.removeListener("error",C),T([].slice.call(arguments))}var C;k!=="error"&&(C=function(R){b.removeListener(k,I),x(R)},b.once("error",C)),b.once(k,I)})},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var f=10;function d(b){if(typeof b!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof b)}function h(b){return b._maxListeners===void 0?c.defaultMaxListeners:b._maxListeners}function g(b,k,T,x){var I,C,R,D;if(d(T),(C=b._events)===void 0?(C=b._events=Object.create(null),b._eventsCount=0):(C.newListener!==void 0&&(b.emit("newListener",k,T.listener?T.listener:T),C=b._events),R=C[k]),R===void 0)R=C[k]=T,++b._eventsCount;else if(typeof R=="function"?R=C[k]=x?[T,R]:[R,T]:x?R.unshift(T):R.push(T),(I=h(b))>0&&R.length>I&&!R.warned){R.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(k)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=b,L.type=k,L.count=R.length,D=L,console&&console.warn&&console.warn(D)}return b}function v(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(b,k,T){var x={fired:!1,wrapFn:void 0,target:b,type:k,listener:T},I=v.bind(x);return I.listener=T,x.wrapFn=I,I}function E(b,k,T){var x=b._events;if(x===void 0)return[];var I=x[k];return I===void 0?[]:typeof I=="function"?T?[I.listener||I]:[I]:T?function(C){for(var R=new Array(C.length),D=0;D0&&(C=k[0]),C instanceof Error)throw C;var R=new Error("Unhandled error."+(C?" ("+C.message+")":""));throw R.context=C,R}var D=I[b];if(D===void 0)return!1;if(typeof D=="function")l(D,this,k);else{var L=D.length,M=S(D,L);for(T=0;T=0;C--)if(T[C]===k||T[C].listener===k){R=T[C].listener,I=C;break}if(I<0)return this;I===0?T.shift():function(D,L){for(;L+1=0;x--)this.removeListener(b,k[x]);return this},c.prototype.listeners=function(b){return E(this,b,!0)},c.prototype.rawListeners=function(b){return E(this,b,!1)},c.listenerCount=function(b,k){return typeof b.listenerCount=="function"?b.listenerCount(k):_.call(b,k)},c.prototype.listenerCount=_,c.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(n,o,i){n.exports.Dispatcher=i(140)},function(n,o,i){n.exports=i(142)},function(n,o,i){o.__esModule=!0;var s=u(i(50)),a=u(i(65)),l=typeof a.default=="function"&&typeof s.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof a.default=="function"&&c.constructor===a.default&&c!==a.default.prototype?"symbol":typeof c};function u(c){return c&&c.__esModule?c:{default:c}}o.default=typeof a.default=="function"&&l(s.default)==="symbol"?function(c){return c===void 0?"undefined":l(c)}:function(c){return c&&typeof a.default=="function"&&c.constructor===a.default&&c!==a.default.prototype?"symbol":c===void 0?"undefined":l(c)}},function(n,o,i){n.exports={default:i(51),__esModule:!0}},function(n,o,i){i(20),i(29),n.exports=i(30).f("iterator")},function(n,o,i){var s=i(21),a=i(22);n.exports=function(l){return function(u,c){var f,d,h=String(a(u)),g=s(c),v=h.length;return g<0||g>=v?l?"":void 0:(f=h.charCodeAt(g))<55296||f>56319||g+1===v||(d=h.charCodeAt(g+1))<56320||d>57343?l?h.charAt(g):f:l?h.slice(g,g+2):d-56320+(f-55296<<10)+65536}}},function(n,o,i){var s=i(54);n.exports=function(a,l,u){if(s(a),l===void 0)return a;switch(u){case 1:return function(c){return a.call(l,c)};case 2:return function(c,f){return a.call(l,c,f)};case 3:return function(c,f,d){return a.call(l,c,f,d)}}return function(){return a.apply(l,arguments)}}},function(n,o){n.exports=function(i){if(typeof i!="function")throw TypeError(i+" is not a function!");return i}},function(n,o,i){var s=i(38),a=i(16),l=i(28),u={};i(6)(u,i(2)("iterator"),function(){return this}),n.exports=function(c,f,d){c.prototype=s(u,{next:a(1,d)}),l(c,f+" Iterator")}},function(n,o,i){var s=i(7),a=i(10),l=i(13);n.exports=i(4)?Object.defineProperties:function(u,c){a(u);for(var f,d=l(c),h=d.length,g=0;h>g;)s.f(u,f=d[g++],c[f]);return u}},function(n,o,i){var s=i(9),a=i(58),l=i(59);n.exports=function(u){return function(c,f,d){var h,g=s(c),v=a(g.length),y=l(d,v);if(u&&f!=f){for(;v>y;)if((h=g[y++])!=h)return!0}else for(;v>y;y++)if((u||y in g)&&g[y]===f)return u||y||0;return!u&&-1}}},function(n,o,i){var s=i(21),a=Math.min;n.exports=function(l){return l>0?a(s(l),9007199254740991):0}},function(n,o,i){var s=i(21),a=Math.max,l=Math.min;n.exports=function(u,c){return(u=s(u))<0?a(u+c,0):l(u,c)}},function(n,o,i){var s=i(3).document;n.exports=s&&s.documentElement},function(n,o,i){var s=i(5),a=i(18),l=i(25)("IE_PROTO"),u=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=a(c),s(c,l)?c[l]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?u:null}},function(n,o,i){var s=i(63),a=i(64),l=i(12),u=i(9);n.exports=i(34)(Array,"Array",function(c,f){this._t=u(c),this._i=0,this._k=f},function(){var c=this._t,f=this._k,d=this._i++;return!c||d>=c.length?(this._t=void 0,a(1)):a(0,f=="keys"?d:f=="values"?c[d]:[d,c[d]])},"values"),l.Arguments=l.Array,s("keys"),s("values"),s("entries")},function(n,o){n.exports=function(){}},function(n,o){n.exports=function(i,s){return{value:s,done:!!i}}},function(n,o,i){n.exports={default:i(66),__esModule:!0}},function(n,o,i){i(67),i(73),i(74),i(75),n.exports=i(1).Symbol},function(n,o,i){var s=i(3),a=i(5),l=i(4),u=i(15),c=i(37),f=i(68).KEY,d=i(8),h=i(26),g=i(28),v=i(17),y=i(2),E=i(30),_=i(31),S=i(69),b=i(70),k=i(10),T=i(11),x=i(18),I=i(9),C=i(23),R=i(16),D=i(38),L=i(71),M=i(72),W=i(32),z=i(7),F=i(13),P=M.f,K=z.f,V=L.f,Z=s.Symbol,J=s.JSON,ee=J&&J.stringify,de=y("_hidden"),ge=y("toPrimitive"),Se={}.propertyIsEnumerable,Re=h("symbol-registry"),ve=h("symbols"),Ee=h("op-symbols"),me=Object.prototype,we=typeof Z=="function"&&!!W.f,Ge=s.QObject,nt=!Ge||!Ge.prototype||!Ge.prototype.findChild,Qe=l&&d(function(){return D(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a!=7})?function(se,pe,Oe){var je=P(me,pe);je&&delete me[pe],K(se,pe,Oe),je&&se!==me&&K(me,pe,je)}:K,Ze=function(se){var pe=ve[se]=D(Z.prototype);return pe._k=se,pe},Fe=we&&typeof Z.iterator=="symbol"?function(se){return typeof se=="symbol"}:function(se){return se instanceof Z},ot=function(se,pe,Oe){return se===me&&ot(Ee,pe,Oe),k(se),pe=C(pe,!0),k(Oe),a(ve,pe)?(Oe.enumerable?(a(se,de)&&se[de][pe]&&(se[de][pe]=!1),Oe=D(Oe,{enumerable:R(0,!1)})):(a(se,de)||K(se,de,R(1,{})),se[de][pe]=!0),Qe(se,pe,Oe)):K(se,pe,Oe)},Me=function(se,pe){k(se);for(var Oe,je=S(pe=I(pe)),ke=0,Ie=je.length;Ie>ke;)ot(se,Oe=je[ke++],pe[Oe]);return se},_t=function(se){var pe=Se.call(this,se=C(se,!0));return!(this===me&&a(ve,se)&&!a(Ee,se))&&(!(pe||!a(this,se)||!a(ve,se)||a(this,de)&&this[de][se])||pe)},qt=function(se,pe){if(se=I(se),pe=C(pe,!0),se!==me||!a(ve,pe)||a(Ee,pe)){var Oe=P(se,pe);return!Oe||!a(ve,pe)||a(se,de)&&se[de][pe]||(Oe.enumerable=!0),Oe}},Nt=function(se){for(var pe,Oe=V(I(se)),je=[],ke=0;Oe.length>ke;)a(ve,pe=Oe[ke++])||pe==de||pe==f||je.push(pe);return je},ut=function(se){for(var pe,Oe=se===me,je=V(Oe?Ee:I(se)),ke=[],Ie=0;je.length>Ie;)!a(ve,pe=je[Ie++])||Oe&&!a(me,pe)||ke.push(ve[pe]);return ke};we||(c((Z=function(){if(this instanceof Z)throw TypeError("Symbol is not a constructor!");var se=v(arguments.length>0?arguments[0]:void 0),pe=function(Oe){this===me&&pe.call(Ee,Oe),a(this,de)&&a(this[de],se)&&(this[de][se]=!1),Qe(this,se,R(1,Oe))};return l&&nt&&Qe(me,se,{configurable:!0,set:pe}),Ze(se)}).prototype,"toString",function(){return this._k}),M.f=qt,z.f=ot,i(41).f=L.f=Nt,i(19).f=_t,W.f=ut,l&&!i(14)&&c(me,"propertyIsEnumerable",_t,!0),E.f=function(se){return Ze(y(se))}),u(u.G+u.W+u.F*!we,{Symbol:Z});for(var xe="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Ue=0;xe.length>Ue;)y(xe[Ue++]);for(var Xt=F(y.store),he=0;Xt.length>he;)_(Xt[he++]);u(u.S+u.F*!we,"Symbol",{for:function(se){return a(Re,se+="")?Re[se]:Re[se]=Z(se)},keyFor:function(se){if(!Fe(se))throw TypeError(se+" is not a symbol!");for(var pe in Re)if(Re[pe]===se)return pe},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),u(u.S+u.F*!we,"Object",{create:function(se,pe){return pe===void 0?D(se):Me(D(se),pe)},defineProperty:ot,defineProperties:Me,getOwnPropertyDescriptor:qt,getOwnPropertyNames:Nt,getOwnPropertySymbols:ut});var le=d(function(){W.f(1)});u(u.S+u.F*le,"Object",{getOwnPropertySymbols:function(se){return W.f(x(se))}}),J&&u(u.S+u.F*(!we||d(function(){var se=Z();return ee([se])!="[null]"||ee({a:se})!="{}"||ee(Object(se))!="{}"})),"JSON",{stringify:function(se){for(var pe,Oe,je=[se],ke=1;arguments.length>ke;)je.push(arguments[ke++]);if(Oe=pe=je[1],(T(pe)||se!==void 0)&&!Fe(se))return b(pe)||(pe=function(Ie,$e){if(typeof Oe=="function"&&($e=Oe.call(this,Ie,$e)),!Fe($e))return $e}),je[1]=pe,ee.apply(J,je)}}),Z.prototype[ge]||i(6)(Z.prototype,ge,Z.prototype.valueOf),g(Z,"Symbol"),g(Math,"Math",!0),g(s.JSON,"JSON",!0)},function(n,o,i){var s=i(17)("meta"),a=i(11),l=i(5),u=i(7).f,c=0,f=Object.isExtensible||function(){return!0},d=!i(8)(function(){return f(Object.preventExtensions({}))}),h=function(v){u(v,s,{value:{i:"O"+ ++c,w:{}}})},g=n.exports={KEY:s,NEED:!1,fastKey:function(v,y){if(!a(v))return typeof v=="symbol"?v:(typeof v=="string"?"S":"P")+v;if(!l(v,s)){if(!f(v))return"F";if(!y)return"E";h(v)}return v[s].i},getWeak:function(v,y){if(!l(v,s)){if(!f(v))return!0;if(!y)return!1;h(v)}return v[s].w},onFreeze:function(v){return d&&g.NEED&&f(v)&&!l(v,s)&&h(v),v}}},function(n,o,i){var s=i(13),a=i(32),l=i(19);n.exports=function(u){var c=s(u),f=a.f;if(f)for(var d,h=f(u),g=l.f,v=0;h.length>v;)g.call(u,d=h[v++])&&c.push(d);return c}},function(n,o,i){var s=i(24);n.exports=Array.isArray||function(a){return s(a)=="Array"}},function(n,o,i){var s=i(9),a=i(41).f,l={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];n.exports.f=function(c){return u&&l.call(c)=="[object Window]"?function(f){try{return a(f)}catch{return u.slice()}}(c):a(s(c))}},function(n,o,i){var s=i(19),a=i(16),l=i(9),u=i(23),c=i(5),f=i(35),d=Object.getOwnPropertyDescriptor;o.f=i(4)?d:function(h,g){if(h=l(h),g=u(g,!0),f)try{return d(h,g)}catch{}if(c(h,g))return a(!s.f.call(h,g),h[g])}},function(n,o){},function(n,o,i){i(31)("asyncIterator")},function(n,o,i){i(31)("observable")},function(n,o,i){o.__esModule=!0;var s,a=i(77),l=(s=a)&&s.__esModule?s:{default:s};o.default=l.default||function(u){for(var c=1;cE;)for(var b,k=f(arguments[E++]),T=_?a(k).concat(_(k)):a(k),x=T.length,I=0;x>I;)b=T[I++],s&&!S.call(k,b)||(v[b]=k[b]);return v}:d},function(n,o,i){o.__esModule=!0;var s=l(i(82)),a=l(i(85));function l(u){return u&&u.__esModule?u:{default:u}}o.default=function(u,c){if(Array.isArray(u))return u;if((0,s.default)(Object(u)))return function(f,d){var h=[],g=!0,v=!1,y=void 0;try{for(var E,_=(0,a.default)(f);!(g=(E=_.next()).done)&&(h.push(E.value),!d||h.length!==d);g=!0);}catch(S){v=!0,y=S}finally{try{!g&&_.return&&_.return()}finally{if(v)throw y}}return h}(u,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(n,o,i){n.exports={default:i(83),__esModule:!0}},function(n,o,i){i(29),i(20),n.exports=i(84)},function(n,o,i){var s=i(42),a=i(2)("iterator"),l=i(12);n.exports=i(1).isIterable=function(u){var c=Object(u);return c[a]!==void 0||"@@iterator"in c||l.hasOwnProperty(s(c))}},function(n,o,i){n.exports={default:i(86),__esModule:!0}},function(n,o,i){i(29),i(20),n.exports=i(87)},function(n,o,i){var s=i(10),a=i(88);n.exports=i(1).getIterator=function(l){var u=a(l);if(typeof u!="function")throw TypeError(l+" is not iterable!");return s(u.call(l))}},function(n,o,i){var s=i(42),a=i(2)("iterator"),l=i(12);n.exports=i(1).getIteratorMethod=function(u){if(u!=null)return u[a]||u["@@iterator"]||l[s(u)]}},function(n,o,i){n.exports={default:i(90),__esModule:!0}},function(n,o,i){i(91),n.exports=i(1).Object.keys},function(n,o,i){var s=i(18),a=i(13);i(92)("keys",function(){return function(l){return a(s(l))}})},function(n,o,i){var s=i(15),a=i(1),l=i(8);n.exports=function(u,c){var f=(a.Object||{})[u]||Object[u],d={};d[u]=c(f),s(s.S+s.F*l(function(){f(1)}),"Object",d)}},function(n,o,i){(function(s){var a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l=/^\s+|\s+$/g,u=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c=/\{\n\/\* \[wrapped with (.+)\] \*/,f=/,? & /,d=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,g=/^\[object .+?Constructor\]$/,v=/^0o[0-7]+$/i,y=/^(?:0|[1-9]\d*)$/,E=parseInt,_=typeof s=="object"&&s&&s.Object===Object&&s,S=typeof self=="object"&&self&&self.Object===Object&&self,b=_||S||Function("return this")();function k(he,le,se){switch(se.length){case 0:return he.call(le);case 1:return he.call(le,se[0]);case 2:return he.call(le,se[0],se[1]);case 3:return he.call(le,se[0],se[1],se[2])}return he.apply(le,se)}function T(he,le){return!!(he&&he.length)&&function(se,pe,Oe){if(pe!=pe)return function(Ie,$e,lt,mt){for(var Rt=Ie.length,hr=lt+(mt?1:-1);mt?hr--:++hr-1}function x(he){return he!=he}function I(he,le){for(var se=he.length,pe=0;se--;)he[se]===le&&pe++;return pe}function C(he,le){for(var se=-1,pe=he.length,Oe=0,je=[];++se2?D:void 0);function Se(he){return xe(he)?J(he):{}}function Re(he){return!(!xe(he)||function(le){return!!F&&F in le}(he))&&(function(le){var se=xe(le)?V.call(le):"";return se=="[object Function]"||se=="[object GeneratorFunction]"}(he)||function(le){var se=!1;if(le!=null&&typeof le.toString!="function")try{se=!!(le+"")}catch{}return se}(he)?Z:g).test(function(le){if(le!=null){try{return P.call(le)}catch{}try{return le+""}catch{}}return""}(he))}function ve(he,le,se,pe){for(var Oe=-1,je=he.length,ke=se.length,Ie=-1,$e=le.length,lt=ee(je-ke,0),mt=Array($e+lt),Rt=!pe;++Ie<$e;)mt[Ie]=le[Ie];for(;++Oe1&&Ot.reverse(),mt&&$e1?"& ":"")+le[pe],le=le.join(se>2?", ":" "),he.replace(u,`{ /* [wrapped with `+le+`] */ -`)}function Me(he,le){return!!(le=le??9007199254740991)&&(typeof he=="number"||y.test(he))&&he>-1&&he%1==0&&he1&&l--,c=6*l<1?s+6*(a-s)*l:2*l<1?a:3*l<2?s+(a-s)*(2/3-l)*6:s,u[g]=255*c;return u}},function(n,o,i){(function(s){var a=typeof s=="object"&&s&&s.Object===Object&&s,l=typeof self=="object"&&self&&self.Object===Object&&self,u=a||l||Function("return this")();function c(C,R,D){switch(D.length){case 0:return C.call(R);case 1:return C.call(R,D[0]);case 2:return C.call(R,D[0],D[1]);case 3:return C.call(R,D[0],D[1],D[2])}return C.apply(R,D)}function f(C,R){for(var D=-1,L=R.length,M=C.length;++D-1&&M%1==0&&M<=9007199254740991}(L.length)&&!function(M){var W=function(z){var F=typeof z;return!!z&&(F=="object"||F=="function")}(M)?g.call(M):"";return W=="[object Function]"||W=="[object GeneratorFunction]"}(L)}(D)}(R)&&h.call(R,"callee")&&(!y.call(R,"callee")||g.call(R)=="[object Arguments]")}(C)||!!(E&&C&&C[E])}var b=Array.isArray,k,T,x,I=(T=function(C){var R=(C=function L(M,W,z,F,P){var K=-1,V=M.length;for(z||(z=S),P||(P=[]);++K0&&z(Z)?W>1?L(Z,W-1,z,F,P):f(P,Z):F||(P[P.length]=Z)}return P}(C,1)).length,D=R;for(k;D--;)if(typeof C[D]!="function")throw new TypeError("Expected a function");return function(){for(var L=0,M=R?C[L].apply(this,arguments):arguments[0];++L2?l-2:0),c=2;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var $,q=g(Y);if(X){var B=g(this).constructor;$=Reflect.construct(q,arguments,B)}else $=q.apply(this,arguments);return E(this,$)}}i.r(o);var S=i(0),b=i.n(S);function k(){var Y=this.constructor.getDerivedStateFromProps(this.props,this.state);Y!=null&&this.setState(Y)}function T(Y){this.setState((function(X){var $=this.constructor.getDerivedStateFromProps(Y,X);return $??null}).bind(this))}function x(Y,X){try{var $=this.props,q=this.state;this.props=Y,this.state=X,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate($,q)}finally{this.props=$,this.state=q}}function I(Y){var X=Y.prototype;if(!X||!X.isReactComponent)throw new Error("Can only polyfill class components");if(typeof Y.getDerivedStateFromProps!="function"&&typeof X.getSnapshotBeforeUpdate!="function")return Y;var $=null,q=null,B=null;if(typeof X.componentWillMount=="function"?$="componentWillMount":typeof X.UNSAFE_componentWillMount=="function"&&($="UNSAFE_componentWillMount"),typeof X.componentWillReceiveProps=="function"?q="componentWillReceiveProps":typeof X.UNSAFE_componentWillReceiveProps=="function"&&(q="UNSAFE_componentWillReceiveProps"),typeof X.componentWillUpdate=="function"?B="componentWillUpdate":typeof X.UNSAFE_componentWillUpdate=="function"&&(B="UNSAFE_componentWillUpdate"),$!==null||q!==null||B!==null){var Q=Y.displayName||Y.name,ie=typeof Y.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. +`)}function Me(he,le){return!!(le=le??9007199254740991)&&(typeof he=="number"||y.test(he))&&he>-1&&he%1==0&&he1&&l--,c=6*l<1?s+6*(a-s)*l:2*l<1?a:3*l<2?s+(a-s)*(2/3-l)*6:s,u[g]=255*c;return u}},function(n,o,i){(function(s){var a=typeof s=="object"&&s&&s.Object===Object&&s,l=typeof self=="object"&&self&&self.Object===Object&&self,u=a||l||Function("return this")();function c(C,R,D){switch(D.length){case 0:return C.call(R);case 1:return C.call(R,D[0]);case 2:return C.call(R,D[0],D[1]);case 3:return C.call(R,D[0],D[1],D[2])}return C.apply(R,D)}function f(C,R){for(var D=-1,L=R.length,M=C.length;++D-1&&M%1==0&&M<=9007199254740991}(L.length)&&!function(M){var W=function(z){var F=typeof z;return!!z&&(F=="object"||F=="function")}(M)?g.call(M):"";return W=="[object Function]"||W=="[object GeneratorFunction]"}(L)}(D)}(R)&&h.call(R,"callee")&&(!y.call(R,"callee")||g.call(R)=="[object Arguments]")}(C)||!!(E&&C&&C[E])}var b=Array.isArray,k,T,x,I=(T=function(C){var R=(C=function L(M,W,z,F,P){var K=-1,V=M.length;for(z||(z=S),P||(P=[]);++K0&&z(Z)?W>1?L(Z,W-1,z,F,P):f(P,Z):F||(P[P.length]=Z)}return P}(C,1)).length,D=R;for(k;D--;)if(typeof C[D]!="function")throw new TypeError("Expected a function");return function(){for(var L=0,M=R?C[L].apply(this,arguments):arguments[0];++L2?l-2:0),c=2;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var $,q=g(Y);if(X){var B=g(this).constructor;$=Reflect.construct(q,arguments,B)}else $=q.apply(this,arguments);return E(this,$)}}i.r(o);var S=i(0),b=i.n(S);function k(){var Y=this.constructor.getDerivedStateFromProps(this.props,this.state);Y!=null&&this.setState(Y)}function T(Y){this.setState((function(X){var $=this.constructor.getDerivedStateFromProps(Y,X);return $??null}).bind(this))}function x(Y,X){try{var $=this.props,q=this.state;this.props=Y,this.state=X,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate($,q)}finally{this.props=$,this.state=q}}function I(Y){var X=Y.prototype;if(!X||!X.isReactComponent)throw new Error("Can only polyfill class components");if(typeof Y.getDerivedStateFromProps!="function"&&typeof X.getSnapshotBeforeUpdate!="function")return Y;var $=null,q=null,B=null;if(typeof X.componentWillMount=="function"?$="componentWillMount":typeof X.UNSAFE_componentWillMount=="function"&&($="UNSAFE_componentWillMount"),typeof X.componentWillReceiveProps=="function"?q="componentWillReceiveProps":typeof X.UNSAFE_componentWillReceiveProps=="function"&&(q="UNSAFE_componentWillReceiveProps"),typeof X.componentWillUpdate=="function"?B="componentWillUpdate":typeof X.UNSAFE_componentWillUpdate=="function"&&(B="UNSAFE_componentWillUpdate"),$!==null||q!==null||B!==null){var Q=Y.displayName||Y.name,ie=typeof Y.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. `+Q+" uses "+ie+" but also contains the following legacy lifecycles:"+($!==null?` `+$:"")+(q!==null?` @@ -461,8 +461,8 @@ PERFORMANCE OF THIS SOFTWARE. The above lifecycles should be removed. Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof Y.getDerivedStateFromProps=="function"&&(X.componentWillMount=k,X.componentWillReceiveProps=T),typeof X.getSnapshotBeforeUpdate=="function"){if(typeof X.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");X.componentWillUpdate=x;var ae=X.componentDidUpdate;X.componentDidUpdate=function(ne,ye,Pe){var xt=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Pe;ae.call(this,ne,ye,xt)}}return Y}function C(Y,X){if(Y==null)return{};var $,q,B=function(ie,ae){if(ie==null)return{};var ne,ye,Pe={},xt=Object.keys(ie);for(ye=0;ye=0||(Pe[ne]=ie[ne]);return Pe}(Y,X);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(Y);for(q=0;q=0||Object.prototype.propertyIsEnumerable.call(Y,$)&&(B[$]=Y[$])}return B}function R(Y){var X=function($){return{}.toString.call($).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(Y);return X==="number"&&(X=isNaN(Y)?"nan":(0|Y)!=Y?"float":"integer"),X}k.__suppressDeprecationWarning=!0,T.__suppressDeprecationWarning=!0,x.__suppressDeprecationWarning=!0;var D={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},L={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},M={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},W=i(45),z=function(Y){var X=function($){return{backgroundColor:$.base00,ellipsisColor:$.base09,braceColor:$.base07,expandedIcon:$.base0D,collapsedIcon:$.base0E,keyColor:$.base07,arrayKeyColor:$.base0C,objectSize:$.base04,copyToClipboard:$.base0F,copyToClipboardCheck:$.base0D,objectBorder:$.base02,dataTypes:{boolean:$.base0E,date:$.base0D,float:$.base0B,function:$.base0D,integer:$.base0F,string:$.base09,nan:$.base08,null:$.base0A,undefined:$.base05,regexp:$.base0A,background:$.base02},editVariable:{editIcon:$.base0E,cancelIcon:$.base09,removeIcon:$.base09,addIcon:$.base0E,checkIcon:$.base0E,background:$.base01,color:$.base0A,border:$.base07},addKeyModal:{background:$.base05,border:$.base04,color:$.base0A,labelColor:$.base01},validationFailure:{background:$.base09,iconColor:$.base01,fontColor:$.base01}}}(Y);return{"app-container":{fontFamily:M.globalFontFamily,cursor:M.globalCursor,backgroundColor:X.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:X.ellipsisColor,fontSize:M.ellipsisFontSize,lineHeight:M.ellipsisLineHeight,cursor:M.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:M.braceCursor,fontWeight:M.braceFontWeight,color:X.braceColor},"expanded-icon":{color:X.expandedIcon},"collapsed-icon":{color:X.collapsedIcon},colon:{display:"inline-block",margin:M.keyMargin,color:X.keyColor,verticalAlign:"top"},objectKeyVal:function($,q){return{style:l({paddingTop:M.keyValPaddingTop,paddingRight:M.keyValPaddingRight,paddingBottom:M.keyValPaddingBottom,borderLeft:M.keyValBorderLeft+" "+X.objectBorder,":hover":{paddingLeft:q.paddingLeft-1+"px",borderLeft:M.keyValBorderHover+" "+X.objectBorder}},q)}},"object-key-val-no-border":{padding:M.keyValPadding},"pushed-content":{marginLeft:M.pushedContentMarginLeft},variableValue:function($,q){return{style:l({display:"inline-block",paddingRight:M.variableValuePaddingRight,position:"relative"},q)}},"object-name":{display:"inline-block",color:X.keyColor,letterSpacing:M.keyLetterSpacing,fontStyle:M.keyFontStyle,verticalAlign:M.keyVerticalAlign,opacity:M.keyOpacity,":hover":{opacity:M.keyOpacityHover}},"array-key":{display:"inline-block",color:X.arrayKeyColor,letterSpacing:M.keyLetterSpacing,fontStyle:M.keyFontStyle,verticalAlign:M.keyVerticalAlign,opacity:M.keyOpacity,":hover":{opacity:M.keyOpacityHover}},"object-size":{color:X.objectSize,borderRadius:M.objectSizeBorderRadius,fontStyle:M.objectSizeFontStyle,margin:M.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:M.dataTypeFontSize,marginRight:M.dataTypeMarginRight,opacity:M.datatypeOpacity},boolean:{display:"inline-block",color:X.dataTypes.boolean},date:{display:"inline-block",color:X.dataTypes.date},"date-value":{marginLeft:M.dateValueMarginLeft},float:{display:"inline-block",color:X.dataTypes.float},function:{display:"inline-block",color:X.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:X.dataTypes.integer},string:{display:"inline-block",color:X.dataTypes.string},nan:{display:"inline-block",color:X.dataTypes.nan,fontSize:M.nanFontSize,fontWeight:M.nanFontWeight,backgroundColor:X.dataTypes.background,padding:M.nanPadding,borderRadius:M.nanBorderRadius},null:{display:"inline-block",color:X.dataTypes.null,fontSize:M.nullFontSize,fontWeight:M.nullFontWeight,backgroundColor:X.dataTypes.background,padding:M.nullPadding,borderRadius:M.nullBorderRadius},undefined:{display:"inline-block",color:X.dataTypes.undefined,fontSize:M.undefinedFontSize,padding:M.undefinedPadding,borderRadius:M.undefinedBorderRadius,backgroundColor:X.dataTypes.background},regexp:{display:"inline-block",color:X.dataTypes.regexp},"copy-to-clipboard":{cursor:M.clipboardCursor},"copy-icon":{color:X.copyToClipboard,fontSize:M.iconFontSize,marginRight:M.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:X.copyToClipboardCheck,marginLeft:M.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:M.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:M.metaDataPadding},"icon-container":{display:"inline-block",width:M.iconContainerWidth},tooltip:{padding:M.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:X.editVariable.removeIcon,cursor:M.iconCursor,fontSize:M.iconFontSize,marginRight:M.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:X.editVariable.addIcon,cursor:M.iconCursor,fontSize:M.iconFontSize,marginRight:M.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:X.editVariable.editIcon,cursor:M.iconCursor,fontSize:M.iconFontSize,marginRight:M.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:M.iconCursor,color:X.editVariable.checkIcon,fontSize:M.iconFontSize,paddingRight:M.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:M.iconCursor,color:X.editVariable.cancelIcon,fontSize:M.iconFontSize,paddingRight:M.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:M.editInputMinWidth,borderRadius:M.editInputBorderRadius,backgroundColor:X.editVariable.background,color:X.editVariable.color,padding:M.editInputPadding,marginRight:M.editInputMarginRight,fontFamily:M.editInputFontFamily},"detected-row":{paddingTop:M.detectedRowPaddingTop},"key-modal-request":{position:M.addKeyCoverPosition,top:M.addKeyCoverPositionPx,left:M.addKeyCoverPositionPx,right:M.addKeyCoverPositionPx,bottom:M.addKeyCoverPositionPx,backgroundColor:M.addKeyCoverBackground},"key-modal":{width:M.addKeyModalWidth,backgroundColor:X.addKeyModal.background,marginLeft:M.addKeyModalMargin,marginRight:M.addKeyModalMargin,padding:M.addKeyModalPadding,borderRadius:M.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:X.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:X.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:X.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:X.addKeyModal.labelColor,fontSize:M.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:X.editVariable.addIcon,fontSize:M.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:X.ellipsisColor,fontSize:M.ellipsisFontSize,lineHeight:M.ellipsisLineHeight,cursor:M.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:X.validationFailure.fontColor,backgroundColor:X.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:X.validationFailure.iconColor,fontSize:M.iconFontSize,transform:"rotate(45deg)"}}};function F(Y,X,$){return Y||console.error("theme has not been set"),function(q){var B=D;return q!==!1&&q!=="none"||(B=L),Object(W.createStyling)(z,{defaultBase16:B})(q)}(Y)(X,$)}var P=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=(q.rjvId,q.type_name),Q=q.displayDataTypes,ie=q.theme;return Q?b.a.createElement("span",Object.assign({className:"data-type-label"},F(ie,"data-type-label")),B):null}}]),$}(b.a.PureComponent),K=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props;return b.a.createElement("div",F(q.theme,"boolean"),b.a.createElement(P,Object.assign({type_name:"bool"},q)),q.value?"true":"false")}}]),$}(b.a.PureComponent),V=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props;return b.a.createElement("div",F(q.theme,"date"),b.a.createElement(P,Object.assign({type_name:"date"},q)),b.a.createElement("span",Object.assign({className:"date-value"},F(q.theme,"date-value")),q.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),$}(b.a.PureComponent),Z=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props;return b.a.createElement("div",F(q.theme,"float"),b.a.createElement(P,Object.assign({type_name:"float"},q)),this.props.value)}}]),$}(b.a.PureComponent);function J(Y,X){(X==null||X>Y.length)&&(X=Y.length);for(var $=0,q=new Array(X);$"u"||Y[Symbol.iterator]==null){if(Array.isArray(Y)||($=ee(Y))||X&&Y&&typeof Y.length=="number"){$&&(Y=$);var q=0,B=function(){};return{s:B,n:function(){return q>=Y.length?{done:!0}:{done:!1,value:Y[q++]}},e:function(ne){throw ne},f:B}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Q,ie=!0,ae=!1;return{s:function(){$=Y[Symbol.iterator]()},n:function(){var ne=$.next();return ie=ne.done,ne},e:function(ne){ae=!0,Q=ne},f:function(){try{ie||$.return==null||$.return()}finally{if(ae)throw Q}}}}function ge(Y){return function(X){if(Array.isArray(X))return J(X)}(Y)||function(X){if(typeof Symbol<"u"&&Symbol.iterator in Object(X))return Array.from(X)}(Y)||ee(Y)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Se=i(46),Re=new(i(47)).Dispatcher,ve=new(function(Y){h($,Y);var X=_($);function $(){var q;u(this,$);for(var B=arguments.length,Q=new Array(B),ie=0;ieB&&(ae.style.cursor="pointer",this.state.collapsed&&(ie=b.a.createElement("span",null,ie.substring(0,B),b.a.createElement("span",F(Q,"ellipsis")," ...")))),b.a.createElement("div",F(Q,"string"),b.a.createElement(P,Object.assign({type_name:"string"},q)),b.a.createElement("span",Object.assign({className:"string-value"},ae,{onClick:this.toggleCollapsed}),'"',ie,'"'))}}]),$}(b.a.PureComponent),Fe=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){return b.a.createElement("div",F(this.props.theme,"undefined"),"undefined")}}]),$}(b.a.PureComponent);function ot(){return(ot=Object.assign||function(Y){for(var X=1;X=0||(Bl[yo]=Ft[yo]);return Bl}(Y,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Pe,xt=ye.value!==void 0,Dt=Object(S.useRef)(null),wt=Nt(Dt,X),Et=Object(S.useRef)(0),Gt=Object(S.useRef)(),$r=function(){var Ft=Dt.current,En=$&&Gt.current?Gt.current:function(Us){var Oc=window.getComputedStyle(Us);if(Oc===null)return null;var Ml,so=(Ml=Oc,he.reduce(function(Dc,Ll){return Dc[Ll]=Ml[Ll],Dc},{})),za=so.boxSizing;return za===""?null:(le&&za==="border-box"&&(so.width=parseFloat(so.width)+parseFloat(so.borderRightWidth)+parseFloat(so.borderLeftWidth)+parseFloat(so.paddingRight)+parseFloat(so.paddingLeft)+"px"),{sizingStyle:so,paddingSize:parseFloat(so.paddingBottom)+parseFloat(so.paddingTop),borderSize:parseFloat(so.borderBottomWidth)+parseFloat(so.borderTopWidth)})}(Ft);if(En){Gt.current=En;var yo=function(Us,Oc,Ml,so){Ml===void 0&&(Ml=1),so===void 0&&(so=1/0),Ve||((Ve=document.createElement("textarea")).setAttribute("tab-index","-1"),Ve.setAttribute("aria-hidden","true"),xe(Ve)),Ve.parentNode===null&&document.body.appendChild(Ve);var za=Us.paddingSize,Dc=Us.borderSize,Ll=Us.sizingStyle,Fc=Ll.boxSizing;Object.keys(Ll).forEach(function(Mc){var Cu=Mc;Ve.style[Cu]=Ll[Cu]}),xe(Ve),Ve.value=Oc;var jl=function(Mc,Cu){var Nu=Mc.scrollHeight;return Cu.sizingStyle.boxSizing==="border-box"?Nu+Cu.borderSize:Nu-Cu.paddingSize}(Ve,Us);Ve.value="x";var Vf=Ve.scrollHeight-za,Iu=Vf*Ml;Fc==="border-box"&&(Iu=Iu+za+Dc),jl=Math.max(Iu,jl);var Bc=Vf*so;return Fc==="border-box"&&(Bc=Bc+za+Dc),[jl=Math.min(Bc,jl),Vf]}(En,Ft.value||Ft.placeholder||"x",B,q),$i=yo[0],Bl=yo[1];Et.current!==$i&&(Et.current=$i,Ft.style.setProperty("height",$i+"px","important"),ne($i,{rowHeight:Bl}))}};return Object(S.useLayoutEffect)($r),Pe=_t($r),Object(S.useLayoutEffect)(function(){var Ft=function(En){Pe.current(En)};return window.addEventListener("resize",Ft),function(){window.removeEventListener("resize",Ft)}},[]),Object(S.createElement)("textarea",ot({},ye,{onChange:function(Ft){xt||$r(),ie(Ft)},ref:wt}))},pe=Object(S.forwardRef)(se);function Oe(Y){Y=Y.trim();try{if((Y=JSON.stringify(JSON.parse(Y)))[0]==="[")return je("array",JSON.parse(Y));if(Y[0]==="{")return je("object",JSON.parse(Y));if(Y.match(/\-?\d+\.\d+/)&&Y.match(/\-?\d+\.\d+/)[0]===Y)return je("float",parseFloat(Y));if(Y.match(/\-?\d+e-\d+/)&&Y.match(/\-?\d+e-\d+/)[0]===Y)return je("float",Number(Y));if(Y.match(/\-?\d+/)&&Y.match(/\-?\d+/)[0]===Y)return je("integer",parseInt(Y));if(Y.match(/\-?\d+e\+\d+/)&&Y.match(/\-?\d+e\+\d+/)[0]===Y)return je("integer",Number(Y))}catch{}switch(Y=Y.toLowerCase()){case"undefined":return je("undefined",void 0);case"nan":return je("nan",NaN);case"null":return je("null",null);case"true":return je("boolean",!0);case"false":return je("boolean",!1);default:if(Y=Date.parse(Y))return je("date",new Date(Y))}return je(!1,null)}function je(Y,X){return{type:Y,value:X}}var ke=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",Object.assign({},Ot(B),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),$}(b.a.PureComponent),Ie=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",Object.assign({},Ot(B),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),$}(b.a.PureComponent),$e=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]),ie=Ot(B).style;return b.a.createElement("span",Q,b.a.createElement("svg",{fill:ie.color,width:ie.height,height:ie.width,style:ie,viewBox:"0 0 1792 1792"},b.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),$}(b.a.PureComponent),lt=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]),ie=Ot(B).style;return b.a.createElement("span",Q,b.a.createElement("svg",{fill:ie.color,width:ie.height,height:ie.width,style:ie,viewBox:"0 0 1792 1792"},b.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),$}(b.a.PureComponent),mt=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",{style:l(l({},Ot(B).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},b.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),$}(b.a.PureComponent),Rt=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",{style:l(l({},Ot(B).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},b.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),$}(b.a.PureComponent),dr=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",Object.assign({},Ot(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),$}(b.a.PureComponent),Cr=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",Object.assign({},Ot(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),$}(b.a.PureComponent),Lt=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",Object.assign({},Ot(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),$}(b.a.PureComponent),Wr=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",Object.assign({},Ot(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),$}(b.a.PureComponent),dn=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",Object.assign({},Ot(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),$}(b.a.PureComponent),tr=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",Object.assign({},Ot(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),$}(b.a.PureComponent);function Ot(Y){return Y||(Y={}),{style:l(l({verticalAlign:"middle"},Y),{},{color:Y.color?Y.color:"#000000",height:"1em",width:"1em"})}}var Gr=function(Y){h($,Y);var X=_($);function $(q){var B;return u(this,$),(B=X.call(this,q)).copiedTimer=null,B.handleCopy=function(){var Q=document.createElement("textarea"),ie=B.props,ae=ie.clickCallback,ne=ie.src,ye=ie.namespace;Q.innerHTML=JSON.stringify(B.clipboardValue(ne),null," "),document.body.appendChild(Q),Q.select(),document.execCommand("copy"),document.body.removeChild(Q),B.copiedTimer=setTimeout(function(){B.setState({copied:!1})},5500),B.setState({copied:!0},function(){typeof ae=="function"&&ae({src:ne,namespace:ye,name:ye[ye.length-1]})})},B.getClippyIcon=function(){var Q=B.props.theme;return B.state.copied?b.a.createElement("span",null,b.a.createElement(dr,Object.assign({className:"copy-icon"},F(Q,"copy-icon"))),b.a.createElement("span",F(Q,"copy-icon-copied"),"✔")):b.a.createElement(dr,Object.assign({className:"copy-icon"},F(Q,"copy-icon")))},B.clipboardValue=function(Q){switch(R(Q)){case"function":case"regexp":return Q.toString();default:return Q}},B.state={copied:!1},B}return f($,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var q=this.props,B=(q.src,q.theme),Q=q.hidden,ie=q.rowHovered,ae=F(B,"copy-to-clipboard").style,ne="inline";return Q&&(ne="none"),b.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:ie?"inline-block":"none"}},b.a.createElement("span",{style:l(l({},ae),{},{display:ne}),onClick:this.handleCopy},this.getClippyIcon()))}}]),$}(b.a.PureComponent),Nr=function(Y){h($,Y);var X=_($);function $(q){var B;return u(this,$),(B=X.call(this,q)).getEditIcon=function(){var Q=B.props,ie=Q.variable,ae=Q.theme;return b.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:B.state.hovered?"inline-block":"none"}},b.a.createElement(dn,Object.assign({className:"click-to-edit-icon"},F(ae,"editVarIcon"),{onClick:function(){B.prepopInput(ie)}})))},B.prepopInput=function(Q){if(B.props.onEdit!==!1){var ie=function(ne){var ye;switch(R(ne)){case"undefined":ye="undefined";break;case"nan":ye="NaN";break;case"string":ye=ne;break;case"date":case"function":case"regexp":ye=ne.toString();break;default:try{ye=JSON.stringify(ne,null," ")}catch{ye=""}}return ye}(Q.value),ae=Oe(ie);B.setState({editMode:!0,editValue:ie,parsedInput:{type:ae.type,value:ae.value}})}},B.getRemoveIcon=function(){var Q=B.props,ie=Q.variable,ae=Q.namespace,ne=Q.theme,ye=Q.rjvId;return b.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:B.state.hovered?"inline-block":"none"}},b.a.createElement(Cr,Object.assign({className:"click-to-remove-icon"},F(ne,"removeVarIcon"),{onClick:function(){Re.dispatch({name:"VARIABLE_REMOVED",rjvId:ye,data:{name:ie.name,namespace:ae,existing_value:ie.value,variable_removed:!0}})}})))},B.getValue=function(Q,ie){var ae=!ie&&Q.type,ne=y(B).props;switch(ae){case!1:return B.getEditInput();case"string":return b.a.createElement(Ze,Object.assign({value:Q.value},ne));case"integer":return b.a.createElement(nt,Object.assign({value:Q.value},ne));case"float":return b.a.createElement(Z,Object.assign({value:Q.value},ne));case"boolean":return b.a.createElement(K,Object.assign({value:Q.value},ne));case"function":return b.a.createElement(me,Object.assign({value:Q.value},ne));case"null":return b.a.createElement(Ge,ne);case"nan":return b.a.createElement(we,ne);case"undefined":return b.a.createElement(Fe,ne);case"date":return b.a.createElement(V,Object.assign({value:Q.value},ne));case"regexp":return b.a.createElement(Qe,Object.assign({value:Q.value},ne));default:return b.a.createElement("div",{className:"object-value"},JSON.stringify(Q.value))}},B.getEditInput=function(){var Q=B.props.theme,ie=B.state.editValue;return b.a.createElement("div",null,b.a.createElement(pe,Object.assign({type:"text",inputRef:function(ae){return ae&&ae.focus()},value:ie,className:"variable-editor",onChange:function(ae){var ne=ae.target.value,ye=Oe(ne);B.setState({editValue:ne,parsedInput:{type:ye.type,value:ye.value}})},onKeyDown:function(ae){switch(ae.key){case"Escape":B.setState({editMode:!1,editValue:""});break;case"Enter":(ae.ctrlKey||ae.metaKey)&&B.submitEdit(!0)}ae.stopPropagation()},placeholder:"update this value",minRows:2},F(Q,"edit-input"))),b.a.createElement("div",F(Q,"edit-icon-container"),b.a.createElement(Cr,Object.assign({className:"edit-cancel"},F(Q,"cancel-icon"),{onClick:function(){B.setState({editMode:!1,editValue:""})}})),b.a.createElement(tr,Object.assign({className:"edit-check string-value"},F(Q,"check-icon"),{onClick:function(){B.submitEdit()}})),b.a.createElement("div",null,B.showDetected())))},B.submitEdit=function(Q){var ie=B.props,ae=ie.variable,ne=ie.namespace,ye=ie.rjvId,Pe=B.state,xt=Pe.editValue,Dt=Pe.parsedInput,wt=xt;Q&&Dt.type&&(wt=Dt.value),B.setState({editMode:!1}),Re.dispatch({name:"VARIABLE_UPDATED",rjvId:ye,data:{name:ae.name,namespace:ne,existing_value:ae.value,new_value:wt,variable_removed:!1}})},B.showDetected=function(){var Q=B.props,ie=Q.theme,ae=(Q.variable,Q.namespace,Q.rjvId,B.state.parsedInput),ne=(ae.type,ae.value,B.getDetectedInput());if(ne)return b.a.createElement("div",null,b.a.createElement("div",F(ie,"detected-row"),ne,b.a.createElement(tr,{className:"edit-check detected",style:l({verticalAlign:"top",paddingLeft:"3px"},F(ie,"check-icon").style),onClick:function(){B.submitEdit(!0)}})))},B.getDetectedInput=function(){var Q=B.state.parsedInput,ie=Q.type,ae=Q.value,ne=y(B).props,ye=ne.theme;if(ie!==!1)switch(ie.toLowerCase()){case"object":return b.a.createElement("span",null,b.a.createElement("span",{style:l(l({},F(ye,"brace").style),{},{cursor:"default"})},"{"),b.a.createElement("span",{style:l(l({},F(ye,"ellipsis").style),{},{cursor:"default"})},"..."),b.a.createElement("span",{style:l(l({},F(ye,"brace").style),{},{cursor:"default"})},"}"));case"array":return b.a.createElement("span",null,b.a.createElement("span",{style:l(l({},F(ye,"brace").style),{},{cursor:"default"})},"["),b.a.createElement("span",{style:l(l({},F(ye,"ellipsis").style),{},{cursor:"default"})},"..."),b.a.createElement("span",{style:l(l({},F(ye,"brace").style),{},{cursor:"default"})},"]"));case"string":return b.a.createElement(Ze,Object.assign({value:ae},ne));case"integer":return b.a.createElement(nt,Object.assign({value:ae},ne));case"float":return b.a.createElement(Z,Object.assign({value:ae},ne));case"boolean":return b.a.createElement(K,Object.assign({value:ae},ne));case"function":return b.a.createElement(me,Object.assign({value:ae},ne));case"null":return b.a.createElement(Ge,ne);case"nan":return b.a.createElement(we,ne);case"undefined":return b.a.createElement(Fe,ne);case"date":return b.a.createElement(V,Object.assign({value:new Date(ae)},ne))}},B.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},B}return f($,[{key:"render",value:function(){var q=this,B=this.props,Q=B.variable,ie=B.singleIndent,ae=B.type,ne=B.theme,ye=B.namespace,Pe=B.indentWidth,xt=B.enableClipboard,Dt=B.onEdit,wt=B.onDelete,Et=B.onSelect,Gt=B.displayArrayKey,$r=B.quotesOnKeys,Ft=this.state.editMode;return b.a.createElement("div",Object.assign({},F(ne,"objectKeyVal",{paddingLeft:Pe*ie}),{onMouseEnter:function(){return q.setState(l(l({},q.state),{},{hovered:!0}))},onMouseLeave:function(){return q.setState(l(l({},q.state),{},{hovered:!1}))},className:"variable-row",key:Q.name}),ae=="array"?Gt?b.a.createElement("span",Object.assign({},F(ne,"array-key"),{key:Q.name+"_"+ye}),Q.name,b.a.createElement("div",F(ne,"colon"),":")):null:b.a.createElement("span",null,b.a.createElement("span",Object.assign({},F(ne,"object-name"),{className:"object-key",key:Q.name+"_"+ye}),!!$r&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"'),b.a.createElement("span",{style:{display:"inline-block"}},Q.name),!!$r&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"')),b.a.createElement("span",F(ne,"colon"),":")),b.a.createElement("div",Object.assign({className:"variable-value",onClick:Et===!1&&Dt===!1?null:function(En){var yo=ge(ye);(En.ctrlKey||En.metaKey)&&Dt!==!1?q.prepopInput(Q):Et!==!1&&(yo.shift(),Et(l(l({},Q),{},{namespace:yo})))}},F(ne,"variableValue",{cursor:Et===!1?"default":"pointer"})),this.getValue(Q,Ft)),xt?b.a.createElement(Gr,{rowHovered:this.state.hovered,hidden:Ft,src:Q.value,clickCallback:xt,theme:ne,namespace:[].concat(ge(ye),[Q.name])}):null,Dt!==!1&&Ft==0?this.getEditIcon():null,wt!==!1&&Ft==0?this.getRemoveIcon():null)}}]),$}(b.a.PureComponent),Kr=function(Y){h($,Y);var X=_($);function $(){var q;u(this,$);for(var B=arguments.length,Q=new Array(B),ie=0;ie0?xt:null,namespace:Pe.splice(0,Pe.length-1),existing_value:Dt,variable_removed:!1,key_name:null};R(Dt)==="object"?Re.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:wt,data:Gt}):Re.dispatch({name:"VARIABLE_ADDED",rjvId:wt,data:l(l({},Gt),{},{new_value:[].concat(ge(Dt),[null])})})}})))},q.getRemoveObject=function(ae){var ne=q.props,ye=ne.theme,Pe=(ne.hover,ne.namespace),xt=ne.name,Dt=ne.src,wt=ne.rjvId;if(Pe.length!==1)return b.a.createElement("span",{className:"click-to-remove",style:{display:ae?"inline-block":"none"}},b.a.createElement(Cr,Object.assign({className:"click-to-remove-icon"},F(ye,"removeVarIcon"),{onClick:function(){Re.dispatch({name:"VARIABLE_REMOVED",rjvId:wt,data:{name:xt,namespace:Pe.splice(0,Pe.length-1),existing_value:Dt,variable_removed:!0}})}})))},q.render=function(){var ae=q.props,ne=ae.theme,ye=ae.onDelete,Pe=ae.onAdd,xt=ae.enableClipboard,Dt=ae.src,wt=ae.namespace,Et=ae.rowHovered;return b.a.createElement("div",Object.assign({},F(ne,"object-meta-data"),{className:"object-meta-data",onClick:function(Gt){Gt.stopPropagation()}}),q.getObjectSize(),xt?b.a.createElement(Gr,{rowHovered:Et,clickCallback:xt,src:Dt,theme:ne,namespace:wt}):null,Pe!==!1?q.getAddAttribute(Et):null,ye!==!1?q.getRemoveObject(Et):null)},q}return $}(b.a.PureComponent);function gr(Y){var X=Y.parent_type,$=Y.namespace,q=Y.quotesOnKeys,B=Y.theme,Q=Y.jsvRoot,ie=Y.name,ae=Y.displayArrayKey,ne=Y.name?Y.name:"";return!Q||ie!==!1&&ie!==null?X=="array"?ae?b.a.createElement("span",Object.assign({},F(B,"array-key"),{key:$}),b.a.createElement("span",{className:"array-key"},ne),b.a.createElement("span",F(B,"colon"),":")):b.a.createElement("span",null):b.a.createElement("span",Object.assign({},F(B,"object-name"),{key:$}),b.a.createElement("span",{className:"object-key"},q&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"'),b.a.createElement("span",null,ne),q&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"')),b.a.createElement("span",F(B,"colon"),":")):b.a.createElement("span",null)}function Bt(Y){var X=Y.theme;switch(Y.iconStyle){case"triangle":return b.a.createElement(Rt,Object.assign({},F(X,"expanded-icon"),{className:"expanded-icon"}));case"square":return b.a.createElement($e,Object.assign({},F(X,"expanded-icon"),{className:"expanded-icon"}));default:return b.a.createElement(ke,Object.assign({},F(X,"expanded-icon"),{className:"expanded-icon"}))}}function dt(Y){var X=Y.theme;switch(Y.iconStyle){case"triangle":return b.a.createElement(mt,Object.assign({},F(X,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return b.a.createElement(lt,Object.assign({},F(X,"collapsed-icon"),{className:"collapsed-icon"}));default:return b.a.createElement(Ie,Object.assign({},F(X,"collapsed-icon"),{className:"collapsed-icon"}))}}var Ue=function(Y){h($,Y);var X=_($);function $(q){var B;return u(this,$),(B=X.call(this,q)).toggleCollapsed=function(Q){var ie=[];for(var ae in B.state.expanded)ie.push(B.state.expanded[ae]);ie[Q]=!ie[Q],B.setState({expanded:ie})},B.state={expanded:[]},B}return f($,[{key:"getExpandedIcon",value:function(q){var B=this.props,Q=B.theme,ie=B.iconStyle;return this.state.expanded[q]?b.a.createElement(Bt,{theme:Q,iconStyle:ie}):b.a.createElement(dt,{theme:Q,iconStyle:ie})}},{key:"render",value:function(){var q=this,B=this.props,Q=B.src,ie=B.groupArraysAfterLength,ae=(B.depth,B.name),ne=B.theme,ye=B.jsvRoot,Pe=B.namespace,xt=(B.parent_type,C(B,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),Dt=0,wt=5*this.props.indentWidth;ye||(Dt=5*this.props.indentWidth);var Et=ie,Gt=Math.ceil(Q.length/Et);return b.a.createElement("div",Object.assign({className:"object-key-val"},F(ne,ye?"jsv-root":"objectKeyVal",{paddingLeft:Dt})),b.a.createElement(gr,this.props),b.a.createElement("span",null,b.a.createElement(Kr,Object.assign({size:Q.length},this.props))),ge(Array(Gt)).map(function($r,Ft){return b.a.createElement("div",Object.assign({key:Ft,className:"object-key-val array-group"},F(ne,"objectKeyVal",{marginLeft:6,paddingLeft:wt})),b.a.createElement("span",F(ne,"brace-row"),b.a.createElement("div",Object.assign({className:"icon-container"},F(ne,"icon-container"),{onClick:function(En){q.toggleCollapsed(Ft)}}),q.getExpandedIcon(Ft)),q.state.expanded[Ft]?b.a.createElement(Hr,Object.assign({key:ae+Ft,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Et,index_offset:Ft*Et,src:Q.slice(Ft*Et,Ft*Et+Et),namespace:Pe,type:"array",parent_type:"array_group",theme:ne},xt)):b.a.createElement("span",Object.assign({},F(ne,"brace"),{onClick:function(En){q.toggleCollapsed(Ft)},className:"array-group-brace"}),"[",b.a.createElement("div",Object.assign({},F(ne,"array-group-meta-data"),{className:"array-group-meta-data"}),b.a.createElement("span",Object.assign({className:"object-size"},F(ne,"object-size")),Ft*Et," - ",Ft*Et+Et>Q.length?Q.length:Ft*Et+Et)),"]")))}))}}]),$}(b.a.PureComponent),Vr=function(Y){h($,Y);var X=_($);function $(q){var B;u(this,$),(B=X.call(this,q)).toggleCollapsed=function(){B.setState({expanded:!B.state.expanded},function(){Ee.set(B.props.rjvId,B.props.namespace,"expanded",B.state.expanded)})},B.getObjectContent=function(ie,ae,ne){return b.a.createElement("div",{className:"pushed-content object-container"},b.a.createElement("div",Object.assign({className:"object-content"},F(B.props.theme,"pushed-content")),B.renderObjectContents(ae,ne)))},B.getEllipsis=function(){return B.state.size===0?null:b.a.createElement("div",Object.assign({},F(B.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:B.toggleCollapsed}),"...")},B.getObjectMetaData=function(ie){var ae=B.props,ne=(ae.rjvId,ae.theme,B.state),ye=ne.size,Pe=ne.hovered;return b.a.createElement(Kr,Object.assign({rowHovered:Pe,size:ye},B.props))},B.renderObjectContents=function(ie,ae){var ne,ye=B.props,Pe=ye.depth,xt=ye.parent_type,Dt=ye.index_offset,wt=ye.groupArraysAfterLength,Et=ye.namespace,Gt=B.state.object_type,$r=[],Ft=Object.keys(ie||{});return B.props.sortKeys&&Gt!=="array"&&(Ft=Ft.sort()),Ft.forEach(function(En){if(ne=new No(En,ie[En]),xt==="array_group"&&Dt&&(ne.name=parseInt(ne.name)+Dt),ie.hasOwnProperty(En))if(ne.type==="object")$r.push(b.a.createElement(Hr,Object.assign({key:ne.name,depth:Pe+1,name:ne.name,src:ne.value,namespace:Et.concat(ne.name),parent_type:Gt},ae)));else if(ne.type==="array"){var yo=Hr;wt&&ne.value.length>wt&&(yo=Ue),$r.push(b.a.createElement(yo,Object.assign({key:ne.name,depth:Pe+1,name:ne.name,src:ne.value,namespace:Et.concat(ne.name),type:"array",parent_type:Gt},ae)))}else $r.push(b.a.createElement(Nr,Object.assign({key:ne.name+"_"+Et,variable:ne,singleIndent:5,namespace:Et,type:B.props.type},ae)))}),$r};var Q=$.getState(q);return B.state=l(l({},Q),{},{prevProps:{}}),B}return f($,[{key:"getBraceStart",value:function(q,B){var Q=this,ie=this.props,ae=ie.src,ne=ie.theme,ye=ie.iconStyle;if(ie.parent_type==="array_group")return b.a.createElement("span",null,b.a.createElement("span",F(ne,"brace"),q==="array"?"[":"{"),B?this.getObjectMetaData(ae):null);var Pe=B?Bt:dt;return b.a.createElement("span",null,b.a.createElement("span",Object.assign({onClick:function(xt){Q.toggleCollapsed()}},F(ne,"brace-row")),b.a.createElement("div",Object.assign({className:"icon-container"},F(ne,"icon-container")),b.a.createElement(Pe,{theme:ne,iconStyle:ye})),b.a.createElement(gr,this.props),b.a.createElement("span",F(ne,"brace"),q==="array"?"[":"{")),B?this.getObjectMetaData(ae):null)}},{key:"render",value:function(){var q=this,B=this.props,Q=B.depth,ie=B.src,ae=(B.namespace,B.name,B.type,B.parent_type),ne=B.theme,ye=B.jsvRoot,Pe=B.iconStyle,xt=C(B,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),Dt=this.state,wt=Dt.object_type,Et=Dt.expanded,Gt={};return ye||ae==="array_group"?ae==="array_group"&&(Gt.borderLeft=0,Gt.display="inline"):Gt.paddingLeft=5*this.props.indentWidth,b.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return q.setState(l(l({},q.state),{},{hovered:!0}))},onMouseLeave:function(){return q.setState(l(l({},q.state),{},{hovered:!1}))}},F(ne,ye?"jsv-root":"objectKeyVal",Gt)),this.getBraceStart(wt,Et),Et?this.getObjectContent(Q,ie,l({theme:ne,iconStyle:Pe},xt)):this.getEllipsis(),b.a.createElement("span",{className:"brace-row"},b.a.createElement("span",{style:l(l({},F(ne,"brace").style),{},{paddingLeft:Et?"3px":"0px"})},wt==="array"?"]":"}"),Et?null:this.getObjectMetaData(ie)))}}],[{key:"getDerivedStateFromProps",value:function(q,B){var Q=B.prevProps;return q.src!==Q.src||q.collapsed!==Q.collapsed||q.name!==Q.name||q.namespace!==Q.namespace||q.rjvId!==Q.rjvId?l(l({},$.getState(q)),{},{prevProps:q}):null}}]),$}(b.a.PureComponent);Vr.getState=function(Y){var X=Object.keys(Y.src).length,$=(Y.collapsed===!1||Y.collapsed!==!0&&Y.collapsed>Y.depth)&&(!Y.shouldCollapse||Y.shouldCollapse({name:Y.name,src:Y.src,type:R(Y.src),namespace:Y.namespace})===!1)&&X!==0;return{expanded:Ee.get(Y.rjvId,Y.namespace,"expanded",$),object_type:Y.type==="array"?"array":"object",parent_type:Y.type==="array"?"array":"object",size:X,hovered:!1}};var No=function Y(X,$){u(this,Y),this.name=X,this.value=$,this.type=R($)};I(Vr);var Hr=Vr,Fl=function(Y){h($,Y);var X=_($);function $(){var q;u(this,$);for(var B=arguments.length,Q=new Array(B),ie=0;ieae.groupArraysAfterLength&&(ye=Ue),b.a.createElement("div",{className:"pretty-json-container object-container"},b.a.createElement("div",{className:"object-content"},b.a.createElement(ye,Object.assign({namespace:ne,depth:0,jsvRoot:!0},ae))))},q}return $}(b.a.PureComponent),ys=function(Y){h($,Y);var X=_($);function $(q){var B;return u(this,$),(B=X.call(this,q)).closeModal=function(){Re.dispatch({rjvId:B.props.rjvId,name:"RESET"})},B.submit=function(){B.props.submit(B.state.input)},B.state={input:q.input?q.input:""},B}return f($,[{key:"render",value:function(){var q=this,B=this.props,Q=B.theme,ie=B.rjvId,ae=B.isValid,ne=this.state.input,ye=ae(ne);return b.a.createElement("div",Object.assign({className:"key-modal-request"},F(Q,"key-modal-request"),{onClick:this.closeModal}),b.a.createElement("div",Object.assign({},F(Q,"key-modal"),{onClick:function(Pe){Pe.stopPropagation()}}),b.a.createElement("div",F(Q,"key-modal-label"),"Key Name:"),b.a.createElement("div",{style:{position:"relative"}},b.a.createElement("input",Object.assign({},F(Q,"key-modal-input"),{className:"key-modal-input",ref:function(Pe){return Pe&&Pe.focus()},spellCheck:!1,value:ne,placeholder:"...",onChange:function(Pe){q.setState({input:Pe.target.value})},onKeyPress:function(Pe){ye&&Pe.key==="Enter"?q.submit():Pe.key==="Escape"&&q.closeModal()}})),ye?b.a.createElement(tr,Object.assign({},F(Q,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Pe){return q.submit()}})):null),b.a.createElement("span",F(Q,"key-modal-cancel"),b.a.createElement(Wr,Object.assign({},F(Q,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Re.dispatch({rjvId:ie,name:"RESET"})}})))))}}]),$}(b.a.PureComponent),mo=function(Y){h($,Y);var X=_($);function $(){var q;u(this,$);for(var B=arguments.length,Q=new Array(B),ie=0;ie=0)&&(r[o]=e[o]);return r}function mst(e,t){if(e==null)return{};var r=vst(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yst(e,t){return bst(e)||_st(e,t)||Est(e,t)||Sst()}function bst(e){if(Array.isArray(e))return e}function _st(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,i=void 0;try{for(var s=e[Symbol.iterator](),a;!(n=(a=s.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,i=l}finally{try{!n&&s.return!=null&&s.return()}finally{if(o)throw i}}return r}}function Est(e,t){if(e){if(typeof e=="string")return wee(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wee(e,t)}}function wee(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?e.apply(this,o):function(){for(var s=arguments.length,a=new Array(s),l=0;l1&&arguments[1]!==void 0?arguments[1]:{};Pw.initial(e),Pw.handler(t);var r={current:e},n=Sy(Mst)(r,t),o=Sy(Bst)(r),i=Sy(Pw.changes)(e),s=Sy(Fst)(r);function a(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return Pw.selector(u),u(r.current)}function l(u){kst(n,o,i,s)(u)}return[a,l]}function Fst(e,t){return c_(t)?t(e.current):t}function Bst(e,t){return e.current=Aee(Aee({},e.current),t),t}function Mst(e,t,r){return c_(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var Lst={create:Dst},jst={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function zst(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i=e.length?e.apply(this,o):function(){for(var s=arguments.length,a=new Array(s),l=0;lB&&(ae.style.cursor="pointer",this.state.collapsed&&(ie=b.a.createElement("span",null,ie.substring(0,B),b.a.createElement("span",F(Q,"ellipsis")," ...")))),b.a.createElement("div",F(Q,"string"),b.a.createElement(P,Object.assign({type_name:"string"},q)),b.a.createElement("span",Object.assign({className:"string-value"},ae,{onClick:this.toggleCollapsed}),'"',ie,'"'))}}]),$}(b.a.PureComponent),Fe=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){return b.a.createElement("div",F(this.props.theme,"undefined"),"undefined")}}]),$}(b.a.PureComponent);function ot(){return(ot=Object.assign||function(Y){for(var X=1;X=0||(Bl[yo]=Ft[yo]);return Bl}(Y,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),Pe,xt=ye.value!==void 0,Dt=Object(S.useRef)(null),wt=Nt(Dt,X),Et=Object(S.useRef)(0),Gt=Object(S.useRef)(),$r=function(){var Ft=Dt.current,En=$&&Gt.current?Gt.current:function(Us){var Oc=window.getComputedStyle(Us);if(Oc===null)return null;var Ml,so=(Ml=Oc,he.reduce(function(Dc,Ll){return Dc[Ll]=Ml[Ll],Dc},{})),Ha=so.boxSizing;return Ha===""?null:(le&&Ha==="border-box"&&(so.width=parseFloat(so.width)+parseFloat(so.borderRightWidth)+parseFloat(so.borderLeftWidth)+parseFloat(so.paddingRight)+parseFloat(so.paddingLeft)+"px"),{sizingStyle:so,paddingSize:parseFloat(so.paddingBottom)+parseFloat(so.paddingTop),borderSize:parseFloat(so.borderBottomWidth)+parseFloat(so.borderTopWidth)})}(Ft);if(En){Gt.current=En;var yo=function(Us,Oc,Ml,so){Ml===void 0&&(Ml=1),so===void 0&&(so=1/0),Ue||((Ue=document.createElement("textarea")).setAttribute("tab-index","-1"),Ue.setAttribute("aria-hidden","true"),xe(Ue)),Ue.parentNode===null&&document.body.appendChild(Ue);var Ha=Us.paddingSize,Dc=Us.borderSize,Ll=Us.sizingStyle,Fc=Ll.boxSizing;Object.keys(Ll).forEach(function(Mc){var Cu=Mc;Ue.style[Cu]=Ll[Cu]}),xe(Ue),Ue.value=Oc;var jl=function(Mc,Cu){var Nu=Mc.scrollHeight;return Cu.sizingStyle.boxSizing==="border-box"?Nu+Cu.borderSize:Nu-Cu.paddingSize}(Ue,Us);Ue.value="x";var Vf=Ue.scrollHeight-Ha,Iu=Vf*Ml;Fc==="border-box"&&(Iu=Iu+Ha+Dc),jl=Math.max(Iu,jl);var Bc=Vf*so;return Fc==="border-box"&&(Bc=Bc+Ha+Dc),[jl=Math.min(Bc,jl),Vf]}(En,Ft.value||Ft.placeholder||"x",B,q),$i=yo[0],Bl=yo[1];Et.current!==$i&&(Et.current=$i,Ft.style.setProperty("height",$i+"px","important"),ne($i,{rowHeight:Bl}))}};return Object(S.useLayoutEffect)($r),Pe=_t($r),Object(S.useLayoutEffect)(function(){var Ft=function(En){Pe.current(En)};return window.addEventListener("resize",Ft),function(){window.removeEventListener("resize",Ft)}},[]),Object(S.createElement)("textarea",ot({},ye,{onChange:function(Ft){xt||$r(),ie(Ft)},ref:wt}))},pe=Object(S.forwardRef)(se);function Oe(Y){Y=Y.trim();try{if((Y=JSON.stringify(JSON.parse(Y)))[0]==="[")return je("array",JSON.parse(Y));if(Y[0]==="{")return je("object",JSON.parse(Y));if(Y.match(/\-?\d+\.\d+/)&&Y.match(/\-?\d+\.\d+/)[0]===Y)return je("float",parseFloat(Y));if(Y.match(/\-?\d+e-\d+/)&&Y.match(/\-?\d+e-\d+/)[0]===Y)return je("float",Number(Y));if(Y.match(/\-?\d+/)&&Y.match(/\-?\d+/)[0]===Y)return je("integer",parseInt(Y));if(Y.match(/\-?\d+e\+\d+/)&&Y.match(/\-?\d+e\+\d+/)[0]===Y)return je("integer",Number(Y))}catch{}switch(Y=Y.toLowerCase()){case"undefined":return je("undefined",void 0);case"nan":return je("nan",NaN);case"null":return je("null",null);case"true":return je("boolean",!0);case"false":return je("boolean",!1);default:if(Y=Date.parse(Y))return je("date",new Date(Y))}return je(!1,null)}function je(Y,X){return{type:Y,value:X}}var ke=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",Object.assign({},Ot(B),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),$}(b.a.PureComponent),Ie=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",Object.assign({},Ot(B),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),$}(b.a.PureComponent),$e=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]),ie=Ot(B).style;return b.a.createElement("span",Q,b.a.createElement("svg",{fill:ie.color,width:ie.height,height:ie.width,style:ie,viewBox:"0 0 1792 1792"},b.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),$}(b.a.PureComponent),lt=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]),ie=Ot(B).style;return b.a.createElement("span",Q,b.a.createElement("svg",{fill:ie.color,width:ie.height,height:ie.width,style:ie,viewBox:"0 0 1792 1792"},b.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),$}(b.a.PureComponent),mt=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",{style:l(l({},Ot(B).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},b.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),$}(b.a.PureComponent),Rt=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",{style:l(l({},Ot(B).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},b.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),$}(b.a.PureComponent),hr=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",Object.assign({},Ot(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),$}(b.a.PureComponent),Cr=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",Object.assign({},Ot(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),$}(b.a.PureComponent),Lt=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",Object.assign({},Ot(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),$}(b.a.PureComponent),Wr=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",Object.assign({},Ot(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),$}(b.a.PureComponent),fn=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",Object.assign({},Ot(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),$}(b.a.PureComponent),tr=function(Y){h($,Y);var X=_($);function $(){return u(this,$),X.apply(this,arguments)}return f($,[{key:"render",value:function(){var q=this.props,B=q.style,Q=C(q,["style"]);return b.a.createElement("span",Q,b.a.createElement("svg",Object.assign({},Ot(B),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),b.a.createElement("g",null,b.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),$}(b.a.PureComponent);function Ot(Y){return Y||(Y={}),{style:l(l({verticalAlign:"middle"},Y),{},{color:Y.color?Y.color:"#000000",height:"1em",width:"1em"})}}var Gr=function(Y){h($,Y);var X=_($);function $(q){var B;return u(this,$),(B=X.call(this,q)).copiedTimer=null,B.handleCopy=function(){var Q=document.createElement("textarea"),ie=B.props,ae=ie.clickCallback,ne=ie.src,ye=ie.namespace;Q.innerHTML=JSON.stringify(B.clipboardValue(ne),null," "),document.body.appendChild(Q),Q.select(),document.execCommand("copy"),document.body.removeChild(Q),B.copiedTimer=setTimeout(function(){B.setState({copied:!1})},5500),B.setState({copied:!0},function(){typeof ae=="function"&&ae({src:ne,namespace:ye,name:ye[ye.length-1]})})},B.getClippyIcon=function(){var Q=B.props.theme;return B.state.copied?b.a.createElement("span",null,b.a.createElement(hr,Object.assign({className:"copy-icon"},F(Q,"copy-icon"))),b.a.createElement("span",F(Q,"copy-icon-copied"),"✔")):b.a.createElement(hr,Object.assign({className:"copy-icon"},F(Q,"copy-icon")))},B.clipboardValue=function(Q){switch(R(Q)){case"function":case"regexp":return Q.toString();default:return Q}},B.state={copied:!1},B}return f($,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var q=this.props,B=(q.src,q.theme),Q=q.hidden,ie=q.rowHovered,ae=F(B,"copy-to-clipboard").style,ne="inline";return Q&&(ne="none"),b.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:ie?"inline-block":"none"}},b.a.createElement("span",{style:l(l({},ae),{},{display:ne}),onClick:this.handleCopy},this.getClippyIcon()))}}]),$}(b.a.PureComponent),Nr=function(Y){h($,Y);var X=_($);function $(q){var B;return u(this,$),(B=X.call(this,q)).getEditIcon=function(){var Q=B.props,ie=Q.variable,ae=Q.theme;return b.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:B.state.hovered?"inline-block":"none"}},b.a.createElement(fn,Object.assign({className:"click-to-edit-icon"},F(ae,"editVarIcon"),{onClick:function(){B.prepopInput(ie)}})))},B.prepopInput=function(Q){if(B.props.onEdit!==!1){var ie=function(ne){var ye;switch(R(ne)){case"undefined":ye="undefined";break;case"nan":ye="NaN";break;case"string":ye=ne;break;case"date":case"function":case"regexp":ye=ne.toString();break;default:try{ye=JSON.stringify(ne,null," ")}catch{ye=""}}return ye}(Q.value),ae=Oe(ie);B.setState({editMode:!0,editValue:ie,parsedInput:{type:ae.type,value:ae.value}})}},B.getRemoveIcon=function(){var Q=B.props,ie=Q.variable,ae=Q.namespace,ne=Q.theme,ye=Q.rjvId;return b.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:B.state.hovered?"inline-block":"none"}},b.a.createElement(Cr,Object.assign({className:"click-to-remove-icon"},F(ne,"removeVarIcon"),{onClick:function(){Re.dispatch({name:"VARIABLE_REMOVED",rjvId:ye,data:{name:ie.name,namespace:ae,existing_value:ie.value,variable_removed:!0}})}})))},B.getValue=function(Q,ie){var ae=!ie&&Q.type,ne=y(B).props;switch(ae){case!1:return B.getEditInput();case"string":return b.a.createElement(Ze,Object.assign({value:Q.value},ne));case"integer":return b.a.createElement(nt,Object.assign({value:Q.value},ne));case"float":return b.a.createElement(Z,Object.assign({value:Q.value},ne));case"boolean":return b.a.createElement(K,Object.assign({value:Q.value},ne));case"function":return b.a.createElement(me,Object.assign({value:Q.value},ne));case"null":return b.a.createElement(Ge,ne);case"nan":return b.a.createElement(we,ne);case"undefined":return b.a.createElement(Fe,ne);case"date":return b.a.createElement(V,Object.assign({value:Q.value},ne));case"regexp":return b.a.createElement(Qe,Object.assign({value:Q.value},ne));default:return b.a.createElement("div",{className:"object-value"},JSON.stringify(Q.value))}},B.getEditInput=function(){var Q=B.props.theme,ie=B.state.editValue;return b.a.createElement("div",null,b.a.createElement(pe,Object.assign({type:"text",inputRef:function(ae){return ae&&ae.focus()},value:ie,className:"variable-editor",onChange:function(ae){var ne=ae.target.value,ye=Oe(ne);B.setState({editValue:ne,parsedInput:{type:ye.type,value:ye.value}})},onKeyDown:function(ae){switch(ae.key){case"Escape":B.setState({editMode:!1,editValue:""});break;case"Enter":(ae.ctrlKey||ae.metaKey)&&B.submitEdit(!0)}ae.stopPropagation()},placeholder:"update this value",minRows:2},F(Q,"edit-input"))),b.a.createElement("div",F(Q,"edit-icon-container"),b.a.createElement(Cr,Object.assign({className:"edit-cancel"},F(Q,"cancel-icon"),{onClick:function(){B.setState({editMode:!1,editValue:""})}})),b.a.createElement(tr,Object.assign({className:"edit-check string-value"},F(Q,"check-icon"),{onClick:function(){B.submitEdit()}})),b.a.createElement("div",null,B.showDetected())))},B.submitEdit=function(Q){var ie=B.props,ae=ie.variable,ne=ie.namespace,ye=ie.rjvId,Pe=B.state,xt=Pe.editValue,Dt=Pe.parsedInput,wt=xt;Q&&Dt.type&&(wt=Dt.value),B.setState({editMode:!1}),Re.dispatch({name:"VARIABLE_UPDATED",rjvId:ye,data:{name:ae.name,namespace:ne,existing_value:ae.value,new_value:wt,variable_removed:!1}})},B.showDetected=function(){var Q=B.props,ie=Q.theme,ae=(Q.variable,Q.namespace,Q.rjvId,B.state.parsedInput),ne=(ae.type,ae.value,B.getDetectedInput());if(ne)return b.a.createElement("div",null,b.a.createElement("div",F(ie,"detected-row"),ne,b.a.createElement(tr,{className:"edit-check detected",style:l({verticalAlign:"top",paddingLeft:"3px"},F(ie,"check-icon").style),onClick:function(){B.submitEdit(!0)}})))},B.getDetectedInput=function(){var Q=B.state.parsedInput,ie=Q.type,ae=Q.value,ne=y(B).props,ye=ne.theme;if(ie!==!1)switch(ie.toLowerCase()){case"object":return b.a.createElement("span",null,b.a.createElement("span",{style:l(l({},F(ye,"brace").style),{},{cursor:"default"})},"{"),b.a.createElement("span",{style:l(l({},F(ye,"ellipsis").style),{},{cursor:"default"})},"..."),b.a.createElement("span",{style:l(l({},F(ye,"brace").style),{},{cursor:"default"})},"}"));case"array":return b.a.createElement("span",null,b.a.createElement("span",{style:l(l({},F(ye,"brace").style),{},{cursor:"default"})},"["),b.a.createElement("span",{style:l(l({},F(ye,"ellipsis").style),{},{cursor:"default"})},"..."),b.a.createElement("span",{style:l(l({},F(ye,"brace").style),{},{cursor:"default"})},"]"));case"string":return b.a.createElement(Ze,Object.assign({value:ae},ne));case"integer":return b.a.createElement(nt,Object.assign({value:ae},ne));case"float":return b.a.createElement(Z,Object.assign({value:ae},ne));case"boolean":return b.a.createElement(K,Object.assign({value:ae},ne));case"function":return b.a.createElement(me,Object.assign({value:ae},ne));case"null":return b.a.createElement(Ge,ne);case"nan":return b.a.createElement(we,ne);case"undefined":return b.a.createElement(Fe,ne);case"date":return b.a.createElement(V,Object.assign({value:new Date(ae)},ne))}},B.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},B}return f($,[{key:"render",value:function(){var q=this,B=this.props,Q=B.variable,ie=B.singleIndent,ae=B.type,ne=B.theme,ye=B.namespace,Pe=B.indentWidth,xt=B.enableClipboard,Dt=B.onEdit,wt=B.onDelete,Et=B.onSelect,Gt=B.displayArrayKey,$r=B.quotesOnKeys,Ft=this.state.editMode;return b.a.createElement("div",Object.assign({},F(ne,"objectKeyVal",{paddingLeft:Pe*ie}),{onMouseEnter:function(){return q.setState(l(l({},q.state),{},{hovered:!0}))},onMouseLeave:function(){return q.setState(l(l({},q.state),{},{hovered:!1}))},className:"variable-row",key:Q.name}),ae=="array"?Gt?b.a.createElement("span",Object.assign({},F(ne,"array-key"),{key:Q.name+"_"+ye}),Q.name,b.a.createElement("div",F(ne,"colon"),":")):null:b.a.createElement("span",null,b.a.createElement("span",Object.assign({},F(ne,"object-name"),{className:"object-key",key:Q.name+"_"+ye}),!!$r&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"'),b.a.createElement("span",{style:{display:"inline-block"}},Q.name),!!$r&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"')),b.a.createElement("span",F(ne,"colon"),":")),b.a.createElement("div",Object.assign({className:"variable-value",onClick:Et===!1&&Dt===!1?null:function(En){var yo=ge(ye);(En.ctrlKey||En.metaKey)&&Dt!==!1?q.prepopInput(Q):Et!==!1&&(yo.shift(),Et(l(l({},Q),{},{namespace:yo})))}},F(ne,"variableValue",{cursor:Et===!1?"default":"pointer"})),this.getValue(Q,Ft)),xt?b.a.createElement(Gr,{rowHovered:this.state.hovered,hidden:Ft,src:Q.value,clickCallback:xt,theme:ne,namespace:[].concat(ge(ye),[Q.name])}):null,Dt!==!1&&Ft==0?this.getEditIcon():null,wt!==!1&&Ft==0?this.getRemoveIcon():null)}}]),$}(b.a.PureComponent),Kr=function(Y){h($,Y);var X=_($);function $(){var q;u(this,$);for(var B=arguments.length,Q=new Array(B),ie=0;ie0?xt:null,namespace:Pe.splice(0,Pe.length-1),existing_value:Dt,variable_removed:!1,key_name:null};R(Dt)==="object"?Re.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:wt,data:Gt}):Re.dispatch({name:"VARIABLE_ADDED",rjvId:wt,data:l(l({},Gt),{},{new_value:[].concat(ge(Dt),[null])})})}})))},q.getRemoveObject=function(ae){var ne=q.props,ye=ne.theme,Pe=(ne.hover,ne.namespace),xt=ne.name,Dt=ne.src,wt=ne.rjvId;if(Pe.length!==1)return b.a.createElement("span",{className:"click-to-remove",style:{display:ae?"inline-block":"none"}},b.a.createElement(Cr,Object.assign({className:"click-to-remove-icon"},F(ye,"removeVarIcon"),{onClick:function(){Re.dispatch({name:"VARIABLE_REMOVED",rjvId:wt,data:{name:xt,namespace:Pe.splice(0,Pe.length-1),existing_value:Dt,variable_removed:!0}})}})))},q.render=function(){var ae=q.props,ne=ae.theme,ye=ae.onDelete,Pe=ae.onAdd,xt=ae.enableClipboard,Dt=ae.src,wt=ae.namespace,Et=ae.rowHovered;return b.a.createElement("div",Object.assign({},F(ne,"object-meta-data"),{className:"object-meta-data",onClick:function(Gt){Gt.stopPropagation()}}),q.getObjectSize(),xt?b.a.createElement(Gr,{rowHovered:Et,clickCallback:xt,src:Dt,theme:ne,namespace:wt}):null,Pe!==!1?q.getAddAttribute(Et):null,ye!==!1?q.getRemoveObject(Et):null)},q}return $}(b.a.PureComponent);function mr(Y){var X=Y.parent_type,$=Y.namespace,q=Y.quotesOnKeys,B=Y.theme,Q=Y.jsvRoot,ie=Y.name,ae=Y.displayArrayKey,ne=Y.name?Y.name:"";return!Q||ie!==!1&&ie!==null?X=="array"?ae?b.a.createElement("span",Object.assign({},F(B,"array-key"),{key:$}),b.a.createElement("span",{className:"array-key"},ne),b.a.createElement("span",F(B,"colon"),":")):b.a.createElement("span",null):b.a.createElement("span",Object.assign({},F(B,"object-name"),{key:$}),b.a.createElement("span",{className:"object-key"},q&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"'),b.a.createElement("span",null,ne),q&&b.a.createElement("span",{style:{verticalAlign:"top"}},'"')),b.a.createElement("span",F(B,"colon"),":")):b.a.createElement("span",null)}function Bt(Y){var X=Y.theme;switch(Y.iconStyle){case"triangle":return b.a.createElement(Rt,Object.assign({},F(X,"expanded-icon"),{className:"expanded-icon"}));case"square":return b.a.createElement($e,Object.assign({},F(X,"expanded-icon"),{className:"expanded-icon"}));default:return b.a.createElement(ke,Object.assign({},F(X,"expanded-icon"),{className:"expanded-icon"}))}}function dt(Y){var X=Y.theme;switch(Y.iconStyle){case"triangle":return b.a.createElement(mt,Object.assign({},F(X,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return b.a.createElement(lt,Object.assign({},F(X,"collapsed-icon"),{className:"collapsed-icon"}));default:return b.a.createElement(Ie,Object.assign({},F(X,"collapsed-icon"),{className:"collapsed-icon"}))}}var Ye=function(Y){h($,Y);var X=_($);function $(q){var B;return u(this,$),(B=X.call(this,q)).toggleCollapsed=function(Q){var ie=[];for(var ae in B.state.expanded)ie.push(B.state.expanded[ae]);ie[Q]=!ie[Q],B.setState({expanded:ie})},B.state={expanded:[]},B}return f($,[{key:"getExpandedIcon",value:function(q){var B=this.props,Q=B.theme,ie=B.iconStyle;return this.state.expanded[q]?b.a.createElement(Bt,{theme:Q,iconStyle:ie}):b.a.createElement(dt,{theme:Q,iconStyle:ie})}},{key:"render",value:function(){var q=this,B=this.props,Q=B.src,ie=B.groupArraysAfterLength,ae=(B.depth,B.name),ne=B.theme,ye=B.jsvRoot,Pe=B.namespace,xt=(B.parent_type,C(B,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),Dt=0,wt=5*this.props.indentWidth;ye||(Dt=5*this.props.indentWidth);var Et=ie,Gt=Math.ceil(Q.length/Et);return b.a.createElement("div",Object.assign({className:"object-key-val"},F(ne,ye?"jsv-root":"objectKeyVal",{paddingLeft:Dt})),b.a.createElement(mr,this.props),b.a.createElement("span",null,b.a.createElement(Kr,Object.assign({size:Q.length},this.props))),ge(Array(Gt)).map(function($r,Ft){return b.a.createElement("div",Object.assign({key:Ft,className:"object-key-val array-group"},F(ne,"objectKeyVal",{marginLeft:6,paddingLeft:wt})),b.a.createElement("span",F(ne,"brace-row"),b.a.createElement("div",Object.assign({className:"icon-container"},F(ne,"icon-container"),{onClick:function(En){q.toggleCollapsed(Ft)}}),q.getExpandedIcon(Ft)),q.state.expanded[Ft]?b.a.createElement(Hr,Object.assign({key:ae+Ft,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Et,index_offset:Ft*Et,src:Q.slice(Ft*Et,Ft*Et+Et),namespace:Pe,type:"array",parent_type:"array_group",theme:ne},xt)):b.a.createElement("span",Object.assign({},F(ne,"brace"),{onClick:function(En){q.toggleCollapsed(Ft)},className:"array-group-brace"}),"[",b.a.createElement("div",Object.assign({},F(ne,"array-group-meta-data"),{className:"array-group-meta-data"}),b.a.createElement("span",Object.assign({className:"object-size"},F(ne,"object-size")),Ft*Et," - ",Ft*Et+Et>Q.length?Q.length:Ft*Et+Et)),"]")))}))}}]),$}(b.a.PureComponent),Vr=function(Y){h($,Y);var X=_($);function $(q){var B;u(this,$),(B=X.call(this,q)).toggleCollapsed=function(){B.setState({expanded:!B.state.expanded},function(){Ee.set(B.props.rjvId,B.props.namespace,"expanded",B.state.expanded)})},B.getObjectContent=function(ie,ae,ne){return b.a.createElement("div",{className:"pushed-content object-container"},b.a.createElement("div",Object.assign({className:"object-content"},F(B.props.theme,"pushed-content")),B.renderObjectContents(ae,ne)))},B.getEllipsis=function(){return B.state.size===0?null:b.a.createElement("div",Object.assign({},F(B.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:B.toggleCollapsed}),"...")},B.getObjectMetaData=function(ie){var ae=B.props,ne=(ae.rjvId,ae.theme,B.state),ye=ne.size,Pe=ne.hovered;return b.a.createElement(Kr,Object.assign({rowHovered:Pe,size:ye},B.props))},B.renderObjectContents=function(ie,ae){var ne,ye=B.props,Pe=ye.depth,xt=ye.parent_type,Dt=ye.index_offset,wt=ye.groupArraysAfterLength,Et=ye.namespace,Gt=B.state.object_type,$r=[],Ft=Object.keys(ie||{});return B.props.sortKeys&&Gt!=="array"&&(Ft=Ft.sort()),Ft.forEach(function(En){if(ne=new No(En,ie[En]),xt==="array_group"&&Dt&&(ne.name=parseInt(ne.name)+Dt),ie.hasOwnProperty(En))if(ne.type==="object")$r.push(b.a.createElement(Hr,Object.assign({key:ne.name,depth:Pe+1,name:ne.name,src:ne.value,namespace:Et.concat(ne.name),parent_type:Gt},ae)));else if(ne.type==="array"){var yo=Hr;wt&&ne.value.length>wt&&(yo=Ye),$r.push(b.a.createElement(yo,Object.assign({key:ne.name,depth:Pe+1,name:ne.name,src:ne.value,namespace:Et.concat(ne.name),type:"array",parent_type:Gt},ae)))}else $r.push(b.a.createElement(Nr,Object.assign({key:ne.name+"_"+Et,variable:ne,singleIndent:5,namespace:Et,type:B.props.type},ae)))}),$r};var Q=$.getState(q);return B.state=l(l({},Q),{},{prevProps:{}}),B}return f($,[{key:"getBraceStart",value:function(q,B){var Q=this,ie=this.props,ae=ie.src,ne=ie.theme,ye=ie.iconStyle;if(ie.parent_type==="array_group")return b.a.createElement("span",null,b.a.createElement("span",F(ne,"brace"),q==="array"?"[":"{"),B?this.getObjectMetaData(ae):null);var Pe=B?Bt:dt;return b.a.createElement("span",null,b.a.createElement("span",Object.assign({onClick:function(xt){Q.toggleCollapsed()}},F(ne,"brace-row")),b.a.createElement("div",Object.assign({className:"icon-container"},F(ne,"icon-container")),b.a.createElement(Pe,{theme:ne,iconStyle:ye})),b.a.createElement(mr,this.props),b.a.createElement("span",F(ne,"brace"),q==="array"?"[":"{")),B?this.getObjectMetaData(ae):null)}},{key:"render",value:function(){var q=this,B=this.props,Q=B.depth,ie=B.src,ae=(B.namespace,B.name,B.type,B.parent_type),ne=B.theme,ye=B.jsvRoot,Pe=B.iconStyle,xt=C(B,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),Dt=this.state,wt=Dt.object_type,Et=Dt.expanded,Gt={};return ye||ae==="array_group"?ae==="array_group"&&(Gt.borderLeft=0,Gt.display="inline"):Gt.paddingLeft=5*this.props.indentWidth,b.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return q.setState(l(l({},q.state),{},{hovered:!0}))},onMouseLeave:function(){return q.setState(l(l({},q.state),{},{hovered:!1}))}},F(ne,ye?"jsv-root":"objectKeyVal",Gt)),this.getBraceStart(wt,Et),Et?this.getObjectContent(Q,ie,l({theme:ne,iconStyle:Pe},xt)):this.getEllipsis(),b.a.createElement("span",{className:"brace-row"},b.a.createElement("span",{style:l(l({},F(ne,"brace").style),{},{paddingLeft:Et?"3px":"0px"})},wt==="array"?"]":"}"),Et?null:this.getObjectMetaData(ie)))}}],[{key:"getDerivedStateFromProps",value:function(q,B){var Q=B.prevProps;return q.src!==Q.src||q.collapsed!==Q.collapsed||q.name!==Q.name||q.namespace!==Q.namespace||q.rjvId!==Q.rjvId?l(l({},$.getState(q)),{},{prevProps:q}):null}}]),$}(b.a.PureComponent);Vr.getState=function(Y){var X=Object.keys(Y.src).length,$=(Y.collapsed===!1||Y.collapsed!==!0&&Y.collapsed>Y.depth)&&(!Y.shouldCollapse||Y.shouldCollapse({name:Y.name,src:Y.src,type:R(Y.src),namespace:Y.namespace})===!1)&&X!==0;return{expanded:Ee.get(Y.rjvId,Y.namespace,"expanded",$),object_type:Y.type==="array"?"array":"object",parent_type:Y.type==="array"?"array":"object",size:X,hovered:!1}};var No=function Y(X,$){u(this,Y),this.name=X,this.value=$,this.type=R($)};I(Vr);var Hr=Vr,Fl=function(Y){h($,Y);var X=_($);function $(){var q;u(this,$);for(var B=arguments.length,Q=new Array(B),ie=0;ieae.groupArraysAfterLength&&(ye=Ye),b.a.createElement("div",{className:"pretty-json-container object-container"},b.a.createElement("div",{className:"object-content"},b.a.createElement(ye,Object.assign({namespace:ne,depth:0,jsvRoot:!0},ae))))},q}return $}(b.a.PureComponent),ys=function(Y){h($,Y);var X=_($);function $(q){var B;return u(this,$),(B=X.call(this,q)).closeModal=function(){Re.dispatch({rjvId:B.props.rjvId,name:"RESET"})},B.submit=function(){B.props.submit(B.state.input)},B.state={input:q.input?q.input:""},B}return f($,[{key:"render",value:function(){var q=this,B=this.props,Q=B.theme,ie=B.rjvId,ae=B.isValid,ne=this.state.input,ye=ae(ne);return b.a.createElement("div",Object.assign({className:"key-modal-request"},F(Q,"key-modal-request"),{onClick:this.closeModal}),b.a.createElement("div",Object.assign({},F(Q,"key-modal"),{onClick:function(Pe){Pe.stopPropagation()}}),b.a.createElement("div",F(Q,"key-modal-label"),"Key Name:"),b.a.createElement("div",{style:{position:"relative"}},b.a.createElement("input",Object.assign({},F(Q,"key-modal-input"),{className:"key-modal-input",ref:function(Pe){return Pe&&Pe.focus()},spellCheck:!1,value:ne,placeholder:"...",onChange:function(Pe){q.setState({input:Pe.target.value})},onKeyPress:function(Pe){ye&&Pe.key==="Enter"?q.submit():Pe.key==="Escape"&&q.closeModal()}})),ye?b.a.createElement(tr,Object.assign({},F(Q,"key-modal-submit"),{className:"key-modal-submit",onClick:function(Pe){return q.submit()}})):null),b.a.createElement("span",F(Q,"key-modal-cancel"),b.a.createElement(Wr,Object.assign({},F(Q,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){Re.dispatch({rjvId:ie,name:"RESET"})}})))))}}]),$}(b.a.PureComponent),mo=function(Y){h($,Y);var X=_($);function $(){var q;u(this,$);for(var B=arguments.length,Q=new Array(B),ie=0;ie=0)&&(r[o]=e[o]);return r}function Sst(e,t){if(e==null)return{};var r=Est(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wst(e,t){return kst(e)||Ast(e,t)||xst(e,t)||Tst()}function kst(e){if(Array.isArray(e))return e}function Ast(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,i=void 0;try{for(var s=e[Symbol.iterator](),a;!(n=(a=s.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,i=l}finally{try{!n&&s.return!=null&&s.return()}finally{if(o)throw i}}return r}}function xst(e,t){if(e){if(typeof e=="string")return kee(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kee(e,t)}}function kee(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?e.apply(this,o):function(){for(var s=arguments.length,a=new Array(s),l=0;l1&&arguments[1]!==void 0?arguments[1]:{};qw.initial(e),qw.handler(t);var r={current:e},n=Sy($st)(r,t),o=Sy(Hst)(r),i=Sy(qw.changes)(e),s=Sy(zst)(r);function a(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return qw.selector(u),u(r.current)}function l(u){Cst(n,o,i,s)(u)}return[a,l]}function zst(e,t){return c_(t)?t(e.current):t}function Hst(e,t){return e.current=xee(xee({},e.current),t),t}function $st(e,t,r){return c_(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var Pst={create:jst},qst={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Wst(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i=e.length?e.apply(this,o):function(){for(var s=arguments.length,a=new Array(s),l=0;l{n.current=!1}:e,t)}var aa=cat;function nb(){}function H0(e,t,r,n){return fat(e,n)||dat(e,t,r,n)}function fat(e,t){return e.editor.getModel(Phe(e,t))}function dat(e,t,r,n){return e.editor.createModel(t,r,n?Phe(e,n):void 0)}function Phe(e,t){return e.Uri.parse(t)}function hat({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:s,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:c="Loading...",options:f={},height:d="100%",width:h="100%",className:g,wrapperProps:v={},beforeMount:y=nb,onMount:E=nb}){let[_,S]=A.useState(!1),[b,k]=A.useState(!0),T=A.useRef(null),x=A.useRef(null),I=A.useRef(null),C=A.useRef(E),R=A.useRef(y),D=A.useRef(!1);$he(()=>{let z=zhe.init();return z.then(F=>(x.current=F)&&k(!1)).catch(F=>(F==null?void 0:F.type)!=="cancelation"&&console.error("Monaco initialization: error:",F)),()=>T.current?W():z.cancel()}),aa(()=>{if(T.current&&x.current){let z=T.current.getOriginalEditor(),F=H0(x.current,e||"",n||r||"text",i||"");F!==z.getModel()&&z.setModel(F)}},[i],_),aa(()=>{if(T.current&&x.current){let z=T.current.getModifiedEditor(),F=H0(x.current,t||"",o||r||"text",s||"");F!==z.getModel()&&z.setModel(F)}},[s],_),aa(()=>{let z=T.current.getModifiedEditor();z.getOption(x.current.editor.EditorOption.readOnly)?z.setValue(t||""):t!==z.getValue()&&(z.executeEdits("",[{range:z.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),z.pushUndoStop())},[t],_),aa(()=>{var z,F;(F=(z=T.current)==null?void 0:z.getModel())==null||F.original.setValue(e||"")},[e],_),aa(()=>{let{original:z,modified:F}=T.current.getModel();x.current.editor.setModelLanguage(z,n||r||"text"),x.current.editor.setModelLanguage(F,o||r||"text")},[r,n,o],_),aa(()=>{var z;(z=x.current)==null||z.editor.setTheme(u)},[u],_),aa(()=>{var z;(z=T.current)==null||z.updateOptions(f)},[f],_);let L=A.useCallback(()=>{var P;if(!x.current)return;R.current(x.current);let z=H0(x.current,e||"",n||r||"text",i||""),F=H0(x.current,t||"",o||r||"text",s||"");(P=T.current)==null||P.setModel({original:z,modified:F})},[r,t,o,e,n,i,s]),M=A.useCallback(()=>{var z;!D.current&&I.current&&(T.current=x.current.editor.createDiffEditor(I.current,{automaticLayout:!0,...f}),L(),(z=x.current)==null||z.editor.setTheme(u),S(!0),D.current=!0)},[f,u,L]);A.useEffect(()=>{_&&C.current(T.current,x.current)},[_]),A.useEffect(()=>{!b&&!_&&M()},[b,_,M]);function W(){var F,P,K,V;let z=(F=T.current)==null?void 0:F.getModel();a||((P=z==null?void 0:z.original)==null||P.dispose()),l||((K=z==null?void 0:z.modified)==null||K.dispose()),(V=T.current)==null||V.dispose()}return re.createElement(Hhe,{width:h,height:d,isEditorReady:_,loading:c,_ref:I,className:g,wrapperProps:v})}var pat=hat;A.memo(pat);function gat(e){let t=A.useRef();return A.useEffect(()=>{t.current=e},[e]),t.current}var vat=gat,qw=new Map;function mat({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:s="light",line:a,loading:l="Loading...",options:u={},overrideServices:c={},saveViewState:f=!0,keepCurrentModel:d=!1,width:h="100%",height:g="100%",className:v,wrapperProps:y={},beforeMount:E=nb,onMount:_=nb,onChange:S,onValidate:b=nb}){let[k,T]=A.useState(!1),[x,I]=A.useState(!0),C=A.useRef(null),R=A.useRef(null),D=A.useRef(null),L=A.useRef(_),M=A.useRef(E),W=A.useRef(),z=A.useRef(n),F=vat(i),P=A.useRef(!1),K=A.useRef(!1);$he(()=>{let J=zhe.init();return J.then(ee=>(C.current=ee)&&I(!1)).catch(ee=>(ee==null?void 0:ee.type)!=="cancelation"&&console.error("Monaco initialization: error:",ee)),()=>R.current?Z():J.cancel()}),aa(()=>{var ee,de,ge,Se;let J=H0(C.current,e||n||"",t||o||"",i||r||"");J!==((ee=R.current)==null?void 0:ee.getModel())&&(f&&qw.set(F,(de=R.current)==null?void 0:de.saveViewState()),(ge=R.current)==null||ge.setModel(J),f&&((Se=R.current)==null||Se.restoreViewState(qw.get(i))))},[i],k),aa(()=>{var J;(J=R.current)==null||J.updateOptions(u)},[u],k),aa(()=>{!R.current||n===void 0||(R.current.getOption(C.current.editor.EditorOption.readOnly)?R.current.setValue(n):n!==R.current.getValue()&&(K.current=!0,R.current.executeEdits("",[{range:R.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),R.current.pushUndoStop(),K.current=!1))},[n],k),aa(()=>{var ee,de;let J=(ee=R.current)==null?void 0:ee.getModel();J&&o&&((de=C.current)==null||de.editor.setModelLanguage(J,o))},[o],k),aa(()=>{var J;a!==void 0&&((J=R.current)==null||J.revealLine(a))},[a],k),aa(()=>{var J;(J=C.current)==null||J.editor.setTheme(s)},[s],k);let V=A.useCallback(()=>{var J;if(!(!D.current||!C.current)&&!P.current){M.current(C.current);let ee=i||r,de=H0(C.current,n||e||"",t||o||"",ee||"");R.current=(J=C.current)==null?void 0:J.editor.create(D.current,{model:de,automaticLayout:!0,...u},c),f&&R.current.restoreViewState(qw.get(ee)),C.current.editor.setTheme(s),a!==void 0&&R.current.revealLine(a),T(!0),P.current=!0}},[e,t,r,n,o,i,u,c,f,s,a]);A.useEffect(()=>{k&&L.current(R.current,C.current)},[k]),A.useEffect(()=>{!x&&!k&&V()},[x,k,V]),z.current=n,A.useEffect(()=>{var J,ee;k&&S&&((J=W.current)==null||J.dispose(),W.current=(ee=R.current)==null?void 0:ee.onDidChangeModelContent(de=>{K.current||S(R.current.getValue(),de)}))},[k,S]),A.useEffect(()=>{if(k){let J=C.current.editor.onDidChangeMarkers(ee=>{var ge;let de=(ge=R.current.getModel())==null?void 0:ge.uri;if(de&&ee.find(Se=>Se.path===de.path)){let Se=C.current.editor.getModelMarkers({resource:de});b==null||b(Se)}});return()=>{J==null||J.dispose()}}return()=>{}},[k,b]);function Z(){var J,ee;(J=W.current)==null||J.dispose(),d?f&&qw.set(i,R.current.saveViewState()):(ee=R.current.getModel())==null||ee.dispose(),R.current.dispose()}return re.createElement(Hhe,{width:h,height:g,isEditorReady:k,loading:l,_ref:D,className:v,wrapperProps:y})}var yat=mat,bat=A.memo(yat),qhe=bat;mi({root:{},header:{display:"flex",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:"var(--vscode-editor-inactiveSelectionBackground)"}},toggleButton:{marginRight:"0.5em",userSelect:"none"},body:{overflowY:"hidden",height:"fit-content"}});const Un="default",xh="All variants";Oi.llm,Oi.llm,Oi.llm,Oi.llm,Oi.llm;class Whe{constructor({activeNodeName:t}){this.isRightPanelOpen$=new st(!0),this.errorMessages$=new st([]),this.topbarErrorMessage$=new st(""),this.activeNodeName$=new st(t),this.flowFilePath$=new st(""),this.flowFileRelativePath$=new st(""),this.flowFileNextPath$=new st(""),this.flowFileNextRelativePath$=new st(""),this.chatSourceFileName$=new st(""),this.isSwitchingFlowPathLocked$=new st(!1),this.flowChatConfig$=new st({chatInputName:"",chatOutputName:"",chatHistoryName:""}),this.flowLoadFinished$=new st(!1),this.flowInitMap$=new Ko,this.flowInputsMap$=new Ko,this.flowOutputsMap$=new Ko,this.flowOutputPathMap$=new Ko,this.flowLastRunId$=new Ko,this.flowTestRunStatus$=new Ko,this.flowHistoryMap$=new Ko,this.sessionIds=new Map,this.chatMessageVariantFilter$=new st([xh]),this.flowSnapshot$=new st(void 0),this.chatUITheme$=new st(no?"dark":"light"),this.chatConsole$=new Ko,this.defaultFlowRunMetrics$=new Ko,this.rightPanelState$=new st({selectedTab:"Settings",width:560}),this.settingsSubmitting$=new st({}),this.errorMessages$=new st([]),this.topbarErrorMessage$=new st(""),this.chatSourceType$=new st(At.Dag),this.inferSignature$=new st(void 0),this.activeNodeName$.subscribe(()=>{this.chatMessageVariantFilter$.next([xh])})}}const Ghe=re.createContext({viewModel:new Whe({activeNodeName:Un,flowFilePath:""})}),_at=({children:e})=>{const[t]=re.useState(()=>({viewModel:new Whe({activeNodeName:Un,flowFilePath:""})})),r=ri(t.viewModel.chatUITheme$);return N.jsx(Ghe.Provider,{value:t,children:e({theme:r})})},Gj=Symbol.for("yaml.alias"),G6=Symbol.for("yaml.document"),o1=Symbol.for("yaml.map"),Khe=Symbol.for("yaml.pair"),Mf=Symbol.for("yaml.scalar"),Fv=Symbol.for("yaml.seq"),kl=Symbol.for("yaml.node.type"),bp=e=>!!e&&typeof e=="object"&&e[kl]===Gj,Bv=e=>!!e&&typeof e=="object"&&e[kl]===G6,Mv=e=>!!e&&typeof e=="object"&&e[kl]===o1,Hn=e=>!!e&&typeof e=="object"&&e[kl]===Khe,mn=e=>!!e&&typeof e=="object"&&e[kl]===Mf,Lv=e=>!!e&&typeof e=="object"&&e[kl]===Fv;function Vn(e){if(e&&typeof e=="object")switch(e[kl]){case o1:case Fv:return!0}return!1}function go(e){if(e&&typeof e=="object")switch(e[kl]){case Gj:case o1:case Mf:case Fv:return!0}return!1}const Eat=e=>(mn(e)||Vn(e))&&!!e.anchor,Cs=Symbol("break visit"),Vhe=Symbol("skip children"),uc=Symbol("remove node");function y1(e,t){const r=Uhe(t);Bv(e)?$0(null,e.contents,r,Object.freeze([e]))===uc&&(e.contents=null):$0(null,e,r,Object.freeze([]))}y1.BREAK=Cs;y1.SKIP=Vhe;y1.REMOVE=uc;function $0(e,t,r,n){const o=Yhe(e,t,r,n);if(go(o)||Hn(o))return Xhe(e,n,o),$0(e,o,r,n);if(typeof o!="symbol"){if(Vn(t)){n=Object.freeze(n.concat(t));for(let i=0;ie.replace(/[!,[\]{}]/g,t=>Sat[t]);class Yi{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Yi.defaultYaml,t),this.tags=Object.assign({},Yi.defaultTags,r)}clone(){const t=new Yi(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Yi(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Yi.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Yi.defaultTags);break}return t}add(t,r){this.atNextDocument&&(this.yaml={explicit:Yi.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Yi.defaultTags),this.atNextDocument=!1);const n=t.trim().split(/[ \t]+/),o=n.shift();switch(o){case"%TAG":{if(n.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[i,s]=n;return this.tags[i]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[i]=n;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const s=/^\d+\.\d+$/.test(i);return r(6,`Unsupported YAML version ${i}`,s),!1}}default:return r(0,`Unknown directive ${o}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const s=t.slice(2,-1);return s==="!"||s==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),s)}const[,n,o]=t.match(/^(.*!)([^!]*)$/s);o||r(`The ${t} tag has no suffix`);const i=this.tags[n];if(i)try{return i+decodeURIComponent(o)}catch(s){return r(String(s)),null}return n==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[r,n]of Object.entries(this.tags))if(t.startsWith(n))return r+wat(t.substring(n.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let o;if(t&&n.length>0&&go(t.contents)){const i={};y1(t.contents,(s,a)=>{go(a)&&a.tag&&(i[a.tag]=!0)}),o=Object.keys(i)}else o=[];for(const[i,s]of n)i==="!!"&&s==="tag:yaml.org,2002:"||(!t||o.some(a=>a.startsWith(s)))&&r.push(`%TAG ${i} ${s}`);return r.join(` -`)}}Yi.defaultYaml={explicit:!1,version:"1.2"};Yi.defaultTags={"!!":"tag:yaml.org,2002:"};function Qhe(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(r)}return!0}function Zhe(e){const t=new Set;return y1(e,{Value(r,n){n.anchor&&t.add(n.anchor)}}),t}function Jhe(e,t){for(let r=1;;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function kat(e,t){const r=[],n=new Map;let o=null;return{onAnchor:i=>{r.push(i),o||(o=Zhe(e));const s=Jhe(t,o);return o.add(s),s},setAnchors:()=>{for(const i of r){const s=n.get(i);if(typeof s=="object"&&s.anchor&&(mn(s.node)||Vn(s.node)))s.node.anchor=s.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},sourceObjects:n}}function q0(e,t,r,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let o=0,i=n.length;oml(n,String(o),r));if(e&&typeof e.toJSON=="function"){if(!r||!Eat(e))return e.toJSON(t,r);const n={aliasCount:0,count:1,res:void 0};r.anchors.set(e,n),r.onCreate=i=>{n.res=i,delete r.onCreate};const o=e.toJSON(t,r);return r.onCreate&&r.onCreate(o),o}return typeof e=="bigint"&&!(r!=null&&r.keep)?Number(e):e}class Kj{constructor(t){Object.defineProperty(this,kl,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:r,maxAliasCount:n,onAnchor:o,reviver:i}={}){if(!Bv(t))throw new TypeError("A document argument is required");const s={anchors:new Map,doc:t,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},a=ml(this,"",s);if(typeof o=="function")for(const{count:l,res:u}of s.anchors.values())o(u,l);return typeof i=="function"?q0(i,{"":a},"",a):a}}class a5 extends Kj{constructor(t){super(Gj),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let r;return y1(t,{Node:(n,o)=>{if(o===this)return y1.BREAK;o.anchor===this.source&&(r=o)}}),r}toJSON(t,r){if(!r)return{source:this.source};const{anchors:n,doc:o,maxAliasCount:i}=r,s=this.resolve(o);if(!s){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=n.get(s);if(a||(ml(s,null,r),a=n.get(s)),!a||a.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Pk(o,s,n)),a.count*a.aliasCount>i)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(t,r,n){const o=`*${this.source}`;if(t){if(Qhe(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${o} `}return o}}function Pk(e,t,r){if(bp(t)){const n=t.resolve(e),o=r&&n&&r.get(n);return o?o.count*o.aliasCount:0}else if(Vn(t)){let n=0;for(const o of t.items){const i=Pk(e,o,r);i>n&&(n=i)}return n}else if(Hn(t)){const n=Pk(e,t.key,r),o=Pk(e,t.value,r);return Math.max(n,o)}return 1}const epe=e=>!e||typeof e!="function"&&typeof e!="object";class Jt extends Kj{constructor(t){super(Mf),this.value=t}toJSON(t,r){return r!=null&&r.keep?this.value:ml(this.value,t,r)}toString(){return String(this.value)}}Jt.BLOCK_FOLDED="BLOCK_FOLDED";Jt.BLOCK_LITERAL="BLOCK_LITERAL";Jt.PLAIN="PLAIN";Jt.QUOTE_DOUBLE="QUOTE_DOUBLE";Jt.QUOTE_SINGLE="QUOTE_SINGLE";const Aat="tag:yaml.org,2002:";function xat(e,t,r){if(t){const n=r.filter(i=>i.tag===t),o=n.find(i=>!i.format)??n[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return r.find(n=>{var o;return((o=n.identify)==null?void 0:o.call(n,e))&&!n.format})}function f_(e,t,r){var f,d,h;if(Bv(e)&&(e=e.contents),go(e))return e;if(Hn(e)){const g=(d=(f=r.schema[o1]).createNode)==null?void 0:d.call(f,r.schema,null,r);return g.items.push(e),g}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:n,onAnchor:o,onTagObj:i,schema:s,sourceObjects:a}=r;let l;if(n&&e&&typeof e=="object"){if(l=a.get(e),l)return l.anchor||(l.anchor=o(e)),new a5(l.anchor);l={anchor:null,node:null},a.set(e,l)}t!=null&&t.startsWith("!!")&&(t=Aat+t.slice(2));let u=xat(e,t,s.tags);if(!u){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const g=new Jt(e);return l&&(l.node=g),g}u=e instanceof Map?s[o1]:Symbol.iterator in Object(e)?s[Fv]:s[o1]}i&&(i(u),delete r.onTagObj);const c=u!=null&&u.createNode?u.createNode(r.schema,e,r):typeof((h=u==null?void 0:u.nodeClass)==null?void 0:h.from)=="function"?u.nodeClass.from(r.schema,e,r):new Jt(e);return t?c.tag=t:u.default||(c.tag=u.tag),l&&(l.node=c),c}function gx(e,t,r){let n=r;for(let o=t.length-1;o>=0;--o){const i=t[o];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const s=[];s[i]=n,n=s}else n=new Map([[i,n]])}return f_(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const wy=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class l5 extends Kj{constructor(t,r){super(t),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(t){const r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(r.schema=t),r.items=r.items.map(n=>go(n)||Hn(n)?n.clone(t):n),this.range&&(r.range=this.range.slice()),r}addIn(t,r){if(wy(t))this.add(r);else{const[n,...o]=t,i=this.get(n,!0);if(Vn(i))i.addIn(o,r);else if(i===void 0&&this.schema)this.set(n,gx(this.schema,o,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}deleteIn(t){const[r,...n]=t;if(n.length===0)return this.delete(r);const o=this.get(r,!0);if(Vn(o))return o.deleteIn(n);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}getIn(t,r){const[n,...o]=t,i=this.get(n,!0);return o.length===0?!r&&mn(i)?i.value:i:Vn(i)?i.getIn(o,r):void 0}hasAllNullValues(t){return this.items.every(r=>{if(!Hn(r))return!1;const n=r.value;return n==null||t&&mn(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(t){const[r,...n]=t;if(n.length===0)return this.has(r);const o=this.get(r,!0);return Vn(o)?o.hasIn(n):!1}setIn(t,r){const[n,...o]=t;if(o.length===0)this.set(n,r);else{const i=this.get(n,!0);if(Vn(i))i.setIn(o,r);else if(i===void 0&&this.schema)this.set(n,gx(this.schema,o,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}}l5.maxFlowStringSingleLineLength=60;const Tat=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function df(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const jd=(e,t,r)=>e.endsWith(` + `},Tee=Wst(Ust)(Mhe),Yst={config:Kst},Xst=function(){for(var t=arguments.length,r=new Array(t),n=0;n{n.current=!1}:e,t)}var aa=gat;function nb(){}function H0(e,t,r,n){return vat(e,n)||mat(e,t,r,n)}function vat(e,t){return e.editor.getModel(qhe(e,t))}function mat(e,t,r,n){return e.editor.createModel(t,r,n?qhe(e,n):void 0)}function qhe(e,t){return e.Uri.parse(t)}function yat({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:s,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:c="Loading...",options:f={},height:d="100%",width:h="100%",className:g,wrapperProps:v={},beforeMount:y=nb,onMount:E=nb}){let[_,S]=A.useState(!1),[b,k]=A.useState(!0),T=A.useRef(null),x=A.useRef(null),I=A.useRef(null),C=A.useRef(E),R=A.useRef(y),D=A.useRef(!1);Phe(()=>{let z=Hhe.init();return z.then(F=>(x.current=F)&&k(!1)).catch(F=>(F==null?void 0:F.type)!=="cancelation"&&console.error("Monaco initialization: error:",F)),()=>T.current?W():z.cancel()}),aa(()=>{if(T.current&&x.current){let z=T.current.getOriginalEditor(),F=H0(x.current,e||"",n||r||"text",i||"");F!==z.getModel()&&z.setModel(F)}},[i],_),aa(()=>{if(T.current&&x.current){let z=T.current.getModifiedEditor(),F=H0(x.current,t||"",o||r||"text",s||"");F!==z.getModel()&&z.setModel(F)}},[s],_),aa(()=>{let z=T.current.getModifiedEditor();z.getOption(x.current.editor.EditorOption.readOnly)?z.setValue(t||""):t!==z.getValue()&&(z.executeEdits("",[{range:z.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),z.pushUndoStop())},[t],_),aa(()=>{var z,F;(F=(z=T.current)==null?void 0:z.getModel())==null||F.original.setValue(e||"")},[e],_),aa(()=>{let{original:z,modified:F}=T.current.getModel();x.current.editor.setModelLanguage(z,n||r||"text"),x.current.editor.setModelLanguage(F,o||r||"text")},[r,n,o],_),aa(()=>{var z;(z=x.current)==null||z.editor.setTheme(u)},[u],_),aa(()=>{var z;(z=T.current)==null||z.updateOptions(f)},[f],_);let L=A.useCallback(()=>{var P;if(!x.current)return;R.current(x.current);let z=H0(x.current,e||"",n||r||"text",i||""),F=H0(x.current,t||"",o||r||"text",s||"");(P=T.current)==null||P.setModel({original:z,modified:F})},[r,t,o,e,n,i,s]),M=A.useCallback(()=>{var z;!D.current&&I.current&&(T.current=x.current.editor.createDiffEditor(I.current,{automaticLayout:!0,...f}),L(),(z=x.current)==null||z.editor.setTheme(u),S(!0),D.current=!0)},[f,u,L]);A.useEffect(()=>{_&&C.current(T.current,x.current)},[_]),A.useEffect(()=>{!b&&!_&&M()},[b,_,M]);function W(){var F,P,K,V;let z=(F=T.current)==null?void 0:F.getModel();a||((P=z==null?void 0:z.original)==null||P.dispose()),l||((K=z==null?void 0:z.modified)==null||K.dispose()),(V=T.current)==null||V.dispose()}return re.createElement($he,{width:h,height:d,isEditorReady:_,loading:c,_ref:I,className:g,wrapperProps:v})}var bat=yat;A.memo(bat);function _at(e){let t=A.useRef();return A.useEffect(()=>{t.current=e},[e]),t.current}var Eat=_at,Ww=new Map;function Sat({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:s="light",line:a,loading:l="Loading...",options:u={},overrideServices:c={},saveViewState:f=!0,keepCurrentModel:d=!1,width:h="100%",height:g="100%",className:v,wrapperProps:y={},beforeMount:E=nb,onMount:_=nb,onChange:S,onValidate:b=nb}){let[k,T]=A.useState(!1),[x,I]=A.useState(!0),C=A.useRef(null),R=A.useRef(null),D=A.useRef(null),L=A.useRef(_),M=A.useRef(E),W=A.useRef(),z=A.useRef(n),F=Eat(i),P=A.useRef(!1),K=A.useRef(!1);Phe(()=>{let J=Hhe.init();return J.then(ee=>(C.current=ee)&&I(!1)).catch(ee=>(ee==null?void 0:ee.type)!=="cancelation"&&console.error("Monaco initialization: error:",ee)),()=>R.current?Z():J.cancel()}),aa(()=>{var ee,de,ge,Se;let J=H0(C.current,e||n||"",t||o||"",i||r||"");J!==((ee=R.current)==null?void 0:ee.getModel())&&(f&&Ww.set(F,(de=R.current)==null?void 0:de.saveViewState()),(ge=R.current)==null||ge.setModel(J),f&&((Se=R.current)==null||Se.restoreViewState(Ww.get(i))))},[i],k),aa(()=>{var J;(J=R.current)==null||J.updateOptions(u)},[u],k),aa(()=>{!R.current||n===void 0||(R.current.getOption(C.current.editor.EditorOption.readOnly)?R.current.setValue(n):n!==R.current.getValue()&&(K.current=!0,R.current.executeEdits("",[{range:R.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),R.current.pushUndoStop(),K.current=!1))},[n],k),aa(()=>{var ee,de;let J=(ee=R.current)==null?void 0:ee.getModel();J&&o&&((de=C.current)==null||de.editor.setModelLanguage(J,o))},[o],k),aa(()=>{var J;a!==void 0&&((J=R.current)==null||J.revealLine(a))},[a],k),aa(()=>{var J;(J=C.current)==null||J.editor.setTheme(s)},[s],k);let V=A.useCallback(()=>{var J;if(!(!D.current||!C.current)&&!P.current){M.current(C.current);let ee=i||r,de=H0(C.current,n||e||"",t||o||"",ee||"");R.current=(J=C.current)==null?void 0:J.editor.create(D.current,{model:de,automaticLayout:!0,...u},c),f&&R.current.restoreViewState(Ww.get(ee)),C.current.editor.setTheme(s),a!==void 0&&R.current.revealLine(a),T(!0),P.current=!0}},[e,t,r,n,o,i,u,c,f,s,a]);A.useEffect(()=>{k&&L.current(R.current,C.current)},[k]),A.useEffect(()=>{!x&&!k&&V()},[x,k,V]),z.current=n,A.useEffect(()=>{var J,ee;k&&S&&((J=W.current)==null||J.dispose(),W.current=(ee=R.current)==null?void 0:ee.onDidChangeModelContent(de=>{K.current||S(R.current.getValue(),de)}))},[k,S]),A.useEffect(()=>{if(k){let J=C.current.editor.onDidChangeMarkers(ee=>{var ge;let de=(ge=R.current.getModel())==null?void 0:ge.uri;if(de&&ee.find(Se=>Se.path===de.path)){let Se=C.current.editor.getModelMarkers({resource:de});b==null||b(Se)}});return()=>{J==null||J.dispose()}}return()=>{}},[k,b]);function Z(){var J,ee;(J=W.current)==null||J.dispose(),d?f&&Ww.set(i,R.current.saveViewState()):(ee=R.current.getModel())==null||ee.dispose(),R.current.dispose()}return re.createElement($he,{width:h,height:g,isEditorReady:k,loading:l,_ref:D,className:v,wrapperProps:y})}var wat=Sat,kat=A.memo(wat),Whe=kat;mi({root:{},header:{display:"flex",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:"var(--vscode-editor-inactiveSelectionBackground)"}},toggleButton:{marginRight:"0.5em",userSelect:"none"},body:{overflowY:"hidden",height:"fit-content"}});const Yn="default",Th="All variants";Ri.llm,Ri.llm,Ri.llm,Ri.llm,Ri.llm;class Ghe{constructor({activeNodeName:t}){this.isRightPanelOpen$=new st(!0),this.errorMessages$=new st([]),this.topbarErrorMessage$=new st(""),this.activeNodeName$=new st(t),this.flowFilePath$=new st(""),this.flowFileRelativePath$=new st(""),this.flowFileNextPath$=new st(""),this.flowFileNextRelativePath$=new st(""),this.chatSourceFileName$=new st(""),this.isSwitchingFlowPathLocked$=new st(!1),this.flowChatConfig$=new st({chatInputName:"",chatOutputName:"",chatHistoryName:""}),this.flowLoadFinished$=new st(!1),this.flowInitMap$=new Ko,this.flowInputsMap$=new Ko,this.flowOutputsMap$=new Ko,this.flowOutputPathMap$=new Ko,this.flowLastRunId$=new Ko,this.flowTestRunStatus$=new Ko,this.flowHistoryMap$=new Ko,this.sessionIds=new Map,this.chatMessageVariantFilter$=new st([Th]),this.flowSnapshot$=new st(void 0),this.chatUITheme$=new st(Un?"dark":"light"),this.chatConsole$=new Ko,this.defaultFlowRunMetrics$=new Ko,this.rightPanelState$=new st({selectedTab:"Settings",width:560}),this.settingsSubmitting$=new st({}),this.errorMessages$=new st([]),this.topbarErrorMessage$=new st(""),this.chatSourceType$=new st(At.Dag),this.inferSignature$=new st(void 0),this.activeNodeName$.subscribe(()=>{this.chatMessageVariantFilter$.next([Th])})}}const Khe=re.createContext({viewModel:new Ghe({activeNodeName:Yn,flowFilePath:""})}),Aat=({children:e})=>{const[t]=re.useState(()=>({viewModel:new Ghe({activeNodeName:Yn,flowFilePath:""})})),r=ri(t.viewModel.chatUITheme$);return N.jsx(Khe.Provider,{value:t,children:e({theme:r})})},Kj=Symbol.for("yaml.alias"),K6=Symbol.for("yaml.document"),o1=Symbol.for("yaml.map"),Vhe=Symbol.for("yaml.pair"),Mf=Symbol.for("yaml.scalar"),Fv=Symbol.for("yaml.seq"),Al=Symbol.for("yaml.node.type"),_p=e=>!!e&&typeof e=="object"&&e[Al]===Kj,Bv=e=>!!e&&typeof e=="object"&&e[Al]===K6,Mv=e=>!!e&&typeof e=="object"&&e[Al]===o1,Hn=e=>!!e&&typeof e=="object"&&e[Al]===Vhe,mn=e=>!!e&&typeof e=="object"&&e[Al]===Mf,Lv=e=>!!e&&typeof e=="object"&&e[Al]===Fv;function Vn(e){if(e&&typeof e=="object")switch(e[Al]){case o1:case Fv:return!0}return!1}function go(e){if(e&&typeof e=="object")switch(e[Al]){case Kj:case o1:case Mf:case Fv:return!0}return!1}const xat=e=>(mn(e)||Vn(e))&&!!e.anchor,Cs=Symbol("break visit"),Uhe=Symbol("skip children"),uc=Symbol("remove node");function y1(e,t){const r=Yhe(t);Bv(e)?$0(null,e.contents,r,Object.freeze([e]))===uc&&(e.contents=null):$0(null,e,r,Object.freeze([]))}y1.BREAK=Cs;y1.SKIP=Uhe;y1.REMOVE=uc;function $0(e,t,r,n){const o=Xhe(e,t,r,n);if(go(o)||Hn(o))return Qhe(e,n,o),$0(e,o,r,n);if(typeof o!="symbol"){if(Vn(t)){n=Object.freeze(n.concat(t));for(let i=0;ie.replace(/[!,[\]{}]/g,t=>Tat[t]);class Yi{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Yi.defaultYaml,t),this.tags=Object.assign({},Yi.defaultTags,r)}clone(){const t=new Yi(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Yi(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Yi.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Yi.defaultTags);break}return t}add(t,r){this.atNextDocument&&(this.yaml={explicit:Yi.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Yi.defaultTags),this.atNextDocument=!1);const n=t.trim().split(/[ \t]+/),o=n.shift();switch(o){case"%TAG":{if(n.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[i,s]=n;return this.tags[i]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[i]=n;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const s=/^\d+\.\d+$/.test(i);return r(6,`Unsupported YAML version ${i}`,s),!1}}default:return r(0,`Unknown directive ${o}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const s=t.slice(2,-1);return s==="!"||s==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),s)}const[,n,o]=t.match(/^(.*!)([^!]*)$/s);o||r(`The ${t} tag has no suffix`);const i=this.tags[n];if(i)try{return i+decodeURIComponent(o)}catch(s){return r(String(s)),null}return n==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[r,n]of Object.entries(this.tags))if(t.startsWith(n))return r+Iat(t.substring(n.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let o;if(t&&n.length>0&&go(t.contents)){const i={};y1(t.contents,(s,a)=>{go(a)&&a.tag&&(i[a.tag]=!0)}),o=Object.keys(i)}else o=[];for(const[i,s]of n)i==="!!"&&s==="tag:yaml.org,2002:"||(!t||o.some(a=>a.startsWith(s)))&&r.push(`%TAG ${i} ${s}`);return r.join(` +`)}}Yi.defaultYaml={explicit:!1,version:"1.2"};Yi.defaultTags={"!!":"tag:yaml.org,2002:"};function Zhe(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(r)}return!0}function Jhe(e){const t=new Set;return y1(e,{Value(r,n){n.anchor&&t.add(n.anchor)}}),t}function epe(e,t){for(let r=1;;++r){const n=`${e}${r}`;if(!t.has(n))return n}}function Cat(e,t){const r=[],n=new Map;let o=null;return{onAnchor:i=>{r.push(i),o||(o=Jhe(e));const s=epe(t,o);return o.add(s),s},setAnchors:()=>{for(const i of r){const s=n.get(i);if(typeof s=="object"&&s.anchor&&(mn(s.node)||Vn(s.node)))s.node.anchor=s.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},sourceObjects:n}}function q0(e,t,r,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let o=0,i=n.length;oyl(n,String(o),r));if(e&&typeof e.toJSON=="function"){if(!r||!xat(e))return e.toJSON(t,r);const n={aliasCount:0,count:1,res:void 0};r.anchors.set(e,n),r.onCreate=i=>{n.res=i,delete r.onCreate};const o=e.toJSON(t,r);return r.onCreate&&r.onCreate(o),o}return typeof e=="bigint"&&!(r!=null&&r.keep)?Number(e):e}class Vj{constructor(t){Object.defineProperty(this,Al,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:r,maxAliasCount:n,onAnchor:o,reviver:i}={}){if(!Bv(t))throw new TypeError("A document argument is required");const s={anchors:new Map,doc:t,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},a=yl(this,"",s);if(typeof o=="function")for(const{count:l,res:u}of s.anchors.values())o(u,l);return typeof i=="function"?q0(i,{"":a},"",a):a}}class l5 extends Vj{constructor(t){super(Kj),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let r;return y1(t,{Node:(n,o)=>{if(o===this)return y1.BREAK;o.anchor===this.source&&(r=o)}}),r}toJSON(t,r){if(!r)return{source:this.source};const{anchors:n,doc:o,maxAliasCount:i}=r,s=this.resolve(o);if(!s){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=n.get(s);if(a||(yl(s,null,r),a=n.get(s)),!a||a.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=qk(o,s,n)),a.count*a.aliasCount>i)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(t,r,n){const o=`*${this.source}`;if(t){if(Zhe(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${o} `}return o}}function qk(e,t,r){if(_p(t)){const n=t.resolve(e),o=r&&n&&r.get(n);return o?o.count*o.aliasCount:0}else if(Vn(t)){let n=0;for(const o of t.items){const i=qk(e,o,r);i>n&&(n=i)}return n}else if(Hn(t)){const n=qk(e,t.key,r),o=qk(e,t.value,r);return Math.max(n,o)}return 1}const tpe=e=>!e||typeof e!="function"&&typeof e!="object";class Jt extends Vj{constructor(t){super(Mf),this.value=t}toJSON(t,r){return r!=null&&r.keep?this.value:yl(this.value,t,r)}toString(){return String(this.value)}}Jt.BLOCK_FOLDED="BLOCK_FOLDED";Jt.BLOCK_LITERAL="BLOCK_LITERAL";Jt.PLAIN="PLAIN";Jt.QUOTE_DOUBLE="QUOTE_DOUBLE";Jt.QUOTE_SINGLE="QUOTE_SINGLE";const Nat="tag:yaml.org,2002:";function Rat(e,t,r){if(t){const n=r.filter(i=>i.tag===t),o=n.find(i=>!i.format)??n[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return r.find(n=>{var o;return((o=n.identify)==null?void 0:o.call(n,e))&&!n.format})}function f_(e,t,r){var f,d,h;if(Bv(e)&&(e=e.contents),go(e))return e;if(Hn(e)){const g=(d=(f=r.schema[o1]).createNode)==null?void 0:d.call(f,r.schema,null,r);return g.items.push(e),g}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:n,onAnchor:o,onTagObj:i,schema:s,sourceObjects:a}=r;let l;if(n&&e&&typeof e=="object"){if(l=a.get(e),l)return l.anchor||(l.anchor=o(e)),new l5(l.anchor);l={anchor:null,node:null},a.set(e,l)}t!=null&&t.startsWith("!!")&&(t=Nat+t.slice(2));let u=Rat(e,t,s.tags);if(!u){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const g=new Jt(e);return l&&(l.node=g),g}u=e instanceof Map?s[o1]:Symbol.iterator in Object(e)?s[Fv]:s[o1]}i&&(i(u),delete r.onTagObj);const c=u!=null&&u.createNode?u.createNode(r.schema,e,r):typeof((h=u==null?void 0:u.nodeClass)==null?void 0:h.from)=="function"?u.nodeClass.from(r.schema,e,r):new Jt(e);return t?c.tag=t:u.default||(c.tag=u.tag),l&&(l.node=c),c}function vx(e,t,r){let n=r;for(let o=t.length-1;o>=0;--o){const i=t[o];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const s=[];s[i]=n,n=s}else n=new Map([[i,n]])}return f_(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const wy=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class u5 extends Vj{constructor(t,r){super(t),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(t){const r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(r.schema=t),r.items=r.items.map(n=>go(n)||Hn(n)?n.clone(t):n),this.range&&(r.range=this.range.slice()),r}addIn(t,r){if(wy(t))this.add(r);else{const[n,...o]=t,i=this.get(n,!0);if(Vn(i))i.addIn(o,r);else if(i===void 0&&this.schema)this.set(n,vx(this.schema,o,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}deleteIn(t){const[r,...n]=t;if(n.length===0)return this.delete(r);const o=this.get(r,!0);if(Vn(o))return o.deleteIn(n);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}getIn(t,r){const[n,...o]=t,i=this.get(n,!0);return o.length===0?!r&&mn(i)?i.value:i:Vn(i)?i.getIn(o,r):void 0}hasAllNullValues(t){return this.items.every(r=>{if(!Hn(r))return!1;const n=r.value;return n==null||t&&mn(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(t){const[r,...n]=t;if(n.length===0)return this.has(r);const o=this.get(r,!0);return Vn(o)?o.hasIn(n):!1}setIn(t,r){const[n,...o]=t;if(o.length===0)this.set(n,r);else{const i=this.get(n,!0);if(Vn(i))i.setIn(o,r);else if(i===void 0&&this.schema)this.set(n,vx(this.schema,o,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}}u5.maxFlowStringSingleLineLength=60;const Oat=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function df(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const jd=(e,t,r)=>e.endsWith(` `)?df(r,t):r.includes(` `)?` -`+df(r,t):(e.endsWith(" ")?"":" ")+r,tpe="flow",K6="block",qk="quoted";function u5(e,t,r="flow",{indentAtStart:n,lineWidth:o=80,minContentWidth:i=20,onFold:s,onOverflow:a}={}){if(!o||o<0)return e;const l=Math.max(1+i,1+o-t.length);if(e.length<=l)return e;const u=[],c={};let f=o-t.length;typeof n=="number"&&(n>o-Math.max(2,i)?u.push(0):f=o-n);let d,h,g=!1,v=-1,y=-1,E=-1;r===K6&&(v=Tee(e,v),v!==-1&&(f=v+l));for(let S;S=e[v+=1];){if(r===qk&&S==="\\"){switch(y=v,e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}E=v}if(S===` -`)r===K6&&(v=Tee(e,v)),f=v+l,d=void 0;else{if(S===" "&&h&&h!==" "&&h!==` +`+df(r,t):(e.endsWith(" ")?"":" ")+r,rpe="flow",V6="block",Wk="quoted";function c5(e,t,r="flow",{indentAtStart:n,lineWidth:o=80,minContentWidth:i=20,onFold:s,onOverflow:a}={}){if(!o||o<0)return e;const l=Math.max(1+i,1+o-t.length);if(e.length<=l)return e;const u=[],c={};let f=o-t.length;typeof n=="number"&&(n>o-Math.max(2,i)?u.push(0):f=o-n);let d,h,g=!1,v=-1,y=-1,E=-1;r===V6&&(v=Iee(e,v),v!==-1&&(f=v+l));for(let S;S=e[v+=1];){if(r===Wk&&S==="\\"){switch(y=v,e[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}E=v}if(S===` +`)r===V6&&(v=Iee(e,v)),f=v+l,d=void 0;else{if(S===" "&&h&&h!==" "&&h!==` `&&h!==" "){const b=e[v+1];b&&b!==" "&&b!==` -`&&b!==" "&&(d=v)}if(v>=f)if(d)u.push(d),f=d+l,d=void 0;else if(r===qk){for(;h===" "||h===" ";)h=S,S=e[v+=1],g=!0;const b=v>E+1?v-2:y-1;if(c[b])return e;u.push(b),c[b]=!0,f=b+l,d=void 0}else g=!0}h=S}if(g&&a&&a(),u.length===0)return e;s&&s();let _=e.slice(0,u[0]);for(let S=0;S({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),f5=e=>/^(%|---|\.\.\.)/m.test(e);function Iat(e,t,r){if(!t||t<0)return!1;const n=t-r,o=e.length;if(o<=n)return!1;for(let i=0,s=0;in)return!0;if(s=i+1,o-s<=n)return!1}return!0}function ob(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(f5(e)?" ":"");let s="",a=0;for(let l=0,u=r[l];u;u=r[++l])if(u===" "&&r[l+1]==="\\"&&r[l+2]==="n"&&(s+=r.slice(a,l)+"\\ ",l+=1,a=l,u="\\"),u==="\\")switch(r[l+1]){case"u":{s+=r.slice(a,l);const c=r.substr(l+2,4);switch(c){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:c.substr(0,2)==="00"?s+="\\x"+c.substr(2):s+=r.substr(l,6)}l+=5,a=l+1}break;case"n":if(n||r[l+2]==='"'||r.length=f)if(d)u.push(d),f=d+l,d=void 0;else if(r===Wk){for(;h===" "||h===" ";)h=S,S=e[v+=1],g=!0;const b=v>E+1?v-2:y-1;if(c[b])return e;u.push(b),c[b]=!0,f=b+l,d=void 0}else g=!0}h=S}if(g&&a&&a(),u.length===0)return e;s&&s();let _=e.slice(0,u[0]);for(let S=0;S({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),d5=e=>/^(%|---|\.\.\.)/m.test(e);function Dat(e,t,r){if(!t||t<0)return!1;const n=t-r,o=e.length;if(o<=n)return!1;for(let i=0,s=0;in)return!0;if(s=i+1,o-s<=n)return!1}return!0}function ob(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(d5(e)?" ":"");let s="",a=0;for(let l=0,u=r[l];u;u=r[++l])if(u===" "&&r[l+1]==="\\"&&r[l+2]==="n"&&(s+=r.slice(a,l)+"\\ ",l+=1,a=l,u="\\"),u==="\\")switch(r[l+1]){case"u":{s+=r.slice(a,l);const c=r.substr(l+2,4);switch(c){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:c.substr(0,2)==="00"?s+="\\x"+c.substr(2):s+=r.substr(l,6)}l+=5,a=l+1}break;case"n":if(n||r[l+2]==='"'||r.length `;let f,d;for(d=r.length;d>0;--d){const T=r[d-1];if(T!==` `&&T!==" "&&T!==" ")break}let h=r.substring(d);const g=h.indexOf(` `);g===-1?f="-":r===h||g!==h.length-1?(f="+",i&&i()):f="",h&&(r=r.slice(0,-h.length),h[h.length-1]===` -`&&(h=h.slice(0,-1)),h=h.replace(U6,`$&${u}`));let v=!1,y,E=-1;for(y=0;y")+(v?u?"2":"1":"")+f;if(e&&(b+=" "+a(e.replace(/ ?[\r\n]+/g," ")),o&&o()),c)return r=r.replace(/\n+/g,`$&${u}`),`${b} ${u}${_}${r}${h}`;r=r.replace(/\n+/g,` -$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`);const k=u5(`${_}${r}${h}`,u,K6,c5(n,!0));return`${b} -${u}${k}`}function Cat(e,t,r,n){const{type:o,value:i}=e,{actualString:s,implicitKey:a,indent:l,indentStep:u,inFlow:c}=t;if(a&&i.includes(` +$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`);const k=c5(`${_}${r}${h}`,u,V6,f5(n,!0));return`${b} +${u}${k}`}function Fat(e,t,r,n){const{type:o,value:i}=e,{actualString:s,implicitKey:a,indent:l,indentStep:u,inFlow:c}=t;if(a&&i.includes(` `)||c&&/[[\]{},]/.test(i))return W0(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||c||!i.includes(` -`)?W0(i,t):Wk(e,t,r,n);if(!a&&!c&&o!==Jt.PLAIN&&i.includes(` -`))return Wk(e,t,r,n);if(f5(i)){if(l==="")return t.forceBlockIndent=!0,Wk(e,t,r,n);if(a&&l===u)return W0(i,t)}const f=i.replace(/\n+/g,`$& -${l}`);if(s){const d=v=>{var y;return v.default&&v.tag!=="tag:yaml.org,2002:str"&&((y=v.test)==null?void 0:y.test(f))},{compat:h,tags:g}=t.doc.schema;if(g.some(d)||h!=null&&h.some(d))return W0(i,t)}return a?f:u5(f,l,tpe,c5(t,!1))}function xE(e,t,r,n){const{implicitKey:o,inFlow:i}=t,s=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==Jt.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=Jt.QUOTE_DOUBLE);const l=c=>{switch(c){case Jt.BLOCK_FOLDED:case Jt.BLOCK_LITERAL:return o||i?W0(s.value,t):Wk(s,t,r,n);case Jt.QUOTE_DOUBLE:return ob(s.value,t);case Jt.QUOTE_SINGLE:return V6(s.value,t);case Jt.PLAIN:return Cat(s,t,r,n);default:return null}};let u=l(a);if(u===null){const{defaultKeyType:c,defaultStringType:f}=t.options,d=o&&c||f;if(u=l(d),u===null)throw new Error(`Unsupported default string type ${d}`)}return u}function rpe(e,t){const r=Object.assign({blockQuote:!0,commentString:Tat,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function Nat(e,t){var o;if(t.tag){const i=e.filter(s=>s.tag===t.tag);if(i.length>0)return i.find(s=>s.format===t.format)??i[0]}let r,n;if(mn(t)){n=t.value;const i=e.filter(s=>{var a;return(a=s.identify)==null?void 0:a.call(s,n)});r=i.find(s=>s.format===t.format)??i.find(s=>!s.format)}else n=t,r=e.find(i=>i.nodeClass&&n instanceof i.nodeClass);if(!r){const i=((o=n==null?void 0:n.constructor)==null?void 0:o.name)??typeof n;throw new Error(`Tag not resolved for ${i} value`)}return r}function Rat(e,t,{anchors:r,doc:n}){if(!n.directives)return"";const o=[],i=(mn(e)||Vn(e))&&e.anchor;i&&Qhe(i)&&(r.add(i),o.push(`&${i}`));const s=e.tag?e.tag:t.default?null:t.tag;return s&&o.push(n.directives.tagString(s)),o.join(" ")}function Jg(e,t,r,n){var l;if(Hn(e))return e.toString(t,r,n);if(bp(e)){if(t.doc.directives)return e.toString(t);if((l=t.resolvedAliases)!=null&&l.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const i=go(e)?e:t.doc.createNode(e,{onTagObj:u=>o=u});o||(o=Nat(t.doc.schema.tags,i));const s=Rat(i,o,t);s.length>0&&(t.indentAtStart=(t.indentAtStart??0)+s.length+1);const a=typeof o.stringify=="function"?o.stringify(i,t,r,n):mn(i)?xE(i,t,r,n):i.toString(t,r,n);return s?mn(i)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s} -${t.indent}${a}`:a}function Oat({key:e,value:t},r,n,o){const{allNullValues:i,doc:s,indent:a,indentStep:l,options:{commentString:u,indentSeq:c,simpleKeys:f}}=r;let d=go(e)&&e.comment||null;if(f){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(Vn(e)){const x="With simple keys, collection cannot be used as a key value";throw new Error(x)}}let h=!f&&(!e||d&&t==null&&!r.inFlow||Vn(e)||(mn(e)?e.type===Jt.BLOCK_FOLDED||e.type===Jt.BLOCK_LITERAL:typeof e=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!h&&(f||!i),indent:a+l});let g=!1,v=!1,y=Jg(e,r,()=>g=!0,()=>v=!0);if(!h&&!r.inFlow&&y.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");h=!0}if(r.inFlow){if(i||t==null)return g&&n&&n(),y===""?"?":h?`? ${y}`:y}else if(i&&!f||t==null&&h)return y=`? ${y}`,d&&!g?y+=jd(y,r.indent,u(d)):v&&o&&o(),y;g&&(d=null),h?(d&&(y+=jd(y,r.indent,u(d))),y=`? ${y} +`)?W0(i,t):Gk(e,t,r,n);if(!a&&!c&&o!==Jt.PLAIN&&i.includes(` +`))return Gk(e,t,r,n);if(d5(i)){if(l==="")return t.forceBlockIndent=!0,Gk(e,t,r,n);if(a&&l===u)return W0(i,t)}const f=i.replace(/\n+/g,`$& +${l}`);if(s){const d=v=>{var y;return v.default&&v.tag!=="tag:yaml.org,2002:str"&&((y=v.test)==null?void 0:y.test(f))},{compat:h,tags:g}=t.doc.schema;if(g.some(d)||h!=null&&h.some(d))return W0(i,t)}return a?f:c5(f,l,rpe,f5(t,!1))}function xE(e,t,r,n){const{implicitKey:o,inFlow:i}=t,s=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==Jt.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=Jt.QUOTE_DOUBLE);const l=c=>{switch(c){case Jt.BLOCK_FOLDED:case Jt.BLOCK_LITERAL:return o||i?W0(s.value,t):Gk(s,t,r,n);case Jt.QUOTE_DOUBLE:return ob(s.value,t);case Jt.QUOTE_SINGLE:return U6(s.value,t);case Jt.PLAIN:return Fat(s,t,r,n);default:return null}};let u=l(a);if(u===null){const{defaultKeyType:c,defaultStringType:f}=t.options,d=o&&c||f;if(u=l(d),u===null)throw new Error(`Unsupported default string type ${d}`)}return u}function npe(e,t){const r=Object.assign({blockQuote:!0,commentString:Oat,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function Bat(e,t){var o;if(t.tag){const i=e.filter(s=>s.tag===t.tag);if(i.length>0)return i.find(s=>s.format===t.format)??i[0]}let r,n;if(mn(t)){n=t.value;const i=e.filter(s=>{var a;return(a=s.identify)==null?void 0:a.call(s,n)});r=i.find(s=>s.format===t.format)??i.find(s=>!s.format)}else n=t,r=e.find(i=>i.nodeClass&&n instanceof i.nodeClass);if(!r){const i=((o=n==null?void 0:n.constructor)==null?void 0:o.name)??typeof n;throw new Error(`Tag not resolved for ${i} value`)}return r}function Mat(e,t,{anchors:r,doc:n}){if(!n.directives)return"";const o=[],i=(mn(e)||Vn(e))&&e.anchor;i&&Zhe(i)&&(r.add(i),o.push(`&${i}`));const s=e.tag?e.tag:t.default?null:t.tag;return s&&o.push(n.directives.tagString(s)),o.join(" ")}function Jg(e,t,r,n){var l;if(Hn(e))return e.toString(t,r,n);if(_p(e)){if(t.doc.directives)return e.toString(t);if((l=t.resolvedAliases)!=null&&l.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const i=go(e)?e:t.doc.createNode(e,{onTagObj:u=>o=u});o||(o=Bat(t.doc.schema.tags,i));const s=Mat(i,o,t);s.length>0&&(t.indentAtStart=(t.indentAtStart??0)+s.length+1);const a=typeof o.stringify=="function"?o.stringify(i,t,r,n):mn(i)?xE(i,t,r,n):i.toString(t,r,n);return s?mn(i)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s} +${t.indent}${a}`:a}function Lat({key:e,value:t},r,n,o){const{allNullValues:i,doc:s,indent:a,indentStep:l,options:{commentString:u,indentSeq:c,simpleKeys:f}}=r;let d=go(e)&&e.comment||null;if(f){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(Vn(e)){const x="With simple keys, collection cannot be used as a key value";throw new Error(x)}}let h=!f&&(!e||d&&t==null&&!r.inFlow||Vn(e)||(mn(e)?e.type===Jt.BLOCK_FOLDED||e.type===Jt.BLOCK_LITERAL:typeof e=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!h&&(f||!i),indent:a+l});let g=!1,v=!1,y=Jg(e,r,()=>g=!0,()=>v=!0);if(!h&&!r.inFlow&&y.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");h=!0}if(r.inFlow){if(i||t==null)return g&&n&&n(),y===""?"?":h?`? ${y}`:y}else if(i&&!f||t==null&&h)return y=`? ${y}`,d&&!g?y+=jd(y,r.indent,u(d)):v&&o&&o(),y;g&&(d=null),h?(d&&(y+=jd(y,r.indent,u(d))),y=`? ${y} ${a}:`):(y=`${y}:`,d&&(y+=jd(y,r.indent,u(d))));let E,_,S;go(t)?(E=!!t.spaceBefore,_=t.commentBefore,S=t.comment):(E=!1,_=null,S=null,t&&typeof t=="object"&&(t=s.createNode(t))),r.implicitKey=!1,!h&&!d&&mn(t)&&(r.indentAtStart=y.length+1),v=!1,!c&&l.length>=2&&!r.inFlow&&!h&&Lv(t)&&!t.flow&&!t.tag&&!t.anchor&&(r.indent=r.indent.substring(2));let b=!1;const k=Jg(t,r,()=>b=!0,()=>v=!0);let T=" ";if(d||E||_){if(T=E?` `:"",_){const x=u(_);T+=` ${df(x,r.indent)}`}k===""&&!r.inFlow?T===` @@ -514,32 +514,32 @@ ${df(x,r.indent)}`}k===""&&!r.inFlow?T===` ${r.indent}`}else if(!h&&Vn(t)){const x=k[0],I=k.indexOf(` `),C=I!==-1,R=r.inFlow??t.flow??t.items.length===0;if(C||!R){let D=!1;if(C&&(x==="&"||x==="!")){let L=k.indexOf(" ");x==="&"&&L!==-1&&Le===Iee||mn(e)&&e.value===Iee&&(!e.type||e.type===Jt.PLAIN);function N3(e,t,r){const n=e&&bp(r)?r.resolve(e.doc):r;if(!Mv(n))throw new Error("Merge sources must be maps or map aliases");const o=n.toJSON(null,e,Map);for(const[i,s]of o)t instanceof Map?t.has(i)||t.set(i,s):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0});return t}function Fat(e,t,r){if(t===null)return"";if(typeof t!="object")return String(t);if(go(e)&&(r!=null&&r.doc)){const n=rpe(r.doc,{});n.anchors=new Set;for(const i of r.anchors.keys())n.anchors.add(i.anchor);n.inFlow=!0,n.inStringifyKey=!0;const o=e.toString(n);if(!r.mapKeyWarned){let i=JSON.stringify(o);i.length>40&&(i=i.substring(0,36)+'..."'),npe(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return o}return JSON.stringify(t)}function Vj(e,t,r){const n=f_(e,void 0,r),o=f_(t,void 0,r);return new Bi(n,o)}class Bi{constructor(t,r=null){Object.defineProperty(this,kl,{value:Khe}),this.key=t,this.value=r}clone(t){let{key:r,value:n}=this;return go(r)&&(r=r.clone(t)),go(n)&&(n=n.clone(t)),new Bi(r,n)}toJSON(t,r){const n=r!=null&&r.mapAsMap?new Map:{};return ope(r,n,this)}toString(t,r,n){return t!=null&&t.doc?Oat(this,t,r,n):JSON.stringify(this)}}function ipe(e,t,r){return(t.inFlow??e.flow?Mat:Bat)(e,t,r)}function Bat({comment:e,items:t},r,{blockItemPrefix:n,flowChars:o,itemIndent:i,onChompKeep:s,onComment:a}){const{indent:l,options:{commentString:u}}=r,c=Object.assign({},r,{indent:i,type:null});let f=!1;const d=[];for(let g=0;gy=null,()=>f=!0);y&&(E+=jd(E,i,u(y))),f&&y&&(f=!1),d.push(n+E)}let h;if(d.length===0)h=o.start+o.end;else{h=d[0];for(let g=1;ge===Cee||mn(e)&&e.value===Cee&&(!e.type||e.type===Jt.PLAIN);function N3(e,t,r){const n=e&&_p(r)?r.resolve(e.doc):r;if(!Mv(n))throw new Error("Merge sources must be maps or map aliases");const o=n.toJSON(null,e,Map);for(const[i,s]of o)t instanceof Map?t.has(i)||t.set(i,s):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:s,writable:!0,enumerable:!0,configurable:!0});return t}function zat(e,t,r){if(t===null)return"";if(typeof t!="object")return String(t);if(go(e)&&(r!=null&&r.doc)){const n=npe(r.doc,{});n.anchors=new Set;for(const i of r.anchors.keys())n.anchors.add(i.anchor);n.inFlow=!0,n.inStringifyKey=!0;const o=e.toString(n);if(!r.mapKeyWarned){let i=JSON.stringify(o);i.length>40&&(i=i.substring(0,36)+'..."'),ope(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return o}return JSON.stringify(t)}function Uj(e,t,r){const n=f_(e,void 0,r),o=f_(t,void 0,r);return new Fi(n,o)}class Fi{constructor(t,r=null){Object.defineProperty(this,Al,{value:Vhe}),this.key=t,this.value=r}clone(t){let{key:r,value:n}=this;return go(r)&&(r=r.clone(t)),go(n)&&(n=n.clone(t)),new Fi(r,n)}toJSON(t,r){const n=r!=null&&r.mapAsMap?new Map:{};return ipe(r,n,this)}toString(t,r,n){return t!=null&&t.doc?Lat(this,t,r,n):JSON.stringify(this)}}function spe(e,t,r){return(t.inFlow??e.flow?$at:Hat)(e,t,r)}function Hat({comment:e,items:t},r,{blockItemPrefix:n,flowChars:o,itemIndent:i,onChompKeep:s,onComment:a}){const{indent:l,options:{commentString:u}}=r,c=Object.assign({},r,{indent:i,type:null});let f=!1;const d=[];for(let g=0;gy=null,()=>f=!0);y&&(E+=jd(E,i,u(y))),f&&y&&(f=!1),d.push(n+E)}let h;if(d.length===0)h=o.start+o.end;else{h=d[0];for(let g=1;gS=null);Ed||b.includes(` -`))&&(f=!0),h.push(b),d=h.length}let g;const{start:v,end:y}=n;if(h.length===0)g=v+y;else if(f||(f=h.reduce((_,S)=>_+S.length+2,2)>l5.maxFlowStringSingleLineLength),f){g=v;for(const E of h)g+=E?` +`+df(u(e),l),a&&a()):f&&s&&s(),h}function $at({comment:e,items:t},r,{flowChars:n,itemIndent:o,onComment:i}){const{indent:s,indentStep:a,flowCollectionPadding:l,options:{commentString:u}}=r;o+=a;const c=Object.assign({},r,{indent:o,inFlow:!0,type:null});let f=!1,d=0;const h=[];for(let E=0;ES=null);Ed||b.includes(` +`))&&(f=!0),h.push(b),d=h.length}let g;const{start:v,end:y}=n;if(h.length===0)g=v+y;else if(f||(f=h.reduce((_,S)=>_+S.length+2,2)>u5.maxFlowStringSingleLineLength),f){g=v;for(const E of h)g+=E?` ${a}${s}${E}`:` `;g+=` -${s}${y}`}else g=`${v}${l}${h.join(" ")}${l}${y}`;return e&&(g+=jd(g,s,u(e)),i&&i()),g}function vx({indent:e,options:{commentString:t}},r,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){const i=df(t(n),e);r.push(i.trimStart())}}function Th(e,t){const r=mn(t)?t.value:t;for(const n of e)if(Hn(n)&&(n.key===t||n.key===r||mn(n.key)&&n.key.value===r))return n}class ca extends l5{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(o1,t),this.items=[]}static from(t,r,n){const{keepUndefined:o,replacer:i}=n,s=new this(t),a=(l,u)=>{if(typeof i=="function")u=i.call(r,l,u);else if(Array.isArray(i)&&!i.includes(l))return;(u!==void 0||o)&&s.items.push(Vj(l,u,n))};if(r instanceof Map)for(const[l,u]of r)a(l,u);else if(r&&typeof r=="object")for(const l of Object.keys(r))a(l,r[l]);return typeof t.sortMapEntries=="function"&&s.items.sort(t.sortMapEntries),s}add(t,r){var s;let n;Hn(t)?n=t:!t||typeof t!="object"||!("key"in t)?n=new Bi(t,t==null?void 0:t.value):n=new Bi(t.key,t.value);const o=Th(this.items,n.key),i=(s=this.schema)==null?void 0:s.sortMapEntries;if(o){if(!r)throw new Error(`Key ${n.key} already set`);mn(o.value)&&epe(n.value)?o.value.value=n.value:o.value=n.value}else if(i){const a=this.items.findIndex(l=>i(n,l)<0);a===-1?this.items.push(n):this.items.splice(a,0,n)}else this.items.push(n)}delete(t){const r=Th(this.items,t);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(t,r){const n=Th(this.items,t),o=n==null?void 0:n.value;return(!r&&mn(o)?o.value:o)??void 0}has(t){return!!Th(this.items,t)}set(t,r){this.add(new Bi(t,r),!0)}toJSON(t,r,n){const o=n?new n:r!=null&&r.mapAsMap?new Map:{};r!=null&&r.onCreate&&r.onCreate(o);for(const i of this.items)ope(r,o,i);return o}toString(t,r,n){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Hn(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),ipe(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:n,onComment:r})}}const jv={collection:"map",default:!0,nodeClass:ca,tag:"tag:yaml.org,2002:map",resolve(e,t){return Mv(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,r)=>ca.from(e,t,r)};class b1 extends l5{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Fv,t),this.items=[]}add(t){this.items.push(t)}delete(t){const r=Ww(t);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(t,r){const n=Ww(t);if(typeof n!="number")return;const o=this.items[n];return!r&&mn(o)?o.value:o}has(t){const r=Ww(t);return typeof r=="number"&&r=0?t:null}const zv={collection:"seq",default:!0,nodeClass:b1,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Lv(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,r)=>b1.from(e,t,r)},d5={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,n){return t=Object.assign({actualString:!0},t),xE(e,t,r,n)}},h5={identify:e=>e==null,createNode:()=>new Jt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Jt(null),stringify:({source:e},t)=>typeof e=="string"&&h5.test.test(e)?e:t.options.nullStr},Uj={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Jt(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&Uj.test.test(e)){const n=e[0]==="t"||e[0]==="T";if(t===n)return e}return t?r.options.trueStr:r.options.falseStr}};function wu({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n=="bigint")return String(n);const o=typeof n=="number"?n:Number(n);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let s=i.indexOf(".");s<0&&(s=i.length,i+=".");let a=t-(i.length-s-1);for(;a-- >0;)i+="0"}return i}const spe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:wu},ape={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():wu(e)}},lpe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Jt(parseFloat(e)),r=e.indexOf(".");return r!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-r-1),t},stringify:wu},p5=e=>typeof e=="bigint"||Number.isInteger(e),Yj=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function upe(e,t,r){const{value:n}=e;return p5(n)&&n>=0?r+n.toString(t):wu(e)}const cpe={identify:e=>p5(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>Yj(e,2,8,r),stringify:e=>upe(e,8,"0o")},fpe={identify:p5,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>Yj(e,0,10,r),stringify:wu},dpe={identify:e=>p5(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>Yj(e,2,16,r),stringify:e=>upe(e,16,"0x")},Lat=[jv,zv,d5,h5,Uj,cpe,fpe,dpe,spe,ape,lpe];function Cee(e){return typeof e=="bigint"||Number.isInteger(e)}const Gw=({value:e})=>JSON.stringify(e),jat=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Gw},{identify:e=>e==null,createNode:()=>new Jt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Gw},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:Gw},{identify:Cee,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>Cee(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Gw}],zat={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Hat=[jv,zv].concat(jat,zat),Xj={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const r=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(r.length);for(let o=0;o1&&t("Each pair must have its own sequence indicator");const o=n.items[0]||new Bi(new Jt(null));if(n.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${n.commentBefore} +${s}${y}`}else g=`${v}${l}${h.join(" ")}${l}${y}`;return e&&(g+=jd(g,s,u(e)),i&&i()),g}function mx({indent:e,options:{commentString:t}},r,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){const i=df(t(n),e);r.push(i.trimStart())}}function Ih(e,t){const r=mn(t)?t.value:t;for(const n of e)if(Hn(n)&&(n.key===t||n.key===r||mn(n.key)&&n.key.value===r))return n}class ca extends u5{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(o1,t),this.items=[]}static from(t,r,n){const{keepUndefined:o,replacer:i}=n,s=new this(t),a=(l,u)=>{if(typeof i=="function")u=i.call(r,l,u);else if(Array.isArray(i)&&!i.includes(l))return;(u!==void 0||o)&&s.items.push(Uj(l,u,n))};if(r instanceof Map)for(const[l,u]of r)a(l,u);else if(r&&typeof r=="object")for(const l of Object.keys(r))a(l,r[l]);return typeof t.sortMapEntries=="function"&&s.items.sort(t.sortMapEntries),s}add(t,r){var s;let n;Hn(t)?n=t:!t||typeof t!="object"||!("key"in t)?n=new Fi(t,t==null?void 0:t.value):n=new Fi(t.key,t.value);const o=Ih(this.items,n.key),i=(s=this.schema)==null?void 0:s.sortMapEntries;if(o){if(!r)throw new Error(`Key ${n.key} already set`);mn(o.value)&&tpe(n.value)?o.value.value=n.value:o.value=n.value}else if(i){const a=this.items.findIndex(l=>i(n,l)<0);a===-1?this.items.push(n):this.items.splice(a,0,n)}else this.items.push(n)}delete(t){const r=Ih(this.items,t);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(t,r){const n=Ih(this.items,t),o=n==null?void 0:n.value;return(!r&&mn(o)?o.value:o)??void 0}has(t){return!!Ih(this.items,t)}set(t,r){this.add(new Fi(t,r),!0)}toJSON(t,r,n){const o=n?new n:r!=null&&r.mapAsMap?new Map:{};r!=null&&r.onCreate&&r.onCreate(o);for(const i of this.items)ipe(r,o,i);return o}toString(t,r,n){if(!t)return JSON.stringify(this);for(const o of this.items)if(!Hn(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),spe(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:n,onComment:r})}}const jv={collection:"map",default:!0,nodeClass:ca,tag:"tag:yaml.org,2002:map",resolve(e,t){return Mv(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,r)=>ca.from(e,t,r)};class b1 extends u5{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Fv,t),this.items=[]}add(t){this.items.push(t)}delete(t){const r=Gw(t);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(t,r){const n=Gw(t);if(typeof n!="number")return;const o=this.items[n];return!r&&mn(o)?o.value:o}has(t){const r=Gw(t);return typeof r=="number"&&r=0?t:null}const zv={collection:"seq",default:!0,nodeClass:b1,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Lv(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,r)=>b1.from(e,t,r)},h5={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,n){return t=Object.assign({actualString:!0},t),xE(e,t,r,n)}},p5={identify:e=>e==null,createNode:()=>new Jt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Jt(null),stringify:({source:e},t)=>typeof e=="string"&&p5.test.test(e)?e:t.options.nullStr},Yj={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Jt(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&Yj.test.test(e)){const n=e[0]==="t"||e[0]==="T";if(t===n)return e}return t?r.options.trueStr:r.options.falseStr}};function wu({format:e,minFractionDigits:t,tag:r,value:n}){if(typeof n=="bigint")return String(n);const o=typeof n=="number"?n:Number(n);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let i=JSON.stringify(n);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let s=i.indexOf(".");s<0&&(s=i.length,i+=".");let a=t-(i.length-s-1);for(;a-- >0;)i+="0"}return i}const ape={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:wu},lpe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():wu(e)}},upe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Jt(parseFloat(e)),r=e.indexOf(".");return r!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-r-1),t},stringify:wu},g5=e=>typeof e=="bigint"||Number.isInteger(e),Xj=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function cpe(e,t,r){const{value:n}=e;return g5(n)&&n>=0?r+n.toString(t):wu(e)}const fpe={identify:e=>g5(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>Xj(e,2,8,r),stringify:e=>cpe(e,8,"0o")},dpe={identify:g5,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>Xj(e,0,10,r),stringify:wu},hpe={identify:e=>g5(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>Xj(e,2,16,r),stringify:e=>cpe(e,16,"0x")},Pat=[jv,zv,h5,p5,Yj,fpe,dpe,hpe,ape,lpe,upe];function Nee(e){return typeof e=="bigint"||Number.isInteger(e)}const Kw=({value:e})=>JSON.stringify(e),qat=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Kw},{identify:e=>e==null,createNode:()=>new Jt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Kw},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:Kw},{identify:Nee,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>Nee(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Kw}],Wat={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Gat=[jv,zv].concat(qat,Wat),Qj={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const r=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(r.length);for(let o=0;o1&&t("Each pair must have its own sequence indicator");const o=n.items[0]||new Fi(new Jt(null));if(n.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${n.commentBefore} ${o.key.commentBefore}`:n.commentBefore),n.comment){const i=o.value??o.key;i.comment=i.comment?`${n.comment} -${i.comment}`:n.comment}n=o}e.items[r]=Hn(n)?n:new Bi(n)}}else t("Expected a sequence for this tag");return e}function ppe(e,t,r){const{replacer:n}=r,o=new b1(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let s of t){typeof n=="function"&&(s=n.call(t,String(i++),s));let a,l;if(Array.isArray(s))if(s.length===2)a=s[0],l=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){const u=Object.keys(s);if(u.length===1)a=u[0],l=s[a];else throw new TypeError(`Expected tuple with one key, not ${u.length} keys`)}else a=s;o.items.push(Vj(a,l,r))}return o}const Qj={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:hpe,createNode:ppe};class hg extends b1{constructor(){super(),this.add=ca.prototype.add.bind(this),this.delete=ca.prototype.delete.bind(this),this.get=ca.prototype.get.bind(this),this.has=ca.prototype.has.bind(this),this.set=ca.prototype.set.bind(this),this.tag=hg.tag}toJSON(t,r){if(!r)return super.toJSON(t);const n=new Map;r!=null&&r.onCreate&&r.onCreate(n);for(const o of this.items){let i,s;if(Hn(o)?(i=ml(o.key,"",r),s=ml(o.value,i,r)):i=ml(o,"",r),n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,s)}return n}static from(t,r,n){const o=ppe(t,r,n),i=new this;return i.items=o.items,i}}hg.tag="tag:yaml.org,2002:omap";const Zj={collection:"seq",identify:e=>e instanceof Map,nodeClass:hg,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=hpe(e,t),n=[];for(const{key:o}of r.items)mn(o)&&(n.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):n.push(o.value));return Object.assign(new hg,r)},createNode:(e,t,r)=>hg.from(e,t,r)};function gpe({value:e,source:t},r){return t&&(e?vpe:mpe).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}const vpe={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Jt(!0),stringify:gpe},mpe={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Jt(!1),stringify:gpe},$at={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:wu},Pat={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():wu(e)}},qat={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Jt(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");n[n.length-1]==="0"&&(t.minFractionDigits=n.length)}return t},stringify:wu},TE=e=>typeof e=="bigint"||Number.isInteger(e);function g5(e,t,r,{intAsBigInt:n}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const s=BigInt(e);return o==="-"?BigInt(-1)*s:s}const i=parseInt(e,r);return o==="-"?-1*i:i}function Jj(e,t,r){const{value:n}=e;if(TE(n)){const o=n.toString(t);return n<0?"-"+r+o.substr(1):r+o}return wu(e)}const Wat={identify:TE,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>g5(e,2,2,r),stringify:e=>Jj(e,2,"0b")},Gat={identify:TE,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>g5(e,1,8,r),stringify:e=>Jj(e,8,"0")},Kat={identify:TE,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>g5(e,0,10,r),stringify:wu},Vat={identify:TE,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>g5(e,2,16,r),stringify:e=>Jj(e,16,"0x")};class pg extends ca{constructor(t){super(t),this.tag=pg.tag}add(t){let r;Hn(t)?r=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?r=new Bi(t.key,null):r=new Bi(t,null),Th(this.items,r.key)||this.items.push(r)}get(t,r){const n=Th(this.items,t);return!r&&Hn(n)?mn(n.key)?n.key.value:n.key:n}set(t,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);const n=Th(this.items,t);n&&!r?this.items.splice(this.items.indexOf(n),1):!n&&r&&this.items.push(new Bi(t))}toJSON(t,r){return super.toJSON(t,r,Set)}toString(t,r,n){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),r,n);throw new Error("Set items must all have null values")}static from(t,r,n){const{replacer:o}=n,i=new this(t);if(r&&Symbol.iterator in Object(r))for(let s of r)typeof o=="function"&&(s=o.call(r,s,s)),i.items.push(Vj(s,null,n));return i}}pg.tag="tag:yaml.org,2002:set";const ez={collection:"map",identify:e=>e instanceof Set,nodeClass:pg,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>pg.from(e,t,r),resolve(e,t){if(Mv(e)){if(e.hasAllNullValues(!0))return Object.assign(new pg,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function tz(e,t){const r=e[0],n=r==="-"||r==="+"?e.substring(1):e,o=s=>t?BigInt(s):Number(s),i=n.replace(/_/g,"").split(":").reduce((s,a)=>s*o(60)+o(a),o(0));return r==="-"?o(-1)*i:i}function ype(e){let{value:t}=e,r=s=>s;if(typeof t=="bigint")r=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return wu(e);let n="";t<0&&(n="-",t*=r(-1));const o=r(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),n+i.map(s=>String(s).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const bpe={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>tz(e,r),stringify:ype},_pe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>tz(e,!1),stringify:ype},v5={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(v5.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,o,i,s,a]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0;let u=Date.UTC(r,n-1,o,i||0,s||0,a||0,l);const c=t[8];if(c&&c!=="Z"){let f=tz(c,!1);Math.abs(f)<30&&(f*=60),u-=6e4*f}return new Date(u)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},Nee=[jv,zv,d5,h5,vpe,mpe,Wat,Gat,Kat,Vat,$at,Pat,qat,Xj,Zj,Qj,ez,bpe,_pe,v5],Ree=new Map([["core",Lat],["failsafe",[jv,zv,d5]],["json",Hat],["yaml11",Nee],["yaml-1.1",Nee]]),Oee={binary:Xj,bool:Uj,float:lpe,floatExp:ape,floatNaN:spe,floatTime:_pe,int:fpe,intHex:dpe,intOct:cpe,intTime:bpe,map:jv,null:h5,omap:Zj,pairs:Qj,seq:zv,set:ez,timestamp:v5},Uat={"tag:yaml.org,2002:binary":Xj,"tag:yaml.org,2002:omap":Zj,"tag:yaml.org,2002:pairs":Qj,"tag:yaml.org,2002:set":ez,"tag:yaml.org,2002:timestamp":v5};function R3(e,t){let r=Ree.get(t);if(!r)if(Array.isArray(e))r=[];else{const n=Array.from(Ree.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${n} or define customTags array`)}if(Array.isArray(e))for(const n of e)r=r.concat(n);else typeof e=="function"&&(r=e(r.slice()));return r.map(n=>{if(typeof n!="string")return n;const o=Oee[n];if(o)return o;const i=Object.keys(Oee).map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${i}`)})}const Yat=(e,t)=>e.keyt.key?1:0;class m5{constructor({compat:t,customTags:r,merge:n,resolveKnownTags:o,schema:i,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?R3(t,"compat"):t?R3(null,t):null,this.merge=!!n,this.name=typeof i=="string"&&i||"core",this.knownTags=o?Uat:{},this.tags=R3(r,this.name),this.toStringOptions=a??null,Object.defineProperty(this,o1,{value:jv}),Object.defineProperty(this,Mf,{value:d5}),Object.defineProperty(this,Fv,{value:zv}),this.sortMapEntries=typeof s=="function"?s:s===!0?Yat:null}clone(){const t=Object.create(m5.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function Xat(e,t){var l;const r=[];let n=t.directives===!0;if(t.directives!==!1&&e.directives){const u=e.directives.toString(e);u?(r.push(u),n=!0):e.directives.docStart&&(n=!0)}n&&r.push("---");const o=rpe(e,t),{commentString:i}=o.options;if(e.commentBefore){r.length!==1&&r.unshift("");const u=i(e.commentBefore);r.unshift(df(u,""))}let s=!1,a=null;if(e.contents){if(go(e.contents)){if(e.contents.spaceBefore&&n&&r.push(""),e.contents.commentBefore){const f=i(e.contents.commentBefore);r.push(df(f,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}const u=a?void 0:()=>s=!0;let c=Jg(e.contents,o,()=>a=null,u);a&&(c+=jd(c,"",i(a))),(c[0]==="|"||c[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${c}`:r.push(c)}else r.push(Jg(e.contents,o));if((l=e.directives)!=null&&l.docEnd)if(e.comment){const u=i(e.comment);u.includes(` +${i.comment}`:n.comment}n=o}e.items[r]=Hn(n)?n:new Fi(n)}}else t("Expected a sequence for this tag");return e}function gpe(e,t,r){const{replacer:n}=r,o=new b1(e);o.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let s of t){typeof n=="function"&&(s=n.call(t,String(i++),s));let a,l;if(Array.isArray(s))if(s.length===2)a=s[0],l=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){const u=Object.keys(s);if(u.length===1)a=u[0],l=s[a];else throw new TypeError(`Expected tuple with one key, not ${u.length} keys`)}else a=s;o.items.push(Uj(a,l,r))}return o}const Zj={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:ppe,createNode:gpe};class hg extends b1{constructor(){super(),this.add=ca.prototype.add.bind(this),this.delete=ca.prototype.delete.bind(this),this.get=ca.prototype.get.bind(this),this.has=ca.prototype.has.bind(this),this.set=ca.prototype.set.bind(this),this.tag=hg.tag}toJSON(t,r){if(!r)return super.toJSON(t);const n=new Map;r!=null&&r.onCreate&&r.onCreate(n);for(const o of this.items){let i,s;if(Hn(o)?(i=yl(o.key,"",r),s=yl(o.value,i,r)):i=yl(o,"",r),n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,s)}return n}static from(t,r,n){const o=gpe(t,r,n),i=new this;return i.items=o.items,i}}hg.tag="tag:yaml.org,2002:omap";const Jj={collection:"seq",identify:e=>e instanceof Map,nodeClass:hg,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=ppe(e,t),n=[];for(const{key:o}of r.items)mn(o)&&(n.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):n.push(o.value));return Object.assign(new hg,r)},createNode:(e,t,r)=>hg.from(e,t,r)};function vpe({value:e,source:t},r){return t&&(e?mpe:ype).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}const mpe={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Jt(!0),stringify:vpe},ype={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Jt(!1),stringify:vpe},Kat={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:wu},Vat={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():wu(e)}},Uat={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Jt(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(r!==-1){const n=e.substring(r+1).replace(/_/g,"");n[n.length-1]==="0"&&(t.minFractionDigits=n.length)}return t},stringify:wu},TE=e=>typeof e=="bigint"||Number.isInteger(e);function v5(e,t,r,{intAsBigInt:n}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const s=BigInt(e);return o==="-"?BigInt(-1)*s:s}const i=parseInt(e,r);return o==="-"?-1*i:i}function ez(e,t,r){const{value:n}=e;if(TE(n)){const o=n.toString(t);return n<0?"-"+r+o.substr(1):r+o}return wu(e)}const Yat={identify:TE,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>v5(e,2,2,r),stringify:e=>ez(e,2,"0b")},Xat={identify:TE,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>v5(e,1,8,r),stringify:e=>ez(e,8,"0")},Qat={identify:TE,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>v5(e,0,10,r),stringify:wu},Zat={identify:TE,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>v5(e,2,16,r),stringify:e=>ez(e,16,"0x")};class pg extends ca{constructor(t){super(t),this.tag=pg.tag}add(t){let r;Hn(t)?r=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?r=new Fi(t.key,null):r=new Fi(t,null),Ih(this.items,r.key)||this.items.push(r)}get(t,r){const n=Ih(this.items,t);return!r&&Hn(n)?mn(n.key)?n.key.value:n.key:n}set(t,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);const n=Ih(this.items,t);n&&!r?this.items.splice(this.items.indexOf(n),1):!n&&r&&this.items.push(new Fi(t))}toJSON(t,r){return super.toJSON(t,r,Set)}toString(t,r,n){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),r,n);throw new Error("Set items must all have null values")}static from(t,r,n){const{replacer:o}=n,i=new this(t);if(r&&Symbol.iterator in Object(r))for(let s of r)typeof o=="function"&&(s=o.call(r,s,s)),i.items.push(Uj(s,null,n));return i}}pg.tag="tag:yaml.org,2002:set";const tz={collection:"map",identify:e=>e instanceof Set,nodeClass:pg,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>pg.from(e,t,r),resolve(e,t){if(Mv(e)){if(e.hasAllNullValues(!0))return Object.assign(new pg,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function rz(e,t){const r=e[0],n=r==="-"||r==="+"?e.substring(1):e,o=s=>t?BigInt(s):Number(s),i=n.replace(/_/g,"").split(":").reduce((s,a)=>s*o(60)+o(a),o(0));return r==="-"?o(-1)*i:i}function bpe(e){let{value:t}=e,r=s=>s;if(typeof t=="bigint")r=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return wu(e);let n="";t<0&&(n="-",t*=r(-1));const o=r(60),i=[t%o];return t<60?i.unshift(0):(t=(t-i[0])/o,i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),n+i.map(s=>String(s).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const _pe={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>rz(e,r),stringify:bpe},Epe={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>rz(e,!1),stringify:bpe},m5={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(m5.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,o,i,s,a]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0;let u=Date.UTC(r,n-1,o,i||0,s||0,a||0,l);const c=t[8];if(c&&c!=="Z"){let f=rz(c,!1);Math.abs(f)<30&&(f*=60),u-=6e4*f}return new Date(u)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},Ree=[jv,zv,h5,p5,mpe,ype,Yat,Xat,Qat,Zat,Kat,Vat,Uat,Qj,Jj,Zj,tz,_pe,Epe,m5],Oee=new Map([["core",Pat],["failsafe",[jv,zv,h5]],["json",Gat],["yaml11",Ree],["yaml-1.1",Ree]]),Dee={binary:Qj,bool:Yj,float:upe,floatExp:lpe,floatNaN:ape,floatTime:Epe,int:dpe,intHex:hpe,intOct:fpe,intTime:_pe,map:jv,null:p5,omap:Jj,pairs:Zj,seq:zv,set:tz,timestamp:m5},Jat={"tag:yaml.org,2002:binary":Qj,"tag:yaml.org,2002:omap":Jj,"tag:yaml.org,2002:pairs":Zj,"tag:yaml.org,2002:set":tz,"tag:yaml.org,2002:timestamp":m5};function R3(e,t){let r=Oee.get(t);if(!r)if(Array.isArray(e))r=[];else{const n=Array.from(Oee.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${n} or define customTags array`)}if(Array.isArray(e))for(const n of e)r=r.concat(n);else typeof e=="function"&&(r=e(r.slice()));return r.map(n=>{if(typeof n!="string")return n;const o=Dee[n];if(o)return o;const i=Object.keys(Dee).map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${i}`)})}const elt=(e,t)=>e.keyt.key?1:0;class y5{constructor({compat:t,customTags:r,merge:n,resolveKnownTags:o,schema:i,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?R3(t,"compat"):t?R3(null,t):null,this.merge=!!n,this.name=typeof i=="string"&&i||"core",this.knownTags=o?Jat:{},this.tags=R3(r,this.name),this.toStringOptions=a??null,Object.defineProperty(this,o1,{value:jv}),Object.defineProperty(this,Mf,{value:h5}),Object.defineProperty(this,Fv,{value:zv}),this.sortMapEntries=typeof s=="function"?s:s===!0?elt:null}clone(){const t=Object.create(y5.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function tlt(e,t){var l;const r=[];let n=t.directives===!0;if(t.directives!==!1&&e.directives){const u=e.directives.toString(e);u?(r.push(u),n=!0):e.directives.docStart&&(n=!0)}n&&r.push("---");const o=npe(e,t),{commentString:i}=o.options;if(e.commentBefore){r.length!==1&&r.unshift("");const u=i(e.commentBefore);r.unshift(df(u,""))}let s=!1,a=null;if(e.contents){if(go(e.contents)){if(e.contents.spaceBefore&&n&&r.push(""),e.contents.commentBefore){const f=i(e.contents.commentBefore);r.push(df(f,""))}o.forceBlockIndent=!!e.comment,a=e.contents.comment}const u=a?void 0:()=>s=!0;let c=Jg(e.contents,o,()=>a=null,u);a&&(c+=jd(c,"",i(a))),(c[0]==="|"||c[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${c}`:r.push(c)}else r.push(Jg(e.contents,o));if((l=e.directives)!=null&&l.docEnd)if(e.comment){const u=i(e.comment);u.includes(` `)?(r.push("..."),r.push(df(u,""))):r.push(`... ${u}`)}else r.push("...");else{let u=e.comment;u&&s&&(u=u.replace(/^\n+/,"")),u&&((!s||a)&&r[r.length-1]!==""&&r.push(""),r.push(df(i(u),"")))}return r.join(` `)+` -`}let y5=class Epe{constructor(t,r,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,kl,{value:G6});let o=null;typeof r=="function"||Array.isArray(r)?o=r:n===void 0&&r&&(n=r,r=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:s}=i;n!=null&&n._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new Yi({version:s}),this.setSchema(s,n),this.contents=t===void 0?null:this.createNode(t,o,n)}clone(){const t=Object.create(Epe.prototype,{[kl]:{value:G6}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=go(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){r0(this.contents)&&this.contents.add(t)}addIn(t,r){r0(this.contents)&&this.contents.addIn(t,r)}createAlias(t,r){if(!t.anchor){const n=Zhe(this);t.anchor=!r||n.has(r)?Jhe(r||"a",n):r}return new a5(t.anchor)}createNode(t,r,n){let o;if(typeof r=="function")t=r.call({"":t},"",t),o=r;else if(Array.isArray(r)){const y=_=>typeof _=="number"||_ instanceof String||_ instanceof Number,E=r.filter(y).map(String);E.length>0&&(r=r.concat(E)),o=r}else n===void 0&&r&&(n=r,r=void 0);const{aliasDuplicateObjects:i,anchorPrefix:s,flow:a,keepUndefined:l,onTagObj:u,tag:c}=n??{},{onAnchor:f,setAnchors:d,sourceObjects:h}=kat(this,s||"a"),g={aliasDuplicateObjects:i??!0,keepUndefined:l??!1,onAnchor:f,onTagObj:u,replacer:o,schema:this.schema,sourceObjects:h},v=f_(t,c,g);return a&&Vn(v)&&(v.flow=!0),d(),v}createPair(t,r,n={}){const o=this.createNode(t,null,n),i=this.createNode(r,null,n);return new Bi(o,i)}delete(t){return r0(this.contents)?this.contents.delete(t):!1}deleteIn(t){return wy(t)?this.contents==null?!1:(this.contents=null,!0):r0(this.contents)?this.contents.deleteIn(t):!1}get(t,r){return Vn(this.contents)?this.contents.get(t,r):void 0}getIn(t,r){return wy(t)?!r&&mn(this.contents)?this.contents.value:this.contents:Vn(this.contents)?this.contents.getIn(t,r):void 0}has(t){return Vn(this.contents)?this.contents.has(t):!1}hasIn(t){return wy(t)?this.contents!==void 0:Vn(this.contents)?this.contents.hasIn(t):!1}set(t,r){this.contents==null?this.contents=gx(this.schema,[t],r):r0(this.contents)&&this.contents.set(t,r)}setIn(t,r){wy(t)?this.contents=r:this.contents==null?this.contents=gx(this.schema,Array.from(t),r):r0(this.contents)&&this.contents.setIn(t,r)}setSchema(t,r={}){typeof t=="number"&&(t=String(t));let n;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Yi({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new Yi({version:t}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(n)this.schema=new m5(Object.assign(n,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:r,mapAsMap:n,maxAliasCount:o,onAnchor:i,reviver:s}={}){const a={anchors:new Map,doc:this,keep:!t,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},l=ml(this.contents,r??"",a);if(typeof i=="function")for(const{count:u,res:c}of a.anchors.values())i(c,u);return typeof s=="function"?q0(s,{"":l},"",l):l}toJSON(t,r){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:r})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const r=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return Xat(this,t)}};function r0(e){if(Vn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class rz extends Error{constructor(t,r,n,o){super(),this.name=t,this.code=n,this.message=o,this.pos=r}}class Ih extends rz{constructor(t,r,n){super("YAMLParseError",t,r,n)}}class Spe extends rz{constructor(t,r,n){super("YAMLWarning",t,r,n)}}const mx=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(a=>t.linePos(a));const{line:n,col:o}=r.linePos[0];r.message+=` at line ${n}, column ${o}`;let i=o-1,s=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&s.length>80){const a=Math.min(i-39,s.length-79);s="…"+s.substring(a),i-=a-1}if(s.length>80&&(s=s.substring(0,79)+"…"),n>1&&/^ *$/.test(s.substring(0,i))){let a=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);a.length>80&&(a=a.substring(0,79)+`… +`}let b5=class Spe{constructor(t,r,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Al,{value:K6});let o=null;typeof r=="function"||Array.isArray(r)?o=r:n===void 0&&r&&(n=r,r=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:s}=i;n!=null&&n._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new Yi({version:s}),this.setSchema(s,n),this.contents=t===void 0?null:this.createNode(t,o,n)}clone(){const t=Object.create(Spe.prototype,{[Al]:{value:K6}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=go(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){r0(this.contents)&&this.contents.add(t)}addIn(t,r){r0(this.contents)&&this.contents.addIn(t,r)}createAlias(t,r){if(!t.anchor){const n=Jhe(this);t.anchor=!r||n.has(r)?epe(r||"a",n):r}return new l5(t.anchor)}createNode(t,r,n){let o;if(typeof r=="function")t=r.call({"":t},"",t),o=r;else if(Array.isArray(r)){const y=_=>typeof _=="number"||_ instanceof String||_ instanceof Number,E=r.filter(y).map(String);E.length>0&&(r=r.concat(E)),o=r}else n===void 0&&r&&(n=r,r=void 0);const{aliasDuplicateObjects:i,anchorPrefix:s,flow:a,keepUndefined:l,onTagObj:u,tag:c}=n??{},{onAnchor:f,setAnchors:d,sourceObjects:h}=Cat(this,s||"a"),g={aliasDuplicateObjects:i??!0,keepUndefined:l??!1,onAnchor:f,onTagObj:u,replacer:o,schema:this.schema,sourceObjects:h},v=f_(t,c,g);return a&&Vn(v)&&(v.flow=!0),d(),v}createPair(t,r,n={}){const o=this.createNode(t,null,n),i=this.createNode(r,null,n);return new Fi(o,i)}delete(t){return r0(this.contents)?this.contents.delete(t):!1}deleteIn(t){return wy(t)?this.contents==null?!1:(this.contents=null,!0):r0(this.contents)?this.contents.deleteIn(t):!1}get(t,r){return Vn(this.contents)?this.contents.get(t,r):void 0}getIn(t,r){return wy(t)?!r&&mn(this.contents)?this.contents.value:this.contents:Vn(this.contents)?this.contents.getIn(t,r):void 0}has(t){return Vn(this.contents)?this.contents.has(t):!1}hasIn(t){return wy(t)?this.contents!==void 0:Vn(this.contents)?this.contents.hasIn(t):!1}set(t,r){this.contents==null?this.contents=vx(this.schema,[t],r):r0(this.contents)&&this.contents.set(t,r)}setIn(t,r){wy(t)?this.contents=r:this.contents==null?this.contents=vx(this.schema,Array.from(t),r):r0(this.contents)&&this.contents.setIn(t,r)}setSchema(t,r={}){typeof t=="number"&&(t=String(t));let n;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Yi({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new Yi({version:t}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(n)this.schema=new y5(Object.assign(n,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:r,mapAsMap:n,maxAliasCount:o,onAnchor:i,reviver:s}={}){const a={anchors:new Map,doc:this,keep:!t,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},l=yl(this.contents,r??"",a);if(typeof i=="function")for(const{count:u,res:c}of a.anchors.values())i(c,u);return typeof s=="function"?q0(s,{"":l},"",l):l}toJSON(t,r){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:r})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const r=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return tlt(this,t)}};function r0(e){if(Vn(e))return!0;throw new Error("Expected a YAML collection as document contents")}class nz extends Error{constructor(t,r,n,o){super(),this.name=t,this.code=n,this.message=o,this.pos=r}}class Ch extends nz{constructor(t,r,n){super("YAMLParseError",t,r,n)}}class wpe extends nz{constructor(t,r,n){super("YAMLWarning",t,r,n)}}const yx=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(a=>t.linePos(a));const{line:n,col:o}=r.linePos[0];r.message+=` at line ${n}, column ${o}`;let i=o-1,s=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&s.length>80){const a=Math.min(i-39,s.length-79);s="…"+s.substring(a),i-=a-1}if(s.length>80&&(s=s.substring(0,79)+"…"),n>1&&/^ *$/.test(s.substring(0,i))){let a=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);a.length>80&&(a=a.substring(0,79)+`… `),s=a+s}if(/[^ ]/.test(s)){let a=1;const l=r.linePos[1];l&&l.line===n&&l.col>o&&(a=Math.max(1,Math.min(l.col-o,80-i)));const u=" ".repeat(i)+"^".repeat(a);r.message+=`: ${s} ${u} `}};function ev(e,{flow:t,indicator:r,next:n,offset:o,onError:i,startOnNewline:s}){let a=!1,l=s,u=s,c="",f="",d=!1,h=!1,g=!1,v=null,y=null,E=null,_=null,S=null;for(const T of e)switch(g&&(T.type!=="space"&&T.type!=="newline"&&T.type!=="comma"&&i(T.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),T.type){case"space":!t&&l&&r!=="doc-start"&&T.source[0]===" "&&i(T,"TAB_AS_INDENT","Tabs are not allowed as indentation"),u=!0;break;case"comment":{u||i(T,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const x=T.source.substring(1)||" ";c?c+=f+x:c=x,f="",l=!1;break}case"newline":l?c?c+=T.source:a=!0:f+=T.source,l=!0,d=!0,(v||y)&&(h=!0),u=!0;break;case"anchor":v&&i(T,"MULTIPLE_ANCHORS","A node can have at most one anchor"),T.source.endsWith(":")&&i(T.offset+T.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),v=T,S===null&&(S=T.offset),l=!1,u=!1,g=!0;break;case"tag":{y&&i(T,"MULTIPLE_TAGS","A node can have at most one tag"),y=T,S===null&&(S=T.offset),l=!1,u=!1,g=!0;break}case r:(v||y)&&i(T,"BAD_PROP_ORDER",`Anchors and tags must be after the ${T.source} indicator`),_&&i(T,"UNEXPECTED_TOKEN",`Unexpected ${T.source} in ${t??"collection"}`),_=T,l=!1,u=!1;break;case"comma":if(t){E&&i(T,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),E=T,l=!1,u=!1;break}default:i(T,"UNEXPECTED_TOKEN",`Unexpected ${T.type} token`),l=!1,u=!1}const b=e[e.length-1],k=b?b.offset+b.source.length:o;return g&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:E,found:_,spaceBefore:a,comment:c,hasNewline:d,hasNewlineAfterProp:h,anchor:v,tag:y,end:k,start:S??k}}function d_(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(` -`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const r of t.start)if(r.type==="newline")return!0;if(t.sep){for(const r of t.sep)if(r.type==="newline")return!0}if(d_(t.key)||d_(t.value))return!0}return!1;default:return!0}}function Y6(e,t,r){if((t==null?void 0:t.type)==="flow-collection"){const n=t.end[0];n.indent===e&&(n.source==="]"||n.source==="}")&&d_(t)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function wpe(e,t,r){const{uniqueKeys:n}=e.options;if(n===!1)return!1;const o=typeof n=="function"?n:(i,s)=>i===s||mn(i)&&mn(s)&&i.value===s.value&&!(i.value==="<<"&&e.schema.merge);return t.some(i=>o(i.key,r))}const Dee="All mapping items must start at the same column";function Qat({composeNode:e,composeEmptyNode:t},r,n,o,i){var c;const s=(i==null?void 0:i.nodeClass)??ca,a=new s(r.schema);r.atRoot&&(r.atRoot=!1);let l=n.offset,u=null;for(const f of n.items){const{start:d,key:h,sep:g,value:v}=f,y=ev(d,{indicator:"explicit-key-ind",next:h??(g==null?void 0:g[0]),offset:l,onError:o,startOnNewline:!0}),E=!y.found;if(E){if(h&&(h.type==="block-seq"?o(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==n.indent&&o(l,"BAD_INDENT",Dee)),!y.anchor&&!y.tag&&!g){u=y.end,y.comment&&(a.comment?a.comment+=` -`+y.comment:a.comment=y.comment);continue}(y.hasNewlineAfterProp||d_(h))&&o(h??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((c=y.found)==null?void 0:c.indent)!==n.indent&&o(l,"BAD_INDENT",Dee);const _=y.end,S=h?e(r,h,y,o):t(r,_,d,null,y,o);r.schema.compat&&Y6(n.indent,h,o),wpe(r,a.items,S)&&o(_,"DUPLICATE_KEY","Map keys must be unique");const b=ev(g??[],{indicator:"map-value-ind",next:v,offset:S.range[2],onError:o,startOnNewline:!h||h.type==="block-scalar"});if(l=b.end,b.found){E&&((v==null?void 0:v.type)==="block-map"&&!b.hasNewline&&o(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&y.starte&&(e.type==="block-map"||e.type==="block-seq");function Jat({composeNode:e,composeEmptyNode:t},r,n,o,i){const s=n.start.source==="{",a=s?"flow map":"flow sequence",l=(i==null?void 0:i.nodeClass)??(s?ca:b1),u=new l(r.schema);u.flow=!0;const c=r.atRoot;c&&(r.atRoot=!1);let f=n.offset+n.start.source.length;for(let y=0;yi===s||mn(i)&&mn(s)&&i.value===s.value&&!(i.value==="<<"&&e.schema.merge);return t.some(i=>o(i.key,r))}const Fee="All mapping items must start at the same column";function rlt({composeNode:e,composeEmptyNode:t},r,n,o,i){var c;const s=(i==null?void 0:i.nodeClass)??ca,a=new s(r.schema);r.atRoot&&(r.atRoot=!1);let l=n.offset,u=null;for(const f of n.items){const{start:d,key:h,sep:g,value:v}=f,y=ev(d,{indicator:"explicit-key-ind",next:h??(g==null?void 0:g[0]),offset:l,onError:o,startOnNewline:!0}),E=!y.found;if(E){if(h&&(h.type==="block-seq"?o(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==n.indent&&o(l,"BAD_INDENT",Fee)),!y.anchor&&!y.tag&&!g){u=y.end,y.comment&&(a.comment?a.comment+=` +`+y.comment:a.comment=y.comment);continue}(y.hasNewlineAfterProp||d_(h))&&o(h??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((c=y.found)==null?void 0:c.indent)!==n.indent&&o(l,"BAD_INDENT",Fee);const _=y.end,S=h?e(r,h,y,o):t(r,_,d,null,y,o);r.schema.compat&&X6(n.indent,h,o),kpe(r,a.items,S)&&o(_,"DUPLICATE_KEY","Map keys must be unique");const b=ev(g??[],{indicator:"map-value-ind",next:v,offset:S.range[2],onError:o,startOnNewline:!h||h.type==="block-scalar"});if(l=b.end,b.found){E&&((v==null?void 0:v.type)==="block-map"&&!b.hasNewline&&o(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&y.starte&&(e.type==="block-map"||e.type==="block-seq");function olt({composeNode:e,composeEmptyNode:t},r,n,o,i){const s=n.start.source==="{",a=s?"flow map":"flow sequence",l=(i==null?void 0:i.nodeClass)??(s?ca:b1),u=new l(r.schema);u.flow=!0;const c=r.atRoot;c&&(r.atRoot=!1);let f=n.offset+n.start.source.length;for(let y=0;y0){const y=IE(g,v,r.options.strict,o);y.comment&&(u.comment?u.comment+=` -`+y.comment:u.comment=y.comment),u.range=[n.offset,v,y.offset]}else u.range=[n.offset,v,v];return u}function F3(e,t,r,n,o,i){const s=r.type==="block-map"?Qat(e,t,r,n,i):r.type==="block-seq"?Zat(e,t,r,n,i):Jat(e,t,r,n,i),a=s.constructor;return o==="!"||o===a.tagName?(s.tag=a.tagName,s):(o&&(s.tag=o),s)}function elt(e,t,r,n,o){var f;const i=n?t.directives.tagName(n.source,d=>o(n,"TAG_RESOLVE_FAILED",d)):null,s=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!n||!i||i==="!"||i===ca.tagName&&s==="map"||i===b1.tagName&&s==="seq"||!s)return F3(e,t,r,o,i);let a=t.schema.tags.find(d=>d.tag===i&&d.collection===s);if(!a){const d=t.schema.knownTags[i];if(d&&d.collection===s)t.schema.tags.push(Object.assign({},d,{default:!1})),a=d;else return d!=null&&d.collection?o(n,"BAD_COLLECTION_TYPE",`${d.tag} used for ${s} collection, but expects ${d.collection}`,!0):o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,!0),F3(e,t,r,o,i)}const l=F3(e,t,r,o,i,a),u=((f=a.resolve)==null?void 0:f.call(a,l,d=>o(n,"TAG_RESOLVE_FAILED",d),t.options))??l,c=go(u)?u:new Jt(u);return c.range=l.range,c.tag=i,a!=null&&a.format&&(c.format=a.format),c}function kpe(e,t,r){const n=e.offset,o=tlt(e,t,r);if(!o)return{value:"",type:null,comment:"",range:[n,n,n]};const i=o.mode===">"?Jt.BLOCK_FOLDED:Jt.BLOCK_LITERAL,s=e.source?rlt(e.source):[];let a=s.length;for(let v=s.length-1;v>=0;--v){const y=s[v][1];if(y===""||y==="\r")a=v;else break}if(a===0){const v=o.chomp==="+"&&s.length>0?` +`+C.comment:I.comment=C.comment);const D=new Fi(I,R);if(r.options.keepSourceTokens&&(D.srcToken=E),s){const L=u;kpe(r,L.items,I)&&o(x,"DUPLICATE_KEY","Map keys must be unique"),L.items.push(D)}else{const L=new ca(r.schema);L.flow=!0,L.items.push(D),u.items.push(L)}f=R?R.range[2]:C.end}}const d=s?"}":"]",[h,...g]=n.end;let v=f;if(h&&h.source===d)v=h.offset+h.source.length;else{const y=a[0].toUpperCase()+a.substring(1),E=c?`${y} must end with a ${d}`:`${y} in block collection must be sufficiently indented and end with a ${d}`;o(f,c?"MISSING_CHAR":"BAD_INDENT",E),h&&h.source.length!==1&&g.unshift(h)}if(g.length>0){const y=IE(g,v,r.options.strict,o);y.comment&&(u.comment?u.comment+=` +`+y.comment:u.comment=y.comment),u.range=[n.offset,v,y.offset]}else u.range=[n.offset,v,v];return u}function F3(e,t,r,n,o,i){const s=r.type==="block-map"?rlt(e,t,r,n,i):r.type==="block-seq"?nlt(e,t,r,n,i):olt(e,t,r,n,i),a=s.constructor;return o==="!"||o===a.tagName?(s.tag=a.tagName,s):(o&&(s.tag=o),s)}function ilt(e,t,r,n,o){var f;const i=n?t.directives.tagName(n.source,d=>o(n,"TAG_RESOLVE_FAILED",d)):null,s=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!n||!i||i==="!"||i===ca.tagName&&s==="map"||i===b1.tagName&&s==="seq"||!s)return F3(e,t,r,o,i);let a=t.schema.tags.find(d=>d.tag===i&&d.collection===s);if(!a){const d=t.schema.knownTags[i];if(d&&d.collection===s)t.schema.tags.push(Object.assign({},d,{default:!1})),a=d;else return d!=null&&d.collection?o(n,"BAD_COLLECTION_TYPE",`${d.tag} used for ${s} collection, but expects ${d.collection}`,!0):o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,!0),F3(e,t,r,o,i)}const l=F3(e,t,r,o,i,a),u=((f=a.resolve)==null?void 0:f.call(a,l,d=>o(n,"TAG_RESOLVE_FAILED",d),t.options))??l,c=go(u)?u:new Jt(u);return c.range=l.range,c.tag=i,a!=null&&a.format&&(c.format=a.format),c}function Ape(e,t,r){const n=e.offset,o=slt(e,t,r);if(!o)return{value:"",type:null,comment:"",range:[n,n,n]};const i=o.mode===">"?Jt.BLOCK_FOLDED:Jt.BLOCK_LITERAL,s=e.source?alt(e.source):[];let a=s.length;for(let v=s.length-1;v>=0;--v){const y=s[v][1];if(y===""||y==="\r")a=v;else break}if(a===0){const v=o.chomp==="+"&&s.length>0?` `.repeat(Math.max(1,s.length-1)):"";let y=n+o.length;return e.source&&(y+=e.source.length),{value:v,type:i,comment:o.comment,range:[n,y,y]}}let l=e.indent+o.indent,u=e.offset+o.length,c=0;for(let v=0;vl&&(l=y.length);else{if(y.length=a;--v)s[v][0].length>l&&(a=v+1);let f="",d="",h=!1;for(let v=0;vl||E[0]===" "?(d===" "?d=` @@ -554,82 +554,82 @@ ${u} `+s[v][0].slice(l);f[f.length-1]!==` `&&(f+=` `);break;default:f+=` -`}const g=n+o.length+e.source.length;return{value:f,type:i,comment:o.comment,range:[n,g,g]}}function tlt({offset:e,props:t},r,n){if(t[0].type!=="block-scalar-header")return n(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],i=o[0];let s=0,a="",l=-1;for(let d=1;dr(n+d,h,g);switch(o){case"scalar":a=Jt.PLAIN,l=nlt(i,u);break;case"single-quoted-scalar":a=Jt.QUOTE_SINGLE,l=olt(i,u);break;case"double-quoted-scalar":a=Jt.QUOTE_DOUBLE,l=ilt(i,u);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[n,n+i.length,n+i.length]}}const c=n+i.length,f=IE(s,c,t,r);return{value:l,type:a,comment:f.comment,range:[n,c,f.offset]}}function nlt(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),xpe(e)}function olt(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),xpe(e.slice(1,-1)).replace(/''/g,"'")}function xpe(e){let t,r;try{t=new RegExp(`(.*?)(?r(n+d,h,g);switch(o){case"scalar":a=Jt.PLAIN,l=llt(i,u);break;case"single-quoted-scalar":a=Jt.QUOTE_SINGLE,l=ult(i,u);break;case"double-quoted-scalar":a=Jt.QUOTE_DOUBLE,l=clt(i,u);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[n,n+i.length,n+i.length]}}const c=n+i.length,f=IE(s,c,t,r);return{value:l,type:a,comment:f.comment,range:[n,c,f.offset]}}function llt(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),Tpe(e)}function ult(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Tpe(e.slice(1,-1)).replace(/''/g,"'")}function Tpe(e){let t,r;try{t=new RegExp(`(.*?)(?i?e.slice(i,n+1):o)}else r+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}function slt(e,t){let r="",n=e[t+1];for(;(n===" "||n===" "||n===` +`)&&(r+=n>i?e.slice(i,n+1):o)}else r+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}function flt(e,t){let r="",n=e[t+1];for(;(n===" "||n===" "||n===` `||n==="\r")&&!(n==="\r"&&e[t+2]!==` `);)n===` `&&(r+=` -`),t+=1,n=e[t+1];return r||(r=" "),{fold:r,offset:t}}const alt={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:` -`,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function llt(e,t,r,n){const o=e.substr(t,r),s=o.length===r&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(s)){const a=e.substr(t-2,r+2);return n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(s)}function Tpe(e,t,r,n){const{value:o,type:i,comment:s,range:a}=t.type==="block-scalar"?kpe(t,e.options.strict,n):Ape(t,e.options.strict,n),l=r?e.directives.tagName(r.source,f=>n(r,"TAG_RESOLVE_FAILED",f)):null,u=r&&l?ult(e.schema,o,l,r,n):t.type==="scalar"?clt(e,o,t,n):e.schema[Mf];let c;try{const f=u.resolve(o,d=>n(r??t,"TAG_RESOLVE_FAILED",d),e.options);c=mn(f)?f:new Jt(f)}catch(f){const d=f instanceof Error?f.message:String(f);n(r??t,"TAG_RESOLVE_FAILED",d),c=new Jt(o)}return c.range=a,c.source=o,i&&(c.type=i),l&&(c.tag=l),u.format&&(c.format=u.format),s&&(c.comment=s),c}function ult(e,t,r,n,o){var a;if(r==="!")return e[Mf];const i=[];for(const l of e.tags)if(!l.collection&&l.tag===r)if(l.default&&l.test)i.push(l);else return l;for(const l of i)if((a=l.test)!=null&&a.test(t))return l;const s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),e[Mf])}function clt({directives:e,schema:t},r,n,o){const i=t.tags.find(s=>{var a;return s.default&&((a=s.test)==null?void 0:a.test(r))})||t[Mf];if(t.compat){const s=t.compat.find(a=>{var l;return a.default&&((l=a.test)==null?void 0:l.test(r))})??t[Mf];if(i.tag!==s.tag){const a=e.tagString(i.tag),l=e.tagString(s.tag),u=`Value may be parsed as either ${a} or ${l}`;o(n,"TAG_RESOLVE_FAILED",u,!0)}}return i}function flt(e,t,r){if(t){r===null&&(r=t.length);for(let n=r-1;n>=0;--n){let o=t[n];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++n];(o==null?void 0:o.type)==="space";)e+=o.source.length,o=t[++n];break}}return e}const dlt={composeNode:Ipe,composeEmptyNode:nz};function Ipe(e,t,r,n){const{spaceBefore:o,comment:i,anchor:s,tag:a}=r;let l,u=!0;switch(t.type){case"alias":l=hlt(e,t,n),(s||a)&&n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=Tpe(e,t,a,n),s&&(l.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":l=elt(dlt,e,t,a,n),s&&(l.anchor=s.source.substring(1));break;default:{const c=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",c),l=nz(e,t.offset,void 0,null,r,n),u=!1}}return s&&l.anchor===""&&n(s,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(l.spaceBefore=!0),i&&(t.type==="scalar"&&t.source===""?l.comment=i:l.commentBefore=i),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function nz(e,t,r,n,{spaceBefore:o,comment:i,anchor:s,tag:a,end:l},u){const c={type:"scalar",offset:flt(t,r,n),indent:-1,source:""},f=Tpe(e,c,a,u);return s&&(f.anchor=s.source.substring(1),f.anchor===""&&u(s,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(f.spaceBefore=!0),i&&(f.comment=i,f.range[2]=l),f}function hlt({options:e},{offset:t,source:r,end:n},o){const i=new a5(r.substring(1));i.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const s=t+r.length,a=IE(n,s,e.strict,o);return i.range=[t,s,a.offset],a.comment&&(i.comment=a.comment),i}function plt(e,t,{offset:r,start:n,value:o,end:i},s){const a=Object.assign({_directives:t},e),l=new y5(void 0,a),u={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},c=ev(n,{indicator:"doc-start",next:o??(i==null?void 0:i[0]),offset:r,onError:s,startOnNewline:!0});c.found&&(l.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!c.hasNewline&&s(c.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=o?Ipe(u,o,c,s):nz(u,c.end,n,null,c,s);const f=l.contents.range[2],d=IE(i,f,!1,s);return d.comment&&(l.comment=d.comment),l.range=[r,f,d.offset],l}function Wm(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r=="string"?r.length:1)]}function Fee(e){var o;let t="",r=!1,n=!1;for(let i=0;in(r,"TAG_RESOLVE_FAILED",f)):null,u=r&&l?plt(e.schema,o,l,r,n):t.type==="scalar"?glt(e,o,t,n):e.schema[Mf];let c;try{const f=u.resolve(o,d=>n(r??t,"TAG_RESOLVE_FAILED",d),e.options);c=mn(f)?f:new Jt(f)}catch(f){const d=f instanceof Error?f.message:String(f);n(r??t,"TAG_RESOLVE_FAILED",d),c=new Jt(o)}return c.range=a,c.source=o,i&&(c.type=i),l&&(c.tag=l),u.format&&(c.format=u.format),s&&(c.comment=s),c}function plt(e,t,r,n,o){var a;if(r==="!")return e[Mf];const i=[];for(const l of e.tags)if(!l.collection&&l.tag===r)if(l.default&&l.test)i.push(l);else return l;for(const l of i)if((a=l.test)!=null&&a.test(t))return l;const s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),e[Mf])}function glt({directives:e,schema:t},r,n,o){const i=t.tags.find(s=>{var a;return s.default&&((a=s.test)==null?void 0:a.test(r))})||t[Mf];if(t.compat){const s=t.compat.find(a=>{var l;return a.default&&((l=a.test)==null?void 0:l.test(r))})??t[Mf];if(i.tag!==s.tag){const a=e.tagString(i.tag),l=e.tagString(s.tag),u=`Value may be parsed as either ${a} or ${l}`;o(n,"TAG_RESOLVE_FAILED",u,!0)}}return i}function vlt(e,t,r){if(t){r===null&&(r=t.length);for(let n=r-1;n>=0;--n){let o=t[n];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++n];(o==null?void 0:o.type)==="space";)e+=o.source.length,o=t[++n];break}}return e}const mlt={composeNode:Cpe,composeEmptyNode:oz};function Cpe(e,t,r,n){const{spaceBefore:o,comment:i,anchor:s,tag:a}=r;let l,u=!0;switch(t.type){case"alias":l=ylt(e,t,n),(s||a)&&n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=Ipe(e,t,a,n),s&&(l.anchor=s.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":l=ilt(mlt,e,t,a,n),s&&(l.anchor=s.source.substring(1));break;default:{const c=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",c),l=oz(e,t.offset,void 0,null,r,n),u=!1}}return s&&l.anchor===""&&n(s,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(l.spaceBefore=!0),i&&(t.type==="scalar"&&t.source===""?l.comment=i:l.commentBefore=i),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function oz(e,t,r,n,{spaceBefore:o,comment:i,anchor:s,tag:a,end:l},u){const c={type:"scalar",offset:vlt(t,r,n),indent:-1,source:""},f=Ipe(e,c,a,u);return s&&(f.anchor=s.source.substring(1),f.anchor===""&&u(s,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(f.spaceBefore=!0),i&&(f.comment=i,f.range[2]=l),f}function ylt({options:e},{offset:t,source:r,end:n},o){const i=new l5(r.substring(1));i.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&o(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const s=t+r.length,a=IE(n,s,e.strict,o);return i.range=[t,s,a.offset],a.comment&&(i.comment=a.comment),i}function blt(e,t,{offset:r,start:n,value:o,end:i},s){const a=Object.assign({_directives:t},e),l=new b5(void 0,a),u={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},c=ev(n,{indicator:"doc-start",next:o??(i==null?void 0:i[0]),offset:r,onError:s,startOnNewline:!0});c.found&&(l.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!c.hasNewline&&s(c.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=o?Cpe(u,o,c,s):oz(u,c.end,n,null,c,s);const f=l.contents.range[2],d=IE(i,f,!1,s);return d.comment&&(l.comment=d.comment),l.range=[r,f,d.offset],l}function Wm(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r=="string"?r.length:1)]}function Bee(e){var o;let t="",r=!1,n=!1;for(let i=0;i{const s=Wm(r);i?this.warnings.push(new Spe(s,n,o)):this.errors.push(new Ih(s,n,o))},this.directives=new Yi({version:t.version||"1.2"}),this.options=t}decorate(t,r){const{comment:n,afterEmptyLine:o}=Fee(this.prelude);if(n){const i=t.contents;if(r)t.comment=t.comment?`${t.comment} +`)+(s.substring(1)||" "),r=!0,n=!1;break;case"%":((o=e[i+1])==null?void 0:o[0])!=="#"&&(i+=1),r=!1;break;default:r||(n=!0),r=!1}}return{comment:t,afterEmptyLine:n}}class iz{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,n,o,i)=>{const s=Wm(r);i?this.warnings.push(new wpe(s,n,o)):this.errors.push(new Ch(s,n,o))},this.directives=new Yi({version:t.version||"1.2"}),this.options=t}decorate(t,r){const{comment:n,afterEmptyLine:o}=Bee(this.prelude);if(n){const i=t.contents;if(r)t.comment=t.comment?`${t.comment} ${n}`:n;else if(o||t.directives.docStart||!i)t.commentBefore=n;else if(Vn(i)&&!i.flow&&i.items.length>0){let s=i.items[0];Hn(s)&&(s=s.key);const a=s.commentBefore;s.commentBefore=a?`${n} ${a}`:n}else{const s=i.commentBefore;i.commentBefore=s?`${n} -${s}`:n}}r?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Fee(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,r=!1,n=-1){for(const o of t)yield*this.next(o);yield*this.end(r,n)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(r,n,o)=>{const i=Wm(t);i[0]+=r,this.onError(i,"BAD_DIRECTIVE",n,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const r=plt(this.options,this.directives,t,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const r=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,n=new Ih(Wm(t),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const n="Unexpected doc-end without preceding document";this.errors.push(new Ih(Wm(t),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;const r=IE(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){const n=this.doc.comment;this.doc.comment=n?`${n} -${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new Ih(Wm(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const n=Object.assign({_directives:this.directives},this.options),o=new y5(void 0,n);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,r,r],this.decorate(o,!1),yield o}}}function glt(e,t=!0,r){if(e){const n=(o,i,s)=>{const a=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(r)r(a,i,s);else throw new Ih([a,a+1],i,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Ape(e,t,n);case"block-scalar":return kpe(e,t,n)}}return null}function vlt(e,t){const{implicitKey:r=!1,indent:n,inFlow:o=!1,offset:i=-1,type:s="PLAIN"}=t,a=xE({type:s,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:n,source:` +${s}`:n}}r?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Bee(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,r=!1,n=-1){for(const o of t)yield*this.next(o);yield*this.end(r,n)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(r,n,o)=>{const i=Wm(t);i[0]+=r,this.onError(i,"BAD_DIRECTIVE",n,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const r=blt(this.options,this.directives,t,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const r=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,n=new Ch(Wm(t),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const n="Unexpected doc-end without preceding document";this.errors.push(new Ch(Wm(t),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;const r=IE(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){const n=this.doc.comment;this.doc.comment=n?`${n} +${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new Ch(Wm(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const n=Object.assign({_directives:this.directives},this.options),o=new b5(void 0,n);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,r,r],this.decorate(o,!1),yield o}}}function _lt(e,t=!0,r){if(e){const n=(o,i,s)=>{const a=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(r)r(a,i,s);else throw new Ch([a,a+1],i,s)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return xpe(e,t,n);case"block-scalar":return Ape(e,t,n)}}return null}function Elt(e,t){const{implicitKey:r=!1,indent:n,inFlow:o=!1,offset:i=-1,type:s="PLAIN"}=t,a=xE({type:s,value:e},{implicitKey:r,indent:n>0?" ".repeat(n):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:n,source:` `}];switch(a[0]){case"|":case">":{const u=a.indexOf(` `),c=a.substring(0,u),f=a.substring(u+1)+` -`,d=[{type:"block-scalar-header",offset:i,indent:n,source:c}];return Cpe(d,l)||d.push({type:"newline",offset:-1,indent:n,source:` -`}),{type:"block-scalar",offset:i,indent:n,props:d,source:f}}case'"':return{type:"double-quoted-scalar",offset:i,indent:n,source:a,end:l};case"'":return{type:"single-quoted-scalar",offset:i,indent:n,source:a,end:l};default:return{type:"scalar",offset:i,indent:n,source:a,end:l}}}function mlt(e,t,r={}){let{afterKey:n=!1,implicitKey:o=!1,inFlow:i=!1,type:s}=r,a="indent"in e?e.indent:null;if(n&&typeof a=="number"&&(a+=2),!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{const u=e.props[0];if(u.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=u.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}const l=xE({type:s,value:t},{implicitKey:o||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":ylt(e,l);break;case'"':B3(e,l,"double-quoted-scalar");break;case"'":B3(e,l,"single-quoted-scalar");break;default:B3(e,l,"scalar")}}function ylt(e,t){const r=t.indexOf(` +`,d=[{type:"block-scalar-header",offset:i,indent:n,source:c}];return Npe(d,l)||d.push({type:"newline",offset:-1,indent:n,source:` +`}),{type:"block-scalar",offset:i,indent:n,props:d,source:f}}case'"':return{type:"double-quoted-scalar",offset:i,indent:n,source:a,end:l};case"'":return{type:"single-quoted-scalar",offset:i,indent:n,source:a,end:l};default:return{type:"scalar",offset:i,indent:n,source:a,end:l}}}function Slt(e,t,r={}){let{afterKey:n=!1,implicitKey:o=!1,inFlow:i=!1,type:s}=r,a="indent"in e?e.indent:null;if(n&&typeof a=="number"&&(a+=2),!s)switch(e.type){case"single-quoted-scalar":s="QUOTE_SINGLE";break;case"double-quoted-scalar":s="QUOTE_DOUBLE";break;case"block-scalar":{const u=e.props[0];if(u.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s=u.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:s="PLAIN"}const l=xE({type:s,value:t},{implicitKey:o||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":wlt(e,l);break;case'"':B3(e,l,"double-quoted-scalar");break;case"'":B3(e,l,"single-quoted-scalar");break;default:B3(e,l,"scalar")}}function wlt(e,t){const r=t.indexOf(` `),n=t.substring(0,r),o=t.substring(r+1)+` -`;if(e.type==="block-scalar"){const i=e.props[0];if(i.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i.source=n,e.source=o}else{const{offset:i}=e,s="indent"in e?e.indent:-1,a=[{type:"block-scalar-header",offset:i,indent:s,source:n}];Cpe(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:s,source:` -`});for(const l of Object.keys(e))l!=="type"&&l!=="offset"&&delete e[l];Object.assign(e,{type:"block-scalar",indent:s,props:a,source:o})}}function Cpe(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function B3(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let o=t.length;e.props[0].type==="block-scalar-header"&&(o-=e.props[0].source.length);for(const i of n)i.offset+=o;delete e.props,Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const o={type:"newline",offset:e.offset+t.length,indent:e.indent,source:` -`};delete e.items,Object.assign(e,{type:r,source:t,end:[o]});break}default:{const n="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter(i=>i.type==="space"||i.type==="comment"||i.type==="newline"):[];for(const i of Object.keys(e))i!=="type"&&i!=="offset"&&delete e[i];Object.assign(e,{type:r,indent:n,source:t,end:o})}}}const blt=e=>"type"in e?yx(e):Gk(e);function yx(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=yx(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=Gk(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=Gk(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=Gk(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function Gk({start:e,key:t,sep:r,value:n}){let o="";for(const i of e)o+=i.source;if(t&&(o+=yx(t)),r)for(const i of r)o+=i.source;return n&&(o+=yx(n)),o}const X6=Symbol("break visit"),_lt=Symbol("skip children"),Npe=Symbol("remove item");function Zh(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),Rpe(Object.freeze([]),e,t)}Zh.BREAK=X6;Zh.SKIP=_lt;Zh.REMOVE=Npe;Zh.itemAtPath=(e,t)=>{let r=e;for(const[n,o]of t){const i=r==null?void 0:r[n];if(i&&"items"in i)r=i.items[o];else return}return r};Zh.parentCollection=(e,t)=>{const r=Zh.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],o=r==null?void 0:r[n];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function Rpe(e,t,r){let n=r(t,e);if(typeof n=="symbol")return n;for(const o of["key","value"]){const i=t[o];if(i&&"items"in i){for(let s=0;s!!e&&"items"in e,Slt=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function wlt(e){switch(e){case b5:return"";case _5:return"";case E5:return"";case h_:return"";default:return JSON.stringify(e)}}function Ope(e){switch(e){case b5:return"byte-order-mark";case _5:return"doc-mode";case E5:return"flow-error-end";case h_:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case` +`;if(e.type==="block-scalar"){const i=e.props[0];if(i.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i.source=n,e.source=o}else{const{offset:i}=e,s="indent"in e?e.indent:-1,a=[{type:"block-scalar-header",offset:i,indent:s,source:n}];Npe(a,"end"in e?e.end:void 0)||a.push({type:"newline",offset:-1,indent:s,source:` +`});for(const l of Object.keys(e))l!=="type"&&l!=="offset"&&delete e[l];Object.assign(e,{type:"block-scalar",indent:s,props:a,source:o})}}function Npe(e,t){if(t)for(const r of t)switch(r.type){case"space":case"comment":e.push(r);break;case"newline":return e.push(r),!0}return!1}function B3(e,t,r){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=r,e.source=t;break;case"block-scalar":{const n=e.props.slice(1);let o=t.length;e.props[0].type==="block-scalar-header"&&(o-=e.props[0].source.length);for(const i of n)i.offset+=o;delete e.props,Object.assign(e,{type:r,source:t,end:n});break}case"block-map":case"block-seq":{const o={type:"newline",offset:e.offset+t.length,indent:e.indent,source:` +`};delete e.items,Object.assign(e,{type:r,source:t,end:[o]});break}default:{const n="indent"in e?e.indent:-1,o="end"in e&&Array.isArray(e.end)?e.end.filter(i=>i.type==="space"||i.type==="comment"||i.type==="newline"):[];for(const i of Object.keys(e))i!=="type"&&i!=="offset"&&delete e[i];Object.assign(e,{type:r,indent:n,source:t,end:o})}}}const klt=e=>"type"in e?bx(e):Kk(e);function bx(e){switch(e.type){case"block-scalar":{let t="";for(const r of e.props)t+=bx(r);return t+e.source}case"block-map":case"block-seq":{let t="";for(const r of e.items)t+=Kk(r);return t}case"flow-collection":{let t=e.start.source;for(const r of e.items)t+=Kk(r);for(const r of e.end)t+=r.source;return t}case"document":{let t=Kk(e);if(e.end)for(const r of e.end)t+=r.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const r of e.end)t+=r.source;return t}}}function Kk({start:e,key:t,sep:r,value:n}){let o="";for(const i of e)o+=i.source;if(t&&(o+=bx(t)),r)for(const i of r)o+=i.source;return n&&(o+=bx(n)),o}const Q6=Symbol("break visit"),Alt=Symbol("skip children"),Rpe=Symbol("remove item");function Jh(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),Ope(Object.freeze([]),e,t)}Jh.BREAK=Q6;Jh.SKIP=Alt;Jh.REMOVE=Rpe;Jh.itemAtPath=(e,t)=>{let r=e;for(const[n,o]of t){const i=r==null?void 0:r[n];if(i&&"items"in i)r=i.items[o];else return}return r};Jh.parentCollection=(e,t)=>{const r=Jh.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],o=r==null?void 0:r[n];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function Ope(e,t,r){let n=r(t,e);if(typeof n=="symbol")return n;for(const o of["key","value"]){const i=t[o];if(i&&"items"in i){for(let s=0;s!!e&&"items"in e,Tlt=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function Ilt(e){switch(e){case _5:return"";case E5:return"";case S5:return"";case h_:return"";default:return JSON.stringify(e)}}function Dpe(e){switch(e){case _5:return"byte-order-mark";case E5:return"doc-mode";case S5:return"flow-error-end";case h_:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case` `:case`\r -`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const klt=Object.freeze(Object.defineProperty({__proto__:null,BOM:b5,DOCUMENT:_5,FLOW_END:E5,SCALAR:h_,createScalarToken:vlt,isCollection:Elt,isScalar:Slt,prettyToken:wlt,resolveAsScalar:glt,setScalarValue:mlt,stringify:blt,tokenType:Ope,visit:Zh},Symbol.toStringTag,{value:"Module"}));function Xa(e){switch(e){case void 0:case" ":case` -`:case"\r":case" ":return!0;default:return!1}}const Bee="0123456789ABCDEFabcdef".split(""),Alt="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),M3=",[]{}".split(""),xlt=` ,[]{} -\r `.split(""),L3=e=>!e||xlt.includes(e);class Dpe{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,r=!1){t&&(this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null),this.atEnd=!r;let n=this.next??"stream";for(;n&&(r||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let t=this.pos,r=this.buffer[t];for(;r===" "||r===" ";)r=this.buffer[++t];return!r||r==="#"||r===` +`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const Clt=Object.freeze(Object.defineProperty({__proto__:null,BOM:_5,DOCUMENT:E5,FLOW_END:S5,SCALAR:h_,createScalarToken:Elt,isCollection:xlt,isScalar:Tlt,prettyToken:Ilt,resolveAsScalar:_lt,setScalarValue:Slt,stringify:klt,tokenType:Dpe,visit:Jh},Symbol.toStringTag,{value:"Module"}));function Qa(e){switch(e){case void 0:case" ":case` +`:case"\r":case" ":return!0;default:return!1}}const Mee="0123456789ABCDEFabcdef".split(""),Nlt="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),M3=",[]{}".split(""),Rlt=` ,[]{} +\r `.split(""),L3=e=>!e||Rlt.includes(e);class Fpe{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,r=!1){t&&(this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null),this.atEnd=!r;let n=this.next??"stream";for(;n&&(r||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let t=this.pos,r=this.buffer[t];for(;r===" "||r===" ";)r=this.buffer[++t];return!r||r==="#"||r===` `?!0:r==="\r"?this.buffer[t+1]===` `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let r=this.buffer[t];if(this.indentNext>0){let n=0;for(;r===" ";)r=this.buffer[++n+t];if(r==="\r"){const o=this.buffer[n+t+1];if(o===` `||!o&&!this.atEnd)return t+n+1}return r===` -`||n>=this.indentNext||!r&&!this.atEnd?t+n:-1}if(r==="-"||r==="."){const n=this.buffer.substr(t,3);if((n==="---"||n==="...")&&Xa(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&tthis.indentValue&&!Xa(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Xa(r)){const n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(t[r]){case"#":yield*this.pushCount(t.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(L3),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,r,n=-1;do t=yield*this.pushNewline(),t>0?(r=yield*this.pushSpaces(!1),this.indentValue=n=r):r=0,r+=yield*this.pushSpaces(!0);while(t+r>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((n!==-1&&n=this.indentNext||!r&&!this.atEnd?t+n:-1}if(r==="-"||r==="."){const n=this.buffer.substr(t,3);if((n==="---"||n==="...")&&Qa(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&tthis.indentValue&&!Qa(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Qa(r)){const n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(t[r]){case"#":yield*this.pushCount(t.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(L3),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,r,n=-1;do t=yield*this.pushNewline(),t>0?(r=yield*this.pushSpaces(!1),this.indentValue=n=r):r=0,r+=yield*this.pushSpaces(!0);while(t+r>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((n!==-1&&n"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>Xa(r)||r==="#")}*parseBlockScalar(){let t=this.pos-1,r=0,n;e:for(let o=this.pos;n=this.buffer[o];++o)switch(n){case" ":r+=1;break;case` +`,i)}o!==-1&&(r=o-(n[o-1]==="\r"?2:1))}if(r===-1){if(!this.atEnd)return this.setNext("quoted-scalar");r=this.buffer.length}return yield*this.pushToIndex(r+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const r=this.buffer[++t];if(r==="+")this.blockScalarKeep=!0;else if(r>"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>Qa(r)||r==="#")}*parseBlockScalar(){let t=this.pos-1,r=0,n;e:for(let o=this.pos;n=this.buffer[o];++o)switch(n){case" ":r+=1;break;case` `:t=o,r=0;break;case"\r":{const i=this.buffer[o+1];if(!i&&!this.atEnd)return this.setNext("block-scalar");if(i===` `)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext+=this.blockScalarIndent;do{const o=this.continueScalar(t+1);if(o===-1)break;t=this.buffer.indexOf(` `,o)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)do{let o=t-1,i=this.buffer[o];i==="\r"&&(i=this.buffer[--o]);const s=o;for(;i===" "||i===" ";)i=this.buffer[--o];if(i===` -`&&o>=this.pos&&o+1+r>s)t=o;else break}while(!0);return yield h_,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let r=this.pos-1,n=this.pos-1,o;for(;o=this.buffer[++n];)if(o===":"){const i=this.buffer[n+1];if(Xa(i)||t&&i===",")break;r=n}else if(Xa(o)){let i=this.buffer[n+1];if(o==="\r"&&(i===` +`&&o>=this.pos&&o+1+r>s)t=o;else break}while(!0);return yield h_,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let r=this.pos-1,n=this.pos-1,o;for(;o=this.buffer[++n];)if(o===":"){const i=this.buffer[n+1];if(Qa(i)||t&&i===",")break;r=n}else if(Qa(o)){let i=this.buffer[n+1];if(o==="\r"&&(i===` `?(n+=1,o=` `,i=this.buffer[n+1]):r=n),i==="#"||t&&M3.includes(i))break;if(o===` -`){const s=this.continueScalar(n+1);if(s===-1)break;n=Math.max(n,s-2)}}else{if(t&&M3.includes(o))break;r=n}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield h_,yield*this.pushToIndex(r+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,r){const n=this.buffer.slice(this.pos,t);return n?(yield n,this.pos+=n.length,n.length):(r&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(L3))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,r=this.charAt(1);if(Xa(r)||t&&M3.includes(r))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,r=this.buffer[t];for(;!Xa(r)&&r!==">";)r=this.buffer[++t];return yield*this.pushToIndex(r===">"?t+1:t,!1)}else{let t=this.pos+1,r=this.buffer[t];for(;r;)if(Alt.includes(r))r=this.buffer[++t];else if(r==="%"&&Bee.includes(this.buffer[t+1])&&Bee.includes(this.buffer[t+2]))r=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===` +`){const s=this.continueScalar(n+1);if(s===-1)break;n=Math.max(n,s-2)}}else{if(t&&M3.includes(o))break;r=n}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield h_,yield*this.pushToIndex(r+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,r){const n=this.buffer.slice(this.pos,t);return n?(yield n,this.pos+=n.length,n.length):(r&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(L3))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,r=this.charAt(1);if(Qa(r)||t&&M3.includes(r))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,r=this.buffer[t];for(;!Qa(r)&&r!==">";)r=this.buffer[++t];return yield*this.pushToIndex(r===">"?t+1:t,!1)}else{let t=this.pos+1,r=this.buffer[t];for(;r;)if(Nlt.includes(r))r=this.buffer[++t];else if(r==="%"&&Mee.includes(this.buffer[t+1])&&Mee.includes(this.buffer[t+2]))r=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===` `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===` -`?yield*this.pushCount(2):0}*pushSpaces(t){let r=this.pos-1,n;do n=this.buffer[++r];while(n===" "||t&&n===" ");const o=r-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=r),o}*pushUntil(t){let r=this.pos,n=this.buffer[r];for(;!t(n);)n=this.buffer[++r];return yield*this.pushToIndex(r,!1)}}class Fpe{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let r=0,n=this.lineStarts.length;for(;r>1;this.lineStarts[i]=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((r=e[++t])==null?void 0:r.type)==="space";);return e.splice(t,e.length)}function Lee(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Ql(t.start,"explicit-key-ind")&&!Ql(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,Bpe(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class iz{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Dpe,this.onNewLine=t}*parse(t,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const n of this.lexer.lex(t,r))yield*this.next(n);r||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const r=Ope(t);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const n=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const r=t??this.stack.pop();if(r)if(this.stack.length===0)yield r;else{const n=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in n?n.indent:0:r.type==="flow-collection"&&n.type==="document"&&(r.indent=0),r.type==="flow-collection"&&Lee(r),n.type){case"document":n.value=r;break;case"block-scalar":n.props.push(r);break;case"block-map":{const o=n.items[n.items.length-1];if(o.value){n.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=r;else{Object.assign(o,{key:r,sep:[]}),this.onKeyLine=!Ql(o.start,"explicit-key-ind");return}break}case"block-seq":{const o=n.items[n.items.length-1];o.value?n.items.push({start:[],value:r}):o.value=r;break}case"flow-collection":{const o=n.items[n.items.length-1];!o||o.value?n.items.push({start:[],key:r,sep:[]}):o.sep?o.value=r:Object.assign(o,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){const o=r.items[r.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&Mee(o.start)===-1&&(r.indent===0||o.start.every(i=>i.type!=="comment"||i.indent0&&(yield this.buffer.substr(this.pos,o),this.pos=r),o}*pushUntil(t){let r=this.pos,n=this.buffer[r];for(;!t(n);)n=this.buffer[++r];return yield*this.pushToIndex(r,!1)}}class Bpe{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let r=0,n=this.lineStarts.length;for(;r>1;this.lineStarts[i]=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((r=e[++t])==null?void 0:r.type)==="space";);return e.splice(t,e.length)}function jee(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Ql(t.start,"explicit-key-ind")&&!Ql(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,Mpe(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class sz{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Fpe,this.onNewLine=t}*parse(t,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const n of this.lexer.lex(t,r))yield*this.next(n);r||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const r=Dpe(t);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const n=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const r=t??this.stack.pop();if(r)if(this.stack.length===0)yield r;else{const n=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in n?n.indent:0:r.type==="flow-collection"&&n.type==="document"&&(r.indent=0),r.type==="flow-collection"&&jee(r),n.type){case"document":n.value=r;break;case"block-scalar":n.props.push(r);break;case"block-map":{const o=n.items[n.items.length-1];if(o.value){n.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=r;else{Object.assign(o,{key:r,sep:[]}),this.onKeyLine=!Ql(o.start,"explicit-key-ind");return}break}case"block-seq":{const o=n.items[n.items.length-1];o.value?n.items.push({start:[],value:r}):o.value=r;break}case"flow-collection":{const o=n.items[n.items.length-1];!o||o.value?n.items.push({start:[],key:r,sep:[]}):o.sep?o.value=r:Object.assign(o,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){const o=r.items[r.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&Lee(o.start)===-1&&(r.indent===0||o.start.every(i=>i.type!=="comment"||i.indent=t.indent){const o=!this.onKeyLine&&this.indent===t.indent&&r.sep;let i=[];if(o&&r.sep&&!r.value){const s=[];for(let a=0;at.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(i=r.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":o||r.value?(i.push(this.sourceToken),t.items.push({start:i}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!Ql(r.start,"explicit-key-ind")?r.start.push(this.sourceToken):o||r.value?(i.push(this.sourceToken),t.items.push({start:i})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(Ql(r.start,"explicit-key-ind"))if(r.sep)if(r.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Ql(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(Bpe(r.key)&&!Ql(r.sep,"newline")){const s=n0(r.start),a=r.key,l=r.sep;l.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:a,sep:l}]})}else i.length>0?r.sep=r.sep.concat(i,this.sourceToken):r.sep.push(this.sourceToken);else if(Ql(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{const s=n0(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||o?t.items.push({start:i,key:null,sep:[this.sourceToken]}):Ql(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);o||r.value?(t.items.push({start:i,key:s,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(s):(Object.assign(r,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{const s=this.startBlockValue(t);if(s){o&&s.type!=="block-seq"&&Ql(r.start,"explicit-key-ind")&&t.items.push({start:i}),this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var n;const r=t.items[t.items.length-1];switch(this.type){case"newline":if(r.value){const o="end"in r.value?r.value.end:void 0,i=Array.isArray(o)?o[o.length-1]:void 0;(i==null?void 0:i.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,t.indent)){const o=t.items[t.items.length-2],i=(n=o==null?void 0:o.value)==null?void 0:n.end;if(Array.isArray(i)){Array.prototype.push.apply(i,r.start),i.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=t.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;r.value||Ql(r.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>t.indent){const o=this.startBlockValue(t);if(o){this.stack.push(o);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const r=t.items[t.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n&&n.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?t.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!r||r.value?t.items.push({start:[],key:o,sep:[]}):r.sep?this.stack.push(o):Object.assign(r,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===t.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){const o=Kw(n),i=n0(o);Lee(t);const s=t.end.splice(1,t.end.length);s.push(this.sourceToken);const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let r=this.source.indexOf(` +`,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var n;const r=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){const o="end"in r.value?r.value.end:void 0,i=Array.isArray(o)?o[o.length-1]:void 0;(i==null?void 0:i.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,t.indent)){const o=t.items[t.items.length-2],i=(n=o==null?void 0:o.value)==null?void 0:n.end;if(Array.isArray(i)){Array.prototype.push.apply(i,r.start),i.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const o=!this.onKeyLine&&this.indent===t.indent&&r.sep;let i=[];if(o&&r.sep&&!r.value){const s=[];for(let a=0;at.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(i=r.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":o||r.value?(i.push(this.sourceToken),t.items.push({start:i}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!Ql(r.start,"explicit-key-ind")?r.start.push(this.sourceToken):o||r.value?(i.push(this.sourceToken),t.items.push({start:i})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(Ql(r.start,"explicit-key-ind"))if(r.sep)if(r.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Ql(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(Mpe(r.key)&&!Ql(r.sep,"newline")){const s=n0(r.start),a=r.key,l=r.sep;l.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:a,sep:l}]})}else i.length>0?r.sep=r.sep.concat(i,this.sourceToken):r.sep.push(this.sourceToken);else if(Ql(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{const s=n0(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||o?t.items.push({start:i,key:null,sep:[this.sourceToken]}):Ql(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);o||r.value?(t.items.push({start:i,key:s,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(s):(Object.assign(r,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{const s=this.startBlockValue(t);if(s){o&&s.type!=="block-seq"&&Ql(r.start,"explicit-key-ind")&&t.items.push({start:i}),this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var n;const r=t.items[t.items.length-1];switch(this.type){case"newline":if(r.value){const o="end"in r.value?r.value.end:void 0,i=Array.isArray(o)?o[o.length-1]:void 0;(i==null?void 0:i.type)==="comment"?o==null||o.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,t.indent)){const o=t.items[t.items.length-2],i=(n=o==null?void 0:o.value)==null?void 0:n.end;if(Array.isArray(i)){Array.prototype.push.apply(i,r.start),i.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=t.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;r.value||Ql(r.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>t.indent){const o=this.startBlockValue(t);if(o){this.stack.push(o);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const r=t.items[t.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n&&n.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?t.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!r||r.value?t.items.push({start:[],key:o,sep:[]}):r.sep?this.stack.push(o):Object.assign(r,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===t.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){const o=Vw(n),i=n0(o);jee(t);const s=t.end.splice(1,t.end.length);s.push(this.sourceToken);const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let r=this.source.indexOf(` `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(` -`,r)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const r=Kw(t),n=n0(r);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n}]}}case"map-value-ind":{this.onKeyLine=!0;const r=Kw(t),n=n0(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,r){return this.type!=="comment"||this.indent<=r?!1:t.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Mpe(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Fpe||null,prettyErrors:t}}function Tlt(e,t={}){const{lineCounter:r,prettyErrors:n}=Mpe(t),o=new iz(r==null?void 0:r.addNewLine),i=new oz(t),s=Array.from(i.compose(o.parse(e)));if(n&&r)for(const a of s)a.errors.forEach(mx(e,r)),a.warnings.forEach(mx(e,r));return s.length>0?s:Object.assign([],{empty:!0},i.streamInfo())}function Lpe(e,t={}){const{lineCounter:r,prettyErrors:n}=Mpe(t),o=new iz(r==null?void 0:r.addNewLine),i=new oz(t);let s=null;for(const a of i.compose(o.parse(e),!0,e.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new Ih(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(s.errors.forEach(mx(e,r)),s.warnings.forEach(mx(e,r))),s}function Ilt(e,t,r){let n;typeof t=="function"?n=t:r===void 0&&t&&typeof t=="object"&&(r=t);const o=Lpe(e,r);if(!o)return null;if(o.warnings.forEach(i=>npe(o.options.logLevel,i)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:n},r))}function Clt(e,t,r){let n=null;if(typeof t=="function"||Array.isArray(t)?n=t:r===void 0&&t&&(r=t),typeof r=="string"&&(r=r.length),typeof r=="number"){const o=Math.round(r);r=o<1?void 0:o>8?{indent:8}:{indent:o}}if(e===void 0){const{keepUndefined:o}=r??t??{};if(!o)return}return new y5(e,n,r).toString(r)}const Nlt=Object.freeze(Object.defineProperty({__proto__:null,Alias:a5,CST:klt,Composer:oz,Document:y5,Lexer:Dpe,LineCounter:Fpe,Pair:Bi,Parser:iz,Scalar:Jt,Schema:m5,YAMLError:rz,YAMLMap:ca,YAMLParseError:Ih,YAMLSeq:b1,YAMLWarning:Spe,isAlias:bp,isCollection:Vn,isDocument:Bv,isMap:Mv,isNode:go,isPair:Hn,isScalar:mn,isSeq:Lv,parse:Ilt,parseAllDocuments:Tlt,parseDocument:Lpe,stringify:Clt,visit:y1,visitAsync:s5},Symbol.toStringTag,{value:"Module"})),Rlt=/.*\.prompty$/,Q6=".prompty",bx="pfs-network-error",Z6=(e,t)=>t.some(r=>e instanceof r);let jee,zee;function Olt(){return jee||(jee=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Dlt(){return zee||(zee=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const J6=new WeakMap,j3=new WeakMap,S5=new WeakMap;function Flt(e){const t=new Promise((r,n)=>{const o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{r(_x(e.result)),o()},s=()=>{n(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",s)});return S5.set(t,e),t}function Blt(e){if(J6.has(e))return;const t=new Promise((r,n)=>{const o=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{r(),o()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});J6.set(e,t)}let eM={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return J6.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return _x(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function jpe(e){eM=e(eM)}function Mlt(e){return Dlt().includes(e)?function(...t){return e.apply(tM(this),t),_x(this.request)}:function(...t){return _x(e.apply(tM(this),t))}}function Llt(e){return typeof e=="function"?Mlt(e):(e instanceof IDBTransaction&&Blt(e),Z6(e,Olt())?new Proxy(e,eM):e)}function _x(e){if(e instanceof IDBRequest)return Flt(e);if(j3.has(e))return j3.get(e);const t=Llt(e);return t!==e&&(j3.set(e,t),S5.set(t,e)),t}const tM=e=>S5.get(e),jlt=["get","getKey","getAll","getAllKeys","count"],zlt=["put","add","delete","clear"],z3=new Map;function Hee(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(z3.get(t))return z3.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,o=zlt.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||jlt.includes(r)))return;const i=async function(s,...a){const l=this.transaction(s,o?"readwrite":"readonly");let u=l.store;return n&&(u=u.index(a.shift())),(await Promise.all([u[r](...a),o&&l.done]))[0]};return z3.set(t,i),i}jpe(e=>({...e,get:(t,r,n)=>Hee(t,r)||e.get(t,r,n),has:(t,r)=>!!Hee(t,r)||e.has(t,r)}));const Hlt=["continue","continuePrimaryKey","advance"],$ee={},rM=new WeakMap,zpe=new WeakMap,$lt={get(e,t){if(!Hlt.includes(t))return e[t];let r=$ee[t];return r||(r=$ee[t]=function(...n){rM.set(this,zpe.get(this)[t](...n))}),r}};async function*Plt(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const r=new Proxy(t,$lt);for(zpe.set(r,t),S5.set(r,tM(t));t;)yield r,t=await(rM.get(r)||t.continue()),rM.delete(r)}function Pee(e,t){return t===Symbol.asyncIterator&&Z6(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&Z6(e,[IDBIndex,IDBObjectStore])}jpe(e=>({...e,get(t,r,n){return Pee(t,r)?Plt:e.get(t,r,n)},has(t,r){return Pee(t,r)||e.has(t,r)}}));class qlt{constructor(){this.chatMessagesMap=new Map}async addChatMessage(t,r,n){const o=this.chatMessagesMap.get(r)||[];o.push({...n,flowFilePath:t,chatItemName:r}),this.chatMessagesMap.set(r,o)}async getChatMessages(t,r){return this.chatMessagesMap.get(r)||[]}async clearChatMessages(t){this.chatMessagesMap.clear()}}const nM=new qlt;class oM{constructor(){Be(this,"_errors");Be(this,"_summary");this._errors=[],this._summary=void 0}cleanup(){this._errors.length=0,this._summary=void 0}run(t){try{t()}catch(r){this._errors.push(r),this._summary=void 0}}summary(t){if(this._summary===void 0){if(this._errors.length===1)throw this._summary=this._errors[0];this._errors.length>1&&(this._summary=new AggregateError(this._errors,t))}if(this._summary!==void 0)throw this._summary}}function Wlt(e){const t=new oM;for(const r of e)t.run(()=>r.dispose());t.summary("[disposeAll] Encountered errors while disposing"),t.cleanup()}class Hpe{constructor(){Be(this,"_disposed");Be(this,"_disposables");this._disposed=!1,this._disposables=[]}get disposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;try{Wlt(this._disposables)}finally{this._disposables.length=0}}}registerDisposable(t){t.disposed||(this._disposed?t.dispose():this._disposables.push(t))}}class sz{constructor(t){Be(this,"_onDispose");Be(this,"_disposed");this._onDispose=t,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}}function Glt(e){return e===null||typeof e!="object"?!1:typeof Reflect.get(e,"dispose")=="function"&&typeof Reflect.get(e,"disposed")=="boolean"}const Klt=()=>{};class Ex{constructor(t){Be(this,"_onDispose");Be(this,"_onNext");Be(this,"_disposed");this._onDispose=(t==null?void 0:t.onDispose)??Klt,this._onNext=t.onNext,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}next(t,r){this._disposed||this._onNext(t,r)}}const qee={unsubscribe:()=>{}};class Vlt{constructor(t={}){Be(this,"ARRANGE_THRESHOLD");Be(this,"_disposed");Be(this,"_items");Be(this,"_subscribingCount");this.ARRANGE_THRESHOLD=t.ARRANGE_THRESHOLD??16,this._disposed=!1,this._items=[],this._subscribingCount=0}get size(){return this._subscribingCount}get disposed(){return this._disposed}dispose(){if(this._disposed)return;this._disposed=!0;const t=new oM,r=this._items;for(let n=0;no.subscriber.dispose()))}r.length=0,this._subscribingCount=0,t.summary("Encountered errors while disposing."),t.cleanup()}notify(t,r){if(this._disposed)return;const n=new oM,o=this._items;for(let i=0,s=o.length;ia.subscriber.next(t,r))}n.summary("Encountered errors while notifying subscribers."),n.cleanup()}subscribe(t){if(t.disposed)return qee;if(this.disposed)return t.dispose(),qee;const r={subscriber:t,unsubscribed:!1};return this._items.push(r),this._subscribingCount+=1,{unsubscribe:()=>{r.unsubscribed||(r.unsubscribed=!0,this._subscribingCount-=1,this._arrange())}}}_arrange(){const t=this._items;if(t.length>=this.ARRANGE_THRESHOLD&&this._subscribingCount*2<=t.length){const r=[];for(let n=0;n{},Wee={unsubscribe:$pe},Gee={unobserve:$pe},Ult=e=>e===null||typeof e!="object"?!1:typeof Reflect.get(e,"dispose")=="function"&&typeof Reflect.get(e,"disposed")=="boolean"&&typeof Reflect.get(e,"subscribe")=="function"&&typeof Reflect.get(e,"equals")=="function"&&typeof Reflect.get(e,"getSnapshot")=="function"&&typeof Reflect.get(e,"next")=="function",Ylt=(e,t)=>Object.is(e,t);class az extends Hpe{constructor(r,n={}){super();Be(this,"equals");Be(this,"_delay");Be(this,"_subscribers");Be(this,"_value");Be(this,"_updateTick");Be(this,"_notifyTick");Be(this,"_lastNotifiedValue");Be(this,"_timer");const{equals:o=Ylt}=n;this._delay=Math.max(0,Number(n.delay)||0),this._subscribers=new Vlt,this._value=r,this._updateTick=0,this._notifyTick=0,this._lastNotifiedValue=void 0,this._timer=void 0,this.equals=o}dispose(){this.disposed||(super.dispose(),this._flush(),this._subscribers.dispose())}getSnapshot(){return this._value}next(r,n){if(this.disposed){if((n==null?void 0:n.strict)??!0)throw new RangeError(`Don't update a disposed observable. value: ${String(r)}.`);return}!((n==null?void 0:n.force)??!1)&&this.equals(r,this._value)||(this._value=r,this._updateTick+=1,this._notify())}subscribe(r){if(r.disposed)return Wee;const n=this._lastNotifiedValue,o=this._value;return this.disposed?(r.next(o,n),r.dispose(),Wee):(this._flush(),r.next(o,n),this._subscribers.subscribe(r))}_flush(){this._notifyTick{try{this._notifyImmediate()}finally{this._timer=void 0}this._notify()},this._delay))}}_notifyImmediate(){const r=this._lastNotifiedValue,n=this._value;this._lastNotifiedValue=n,this._notifyTick=this._updateTick,this._subscribers.notify(n,r)}}const Xlt=(e,t)=>e===t;class Ppe extends az{constructor(t={}){const{start:r=0,delay:n}=t;super(r,{delay:n,equals:Xlt})}tick(t){this.next(this._value+1,t)}observe(t,r){if(this.disposed){if((r==null?void 0:r.strict)??!0)throw new RangeError("[Ticker.observe] the ticker has been disposed.");return Gee}if(t.disposed)return Gee;const n=new Ex({onNext:()=>this.tick()}),o=t.subscribe(n),i=new sz(()=>{n.dispose(),o.unsubscribe()});return this.registerDisposable(i),{unobserve:()=>i.dispose()}}}class lz{constructor(t){Be(this,"_observable");Be(this,"getSnapshot",()=>this._observable.getSnapshot());Be(this,"getServerSnapshot",()=>this._observable.getSnapshot());Be(this,"subscribeStateChange",t=>{const r=new Ex({onNext:()=>t()}),n=this._observable.subscribe(r),o=new sz(()=>{r.dispose(),n.unsubscribe()});return this._observable.registerDisposable(o),()=>o.dispose()});this._observable=t}static fromObservables(t,r,n){const o=new Ppe;for(const l of t)o.observe(l);const i=()=>{const l=t.map(u=>u.getSnapshot());return r(l)},s=new az(i(),n);s.registerDisposable(o);const a=new Ex({onNext:()=>s.next(i())});return o.subscribe(a),new lz(s)}get disposed(){return this._observable.disposed}dispose(){this._observable.disposed||this._observable.dispose()}registerDisposable(t){this._observable.registerDisposable(t)}subscribe(t){return this._observable.subscribe(t)}}class Vo extends az{constructor(){super(...arguments);Be(this,"getSnapshot",()=>super.getSnapshot());Be(this,"getServerSnapshot",()=>super.getSnapshot());Be(this,"setState",r=>{const n=this.getSnapshot(),o=r(n);super.next(o)});Be(this,"subscribeStateChange",r=>{const n=new Ex({onNext:()=>r()}),o=super.subscribe(n),i=new sz(()=>{n.dispose(),o.unsubscribe()});return this.registerDisposable(i),()=>i.dispose()})}}class qpe extends Hpe{constructor(){super();Be(this,"_tickerMap");this._tickerMap=new Map}dispose(){if(!this.disposed){super.dispose();for(const r of Reflect.ownKeys(this))if(typeof r=="string"&&r.endsWith("$")){const n=this[r];Glt(n)&&n.dispose()}for(const r of this._tickerMap.values())r.ticker.dispose();this._tickerMap.clear()}}ticker(r){const n=Array.from(new Set(r)).sort(),o=n.join("|");let i=this._tickerMap.get(o);if(i===void 0){const s=new Ppe;i={keys:n,ticker:s},this.registerDisposable(s),this._tickerMap.set(o,i);for(const a of n){const l=this[a];if(!Ult(l)){console.warn("[ViewModel.ticker] not an observable, key:",a,"val:",l);continue}s.observe(l)}}return i}}function Qlt(e,t,r){const n=t(),[{inst:o},i]=A.useState({inst:{value:n,getSnapshot:t}});return A.useLayoutEffect(()=>{o.value=n,o.getSnapshot=t,H3(o)&&i({inst:o})},[e,n,t]),A.useEffect(()=>(H3(o)&&i({inst:o}),e(()=>{H3(o)&&i({inst:o})})),[e]),A.useDebugValue(n),n}function H3(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!Object.is(r,n)}catch{return!0}}function Zlt(e,t,r){return t()}const Jlt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",eut=Jlt?Qlt:Zlt,Kee=A.useSyncExternalStore,Wpe=Kee||eut;function tut(e){const{getSnapshot:t,getServerSnapshot:r,subscribeStateChange:n}=e;return Wpe(n,t,r)}function oo(e){const{getSnapshot:t,getServerSnapshot:r,subscribeStateChange:n}=e;return Wpe(n,t,r)}var wo=(e=>(e.System="system",e.Error="error",e.Chatbot="chatbot",e.User="user",e))(wo||{}),mf=(e=>(e.Message="message",e.SessionSplit="session-split",e))(mf||{}),Ul=(e=>(e[e.PENDING=0]="PENDING",e[e.COPYING=1]="COPYING",e[e.COPIED=2]="COPIED",e[e.FAILED=3]="FAILED",e))(Ul||{}),ib=(e=>(e.MessageBubble="chatbox-message-bubble",e.MessageContent="chatbox-message-content",e.MessageList="chatbox-message-list",e.MessageActionBar="chatbox-message-action-bar",e))(ib||{}),Gpe=(e=>(e.MessageBubble='[data-chatbox-locator="chatbox-message-bubble"]',e.MessageContent='[data-chatbox-locator="chatbox-message-content"]',e.MessageList='[data-chatbox-locator="chatbox-message-list"]',e.MessageActionBar='[data-chatbox-locator="chatbox-message-action-bar"]',e))(Gpe||{});const uz={CopyToClipboard:"Copy to clipboard",CopyToClipboard_Copying:"Copying...",CopyToClipboard_Copied:"Copied!",CopyToClipboard_Failed:"Failed!",Header_Clear:"Click to clear all chat histories",Header_Close:"Click to close chat box",Header_EnterFullScreen:"Click to enter full screen mode",Header_ExitFullScreen:"Click to exit full screen mode",Header_Title:"Chat",Input_Placeholder:"Input anything to test...",MessageError_HideDetail:"Hide Detail",MessageError_ShowDetail:"Show Detail",MessageStatus_TimeSpentDesc:"time spent",MessageStatus_TimeSpentDscCapitalized:"Time spent",MessageStatus_TimeSpent_Unit:"sec",MessageStatus_TokensDesc:"Total tokens for generating this",MessageStatus_TokensUint:"tokens",SessionSplit_Desc:"Your session start from here.",Tooltip_Bottom:"Only default variants will be used for chat, if you want to test variants please try bulk test. For chatbot and test app bot, it will only show the chat output.",Tooltip_TotalTokens:"Total tokens",Typing:"Generating chat output for you"};class Kpe{constructor(t){this.calcContentForCopy=f=>this.calcContentForCopy$.getSnapshot()(f),this.monitorInputContentChange=f=>this.inputContentChangeTick$.subscribeStateChange(f),this.notifyInputContentChange=()=>{this.inputContentChangeTick$.setState(f=>f+1)},this.sendMessage=f=>{const d=this.editorRef.current;if(!d){console.log("!!!editorRef is not mounted.");return}const h=f??d.getContent(),g=this.sendMessage$.getSnapshot(),y=this.makeUserMessage$.getSnapshot()(h);this.messages$.setState(E=>[...E,y]),d.clear(),this.isOthersTyping$.next(!0),g(h,this,y).then(E=>{E!==void 0&&this.messages$.setState(_=>[..._,E])}).finally(()=>{this.isOthersTyping$.next(!1)})},this.setCalcContentForCopy=f=>{this.calcContentForCopy$.next(f)},this.setMakeUserMessage=f=>{this.makeUserMessage$.next(f)},this.setSendMessage=f=>{this.sendMessage$.next(f)},this.sessionSplit=f=>{const d={id:Ri.v4(),type:mf.SessionSplit,history:[{category:wo.System,from:"system",content:f??"",timestamp:new Date().toISOString()}]};return this.messages$.setState(h=>[...h,d]),d};const{alias:r="",initialDisabled:n=!1,initialMessages:o=[],locStrings:i=uz,calcContentForCopy:s=f=>typeof f.content=="string"?f.content:JSON.stringify(f.content),makeUserMessage:a=f=>({id:Ri.v4(),type:mf.Message,history:[{category:wo.User,from:this.alias$.getSnapshot(),timestamp:new Date().toISOString(),content:f}]}),sendMessage:l=async f=>({id:Ri.v4(),type:mf.Message,history:[{category:wo.Chatbot,from:"chatbot",timestamp:new Date().toISOString(),content:f}]})}=t;this.editorRef={current:null};const u=new Vo(0),c=lz.fromObservables([u],()=>{var f;return(f=this.editorRef.current)==null?void 0:f.isEmpty()});this.alias$=new Vo(r),this.disabled$=new Vo(n),this.inputContentChangeTick$=u,this.isEditorEmpty$=c,this.isOthersTyping$=new Vo(!1),this.locStrings$=new Vo(i),this.messages$=new Vo(o),this.calcContentForCopy$=new Vo(s),this.makeUserMessage$=new Vo(a),this.sendMessage$=new Vo(l)}}const rut=new Kpe({sendMessage:()=>Promise.resolve({id:Date.now(),type:mf.Message,history:[{category:wo.System,from:"system",timestamp:new Date().toISOString(),content:"sendMessage not implemented!"}]})}),Vpe=re.createContext({viewmodel:rut}),Rl=()=>re.useContext(Vpe);function cz(e){const t=A.useRef(e);return A.useLayoutEffect(()=>{t.current=e}),A.useCallback((...r)=>{const n=t.current;return n(...r)},[])}function Upe(){const{viewmodel:e}=Rl();return tut(e.isEditorEmpty$)??!0}function Ype(e,t){const[r,n]=re.useState(Ul.PENDING),o=ir(s=>{if(r===Ul.PENDING){n(Ul.COPYING);try{const a=t(s);Fhe(a),n(Ul.COPIED)}catch{n(Ul.FAILED)}}});return re.useEffect(()=>{if(r===Ul.COPIED||r===Ul.FAILED){let s=setTimeout(()=>{s=void 0,n(Ul.PENDING)},1500);return()=>{s&&clearTimeout(s)}}},[r]),re.useMemo(()=>({key:"copy",group:2,icon:r===Ul.PENDING?N.jsx(qae,{}):N.jsx(Wae,{}),tooltip:N.jsx(N.Fragment,{children:e.CopyToClipboard}),disabled:r!==Ul.PENDING,onClick:o,condition:s=>s.category===wo.Chatbot||s.category===wo.User||s.category===wo.Error}),[e,r,o])}_r({copyButton:{cursor:"pointer"}});const Xpe=e=>{const{className:t,disabled:r,icon:n=N.jsx(W3e,{}),title:o,onSend:i}=e;return N.jsx(Tn,{as:"button",appearance:"transparent",size:"medium",title:o,className:t,icon:n,disabled:r,onClick:i})};Xpe.displayName="SendButton";const nut={Add:"Add",AddAnImage:"Add an image",PasteImageOrLinkHere:"Paste image or link here",UploadFromThisDevice:"Upload from this device"},out=e=>{const{src:t,alt:r,loading:n=!1,width:o,height:i,styles:s}=e;return t?n?N.jsx("div",{children:"Loading..."}):N.jsx("div",{className:s==null?void 0:s.root,children:N.jsx("img",{className:s==null?void 0:s.image,src:t,alt:r,width:o,height:i})}):N.jsx("div",{children:"This image can not be previewed."})},iut=e=>{const{src:t,alt:r,visible:n,loading:o=!1,width:i,height:s,onDismiss:a}=e,l=sut(),u=N.jsxs("div",{className:l.container,children:[N.jsxs("div",{className:l.header,children:[N.jsx("h2",{className:l.heading,children:"Preview"}),N.jsx(Tn,{as:"button",appearance:"transparent",icon:N.jsx(Kae,{}),className:l.dismissBtn,onClick:a})]}),N.jsx("div",{className:l.main,children:N.jsx(out,{src:t,alt:r,loading:o,width:i,height:s,styles:{image:l.image}})})]});return N.jsx(pse,{isOpen:n,isBlocking:!1,onDismiss:a,children:u})},sut=_r({container:{display:"flex",flexDirection:"column",flexWrap:"nowrap",...Ye.padding("16px")},header:{...Ye.flex(0,0,"auto"),display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"space-between",marginBottom:"20px"},heading:{...Ye.margin(0),fontWeight:On.semibold,fontSize:"inherit"},dismissBtn:{"&&":{fontSize:"16px",lineHeight:"16px",height:"16px",width:"16px",color:Pt.colorNeutralStroke1}},main:{...Ye.overflow("auto"),display:"flex",justifyContent:"center",alignItems:"center"},image:{width:"auto",height:"auto",maxWidth:"60vw",maxHeight:"60vh"}}),Vee="48px",Qpe="__MASK_SELECTOR_CLASS_NAME__",aut=e=>{const{image:t,alt:r,isReadonly:n,onClickDelete:o}=e,[i,s]=re.useState(!1),a=lut(),l=re.useMemo(()=>{if(t)return typeof t=="string"?t:URL.createObjectURL(t)},[t]),u=re.useCallback(()=>{s(f=>!f)},[]),c=l||"";return N.jsxs("div",{className:Xe(a.root,n?a.readonlyRoot:void 0),children:[N.jsxs("div",{className:a.imageContainer,children:[N.jsx("img",{decoding:"async",className:a.image,src:c,alt:r}),N.jsx("div",{"aria-hidden":!0,className:Xe(a.mask,Qpe),onClick:u,role:"button",children:N.jsx(Vae,{})})]}),!n&&N.jsx(Tn,{as:"button",className:a.closeButton,icon:N.jsx(Gae,{}),onClick:o}),N.jsx(iut,{src:c,alt:r||"",visible:i,onDismiss:u})]})},lut=_r({root:{boxSizing:"border-box",display:"flex",height:"32px",width:"80px",...Ye.border("1px","solid",Pt.colorNeutralStroke2),...Ye.borderRadius("4px")},readonlyRoot:{width:"48px"},imageContainer:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:Vee,[`:hover .${Qpe}`]:{visibility:"visible"}},image:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto"},mask:{visibility:"hidden",cursor:"pointer",position:"absolute",top:0,left:0,width:`calc(${Vee} - 2px)`,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",color:Pt.colorNeutralForegroundStaticInverted,...Ye.borderRadius("4px",0,0,"4px")},closeButton:{width:"32px",...Ye.border(0)}}),Zpe=re.forwardRef((e,t)=>N.jsx(Tn,{...e,ref:t,as:"button",appearance:"transparent",size:"medium",icon:N.jsx(Pae,{})}));Zpe.displayName="UploadPopoverTrigger";const uut=(e,...t)=>{const r={...e};for(const n of Object.keys(e))r[n]=Xe(e[n],...t.map(o=>o==null?void 0:o[n]));return r},Jpe=re.forwardRef(({isUploading:e,disabled:t,errorMessage:r,trigger:n=N.jsx(Zpe,{}),locStrings:o=nut,styles:i,events:s,onUpload:a,onRenderImagePreview:l},u)=>{const c=uut(cut(),i),{onDelete:f,onInputBlur:d,onPaste:h,onLocalUpload:g}=s??{};re.useImperativeHandle(u,()=>({open(){y(!0)},close(){y(!1)},reset:()=>{x()},retrieve:()=>S}));const[v,y]=re.useState(!1),[E,_]=re.useState(""),[S,b]=re.useState(void 0),k=re.useRef(null),T=re.useCallback((M,W)=>{y(W.open||!1)},[]),x=re.useCallback(()=>{_(""),b(void 0),k.current&&(k.current.value="")},[]),I=re.useCallback(M=>{const W=M[0];b(W),h==null||h(W)},[h]),C=re.useCallback(M=>{M.clipboardData.files&&I&&I(M.clipboardData.files)},[I]),R=re.useCallback(()=>{d==null||d(E),b(E)},[E,d]),D=re.useCallback(()=>{S&&a(S)},[S,a]),L=re.useMemo(()=>l?l({cachedImage:S,customerInputContent:E,isReadonly:t||e||!1}):N.jsx(aut,{image:S||E,alt:E||"",isReadonly:e,onClickDelete:()=>{x(),f==null||f()}}),[E,S,x,t,e,f,l]);return N.jsxs(nue,{positioning:"above-end",open:v,onOpenChange:T,children:[N.jsx(t7,{disableButtonEnhancement:!0,children:n}),N.jsxs(rue,{className:c.attachUploadPopover,children:[N.jsxs("div",{className:c.attachUploadHeader,children:[N.jsx("span",{children:o.AddAnImage}),N.jsx(Tn,{as:"button",disabled:t,appearance:"transparent",icon:N.jsx(Kae,{}),onClick:()=>{y(!1)}})]}),N.jsxs("div",{className:c.attachUploadInputWrapper,children:[S?L:N.jsx(o7,{className:c.attachUploadInput,value:E,disabled:t,placeholder:o.PasteImageOrLinkHere,onChange:(M,W)=>{b(void 0),_(W.value)},onPaste:C,onBlur:R}),N.jsx(Tn,{as:"button",disabled:t||e||!S&&!E,className:c.addButton,onClick:D,children:e?N.jsx(tE,{size:"tiny"}):o.Add})]}),r&&N.jsx("div",{className:c.errorMessage,children:r}),N.jsx("input",{tabIndex:-1,"aria-hidden":!0,ref:k,disabled:t,className:c.invisibleFileInput,onChange:M=>{var z;const W=(z=M.target.files)==null?void 0:z[0];W&&(g==null||g(W)),b(W)},type:"file",accept:"image/*"}),N.jsx("div",{className:c.triggerUploadButton,children:N.jsx(Tn,{as:"button",disabled:t,appearance:"transparent",icon:N.jsx(F3e,{}),onClick:()=>{var M;(M=k.current)==null||M.click()},children:o.UploadFromThisDevice})})]})]})});Jpe.displayName="UploadPopover";const cut=_r({attachUploadPopover:{width:"400px",backgroundColor:Pt.colorNeutralBackground1,...Ye.padding("12px")},attachUploadHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:500,fontSize:"16px",lineHeight:"22px"},attachUploadInputWrapper:{marginTop:"8px",display:"flex",columnGap:"8px",justifyContent:"space-between"},attachUploadInput:{flexGrow:1},addButton:{minWidth:"52px"},errorMessage:{color:Pt.colorPaletteRedBackground3},invisibleFileInput:{display:"none"},triggerUploadButton:{marginTop:"8px",display:"flex",justifyContent:"space-between"}}),e0e=()=>N.jsx("div",{});e0e.displayName="DefaultInputValidationRenderer";const fut=()=>N.jsx(N.Fragment,{});function t0e(e){const{content:t,className:r}=e,n=dut(),o=Xe(n.content,r);if(typeof t=="string")return N.jsx("p",{className:o,children:t});const i=JSON.stringify(t,null,2);return N.jsx("pre",{className:o,children:i})}t0e.displayName="DefaultMessageContentRenderer";const dut=_r({content:{...Ye.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces"}});function r0e(e){const{error:t,locStrings:r,className:n}=e,[o,i]=re.useState(!1),s=hut(),a=Xe(s.errorMessageDetail,!o&&s.errorMessageDetailHidden);return N.jsxs("div",{className:n,children:[N.jsx(Ub,{onClick:()=>i(l=>!l),children:o?r.MessageError_HideDetail:r.MessageError_ShowDetail}),N.jsx("p",{className:a,children:t})]})}r0e.displayName="DefaultMessageErrorRenderer";const hut=_r({errorMessageDetail:{...Ye.margin("8px","0","0","0"),...Ye.borderTop("1px","solid",Pt.colorPaletteDarkRedBorderActive),wordBreak:"break-word",whiteSpace:"break-spaces"},errorMessageDetailHidden:{display:"none"}}),put=()=>re.useMemo(()=>[],[]);function n0e(e){const{useMessageActions:t=put,data:r,className:n}=e,o=t(r),i=gut(),s=re.useMemo(()=>{const u=o.filter(f=>!f.condition||f.condition(r)).sort((f,d)=>f.group-d.group),c=[];for(let f=0,d;f0))return N.jsx(N.Fragment,{});const l=[];for(let u=0;uy(r)},d)},d))}u+1{r>0&&o(r-1)},a=()=>{r=z?W:""+Array(z+1-P.length).join(F)+W},b={s:S,z:function(W){var z=-W.utcOffset(),F=Math.abs(z),P=Math.floor(F/60),K=F%60;return(z<=0?"+":"-")+S(P,2,"0")+":"+S(K,2,"0")},m:function W(z,F){if(z.date()1)return W(Z[0])}else{var J=z.name;T[J]=z,K=J}return!P&&K&&(k=K),K||!P&&k},R=function(W,z){if(I(W))return W.clone();var F=typeof z=="object"?z:{};return F.date=W,F.args=arguments,new L(F)},D=b;D.l=C,D.i=I,D.w=function(W,z){return R(W,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var L=function(){function W(F){this.$L=C(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[x]=!0}var z=W.prototype;return z.parse=function(F){this.$d=function(P){var K=P.date,V=P.utc;if(K===null)return new Date(NaN);if(D.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var Z=K.match(y);if(Z){var J=Z[2]-1||0,ee=(Z[7]||"0").substring(0,3);return V?new Date(Date.UTC(Z[1],J,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,ee)):new Date(Z[1],J,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,ee)}}return new Date(K)}(F),this.init()},z.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},z.$utils=function(){return D},z.isValid=function(){return this.$d.toString()!==v},z.isSame=function(F,P){var K=R(F);return this.startOf(P)<=K&&K<=this.endOf(P)},z.isAfter=function(F,P){return R(F){const{duration:t,tokens:r,locStrings:n,className:o}=e,i=t.toFixed(2).replace(/\.?0*$/,"");return N.jsxs("div",{className:o,children:[r>0&&N.jsxs(re.Fragment,{children:[`${n.MessageStatus_TokensDesc}: `,N.jsx("b",{children:r}),` ${n.MessageStatus_TokensUint}, `]}),`${r>0?n.MessageStatus_TimeSpentDesc:n.MessageStatus_TimeSpentDscCapitalized}: `,N.jsx("b",{children:i}),` ${n.MessageStatus_TimeSpent_Unit}`]})};a0e.displayName="DefaultMessageStatusRenderer";const but=[],_ut=e=>but;function fz(e){const{MessageAvatarRenderer:t,MessageContentRenderer:r=t0e,MessageErrorRenderer:n=r0e,MessageSenderRenderer:o=s0e,MessagePaginationRenderer:i=o0e,MessageActionBarRenderer:s=n0e,MessageStatusRenderer:a=a0e,useMessageContextualMenuItems:l=_ut,useMessageActions:u,initialPage:c=-1,locStrings:f,message:d,className:h}=e,g=Eut(),[v,y]=re.useState((c%d.history.length+d.history.length)%d.history.length),[E,_]=re.useState(!1),S=re.useRef(null),b=re.useRef(null),k=re.useCallback(()=>{_(!1)},[]),T=re.useCallback(D=>{const L=S.current,M=b.current;if(L&&M){const W=D.clientX,z=D.clientY,F=L.getBoundingClientRect(),P=F.left+window.scrollX,K=F.top+window.scrollY,V=W-P,Z=z-K;M.style.left=`${V}px`,M.style.top=`${Z}px`}},[]),x=re.useCallback(D=>{D.preventDefault(),T(D),_(!0)},[]),I=d.history[v],C=I.category===wo.User?"right":"left",R=l(I);return re.useEffect(()=>{const D=()=>{_(!1)};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[]),N.jsx("div",{className:g.container,"data-chatbox-locator":ib.MessageBubble,"data-position":C,children:N.jsxs("div",{className:Xe(g.message,h),"data-position":C,children:[N.jsx("div",{className:g.avatar,children:t&&N.jsx(t,{data:I,position:C})}),N.jsxs("div",{className:g.main,children:[N.jsx("div",{className:g.sender,children:N.jsx(o,{data:I,position:C})}),N.jsxs("div",{ref:S,className:g.content,"data-category":I.category,"data-chatbox-locator":ib.MessageContent,onContextMenu:x,onClick:T,children:[N.jsx(r,{content:I.content,data:I,className:g.contentMain}),I.error&&N.jsx(n,{error:I.error,locStrings:f,className:g.error}),typeof I.duration=="number"&&typeof I.tokens=="number"&&N.jsx(a,{duration:I.duration,tokens:I.tokens,locStrings:f,className:g.status}),d.history.length>1&&N.jsx(i,{className:g.pagination,message:d,current:v,setCurrent:y}),N.jsx("div",{ref:b,className:g.contentMenuAnchor}),R.length>0&&N.jsx(fse,{items:R,hidden:!E,target:b,onItemClick:k,onDismiss:k,className:g.contextualMenu}),N.jsx("div",{className:g.actionBar,"data-chatbox-locator":ib.MessageActionBar,children:N.jsx(s,{data:I,locStrings:f,useMessageActions:u})})]})]})]})})}fz.displayName="DefaultMessageBubbleRenderer";const Eut=_r({container:{...Ye.margin("16px","0"),display:"flex",justifyContent:"flex-start",'&&[data-position="right"]':{justifyContent:"flex-end"},width:"100%"},message:{display:"flex",flexDirection:"row",'&&[data-position="right"]':{flexDirection:"row-reverse"},maxWidth:"calc(100% - 80px)"},avatar:{...Ye.flex(0,0,"auto")},main:{...Ye.flex(1,1,"auto"),display:"flex",flexDirection:"column",width:"100%"},sender:{...Ye.flex(0,0,"auto")},content:{...Ye.flex(1,1,"auto"),...Ye.borderRadius("4px"),position:"relative",boxSizing:"border-box",minWidth:"48px",wordBreak:"break-word",lineHeight:"22px","> p":{...Ye.margin(0)},[`&:hover > ${Gpe.MessageActionBar}`]:{display:"flex",visibility:"visible"},[`&&[data-category="${wo.System}"]`]:{color:Pt.colorNeutralForeground4},[`&&[data-category="${wo.Error}"]`]:{backgroundColor:Pt.colorPaletteRedBackground2,color:Pt.colorNeutralForeground1},[`&&[data-category="${wo.Chatbot}"]`]:{backgroundColor:Pt.colorNeutralBackground4,color:Pt.colorNeutralForeground1},[`&&[data-category="${wo.User}"]`]:{backgroundColor:Pt.colorBrandBackground2,color:Pt.colorNeutralForeground1}},contentMain:{...Ye.padding("12px","20px","12px","12px")},contextualMenu:{width:"auto",minWidth:"180px"},contentMenuAnchor:{position:"absolute",top:"0px",left:"0px"},error:{...Ye.padding("0px","20px","12px","12px")},pagination:{},status:{...Ye.borderTop("1px","solid",Pt.colorNeutralStroke1),...Ye.padding("0px","20px","0px","12px"),fontSize:"12px",fontStyle:"italic"},actionBar:{position:"absolute",right:"0px",top:"-32px",display:"none",justifyContent:"space-between"}});function l0e(e){const{message:t}=e;return N.jsx(N.Fragment,{children:t.history.map(r=>{const n={...t,history:[r]},o={...e,message:n};return N.jsx(fz,{...o},r.from)})})}l0e.displayName="SeparatedMessageBubbleRenderer";function u0e(e){const{locStrings:t,className:r}=e,n=Sut();return N.jsx("div",{className:Xe(n.sessionSplit,r),children:N.jsxs("span",{children:["--- ",t.SessionSplit_Desc," ---"]})})}u0e.displayName="DefaultSessionSplitRenderer";const Sut=_r({sessionSplit:{display:"flex",justifyContent:"center",height:"24px",color:Pt.colorNeutralForeground4}});function dz(e){const{locStrings:t,className:r}=e,n=wut();return N.jsxs(BNe,{horizontal:!0,verticalAlign:"center",className:r,children:[N.jsx("div",{className:n.hintTyping,children:t.Typing}),N.jsxs("div",{className:n.typingDots,children:[N.jsx("div",{className:n.typingDot}),N.jsx("div",{className:n.typingDot}),N.jsx("div",{className:n.typingDot})]})]})}dz.displayName="DefaultTypingIndicatorRenderer";const wut=_r({hintTyping:{...Ye.overflow("hidden"),width:"1px",height:"1px"},typingDots:{...Ye.transition("opacity","0.1s"),display:"flex",alignItems:"center",height:"22.5px"},typingDot:{...Ye.borderRadius("50%"),...Ye.margin("0","0","0","6px"),display:"inline-block",width:"6px",height:"6px",backgroundColor:Pt.colorNeutralStroke1,animationDuration:"1.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",animationName:{"0%":{transform:"scale(1)"},"16.67%":{transform:"scale(0)"},"33.33%":{transform:"scale(0)"},"50%":{transform:"scale(0)"},"66.67%":{transform:"scale(1)"},"83.33%":{transform:"scale(1)"},"100%":{transform:"scale(1)"}},"&:nth-child(1)":{...Ye.margin("0px")},"&:nth-child(2)":{animationDelay:"0.18s"},"&:nth-child(3)":{animationDelay:"0.36s"}}});function c0e(e){const{ActionRenderers:t}=e,r=kut();return!t||t.length<=0?N.jsx("div",{}):N.jsxs("div",{className:r.toolbar,children:[...t.map((n,o)=>N.jsx(n,{},o))]})}c0e.displayName="DefaultEditorToolbarRenderer";const kut=_r({toolbar:{display:"flex",justifyContent:"flex-end"}});function hz(e){const{EditorActionRenderers:t,EditorRenderer:r,EditorToolbarRenderer:n=c0e,disabled:o,initialContent:i,editorRef:s,isOthersTyping:a,locStrings:l,maxInputHeight:u,className:c,onEnterKeyPress:f,onInputContentChange:d}=e,h=Aut(),g=o||a;return N.jsxs("div",{className:Xe(h.input,c),children:[N.jsx("div",{className:h.editor,children:N.jsx(r,{editorRef:s,placeholder:l.Input_Placeholder,disabled:g,initialContent:i,maxHeight:u,className:h.editorInner,onEnterKeyPress:f,onChange:d})}),N.jsx("div",{className:h.editorToolbar,children:N.jsx(n,{ActionRenderers:t})})]})}hz.displayName="DefaultMessageInputRenderer";const Aut=_r({input:{...Ye.border("1px","solid",Pt.colorNeutralBackground5),...Ye.borderRadius("4px"),boxSizing:"border-box",display:"grid",gridTemplateRows:"1fr auto"},editor:{boxSizing:"border-box"},editorInner:{...Ye.border("0px"),boxSizing:"border-box"},editorToolbar:{boxSizing:"border-box",display:"flex",alignItems:"flex-end",justifyContent:"flex-end",height:"100%"}});function f0e(e){const{MessageAvatarRenderer:t,MessageContentRenderer:r,MessageErrorRenderer:n,MessageSenderRenderer:o,MessageBubbleRenderer:i=fz,SessionSplitRenderer:s=u0e,className:a,bubbleClassName:l,sessionSplitClassName:u,locStrings:c,messages:f,useMessageContextualMenuItems:d,useMessageActions:h}=e,g=xut();return N.jsx("div",{className:Xe(g.container,a),"data-chatbox-locator":ib.MessageList,children:f.map(v=>{switch(v.type){case mf.Message:return N.jsx(i,{MessageAvatarRenderer:t,MessageContentRenderer:r,MessageErrorRenderer:n,MessageSenderRenderer:o,locStrings:c,message:v,className:l,useMessageContextualMenuItems:d,useMessageActions:h},v.id);case mf.SessionSplit:return N.jsx(s,{locStrings:c,className:u},v.id);default:return N.jsx(re.Fragment,{},v.id)}})})}f0e.displayName="MessageListRenderer";const xut=_r({container:{boxSizing:"border-box"}}),kH=class kH extends re.PureComponent{render(){const{elements:t,deltaH:r,deltaW:n,scaleH:o,scaleW:i,className:s,elementClassName:a,renderElement:l}=this.props;return N.jsx("div",{className:s,children:t.map((u,c)=>{const f=(u.top-r)*o,d=(u.left-n)*i,h=u.height*o,g=u.width*i,v={top:f,left:d,height:h,width:g};return u.backgroundColor&&(v.backgroundColor=u.backgroundColor),l?l(u,c,a,v):N.jsx("div",{className:a,style:v},c)})})}};kH.displayName="MinimapOverview";let Uee=kH;_r({viewport:{display:"block",width:"100%",left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.15)"}});_r({container:{height:"100%",width:"100%",...Ye.overflow("hidden")},minimap:{position:"relative",width:"100%",height:"100%"},overview:{},minimapElement:{position:"absolute",backgroundColor:"#c292f9"}});_r({editor:{...Ye.padding("8px"),...Ye.border("1px","solid",Pt.colorNeutralBackground5),...Ye.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative",'&[data-disabled="true"]':{backgroundColor:Pt.colorNeutralBackgroundDisabled}},textarea:{...Ye.padding("0px"),...Ye.overflow("hidden","auto"),...Ye.borderWidth(0),...Ye.outline(0,"solid","transparent"),backgroundColor:"transparent",boxSizing:"border-box",resize:"none",appearance:"none",overflowWrap:"break-word",lineHeight:"24px",height:"24px",width:"100%",wordBreak:"break-all",color:Pt.colorNeutralForeground1,userSelect:"text"}});function Tut(e){return{}}const w5={},Iut={},d0e={},p_={},sb={},iM={},gg={},pz={},sM={},g_={},v_={},zd={},gz={},vz={},h0e={},p0e={},g0e={},v0e={},m0e={},y0e={},b0e={},Sx={},_0e={},E0e={},S0e={},w0e={},k0e={},Cut={},Nut={},Rut={},A0e={},Out={},x0e={},T0e={},I0e={},mz={},yz={},aM={},Dut={},Fut={},But={},Mut={},C0e={},N0e={},R0e={};var ft=function(e){const t=new URLSearchParams;t.append("code",e);for(let r=1;rn.type==="newline"||n.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Lpe(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Bpe||null,prettyErrors:t}}function Olt(e,t={}){const{lineCounter:r,prettyErrors:n}=Lpe(t),o=new sz(r==null?void 0:r.addNewLine),i=new iz(t),s=Array.from(i.compose(o.parse(e)));if(n&&r)for(const a of s)a.errors.forEach(yx(e,r)),a.warnings.forEach(yx(e,r));return s.length>0?s:Object.assign([],{empty:!0},i.streamInfo())}function jpe(e,t={}){const{lineCounter:r,prettyErrors:n}=Lpe(t),o=new sz(r==null?void 0:r.addNewLine),i=new iz(t);let s=null;for(const a of i.compose(o.parse(e),!0,e.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new Ch(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(s.errors.forEach(yx(e,r)),s.warnings.forEach(yx(e,r))),s}function Dlt(e,t,r){let n;typeof t=="function"?n=t:r===void 0&&t&&typeof t=="object"&&(r=t);const o=jpe(e,r);if(!o)return null;if(o.warnings.forEach(i=>ope(o.options.logLevel,i)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:n},r))}function Flt(e,t,r){let n=null;if(typeof t=="function"||Array.isArray(t)?n=t:r===void 0&&t&&(r=t),typeof r=="string"&&(r=r.length),typeof r=="number"){const o=Math.round(r);r=o<1?void 0:o>8?{indent:8}:{indent:o}}if(e===void 0){const{keepUndefined:o}=r??t??{};if(!o)return}return new b5(e,n,r).toString(r)}const Blt=Object.freeze(Object.defineProperty({__proto__:null,Alias:l5,CST:Clt,Composer:iz,Document:b5,Lexer:Fpe,LineCounter:Bpe,Pair:Fi,Parser:sz,Scalar:Jt,Schema:y5,YAMLError:nz,YAMLMap:ca,YAMLParseError:Ch,YAMLSeq:b1,YAMLWarning:wpe,isAlias:_p,isCollection:Vn,isDocument:Bv,isMap:Mv,isNode:go,isPair:Hn,isScalar:mn,isSeq:Lv,parse:Dlt,parseAllDocuments:Olt,parseDocument:jpe,stringify:Flt,visit:y1,visitAsync:a5},Symbol.toStringTag,{value:"Module"})),Mlt=/.*\.prompty$/,Z6=".prompty",_x="pfs-network-error",J6=(e,t)=>t.some(r=>e instanceof r);let zee,Hee;function Llt(){return zee||(zee=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function jlt(){return Hee||(Hee=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const eM=new WeakMap,j3=new WeakMap,w5=new WeakMap;function zlt(e){const t=new Promise((r,n)=>{const o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{r(Ex(e.result)),o()},s=()=>{n(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",s)});return w5.set(t,e),t}function Hlt(e){if(eM.has(e))return;const t=new Promise((r,n)=>{const o=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{r(),o()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});eM.set(e,t)}let tM={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return eM.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Ex(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function zpe(e){tM=e(tM)}function $lt(e){return jlt().includes(e)?function(...t){return e.apply(rM(this),t),Ex(this.request)}:function(...t){return Ex(e.apply(rM(this),t))}}function Plt(e){return typeof e=="function"?$lt(e):(e instanceof IDBTransaction&&Hlt(e),J6(e,Llt())?new Proxy(e,tM):e)}function Ex(e){if(e instanceof IDBRequest)return zlt(e);if(j3.has(e))return j3.get(e);const t=Plt(e);return t!==e&&(j3.set(e,t),w5.set(t,e)),t}const rM=e=>w5.get(e),qlt=["get","getKey","getAll","getAllKeys","count"],Wlt=["put","add","delete","clear"],z3=new Map;function $ee(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(z3.get(t))return z3.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,o=Wlt.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||qlt.includes(r)))return;const i=async function(s,...a){const l=this.transaction(s,o?"readwrite":"readonly");let u=l.store;return n&&(u=u.index(a.shift())),(await Promise.all([u[r](...a),o&&l.done]))[0]};return z3.set(t,i),i}zpe(e=>({...e,get:(t,r,n)=>$ee(t,r)||e.get(t,r,n),has:(t,r)=>!!$ee(t,r)||e.has(t,r)}));const Glt=["continue","continuePrimaryKey","advance"],Pee={},nM=new WeakMap,Hpe=new WeakMap,Klt={get(e,t){if(!Glt.includes(t))return e[t];let r=Pee[t];return r||(r=Pee[t]=function(...n){nM.set(this,Hpe.get(this)[t](...n))}),r}};async function*Vlt(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const r=new Proxy(t,Klt);for(Hpe.set(r,t),w5.set(r,rM(t));t;)yield r,t=await(nM.get(r)||t.continue()),nM.delete(r)}function qee(e,t){return t===Symbol.asyncIterator&&J6(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&J6(e,[IDBIndex,IDBObjectStore])}zpe(e=>({...e,get(t,r,n){return qee(t,r)?Vlt:e.get(t,r,n)},has(t,r){return qee(t,r)||e.has(t,r)}}));class Ult{constructor(){this.chatMessagesMap=new Map}async addChatMessage(t,r,n){const o=this.chatMessagesMap.get(r)||[];o.push({...n,flowFilePath:t,chatItemName:r}),this.chatMessagesMap.set(r,o)}async getChatMessages(t,r){return this.chatMessagesMap.get(r)||[]}async clearChatMessages(t){this.chatMessagesMap.clear()}}const oM=new Ult;class iM{constructor(){Be(this,"_errors");Be(this,"_summary");this._errors=[],this._summary=void 0}cleanup(){this._errors.length=0,this._summary=void 0}run(t){try{t()}catch(r){this._errors.push(r),this._summary=void 0}}summary(t){if(this._summary===void 0){if(this._errors.length===1)throw this._summary=this._errors[0];this._errors.length>1&&(this._summary=new AggregateError(this._errors,t))}if(this._summary!==void 0)throw this._summary}}function Ylt(e){const t=new iM;for(const r of e)t.run(()=>r.dispose());t.summary("[disposeAll] Encountered errors while disposing"),t.cleanup()}class $pe{constructor(){Be(this,"_disposed");Be(this,"_disposables");this._disposed=!1,this._disposables=[]}get disposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;try{Ylt(this._disposables)}finally{this._disposables.length=0}}}registerDisposable(t){t.disposed||(this._disposed?t.dispose():this._disposables.push(t))}}class az{constructor(t){Be(this,"_onDispose");Be(this,"_disposed");this._onDispose=t,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}}function Xlt(e){return e===null||typeof e!="object"?!1:typeof Reflect.get(e,"dispose")=="function"&&typeof Reflect.get(e,"disposed")=="boolean"}const Qlt=()=>{};class Sx{constructor(t){Be(this,"_onDispose");Be(this,"_onNext");Be(this,"_disposed");this._onDispose=(t==null?void 0:t.onDispose)??Qlt,this._onNext=t.onNext,this._disposed=!1}get disposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._onDispose())}next(t,r){this._disposed||this._onNext(t,r)}}const Wee={unsubscribe:()=>{}};class Zlt{constructor(t={}){Be(this,"ARRANGE_THRESHOLD");Be(this,"_disposed");Be(this,"_items");Be(this,"_subscribingCount");this.ARRANGE_THRESHOLD=t.ARRANGE_THRESHOLD??16,this._disposed=!1,this._items=[],this._subscribingCount=0}get size(){return this._subscribingCount}get disposed(){return this._disposed}dispose(){if(this._disposed)return;this._disposed=!0;const t=new iM,r=this._items;for(let n=0;no.subscriber.dispose()))}r.length=0,this._subscribingCount=0,t.summary("Encountered errors while disposing."),t.cleanup()}notify(t,r){if(this._disposed)return;const n=new iM,o=this._items;for(let i=0,s=o.length;ia.subscriber.next(t,r))}n.summary("Encountered errors while notifying subscribers."),n.cleanup()}subscribe(t){if(t.disposed)return Wee;if(this.disposed)return t.dispose(),Wee;const r={subscriber:t,unsubscribed:!1};return this._items.push(r),this._subscribingCount+=1,{unsubscribe:()=>{r.unsubscribed||(r.unsubscribed=!0,this._subscribingCount-=1,this._arrange())}}}_arrange(){const t=this._items;if(t.length>=this.ARRANGE_THRESHOLD&&this._subscribingCount*2<=t.length){const r=[];for(let n=0;n{},Gee={unsubscribe:Ppe},Kee={unobserve:Ppe},Jlt=e=>e===null||typeof e!="object"?!1:typeof Reflect.get(e,"dispose")=="function"&&typeof Reflect.get(e,"disposed")=="boolean"&&typeof Reflect.get(e,"subscribe")=="function"&&typeof Reflect.get(e,"equals")=="function"&&typeof Reflect.get(e,"getSnapshot")=="function"&&typeof Reflect.get(e,"next")=="function",eut=(e,t)=>Object.is(e,t);class lz extends $pe{constructor(r,n={}){super();Be(this,"equals");Be(this,"_delay");Be(this,"_subscribers");Be(this,"_value");Be(this,"_updateTick");Be(this,"_notifyTick");Be(this,"_lastNotifiedValue");Be(this,"_timer");const{equals:o=eut}=n;this._delay=Math.max(0,Number(n.delay)||0),this._subscribers=new Zlt,this._value=r,this._updateTick=0,this._notifyTick=0,this._lastNotifiedValue=void 0,this._timer=void 0,this.equals=o}dispose(){this.disposed||(super.dispose(),this._flush(),this._subscribers.dispose())}getSnapshot(){return this._value}next(r,n){if(this.disposed){if((n==null?void 0:n.strict)??!0)throw new RangeError(`Don't update a disposed observable. value: ${String(r)}.`);return}!((n==null?void 0:n.force)??!1)&&this.equals(r,this._value)||(this._value=r,this._updateTick+=1,this._notify())}subscribe(r){if(r.disposed)return Gee;const n=this._lastNotifiedValue,o=this._value;return this.disposed?(r.next(o,n),r.dispose(),Gee):(this._flush(),r.next(o,n),this._subscribers.subscribe(r))}_flush(){this._notifyTick{try{this._notifyImmediate()}finally{this._timer=void 0}this._notify()},this._delay))}}_notifyImmediate(){const r=this._lastNotifiedValue,n=this._value;this._lastNotifiedValue=n,this._notifyTick=this._updateTick,this._subscribers.notify(n,r)}}const tut=(e,t)=>e===t;class qpe extends lz{constructor(t={}){const{start:r=0,delay:n}=t;super(r,{delay:n,equals:tut})}tick(t){this.next(this._value+1,t)}observe(t,r){if(this.disposed){if((r==null?void 0:r.strict)??!0)throw new RangeError("[Ticker.observe] the ticker has been disposed.");return Kee}if(t.disposed)return Kee;const n=new Sx({onNext:()=>this.tick()}),o=t.subscribe(n),i=new az(()=>{n.dispose(),o.unsubscribe()});return this.registerDisposable(i),{unobserve:()=>i.dispose()}}}class uz{constructor(t){Be(this,"_observable");Be(this,"getSnapshot",()=>this._observable.getSnapshot());Be(this,"getServerSnapshot",()=>this._observable.getSnapshot());Be(this,"subscribeStateChange",t=>{const r=new Sx({onNext:()=>t()}),n=this._observable.subscribe(r),o=new az(()=>{r.dispose(),n.unsubscribe()});return this._observable.registerDisposable(o),()=>o.dispose()});this._observable=t}static fromObservables(t,r,n){const o=new qpe;for(const l of t)o.observe(l);const i=()=>{const l=t.map(u=>u.getSnapshot());return r(l)},s=new lz(i(),n);s.registerDisposable(o);const a=new Sx({onNext:()=>s.next(i())});return o.subscribe(a),new uz(s)}get disposed(){return this._observable.disposed}dispose(){this._observable.disposed||this._observable.dispose()}registerDisposable(t){this._observable.registerDisposable(t)}subscribe(t){return this._observable.subscribe(t)}}class Vo extends lz{constructor(){super(...arguments);Be(this,"getSnapshot",()=>super.getSnapshot());Be(this,"getServerSnapshot",()=>super.getSnapshot());Be(this,"setState",r=>{const n=this.getSnapshot(),o=r(n);super.next(o)});Be(this,"subscribeStateChange",r=>{const n=new Sx({onNext:()=>r()}),o=super.subscribe(n),i=new az(()=>{n.dispose(),o.unsubscribe()});return this.registerDisposable(i),()=>i.dispose()})}}class Wpe extends $pe{constructor(){super();Be(this,"_tickerMap");this._tickerMap=new Map}dispose(){if(!this.disposed){super.dispose();for(const r of Reflect.ownKeys(this))if(typeof r=="string"&&r.endsWith("$")){const n=this[r];Xlt(n)&&n.dispose()}for(const r of this._tickerMap.values())r.ticker.dispose();this._tickerMap.clear()}}ticker(r){const n=Array.from(new Set(r)).sort(),o=n.join("|");let i=this._tickerMap.get(o);if(i===void 0){const s=new qpe;i={keys:n,ticker:s},this.registerDisposable(s),this._tickerMap.set(o,i);for(const a of n){const l=this[a];if(!Jlt(l)){console.warn("[ViewModel.ticker] not an observable, key:",a,"val:",l);continue}s.observe(l)}}return i}}function rut(e,t,r){const n=t(),[{inst:o},i]=A.useState({inst:{value:n,getSnapshot:t}});return A.useLayoutEffect(()=>{o.value=n,o.getSnapshot=t,H3(o)&&i({inst:o})},[e,n,t]),A.useEffect(()=>(H3(o)&&i({inst:o}),e(()=>{H3(o)&&i({inst:o})})),[e]),A.useDebugValue(n),n}function H3(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!Object.is(r,n)}catch{return!0}}function nut(e,t,r){return t()}const out=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iut=out?rut:nut,Vee=A.useSyncExternalStore,Gpe=Vee||iut;function sut(e){const{getSnapshot:t,getServerSnapshot:r,subscribeStateChange:n}=e;return Gpe(n,t,r)}function oo(e){const{getSnapshot:t,getServerSnapshot:r,subscribeStateChange:n}=e;return Gpe(n,t,r)}var wo=(e=>(e.System="system",e.Error="error",e.Chatbot="chatbot",e.User="user",e))(wo||{}),mf=(e=>(e.Message="message",e.SessionSplit="session-split",e))(mf||{}),Ul=(e=>(e[e.PENDING=0]="PENDING",e[e.COPYING=1]="COPYING",e[e.COPIED=2]="COPIED",e[e.FAILED=3]="FAILED",e))(Ul||{}),ib=(e=>(e.MessageBubble="chatbox-message-bubble",e.MessageContent="chatbox-message-content",e.MessageList="chatbox-message-list",e.MessageActionBar="chatbox-message-action-bar",e))(ib||{}),Kpe=(e=>(e.MessageBubble='[data-chatbox-locator="chatbox-message-bubble"]',e.MessageContent='[data-chatbox-locator="chatbox-message-content"]',e.MessageList='[data-chatbox-locator="chatbox-message-list"]',e.MessageActionBar='[data-chatbox-locator="chatbox-message-action-bar"]',e))(Kpe||{});const cz={CopyToClipboard:"Copy to clipboard",CopyToClipboard_Copying:"Copying...",CopyToClipboard_Copied:"Copied!",CopyToClipboard_Failed:"Failed!",Header_Clear:"Click to clear all chat histories",Header_Close:"Click to close chat box",Header_EnterFullScreen:"Click to enter full screen mode",Header_ExitFullScreen:"Click to exit full screen mode",Header_Title:"Chat",Input_Placeholder:"Input anything to test...",MessageError_HideDetail:"Hide Detail",MessageError_ShowDetail:"Show Detail",MessageStatus_TimeSpentDesc:"time spent",MessageStatus_TimeSpentDscCapitalized:"Time spent",MessageStatus_TimeSpent_Unit:"sec",MessageStatus_TokensDesc:"Total tokens for generating this",MessageStatus_TokensUint:"tokens",SessionSplit_Desc:"Your session start from here.",Tooltip_Bottom:"Only default variants will be used for chat, if you want to test variants please try bulk test. For chatbot and test app bot, it will only show the chat output.",Tooltip_TotalTokens:"Total tokens",Typing:"Generating chat output for you"};class Vpe{constructor(t){this.calcContentForCopy=f=>this.calcContentForCopy$.getSnapshot()(f),this.monitorInputContentChange=f=>this.inputContentChangeTick$.subscribeStateChange(f),this.notifyInputContentChange=()=>{this.inputContentChangeTick$.setState(f=>f+1)},this.sendMessage=f=>{const d=this.editorRef.current;if(!d){console.log("!!!editorRef is not mounted.");return}const h=f??d.getContent(),g=this.sendMessage$.getSnapshot(),y=this.makeUserMessage$.getSnapshot()(h);this.messages$.setState(E=>[...E,y]),d.clear(),this.isOthersTyping$.next(!0),g(h,this,y).then(E=>{E!==void 0&&this.messages$.setState(_=>[..._,E])}).finally(()=>{this.isOthersTyping$.next(!1)})},this.setCalcContentForCopy=f=>{this.calcContentForCopy$.next(f)},this.setMakeUserMessage=f=>{this.makeUserMessage$.next(f)},this.setSendMessage=f=>{this.sendMessage$.next(f)},this.sessionSplit=f=>{const d={id:Ni.v4(),type:mf.SessionSplit,history:[{category:wo.System,from:"system",content:f??"",timestamp:new Date().toISOString()}]};return this.messages$.setState(h=>[...h,d]),d};const{alias:r="",initialDisabled:n=!1,initialMessages:o=[],locStrings:i=cz,calcContentForCopy:s=f=>typeof f.content=="string"?f.content:JSON.stringify(f.content),makeUserMessage:a=f=>({id:Ni.v4(),type:mf.Message,history:[{category:wo.User,from:this.alias$.getSnapshot(),timestamp:new Date().toISOString(),content:f}]}),sendMessage:l=async f=>({id:Ni.v4(),type:mf.Message,history:[{category:wo.Chatbot,from:"chatbot",timestamp:new Date().toISOString(),content:f}]})}=t;this.editorRef={current:null};const u=new Vo(0),c=uz.fromObservables([u],()=>{var f;return(f=this.editorRef.current)==null?void 0:f.isEmpty()});this.alias$=new Vo(r),this.disabled$=new Vo(n),this.inputContentChangeTick$=u,this.isEditorEmpty$=c,this.isOthersTyping$=new Vo(!1),this.locStrings$=new Vo(i),this.messages$=new Vo(o),this.calcContentForCopy$=new Vo(s),this.makeUserMessage$=new Vo(a),this.sendMessage$=new Vo(l)}}const aut=new Vpe({sendMessage:()=>Promise.resolve({id:Date.now(),type:mf.Message,history:[{category:wo.System,from:"system",timestamp:new Date().toISOString(),content:"sendMessage not implemented!"}]})}),Upe=re.createContext({viewmodel:aut}),Ol=()=>re.useContext(Upe);function fz(e){const t=A.useRef(e);return A.useLayoutEffect(()=>{t.current=e}),A.useCallback((...r)=>{const n=t.current;return n(...r)},[])}function Ype(){const{viewmodel:e}=Ol();return sut(e.isEditorEmpty$)??!0}function Xpe(e,t){const[r,n]=re.useState(Ul.PENDING),o=ir(s=>{if(r===Ul.PENDING){n(Ul.COPYING);try{const a=t(s);Bhe(a),n(Ul.COPIED)}catch{n(Ul.FAILED)}}});return re.useEffect(()=>{if(r===Ul.COPIED||r===Ul.FAILED){let s=setTimeout(()=>{s=void 0,n(Ul.PENDING)},1500);return()=>{s&&clearTimeout(s)}}},[r]),re.useMemo(()=>({key:"copy",group:2,icon:r===Ul.PENDING?N.jsx(Wae,{}):N.jsx(Gae,{}),tooltip:N.jsx(N.Fragment,{children:e.CopyToClipboard}),disabled:r!==Ul.PENDING,onClick:o,condition:s=>s.category===wo.Chatbot||s.category===wo.User||s.category===wo.Error}),[e,r,o])}vr({copyButton:{cursor:"pointer"}});const Qpe=e=>{const{className:t,disabled:r,icon:n=N.jsx(Y3e,{}),title:o,onSend:i}=e;return N.jsx(Tn,{as:"button",appearance:"transparent",size:"medium",title:o,className:t,icon:n,disabled:r,onClick:i})};Qpe.displayName="SendButton";const lut={Add:"Add",AddAnImage:"Add an image",PasteImageOrLinkHere:"Paste image or link here",UploadFromThisDevice:"Upload from this device"},uut=e=>{const{src:t,alt:r,loading:n=!1,width:o,height:i,styles:s}=e;return t?n?N.jsx("div",{children:"Loading..."}):N.jsx("div",{className:s==null?void 0:s.root,children:N.jsx("img",{className:s==null?void 0:s.image,src:t,alt:r,width:o,height:i})}):N.jsx("div",{children:"This image can not be previewed."})},cut=e=>{const{src:t,alt:r,visible:n,loading:o=!1,width:i,height:s,onDismiss:a}=e,l=fut(),u=N.jsxs("div",{className:l.container,children:[N.jsxs("div",{className:l.header,children:[N.jsx("h2",{className:l.heading,children:"Preview"}),N.jsx(Tn,{as:"button",appearance:"transparent",icon:N.jsx(Vae,{}),className:l.dismissBtn,onClick:a})]}),N.jsx("div",{className:l.main,children:N.jsx(uut,{src:t,alt:r,loading:o,width:i,height:s,styles:{image:l.image}})})]});return N.jsx(gse,{isOpen:n,isBlocking:!1,onDismiss:a,children:u})},fut=vr({container:{display:"flex",flexDirection:"column",flexWrap:"nowrap",...Xe.padding("16px")},header:{...Xe.flex(0,0,"auto"),display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"space-between",marginBottom:"20px"},heading:{...Xe.margin(0),fontWeight:On.semibold,fontSize:"inherit"},dismissBtn:{"&&":{fontSize:"16px",lineHeight:"16px",height:"16px",width:"16px",color:Pt.colorNeutralStroke1}},main:{...Xe.overflow("auto"),display:"flex",justifyContent:"center",alignItems:"center"},image:{width:"auto",height:"auto",maxWidth:"60vw",maxHeight:"60vh"}}),Uee="48px",Zpe="__MASK_SELECTOR_CLASS_NAME__",dut=e=>{const{image:t,alt:r,isReadonly:n,onClickDelete:o}=e,[i,s]=re.useState(!1),a=hut(),l=re.useMemo(()=>{if(t)return typeof t=="string"?t:URL.createObjectURL(t)},[t]),u=re.useCallback(()=>{s(f=>!f)},[]),c=l||"";return N.jsxs("div",{className:Ve(a.root,n?a.readonlyRoot:void 0),children:[N.jsxs("div",{className:a.imageContainer,children:[N.jsx("img",{decoding:"async",className:a.image,src:c,alt:r}),N.jsx("div",{"aria-hidden":!0,className:Ve(a.mask,Zpe),onClick:u,role:"button",children:N.jsx(Uae,{})})]}),!n&&N.jsx(Tn,{as:"button",className:a.closeButton,icon:N.jsx(Kae,{}),onClick:o}),N.jsx(cut,{src:c,alt:r||"",visible:i,onDismiss:u})]})},hut=vr({root:{boxSizing:"border-box",display:"flex",height:"32px",width:"80px",...Xe.border("1px","solid",Pt.colorNeutralStroke2),...Xe.borderRadius("4px")},readonlyRoot:{width:"48px"},imageContainer:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",width:Uee,[`:hover .${Zpe}`]:{visibility:"visible"}},image:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto"},mask:{visibility:"hidden",cursor:"pointer",position:"absolute",top:0,left:0,width:`calc(${Uee} - 2px)`,height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",color:Pt.colorNeutralForegroundStaticInverted,...Xe.borderRadius("4px",0,0,"4px")},closeButton:{width:"32px",...Xe.border(0)}}),Jpe=re.forwardRef((e,t)=>N.jsx(Tn,{...e,ref:t,as:"button",appearance:"transparent",size:"medium",icon:N.jsx(qae,{})}));Jpe.displayName="UploadPopoverTrigger";const put=(e,...t)=>{const r={...e};for(const n of Object.keys(e))r[n]=Ve(e[n],...t.map(o=>o==null?void 0:o[n]));return r},e0e=re.forwardRef(({isUploading:e,disabled:t,errorMessage:r,trigger:n=N.jsx(Jpe,{}),locStrings:o=lut,styles:i,events:s,onUpload:a,onRenderImagePreview:l},u)=>{const c=put(gut(),i),{onDelete:f,onInputBlur:d,onPaste:h,onLocalUpload:g}=s??{};re.useImperativeHandle(u,()=>({open(){y(!0)},close(){y(!1)},reset:()=>{x()},retrieve:()=>S}));const[v,y]=re.useState(!1),[E,_]=re.useState(""),[S,b]=re.useState(void 0),k=re.useRef(null),T=re.useCallback((M,W)=>{y(W.open||!1)},[]),x=re.useCallback(()=>{_(""),b(void 0),k.current&&(k.current.value="")},[]),I=re.useCallback(M=>{const W=M[0];b(W),h==null||h(W)},[h]),C=re.useCallback(M=>{M.clipboardData.files&&I&&I(M.clipboardData.files)},[I]),R=re.useCallback(()=>{d==null||d(E),b(E)},[E,d]),D=re.useCallback(()=>{S&&a(S)},[S,a]),L=re.useMemo(()=>l?l({cachedImage:S,customerInputContent:E,isReadonly:t||e||!1}):N.jsx(dut,{image:S||E,alt:E||"",isReadonly:e,onClickDelete:()=>{x(),f==null||f()}}),[E,S,x,t,e,f,l]);return N.jsxs(oue,{positioning:"above-end",open:v,onOpenChange:T,children:[N.jsx(r7,{disableButtonEnhancement:!0,children:n}),N.jsxs(nue,{className:c.attachUploadPopover,children:[N.jsxs("div",{className:c.attachUploadHeader,children:[N.jsx("span",{children:o.AddAnImage}),N.jsx(Tn,{as:"button",disabled:t,appearance:"transparent",icon:N.jsx(Vae,{}),onClick:()=>{y(!1)}})]}),N.jsxs("div",{className:c.attachUploadInputWrapper,children:[S?L:N.jsx(i7,{className:c.attachUploadInput,value:E,disabled:t,placeholder:o.PasteImageOrLinkHere,onChange:(M,W)=>{b(void 0),_(W.value)},onPaste:C,onBlur:R}),N.jsx(Tn,{as:"button",disabled:t||e||!S&&!E,className:c.addButton,onClick:D,children:e?N.jsx(tE,{size:"tiny"}):o.Add})]}),r&&N.jsx("div",{className:c.errorMessage,children:r}),N.jsx("input",{tabIndex:-1,"aria-hidden":!0,ref:k,disabled:t,className:c.invisibleFileInput,onChange:M=>{var z;const W=(z=M.target.files)==null?void 0:z[0];W&&(g==null||g(W)),b(W)},type:"file",accept:"image/*"}),N.jsx("div",{className:c.triggerUploadButton,children:N.jsx(Tn,{as:"button",disabled:t,appearance:"transparent",icon:N.jsx(z3e,{}),onClick:()=>{var M;(M=k.current)==null||M.click()},children:o.UploadFromThisDevice})})]})]})});e0e.displayName="UploadPopover";const gut=vr({attachUploadPopover:{width:"400px",backgroundColor:Pt.colorNeutralBackground1,...Xe.padding("12px")},attachUploadHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",fontWeight:500,fontSize:"16px",lineHeight:"22px"},attachUploadInputWrapper:{marginTop:"8px",display:"flex",columnGap:"8px",justifyContent:"space-between"},attachUploadInput:{flexGrow:1},addButton:{minWidth:"52px"},errorMessage:{color:Pt.colorPaletteRedBackground3},invisibleFileInput:{display:"none"},triggerUploadButton:{marginTop:"8px",display:"flex",justifyContent:"space-between"}}),t0e=()=>N.jsx("div",{});t0e.displayName="DefaultInputValidationRenderer";const vut=()=>N.jsx(N.Fragment,{});function r0e(e){const{content:t,className:r}=e,n=mut(),o=Ve(n.content,r);if(typeof t=="string")return N.jsx("p",{className:o,children:t});const i=JSON.stringify(t,null,2);return N.jsx("pre",{className:o,children:i})}r0e.displayName="DefaultMessageContentRenderer";const mut=vr({content:{...Xe.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces"}});function n0e(e){const{error:t,locStrings:r,className:n}=e,[o,i]=re.useState(!1),s=yut(),a=Ve(s.errorMessageDetail,!o&&s.errorMessageDetailHidden);return N.jsxs("div",{className:n,children:[N.jsx(Ub,{onClick:()=>i(l=>!l),children:o?r.MessageError_HideDetail:r.MessageError_ShowDetail}),N.jsx("p",{className:a,children:t})]})}n0e.displayName="DefaultMessageErrorRenderer";const yut=vr({errorMessageDetail:{...Xe.margin("8px","0","0","0"),...Xe.borderTop("1px","solid",Pt.colorPaletteDarkRedBorderActive),wordBreak:"break-word",whiteSpace:"break-spaces"},errorMessageDetailHidden:{display:"none"}}),but=()=>re.useMemo(()=>[],[]);function o0e(e){const{useMessageActions:t=but,data:r,className:n}=e,o=t(r),i=_ut(),s=re.useMemo(()=>{const u=o.filter(f=>!f.condition||f.condition(r)).sort((f,d)=>f.group-d.group),c=[];for(let f=0,d;f0))return N.jsx(N.Fragment,{});const l=[];for(let u=0;uy(r)},d)},d))}u+1{r>0&&o(r-1)},a=()=>{r=z?W:""+Array(z+1-P.length).join(F)+W},b={s:S,z:function(W){var z=-W.utcOffset(),F=Math.abs(z),P=Math.floor(F/60),K=F%60;return(z<=0?"+":"-")+S(P,2,"0")+":"+S(K,2,"0")},m:function W(z,F){if(z.date()1)return W(Z[0])}else{var J=z.name;T[J]=z,K=J}return!P&&K&&(k=K),K||!P&&k},R=function(W,z){if(I(W))return W.clone();var F=typeof z=="object"?z:{};return F.date=W,F.args=arguments,new L(F)},D=b;D.l=C,D.i=I,D.w=function(W,z){return R(W,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var L=function(){function W(F){this.$L=C(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[x]=!0}var z=W.prototype;return z.parse=function(F){this.$d=function(P){var K=P.date,V=P.utc;if(K===null)return new Date(NaN);if(D.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var Z=K.match(y);if(Z){var J=Z[2]-1||0,ee=(Z[7]||"0").substring(0,3);return V?new Date(Date.UTC(Z[1],J,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,ee)):new Date(Z[1],J,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,ee)}}return new Date(K)}(F),this.init()},z.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},z.$utils=function(){return D},z.isValid=function(){return this.$d.toString()!==v},z.isSame=function(F,P){var K=R(F);return this.startOf(P)<=K&&K<=this.endOf(P)},z.isAfter=function(F,P){return R(F){const{duration:t,tokens:r,locStrings:n,className:o}=e,i=t.toFixed(2).replace(/\.?0*$/,"");return N.jsxs("div",{className:o,children:[r>0&&N.jsxs(re.Fragment,{children:[`${n.MessageStatus_TokensDesc}: `,N.jsx("b",{children:r}),` ${n.MessageStatus_TokensUint}, `]}),`${r>0?n.MessageStatus_TimeSpentDesc:n.MessageStatus_TimeSpentDscCapitalized}: `,N.jsx("b",{children:i}),` ${n.MessageStatus_TimeSpent_Unit}`]})};l0e.displayName="DefaultMessageStatusRenderer";const kut=[],Aut=e=>kut;function dz(e){const{MessageAvatarRenderer:t,MessageContentRenderer:r=r0e,MessageErrorRenderer:n=n0e,MessageSenderRenderer:o=a0e,MessagePaginationRenderer:i=i0e,MessageActionBarRenderer:s=o0e,MessageStatusRenderer:a=l0e,useMessageContextualMenuItems:l=Aut,useMessageActions:u,initialPage:c=-1,locStrings:f,message:d,className:h}=e,g=xut(),[v,y]=re.useState((c%d.history.length+d.history.length)%d.history.length),[E,_]=re.useState(!1),S=re.useRef(null),b=re.useRef(null),k=re.useCallback(()=>{_(!1)},[]),T=re.useCallback(D=>{const L=S.current,M=b.current;if(L&&M){const W=D.clientX,z=D.clientY,F=L.getBoundingClientRect(),P=F.left+window.scrollX,K=F.top+window.scrollY,V=W-P,Z=z-K;M.style.left=`${V}px`,M.style.top=`${Z}px`}},[]),x=re.useCallback(D=>{D.preventDefault(),T(D),_(!0)},[]),I=d.history[v],C=I.category===wo.User?"right":"left",R=l(I);return re.useEffect(()=>{const D=()=>{_(!1)};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[]),N.jsx("div",{className:g.container,"data-chatbox-locator":ib.MessageBubble,"data-position":C,children:N.jsxs("div",{className:Ve(g.message,h),"data-position":C,children:[N.jsx("div",{className:g.avatar,children:t&&N.jsx(t,{data:I,position:C})}),N.jsxs("div",{className:g.main,children:[N.jsx("div",{className:g.sender,children:N.jsx(o,{data:I,position:C})}),N.jsxs("div",{ref:S,className:g.content,"data-category":I.category,"data-chatbox-locator":ib.MessageContent,onContextMenu:x,onClick:T,children:[N.jsx(r,{content:I.content,data:I,className:g.contentMain}),I.error&&N.jsx(n,{error:I.error,locStrings:f,className:g.error}),typeof I.duration=="number"&&typeof I.tokens=="number"&&N.jsx(a,{duration:I.duration,tokens:I.tokens,locStrings:f,className:g.status}),d.history.length>1&&N.jsx(i,{className:g.pagination,message:d,current:v,setCurrent:y}),N.jsx("div",{ref:b,className:g.contentMenuAnchor}),R.length>0&&N.jsx(dse,{items:R,hidden:!E,target:b,onItemClick:k,onDismiss:k,className:g.contextualMenu}),N.jsx("div",{className:g.actionBar,"data-chatbox-locator":ib.MessageActionBar,children:N.jsx(s,{data:I,locStrings:f,useMessageActions:u})})]})]})]})})}dz.displayName="DefaultMessageBubbleRenderer";const xut=vr({container:{...Xe.margin("16px","0"),display:"flex",justifyContent:"flex-start",'&&[data-position="right"]':{justifyContent:"flex-end"},width:"100%"},message:{display:"flex",flexDirection:"row",'&&[data-position="right"]':{flexDirection:"row-reverse"},maxWidth:"calc(100% - 80px)"},avatar:{...Xe.flex(0,0,"auto")},main:{...Xe.flex(1,1,"auto"),display:"flex",flexDirection:"column",width:"100%"},sender:{...Xe.flex(0,0,"auto")},content:{...Xe.flex(1,1,"auto"),...Xe.borderRadius("4px"),position:"relative",boxSizing:"border-box",minWidth:"48px",wordBreak:"break-word",lineHeight:"22px","> p":{...Xe.margin(0)},[`&:hover > ${Kpe.MessageActionBar}`]:{display:"flex",visibility:"visible"},[`&&[data-category="${wo.System}"]`]:{color:Pt.colorNeutralForeground4},[`&&[data-category="${wo.Error}"]`]:{backgroundColor:Pt.colorPaletteRedBackground2,color:Pt.colorNeutralForeground1},[`&&[data-category="${wo.Chatbot}"]`]:{backgroundColor:Pt.colorNeutralBackground4,color:Pt.colorNeutralForeground1},[`&&[data-category="${wo.User}"]`]:{backgroundColor:Pt.colorBrandBackground2,color:Pt.colorNeutralForeground1}},contentMain:{...Xe.padding("12px","20px","12px","12px")},contextualMenu:{width:"auto",minWidth:"180px"},contentMenuAnchor:{position:"absolute",top:"0px",left:"0px"},error:{...Xe.padding("0px","20px","12px","12px")},pagination:{},status:{...Xe.borderTop("1px","solid",Pt.colorNeutralStroke1),...Xe.padding("0px","20px","0px","12px"),fontSize:"12px",fontStyle:"italic"},actionBar:{position:"absolute",right:"0px",top:"-32px",display:"none",justifyContent:"space-between"}});function u0e(e){const{message:t}=e;return N.jsx(N.Fragment,{children:t.history.map(r=>{const n={...t,history:[r]},o={...e,message:n};return N.jsx(dz,{...o},r.from)})})}u0e.displayName="SeparatedMessageBubbleRenderer";function c0e(e){const{locStrings:t,className:r}=e,n=Tut();return N.jsx("div",{className:Ve(n.sessionSplit,r),children:N.jsxs("span",{children:["--- ",t.SessionSplit_Desc," ---"]})})}c0e.displayName="DefaultSessionSplitRenderer";const Tut=vr({sessionSplit:{display:"flex",justifyContent:"center",height:"24px",color:Pt.colorNeutralForeground4}});function hz(e){const{locStrings:t,className:r}=e,n=Iut();return N.jsxs(HNe,{horizontal:!0,verticalAlign:"center",className:r,children:[N.jsx("div",{className:n.hintTyping,children:t.Typing}),N.jsxs("div",{className:n.typingDots,children:[N.jsx("div",{className:n.typingDot}),N.jsx("div",{className:n.typingDot}),N.jsx("div",{className:n.typingDot})]})]})}hz.displayName="DefaultTypingIndicatorRenderer";const Iut=vr({hintTyping:{...Xe.overflow("hidden"),width:"1px",height:"1px"},typingDots:{...Xe.transition("opacity","0.1s"),display:"flex",alignItems:"center",height:"22.5px"},typingDot:{...Xe.borderRadius("50%"),...Xe.margin("0","0","0","6px"),display:"inline-block",width:"6px",height:"6px",backgroundColor:Pt.colorNeutralStroke1,animationDuration:"1.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",animationName:{"0%":{transform:"scale(1)"},"16.67%":{transform:"scale(0)"},"33.33%":{transform:"scale(0)"},"50%":{transform:"scale(0)"},"66.67%":{transform:"scale(1)"},"83.33%":{transform:"scale(1)"},"100%":{transform:"scale(1)"}},"&:nth-child(1)":{...Xe.margin("0px")},"&:nth-child(2)":{animationDelay:"0.18s"},"&:nth-child(3)":{animationDelay:"0.36s"}}});function f0e(e){const{ActionRenderers:t}=e,r=Cut();return!t||t.length<=0?N.jsx("div",{}):N.jsxs("div",{className:r.toolbar,children:[...t.map((n,o)=>N.jsx(n,{},o))]})}f0e.displayName="DefaultEditorToolbarRenderer";const Cut=vr({toolbar:{display:"flex",justifyContent:"flex-end"}});function pz(e){const{EditorActionRenderers:t,EditorRenderer:r,EditorToolbarRenderer:n=f0e,disabled:o,initialContent:i,editorRef:s,isOthersTyping:a,locStrings:l,maxInputHeight:u,className:c,onEnterKeyPress:f,onInputContentChange:d}=e,h=Nut(),g=o||a;return N.jsxs("div",{className:Ve(h.input,c),children:[N.jsx("div",{className:h.editor,children:N.jsx(r,{editorRef:s,placeholder:l.Input_Placeholder,disabled:g,initialContent:i,maxHeight:u,className:h.editorInner,onEnterKeyPress:f,onChange:d})}),N.jsx("div",{className:h.editorToolbar,children:N.jsx(n,{ActionRenderers:t})})]})}pz.displayName="DefaultMessageInputRenderer";const Nut=vr({input:{...Xe.border("1px","solid",Pt.colorNeutralBackground5),...Xe.borderRadius("4px"),boxSizing:"border-box",display:"grid",gridTemplateRows:"1fr auto"},editor:{boxSizing:"border-box"},editorInner:{...Xe.border("0px"),boxSizing:"border-box"},editorToolbar:{boxSizing:"border-box",display:"flex",alignItems:"flex-end",justifyContent:"flex-end",height:"100%"}});function d0e(e){const{MessageAvatarRenderer:t,MessageContentRenderer:r,MessageErrorRenderer:n,MessageSenderRenderer:o,MessageBubbleRenderer:i=dz,SessionSplitRenderer:s=c0e,className:a,bubbleClassName:l,sessionSplitClassName:u,locStrings:c,messages:f,useMessageContextualMenuItems:d,useMessageActions:h}=e,g=Rut();return N.jsx("div",{className:Ve(g.container,a),"data-chatbox-locator":ib.MessageList,children:f.map(v=>{switch(v.type){case mf.Message:return N.jsx(i,{MessageAvatarRenderer:t,MessageContentRenderer:r,MessageErrorRenderer:n,MessageSenderRenderer:o,locStrings:c,message:v,className:l,useMessageContextualMenuItems:d,useMessageActions:h},v.id);case mf.SessionSplit:return N.jsx(s,{locStrings:c,className:u},v.id);default:return N.jsx(re.Fragment,{},v.id)}})})}d0e.displayName="MessageListRenderer";const Rut=vr({container:{boxSizing:"border-box"}}),AH=class AH extends re.PureComponent{render(){const{elements:t,deltaH:r,deltaW:n,scaleH:o,scaleW:i,className:s,elementClassName:a,renderElement:l}=this.props;return N.jsx("div",{className:s,children:t.map((u,c)=>{const f=(u.top-r)*o,d=(u.left-n)*i,h=u.height*o,g=u.width*i,v={top:f,left:d,height:h,width:g};return u.backgroundColor&&(v.backgroundColor=u.backgroundColor),l?l(u,c,a,v):N.jsx("div",{className:a,style:v},c)})})}};AH.displayName="MinimapOverview";let Yee=AH;vr({viewport:{display:"block",width:"100%",left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.15)"}});vr({container:{height:"100%",width:"100%",...Xe.overflow("hidden")},minimap:{position:"relative",width:"100%",height:"100%"},overview:{},minimapElement:{position:"absolute",backgroundColor:"#c292f9"}});vr({editor:{...Xe.padding("8px"),...Xe.border("1px","solid",Pt.colorNeutralBackground5),...Xe.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative",'&[data-disabled="true"]':{backgroundColor:Pt.colorNeutralBackgroundDisabled}},textarea:{...Xe.padding("0px"),...Xe.overflow("hidden","auto"),...Xe.borderWidth(0),...Xe.outline(0,"solid","transparent"),backgroundColor:"transparent",boxSizing:"border-box",resize:"none",appearance:"none",overflowWrap:"break-word",lineHeight:"24px",height:"24px",width:"100%",wordBreak:"break-all",color:Pt.colorNeutralForeground1,userSelect:"text"}});function Out(e){return{}}const k5={},Dut={},h0e={},p_={},sb={},sM={},gg={},gz={},aM={},g_={},v_={},zd={},vz={},mz={},p0e={},g0e={},v0e={},m0e={},y0e={},b0e={},_0e={},wx={},E0e={},S0e={},w0e={},k0e={},A0e={},Fut={},But={},Mut={},x0e={},Lut={},T0e={},I0e={},C0e={},yz={},bz={},lM={},jut={},zut={},Hut={},$ut={},N0e={},R0e={},O0e={};var ft=function(e){const t=new URLSearchParams;t.append("code",e);for(let r=1;rUut;try{fa(e,()=>{const o=gn()||function(d){return d.getEditorState().read(()=>{const h=gn();return h!==null?h.clone():null})}(e),i=new Map,s=e.getRootElement(),a=e._editorState,l=e._blockCursorElement;let u=!1,c="";for(let d=0;d0){let b=0;for(let k=0;k0)for(const[d,h]of i)if(qe(h)){const g=h.getChildrenKeys();let v=d.firstChild;for(let y=0;y0){for(let d=0;d{M0e(e,t,r)})}function Xee(e,t){const r=e.__mode,n=e.__format,o=e.__style,i=t.__mode,s=t.__format,a=t.__style;return!(r!==null&&r!==i||n!==null&&n!==s||o!==null&&o!==a)}function Qee(e,t){const r=e.mergeWithSibling(t),n=jn()._normalizedNodes;return n.add(e.__key),n.add(t.__key),r}function Zee(e){let t,r,n=e;if(n.__text!==""||!n.isSimpleText()||n.isUnmergeable()){for(;(t=n.getPreviousSibling())!==null&&vt(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(Xee(t,n)){n=Qee(t,n);break}break}t.remove()}for(;(r=n.getNextSibling())!==null&&vt(r)&&r.isSimpleText()&&!r.isUnmergeable();){if(r.__text!==""){if(Xee(n,r)){n=Qee(n,r);break}break}r.remove()}}else n.remove()}function z0e(e){return Jee(e.anchor),Jee(e.focus),e}function Jee(e){for(;e.type==="element";){const t=e.getNode(),r=e.offset;let n,o;if(r===t.getChildrenSize()?(n=t.getChildAtIndex(r-1),o=!0):(n=t.getChildAtIndex(r),o=!1),vt(n)){e.set(n.__key,o?n.getTextContentSize():0,"text");break}if(!qe(n))break;e.set(n.__key,o?n.getChildrenSize():0,"element")}}let Zut=1;const Jut=typeof queueMicrotask=="function"?queueMicrotask:e=>{Promise.resolve().then(e)};function Iz(e){const t=document.activeElement;if(t===null)return!1;const r=t.nodeName;return ro(RE(e))&&(r==="INPUT"||r==="TEXTAREA"||t.contentEditable==="true"&&t.__lexicalEditor==null)}function NE(e,t,r){const n=e.getRootElement();try{return n!==null&&n.contains(t)&&n.contains(r)&&t!==null&&!Iz(t)&&Cz(t)===e}catch{return!1}}function Cz(e){let t=e;for(;t!=null;){const r=t.__lexicalEditor;if(r!=null)return r;t=T5(t)}return null}function uM(e){return e.isToken()||e.isSegmented()}function ect(e){return e.nodeType===D1}function Tx(e){let t=e;for(;t!=null;){if(ect(t))return t;t=t.firstChild}return null}function cM(e,t,r){const n=s1[t];if(r!==null&&(e&n)==(r&n))return e;let o=e^n;return t==="subscript"?o&=~s1.superscript:t==="superscript"&&(o&=~s1.subscript),o}function tct(e){return vt(e)||jh(e)||ro(e)}function H0e(e,t){if(t!=null)return void(e.__key=t);ts(),vge();const r=jn(),n=Rc(),o=""+Zut++;n._nodeMap.set(o,e),qe(e)?r._dirtyElements.set(o,!0):r._dirtyLeaves.add(o),r._cloneNotNeeded.add(o),r._dirtyType=D0e,e.__key=o}function Lh(e){const t=e.getParent();if(t!==null){const r=e.getWritable(),n=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling();if(o===null)if(i!==null){const s=i.getWritable();n.__first=i.__key,s.__prev=null}else n.__first=null;else{const s=o.getWritable();if(i!==null){const a=i.getWritable();a.__prev=s.__key,s.__next=a.__key}else s.__next=null;r.__prev=null}if(i===null)if(o!==null){const s=o.getWritable();n.__last=o.__key,s.__next=null}else n.__last=null;else{const s=i.getWritable();if(o!==null){const a=o.getWritable();a.__next=s.__key,s.__prev=a.__key}else s.__prev=null;r.__next=null}n.__size--,r.__parent=null}}function Ix(e){vge();const t=e.getLatest(),r=t.__parent,n=Rc(),o=jn(),i=n._nodeMap,s=o._dirtyElements;r!==null&&function(l,u,c){let f=l;for(;f!==null;){if(c.has(f))return;const d=u.get(f);if(d===void 0)break;c.set(f,!1),f=d.__parent}}(r,i,s);const a=t.__key;o._dirtyType=D0e,qe(e)?s.set(a,!0):o._dirtyLeaves.add(a)}function Xo(e){ts();const t=jn(),r=t._compositionKey;if(e!==r){if(t._compositionKey=e,r!==null){const n=Fi(r);n!==null&&n.getWritable()}if(e!==null){const n=Fi(e);n!==null&&n.getWritable()}}}function Hd(){return qv()?null:jn()._compositionKey}function Fi(e,t){const r=(t||Rc())._nodeMap.get(e);return r===void 0?null:r}function $0e(e,t){const r=e[`__lexicalKey_${jn()._key}`];return r!==void 0?Fi(r,t):null}function RE(e,t){let r=e;for(;r!=null;){const n=$0e(r,t);if(n!==null)return n;r=T5(r)}return null}function P0e(e){const t=e._decorators,r=Object.assign({},t);return e._pendingDecorators=r,r}function ete(e){return e.read(()=>Ca().getTextContent())}function Ca(){return q0e(Rc())}function q0e(e){return e._nodeMap.get("root")}function yc(e){ts();const t=Rc();e!==null&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function G0(e){const t=jn(),r=function(n,o){let i=n;for(;i!=null;){const s=i[`__lexicalKey_${o._key}`];if(s!==void 0)return s;i=T5(i)}return null}(e,t);return r===null?e===t.getRootElement()?Fi("root"):null:Fi(r)}function tte(e,t){return t?e.getTextContentSize():0}function W0e(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Nz(e){const t=[];let r=e;for(;r!==null;)t.push(r),r=r._parentEditor;return t}function G0e(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function K0e(e){return e.nodeType===D1?e.nodeValue:null}function Rz(e,t,r){const n=bc(t._window);if(n===null)return;const o=n.anchorNode;let{anchorOffset:i,focusOffset:s}=n;if(o!==null){let a=K0e(o);const l=RE(o);if(a!==null&&vt(l)){if(a===A5&&r){const u=r.length;a=r,i=u,s=u}a!==null&&Oz(l,a,i,s,e)}}}function Oz(e,t,r,n,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let a=t;(s||o)&&t[t.length-1]===A5&&(a=t.slice(0,-1));const l=i.getTextContent();if(o||a!==l){if(a===""){if(Xo(null),bz||k5||_z)i.remove();else{const v=jn();setTimeout(()=>{v.update(()=>{i.isAttached()&&i.remove()})},20)}return}const u=i.getParent(),c=Pv(),f=i.getTextContentSize(),d=Hd(),h=i.getKey();if(i.isToken()||d!==null&&h===d&&!s||Vt(c)&&(u!==null&&!u.canInsertTextBefore()&&c.anchor.offset===0||c.anchor.key===e.__key&&c.anchor.offset===0&&!i.canInsertTextBefore()&&!s||c.focus.key===e.__key&&c.focus.offset===f&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const g=gn();if(!Vt(g)||r===null||n===null)return void i.setTextContent(a);if(g.setTextNodeRange(i,r,i,n),i.isSegmented()){const v=fi(i.getTextContent());i.replace(v),i=v}i.setTextContent(a)}}}function rct(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;const r=e.anchor.offset,n=t.getParentOrThrow(),o=t.isToken();return r===0?!t.canInsertTextBefore()||!n.canInsertTextBefore()||o||function(i){const s=i.getPreviousSibling();return(vt(s)||qe(s)&&s.isInline())&&!s.canInsertTextAfter()}(t):r===t.getTextContentSize()&&(!t.canInsertTextAfter()||!n.canInsertTextAfter()||o)}function rte(e){return e===37}function nte(e){return e===39}function ky(e,t){return Yl?e:t}function ote(e){return e===13}function Gm(e){return e===8}function Km(e){return e===46}function ite(e,t,r){return e===65&&ky(t,r)}function nct(){const e=Ca();yc(z0e(e.select(0,e.getChildrenSize())))}function ab(e,t){e.__lexicalClassNameCache===void 0&&(e.__lexicalClassNameCache={});const r=e.__lexicalClassNameCache,n=r[t];if(n!==void 0)return n;const o=e[t];if(typeof o=="string"){const i=xx(o);return r[t]=i,i}return o}function Dz(e,t,r,n,o){if(r.size===0)return;const i=n.__type,s=n.__key,a=t.get(i);a===void 0&&ft(33,i);const l=a.klass;let u=e.get(l);u===void 0&&(u=new Map,e.set(l,u));const c=u.get(s),f=c==="destroyed"&&o==="created";(c===void 0||f)&&u.set(s,f?"updated":o)}function oct(e){const t=Rc(),r=t._readOnly,n=e.getType(),o=t._nodeMap,i=[];for(const[,s]of o)s instanceof e&&s.__type===n&&(r||s.isAttached())&&i.push(s);return i}function ste(e,t,r){const n=e.getParent();let o=r,i=e;return n!==null&&(t&&r===0?(o=i.getIndexWithinParent(),i=n):t||r!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=n)),i.getChildAtIndex(t?o-1:o)}function fM(e,t){const r=e.offset;if(e.type==="element")return ste(e.getNode(),t,r);{const n=e.getNode();if(t&&r===0||!t&&r===n.getTextContentSize()){const o=t?n.getPreviousSibling():n.getNextSibling();return o===null?ste(n.getParentOrThrow(),t,n.getIndexWithinParent()+(t?0:1)):o}}return null}function V0e(e){const t=I5(e).event,r=t&&t.inputType;return r==="insertFromPaste"||r==="insertFromPasteAsQuotation"}function ct(e,t,r){return mge(e,t,r)}function x5(e){return!Sa(e)&&!e.isLastChild()&&!e.isInline()}function Cx(e,t){const r=e._keyToDOMMap.get(t);return r===void 0&&ft(75,t),r}function T5(e){const t=e.assignedSlot||e.parentElement;return t!==null&&t.nodeType===11?t.host:t}function ict(e){return jn()._updateTags.has(e)}function sct(e){ts(),jn()._updateTags.add(e)}function Nx(e,t){let r=e.getParent();for(;r!==null;){if(r.is(t))return!0;r=r.getParent()}return!1}function I5(e){const t=e._window;return t===null&&ft(78),t}function act(e){return qe(e)&&e.isInline()||ro(e)&&e.isInline()}function U0e(e){let t=e.getParentOrThrow();for(;t!==null;){if(_1(t))return t;t=t.getParentOrThrow()}return t}function _1(e){return Sa(e)||qe(e)&&e.isShadowRoot()}function Y0e(e){const t=e.constructor.clone(e);return H0e(t,null),t}function OE(e){const t=jn(),r=e.constructor.getType(),n=t._nodes.get(r);n===void 0&&ft(97);const o=n.replace;if(o!==null){const i=o(e);return i instanceof e.constructor||ft(98),i}return e}function P3(e,t){!Sa(e.getParent())||qe(t)||ro(t)||ft(99)}function q3(e){return(ro(e)||qe(e)&&!e.canBeEmpty())&&!e.isInline()}function Fz(e,t,r){r.style.removeProperty("caret-color"),t._blockCursorElement=null;const n=e.parentElement;n!==null&&n.removeChild(e)}function lct(e,t,r){let n=e._blockCursorElement;if(Vt(r)&&r.isCollapsed()&&r.anchor.type==="element"&&t.contains(document.activeElement)){const o=r.anchor,i=o.getNode(),s=o.offset;let a=!1,l=null;if(s===i.getChildrenSize())q3(i.getChildAtIndex(s-1))&&(a=!0);else{const u=i.getChildAtIndex(s);if(q3(u)){const c=u.getPreviousSibling();(c===null||q3(c))&&(a=!0,l=e.getElementByKey(u.__key))}}if(a){const u=e.getElementByKey(i.__key);return n===null&&(e._blockCursorElement=n=function(c){const f=c.theme,d=document.createElement("div");d.contentEditable="false",d.setAttribute("data-lexical-cursor","true");let h=f.blockCursor;if(h!==void 0){if(typeof h=="string"){const g=xx(h);h=f.blockCursor=g}h!==void 0&&d.classList.add(...h)}return d}(e._config)),t.style.caretColor="transparent",void(l===null?u.appendChild(n):u.insertBefore(n,l))}}n!==null&&Fz(n,e,t)}function bc(e){return ku?(e||window).getSelection():null}function uct(e,t){let r=e.getChildAtIndex(t);r==null&&(r=e),_1(e)&&ft(102);const n=s=>{const a=s.getParentOrThrow(),l=_1(a),u=s!==r||l?Y0e(s):s;if(l)return qe(s)&&qe(u)||ft(133),s.insertAfter(u),[s,u,u];{const[c,f,d]=n(a),h=s.getNextSiblings();return d.append(u,...h),[c,f,u]}},[o,i]=n(r);return[o,i]}function cct(e){return C5(e)&&e.tagName==="A"}function C5(e){return e.nodeType===1}function y0(e){if(ro(e)&&!e.isInline())return!0;if(!qe(e)||_1(e))return!1;const t=e.getFirstChild(),r=t===null||jh(t)||vt(t)||t.isInline();return!e.isInline()&&e.canBeEmpty()!==!1&&r}function W3(e,t){let r=e;for(;r!==null&&r.getParent()!==null&&!t(r);)r=r.getParentOrThrow();return t(r)?r:null}function fct(){return jn()}function X0e(e,t,r,n,o,i){let s=e.getFirstChild();for(;s!==null;){const a=s.__key;s.__parent===t&&(qe(s)&&X0e(s,a,r,n,o,i),r.has(a)||i.delete(a),o.push(a)),s=s.getNextSibling()}}let E1,us,m_,N5,dM,hM,ep,S1,pM,y_,Lo="",ss="",of="",Q0e=!1,Bz=!1,Kk=null;function Rx(e,t){const r=ep.get(e);if(t!==null){const n=mM(e);n.parentNode===t&&t.removeChild(n)}if(S1.has(e)||us._keyToDOMMap.delete(e),qe(r)){const n=Dx(r,ep);gM(n,0,n.length-1,null)}r!==void 0&&Dz(y_,m_,N5,r,"destroyed")}function gM(e,t,r,n){let o=t;for(;o<=r;++o){const i=e[o];i!==void 0&&Rx(i,n)}}function Z1(e,t){e.setProperty("text-align",t)}const dct="40px";function Z0e(e,t){const r=E1.theme.indent;if(typeof r=="string"){const o=e.classList.contains(r);t>0&&!o?e.classList.add(r):t<1&&o&&e.classList.remove(r)}const n=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||dct;e.style.setProperty("padding-inline-start",t===0?"":`calc(${t} * ${n})`)}function J0e(e,t){const r=e.style;t===0?Z1(r,""):t===Ez?Z1(r,"left"):t===Sz?Z1(r,"center"):t===wz?Z1(r,"right"):t===kz?Z1(r,"justify"):t===Az?Z1(r,"start"):t===xz&&Z1(r,"end")}function Ox(e,t,r){const n=S1.get(e);n===void 0&&ft(60);const o=n.createDOM(E1,us);if(function(i,s,a){const l=a._keyToDOMMap;s["__lexicalKey_"+a._key]=i,l.set(i,s)}(e,o,us),vt(n)?o.setAttribute("data-lexical-text","true"):ro(n)&&o.setAttribute("data-lexical-decorator","true"),qe(n)){const i=n.__indent,s=n.__size;if(i!==0&&Z0e(o,i),s!==0){const l=s-1;(function(u,c,f,d){const h=ss;ss="",vM(u,f,0,c,d,null),tge(f,d),ss=h})(Dx(n,S1),l,n,o)}const a=n.__format;a!==0&&J0e(o,a),n.isInline()||ege(null,n,o),x5(n)&&(Lo+=Lf,of+=Lf)}else{const i=n.getTextContent();if(ro(n)){const s=n.decorate(us,E1);s!==null&&rge(e,s),o.contentEditable="false"}else vt(n)&&(n.isDirectionless()||(ss+=i));Lo+=i,of+=i}if(t!==null)if(r!=null)t.insertBefore(o,r);else{const i=t.__lexicalLineBreak;i!=null?t.insertBefore(o,i):t.appendChild(o)}return Dz(y_,m_,N5,n,"created"),o}function vM(e,t,r,n,o,i){const s=Lo;Lo="";let a=r;for(;a<=n;++a)Ox(e[a],o,i);x5(t)&&(Lo+=Lf),o.__lexicalTextContent=Lo,Lo=s+Lo}function ate(e,t){const r=t.get(e);return jh(r)||ro(r)&&r.isInline()}function ege(e,t,r){const n=e!==null&&(e.__size===0||ate(e.__last,ep)),o=t.__size===0||ate(t.__last,S1);if(n){if(!o){const i=r.__lexicalLineBreak;i!=null&&r.removeChild(i),r.__lexicalLineBreak=null}}else if(o){const i=document.createElement("br");r.__lexicalLineBreak=i,r.appendChild(i)}}function tge(e,t){const r=t.__lexicalDirTextContent,n=t.__lexicalDir;if(r!==ss||n!==Kk){const i=ss==="",s=i?Kk:(o=ss,Put.test(o)?"rtl":qut.test(o)?"ltr":null);if(s!==n){const a=t.classList,l=E1.theme;let u=n!==null?l[n]:void 0,c=s!==null?l[s]:void 0;if(u!==void 0){if(typeof u=="string"){const f=xx(u);u=l[n]=f}a.remove(...u)}if(s===null||i&&s==="ltr")t.removeAttribute("dir");else{if(c!==void 0){if(typeof c=="string"){const f=xx(c);c=l[s]=f}c!==void 0&&a.add(...c)}t.dir=s}Bz||(e.getWritable().__dir=s)}Kk=s,t.__lexicalDirTextContent=ss,t.__lexicalDir=s}var o}function hct(e,t,r){const n=ss;ss="",function(o,i,s){const a=Lo,l=o.__size,u=i.__size;if(Lo="",l===1&&u===1){const c=o.__first,f=i.__first;if(c===f)Ay(c,s);else{const d=mM(c),h=Ox(f,null,null);s.replaceChild(h,d),Rx(c,null)}}else{const c=Dx(o,ep),f=Dx(i,S1);if(l===0)u!==0&&vM(f,i,0,u-1,s,null);else if(u===0){if(l!==0){const d=s.__lexicalLineBreak==null;gM(c,0,l-1,d?null:s),d&&(s.textContent="")}}else(function(d,h,g,v,y,E){const _=v-1,S=y-1;let b,k,T=(C=E,C.firstChild),x=0,I=0;for(var C;x<=_&&I<=S;){const L=h[x],M=g[I];if(L===M)T=G3(Ay(M,E)),x++,I++;else{b===void 0&&(b=new Set(h)),k===void 0&&(k=new Set(g));const W=k.has(L),z=b.has(M);if(W)if(z){const F=Cx(us,M);F===T?T=G3(Ay(M,E)):(T!=null?E.insertBefore(F,T):E.appendChild(F),Ay(M,E)),x++,I++}else Ox(M,E,T),I++;else T=G3(mM(L)),Rx(L,E),x++}}const R=x>_,D=I>S;if(R&&!D){const L=g[S+1];vM(g,d,I,S,E,L===void 0?null:us.getElementByKey(L))}else D&&!R&&gM(h,x,_,E)})(i,c,f,l,u,s)}x5(i)&&(Lo+=Lf),s.__lexicalTextContent=Lo,Lo=a+Lo}(e,t,r),tge(t,r),ss=n}function Dx(e,t){const r=[];let n=e.__first;for(;n!==null;){const o=t.get(n);o===void 0&&ft(101),r.push(n),n=o.__next}return r}function Ay(e,t){const r=ep.get(e);let n=S1.get(e);r!==void 0&&n!==void 0||ft(61);const o=Q0e||hM.has(e)||dM.has(e),i=Cx(us,e);if(r===n&&!o){if(qe(r)){const s=i.__lexicalTextContent;s!==void 0&&(Lo+=s,of+=s);const a=i.__lexicalDirTextContent;a!==void 0&&(ss+=a)}else{const s=r.getTextContent();vt(r)&&!r.isDirectionless()&&(ss+=s),of+=s,Lo+=s}return i}if(r!==n&&o&&Dz(y_,m_,N5,n,"updated"),n.updateDOM(r,i,E1)){const s=Ox(e,null,null);return t===null&&ft(62),t.replaceChild(s,i),Rx(e,null),s}if(qe(r)&&qe(n)){const s=n.__indent;s!==r.__indent&&Z0e(i,s);const a=n.__format;a!==r.__format&&J0e(i,a),o&&(hct(r,n,i),Sa(n)||n.isInline()||ege(r,n,i)),x5(n)&&(Lo+=Lf,of+=Lf)}else{const s=n.getTextContent();if(ro(n)){const a=n.decorate(us,E1);a!==null&&rge(e,a)}else vt(n)&&!n.isDirectionless()&&(ss+=s);Lo+=s,of+=s}if(!Bz&&Sa(n)&&n.__cachedText!==of){const s=n.getWritable();s.__cachedText=of,n=s}return i}function rge(e,t){let r=us._pendingDecorators;const n=us._decorators;if(r===null){if(n[e]===t)return;r=P0e(us)}r[e]=t}function G3(e){let t=e.nextSibling;return t!==null&&t===us._blockCursorElement&&(t=t.nextSibling),t}function pct(e,t,r,n,o,i){Lo="",of="",ss="",Q0e=n===tv,Kk=null,us=r,E1=r._config,m_=r._nodes,N5=us._listeners.mutation,dM=o,hM=i,ep=e._nodeMap,S1=t._nodeMap,Bz=t._readOnly,pM=new Map(r._keyToDOMMap);const s=new Map;return y_=s,Ay("root",null),us=void 0,m_=void 0,dM=void 0,hM=void 0,ep=void 0,S1=void 0,E1=void 0,pM=void 0,y_=void 0,s}function mM(e){const t=pM.get(e);return t===void 0&&ft(75,e),t}const Xc=Object.freeze({}),yM=30,bM=[["keydown",function(e,t){if(lb=e.timeStamp,nge=e.keyCode,t.isComposing())return;const{keyCode:r,shiftKey:n,ctrlKey:o,metaKey:i,altKey:s}=e;ct(t,h0e,e)||(function(a,l,u,c){return nte(a)&&!l&&!c&&!u}(r,o,s,i)?ct(t,p0e,e):function(a,l,u,c,f){return nte(a)&&!c&&!u&&(l||f)}(r,o,n,s,i)?ct(t,g0e,e):function(a,l,u,c){return rte(a)&&!l&&!c&&!u}(r,o,s,i)?ct(t,v0e,e):function(a,l,u,c,f){return rte(a)&&!c&&!u&&(l||f)}(r,o,n,s,i)?ct(t,m0e,e):function(a,l,u){return function(c){return c===38}(a)&&!l&&!u}(r,o,i)?ct(t,y0e,e):function(a,l,u){return function(c){return c===40}(a)&&!l&&!u}(r,o,i)?ct(t,b0e,e):function(a,l){return ote(a)&&l}(r,n)?(ub=!0,ct(t,Sx,e)):function(a){return a===32}(r)?ct(t,_0e,e):function(a,l){return Yl&&l&&a===79}(r,o)?(e.preventDefault(),ub=!0,ct(t,sb,!0)):function(a,l){return ote(a)&&!l}(r,n)?(ub=!1,ct(t,Sx,e)):function(a,l,u,c){return Yl?!l&&!u&&(Gm(a)||a===72&&c):!(c||l||u)&&Gm(a)}(r,s,i,o)?Gm(r)?ct(t,E0e,e):(e.preventDefault(),ct(t,p_,!0)):function(a){return a===27}(r)?ct(t,S0e,e):function(a,l,u,c,f){return Yl?!(u||c||f)&&(Km(a)||a===68&&l):!(l||c||f)&&Km(a)}(r,o,n,s,i)?Km(r)?ct(t,w0e,e):(e.preventDefault(),ct(t,p_,!1)):function(a,l,u){return Gm(a)&&(Yl?l:u)}(r,s,o)?(e.preventDefault(),ct(t,g_,!0)):function(a,l,u){return Km(a)&&(Yl?l:u)}(r,s,o)?(e.preventDefault(),ct(t,g_,!1)):function(a,l){return Yl&&l&&Gm(a)}(r,i)?(e.preventDefault(),ct(t,v_,!0)):function(a,l){return Yl&&l&&Km(a)}(r,i)?(e.preventDefault(),ct(t,v_,!1)):function(a,l,u,c){return a===66&&!l&&ky(u,c)}(r,s,i,o)?(e.preventDefault(),ct(t,zd,"bold")):function(a,l,u,c){return a===85&&!l&&ky(u,c)}(r,s,i,o)?(e.preventDefault(),ct(t,zd,"underline")):function(a,l,u,c){return a===73&&!l&&ky(u,c)}(r,s,i,o)?(e.preventDefault(),ct(t,zd,"italic")):function(a,l,u,c){return a===9&&!l&&!u&&!c}(r,s,o,i)?ct(t,k0e,e):function(a,l,u,c){return a===90&&!l&&ky(u,c)}(r,n,i,o)?(e.preventDefault(),ct(t,gz,void 0)):function(a,l,u,c){return Yl?a===90&&u&&l:a===89&&c||a===90&&c&&l}(r,n,i,o)?(e.preventDefault(),ct(t,vz,void 0)):DE(t._editorState._selection)?function(a,l,u,c){return!l&&a===67&&(Yl?u:c)}(r,n,i,o)?(e.preventDefault(),ct(t,mz,e)):function(a,l,u,c){return!l&&a===88&&(Yl?u:c)}(r,n,i,o)?(e.preventDefault(),ct(t,yz,e)):ite(r,i,o)&&(e.preventDefault(),ct(t,aM,e)):!i1&&ite(r,i,o)&&(e.preventDefault(),ct(t,aM,e)),function(a,l,u,c){return a||l||u||c}(o,n,s,i)&&ct(t,R0e,e))}],["pointerdown",function(e,t){const r=e.target,n=e.pointerType;r instanceof Node&&n!=="touch"&&fa(t,()=>{ro(RE(r))||(EM=!0)})}],["compositionstart",function(e,t){fa(t,()=>{const r=gn();if(Vt(r)&&!t.isComposing()){const n=r.anchor,o=r.anchor.getNode();Xo(n.key),(e.timeStamp{K3(t,e.data)})}],["input",function(e,t){e.stopPropagation(),fa(t,()=>{const r=gn(),n=e.data,o=age(e);if(n!=null&&Vt(r)&&sge(r,o,n,e.timeStamp,!1)){Vm&&(K3(t,n),Vm=!1);const i=r.anchor,s=i.getNode(),a=bc(t._window);if(a===null)return;const l=i.offset;wx&&!r.isCollapsed()&&vt(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,l)+n+s.getTextContent().slice(l+r.focus.offset)===K0e(a.anchorNode)||ct(t,gg,n);const u=n.length;i1&&u>1&&e.inputType==="insertCompositionText"&&!t.isComposing()&&(r.anchor.offset-=u),bz||k5||_z||!t.isComposing()||(lb=0,Xo(null))}else Rz(!1,t,n!==null?n:void 0),Vm&&(K3(t,n||void 0),Vm=!1);ts(),L0e(jn())}),b0=null}],["click",function(e,t){fa(t,()=>{const r=gn(),n=bc(t._window),o=Pv();if(n){if(Vt(r)){const i=r.anchor,s=i.getNode();i.type==="element"&&i.offset===0&&r.isCollapsed()&&!Sa(s)&&Ca().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&o!==null&&r.is(o)?(n.removeAllRanges(),r.dirty=!0):e.detail===3&&!r.isCollapsed()&&s!==r.focus.getNode()&&(qe(s)?s.select(0):s.getParentOrThrow().select(0))}else if(e.pointerType==="touch"){const i=n.anchorNode;if(i!==null){const s=i.nodeType;(s===CE||s===D1)&&yc(Mz(o,n,t,e))}}}ct(t,d0e,e)})}],["cut",Xc],["copy",Xc],["dragstart",Xc],["dragover",Xc],["dragend",Xc],["paste",Xc],["focus",Xc],["blur",Xc],["drop",Xc]];wx&&bM.push(["beforeinput",(e,t)=>function(r,n){const o=r.inputType,i=age(r);o==="deleteCompositionText"||i1&&V0e(n)||o!=="insertCompositionText"&&fa(n,()=>{const s=gn();if(o==="deleteContentBackward"){if(s===null){const h=Pv();if(!Vt(h))return;yc(h.clone())}if(Vt(s)){const h=s.anchor.key===s.focus.key;if(a=r.timeStamp,nge===229&&a{fa(n,()=>{Xo(null)})},yM),Vt(s)){const g=s.anchor.getNode();g.markDirty(),s.format=g.getFormat(),vt(g)||ft(142),s.style=g.getStyle()}}else{Xo(null),r.preventDefault();const g=s.anchor.getNode().getTextContent(),v=s.anchor.offset===0&&s.focus.offset===g.length;zut&&h&&!v||ct(n,p_,!0)}return}}var a;if(!Vt(s))return;const l=r.data;b0!==null&&Rz(!1,n,b0),s.dirty&&b0===null||!s.isCollapsed()||Sa(s.anchor.getNode())||i===null||s.applyDOMRange(i),b0=null;const u=s.anchor,c=s.focus,f=u.getNode(),d=c.getNode();if(o!=="insertText"&&o!=="insertTranspose")switch(r.preventDefault(),o){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ct(n,gg,r);break;case"insertFromComposition":Xo(null),ct(n,gg,r);break;case"insertLineBreak":Xo(null),ct(n,sb,!1);break;case"insertParagraph":Xo(null),ub&&!k5?(ub=!1,ct(n,sb,!1)):ct(n,iM,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ct(n,pz,r);break;case"deleteByComposition":(function(h,g){return h!==g||qe(h)||qe(g)||!h.isToken()||!g.isToken()})(f,d)&&ct(n,sM,r);break;case"deleteByDrag":case"deleteByCut":ct(n,sM,r);break;case"deleteContent":ct(n,p_,!1);break;case"deleteWordBackward":ct(n,g_,!0);break;case"deleteWordForward":ct(n,g_,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ct(n,v_,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ct(n,v_,!1);break;case"formatStrikeThrough":ct(n,zd,"strikethrough");break;case"formatBold":ct(n,zd,"bold");break;case"formatItalic":ct(n,zd,"italic");break;case"formatUnderline":ct(n,zd,"underline");break;case"historyUndo":ct(n,gz,void 0);break;case"historyRedo":ct(n,vz,void 0)}else{if(l===` -`)r.preventDefault(),ct(n,sb,!1);else if(l===Lf)r.preventDefault(),ct(n,iM,void 0);else if(l==null&&r.dataTransfer){const h=r.dataTransfer.getData("text/plain");r.preventDefault(),s.insertRawText(h)}else l!=null&&sge(s,i,l,r.timeStamp,!0)?(r.preventDefault(),ct(n,gg,l)):b0=l;oge=r.timeStamp}})}(e,t)]);let lb=0,nge=0,oge=0,b0=null;const Fx=new WeakMap;let _M=!1,EM=!1,ub=!1,Vm=!1,ige=[0,"",0,"root",0];function sge(e,t,r,n,o){const i=e.anchor,s=e.focus,a=i.getNode(),l=jn(),u=bc(l._window),c=u!==null?u.anchorNode:null,f=i.key,d=l.getElementByKey(f),h=r.length;return f!==s.key||!vt(a)||(!o&&(!wx||oge1||(o||!wx)&&d!==null&&!a.isComposing()&&c!==Tx(d)||u!==null&&t!==null&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||a.getFormat()!==e.format||a.getStyle()!==e.style||rct(e,a)}function lte(e,t){return e!==null&&e.nodeValue!==null&&e.nodeType===D1&&t!==0&&t!==e.nodeValue.length}function ute(e,t,r){const{anchorNode:n,anchorOffset:o,focusNode:i,focusOffset:s}=e;_M&&(_M=!1,lte(n,o)&<e(i,s))||fa(t,()=>{if(!r)return void yc(null);if(!NE(t,n,i))return;const a=gn();if(Vt(a)){const l=a.anchor,u=l.getNode();if(a.isCollapsed()){e.type==="Range"&&e.anchorNode===e.focusNode&&(a.dirty=!0);const c=I5(t).event,f=c?c.timeStamp:performance.now(),[d,h,g,v,y]=ige,E=Ca(),_=t.isComposing()===!1&&E.getTextContent()==="";f{const u=Pv(),c=r.anchorNode;if(c===null)return;const f=c.nodeType;f!==CE&&f!==D1||yc(Mz(u,r,n,e))}));const o=Nz(n),i=o[o.length-1],s=i._key,a=vg.get(s),l=a||i;l!==n&&ute(r,l,!1),ute(r,n,!0),n!==i?vg.set(s,n):a&&vg.delete(s)}function cte(e){e._lexicalHandled=!0}function fte(e){return e._lexicalHandled===!0}function gct(e){const t=e.ownerDocument,r=Fx.get(t);if(r===void 0)throw Error("Root element not registered");Fx.set(t,r-1),r===1&&t.removeEventListener("selectionchange",uge);const n=e.__lexicalEditor;n!=null&&(function(i){if(i._parentEditor!==null){const s=Nz(i),a=s[s.length-1]._key;vg.get(a)===i&&vg.delete(a)}else vg.delete(i._key)}(n),e.__lexicalEditor=null);const o=lge(e);for(let i=0;io.__key===this.__key);return(vt(this)||!Vt(r)||r.anchor.type!=="element"||r.focus.type!=="element"||r.anchor.key!==r.focus.key||r.anchor.offset!==r.focus.offset)&&n}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(t===null)return-1;let r=t.getFirstChild(),n=0;for(;r!==null;){if(this.is(r))return n;n++,r=r.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return t===null?null:Fi(t)}getParentOrThrow(){const t=this.getParent();return t===null&&ft(66,this.__key),t}getTopLevelElement(){let t=this;for(;t!==null;){const r=t.getParent();if(_1(r))return qe(t)||ft(138),t;t=r}return null}getTopLevelElementOrThrow(){const t=this.getTopLevelElement();return t===null&&ft(67,this.__key),t}getParents(){const t=[];let r=this.getParent();for(;r!==null;)t.push(r),r=r.getParent();return t}getParentKeys(){const t=[];let r=this.getParent();for(;r!==null;)t.push(r.__key),r=r.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return t===null?null:Fi(t)}getPreviousSiblings(){const t=[],r=this.getParent();if(r===null)return t;let n=r.getFirstChild();for(;n!==null&&!n.is(this);)t.push(n),n=n.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return t===null?null:Fi(t)}getNextSiblings(){const t=[];let r=this.getNextSibling();for(;r!==null;)t.push(r),r=r.getNextSibling();return t}getCommonAncestor(t){const r=this.getParents(),n=t.getParents();qe(this)&&r.unshift(this),qe(t)&&n.unshift(t);const o=r.length,i=n.length;if(o===0||i===0||r[o-1]!==n[i-1])return null;const s=new Set(n);for(let a=0;a{a.append(v)})),Vt(n)){yc(n);const v=n.anchor,y=n.focus;v.key===i&&vte(v,a),y.key===i&&vte(y,a)}return Hd()===i&&Xo(s),a}insertAfter(t,r=!0){ts(),P3(this,t);const n=this.getWritable(),o=t.getWritable(),i=o.getParent(),s=gn();let a=!1,l=!1;if(i!==null){const h=t.getIndexWithinParent();if(Lh(o),Vt(s)){const g=i.__key,v=s.anchor,y=s.focus;a=v.type==="element"&&v.key===g&&v.offset===h+1,l=y.type==="element"&&y.key===g&&y.offset===h+1}}const u=this.getNextSibling(),c=this.getParentOrThrow().getWritable(),f=o.__key,d=n.__next;if(u===null?c.__last=f:u.getWritable().__prev=f,c.__size++,n.__next=f,o.__next=d,o.__prev=n.__key,o.__parent=n.__parent,r&&Vt(s)){const h=this.getIndexWithinParent();Bx(s,c,h+1);const g=c.__key;a&&s.anchor.set(g,h+2,"element"),l&&s.focus.set(g,h+2,"element")}return t}insertBefore(t,r=!0){ts(),P3(this,t);const n=this.getWritable(),o=t.getWritable(),i=o.__key;Lh(o);const s=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),l=n.__prev,u=this.getIndexWithinParent();s===null?a.__first=i:s.getWritable().__next=i,a.__size++,n.__prev=i,o.__prev=l,o.__next=n.__key,o.__parent=n.__parent;const c=gn();return r&&Vt(c)&&Bx(c,this.getParentOrThrow(),u),t}isParentRequired(){return!1}createParentElementNode(){return jf()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,r){ts();const n=this.getPreviousSibling(),o=this.getParentOrThrow();if(n===null)return o.select(0,0);if(qe(n))return n.select();if(!vt(n)){const i=n.getIndexWithinParent()+1;return o.select(i,i)}return n.select(t,r)}selectNext(t,r){ts();const n=this.getNextSibling(),o=this.getParentOrThrow();if(n===null)return o.select();if(qe(n))return n.select(0,0);if(!vt(n)){const i=n.getIndexWithinParent();return o.select(i,i)}return n.select(t,r)}markDirty(){this.getWritable()}}class Hv extends R5{static getType(){return"linebreak"}static clone(t){return new Hv(t.__key)}constructor(t){super(t)}getTextContent(){return` -`}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:t=>function(r){const n=r.parentElement;if(n!==null){const o=n.firstChild;if(o===r||o.nextSibling===r&&dte(o)){const i=n.lastChild;if(i===r||i.previousSibling===r&&dte(i))return!0}}return!1}(t)?null:{conversion:vct,priority:0}}}static importJSON(t){return rv()}exportJSON(){return{type:"linebreak",version:1}}}function vct(e){return{node:rv()}}function rv(){return OE(new Hv)}function jh(e){return e instanceof Hv}function dte(e){return e.nodeType===D1&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function V3(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function U3(e,t){return 1&t?"strong":2&t?"em":"span"}function cge(e,t,r,n,o){const i=n.classList;let s=ab(o,"base");s!==void 0&&i.add(...s),s=ab(o,"underlineStrikethrough");let a=!1;const l=t&Ax&&t&kx;s!==void 0&&(r&Ax&&r&kx?(a=!0,l||i.add(...s)):l&&i.remove(...s));for(const u in s1){const c=s1[u];if(s=ab(o,u),s!==void 0)if(r&c){if(a&&(u==="underline"||u==="strikethrough")){t&c&&i.remove(...s);continue}(!(t&c)||l&&u==="underline"||u==="strikethrough")&&i.add(...s)}else t&c&&i.remove(...s)}}function fge(e,t,r){const n=t.firstChild,o=r.isComposing(),i=e+(o?A5:"");if(n==null)t.textContent=i;else{const s=n.nodeValue;if(s!==i)if(o||i1){const[a,l,u]=function(c,f){const d=c.length,h=f.length;let g=0,v=0;for(;g({conversion:_ct,priority:0}),b:()=>({conversion:yct,priority:0}),code:()=>({conversion:hd,priority:0}),em:()=>({conversion:hd,priority:0}),i:()=>({conversion:hd,priority:0}),s:()=>({conversion:hd,priority:0}),span:()=>({conversion:mct,priority:0}),strong:()=>({conversion:hd,priority:0}),sub:()=>({conversion:hd,priority:0}),sup:()=>({conversion:hd,priority:0}),u:()=>({conversion:hd,priority:0})}}static importJSON(t){const r=fi(t.text);return r.setFormat(t.format),r.setDetail(t.detail),r.setMode(t.mode),r.setStyle(t.style),r}exportDOM(t){let{element:r}=super.exportDOM(t);return r!==null&&C5(r)||ft(132),r.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(r=Vw(r,"b")),this.hasFormat("italic")&&(r=Vw(r,"i")),this.hasFormat("strikethrough")&&(r=Vw(r,"s")),this.hasFormat("underline")&&(r=Vw(r,"u")),{element:r}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(t,r){}setFormat(t){const r=this.getWritable();return r.__format=typeof t=="string"?s1[t]:t,r}setDetail(t){const r=this.getWritable();return r.__detail=typeof t=="string"?Wut[t]:t,r}setStyle(t){const r=this.getWritable();return r.__style=t,r}toggleFormat(t){const r=cM(this.getFormat(),t,null);return this.setFormat(r)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const r=Kut[t];if(this.__mode===r)return this;const n=this.getWritable();return n.__mode=r,n}setTextContent(t){if(this.__text===t)return this;const r=this.getWritable();return r.__text=t,r}select(t,r){ts();let n=t,o=r;const i=gn(),s=this.getTextContent(),a=this.__key;if(typeof s=="string"){const l=s.length;n===void 0&&(n=l),o===void 0&&(o=l)}else n=0,o=0;if(!Vt(i))return gge(a,n,a,o,"text","text");{const l=Hd();l!==i.anchor.key&&l!==i.focus.key||Xo(a),i.setTextNodeRange(this,n,this,o)}return i}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,r,n,o){const i=this.getWritable(),s=i.__text,a=n.length;let l=t;l<0&&(l=a+l,l<0&&(l=0));const u=gn();if(o&&Vt(u)){const f=t+a;u.setTextNodeRange(i,f,i,f)}const c=s.slice(0,l)+n+s.slice(l+r);return i.__text=c,i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){ts();const r=this.getLatest(),n=r.getTextContent(),o=r.__key,i=Hd(),s=new Set(t),a=[],l=n.length;let u="";for(let x=0;xb&&M.offset<=L&&(M.key=D,M.offset-=b,_.dirty=!0),W.key===o&&W.type==="text"&&W.offset>b&&W.offset<=L&&(W.key=D,W.offset-=b,_.dirty=!0)}i===o&&Xo(D),b=L,S.push(R)}(function(x){const I=x.getPreviousSibling(),C=x.getNextSibling();I!==null&&Ix(I),C!==null&&Ix(C)})(this);const k=d.getWritable(),T=this.getIndexWithinParent();return E?(k.splice(T,0,S),this.remove()):k.splice(T,1,S),Vt(_)&&Bx(_,d,T,c-1),S}mergeWithSibling(t){const r=t===this.getPreviousSibling();r||t===this.getNextSibling()||ft(50);const n=this.__key,o=t.__key,i=this.__text,s=i.length;Hd()===o&&Xo(n);const a=gn();if(Vt(a)){const f=a.anchor,d=a.focus;f!==null&&f.key===o&&(wte(f,r,n,t,s),a.dirty=!0),d!==null&&d.key===o&&(wte(d,r,n,t,s),a.dirty=!0)}const l=t.__text,u=r?l+i:i+l;this.setTextContent(u);const c=this.getWritable();return t.remove(),c}isTextEntity(){return!1}}function mct(e){const t=e,r=t.style.fontWeight==="700",n=t.style.textDecoration==="line-through",o=t.style.fontStyle==="italic",i=t.style.textDecoration==="underline",s=t.style.verticalAlign;return{forChild:a=>(vt(a)&&(r&&a.toggleFormat("bold"),n&&a.toggleFormat("strikethrough"),o&&a.toggleFormat("italic"),i&&a.toggleFormat("underline"),s==="sub"&&a.toggleFormat("subscript"),s==="super"&&a.toggleFormat("superscript")),a),node:null}}function yct(e){const t=e.style.fontWeight==="normal";return{forChild:r=>(vt(r)&&!t&&r.toggleFormat("bold"),r),node:null}}const pte=new WeakMap;function bct(e){return e.nodeName==="PRE"||e.nodeType===CE&&e.style!==void 0&&e.style.whiteSpace!==void 0&&e.style.whiteSpace.startsWith("pre")}function _ct(e){const t=e;e.parentElement===null&&ft(129);let r=t.textContent||"";if(function(n){let o,i=n.parentNode;const s=[n];for(;i!==null&&(o=pte.get(i))===void 0&&!bct(i);)s.push(i),i=i.parentNode;const a=o===void 0?i:o;for(let l=0;lJut;try{fa(e,()=>{const o=pn()||function(d){return d.getEditorState().read(()=>{const h=pn();return h!==null?h.clone():null})}(e),i=new Map,s=e.getRootElement(),a=e._editorState,l=e._blockCursorElement;let u=!1,c="";for(let d=0;d0){let b=0;for(let k=0;k0)for(const[d,h]of i)if(qe(h)){const g=h.getChildrenKeys();let v=d.firstChild;for(let y=0;y0){for(let d=0;d{L0e(e,t,r)})}function Qee(e,t){const r=e.__mode,n=e.__format,o=e.__style,i=t.__mode,s=t.__format,a=t.__style;return!(r!==null&&r!==i||n!==null&&n!==s||o!==null&&o!==a)}function Zee(e,t){const r=e.mergeWithSibling(t),n=jn()._normalizedNodes;return n.add(e.__key),n.add(t.__key),r}function Jee(e){let t,r,n=e;if(n.__text!==""||!n.isSimpleText()||n.isUnmergeable()){for(;(t=n.getPreviousSibling())!==null&&vt(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(Qee(t,n)){n=Zee(t,n);break}break}t.remove()}for(;(r=n.getNextSibling())!==null&&vt(r)&&r.isSimpleText()&&!r.isUnmergeable();){if(r.__text!==""){if(Qee(n,r)){n=Zee(n,r);break}break}r.remove()}}else n.remove()}function H0e(e){return ete(e.anchor),ete(e.focus),e}function ete(e){for(;e.type==="element";){const t=e.getNode(),r=e.offset;let n,o;if(r===t.getChildrenSize()?(n=t.getChildAtIndex(r-1),o=!0):(n=t.getChildAtIndex(r),o=!1),vt(n)){e.set(n.__key,o?n.getTextContentSize():0,"text");break}if(!qe(n))break;e.set(n.__key,o?n.getChildrenSize():0,"element")}}let nct=1;const oct=typeof queueMicrotask=="function"?queueMicrotask:e=>{Promise.resolve().then(e)};function Cz(e){const t=document.activeElement;if(t===null)return!1;const r=t.nodeName;return no(RE(e))&&(r==="INPUT"||r==="TEXTAREA"||t.contentEditable==="true"&&t.__lexicalEditor==null)}function NE(e,t,r){const n=e.getRootElement();try{return n!==null&&n.contains(t)&&n.contains(r)&&t!==null&&!Cz(t)&&Nz(t)===e}catch{return!1}}function Nz(e){let t=e;for(;t!=null;){const r=t.__lexicalEditor;if(r!=null)return r;t=I5(t)}return null}function cM(e){return e.isToken()||e.isSegmented()}function ict(e){return e.nodeType===D1}function Ix(e){let t=e;for(;t!=null;){if(ict(t))return t;t=t.firstChild}return null}function fM(e,t,r){const n=s1[t];if(r!==null&&(e&n)==(r&n))return e;let o=e^n;return t==="subscript"?o&=~s1.superscript:t==="superscript"&&(o&=~s1.subscript),o}function sct(e){return vt(e)||zh(e)||no(e)}function $0e(e,t){if(t!=null)return void(e.__key=t);ts(),mge();const r=jn(),n=Rc(),o=""+nct++;n._nodeMap.set(o,e),qe(e)?r._dirtyElements.set(o,!0):r._dirtyLeaves.add(o),r._cloneNotNeeded.add(o),r._dirtyType=F0e,e.__key=o}function jh(e){const t=e.getParent();if(t!==null){const r=e.getWritable(),n=t.getWritable(),o=e.getPreviousSibling(),i=e.getNextSibling();if(o===null)if(i!==null){const s=i.getWritable();n.__first=i.__key,s.__prev=null}else n.__first=null;else{const s=o.getWritable();if(i!==null){const a=i.getWritable();a.__prev=s.__key,s.__next=a.__key}else s.__next=null;r.__prev=null}if(i===null)if(o!==null){const s=o.getWritable();n.__last=o.__key,s.__next=null}else n.__last=null;else{const s=i.getWritable();if(o!==null){const a=o.getWritable();a.__next=s.__key,s.__prev=a.__key}else s.__prev=null;r.__next=null}n.__size--,r.__parent=null}}function Cx(e){mge();const t=e.getLatest(),r=t.__parent,n=Rc(),o=jn(),i=n._nodeMap,s=o._dirtyElements;r!==null&&function(l,u,c){let f=l;for(;f!==null;){if(c.has(f))return;const d=u.get(f);if(d===void 0)break;c.set(f,!1),f=d.__parent}}(r,i,s);const a=t.__key;o._dirtyType=F0e,qe(e)?s.set(a,!0):o._dirtyLeaves.add(a)}function Xo(e){ts();const t=jn(),r=t._compositionKey;if(e!==r){if(t._compositionKey=e,r!==null){const n=Di(r);n!==null&&n.getWritable()}if(e!==null){const n=Di(e);n!==null&&n.getWritable()}}}function Hd(){return qv()?null:jn()._compositionKey}function Di(e,t){const r=(t||Rc())._nodeMap.get(e);return r===void 0?null:r}function P0e(e,t){const r=e[`__lexicalKey_${jn()._key}`];return r!==void 0?Di(r,t):null}function RE(e,t){let r=e;for(;r!=null;){const n=P0e(r,t);if(n!==null)return n;r=I5(r)}return null}function q0e(e){const t=e._decorators,r=Object.assign({},t);return e._pendingDecorators=r,r}function tte(e){return e.read(()=>Ca().getTextContent())}function Ca(){return W0e(Rc())}function W0e(e){return e._nodeMap.get("root")}function yc(e){ts();const t=Rc();e!==null&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function G0(e){const t=jn(),r=function(n,o){let i=n;for(;i!=null;){const s=i[`__lexicalKey_${o._key}`];if(s!==void 0)return s;i=I5(i)}return null}(e,t);return r===null?e===t.getRootElement()?Di("root"):null:Di(r)}function rte(e,t){return t?e.getTextContentSize():0}function G0e(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Rz(e){const t=[];let r=e;for(;r!==null;)t.push(r),r=r._parentEditor;return t}function K0e(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function V0e(e){return e.nodeType===D1?e.nodeValue:null}function Oz(e,t,r){const n=bc(t._window);if(n===null)return;const o=n.anchorNode;let{anchorOffset:i,focusOffset:s}=n;if(o!==null){let a=V0e(o);const l=RE(o);if(a!==null&&vt(l)){if(a===x5&&r){const u=r.length;a=r,i=u,s=u}a!==null&&Dz(l,a,i,s,e)}}}function Dz(e,t,r,n,o){let i=e;if(i.isAttached()&&(o||!i.isDirty())){const s=i.isComposing();let a=t;(s||o)&&t[t.length-1]===x5&&(a=t.slice(0,-1));const l=i.getTextContent();if(o||a!==l){if(a===""){if(Xo(null),_z||A5||Ez)i.remove();else{const v=jn();setTimeout(()=>{v.update(()=>{i.isAttached()&&i.remove()})},20)}return}const u=i.getParent(),c=Pv(),f=i.getTextContentSize(),d=Hd(),h=i.getKey();if(i.isToken()||d!==null&&h===d&&!s||Vt(c)&&(u!==null&&!u.canInsertTextBefore()&&c.anchor.offset===0||c.anchor.key===e.__key&&c.anchor.offset===0&&!i.canInsertTextBefore()&&!s||c.focus.key===e.__key&&c.focus.offset===f&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const g=pn();if(!Vt(g)||r===null||n===null)return void i.setTextContent(a);if(g.setTextNodeRange(i,r,i,n),i.isSegmented()){const v=fi(i.getTextContent());i.replace(v),i=v}i.setTextContent(a)}}}function act(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;const r=e.anchor.offset,n=t.getParentOrThrow(),o=t.isToken();return r===0?!t.canInsertTextBefore()||!n.canInsertTextBefore()||o||function(i){const s=i.getPreviousSibling();return(vt(s)||qe(s)&&s.isInline())&&!s.canInsertTextAfter()}(t):r===t.getTextContentSize()&&(!t.canInsertTextAfter()||!n.canInsertTextAfter()||o)}function nte(e){return e===37}function ote(e){return e===39}function ky(e,t){return Yl?e:t}function ite(e){return e===13}function Gm(e){return e===8}function Km(e){return e===46}function ste(e,t,r){return e===65&&ky(t,r)}function lct(){const e=Ca();yc(H0e(e.select(0,e.getChildrenSize())))}function ab(e,t){e.__lexicalClassNameCache===void 0&&(e.__lexicalClassNameCache={});const r=e.__lexicalClassNameCache,n=r[t];if(n!==void 0)return n;const o=e[t];if(typeof o=="string"){const i=Tx(o);return r[t]=i,i}return o}function Fz(e,t,r,n,o){if(r.size===0)return;const i=n.__type,s=n.__key,a=t.get(i);a===void 0&&ft(33,i);const l=a.klass;let u=e.get(l);u===void 0&&(u=new Map,e.set(l,u));const c=u.get(s),f=c==="destroyed"&&o==="created";(c===void 0||f)&&u.set(s,f?"updated":o)}function uct(e){const t=Rc(),r=t._readOnly,n=e.getType(),o=t._nodeMap,i=[];for(const[,s]of o)s instanceof e&&s.__type===n&&(r||s.isAttached())&&i.push(s);return i}function ate(e,t,r){const n=e.getParent();let o=r,i=e;return n!==null&&(t&&r===0?(o=i.getIndexWithinParent(),i=n):t||r!==i.getChildrenSize()||(o=i.getIndexWithinParent()+1,i=n)),i.getChildAtIndex(t?o-1:o)}function dM(e,t){const r=e.offset;if(e.type==="element")return ate(e.getNode(),t,r);{const n=e.getNode();if(t&&r===0||!t&&r===n.getTextContentSize()){const o=t?n.getPreviousSibling():n.getNextSibling();return o===null?ate(n.getParentOrThrow(),t,n.getIndexWithinParent()+(t?0:1)):o}}return null}function U0e(e){const t=C5(e).event,r=t&&t.inputType;return r==="insertFromPaste"||r==="insertFromPasteAsQuotation"}function ct(e,t,r){return yge(e,t,r)}function T5(e){return!Sa(e)&&!e.isLastChild()&&!e.isInline()}function Nx(e,t){const r=e._keyToDOMMap.get(t);return r===void 0&&ft(75,t),r}function I5(e){const t=e.assignedSlot||e.parentElement;return t!==null&&t.nodeType===11?t.host:t}function cct(e){return jn()._updateTags.has(e)}function fct(e){ts(),jn()._updateTags.add(e)}function Rx(e,t){let r=e.getParent();for(;r!==null;){if(r.is(t))return!0;r=r.getParent()}return!1}function C5(e){const t=e._window;return t===null&&ft(78),t}function dct(e){return qe(e)&&e.isInline()||no(e)&&e.isInline()}function Y0e(e){let t=e.getParentOrThrow();for(;t!==null;){if(_1(t))return t;t=t.getParentOrThrow()}return t}function _1(e){return Sa(e)||qe(e)&&e.isShadowRoot()}function X0e(e){const t=e.constructor.clone(e);return $0e(t,null),t}function OE(e){const t=jn(),r=e.constructor.getType(),n=t._nodes.get(r);n===void 0&&ft(97);const o=n.replace;if(o!==null){const i=o(e);return i instanceof e.constructor||ft(98),i}return e}function P3(e,t){!Sa(e.getParent())||qe(t)||no(t)||ft(99)}function q3(e){return(no(e)||qe(e)&&!e.canBeEmpty())&&!e.isInline()}function Bz(e,t,r){r.style.removeProperty("caret-color"),t._blockCursorElement=null;const n=e.parentElement;n!==null&&n.removeChild(e)}function hct(e,t,r){let n=e._blockCursorElement;if(Vt(r)&&r.isCollapsed()&&r.anchor.type==="element"&&t.contains(document.activeElement)){const o=r.anchor,i=o.getNode(),s=o.offset;let a=!1,l=null;if(s===i.getChildrenSize())q3(i.getChildAtIndex(s-1))&&(a=!0);else{const u=i.getChildAtIndex(s);if(q3(u)){const c=u.getPreviousSibling();(c===null||q3(c))&&(a=!0,l=e.getElementByKey(u.__key))}}if(a){const u=e.getElementByKey(i.__key);return n===null&&(e._blockCursorElement=n=function(c){const f=c.theme,d=document.createElement("div");d.contentEditable="false",d.setAttribute("data-lexical-cursor","true");let h=f.blockCursor;if(h!==void 0){if(typeof h=="string"){const g=Tx(h);h=f.blockCursor=g}h!==void 0&&d.classList.add(...h)}return d}(e._config)),t.style.caretColor="transparent",void(l===null?u.appendChild(n):u.insertBefore(n,l))}}n!==null&&Bz(n,e,t)}function bc(e){return ku?(e||window).getSelection():null}function pct(e,t){let r=e.getChildAtIndex(t);r==null&&(r=e),_1(e)&&ft(102);const n=s=>{const a=s.getParentOrThrow(),l=_1(a),u=s!==r||l?X0e(s):s;if(l)return qe(s)&&qe(u)||ft(133),s.insertAfter(u),[s,u,u];{const[c,f,d]=n(a),h=s.getNextSiblings();return d.append(u,...h),[c,f,u]}},[o,i]=n(r);return[o,i]}function gct(e){return N5(e)&&e.tagName==="A"}function N5(e){return e.nodeType===1}function y0(e){if(no(e)&&!e.isInline())return!0;if(!qe(e)||_1(e))return!1;const t=e.getFirstChild(),r=t===null||zh(t)||vt(t)||t.isInline();return!e.isInline()&&e.canBeEmpty()!==!1&&r}function W3(e,t){let r=e;for(;r!==null&&r.getParent()!==null&&!t(r);)r=r.getParentOrThrow();return t(r)?r:null}function vct(){return jn()}function Q0e(e,t,r,n,o,i){let s=e.getFirstChild();for(;s!==null;){const a=s.__key;s.__parent===t&&(qe(s)&&Q0e(s,a,r,n,o,i),r.has(a)||i.delete(a),o.push(a)),s=s.getNextSibling()}}let E1,us,m_,R5,hM,pM,tp,S1,gM,y_,Lo="",ss="",of="",Z0e=!1,Mz=!1,Vk=null;function Ox(e,t){const r=tp.get(e);if(t!==null){const n=yM(e);n.parentNode===t&&t.removeChild(n)}if(S1.has(e)||us._keyToDOMMap.delete(e),qe(r)){const n=Fx(r,tp);vM(n,0,n.length-1,null)}r!==void 0&&Fz(y_,m_,R5,r,"destroyed")}function vM(e,t,r,n){let o=t;for(;o<=r;++o){const i=e[o];i!==void 0&&Ox(i,n)}}function J1(e,t){e.setProperty("text-align",t)}const mct="40px";function J0e(e,t){const r=E1.theme.indent;if(typeof r=="string"){const o=e.classList.contains(r);t>0&&!o?e.classList.add(r):t<1&&o&&e.classList.remove(r)}const n=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||mct;e.style.setProperty("padding-inline-start",t===0?"":`calc(${t} * ${n})`)}function ege(e,t){const r=e.style;t===0?J1(r,""):t===Sz?J1(r,"left"):t===wz?J1(r,"center"):t===kz?J1(r,"right"):t===Az?J1(r,"justify"):t===xz?J1(r,"start"):t===Tz&&J1(r,"end")}function Dx(e,t,r){const n=S1.get(e);n===void 0&&ft(60);const o=n.createDOM(E1,us);if(function(i,s,a){const l=a._keyToDOMMap;s["__lexicalKey_"+a._key]=i,l.set(i,s)}(e,o,us),vt(n)?o.setAttribute("data-lexical-text","true"):no(n)&&o.setAttribute("data-lexical-decorator","true"),qe(n)){const i=n.__indent,s=n.__size;if(i!==0&&J0e(o,i),s!==0){const l=s-1;(function(u,c,f,d){const h=ss;ss="",mM(u,f,0,c,d,null),rge(f,d),ss=h})(Fx(n,S1),l,n,o)}const a=n.__format;a!==0&&ege(o,a),n.isInline()||tge(null,n,o),T5(n)&&(Lo+=Lf,of+=Lf)}else{const i=n.getTextContent();if(no(n)){const s=n.decorate(us,E1);s!==null&&nge(e,s),o.contentEditable="false"}else vt(n)&&(n.isDirectionless()||(ss+=i));Lo+=i,of+=i}if(t!==null)if(r!=null)t.insertBefore(o,r);else{const i=t.__lexicalLineBreak;i!=null?t.insertBefore(o,i):t.appendChild(o)}return Fz(y_,m_,R5,n,"created"),o}function mM(e,t,r,n,o,i){const s=Lo;Lo="";let a=r;for(;a<=n;++a)Dx(e[a],o,i);T5(t)&&(Lo+=Lf),o.__lexicalTextContent=Lo,Lo=s+Lo}function lte(e,t){const r=t.get(e);return zh(r)||no(r)&&r.isInline()}function tge(e,t,r){const n=e!==null&&(e.__size===0||lte(e.__last,tp)),o=t.__size===0||lte(t.__last,S1);if(n){if(!o){const i=r.__lexicalLineBreak;i!=null&&r.removeChild(i),r.__lexicalLineBreak=null}}else if(o){const i=document.createElement("br");r.__lexicalLineBreak=i,r.appendChild(i)}}function rge(e,t){const r=t.__lexicalDirTextContent,n=t.__lexicalDir;if(r!==ss||n!==Vk){const i=ss==="",s=i?Vk:(o=ss,Vut.test(o)?"rtl":Uut.test(o)?"ltr":null);if(s!==n){const a=t.classList,l=E1.theme;let u=n!==null?l[n]:void 0,c=s!==null?l[s]:void 0;if(u!==void 0){if(typeof u=="string"){const f=Tx(u);u=l[n]=f}a.remove(...u)}if(s===null||i&&s==="ltr")t.removeAttribute("dir");else{if(c!==void 0){if(typeof c=="string"){const f=Tx(c);c=l[s]=f}c!==void 0&&a.add(...c)}t.dir=s}Mz||(e.getWritable().__dir=s)}Vk=s,t.__lexicalDirTextContent=ss,t.__lexicalDir=s}var o}function yct(e,t,r){const n=ss;ss="",function(o,i,s){const a=Lo,l=o.__size,u=i.__size;if(Lo="",l===1&&u===1){const c=o.__first,f=i.__first;if(c===f)Ay(c,s);else{const d=yM(c),h=Dx(f,null,null);s.replaceChild(h,d),Ox(c,null)}}else{const c=Fx(o,tp),f=Fx(i,S1);if(l===0)u!==0&&mM(f,i,0,u-1,s,null);else if(u===0){if(l!==0){const d=s.__lexicalLineBreak==null;vM(c,0,l-1,d?null:s),d&&(s.textContent="")}}else(function(d,h,g,v,y,E){const _=v-1,S=y-1;let b,k,T=(C=E,C.firstChild),x=0,I=0;for(var C;x<=_&&I<=S;){const L=h[x],M=g[I];if(L===M)T=G3(Ay(M,E)),x++,I++;else{b===void 0&&(b=new Set(h)),k===void 0&&(k=new Set(g));const W=k.has(L),z=b.has(M);if(W)if(z){const F=Nx(us,M);F===T?T=G3(Ay(M,E)):(T!=null?E.insertBefore(F,T):E.appendChild(F),Ay(M,E)),x++,I++}else Dx(M,E,T),I++;else T=G3(yM(L)),Ox(L,E),x++}}const R=x>_,D=I>S;if(R&&!D){const L=g[S+1];mM(g,d,I,S,E,L===void 0?null:us.getElementByKey(L))}else D&&!R&&vM(h,x,_,E)})(i,c,f,l,u,s)}T5(i)&&(Lo+=Lf),s.__lexicalTextContent=Lo,Lo=a+Lo}(e,t,r),rge(t,r),ss=n}function Fx(e,t){const r=[];let n=e.__first;for(;n!==null;){const o=t.get(n);o===void 0&&ft(101),r.push(n),n=o.__next}return r}function Ay(e,t){const r=tp.get(e);let n=S1.get(e);r!==void 0&&n!==void 0||ft(61);const o=Z0e||pM.has(e)||hM.has(e),i=Nx(us,e);if(r===n&&!o){if(qe(r)){const s=i.__lexicalTextContent;s!==void 0&&(Lo+=s,of+=s);const a=i.__lexicalDirTextContent;a!==void 0&&(ss+=a)}else{const s=r.getTextContent();vt(r)&&!r.isDirectionless()&&(ss+=s),of+=s,Lo+=s}return i}if(r!==n&&o&&Fz(y_,m_,R5,n,"updated"),n.updateDOM(r,i,E1)){const s=Dx(e,null,null);return t===null&&ft(62),t.replaceChild(s,i),Ox(e,null),s}if(qe(r)&&qe(n)){const s=n.__indent;s!==r.__indent&&J0e(i,s);const a=n.__format;a!==r.__format&&ege(i,a),o&&(yct(r,n,i),Sa(n)||n.isInline()||tge(r,n,i)),T5(n)&&(Lo+=Lf,of+=Lf)}else{const s=n.getTextContent();if(no(n)){const a=n.decorate(us,E1);a!==null&&nge(e,a)}else vt(n)&&!n.isDirectionless()&&(ss+=s);Lo+=s,of+=s}if(!Mz&&Sa(n)&&n.__cachedText!==of){const s=n.getWritable();s.__cachedText=of,n=s}return i}function nge(e,t){let r=us._pendingDecorators;const n=us._decorators;if(r===null){if(n[e]===t)return;r=q0e(us)}r[e]=t}function G3(e){let t=e.nextSibling;return t!==null&&t===us._blockCursorElement&&(t=t.nextSibling),t}function bct(e,t,r,n,o,i){Lo="",of="",ss="",Z0e=n===tv,Vk=null,us=r,E1=r._config,m_=r._nodes,R5=us._listeners.mutation,hM=o,pM=i,tp=e._nodeMap,S1=t._nodeMap,Mz=t._readOnly,gM=new Map(r._keyToDOMMap);const s=new Map;return y_=s,Ay("root",null),us=void 0,m_=void 0,hM=void 0,pM=void 0,tp=void 0,S1=void 0,E1=void 0,gM=void 0,y_=void 0,s}function yM(e){const t=gM.get(e);return t===void 0&&ft(75,e),t}const Xc=Object.freeze({}),bM=30,_M=[["keydown",function(e,t){if(lb=e.timeStamp,oge=e.keyCode,t.isComposing())return;const{keyCode:r,shiftKey:n,ctrlKey:o,metaKey:i,altKey:s}=e;ct(t,p0e,e)||(function(a,l,u,c){return ote(a)&&!l&&!c&&!u}(r,o,s,i)?ct(t,g0e,e):function(a,l,u,c,f){return ote(a)&&!c&&!u&&(l||f)}(r,o,n,s,i)?ct(t,v0e,e):function(a,l,u,c){return nte(a)&&!l&&!c&&!u}(r,o,s,i)?ct(t,m0e,e):function(a,l,u,c,f){return nte(a)&&!c&&!u&&(l||f)}(r,o,n,s,i)?ct(t,y0e,e):function(a,l,u){return function(c){return c===38}(a)&&!l&&!u}(r,o,i)?ct(t,b0e,e):function(a,l,u){return function(c){return c===40}(a)&&!l&&!u}(r,o,i)?ct(t,_0e,e):function(a,l){return ite(a)&&l}(r,n)?(ub=!0,ct(t,wx,e)):function(a){return a===32}(r)?ct(t,E0e,e):function(a,l){return Yl&&l&&a===79}(r,o)?(e.preventDefault(),ub=!0,ct(t,sb,!0)):function(a,l){return ite(a)&&!l}(r,n)?(ub=!1,ct(t,wx,e)):function(a,l,u,c){return Yl?!l&&!u&&(Gm(a)||a===72&&c):!(c||l||u)&&Gm(a)}(r,s,i,o)?Gm(r)?ct(t,S0e,e):(e.preventDefault(),ct(t,p_,!0)):function(a){return a===27}(r)?ct(t,w0e,e):function(a,l,u,c,f){return Yl?!(u||c||f)&&(Km(a)||a===68&&l):!(l||c||f)&&Km(a)}(r,o,n,s,i)?Km(r)?ct(t,k0e,e):(e.preventDefault(),ct(t,p_,!1)):function(a,l,u){return Gm(a)&&(Yl?l:u)}(r,s,o)?(e.preventDefault(),ct(t,g_,!0)):function(a,l,u){return Km(a)&&(Yl?l:u)}(r,s,o)?(e.preventDefault(),ct(t,g_,!1)):function(a,l){return Yl&&l&&Gm(a)}(r,i)?(e.preventDefault(),ct(t,v_,!0)):function(a,l){return Yl&&l&&Km(a)}(r,i)?(e.preventDefault(),ct(t,v_,!1)):function(a,l,u,c){return a===66&&!l&&ky(u,c)}(r,s,i,o)?(e.preventDefault(),ct(t,zd,"bold")):function(a,l,u,c){return a===85&&!l&&ky(u,c)}(r,s,i,o)?(e.preventDefault(),ct(t,zd,"underline")):function(a,l,u,c){return a===73&&!l&&ky(u,c)}(r,s,i,o)?(e.preventDefault(),ct(t,zd,"italic")):function(a,l,u,c){return a===9&&!l&&!u&&!c}(r,s,o,i)?ct(t,A0e,e):function(a,l,u,c){return a===90&&!l&&ky(u,c)}(r,n,i,o)?(e.preventDefault(),ct(t,vz,void 0)):function(a,l,u,c){return Yl?a===90&&u&&l:a===89&&c||a===90&&c&&l}(r,n,i,o)?(e.preventDefault(),ct(t,mz,void 0)):DE(t._editorState._selection)?function(a,l,u,c){return!l&&a===67&&(Yl?u:c)}(r,n,i,o)?(e.preventDefault(),ct(t,yz,e)):function(a,l,u,c){return!l&&a===88&&(Yl?u:c)}(r,n,i,o)?(e.preventDefault(),ct(t,bz,e)):ste(r,i,o)&&(e.preventDefault(),ct(t,lM,e)):!i1&&ste(r,i,o)&&(e.preventDefault(),ct(t,lM,e)),function(a,l,u,c){return a||l||u||c}(o,n,s,i)&&ct(t,O0e,e))}],["pointerdown",function(e,t){const r=e.target,n=e.pointerType;r instanceof Node&&n!=="touch"&&fa(t,()=>{no(RE(r))||(SM=!0)})}],["compositionstart",function(e,t){fa(t,()=>{const r=pn();if(Vt(r)&&!t.isComposing()){const n=r.anchor,o=r.anchor.getNode();Xo(n.key),(e.timeStamp{K3(t,e.data)})}],["input",function(e,t){e.stopPropagation(),fa(t,()=>{const r=pn(),n=e.data,o=lge(e);if(n!=null&&Vt(r)&&age(r,o,n,e.timeStamp,!1)){Vm&&(K3(t,n),Vm=!1);const i=r.anchor,s=i.getNode(),a=bc(t._window);if(a===null)return;const l=i.offset;kx&&!r.isCollapsed()&&vt(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,l)+n+s.getTextContent().slice(l+r.focus.offset)===V0e(a.anchorNode)||ct(t,gg,n);const u=n.length;i1&&u>1&&e.inputType==="insertCompositionText"&&!t.isComposing()&&(r.anchor.offset-=u),_z||A5||Ez||!t.isComposing()||(lb=0,Xo(null))}else Oz(!1,t,n!==null?n:void 0),Vm&&(K3(t,n||void 0),Vm=!1);ts(),j0e(jn())}),b0=null}],["click",function(e,t){fa(t,()=>{const r=pn(),n=bc(t._window),o=Pv();if(n){if(Vt(r)){const i=r.anchor,s=i.getNode();i.type==="element"&&i.offset===0&&r.isCollapsed()&&!Sa(s)&&Ca().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&o!==null&&r.is(o)?(n.removeAllRanges(),r.dirty=!0):e.detail===3&&!r.isCollapsed()&&s!==r.focus.getNode()&&(qe(s)?s.select(0):s.getParentOrThrow().select(0))}else if(e.pointerType==="touch"){const i=n.anchorNode;if(i!==null){const s=i.nodeType;(s===CE||s===D1)&&yc(Lz(o,n,t,e))}}}ct(t,h0e,e)})}],["cut",Xc],["copy",Xc],["dragstart",Xc],["dragover",Xc],["dragend",Xc],["paste",Xc],["focus",Xc],["blur",Xc],["drop",Xc]];kx&&_M.push(["beforeinput",(e,t)=>function(r,n){const o=r.inputType,i=lge(r);o==="deleteCompositionText"||i1&&U0e(n)||o!=="insertCompositionText"&&fa(n,()=>{const s=pn();if(o==="deleteContentBackward"){if(s===null){const h=Pv();if(!Vt(h))return;yc(h.clone())}if(Vt(s)){const h=s.anchor.key===s.focus.key;if(a=r.timeStamp,oge===229&&a{fa(n,()=>{Xo(null)})},bM),Vt(s)){const g=s.anchor.getNode();g.markDirty(),s.format=g.getFormat(),vt(g)||ft(142),s.style=g.getStyle()}}else{Xo(null),r.preventDefault();const g=s.anchor.getNode().getTextContent(),v=s.anchor.offset===0&&s.focus.offset===g.length;Wut&&h&&!v||ct(n,p_,!0)}return}}var a;if(!Vt(s))return;const l=r.data;b0!==null&&Oz(!1,n,b0),s.dirty&&b0===null||!s.isCollapsed()||Sa(s.anchor.getNode())||i===null||s.applyDOMRange(i),b0=null;const u=s.anchor,c=s.focus,f=u.getNode(),d=c.getNode();if(o!=="insertText"&&o!=="insertTranspose")switch(r.preventDefault(),o){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ct(n,gg,r);break;case"insertFromComposition":Xo(null),ct(n,gg,r);break;case"insertLineBreak":Xo(null),ct(n,sb,!1);break;case"insertParagraph":Xo(null),ub&&!A5?(ub=!1,ct(n,sb,!1)):ct(n,sM,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ct(n,gz,r);break;case"deleteByComposition":(function(h,g){return h!==g||qe(h)||qe(g)||!h.isToken()||!g.isToken()})(f,d)&&ct(n,aM,r);break;case"deleteByDrag":case"deleteByCut":ct(n,aM,r);break;case"deleteContent":ct(n,p_,!1);break;case"deleteWordBackward":ct(n,g_,!0);break;case"deleteWordForward":ct(n,g_,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ct(n,v_,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ct(n,v_,!1);break;case"formatStrikeThrough":ct(n,zd,"strikethrough");break;case"formatBold":ct(n,zd,"bold");break;case"formatItalic":ct(n,zd,"italic");break;case"formatUnderline":ct(n,zd,"underline");break;case"historyUndo":ct(n,vz,void 0);break;case"historyRedo":ct(n,mz,void 0)}else{if(l===` +`)r.preventDefault(),ct(n,sb,!1);else if(l===Lf)r.preventDefault(),ct(n,sM,void 0);else if(l==null&&r.dataTransfer){const h=r.dataTransfer.getData("text/plain");r.preventDefault(),s.insertRawText(h)}else l!=null&&age(s,i,l,r.timeStamp,!0)?(r.preventDefault(),ct(n,gg,l)):b0=l;ige=r.timeStamp}})}(e,t)]);let lb=0,oge=0,ige=0,b0=null;const Bx=new WeakMap;let EM=!1,SM=!1,ub=!1,Vm=!1,sge=[0,"",0,"root",0];function age(e,t,r,n,o){const i=e.anchor,s=e.focus,a=i.getNode(),l=jn(),u=bc(l._window),c=u!==null?u.anchorNode:null,f=i.key,d=l.getElementByKey(f),h=r.length;return f!==s.key||!vt(a)||(!o&&(!kx||ige1||(o||!kx)&&d!==null&&!a.isComposing()&&c!==Ix(d)||u!==null&&t!==null&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||a.getFormat()!==e.format||a.getStyle()!==e.style||act(e,a)}function ute(e,t){return e!==null&&e.nodeValue!==null&&e.nodeType===D1&&t!==0&&t!==e.nodeValue.length}function cte(e,t,r){const{anchorNode:n,anchorOffset:o,focusNode:i,focusOffset:s}=e;EM&&(EM=!1,ute(n,o)&&ute(i,s))||fa(t,()=>{if(!r)return void yc(null);if(!NE(t,n,i))return;const a=pn();if(Vt(a)){const l=a.anchor,u=l.getNode();if(a.isCollapsed()){e.type==="Range"&&e.anchorNode===e.focusNode&&(a.dirty=!0);const c=C5(t).event,f=c?c.timeStamp:performance.now(),[d,h,g,v,y]=sge,E=Ca(),_=t.isComposing()===!1&&E.getTextContent()==="";f{const u=Pv(),c=r.anchorNode;if(c===null)return;const f=c.nodeType;f!==CE&&f!==D1||yc(Lz(u,r,n,e))}));const o=Rz(n),i=o[o.length-1],s=i._key,a=vg.get(s),l=a||i;l!==n&&cte(r,l,!1),cte(r,n,!0),n!==i?vg.set(s,n):a&&vg.delete(s)}function fte(e){e._lexicalHandled=!0}function dte(e){return e._lexicalHandled===!0}function _ct(e){const t=e.ownerDocument,r=Bx.get(t);if(r===void 0)throw Error("Root element not registered");Bx.set(t,r-1),r===1&&t.removeEventListener("selectionchange",cge);const n=e.__lexicalEditor;n!=null&&(function(i){if(i._parentEditor!==null){const s=Rz(i),a=s[s.length-1]._key;vg.get(a)===i&&vg.delete(a)}else vg.delete(i._key)}(n),e.__lexicalEditor=null);const o=uge(e);for(let i=0;io.__key===this.__key);return(vt(this)||!Vt(r)||r.anchor.type!=="element"||r.focus.type!=="element"||r.anchor.key!==r.focus.key||r.anchor.offset!==r.focus.offset)&&n}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(t===null)return-1;let r=t.getFirstChild(),n=0;for(;r!==null;){if(this.is(r))return n;n++,r=r.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return t===null?null:Di(t)}getParentOrThrow(){const t=this.getParent();return t===null&&ft(66,this.__key),t}getTopLevelElement(){let t=this;for(;t!==null;){const r=t.getParent();if(_1(r))return qe(t)||ft(138),t;t=r}return null}getTopLevelElementOrThrow(){const t=this.getTopLevelElement();return t===null&&ft(67,this.__key),t}getParents(){const t=[];let r=this.getParent();for(;r!==null;)t.push(r),r=r.getParent();return t}getParentKeys(){const t=[];let r=this.getParent();for(;r!==null;)t.push(r.__key),r=r.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return t===null?null:Di(t)}getPreviousSiblings(){const t=[],r=this.getParent();if(r===null)return t;let n=r.getFirstChild();for(;n!==null&&!n.is(this);)t.push(n),n=n.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return t===null?null:Di(t)}getNextSiblings(){const t=[];let r=this.getNextSibling();for(;r!==null;)t.push(r),r=r.getNextSibling();return t}getCommonAncestor(t){const r=this.getParents(),n=t.getParents();qe(this)&&r.unshift(this),qe(t)&&n.unshift(t);const o=r.length,i=n.length;if(o===0||i===0||r[o-1]!==n[i-1])return null;const s=new Set(n);for(let a=0;a{a.append(v)})),Vt(n)){yc(n);const v=n.anchor,y=n.focus;v.key===i&&mte(v,a),y.key===i&&mte(y,a)}return Hd()===i&&Xo(s),a}insertAfter(t,r=!0){ts(),P3(this,t);const n=this.getWritable(),o=t.getWritable(),i=o.getParent(),s=pn();let a=!1,l=!1;if(i!==null){const h=t.getIndexWithinParent();if(jh(o),Vt(s)){const g=i.__key,v=s.anchor,y=s.focus;a=v.type==="element"&&v.key===g&&v.offset===h+1,l=y.type==="element"&&y.key===g&&y.offset===h+1}}const u=this.getNextSibling(),c=this.getParentOrThrow().getWritable(),f=o.__key,d=n.__next;if(u===null?c.__last=f:u.getWritable().__prev=f,c.__size++,n.__next=f,o.__next=d,o.__prev=n.__key,o.__parent=n.__parent,r&&Vt(s)){const h=this.getIndexWithinParent();Mx(s,c,h+1);const g=c.__key;a&&s.anchor.set(g,h+2,"element"),l&&s.focus.set(g,h+2,"element")}return t}insertBefore(t,r=!0){ts(),P3(this,t);const n=this.getWritable(),o=t.getWritable(),i=o.__key;jh(o);const s=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),l=n.__prev,u=this.getIndexWithinParent();s===null?a.__first=i:s.getWritable().__next=i,a.__size++,n.__prev=i,o.__prev=l,o.__next=n.__key,o.__parent=n.__parent;const c=pn();return r&&Vt(c)&&Mx(c,this.getParentOrThrow(),u),t}isParentRequired(){return!1}createParentElementNode(){return jf()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,r){ts();const n=this.getPreviousSibling(),o=this.getParentOrThrow();if(n===null)return o.select(0,0);if(qe(n))return n.select();if(!vt(n)){const i=n.getIndexWithinParent()+1;return o.select(i,i)}return n.select(t,r)}selectNext(t,r){ts();const n=this.getNextSibling(),o=this.getParentOrThrow();if(n===null)return o.select();if(qe(n))return n.select(0,0);if(!vt(n)){const i=n.getIndexWithinParent();return o.select(i,i)}return n.select(t,r)}markDirty(){this.getWritable()}}class Hv extends O5{static getType(){return"linebreak"}static clone(t){return new Hv(t.__key)}constructor(t){super(t)}getTextContent(){return` +`}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:t=>function(r){const n=r.parentElement;if(n!==null){const o=n.firstChild;if(o===r||o.nextSibling===r&&hte(o)){const i=n.lastChild;if(i===r||i.previousSibling===r&&hte(i))return!0}}return!1}(t)?null:{conversion:Ect,priority:0}}}static importJSON(t){return rv()}exportJSON(){return{type:"linebreak",version:1}}}function Ect(e){return{node:rv()}}function rv(){return OE(new Hv)}function zh(e){return e instanceof Hv}function hte(e){return e.nodeType===D1&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function V3(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function U3(e,t){return 1&t?"strong":2&t?"em":"span"}function fge(e,t,r,n,o){const i=n.classList;let s=ab(o,"base");s!==void 0&&i.add(...s),s=ab(o,"underlineStrikethrough");let a=!1;const l=t&xx&&t&Ax;s!==void 0&&(r&xx&&r&Ax?(a=!0,l||i.add(...s)):l&&i.remove(...s));for(const u in s1){const c=s1[u];if(s=ab(o,u),s!==void 0)if(r&c){if(a&&(u==="underline"||u==="strikethrough")){t&c&&i.remove(...s);continue}(!(t&c)||l&&u==="underline"||u==="strikethrough")&&i.add(...s)}else t&c&&i.remove(...s)}}function dge(e,t,r){const n=t.firstChild,o=r.isComposing(),i=e+(o?x5:"");if(n==null)t.textContent=i;else{const s=n.nodeValue;if(s!==i)if(o||i1){const[a,l,u]=function(c,f){const d=c.length,h=f.length;let g=0,v=0;for(;g({conversion:Act,priority:0}),b:()=>({conversion:wct,priority:0}),code:()=>({conversion:hd,priority:0}),em:()=>({conversion:hd,priority:0}),i:()=>({conversion:hd,priority:0}),s:()=>({conversion:hd,priority:0}),span:()=>({conversion:Sct,priority:0}),strong:()=>({conversion:hd,priority:0}),sub:()=>({conversion:hd,priority:0}),sup:()=>({conversion:hd,priority:0}),u:()=>({conversion:hd,priority:0})}}static importJSON(t){const r=fi(t.text);return r.setFormat(t.format),r.setDetail(t.detail),r.setMode(t.mode),r.setStyle(t.style),r}exportDOM(t){let{element:r}=super.exportDOM(t);return r!==null&&N5(r)||ft(132),r.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(r=Uw(r,"b")),this.hasFormat("italic")&&(r=Uw(r,"i")),this.hasFormat("strikethrough")&&(r=Uw(r,"s")),this.hasFormat("underline")&&(r=Uw(r,"u")),{element:r}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(t,r){}setFormat(t){const r=this.getWritable();return r.__format=typeof t=="string"?s1[t]:t,r}setDetail(t){const r=this.getWritable();return r.__detail=typeof t=="string"?Yut[t]:t,r}setStyle(t){const r=this.getWritable();return r.__style=t,r}toggleFormat(t){const r=fM(this.getFormat(),t,null);return this.setFormat(r)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const r=Qut[t];if(this.__mode===r)return this;const n=this.getWritable();return n.__mode=r,n}setTextContent(t){if(this.__text===t)return this;const r=this.getWritable();return r.__text=t,r}select(t,r){ts();let n=t,o=r;const i=pn(),s=this.getTextContent(),a=this.__key;if(typeof s=="string"){const l=s.length;n===void 0&&(n=l),o===void 0&&(o=l)}else n=0,o=0;if(!Vt(i))return vge(a,n,a,o,"text","text");{const l=Hd();l!==i.anchor.key&&l!==i.focus.key||Xo(a),i.setTextNodeRange(this,n,this,o)}return i}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,r,n,o){const i=this.getWritable(),s=i.__text,a=n.length;let l=t;l<0&&(l=a+l,l<0&&(l=0));const u=pn();if(o&&Vt(u)){const f=t+a;u.setTextNodeRange(i,f,i,f)}const c=s.slice(0,l)+n+s.slice(l+r);return i.__text=c,i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){ts();const r=this.getLatest(),n=r.getTextContent(),o=r.__key,i=Hd(),s=new Set(t),a=[],l=n.length;let u="";for(let x=0;xb&&M.offset<=L&&(M.key=D,M.offset-=b,_.dirty=!0),W.key===o&&W.type==="text"&&W.offset>b&&W.offset<=L&&(W.key=D,W.offset-=b,_.dirty=!0)}i===o&&Xo(D),b=L,S.push(R)}(function(x){const I=x.getPreviousSibling(),C=x.getNextSibling();I!==null&&Cx(I),C!==null&&Cx(C)})(this);const k=d.getWritable(),T=this.getIndexWithinParent();return E?(k.splice(T,0,S),this.remove()):k.splice(T,1,S),Vt(_)&&Mx(_,d,T,c-1),S}mergeWithSibling(t){const r=t===this.getPreviousSibling();r||t===this.getNextSibling()||ft(50);const n=this.__key,o=t.__key,i=this.__text,s=i.length;Hd()===o&&Xo(n);const a=pn();if(Vt(a)){const f=a.anchor,d=a.focus;f!==null&&f.key===o&&(kte(f,r,n,t,s),a.dirty=!0),d!==null&&d.key===o&&(kte(d,r,n,t,s),a.dirty=!0)}const l=t.__text,u=r?l+i:i+l;this.setTextContent(u);const c=this.getWritable();return t.remove(),c}isTextEntity(){return!1}}function Sct(e){const t=e,r=t.style.fontWeight==="700",n=t.style.textDecoration==="line-through",o=t.style.fontStyle==="italic",i=t.style.textDecoration==="underline",s=t.style.verticalAlign;return{forChild:a=>(vt(a)&&(r&&a.toggleFormat("bold"),n&&a.toggleFormat("strikethrough"),o&&a.toggleFormat("italic"),i&&a.toggleFormat("underline"),s==="sub"&&a.toggleFormat("subscript"),s==="super"&&a.toggleFormat("superscript")),a),node:null}}function wct(e){const t=e.style.fontWeight==="normal";return{forChild:r=>(vt(r)&&!t&&r.toggleFormat("bold"),r),node:null}}const gte=new WeakMap;function kct(e){return e.nodeName==="PRE"||e.nodeType===CE&&e.style!==void 0&&e.style.whiteSpace!==void 0&&e.style.whiteSpace.startsWith("pre")}function Act(e){const t=e;e.parentElement===null&&ft(129);let r=t.textContent||"";if(function(n){let o,i=n.parentNode;const s=[n];for(;i!==null&&(o=gte.get(i))===void 0&&!kct(i);)s.push(i),i=i.parentNode;const a=o===void 0?i:o;for(let l=0;l0){/[ \t\n]$/.test(i)&&(r=r.slice(1)),o=!1;break}}o&&(r=r.slice(1))}if(r[r.length-1]===" "){let n=t,o=!0;for(;n!==null&&(n=gte(n,!0))!==null;)if((n.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){o=!1;break}o&&(r=r.slice(0,r.length-1))}return r===""?{node:null}:{node:fi(r)}}const Ect=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/,"i");function gte(e,t){let r=e;for(;;){let n;for(;(n=t?r.nextSibling:r.previousSibling)===null;){const i=r.parentElement;if(i===null)return null;r=i}if(r=n,r.nodeType===CE){const i=r.style.display;if(i===""&&r.nodeName.match(Ect)===null||i!==""&&!i.startsWith("inline"))return null}let o=r;for(;(o=t?r.firstChild:r.lastChild)!==null;)r=o;if(r.nodeType===D1)return r;if(r.nodeName==="BR")return null}}const Sct={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function hd(e){const t=Sct[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:r=>(vt(r)&&!r.hasFormat(t)&&r.toggleFormat(t),r),node:null}}function fi(e=""){return OE(new _p(e))}function vt(e){return e instanceof _p}class $v extends _p{static getType(){return"tab"}static clone(t){const r=new $v(t.__key);return r.__text=t.__text,r.__format=t.__format,r.__style=t.__style,r}constructor(t){super(" ",t),this.__detail=2}static importDOM(){return null}static importJSON(t){const r=O5();return r.setFormat(t.format),r.setStyle(t.style),r}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(t){ft(126)}setDetail(t){ft(127)}setMode(t){ft(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function O5(){return OE(new $v)}function dge(e){return e instanceof $v}class wct{constructor(t,r,n){this._selection=null,this.key=t,this.offset=r,this.type=n}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){let r=this.getNode(),n=t.getNode();const o=this.offset,i=t.offset;if(qe(r)){const s=r.getDescendantByIndex(o);r=s??r}if(qe(n)){const s=n.getDescendantByIndex(i);n=s??n}return r===n?oi&&(n=i)}else if(!qe(t)){const i=t.getNextSibling();if(vt(i))r=i.__key,n=0,o="text";else{const s=t.getParent();s&&(r=s.__key,n=t.getIndexWithinParent()+1)}}e.set(r,n,o)}function vte(e,t){if(qe(t)){const r=t.getLastDescendant();qe(r)||vt(r)?Y3(e,r):Y3(e,t)}else Y3(e,t)}function mte(e,t,r,n){const o=e.getNode(),i=o.getChildAtIndex(e.offset),s=fi(),a=Sa(o)?jf().append(s):s;s.setFormat(r),s.setStyle(n),i===null?o.append(a):i.insertBefore(a),e.is(t)&&t.set(s.__key,0,"text"),e.set(s.__key,0,"text")}function Cd(e,t,r,n){e.key=t,e.offset=r,e.type=n}class D5{constructor(t){this._cachedNodes=null,this._nodes=t,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){if(!DE(t))return!1;const r=this._nodes,n=t._nodes;return r.size===n.size&&Array.from(r).every(o=>n.has(o))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(t){return this._nodes.has(t)}clone(){return new D5(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const r=this.getNodes(),n=r.length,o=r[n-1];let i;if(vt(o))i=o.select();else{const s=o.getIndexWithinParent()+1;i=o.getParentOrThrow().select(s,s)}i.insertNodes(t);for(let s=0;s0?[]:[a]:a.getNodesBetween(l),qv()||(this._cachedNodes=f),f}setTextNodeRange(t,r,n,o){Cd(this.anchor,t.__key,r,"text"),Cd(this.focus,n.__key,o,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){const t=this.getNodes();if(t.length===0)return"";const r=t[0],n=t[t.length-1],o=this.anchor,i=this.focus,s=o.isBefore(i),[a,l]=wM(this);let u="",c=!0;for(let f=0;f0){/[ \t\n]$/.test(i)&&(r=r.slice(1)),o=!1;break}}o&&(r=r.slice(1))}if(r[r.length-1]===" "){let n=t,o=!0;for(;n!==null&&(n=vte(n,!0))!==null;)if((n.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){o=!1;break}o&&(r=r.slice(0,r.length-1))}return r===""?{node:null}:{node:fi(r)}}const xct=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/,"i");function vte(e,t){let r=e;for(;;){let n;for(;(n=t?r.nextSibling:r.previousSibling)===null;){const i=r.parentElement;if(i===null)return null;r=i}if(r=n,r.nodeType===CE){const i=r.style.display;if(i===""&&r.nodeName.match(xct)===null||i!==""&&!i.startsWith("inline"))return null}let o=r;for(;(o=t?r.firstChild:r.lastChild)!==null;)r=o;if(r.nodeType===D1)return r;if(r.nodeName==="BR")return null}}const Tct={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function hd(e){const t=Tct[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:r=>(vt(r)&&!r.hasFormat(t)&&r.toggleFormat(t),r),node:null}}function fi(e=""){return OE(new Ep(e))}function vt(e){return e instanceof Ep}class $v extends Ep{static getType(){return"tab"}static clone(t){const r=new $v(t.__key);return r.__text=t.__text,r.__format=t.__format,r.__style=t.__style,r}constructor(t){super(" ",t),this.__detail=2}static importDOM(){return null}static importJSON(t){const r=D5();return r.setFormat(t.format),r.setStyle(t.style),r}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(t){ft(126)}setDetail(t){ft(127)}setMode(t){ft(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function D5(){return OE(new $v)}function hge(e){return e instanceof $v}class Ict{constructor(t,r,n){this._selection=null,this.key=t,this.offset=r,this.type=n}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){let r=this.getNode(),n=t.getNode();const o=this.offset,i=t.offset;if(qe(r)){const s=r.getDescendantByIndex(o);r=s??r}if(qe(n)){const s=n.getDescendantByIndex(i);n=s??n}return r===n?oi&&(n=i)}else if(!qe(t)){const i=t.getNextSibling();if(vt(i))r=i.__key,n=0,o="text";else{const s=t.getParent();s&&(r=s.__key,n=t.getIndexWithinParent()+1)}}e.set(r,n,o)}function mte(e,t){if(qe(t)){const r=t.getLastDescendant();qe(r)||vt(r)?Y3(e,r):Y3(e,t)}else Y3(e,t)}function yte(e,t,r,n){const o=e.getNode(),i=o.getChildAtIndex(e.offset),s=fi(),a=Sa(o)?jf().append(s):s;s.setFormat(r),s.setStyle(n),i===null?o.append(a):i.insertBefore(a),e.is(t)&&t.set(s.__key,0,"text"),e.set(s.__key,0,"text")}function Cd(e,t,r,n){e.key=t,e.offset=r,e.type=n}class F5{constructor(t){this._cachedNodes=null,this._nodes=t,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){if(!DE(t))return!1;const r=this._nodes,n=t._nodes;return r.size===n.size&&Array.from(r).every(o=>n.has(o))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(t){return this._nodes.has(t)}clone(){return new F5(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const r=this.getNodes(),n=r.length,o=r[n-1];let i;if(vt(o))i=o.select();else{const s=o.getIndexWithinParent()+1;i=o.getParentOrThrow().select(s,s)}i.insertNodes(t);for(let s=0;s0?[]:[a]:a.getNodesBetween(l),qv()||(this._cachedNodes=f),f}setTextNodeRange(t,r,n,o){Cd(this.anchor,t.__key,r,"text"),Cd(this.focus,n.__key,o,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){const t=this.getNodes();if(t.length===0)return"";const r=t[0],n=t[t.length-1],o=this.anchor,i=this.focus,s=o.isBefore(i),[a,l]=kM(this);let u="",c=!0;for(let f=0;f=0;I--){const C=b[I];if(C.is(d)||qe(C)&&C.isParentOf(d))break;C.isAttached()&&(!k.has(C)||C.is(S)?T||x.insertAfter(C,!1):C.remove())}if(!T){let I=_,C=null;for(;I!==null;){const R=I.getChildren(),D=R.length;(D===0||R[D-1].is(C))&&(y.delete(I.__key),C=I),I=I.getParent()}}if(d.isToken())if(c===h)d.select();else{const I=fi(t);I.select(),d.replace(I)}else d=d.spliceText(c,h-c,t,!0),d.getTextContent()===""?d.remove():d.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length);for(let I=1;I0&&(y!==v.getTextContentSize()&&([v]=v.splitText(y)),v.setFormat(E));for(let _=c+1;_(qe(g)||ro(g))&&!g.isInline())){qe(r)||ft(135);const g=X3(this);return r.splice(g,0,t),void n.selectEnd()}const o=function(g){const v=jf();let y=null;for(let E=0;E"__value"in g&&"__checked"in g,l=!qe(r)||!r.isEmpty()?this.insertParagraph():null,u=s[s.length-1];let c=s[0];var f;qe(f=c)&&y0(f)&&!f.isEmpty()&&qe(r)&&(!r.isEmpty()||a(r))&&(qe(r)||ft(135),r.append(...c.getChildren()),c=s[1]),c&&function(g,v,y){const E=y||v.getParentOrThrow().getLastChild();let _=v;const S=[v];for(;_!==E;)_.getNextSibling()||ft(140),_=_.getNextSibling(),S.push(_);let b=g;for(const k of S)b=b.insertAfter(k)}(r,c);const d=W3(i,y0);l&&qe(d)&&(a(l)||y0(u))&&(d.append(...l.getChildren()),l.remove()),qe(r)&&r.isEmpty()&&r.remove(),i.selectEnd();const h=qe(r)?r.getLastChild():null;jh(h)&&d!==r&&h.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=jf();return Ca().splice(this.anchor.offset,0,[s]),s.select(),s}const t=X3(this),r=W3(this.anchor.getNode(),y0);qe(r)||ft(136);const n=r.getChildAtIndex(t),o=n?[n,...n.getNextSiblings()]:[],i=r.insertNewAfter(this,!1);return i?(i.append(...o),i.selectStart(),i):null}insertLineBreak(t){const r=rv();if(this.insertNodes([r]),t){const n=r.getParentOrThrow(),o=r.getIndexWithinParent();n.select(o,o)}}extract(){const t=this.getNodes(),r=t.length,n=r-1,o=this.anchor,i=this.focus;let s=t[0],a=t[n];const[l,u]=wM(this);if(r===0)return[];if(r===1){if(vt(s)&&!this.isCollapsed()){const f=l>u?u:l,d=l>u?l:u,h=s.splitText(f,d),g=f===0?h[0]:h[1];return g!=null?[g]:[]}return[s]}const c=o.isBefore(i);if(vt(s)){const f=c?l:u;f===s.getTextContentSize()?t.shift():f!==0&&([,s]=s.splitText(f),t[0]=s)}if(vt(a)){const f=a.getTextContent().length,d=c?u:l;d===0?t.pop():d!==f&&([a]=a.splitText(d),t[n]=a)}return t}modify(t,r,n){const o=this.focus,i=this.anchor,s=t==="move",a=fM(o,r);if(ro(a)&&!a.isIsolated()){if(s&&a.isKeyboardSelectable()){const h=kM();return h.add(a.__key),void yc(h)}const d=r?a.getPreviousSibling():a.getNextSibling();if(vt(d)){const h=d.__key,g=r?d.getTextContent().length:0;return o.set(h,g,"text"),void(s&&i.set(h,g,"text"))}{const h=a.getParentOrThrow();let g,v;return qe(d)?(v=d.__key,g=r?d.getChildrenSize():0):(g=a.getIndexWithinParent(),v=h.__key,r||g++),o.set(v,g,"element"),void(s&&i.set(v,g,"element"))}}const l=jn(),u=bc(l._window);if(!u)return;const c=l._blockCursorElement,f=l._rootElement;if(f===null||c===null||!qe(a)||a.isInline()||a.canBeEmpty()||Fz(c,l,f),function(d,h,g,v){d.modify(h,g,v)}(u,t,r?"backward":"forward",n),u.rangeCount>0){const d=u.getRangeAt(0),h=this.anchor.getNode(),g=Sa(h)?h:U0e(h);if(this.applyDOMRange(d),this.dirty=!0,!s){const v=this.getNodes(),y=[];let E=!1;for(let _=0;_0)if(r){const _=y[0];qe(_)?_.selectStart():_.getParentOrThrow().selectStart()}else{const _=y[y.length-1];qe(_)?_.selectEnd():_.getParentOrThrow().selectEnd()}u.anchorNode===d.startContainer&&u.anchorOffset===d.startOffset||function(_){const S=_.focus,b=_.anchor,k=b.key,T=b.offset,x=b.type;Cd(b,S.key,S.offset,S.type),Cd(S,k,T,x),_._cachedNodes=null}(this)}}}forwardDeletion(t,r,n){if(!n&&(t.type==="element"&&qe(r)&&t.offset===r.getChildrenSize()||t.type==="text"&&t.offset===r.getTextContentSize())){const o=r.getParent(),i=r.getNextSibling()||(o===null?null:o.getNextSibling());if(qe(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(t){const r=this.isCollapsed();if(this.isCollapsed()){const n=this.anchor;let o=n.getNode();if(this.forwardDeletion(n,o,t))return;const i=this.focus,s=fM(i,t);if(ro(s)&&!s.isIsolated()){if(s.isKeyboardSelectable()&&qe(o)&&o.getChildrenSize()===0){o.remove();const a=kM();a.add(s.__key),yc(a)}else s.remove(),jn().dispatchCommand(w5,void 0);return}if(!t&&qe(s)&&qe(o)&&o.isEmpty())return o.remove(),void s.selectStart();if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&n.offset===0&&(n.type==="element"?n.getNode():n.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const a=i.type==="text"?i.getNode():null;if(o=n.type==="text"?n.getNode():null,a!==null&&a.isSegmented()){const l=i.offset,u=a.getTextContentSize();if(a.is(o)||t&&l!==u||!t&&l!==0)return void bte(a,t,l)}else if(o!==null&&o.isSegmented()){const l=n.offset,u=o.getTextContentSize();if(o.is(a)||t&&l!==0||!t&&l!==u)return void bte(o,t,l)}(function(l,u){const c=l.anchor,f=l.focus,d=c.getNode(),h=f.getNode();if(d===h&&c.type==="text"&&f.type==="text"){const g=c.offset,v=f.offset,y=gr||c){o.splice(u,1),c&&(a=void 0);break}}const l=o.join("").trim();l===""?n.remove():(n.setTextContent(l),n.select(a,a))}function _te(e,t,r,n){let o,i=t;if(e.nodeType===CE){let s=!1;const a=e.childNodes,l=a.length;i===l&&(s=!0,i=l-1);let u=a[i],c=!1;if(u===n._blockCursorElement?(u=a[i+1],c=!0):n._blockCursorElement!==null&&i--,o=G0(u),vt(o))i=tte(o,s);else{let f=G0(e);if(f===null)return null;if(qe(f)){let d=f.getChildAtIndex(i);if(qe(d)&&function(h,g,v){const y=h.getParent();return v===null||y===null||!y.canBeEmpty()||y!==v.getNode()}(d,0,r)){const h=s?d.getLastDescendant():d.getFirstDescendant();h===null?(f=d,i=0):(d=h,f=qe(d)?d:d.getParentOrThrow())}vt(d)?(o=d,f=null,i=tte(d,s)):d!==f&&s&&!c&&i++}else{const d=f.getIndexWithinParent();i=t===0&&ro(f)&&G0(e)===f?d:d+1,f=f.getParentOrThrow()}if(qe(f))return vu(f.__key,i,"element")}}else o=G0(e);return vt(o)?vu(o.__key,i,"text"):null}function Ete(e,t,r){const n=e.offset,o=e.getNode();if(n===0){const i=o.getPreviousSibling(),s=o.getParent();if(t){if((r||!t)&&i===null&&qe(s)&&s.isInline()){const a=s.getPreviousSibling();vt(a)&&(e.key=a.__key,e.offset=a.getTextContent().length)}}else qe(i)&&!r&&i.isInline()?(e.key=i.__key,e.offset=i.getChildrenSize(),e.type="element"):vt(i)&&(e.key=i.__key,e.offset=i.getTextContent().length)}else if(n===o.getTextContent().length){const i=o.getNextSibling(),s=o.getParent();if(t&&qe(i)&&i.isInline())e.key=i.__key,e.offset=0,e.type="element";else if((r||t)&&i===null&&qe(s)&&s.isInline()&&!s.canInsertTextAfter()){const a=s.getNextSibling();vt(a)&&(e.key=a.__key,e.offset=0)}}}function hge(e,t,r){if(e.type==="text"&&t.type==="text"){const n=e.isBefore(t),o=e.is(t);Ete(e,n,o),Ete(t,!n,o),o&&(t.key=e.key,t.offset=e.offset,t.type=e.type);const i=jn();if(i.isComposing()&&i._compositionKey!==e.key&&Vt(r)){const s=r.anchor,a=r.focus;Cd(e,s.key,s.offset,s.type),Cd(t,a.key,a.offset,a.type)}}}function pge(e,t,r,n,o,i){if(e===null||r===null||!NE(o,e,r))return null;const s=_te(e,t,Vt(i)?i.anchor:null,o);if(s===null)return null;const a=_te(r,n,Vt(i)?i.focus:null,o);if(a===null)return null;if(s.type==="element"&&a.type==="element"){const l=G0(e),u=G0(r);if(ro(l)&&ro(u))return null}return hge(s,a,i),[s,a]}function kct(e){return qe(e)&&!e.isInline()}function gge(e,t,r,n,o,i){const s=Rc(),a=new F1(vu(e,t,o),vu(r,n,i),0,"");return a.dirty=!0,s._selection=a,a}function Act(){const e=vu("root",0,"element"),t=vu("root",0,"element");return new F1(e,t,0,"")}function kM(){return new D5(new Set)}function Mz(e,t,r,n){const o=r._window;if(o===null)return null;const i=n||o.event,s=i?i.type:void 0,a=s==="selectionchange",l=!lM&&(a||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let u,c,f,d;if(Vt(e)&&!l)return e.clone();if(t===null)return null;if(u=t.anchorNode,c=t.focusNode,f=t.anchorOffset,d=t.focusOffset,a&&Vt(e)&&!NE(r,u,c))return e.clone();const h=pge(u,f,c,d,r,e);if(h===null)return null;const[g,v]=h;return new F1(g,v,Vt(e)?e.format:0,Vt(e)?e.style:"")}function gn(){return Rc()._selection}function Pv(){return jn()._editorState._selection}function Bx(e,t,r,n=1){const o=e.anchor,i=e.focus,s=o.getNode(),a=i.getNode();if(!t.is(s)&&!t.is(a))return;const l=t.__key;if(e.isCollapsed()){const u=o.offset;if(r<=u&&n>0||r0||r0||r=a,u=l?i.getChildAtIndex(a-1):i.getChildAtIndex(r);if(vt(u)){let c=0;l&&(c=u.getTextContentSize()),t.set(u.__key,c,"text"),n.set(u.__key,c,"text")}}else{if(qe(i)){const a=i.getChildrenSize(),l=r>=a,u=l?i.getChildAtIndex(a-1):i.getChildAtIndex(r);if(vt(u)){let c=0;l&&(c=u.getTextContentSize()),t.set(u.__key,c,"text")}}if(qe(s)){const a=s.getChildrenSize(),l=o>=a,u=l?s.getChildAtIndex(a-1):s.getChildAtIndex(o);if(vt(u)){let c=0;l&&(c=u.getTextContentSize()),n.set(u.__key,c,"text")}}}}function Mx(e,t,r,n,o){let i=null,s=0,a=null;n!==null?(i=n.__key,vt(n)?(s=n.getTextContentSize(),a="text"):qe(n)&&(s=n.getChildrenSize(),a="element")):o!==null&&(i=o.__key,vt(o)?a="text":qe(o)&&(a="element")),i!==null&&a!==null?e.set(i,s,a):(s=t.getIndexWithinParent(),s===-1&&(s=r.getChildrenSize()),e.set(r.__key,s,"element"))}function wte(e,t,r,n,o){e.type==="text"?(e.key=r,t||(e.offset+=o)):e.offset>n.getIndexWithinParent()&&(e.offset-=1)}function xct(e,t,r,n,o,i,s){const a=n.anchorNode,l=n.focusNode,u=n.anchorOffset,c=n.focusOffset,f=document.activeElement;if(o.has("collaboration")&&f!==i||f!==null&&Iz(f))return;if(!Vt(t))return void(e!==null&&NE(r,a,l)&&n.removeAllRanges());const d=t.anchor,h=t.focus,g=d.key,v=h.key,y=Cx(r,g),E=Cx(r,v),_=d.offset,S=h.offset,b=t.format,k=t.style,T=t.isCollapsed();let x=y,I=E,C=!1;if(d.type==="text"){x=Tx(y);const z=d.getNode();C=z.getFormat()!==b||z.getStyle()!==k}else Vt(e)&&e.anchor.type==="text"&&(C=!0);var R,D,L,M,W;if(h.type==="text"&&(I=Tx(E)),x!==null&&I!==null&&(T&&(e===null||C||Vt(e)&&(e.format!==b||e.style!==k))&&(R=b,D=k,L=_,M=g,W=performance.now(),ige=[R,D,L,M,W]),u!==_||c!==S||a!==x||l!==I||n.type==="Range"&&T||(f!==null&&i.contains(f)||i.focus({preventScroll:!0}),d.type==="element"))){try{n.setBaseAndExtent(x,_,I,S)}catch{}if(!o.has("skip-scroll-into-view")&&t.isCollapsed()&&i!==null&&i===document.activeElement){const z=t instanceof F1&&t.anchor.type==="element"?x.childNodes[_]||null:n.rangeCount>0?n.getRangeAt(0):null;if(z!==null){let F;if(z instanceof Text){const P=document.createRange();P.selectNode(z),F=P.getBoundingClientRect()}else F=z.getBoundingClientRect();(function(P,K,V){const Z=V.ownerDocument,J=Z.defaultView;if(J===null)return;let{top:ee,bottom:de}=K,ge=0,Se=0,Re=V;for(;Re!==null;){const ve=Re===Z.body;if(ve)ge=0,Se=I5(P).innerHeight;else{const me=Re.getBoundingClientRect();ge=me.top,Se=me.bottom}let Ee=0;if(eeSe&&(Ee=de-Se),Ee!==0)if(ve)J.scrollBy(0,Ee);else{const me=Re.scrollTop;Re.scrollTop+=Ee;const we=Re.scrollTop-me;ee-=we,de-=we}if(ve)break;Re=T5(Re)}})(r,F,i)}}_M=!0}}function Tct(e){let t=gn()||Pv();t===null&&(t=Ca().selectEnd()),t.insertNodes(e)}function Ict(){const e=gn();return e===null?"":e.getTextContent()}function X3(e){e.isCollapsed()||e.removeText();const t=e.anchor;let r=t.getNode(),n=t.offset;for(;!y0(r);)[r,n]=Cct(r,n);return n}function Cct(e,t){const r=e.getParent();if(!r){const o=jf();return Ca().append(o),o.select(),[Ca(),0]}if(vt(e)){const o=e.splitText(t);if(o.length===0)return[r,e.getIndexWithinParent()];const i=t===0?0:1;return[r,o[0].getIndexWithinParent()+i]}if(!qe(e)||t===0)return[r,e.getIndexWithinParent()];const n=e.getChildAtIndex(t);if(n){const o=new F1(vu(e.__key,t,"element"),vu(e.__key,t,"element"),0,""),i=e.insertNewAfter(o);i&&i.append(n,...n.getNextSiblings())}return[r,e.getIndexWithinParent()+1]}let Qo=null,Zo=null,zs=!1,Q3=!1,Vk=0;const kte={characterData:!0,childList:!0,subtree:!0};function qv(){return zs||Qo!==null&&Qo._readOnly}function ts(){zs&&ft(13)}function vge(){Vk>99&&ft(14)}function Rc(){return Qo===null&&ft(15),Qo}function jn(){return Zo===null&&ft(16),Zo}function Nct(){return Zo}function Ate(e,t,r){const n=t.__type,o=function(a,l){const u=a._nodes.get(l);return u===void 0&&ft(30,l),u}(e,n);let i=r.get(n);i===void 0&&(i=Array.from(o.transforms),r.set(n,i));const s=i.length;for(let a=0;a{o=mge(e,t,r)}),o}const n=Nz(e);for(let o=4;o>=0;o--)for(let i=0;i0||L>0;){if(R>0){S._dirtyLeaves=new Set;for(const M of C){const W=T.get(M);vt(W)&&W.isAttached()&&W.isSimpleText()&&!W.isUnmergeable()&&Zee(W),W!==void 0&&xte(W,x)&&Ate(S,W,I),b.add(M)}if(C=S._dirtyLeaves,R=C.size,R>0){Vk++;continue}}S._dirtyLeaves=new Set,S._dirtyElements=new Map;for(const M of D){const W=M[0],z=M[1];if(W!=="root"&&!z)continue;const F=T.get(W);F!==void 0&&xte(F,x)&&Ate(S,F,I),k.set(W,z)}C=S._dirtyLeaves,R=C.size,D=S._dirtyElements,L=D.size,Vk++}S._dirtyLeaves=b,S._dirtyElements=k}(u,e),Ite(e),function(_,S,b,k){const T=_._nodeMap,x=S._nodeMap,I=[];for(const[C]of k){const R=x.get(C);R!==void 0&&(R.isAttached()||(qe(R)&&X0e(R,C,T,x,I,k),T.has(C)||k.delete(C),I.push(C)))}for(const C of I)x.delete(C);for(const C of b){const R=x.get(C);R===void 0||R.isAttached()||(T.has(C)||b.delete(C),x.delete(C))}}(l,u,e._dirtyLeaves,e._dirtyElements)),y!==e._compositionKey&&(u._flushSync=!0);const E=u._selection;if(Vt(E)){const _=u._nodeMap,S=E.anchor.key,b=E.focus.key;_.get(S)!==void 0&&_.get(b)!==void 0||ft(19)}else DE(E)&&E._nodes.size===0&&(u._selection=null)}catch(y){return y instanceof Error&&e._onError(y),e._pendingEditorState=l,e._dirtyType=tv,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void zh(e)}finally{Qo=f,zs=d,Zo=h,e._updating=g,Vk=0}e._dirtyType!==Jh||function(y,E){const _=E.getEditorState()._selection,S=y._selection;if(S!==null){if(S.dirty||!S.is(_))return!0}else if(_!==null)return!0;return!1}(u,e)?u._flushSync?(u._flushSync=!1,zh(e)):c&&Jut(()=>{zh(e)}):(u._flushSync=!1,c&&(n.clear(),e._deferred=[],e._pendingEditorState=null))}function fa(e,t,r){e._updating?e._updates.push([t,r]):yge(e,t,r)}class bge extends R5{constructor(t){super(t)}decorate(t,r){ft(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function ro(e){return e instanceof bge}class F5 extends R5{constructor(t){super(t),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__indent=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return Gut[t]||""}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r),r=r.getNextSibling();return t}getChildrenKeys(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r.__key),r=r.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const t=jn()._dirtyElements;return t!==null&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(t)}getAllTextNodes(){const t=[];let r=this.getFirstChild();for(;r!==null;){if(vt(r)&&t.push(r),qe(r)){const n=r.getAllTextNodes();t.push(...n)}r=r.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;qe(t);){const r=t.getFirstChild();if(r===null)break;t=r}return t}getLastDescendant(){let t=this.getLastChild();for(;qe(t);){const r=t.getLastChild();if(r===null)break;t=r}return t}getDescendantByIndex(t){const r=this.getChildren(),n=r.length;if(t>=n){const i=r[n-1];return qe(i)&&i.getLastDescendant()||i||null}const o=r[t];return qe(o)&&o.getFirstDescendant()||o||null}getFirstChild(){const t=this.getLatest().__first;return t===null?null:Fi(t)}getFirstChildOrThrow(){const t=this.getFirstChild();return t===null&&ft(45,this.__key),t}getLastChild(){const t=this.getLatest().__last;return t===null?null:Fi(t)}getLastChildOrThrow(){const t=this.getLastChild();return t===null&&ft(96,this.__key),t}getChildAtIndex(t){const r=this.getChildrenSize();let n,o;if(t=t;){if(o===t)return n;n=n.getPreviousSibling(),o--}return null}getTextContent(){let t="";const r=this.getChildren(),n=r.length;for(let o=0;or.remove()),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const r=this.getWritable();return r.__dir=t,r}setFormat(t){return this.getWritable().__format=t!==""?Yee[t]:0,this}setIndent(t){return this.getWritable().__indent=t,this}splice(t,r,n){const o=n.length,i=this.getChildrenSize(),s=this.getWritable(),a=s.__key,l=[],u=[],c=this.getChildAtIndex(t+r);let f=null,d=i-r+o;if(t!==0)if(t===i)f=this.getLastChild();else{const g=this.getChildAtIndex(t);g!==null&&(f=g.getPreviousSibling())}if(r>0){let g=f===null?this.getFirstChild():f.getNextSibling();for(let v=0;v({root:_ge(Ca())}))}}class Gv extends F5{static getType(){return"paragraph"}static clone(t){return new Gv(t.__key)}createDOM(t){const r=document.createElement("p"),n=ab(t.theme,"paragraph");return n!==void 0&&r.classList.add(...n),r}updateDOM(t,r,n){return!1}static importDOM(){return{p:t=>({conversion:Oct,priority:0})}}exportDOM(t){const{element:r}=super.exportDOM(t);if(r&&C5(r)){this.isEmpty()&&r.append(document.createElement("br"));const n=this.getFormatType();r.style.textAlign=n;const o=this.getDirection();o&&(r.dir=o);const i=this.getIndent();i>0&&(r.style.textIndent=20*i+"px")}return{element:r}}static importJSON(t){const r=jf();return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(t,r){const n=jf(),o=this.getDirection();return n.setDirection(o),this.insertAfter(n,r),n}collapseAtStart(){const t=this.getChildren();if(t.length===0||vt(t[0])&&t[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function Oct(e){const t=jf();if(e.style){t.setFormat(e.style.textAlign);const r=parseInt(e.style.textIndent,10)/20;r>0&&t.setIndent(r)}return{node:t}}function jf(){return OE(new Gv)}function Dct(e){return e instanceof Gv}const Fct=0,Bct=1,Mct=2,Lct=3,jct=4;function Ege(e,t,r,n){const o=e._keyToDOMMap;o.clear(),e._editorState=jz(),e._pendingEditorState=n,e._compositionKey=null,e._dirtyType=Jh,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;i!==null&&(i.disconnect(),e._observer=null),t!==null&&(t.textContent=""),r!==null&&(r.textContent="",o.set("root",r))}function zct(e){const t=e||{},r=Nct(),n=t.theme||{},o=e===void 0?r:t.parentEditor||null,i=t.disableEvents||!1,s=jz(),a=t.namespace||(o!==null?o._config.namespace:G0e()),l=t.editorState,u=[Wv,_p,Hv,$v,Gv,...t.nodes||[]],{onError:c,html:f}=t,d=t.editable===void 0||t.editable;let h;if(e===void 0&&r!==null)h=r._nodes;else{h=new Map;for(let v=0;v{Object.keys(b).forEach(k=>{let T=E.get(k);T===void 0&&(T=[],E.set(k,T)),T.push(b[k])})};return v.forEach(b=>{const k=b.klass.importDOM;if(k==null||_.has(k))return;_.add(k);const T=k.call(b.klass);T!==null&&S(T)}),y&&S(y),E}(h,f?f.import:void 0),d);return l!==void 0&&(g._pendingEditorState=l,g._dirtyType=tv),g}class Hct{constructor(t,r,n,o,i,s,a){this._parentEditor=r,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=o,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=Jh,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=G0e(),this._onError=i,this._htmlConversions=s,this._editable=a,this._headless=r!==null&&r._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(t){const r=this._listeners.update;return r.add(t),()=>{r.delete(t)}}registerEditableListener(t){const r=this._listeners.editable;return r.add(t),()=>{r.delete(t)}}registerDecoratorListener(t){const r=this._listeners.decorator;return r.add(t),()=>{r.delete(t)}}registerTextContentListener(t){const r=this._listeners.textcontent;return r.add(t),()=>{r.delete(t)}}registerRootListener(t){const r=this._listeners.root;return t(this._rootElement,null),r.add(t),()=>{t(null,this._rootElement),r.delete(t)}}registerCommand(t,r,n){n===void 0&&ft(35);const o=this._commands;o.has(t)||o.set(t,[new Set,new Set,new Set,new Set,new Set]);const i=o.get(t);i===void 0&&ft(36,String(t));const s=i[n];return s.add(r),()=>{s.delete(r),i.every(a=>a.size===0)&&o.delete(t)}}registerMutationListener(t,r){this._nodes.get(t.getType())===void 0&&ft(37,t.name);const n=this._listeners.mutation;return n.set(r,t),()=>{n.delete(r)}}registerNodeTransformToKlass(t,r){const n=t.getType(),o=this._nodes.get(n);return o===void 0&&ft(37,t.name),o.transforms.add(r),o}registerNodeTransform(t,r){const n=this.registerNodeTransformToKlass(t,r),o=[n],i=n.replaceWithKlass;if(i!=null){const l=this.registerNodeTransformToKlass(i,r);o.push(l)}var s,a;return s=this,a=t.getType(),fa(s,()=>{const l=Rc();if(l.isEmpty())return;if(a==="root")return void Ca().markDirty();const u=l._nodeMap;for(const[,c]of u)c.markDirty()},s._pendingEditorState===null?{tag:"history-merge"}:void 0),()=>{o.forEach(l=>l.transforms.delete(r))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,r){return ct(this,t,r)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const r=this._rootElement;if(t!==r){const n=ab(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=t,Ege(this,r,t,o),r!==null&&(this._config.disableEvents||gct(r),n!=null&&r.classList.remove(...n)),t!==null){const i=function(a){const l=a.ownerDocument;return l&&l.defaultView||null}(t),s=t.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=tv,j0e(this),this._updateTags.add("history-merge"),zh(this),this._config.disableEvents||function(a,l){const u=a.ownerDocument,c=Fx.get(u);c===void 0&&u.addEventListener("selectionchange",uge),Fx.set(u,c||1),a.__lexicalEditor=l;const f=lge(a);for(let d=0;d{fte(y)||(cte(y),(l.isEditable()||h==="click")&&g(y,l))}:y=>{if(!fte(y)&&(cte(y),l.isEditable()))switch(h){case"cut":return ct(l,yz,y);case"copy":return ct(l,mz,y);case"paste":return ct(l,pz,y);case"dragstart":return ct(l,x0e,y);case"dragover":return ct(l,T0e,y);case"dragend":return ct(l,I0e,y);case"focus":return ct(l,C0e,y);case"blur":return ct(l,N0e,y);case"drop":return ct(l,A0e,y)}};a.addEventListener(h,v),f.push(()=>{a.removeEventListener(h,v)})}}(t,this),n!=null&&t.classList.add(...n)}else this._editorState=o,this._pendingEditorState=null,this._window=null;cb("root",this,!1,t,r)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(t,r){t.isEmpty()&&ft(38),L0e(this);const n=this._pendingEditorState,o=this._updateTags,i=r!==void 0?r.tag:null;n===null||n.isEmpty()||(i!=null&&o.add(i),zh(this)),this._pendingEditorState=t,this._dirtyType=tv,this._dirtyElements.set("root",!1),this._compositionKey=null,i!=null&&o.add(i),zh(this)}parseEditorState(t,r){return function(n,o,i){const s=jz(),a=Qo,l=zs,u=Zo,c=o._dirtyElements,f=o._dirtyLeaves,d=o._cloneNotNeeded,h=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,Qo=s,zs=!1,Zo=o;try{const g=o._nodes;Lz(n.root,g),i&&i(),s._readOnly=!0}catch(g){g instanceof Error&&o._onError(g)}finally{o._dirtyElements=c,o._dirtyLeaves=f,o._cloneNotNeeded=d,o._dirtyType=h,Qo=a,zs=l,Zo=u}return s}(typeof t=="string"?JSON.parse(t):t,this,r)}update(t,r){fa(this,t,r)}focus(t,r={}){const n=this._rootElement;n!==null&&(n.setAttribute("autocapitalize","off"),fa(this,()=>{const o=gn(),i=Ca();o!==null?o.dirty=!0:i.getChildrenSize()!==0&&(r.defaultSelection==="rootStart"?i.selectStart():i.selectEnd())},{onUpdate:()=>{n.removeAttribute("autocapitalize"),t&&t()},tag:"focus"}),this._pendingEditorState===null&&n.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;t!==null&&t.blur();const r=bc(this._window);r!==null&&r.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,cb("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}const $ct=Object.freeze(Object.defineProperty({__proto__:null,$addUpdateTag:sct,$applyNodeReplacement:OE,$copyNode:Y0e,$createLineBreakNode:rv,$createNodeSelection:kM,$createParagraphNode:jf,$createPoint:vu,$createRangeSelection:Act,$createTabNode:O5,$createTextNode:fi,$getAdjacentNode:fM,$getCharacterOffsets:wM,$getEditor:fct,$getNearestNodeFromDOMNode:RE,$getNearestRootOrShadowRoot:U0e,$getNodeByKey:Fi,$getPreviousSelection:Pv,$getRoot:Ca,$getSelection:gn,$getTextContent:Ict,$hasAncestor:Nx,$hasUpdateTag:ict,$insertNodes:Tct,$isBlockElementNode:kct,$isDecoratorNode:ro,$isElementNode:qe,$isInlineElementOrDecoratorNode:act,$isLeafNode:tct,$isLineBreakNode:jh,$isNodeSelection:DE,$isParagraphNode:Dct,$isRangeSelection:Vt,$isRootNode:Sa,$isRootOrShadowRoot:_1,$isTabNode:dge,$isTextNode:vt,$nodesOfType:oct,$normalizeSelection__EXPERIMENTAL:z0e,$parseSerializedNode:Rct,$selectAll:nct,$setCompositionKey:Xo,$setSelection:yc,$splitNode:uct,BLUR_COMMAND:N0e,CAN_REDO_COMMAND:But,CAN_UNDO_COMMAND:Mut,CLEAR_EDITOR_COMMAND:Dut,CLEAR_HISTORY_COMMAND:Fut,CLICK_COMMAND:d0e,COMMAND_PRIORITY_CRITICAL:jct,COMMAND_PRIORITY_EDITOR:Fct,COMMAND_PRIORITY_HIGH:Lct,COMMAND_PRIORITY_LOW:Bct,COMMAND_PRIORITY_NORMAL:Mct,CONTROLLED_TEXT_INSERTION_COMMAND:gg,COPY_COMMAND:mz,CUT_COMMAND:yz,DELETE_CHARACTER_COMMAND:p_,DELETE_LINE_COMMAND:v_,DELETE_WORD_COMMAND:g_,DRAGEND_COMMAND:I0e,DRAGOVER_COMMAND:T0e,DRAGSTART_COMMAND:x0e,DROP_COMMAND:A0e,DecoratorNode:bge,ElementNode:F5,FOCUS_COMMAND:C0e,FORMAT_ELEMENT_COMMAND:Out,FORMAT_TEXT_COMMAND:zd,INDENT_CONTENT_COMMAND:Nut,INSERT_LINE_BREAK_COMMAND:sb,INSERT_PARAGRAPH_COMMAND:iM,INSERT_TAB_COMMAND:Cut,KEY_ARROW_DOWN_COMMAND:b0e,KEY_ARROW_LEFT_COMMAND:v0e,KEY_ARROW_RIGHT_COMMAND:p0e,KEY_ARROW_UP_COMMAND:y0e,KEY_BACKSPACE_COMMAND:E0e,KEY_DELETE_COMMAND:w0e,KEY_DOWN_COMMAND:h0e,KEY_ENTER_COMMAND:Sx,KEY_ESCAPE_COMMAND:S0e,KEY_MODIFIER_COMMAND:R0e,KEY_SPACE_COMMAND:_0e,KEY_TAB_COMMAND:k0e,LineBreakNode:Hv,MOVE_TO_END:g0e,MOVE_TO_START:m0e,OUTDENT_CONTENT_COMMAND:Rut,PASTE_COMMAND:pz,ParagraphNode:Gv,REDO_COMMAND:vz,REMOVE_TEXT_COMMAND:sM,RootNode:Wv,SELECTION_CHANGE_COMMAND:w5,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND:Iut,SELECT_ALL_COMMAND:aM,TabNode:$v,TextNode:_p,UNDO_COMMAND:gz,createCommand:Tut,createEditor:zct,getNearestEditorFromDOMNode:Cz,isCurrentlyReadOnlyMode:qv,isHTMLAnchorElement:cct,isHTMLElement:C5,isSelectionCapturedInDecoratorInput:Iz,isSelectionWithinEditor:NE},Symbol.toStringTag,{value:"Module"})),et=$ct,FE=et.$applyNodeReplacement,Pct=et.$copyNode,qct=et.$createNodeSelection,wa=et.$createParagraphNode,Sge=et.$createRangeSelection,wge=et.$createTabNode,tp=et.$createTextNode,AM=et.$getAdjacentNode,Wct=et.$getCharacterOffsets,b_=et.$getNearestNodeFromDOMNode,BE=et.$getNodeByKey,zz=et.$getPreviousSelection,hs=et.$getRoot,nr=et.$getSelection,Gct=et.$hasAncestor,Hz=et.$insertNodes,Hh=et.$isDecoratorNode,Ir=et.$isElementNode,Kct=et.$isLeafNode,Vct=et.$isLineBreakNode,Qi=et.$isNodeSelection,Uct=et.$isParagraphNode,fr=et.$isRangeSelection,M5=et.$isRootNode,w1=et.$isRootOrShadowRoot,ur=et.$isTextNode,Yct=et.$normalizeSelection__EXPERIMENTAL,Xct=et.$parseSerializedNode,Qct=et.$selectAll,Kv=et.$setSelection,kge=et.$splitNode,Uw=et.CAN_REDO_COMMAND,Yw=et.CAN_UNDO_COMMAND,Zct=et.CLEAR_EDITOR_COMMAND,Jct=et.CLEAR_HISTORY_COMMAND,Age=et.CLICK_COMMAND,eft=et.COMMAND_PRIORITY_CRITICAL,Ar=et.COMMAND_PRIORITY_EDITOR,xM=et.COMMAND_PRIORITY_HIGH,Jl=et.COMMAND_PRIORITY_LOW,tft=et.CONTROLLED_TEXT_INSERTION_COMMAND,xge=et.COPY_COMMAND,rft=et.CUT_COMMAND,Z3=et.DELETE_CHARACTER_COMMAND,nft=et.DELETE_LINE_COMMAND,oft=et.DELETE_WORD_COMMAND,$z=et.DRAGOVER_COMMAND,Pz=et.DRAGSTART_COMMAND,qz=et.DROP_COMMAND,ift=et.DecoratorNode,L5=et.ElementNode,sft=et.FORMAT_ELEMENT_COMMAND,aft=et.FORMAT_TEXT_COMMAND,lft=et.INDENT_CONTENT_COMMAND,Nte=et.INSERT_LINE_BREAK_COMMAND,Rte=et.INSERT_PARAGRAPH_COMMAND,uft=et.INSERT_TAB_COMMAND,cft=et.KEY_ARROW_DOWN_COMMAND,fft=et.KEY_ARROW_LEFT_COMMAND,dft=et.KEY_ARROW_RIGHT_COMMAND,hft=et.KEY_ARROW_UP_COMMAND,Tge=et.KEY_BACKSPACE_COMMAND,Ige=et.KEY_DELETE_COMMAND,Cge=et.KEY_ENTER_COMMAND,Nge=et.KEY_ESCAPE_COMMAND,pft=et.LineBreakNode,Ote=et.OUTDENT_CONTENT_COMMAND,gft=et.PASTE_COMMAND,vft=et.ParagraphNode,mft=et.REDO_COMMAND,yft=et.REMOVE_TEXT_COMMAND,bft=et.RootNode,_ft=et.SELECTION_CHANGE_COMMAND,Eft=et.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,Sft=et.SELECT_ALL_COMMAND,__=et.TextNode,wft=et.UNDO_COMMAND,ME=et.createCommand,kft=et.createEditor,Aft=et.isHTMLAnchorElement,xft=et.isHTMLElement,Tft=et.isSelectionCapturedInDecoratorInput,Ift=et.isSelectionWithinEditor,Lx=new Map;function Dte(e){let t=e;for(;t!=null;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function Fte(e){const t=e.parentNode;if(t==null)throw new Error("Should never happen");return[t,Array.from(t.childNodes).indexOf(e)]}function Cft(e,t,r,n,o){const i=t.getKey(),s=n.getKey(),a=document.createRange();let l=e.getElementByKey(i),u=e.getElementByKey(s),c=r,f=o;if(ur(t)&&(l=Dte(l)),ur(n)&&(u=Dte(u)),t===void 0||n===void 0||l===null||u===null)return null;l.nodeName==="BR"&&([l,c]=Fte(l)),u.nodeName==="BR"&&([u,f]=Fte(u));const d=l.firstChild;l===u&&d!=null&&d.nodeName==="BR"&&c===0&&f===0&&(f=1);try{a.setStart(l,c),a.setEnd(u,f)}catch{return null}return!a.collapsed||c===f&&i===s||(a.setStart(u,f),a.setEnd(l,c)),a}function Nft(e,t){const r=e.getRootElement();if(r===null)return[];const n=r.getBoundingClientRect(),o=getComputedStyle(r),i=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),s=Array.from(t.getClientRects());let a,l=s.length;s.sort((u,c)=>{const f=u.top-c.top;return Math.abs(f)<=3?u.left-c.left:f});for(let u=0;uc.top&&a.left+a.width>c.left,d=c.width+i===n.width;f||d?(s.splice(u--,1),l--):a=c}return s}function Rge(e){const t={},r=e.split(";");for(const n of r)if(n!==""){const[o,i]=n.split(/:([^]+)/);o&&i&&(t[o.trim()]=i.trim())}return t}function j5(e){let t=Lx.get(e);return t===void 0&&(t=Rge(e),Lx.set(e,t)),t}function Rft(e){const t=e.constructor.clone(e);return t.__parent=e.__parent,t.__next=e.__next,t.__prev=e.__prev,Ir(e)&&Ir(t)?(n=e,(r=t).__first=n.__first,r.__last=n.__last,r.__size=n.__size,r.__format=n.__format,r.__indent=n.__indent,r.__dir=n.__dir,r):ur(e)&&ur(t)?function(o,i){return o.__format=i.__format,o.__style=i.__style,o.__mode=i.__mode,o.__detail=i.__detail,o}(t,e):t;var r,n}function Oft(e,t){const r=e.getStartEndPoints();if(t.isSelected(e)&&!t.isSegmented()&&!t.isToken()&&r!==null){const[n,o]=r,i=e.isBackward(),s=n.getNode(),a=o.getNode(),l=t.is(s),u=t.is(a);if(l||u){const[c,f]=Wct(e),d=s.is(a),h=t.is(i?a:s),g=t.is(i?s:a);let v,y=0;return d?(y=c>f?f:c,v=c>f?c:f):h?(y=i?f:c,v=void 0):g&&(y=0,v=i?c:f),t.__text=t.__text.slice(y,v),t}}return t}function Dft(e){if(e.type==="text")return e.offset===e.getNode().getTextContentSize();const t=e.getNode();if(!Ir(t))throw Error("isAtNodeEnd: node must be a TextNode or ElementNode");return e.offset===t.getChildrenSize()}function Fft(e,t,r){let n=t.getNode(),o=r;if(Ir(n)){const i=n.getDescendantByIndex(t.offset);i!==null&&(n=i)}for(;o>0&&n!==null;){if(Ir(n)){const u=n.getLastDescendant();u!==null&&(n=u)}let i=n.getPreviousSibling(),s=0;if(i===null){let u=n.getParentOrThrow(),c=u.getPreviousSibling();for(;c===null;){if(u=u.getParent(),u===null){i=null;break}c=u.getPreviousSibling()}u!==null&&(s=u.isInline()?0:2,i=c)}let a=n.getTextContent();a===""&&Ir(n)&&!n.isInline()&&(a=` +`?n.push(rv()):s===" "?n.push(D5()):n.push(fi(s))}this.insertNodes(n)}insertText(t){const r=this.anchor,n=this.focus,o=this.isCollapsed()||r.isBefore(n),i=this.format,s=this.style;o&&r.type==="element"?yte(r,n,i,s):o||n.type!=="element"||yte(n,r,i,s);const a=this.getNodes(),l=a.length,u=o?n:r,c=(o?r:n).offset,f=u.offset;let d=a[0];vt(d)||ft(26);const h=d.getTextContent().length,g=d.getParentOrThrow();let v=a[l-1];if(this.isCollapsed()&&c===h&&(d.isSegmented()||d.isToken()||!d.canInsertTextAfter()||!g.canInsertTextAfter()&&d.getNextSibling()===null)){let y=d.getNextSibling();if(vt(y)&&y.canInsertTextBefore()&&!cM(y)||(y=fi(),y.setFormat(i),g.canInsertTextAfter()?d.insertAfter(y):g.insertAfter(y)),y.select(0,0),d=y,t!=="")return void this.insertText(t)}else if(this.isCollapsed()&&c===0&&(d.isSegmented()||d.isToken()||!d.canInsertTextBefore()||!g.canInsertTextBefore()&&d.getPreviousSibling()===null)){let y=d.getPreviousSibling();if(vt(y)&&!cM(y)||(y=fi(),y.setFormat(i),g.canInsertTextBefore()?d.insertBefore(y):g.insertBefore(y)),y.select(),d=y,t!=="")return void this.insertText(t)}else if(d.isSegmented()&&c!==h){const y=fi(d.getTextContent());y.setFormat(i),d.replace(y),d=y}else if(!this.isCollapsed()&&t!==""){const y=v.getParent();if(!g.canInsertTextBefore()||!g.canInsertTextAfter()||qe(y)&&(!y.canInsertTextBefore()||!y.canInsertTextAfter()))return this.insertText(""),pge(this.anchor,this.focus,null),void this.insertText(t)}if(l===1){if(d.isToken()){const S=fi(t);return S.select(),void d.replace(S)}const y=d.getFormat(),E=d.getStyle();if(c!==f||y===i&&E===s){if(hge(d)){const S=fi(t);return S.setFormat(i),S.setStyle(s),S.select(),void d.replace(S)}}else{if(d.getTextContent()!==""){const S=fi(t);if(S.setFormat(i),S.setStyle(s),S.select(),c===0)d.insertBefore(S,!1);else{const[b]=d.splitText(c);b.insertAfter(S,!1)}return void(S.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length))}d.setFormat(i),d.setStyle(s)}const _=f-c;d=d.spliceText(c,_,t,!0),d.getTextContent()===""?d.remove():this.anchor.type==="text"&&(d.isComposing()?this.anchor.offset-=t.length:(this.format=y,this.style=E))}else{const y=new Set([...d.getParentKeys(),...v.getParentKeys()]),E=qe(d)?d:d.getParentOrThrow();let _=qe(v)?v:v.getParentOrThrow(),S=v;if(!E.is(_)&&_.isInline())do S=_,_=_.getParentOrThrow();while(_.isInline());if(u.type==="text"&&(f!==0||v.getTextContent()==="")||u.type==="element"&&v.getIndexWithinParent()=0;I--){const C=b[I];if(C.is(d)||qe(C)&&C.isParentOf(d))break;C.isAttached()&&(!k.has(C)||C.is(S)?T||x.insertAfter(C,!1):C.remove())}if(!T){let I=_,C=null;for(;I!==null;){const R=I.getChildren(),D=R.length;(D===0||R[D-1].is(C))&&(y.delete(I.__key),C=I),I=I.getParent()}}if(d.isToken())if(c===h)d.select();else{const I=fi(t);I.select(),d.replace(I)}else d=d.spliceText(c,h-c,t,!0),d.getTextContent()===""?d.remove():d.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=t.length);for(let I=1;I0&&(y!==v.getTextContentSize()&&([v]=v.splitText(y)),v.setFormat(E));for(let _=c+1;_(qe(g)||no(g))&&!g.isInline())){qe(r)||ft(135);const g=X3(this);return r.splice(g,0,t),void n.selectEnd()}const o=function(g){const v=jf();let y=null;for(let E=0;E"__value"in g&&"__checked"in g,l=!qe(r)||!r.isEmpty()?this.insertParagraph():null,u=s[s.length-1];let c=s[0];var f;qe(f=c)&&y0(f)&&!f.isEmpty()&&qe(r)&&(!r.isEmpty()||a(r))&&(qe(r)||ft(135),r.append(...c.getChildren()),c=s[1]),c&&function(g,v,y){const E=y||v.getParentOrThrow().getLastChild();let _=v;const S=[v];for(;_!==E;)_.getNextSibling()||ft(140),_=_.getNextSibling(),S.push(_);let b=g;for(const k of S)b=b.insertAfter(k)}(r,c);const d=W3(i,y0);l&&qe(d)&&(a(l)||y0(u))&&(d.append(...l.getChildren()),l.remove()),qe(r)&&r.isEmpty()&&r.remove(),i.selectEnd();const h=qe(r)?r.getLastChild():null;zh(h)&&d!==r&&h.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=jf();return Ca().splice(this.anchor.offset,0,[s]),s.select(),s}const t=X3(this),r=W3(this.anchor.getNode(),y0);qe(r)||ft(136);const n=r.getChildAtIndex(t),o=n?[n,...n.getNextSiblings()]:[],i=r.insertNewAfter(this,!1);return i?(i.append(...o),i.selectStart(),i):null}insertLineBreak(t){const r=rv();if(this.insertNodes([r]),t){const n=r.getParentOrThrow(),o=r.getIndexWithinParent();n.select(o,o)}}extract(){const t=this.getNodes(),r=t.length,n=r-1,o=this.anchor,i=this.focus;let s=t[0],a=t[n];const[l,u]=kM(this);if(r===0)return[];if(r===1){if(vt(s)&&!this.isCollapsed()){const f=l>u?u:l,d=l>u?l:u,h=s.splitText(f,d),g=f===0?h[0]:h[1];return g!=null?[g]:[]}return[s]}const c=o.isBefore(i);if(vt(s)){const f=c?l:u;f===s.getTextContentSize()?t.shift():f!==0&&([,s]=s.splitText(f),t[0]=s)}if(vt(a)){const f=a.getTextContent().length,d=c?u:l;d===0?t.pop():d!==f&&([a]=a.splitText(d),t[n]=a)}return t}modify(t,r,n){const o=this.focus,i=this.anchor,s=t==="move",a=dM(o,r);if(no(a)&&!a.isIsolated()){if(s&&a.isKeyboardSelectable()){const h=AM();return h.add(a.__key),void yc(h)}const d=r?a.getPreviousSibling():a.getNextSibling();if(vt(d)){const h=d.__key,g=r?d.getTextContent().length:0;return o.set(h,g,"text"),void(s&&i.set(h,g,"text"))}{const h=a.getParentOrThrow();let g,v;return qe(d)?(v=d.__key,g=r?d.getChildrenSize():0):(g=a.getIndexWithinParent(),v=h.__key,r||g++),o.set(v,g,"element"),void(s&&i.set(v,g,"element"))}}const l=jn(),u=bc(l._window);if(!u)return;const c=l._blockCursorElement,f=l._rootElement;if(f===null||c===null||!qe(a)||a.isInline()||a.canBeEmpty()||Bz(c,l,f),function(d,h,g,v){d.modify(h,g,v)}(u,t,r?"backward":"forward",n),u.rangeCount>0){const d=u.getRangeAt(0),h=this.anchor.getNode(),g=Sa(h)?h:Y0e(h);if(this.applyDOMRange(d),this.dirty=!0,!s){const v=this.getNodes(),y=[];let E=!1;for(let _=0;_0)if(r){const _=y[0];qe(_)?_.selectStart():_.getParentOrThrow().selectStart()}else{const _=y[y.length-1];qe(_)?_.selectEnd():_.getParentOrThrow().selectEnd()}u.anchorNode===d.startContainer&&u.anchorOffset===d.startOffset||function(_){const S=_.focus,b=_.anchor,k=b.key,T=b.offset,x=b.type;Cd(b,S.key,S.offset,S.type),Cd(S,k,T,x),_._cachedNodes=null}(this)}}}forwardDeletion(t,r,n){if(!n&&(t.type==="element"&&qe(r)&&t.offset===r.getChildrenSize()||t.type==="text"&&t.offset===r.getTextContentSize())){const o=r.getParent(),i=r.getNextSibling()||(o===null?null:o.getNextSibling());if(qe(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(t){const r=this.isCollapsed();if(this.isCollapsed()){const n=this.anchor;let o=n.getNode();if(this.forwardDeletion(n,o,t))return;const i=this.focus,s=dM(i,t);if(no(s)&&!s.isIsolated()){if(s.isKeyboardSelectable()&&qe(o)&&o.getChildrenSize()===0){o.remove();const a=AM();a.add(s.__key),yc(a)}else s.remove(),jn().dispatchCommand(k5,void 0);return}if(!t&&qe(s)&&qe(o)&&o.isEmpty())return o.remove(),void s.selectStart();if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&n.offset===0&&(n.type==="element"?n.getNode():n.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const a=i.type==="text"?i.getNode():null;if(o=n.type==="text"?n.getNode():null,a!==null&&a.isSegmented()){const l=i.offset,u=a.getTextContentSize();if(a.is(o)||t&&l!==u||!t&&l!==0)return void _te(a,t,l)}else if(o!==null&&o.isSegmented()){const l=n.offset,u=o.getTextContentSize();if(o.is(a)||t&&l!==0||!t&&l!==u)return void _te(o,t,l)}(function(l,u){const c=l.anchor,f=l.focus,d=c.getNode(),h=f.getNode();if(d===h&&c.type==="text"&&f.type==="text"){const g=c.offset,v=f.offset,y=gr||c){o.splice(u,1),c&&(a=void 0);break}}const l=o.join("").trim();l===""?n.remove():(n.setTextContent(l),n.select(a,a))}function Ete(e,t,r,n){let o,i=t;if(e.nodeType===CE){let s=!1;const a=e.childNodes,l=a.length;i===l&&(s=!0,i=l-1);let u=a[i],c=!1;if(u===n._blockCursorElement?(u=a[i+1],c=!0):n._blockCursorElement!==null&&i--,o=G0(u),vt(o))i=rte(o,s);else{let f=G0(e);if(f===null)return null;if(qe(f)){let d=f.getChildAtIndex(i);if(qe(d)&&function(h,g,v){const y=h.getParent();return v===null||y===null||!y.canBeEmpty()||y!==v.getNode()}(d,0,r)){const h=s?d.getLastDescendant():d.getFirstDescendant();h===null?(f=d,i=0):(d=h,f=qe(d)?d:d.getParentOrThrow())}vt(d)?(o=d,f=null,i=rte(d,s)):d!==f&&s&&!c&&i++}else{const d=f.getIndexWithinParent();i=t===0&&no(f)&&G0(e)===f?d:d+1,f=f.getParentOrThrow()}if(qe(f))return vu(f.__key,i,"element")}}else o=G0(e);return vt(o)?vu(o.__key,i,"text"):null}function Ste(e,t,r){const n=e.offset,o=e.getNode();if(n===0){const i=o.getPreviousSibling(),s=o.getParent();if(t){if((r||!t)&&i===null&&qe(s)&&s.isInline()){const a=s.getPreviousSibling();vt(a)&&(e.key=a.__key,e.offset=a.getTextContent().length)}}else qe(i)&&!r&&i.isInline()?(e.key=i.__key,e.offset=i.getChildrenSize(),e.type="element"):vt(i)&&(e.key=i.__key,e.offset=i.getTextContent().length)}else if(n===o.getTextContent().length){const i=o.getNextSibling(),s=o.getParent();if(t&&qe(i)&&i.isInline())e.key=i.__key,e.offset=0,e.type="element";else if((r||t)&&i===null&&qe(s)&&s.isInline()&&!s.canInsertTextAfter()){const a=s.getNextSibling();vt(a)&&(e.key=a.__key,e.offset=0)}}}function pge(e,t,r){if(e.type==="text"&&t.type==="text"){const n=e.isBefore(t),o=e.is(t);Ste(e,n,o),Ste(t,!n,o),o&&(t.key=e.key,t.offset=e.offset,t.type=e.type);const i=jn();if(i.isComposing()&&i._compositionKey!==e.key&&Vt(r)){const s=r.anchor,a=r.focus;Cd(e,s.key,s.offset,s.type),Cd(t,a.key,a.offset,a.type)}}}function gge(e,t,r,n,o,i){if(e===null||r===null||!NE(o,e,r))return null;const s=Ete(e,t,Vt(i)?i.anchor:null,o);if(s===null)return null;const a=Ete(r,n,Vt(i)?i.focus:null,o);if(a===null)return null;if(s.type==="element"&&a.type==="element"){const l=G0(e),u=G0(r);if(no(l)&&no(u))return null}return pge(s,a,i),[s,a]}function Cct(e){return qe(e)&&!e.isInline()}function vge(e,t,r,n,o,i){const s=Rc(),a=new F1(vu(e,t,o),vu(r,n,i),0,"");return a.dirty=!0,s._selection=a,a}function Nct(){const e=vu("root",0,"element"),t=vu("root",0,"element");return new F1(e,t,0,"")}function AM(){return new F5(new Set)}function Lz(e,t,r,n){const o=r._window;if(o===null)return null;const i=n||o.event,s=i?i.type:void 0,a=s==="selectionchange",l=!uM&&(a||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let u,c,f,d;if(Vt(e)&&!l)return e.clone();if(t===null)return null;if(u=t.anchorNode,c=t.focusNode,f=t.anchorOffset,d=t.focusOffset,a&&Vt(e)&&!NE(r,u,c))return e.clone();const h=gge(u,f,c,d,r,e);if(h===null)return null;const[g,v]=h;return new F1(g,v,Vt(e)?e.format:0,Vt(e)?e.style:"")}function pn(){return Rc()._selection}function Pv(){return jn()._editorState._selection}function Mx(e,t,r,n=1){const o=e.anchor,i=e.focus,s=o.getNode(),a=i.getNode();if(!t.is(s)&&!t.is(a))return;const l=t.__key;if(e.isCollapsed()){const u=o.offset;if(r<=u&&n>0||r0||r0||r=a,u=l?i.getChildAtIndex(a-1):i.getChildAtIndex(r);if(vt(u)){let c=0;l&&(c=u.getTextContentSize()),t.set(u.__key,c,"text"),n.set(u.__key,c,"text")}}else{if(qe(i)){const a=i.getChildrenSize(),l=r>=a,u=l?i.getChildAtIndex(a-1):i.getChildAtIndex(r);if(vt(u)){let c=0;l&&(c=u.getTextContentSize()),t.set(u.__key,c,"text")}}if(qe(s)){const a=s.getChildrenSize(),l=o>=a,u=l?s.getChildAtIndex(a-1):s.getChildAtIndex(o);if(vt(u)){let c=0;l&&(c=u.getTextContentSize()),n.set(u.__key,c,"text")}}}}function Lx(e,t,r,n,o){let i=null,s=0,a=null;n!==null?(i=n.__key,vt(n)?(s=n.getTextContentSize(),a="text"):qe(n)&&(s=n.getChildrenSize(),a="element")):o!==null&&(i=o.__key,vt(o)?a="text":qe(o)&&(a="element")),i!==null&&a!==null?e.set(i,s,a):(s=t.getIndexWithinParent(),s===-1&&(s=r.getChildrenSize()),e.set(r.__key,s,"element"))}function kte(e,t,r,n,o){e.type==="text"?(e.key=r,t||(e.offset+=o)):e.offset>n.getIndexWithinParent()&&(e.offset-=1)}function Rct(e,t,r,n,o,i,s){const a=n.anchorNode,l=n.focusNode,u=n.anchorOffset,c=n.focusOffset,f=document.activeElement;if(o.has("collaboration")&&f!==i||f!==null&&Cz(f))return;if(!Vt(t))return void(e!==null&&NE(r,a,l)&&n.removeAllRanges());const d=t.anchor,h=t.focus,g=d.key,v=h.key,y=Nx(r,g),E=Nx(r,v),_=d.offset,S=h.offset,b=t.format,k=t.style,T=t.isCollapsed();let x=y,I=E,C=!1;if(d.type==="text"){x=Ix(y);const z=d.getNode();C=z.getFormat()!==b||z.getStyle()!==k}else Vt(e)&&e.anchor.type==="text"&&(C=!0);var R,D,L,M,W;if(h.type==="text"&&(I=Ix(E)),x!==null&&I!==null&&(T&&(e===null||C||Vt(e)&&(e.format!==b||e.style!==k))&&(R=b,D=k,L=_,M=g,W=performance.now(),sge=[R,D,L,M,W]),u!==_||c!==S||a!==x||l!==I||n.type==="Range"&&T||(f!==null&&i.contains(f)||i.focus({preventScroll:!0}),d.type==="element"))){try{n.setBaseAndExtent(x,_,I,S)}catch{}if(!o.has("skip-scroll-into-view")&&t.isCollapsed()&&i!==null&&i===document.activeElement){const z=t instanceof F1&&t.anchor.type==="element"?x.childNodes[_]||null:n.rangeCount>0?n.getRangeAt(0):null;if(z!==null){let F;if(z instanceof Text){const P=document.createRange();P.selectNode(z),F=P.getBoundingClientRect()}else F=z.getBoundingClientRect();(function(P,K,V){const Z=V.ownerDocument,J=Z.defaultView;if(J===null)return;let{top:ee,bottom:de}=K,ge=0,Se=0,Re=V;for(;Re!==null;){const ve=Re===Z.body;if(ve)ge=0,Se=C5(P).innerHeight;else{const me=Re.getBoundingClientRect();ge=me.top,Se=me.bottom}let Ee=0;if(eeSe&&(Ee=de-Se),Ee!==0)if(ve)J.scrollBy(0,Ee);else{const me=Re.scrollTop;Re.scrollTop+=Ee;const we=Re.scrollTop-me;ee-=we,de-=we}if(ve)break;Re=I5(Re)}})(r,F,i)}}EM=!0}}function Oct(e){let t=pn()||Pv();t===null&&(t=Ca().selectEnd()),t.insertNodes(e)}function Dct(){const e=pn();return e===null?"":e.getTextContent()}function X3(e){e.isCollapsed()||e.removeText();const t=e.anchor;let r=t.getNode(),n=t.offset;for(;!y0(r);)[r,n]=Fct(r,n);return n}function Fct(e,t){const r=e.getParent();if(!r){const o=jf();return Ca().append(o),o.select(),[Ca(),0]}if(vt(e)){const o=e.splitText(t);if(o.length===0)return[r,e.getIndexWithinParent()];const i=t===0?0:1;return[r,o[0].getIndexWithinParent()+i]}if(!qe(e)||t===0)return[r,e.getIndexWithinParent()];const n=e.getChildAtIndex(t);if(n){const o=new F1(vu(e.__key,t,"element"),vu(e.__key,t,"element"),0,""),i=e.insertNewAfter(o);i&&i.append(n,...n.getNextSiblings())}return[r,e.getIndexWithinParent()+1]}let Qo=null,Zo=null,zs=!1,Q3=!1,Uk=0;const Ate={characterData:!0,childList:!0,subtree:!0};function qv(){return zs||Qo!==null&&Qo._readOnly}function ts(){zs&&ft(13)}function mge(){Uk>99&&ft(14)}function Rc(){return Qo===null&&ft(15),Qo}function jn(){return Zo===null&&ft(16),Zo}function Bct(){return Zo}function xte(e,t,r){const n=t.__type,o=function(a,l){const u=a._nodes.get(l);return u===void 0&&ft(30,l),u}(e,n);let i=r.get(n);i===void 0&&(i=Array.from(o.transforms),r.set(n,i));const s=i.length;for(let a=0;a{o=yge(e,t,r)}),o}const n=Rz(e);for(let o=4;o>=0;o--)for(let i=0;i0||L>0;){if(R>0){S._dirtyLeaves=new Set;for(const M of C){const W=T.get(M);vt(W)&&W.isAttached()&&W.isSimpleText()&&!W.isUnmergeable()&&Jee(W),W!==void 0&&Tte(W,x)&&xte(S,W,I),b.add(M)}if(C=S._dirtyLeaves,R=C.size,R>0){Uk++;continue}}S._dirtyLeaves=new Set,S._dirtyElements=new Map;for(const M of D){const W=M[0],z=M[1];if(W!=="root"&&!z)continue;const F=T.get(W);F!==void 0&&Tte(F,x)&&xte(S,F,I),k.set(W,z)}C=S._dirtyLeaves,R=C.size,D=S._dirtyElements,L=D.size,Uk++}S._dirtyLeaves=b,S._dirtyElements=k}(u,e),Cte(e),function(_,S,b,k){const T=_._nodeMap,x=S._nodeMap,I=[];for(const[C]of k){const R=x.get(C);R!==void 0&&(R.isAttached()||(qe(R)&&Q0e(R,C,T,x,I,k),T.has(C)||k.delete(C),I.push(C)))}for(const C of I)x.delete(C);for(const C of b){const R=x.get(C);R===void 0||R.isAttached()||(T.has(C)||b.delete(C),x.delete(C))}}(l,u,e._dirtyLeaves,e._dirtyElements)),y!==e._compositionKey&&(u._flushSync=!0);const E=u._selection;if(Vt(E)){const _=u._nodeMap,S=E.anchor.key,b=E.focus.key;_.get(S)!==void 0&&_.get(b)!==void 0||ft(19)}else DE(E)&&E._nodes.size===0&&(u._selection=null)}catch(y){return y instanceof Error&&e._onError(y),e._pendingEditorState=l,e._dirtyType=tv,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Hh(e)}finally{Qo=f,zs=d,Zo=h,e._updating=g,Uk=0}e._dirtyType!==ep||function(y,E){const _=E.getEditorState()._selection,S=y._selection;if(S!==null){if(S.dirty||!S.is(_))return!0}else if(_!==null)return!0;return!1}(u,e)?u._flushSync?(u._flushSync=!1,Hh(e)):c&&oct(()=>{Hh(e)}):(u._flushSync=!1,c&&(n.clear(),e._deferred=[],e._pendingEditorState=null))}function fa(e,t,r){e._updating?e._updates.push([t,r]):bge(e,t,r)}class _ge extends O5{constructor(t){super(t)}decorate(t,r){ft(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function no(e){return e instanceof _ge}class B5 extends O5{constructor(t){super(t),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__indent=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return Xut[t]||""}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r),r=r.getNextSibling();return t}getChildrenKeys(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r.__key),r=r.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const t=jn()._dirtyElements;return t!==null&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(t)}getAllTextNodes(){const t=[];let r=this.getFirstChild();for(;r!==null;){if(vt(r)&&t.push(r),qe(r)){const n=r.getAllTextNodes();t.push(...n)}r=r.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;qe(t);){const r=t.getFirstChild();if(r===null)break;t=r}return t}getLastDescendant(){let t=this.getLastChild();for(;qe(t);){const r=t.getLastChild();if(r===null)break;t=r}return t}getDescendantByIndex(t){const r=this.getChildren(),n=r.length;if(t>=n){const i=r[n-1];return qe(i)&&i.getLastDescendant()||i||null}const o=r[t];return qe(o)&&o.getFirstDescendant()||o||null}getFirstChild(){const t=this.getLatest().__first;return t===null?null:Di(t)}getFirstChildOrThrow(){const t=this.getFirstChild();return t===null&&ft(45,this.__key),t}getLastChild(){const t=this.getLatest().__last;return t===null?null:Di(t)}getLastChildOrThrow(){const t=this.getLastChild();return t===null&&ft(96,this.__key),t}getChildAtIndex(t){const r=this.getChildrenSize();let n,o;if(t=t;){if(o===t)return n;n=n.getPreviousSibling(),o--}return null}getTextContent(){let t="";const r=this.getChildren(),n=r.length;for(let o=0;or.remove()),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const r=this.getWritable();return r.__dir=t,r}setFormat(t){return this.getWritable().__format=t!==""?Xee[t]:0,this}setIndent(t){return this.getWritable().__indent=t,this}splice(t,r,n){const o=n.length,i=this.getChildrenSize(),s=this.getWritable(),a=s.__key,l=[],u=[],c=this.getChildAtIndex(t+r);let f=null,d=i-r+o;if(t!==0)if(t===i)f=this.getLastChild();else{const g=this.getChildAtIndex(t);g!==null&&(f=g.getPreviousSibling())}if(r>0){let g=f===null?this.getFirstChild():f.getNextSibling();for(let v=0;v({root:Ege(Ca())}))}}class Gv extends B5{static getType(){return"paragraph"}static clone(t){return new Gv(t.__key)}createDOM(t){const r=document.createElement("p"),n=ab(t.theme,"paragraph");return n!==void 0&&r.classList.add(...n),r}updateDOM(t,r,n){return!1}static importDOM(){return{p:t=>({conversion:Lct,priority:0})}}exportDOM(t){const{element:r}=super.exportDOM(t);if(r&&N5(r)){this.isEmpty()&&r.append(document.createElement("br"));const n=this.getFormatType();r.style.textAlign=n;const o=this.getDirection();o&&(r.dir=o);const i=this.getIndent();i>0&&(r.style.textIndent=20*i+"px")}return{element:r}}static importJSON(t){const r=jf();return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(t,r){const n=jf(),o=this.getDirection();return n.setDirection(o),this.insertAfter(n,r),n}collapseAtStart(){const t=this.getChildren();if(t.length===0||vt(t[0])&&t[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function Lct(e){const t=jf();if(e.style){t.setFormat(e.style.textAlign);const r=parseInt(e.style.textIndent,10)/20;r>0&&t.setIndent(r)}return{node:t}}function jf(){return OE(new Gv)}function jct(e){return e instanceof Gv}const zct=0,Hct=1,$ct=2,Pct=3,qct=4;function Sge(e,t,r,n){const o=e._keyToDOMMap;o.clear(),e._editorState=zz(),e._pendingEditorState=n,e._compositionKey=null,e._dirtyType=ep,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const i=e._observer;i!==null&&(i.disconnect(),e._observer=null),t!==null&&(t.textContent=""),r!==null&&(r.textContent="",o.set("root",r))}function Wct(e){const t=e||{},r=Bct(),n=t.theme||{},o=e===void 0?r:t.parentEditor||null,i=t.disableEvents||!1,s=zz(),a=t.namespace||(o!==null?o._config.namespace:K0e()),l=t.editorState,u=[Wv,Ep,Hv,$v,Gv,...t.nodes||[]],{onError:c,html:f}=t,d=t.editable===void 0||t.editable;let h;if(e===void 0&&r!==null)h=r._nodes;else{h=new Map;for(let v=0;v{Object.keys(b).forEach(k=>{let T=E.get(k);T===void 0&&(T=[],E.set(k,T)),T.push(b[k])})};return v.forEach(b=>{const k=b.klass.importDOM;if(k==null||_.has(k))return;_.add(k);const T=k.call(b.klass);T!==null&&S(T)}),y&&S(y),E}(h,f?f.import:void 0),d);return l!==void 0&&(g._pendingEditorState=l,g._dirtyType=tv),g}class Gct{constructor(t,r,n,o,i,s,a){this._parentEditor=r,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=o,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=ep,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=K0e(),this._onError=i,this._htmlConversions=s,this._editable=a,this._headless=r!==null&&r._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(t){const r=this._listeners.update;return r.add(t),()=>{r.delete(t)}}registerEditableListener(t){const r=this._listeners.editable;return r.add(t),()=>{r.delete(t)}}registerDecoratorListener(t){const r=this._listeners.decorator;return r.add(t),()=>{r.delete(t)}}registerTextContentListener(t){const r=this._listeners.textcontent;return r.add(t),()=>{r.delete(t)}}registerRootListener(t){const r=this._listeners.root;return t(this._rootElement,null),r.add(t),()=>{t(null,this._rootElement),r.delete(t)}}registerCommand(t,r,n){n===void 0&&ft(35);const o=this._commands;o.has(t)||o.set(t,[new Set,new Set,new Set,new Set,new Set]);const i=o.get(t);i===void 0&&ft(36,String(t));const s=i[n];return s.add(r),()=>{s.delete(r),i.every(a=>a.size===0)&&o.delete(t)}}registerMutationListener(t,r){this._nodes.get(t.getType())===void 0&&ft(37,t.name);const n=this._listeners.mutation;return n.set(r,t),()=>{n.delete(r)}}registerNodeTransformToKlass(t,r){const n=t.getType(),o=this._nodes.get(n);return o===void 0&&ft(37,t.name),o.transforms.add(r),o}registerNodeTransform(t,r){const n=this.registerNodeTransformToKlass(t,r),o=[n],i=n.replaceWithKlass;if(i!=null){const l=this.registerNodeTransformToKlass(i,r);o.push(l)}var s,a;return s=this,a=t.getType(),fa(s,()=>{const l=Rc();if(l.isEmpty())return;if(a==="root")return void Ca().markDirty();const u=l._nodeMap;for(const[,c]of u)c.markDirty()},s._pendingEditorState===null?{tag:"history-merge"}:void 0),()=>{o.forEach(l=>l.transforms.delete(r))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,r){return ct(this,t,r)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const r=this._rootElement;if(t!==r){const n=ab(this._config.theme,"root"),o=this._pendingEditorState||this._editorState;if(this._rootElement=t,Sge(this,r,t,o),r!==null&&(this._config.disableEvents||_ct(r),n!=null&&r.classList.remove(...n)),t!==null){const i=function(a){const l=a.ownerDocument;return l&&l.defaultView||null}(t),s=t.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=tv,z0e(this),this._updateTags.add("history-merge"),Hh(this),this._config.disableEvents||function(a,l){const u=a.ownerDocument,c=Bx.get(u);c===void 0&&u.addEventListener("selectionchange",cge),Bx.set(u,c||1),a.__lexicalEditor=l;const f=uge(a);for(let d=0;d<_M.length;d++){const[h,g]=_M[d],v=typeof g=="function"?y=>{dte(y)||(fte(y),(l.isEditable()||h==="click")&&g(y,l))}:y=>{if(!dte(y)&&(fte(y),l.isEditable()))switch(h){case"cut":return ct(l,bz,y);case"copy":return ct(l,yz,y);case"paste":return ct(l,gz,y);case"dragstart":return ct(l,T0e,y);case"dragover":return ct(l,I0e,y);case"dragend":return ct(l,C0e,y);case"focus":return ct(l,N0e,y);case"blur":return ct(l,R0e,y);case"drop":return ct(l,x0e,y)}};a.addEventListener(h,v),f.push(()=>{a.removeEventListener(h,v)})}}(t,this),n!=null&&t.classList.add(...n)}else this._editorState=o,this._pendingEditorState=null,this._window=null;cb("root",this,!1,t,r)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(t,r){t.isEmpty()&&ft(38),j0e(this);const n=this._pendingEditorState,o=this._updateTags,i=r!==void 0?r.tag:null;n===null||n.isEmpty()||(i!=null&&o.add(i),Hh(this)),this._pendingEditorState=t,this._dirtyType=tv,this._dirtyElements.set("root",!1),this._compositionKey=null,i!=null&&o.add(i),Hh(this)}parseEditorState(t,r){return function(n,o,i){const s=zz(),a=Qo,l=zs,u=Zo,c=o._dirtyElements,f=o._dirtyLeaves,d=o._cloneNotNeeded,h=o._dirtyType;o._dirtyElements=new Map,o._dirtyLeaves=new Set,o._cloneNotNeeded=new Set,o._dirtyType=0,Qo=s,zs=!1,Zo=o;try{const g=o._nodes;jz(n.root,g),i&&i(),s._readOnly=!0}catch(g){g instanceof Error&&o._onError(g)}finally{o._dirtyElements=c,o._dirtyLeaves=f,o._cloneNotNeeded=d,o._dirtyType=h,Qo=a,zs=l,Zo=u}return s}(typeof t=="string"?JSON.parse(t):t,this,r)}update(t,r){fa(this,t,r)}focus(t,r={}){const n=this._rootElement;n!==null&&(n.setAttribute("autocapitalize","off"),fa(this,()=>{const o=pn(),i=Ca();o!==null?o.dirty=!0:i.getChildrenSize()!==0&&(r.defaultSelection==="rootStart"?i.selectStart():i.selectEnd())},{onUpdate:()=>{n.removeAttribute("autocapitalize"),t&&t()},tag:"focus"}),this._pendingEditorState===null&&n.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;t!==null&&t.blur();const r=bc(this._window);r!==null&&r.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,cb("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}const Kct=Object.freeze(Object.defineProperty({__proto__:null,$addUpdateTag:fct,$applyNodeReplacement:OE,$copyNode:X0e,$createLineBreakNode:rv,$createNodeSelection:AM,$createParagraphNode:jf,$createPoint:vu,$createRangeSelection:Nct,$createTabNode:D5,$createTextNode:fi,$getAdjacentNode:dM,$getCharacterOffsets:kM,$getEditor:vct,$getNearestNodeFromDOMNode:RE,$getNearestRootOrShadowRoot:Y0e,$getNodeByKey:Di,$getPreviousSelection:Pv,$getRoot:Ca,$getSelection:pn,$getTextContent:Dct,$hasAncestor:Rx,$hasUpdateTag:cct,$insertNodes:Oct,$isBlockElementNode:Cct,$isDecoratorNode:no,$isElementNode:qe,$isInlineElementOrDecoratorNode:dct,$isLeafNode:sct,$isLineBreakNode:zh,$isNodeSelection:DE,$isParagraphNode:jct,$isRangeSelection:Vt,$isRootNode:Sa,$isRootOrShadowRoot:_1,$isTabNode:hge,$isTextNode:vt,$nodesOfType:uct,$normalizeSelection__EXPERIMENTAL:H0e,$parseSerializedNode:Mct,$selectAll:lct,$setCompositionKey:Xo,$setSelection:yc,$splitNode:pct,BLUR_COMMAND:R0e,CAN_REDO_COMMAND:Hut,CAN_UNDO_COMMAND:$ut,CLEAR_EDITOR_COMMAND:jut,CLEAR_HISTORY_COMMAND:zut,CLICK_COMMAND:h0e,COMMAND_PRIORITY_CRITICAL:qct,COMMAND_PRIORITY_EDITOR:zct,COMMAND_PRIORITY_HIGH:Pct,COMMAND_PRIORITY_LOW:Hct,COMMAND_PRIORITY_NORMAL:$ct,CONTROLLED_TEXT_INSERTION_COMMAND:gg,COPY_COMMAND:yz,CUT_COMMAND:bz,DELETE_CHARACTER_COMMAND:p_,DELETE_LINE_COMMAND:v_,DELETE_WORD_COMMAND:g_,DRAGEND_COMMAND:C0e,DRAGOVER_COMMAND:I0e,DRAGSTART_COMMAND:T0e,DROP_COMMAND:x0e,DecoratorNode:_ge,ElementNode:B5,FOCUS_COMMAND:N0e,FORMAT_ELEMENT_COMMAND:Lut,FORMAT_TEXT_COMMAND:zd,INDENT_CONTENT_COMMAND:But,INSERT_LINE_BREAK_COMMAND:sb,INSERT_PARAGRAPH_COMMAND:sM,INSERT_TAB_COMMAND:Fut,KEY_ARROW_DOWN_COMMAND:_0e,KEY_ARROW_LEFT_COMMAND:m0e,KEY_ARROW_RIGHT_COMMAND:g0e,KEY_ARROW_UP_COMMAND:b0e,KEY_BACKSPACE_COMMAND:S0e,KEY_DELETE_COMMAND:k0e,KEY_DOWN_COMMAND:p0e,KEY_ENTER_COMMAND:wx,KEY_ESCAPE_COMMAND:w0e,KEY_MODIFIER_COMMAND:O0e,KEY_SPACE_COMMAND:E0e,KEY_TAB_COMMAND:A0e,LineBreakNode:Hv,MOVE_TO_END:v0e,MOVE_TO_START:y0e,OUTDENT_CONTENT_COMMAND:Mut,PASTE_COMMAND:gz,ParagraphNode:Gv,REDO_COMMAND:mz,REMOVE_TEXT_COMMAND:aM,RootNode:Wv,SELECTION_CHANGE_COMMAND:k5,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND:Dut,SELECT_ALL_COMMAND:lM,TabNode:$v,TextNode:Ep,UNDO_COMMAND:vz,createCommand:Out,createEditor:Wct,getNearestEditorFromDOMNode:Nz,isCurrentlyReadOnlyMode:qv,isHTMLAnchorElement:gct,isHTMLElement:N5,isSelectionCapturedInDecoratorInput:Cz,isSelectionWithinEditor:NE},Symbol.toStringTag,{value:"Module"})),et=Kct,FE=et.$applyNodeReplacement,Vct=et.$copyNode,Uct=et.$createNodeSelection,wa=et.$createParagraphNode,wge=et.$createRangeSelection,kge=et.$createTabNode,rp=et.$createTextNode,xM=et.$getAdjacentNode,Yct=et.$getCharacterOffsets,b_=et.$getNearestNodeFromDOMNode,BE=et.$getNodeByKey,Hz=et.$getPreviousSelection,hs=et.$getRoot,nr=et.$getSelection,Xct=et.$hasAncestor,$z=et.$insertNodes,$h=et.$isDecoratorNode,Ir=et.$isElementNode,Qct=et.$isLeafNode,Zct=et.$isLineBreakNode,Qi=et.$isNodeSelection,Jct=et.$isParagraphNode,fr=et.$isRangeSelection,L5=et.$isRootNode,w1=et.$isRootOrShadowRoot,ur=et.$isTextNode,eft=et.$normalizeSelection__EXPERIMENTAL,tft=et.$parseSerializedNode,rft=et.$selectAll,Kv=et.$setSelection,Age=et.$splitNode,Yw=et.CAN_REDO_COMMAND,Xw=et.CAN_UNDO_COMMAND,nft=et.CLEAR_EDITOR_COMMAND,oft=et.CLEAR_HISTORY_COMMAND,xge=et.CLICK_COMMAND,ift=et.COMMAND_PRIORITY_CRITICAL,Ar=et.COMMAND_PRIORITY_EDITOR,TM=et.COMMAND_PRIORITY_HIGH,Jl=et.COMMAND_PRIORITY_LOW,sft=et.CONTROLLED_TEXT_INSERTION_COMMAND,Tge=et.COPY_COMMAND,aft=et.CUT_COMMAND,Z3=et.DELETE_CHARACTER_COMMAND,lft=et.DELETE_LINE_COMMAND,uft=et.DELETE_WORD_COMMAND,Pz=et.DRAGOVER_COMMAND,qz=et.DRAGSTART_COMMAND,Wz=et.DROP_COMMAND,cft=et.DecoratorNode,j5=et.ElementNode,fft=et.FORMAT_ELEMENT_COMMAND,dft=et.FORMAT_TEXT_COMMAND,hft=et.INDENT_CONTENT_COMMAND,Rte=et.INSERT_LINE_BREAK_COMMAND,Ote=et.INSERT_PARAGRAPH_COMMAND,pft=et.INSERT_TAB_COMMAND,gft=et.KEY_ARROW_DOWN_COMMAND,vft=et.KEY_ARROW_LEFT_COMMAND,mft=et.KEY_ARROW_RIGHT_COMMAND,yft=et.KEY_ARROW_UP_COMMAND,Ige=et.KEY_BACKSPACE_COMMAND,Cge=et.KEY_DELETE_COMMAND,Nge=et.KEY_ENTER_COMMAND,Rge=et.KEY_ESCAPE_COMMAND,bft=et.LineBreakNode,Dte=et.OUTDENT_CONTENT_COMMAND,Oge=et.PASTE_COMMAND,_ft=et.ParagraphNode,Eft=et.REDO_COMMAND,Sft=et.REMOVE_TEXT_COMMAND,wft=et.RootNode,kft=et.SELECTION_CHANGE_COMMAND,Aft=et.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,xft=et.SELECT_ALL_COMMAND,__=et.TextNode,Tft=et.UNDO_COMMAND,ME=et.createCommand,Ift=et.createEditor,Cft=et.isHTMLAnchorElement,Nft=et.isHTMLElement,Rft=et.isSelectionCapturedInDecoratorInput,Oft=et.isSelectionWithinEditor,jx=new Map;function Fte(e){let t=e;for(;t!=null;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function Bte(e){const t=e.parentNode;if(t==null)throw new Error("Should never happen");return[t,Array.from(t.childNodes).indexOf(e)]}function Dft(e,t,r,n,o){const i=t.getKey(),s=n.getKey(),a=document.createRange();let l=e.getElementByKey(i),u=e.getElementByKey(s),c=r,f=o;if(ur(t)&&(l=Fte(l)),ur(n)&&(u=Fte(u)),t===void 0||n===void 0||l===null||u===null)return null;l.nodeName==="BR"&&([l,c]=Bte(l)),u.nodeName==="BR"&&([u,f]=Bte(u));const d=l.firstChild;l===u&&d!=null&&d.nodeName==="BR"&&c===0&&f===0&&(f=1);try{a.setStart(l,c),a.setEnd(u,f)}catch{return null}return!a.collapsed||c===f&&i===s||(a.setStart(u,f),a.setEnd(l,c)),a}function Fft(e,t){const r=e.getRootElement();if(r===null)return[];const n=r.getBoundingClientRect(),o=getComputedStyle(r),i=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),s=Array.from(t.getClientRects());let a,l=s.length;s.sort((u,c)=>{const f=u.top-c.top;return Math.abs(f)<=3?u.left-c.left:f});for(let u=0;uc.top&&a.left+a.width>c.left,d=c.width+i===n.width;f||d?(s.splice(u--,1),l--):a=c}return s}function Dge(e){const t={},r=e.split(";");for(const n of r)if(n!==""){const[o,i]=n.split(/:([^]+)/);o&&i&&(t[o.trim()]=i.trim())}return t}function z5(e){let t=jx.get(e);return t===void 0&&(t=Dge(e),jx.set(e,t)),t}function Bft(e){const t=e.constructor.clone(e);return t.__parent=e.__parent,t.__next=e.__next,t.__prev=e.__prev,Ir(e)&&Ir(t)?(n=e,(r=t).__first=n.__first,r.__last=n.__last,r.__size=n.__size,r.__format=n.__format,r.__indent=n.__indent,r.__dir=n.__dir,r):ur(e)&&ur(t)?function(o,i){return o.__format=i.__format,o.__style=i.__style,o.__mode=i.__mode,o.__detail=i.__detail,o}(t,e):t;var r,n}function Mft(e,t){const r=e.getStartEndPoints();if(t.isSelected(e)&&!t.isSegmented()&&!t.isToken()&&r!==null){const[n,o]=r,i=e.isBackward(),s=n.getNode(),a=o.getNode(),l=t.is(s),u=t.is(a);if(l||u){const[c,f]=Yct(e),d=s.is(a),h=t.is(i?a:s),g=t.is(i?s:a);let v,y=0;return d?(y=c>f?f:c,v=c>f?c:f):h?(y=i?f:c,v=void 0):g&&(y=0,v=i?c:f),t.__text=t.__text.slice(y,v),t}}return t}function Lft(e){if(e.type==="text")return e.offset===e.getNode().getTextContentSize();const t=e.getNode();if(!Ir(t))throw Error("isAtNodeEnd: node must be a TextNode or ElementNode");return e.offset===t.getChildrenSize()}function jft(e,t,r){let n=t.getNode(),o=r;if(Ir(n)){const i=n.getDescendantByIndex(t.offset);i!==null&&(n=i)}for(;o>0&&n!==null;){if(Ir(n)){const u=n.getLastDescendant();u!==null&&(n=u)}let i=n.getPreviousSibling(),s=0;if(i===null){let u=n.getParentOrThrow(),c=u.getPreviousSibling();for(;c===null;){if(u=u.getParent(),u===null){i=null;break}c=u.getPreviousSibling()}u!==null&&(s=u.isInline()?0:2,i=c)}let a=n.getTextContent();a===""&&Ir(n)&&!n.isInline()&&(a=` -`);const l=a.length;if(!ur(n)||o>=l){const u=n.getParent();n.remove(),u==null||u.getChildrenSize()!==0||M5(u)||u.remove(),o-=l+s,n=i}else{const u=n.getKey(),c=e.getEditorState().read(()=>{const h=BE(u);return ur(h)&&h.isSimpleText()?h.getTextContent():null}),f=l-o,d=a.slice(0,f);if(c!==null&&c!==a){const h=zz();let g=n;if(n.isSimpleText())n.setTextContent(c);else{const v=tp(c);n.replace(v),g=v}if(fr(h)&&h.isCollapsed()){const v=h.anchor.offset;g.select(v,v)}}else if(n.isSimpleText()){const h=t.key===u;let g=t.offset;g(a instanceof Function?i[s]=a(r[s]):a===null?delete i[s]:i[s]=a,i),{...r}),o=function(i){let s="";for(const a in i)a&&(s+=`${a}: ${i[a]};`);return s}(n);e.setStyle(o),Lx.set(o,n)}function Mft(e,t){const r=e.getNodes(),n=r.length,o=e.getStartEndPoints();if(o===null)return;const[i,s]=o,a=n-1;let l=r[0],u=r[a];if(e.isCollapsed()&&fr(e))return void o0(e,t);const c=l.getTextContent().length,f=s.offset;let d=i.offset;const h=i.isBefore(s);let g=h?d:f,v=h?f:d;const y=h?i.type:s.type,E=h?s.type:i.type,_=h?s.key:i.key;if(ur(l)&&g===c){const S=l.getNextSibling();ur(S)&&(d=0,g=0,l=S)}if(r.length===1){if(ur(l)&&l.canHaveFormat()){if(g=y==="element"?0:d>f?f:d,v=E==="element"?c:d>f?d:f,g===v)return;if(g===0&&v===c)o0(l,t),l.select(g,v);else{const S=l.splitText(g,v),b=g===0?S[0]:S[1];o0(b,t),b.select(0,v-g)}}}else{if(ur(l)&&gf.append(d)),r&&(f=r.append(f)),void u.replace(f)}let a=null,l=[];for(let u=0;u{_.append(S),f.add(S.getKey()),Ir(S)&&S.getChildrenKeys().forEach(b=>f.add(b))}),jft(y)}}else if(c.has(v.getKey())){if(!Ir(v))throw Error("Expected node in emptyElements to be an ElementNode");const E=n();E.setFormat(v.getFormatType()),E.setIndent(v.getIndent()),a.push(E),v.remove(!0)}}if(o!==null)for(let g=0;g=0;g--){const v=a[g];l.insertAfter(v)}else{const g=l.getFirstChild();if(Ir(g)&&(l=g),g===null)if(o)l.append(o);else for(let v=0;v=0;g--){const v=a[g];l.insertAfter(v),d=v}const h=zz();fr(h)&&Bte(h.anchor)&&Bte(h.focus)?Kv(h.clone()):d!==null?d.selectEnd():e.dirty=!0}function Hft(e,t){const r=AM(e.focus,t);return Hh(r)&&!r.isIsolated()||Ir(r)&&!r.isInline()&&!r.canBeEmpty()}function Oge(e,t,r,n){e.modify(t?"extend":"move",r,n)}function Dge(e){const t=e.anchor.getNode();return(M5(t)?t:t.getParentOrThrow()).getDirection()==="rtl"}function $ft(e,t,r){const n=Dge(e);Oge(e,t,r?!n:n,"character")}function Pft(e){const t=e.anchor,r=e.focus,n=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();let o=n.getFirstDescendant(),i=n.getLastDescendant(),s="element",a="element",l=0;ur(o)?s="text":Ir(o)||o===null||(o=o.getParentOrThrow()),ur(i)?(a="text",l=i.getTextContentSize()):Ir(i)||i===null||(i=i.getParentOrThrow()),o&&i&&(t.set(o.getKey(),0,s),r.set(i.getKey(),l,a))}function qft(e,t,r){const n=j5(e.getStyle());return n!==null&&n[t]||r}function Wft(e,t,r=""){let n=null;const o=e.getNodes(),i=e.anchor,s=e.focus,a=e.isBackward(),l=a?s.offset:i.offset,u=a?s.getNode():i.getNode();if(e.isCollapsed()&&e.style!==""){const c=j5(e.style);if(c!==null&&t in c)return c[t]}for(let c=0;c{e.forEach(t=>t())}}function Ku(e){return`${e}px`}const Yft={attributes:!0,characterData:!0,childList:!0,subtree:!0};function Lge(e,t,r){let n=null,o=null,i=null,s=[];const a=document.createElement("div");function l(){if(n===null)throw Error("Unexpected null rootDOMNode");if(o===null)throw Error("Unexpected null parentDOMNode");const{left:f,top:d}=n.getBoundingClientRect(),h=o,g=Vft(e,t);a.isConnected||h.append(a);let v=!1;for(let y=0;yg.length;)s.pop();v&&r(s)}function u(){o=null,n=null,i!==null&&i.disconnect(),i=null,a.remove();for(const f of s)f.remove();s=[]}const c=e.registerRootListener(function f(){const d=e.getRootElement();if(d===null)return u();const h=d.parentElement;if(!(h instanceof HTMLElement))return u();u(),n=d,o=h,i=new MutationObserver(g=>{const v=e.getRootElement(),y=v&&v.parentElement;if(v!==n||y!==o)return f();for(const E of g)if(!a.contains(E.target))return l()}),i.observe(h,Yft),l()});return()=>{c(),u()}}function Xft(e,t){let r=null,n=null,o=null,i=null,s=()=>{};function a(l){l.read(()=>{const u=nr();if(!fr(u))return r=null,n=null,o=null,i=null,s(),void(s=()=>{});const{anchor:c,focus:f}=u,d=c.getNode(),h=d.getKey(),g=c.offset,v=f.getNode(),y=v.getKey(),E=f.offset,_=e.getElementByKey(h),S=e.getElementByKey(y),b=r===null||_===null||g!==n||h!==r.getKey()||d!==r&&(!(r instanceof __)||d.updateDOM(r,_,e._config)),k=o===null||S===null||E!==i||y!==o.getKey()||v!==o&&(!(o instanceof __)||v.updateDOM(o,S,e._config));if(b||k){const T=e.getElementByKey(c.getNode().getKey()),x=e.getElementByKey(f.getNode().getKey());if(T!==null&&x!==null&&T.tagName==="SPAN"&&x.tagName==="SPAN"){const I=document.createRange();let C,R,D,L;f.isBefore(c)?(C=x,R=f.offset,D=T,L=c.offset):(C=T,R=c.offset,D=x,L=f.offset);const M=C.firstChild;if(M===null)throw Error("Expected text node to be first child of span");const W=D.firstChild;if(W===null)throw Error("Expected text node to be first child of span");I.setStart(M,R),I.setEnd(W,L),s(),s=Lge(e,I,z=>{for(const F of z){const P=F.style;P.background!=="Highlight"&&(P.background="Highlight"),P.color!=="HighlightText"&&(P.color="HighlightText"),P.zIndex!=="-1"&&(P.zIndex="-1"),P.pointerEvents!=="none"&&(P.pointerEvents="none"),P.marginTop!==Ku(-1.5)&&(P.marginTop=Ku(-1.5)),P.paddingTop!==Ku(4)&&(P.paddingTop=Ku(4)),P.paddingBottom!==Ku(0)&&(P.paddingBottom=Ku(0))}t!==void 0&&t(z)})}}r=d,n=g,o=v,i=E})}return a(e.getEditorState()),Mge(e.registerUpdateListener(({editorState:l})=>a(l)),s,()=>{s()})}function Qft(e,...t){const r=Bge(...t);r.length>0&&e.classList.add(...r)}function Zft(e,...t){const r=Bge(...t);r.length>0&&e.classList.remove(...r)}function jge(e,t){for(const r of t)if(e.type.startsWith(r))return!0;return!1}function Jft(e,t){const r=e[Symbol.iterator]();return new Promise((n,o)=>{const i=[],s=()=>{const{done:a,value:l}=r.next();if(a)return n(i);const u=new FileReader;u.addEventListener("error",o),u.addEventListener("load",()=>{const c=u.result;typeof c=="string"&&i.push({file:l,result:c}),s()}),jge(l,t)?u.readAsDataURL(l):s()};s()})}function edt(e,t){const r=[],n=(e||hs()).getLatest(),o=t||(Ir(n)?n.getLastDescendant():n);let i=n,s=function(a){let l=a,u=0;for(;(l=l.getParent())!==null;)u++;return u}(i);for(;i!==null&&!i.is(o);)if(r.push({depth:s,node:i}),Ir(i)&&i.getChildrenSize()>0)i=i.getFirstChild(),s++;else{let a=null;for(;a===null&&i!==null;)a=i.getNextSibling(),a===null?(i=i.getParent(),s--):i=a}return i!==null&&i.is(o)&&r.push({depth:s,node:i}),r}function tdt(e,t){let r=e;for(;r!=null;){if(r instanceof t)return r;r=r.getParent()}return null}function rdt(e){const t=zge(e,r=>Ir(r)&&!r.isInline());return Ir(t)||Uft(4,e.__key),t}const zge=(e,t)=>{let r=e;for(;r!==hs()&&r!=null;){if(t(r))return r;r=r.getParent()}return null};function ndt(e,t,r,n){const o=i=>i instanceof t;return e.registerNodeTransform(t,i=>{const s=(a=>{const l=a.getChildren();for(let f=0;f0&&(s+=1,n.splitText(o))):(i=n,s=o);const[,a]=kge(i,s);a.insertBefore(e),a.selectStart()}}else{if(t!=null){const n=t.getNodes();n[n.length-1].getTopLevelElementOrThrow().insertAfter(e)}else hs().append(e);const r=wa();e.insertAfter(r),r.select()}return e.getLatest()}function sdt(e,t){const r=t();return e.replace(r),r.append(e),r}function adt(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}function ldt(e,t){const r=[];for(let n=0;n({conversion:vdt,priority:1})}}static importJSON(t){const r=E_(t.url,{rel:t.rel,target:t.target,title:t.title});return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}sanitizeUrl(t){try{const r=new URL(t);if(!gdt.has(r.protocol))return"about:blank"}catch{return t}return t}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(t){this.getWritable().__url=t}getTarget(){return this.getLatest().__target}setTarget(t){this.getWritable().__target=t}getRel(){return this.getLatest().__rel}setRel(t){this.getWritable().__rel=t}getTitle(){return this.getLatest().__title}setTitle(t){this.getWritable().__title=t}insertNewAfter(t,r=!0){const n=E_(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,r),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(t,r,n){if(!fr(r))return!1;const o=r.anchor.getNode(),i=r.focus.getNode();return this.isParentOf(o)&&this.isParentOf(i)&&r.getTextContent().length>0}};function vdt(e){let t=null;if(hdt(e)){const r=e.textContent;(r!==null&&r!==""||e.children.length>0)&&(t=E_(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function E_(e,t){return FE(new z5(e,t))}function _0(e){return e instanceof z5}let Vz=class Pge extends z5{static getType(){return"autolink"}static clone(t){return new Pge(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__key)}static importJSON(t){const r=TM(t.url,{rel:t.rel,target:t.target,title:t.title});return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(t,r=!0){const n=this.getParentOrThrow().insertNewAfter(t,r);if(Ir(n)){const o=TM(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return n.append(o),o}return null}};function TM(e,t){return FE(new Vz(e,t))}function mdt(e){return e instanceof Vz}const ydt=ME("TOGGLE_LINK_COMMAND");function bdt(e,t={}){const{target:r,title:n}=t,o=t.rel===void 0?"noreferrer":t.rel,i=nr();if(!fr(i))return;const s=i.extract();if(e===null)s.forEach(a=>{const l=a.getParent();if(_0(l)){const u=l.getChildren();for(let c=0;c{const c=u.getParent();if(c!==l&&c!==null&&(!Ir(u)||u.isInline())){if(_0(c))return l=c,c.setURL(e),r!==void 0&&c.setTarget(r),o!==null&&l.setRel(o),void(n!==void 0&&l.setTitle(n));if(c.is(a)||(a=c,l=E_(e,{rel:o,target:r,title:n}),_0(c)?u.getPreviousSibling()===null?c.insertBefore(l):c.insertAfter(l):u.insertBefore(l)),_0(u)){if(u.is(l))return;if(l!==null){const f=u.getChildren();for(let d=0;d{const{theme:n,namespace:o,editor__DEPRECATED:i,nodes:s,onError:a,editorState:l,html:u}=e,c=Tdt(null,n);let f=i||null;if(f===null){const d=kft({editable:e.editable,html:u,namespace:o,nodes:s,onError:h=>a(h,d),theme:n});(function(h,g){if(g!==null){if(g===void 0)h.update(()=>{const v=hs();if(v.isEmpty()){const y=wa();v.append(y);const E=Kge?document.activeElement:null;(nr()!==null||E!==null&&E===h.getRootElement())&&y.select()}},Xw);else if(g!==null)switch(typeof g){case"string":{const v=h.parseEditorState(g);h.setEditorState(v,Xw);break}case"object":h.setEditorState(g,Xw);break;case"function":h.update(()=>{hs().isEmpty()&&g(h)},Xw)}}})(d,l),f=d}return[f,c]},[]);return Idt(()=>{const n=e.editable,[o]=r;o.setEditable(n===void 0||n)},[]),A.createElement(Gge.Provider,{value:r},t)}const Ndt=Object.freeze(Object.defineProperty({__proto__:null,LexicalComposer:Cdt},Symbol.toStringTag,{value:"Module"})),Rdt=Ndt,Odt=Rdt.LexicalComposer;function IM(){return IM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{x&&x.ownerDocument&&x.ownerDocument.defaultView&&S.setRootElement(x)},[S]);return Ddt(()=>(k(S.isEditable()),S.registerEditableListener(x=>{k(x)})),[S]),A.createElement("div",IM({},_,{"aria-activedescendant":b?e:void 0,"aria-autocomplete":b?t:"none","aria-controls":b?r:void 0,"aria-describedby":n,"aria-expanded":b&&h==="combobox"?!!o:void 0,"aria-label":i,"aria-labelledby":s,"aria-multiline":a,"aria-owns":b?l:void 0,"aria-readonly":!b||void 0,"aria-required":u,autoCapitalize:c,className:f,contentEditable:b,"data-testid":E,id:d,ref:T,role:h,spellCheck:g,style:v,tabIndex:y}))}const Bdt=Object.freeze(Object.defineProperty({__proto__:null,ContentEditable:Fdt},Symbol.toStringTag,{value:"Module"})),Mdt=Bdt,Ldt=Mdt.ContentEditable;function CM(e,t){return CM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},CM(e,t)}var zte={error:null},jdt=function(e){var t,r;function n(){for(var i,s=arguments.length,a=new Array(s),l=0;l1){const E=t._nodeMap,_=E.get(i.anchor.key),S=E.get(s.anchor.key);return _&&S&&!e._nodeMap.has(_.__key)&&ur(_)&&_.__text.length===1&&i.anchor.offset===1?Hte:eu}const l=a[0],u=e._nodeMap.get(l.__key);if(!ur(u)||!ur(l)||u.__mode!==l.__mode)return eu;const c=u.__text,f=l.__text;if(c===f)return eu;const d=i.anchor,h=s.anchor;if(d.key!==h.key||d.type!=="text")return eu;const g=d.offset,v=h.offset,y=f.length-c.length;return y===1&&v===g-1?Hte:y===-1&&v===g+1?Wdt:y===-1&&v===g?Gdt:eu}function Vdt(e,t){let r=Date.now(),n=eu;return(o,i,s,a,l,u)=>{const c=Date.now();if(u.has("historic"))return n=eu,r=c,RM;const f=Kdt(o,i,a,l,e.isComposing()),d=(()=>{const h=s===null||s.editor===e,g=u.has("history-push");if(!g&&h&&u.has("history-merge"))return Qw;if(o===null)return NM;const v=i._selection;return a.size>0||l.size>0?g===!1&&f!==eu&&f===n&&c{const d=t.current,h=t.redoStack,g=t.undoStack,v=d===null?null:d.editorState;if(d!==null&&a===v)return;const y=n(l,a,d,u,c,f);if(y===NM)h.length!==0&&(t.redoStack=[],e.dispatchCommand(Uw,!1)),d!==null&&(g.push({...d}),e.dispatchCommand(Yw,!0));else if(y===RM)return;t.current={editor:e,editorState:a}},i=Kf(e.registerCommand(wft,()=>(function(a,l){const u=l.redoStack,c=l.undoStack;if(c.length!==0){const f=l.current,d=c.pop();f!==null&&(u.push(f),a.dispatchCommand(Uw,!0)),c.length===0&&a.dispatchCommand(Yw,!1),l.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:"historic"})}}(e,t),!0),Ar),e.registerCommand(mft,()=>(function(a,l){const u=l.redoStack,c=l.undoStack;if(u.length!==0){const f=l.current;f!==null&&(c.push(f),a.dispatchCommand(Yw,!0));const d=u.pop();u.length===0&&a.dispatchCommand(Uw,!1),l.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:"historic"})}}(e,t),!0),Ar),e.registerCommand(Zct,()=>($te(t),!1),Ar),e.registerCommand(Jct,()=>($te(t),e.dispatchCommand(Uw,!1),e.dispatchCommand(Yw,!1),!0),Ar),e.registerUpdateListener(o)),s=e.registerUpdateListener(o);return()=>{i(),s()}}function Ydt(){return{current:null,redoStack:[],undoStack:[]}}const Xdt=Object.freeze(Object.defineProperty({__proto__:null,createEmptyHistoryState:Ydt,registerHistory:Udt},Symbol.toStringTag,{value:"Module"})),Vge=Xdt,Uge=Vge.createEmptyHistoryState,Qdt=Vge.registerHistory;function Zdt({externalHistoryState:e}){const[t]=Hi();return function(r,n,o=1e3){const i=A.useMemo(()=>n||Uge(),[n]);A.useEffect(()=>Qdt(r,i,o),[o,r,i])}(t,e),null}const Jdt=Object.freeze(Object.defineProperty({__proto__:null,HistoryPlugin:Zdt,createEmptyHistoryState:Uge},Symbol.toStringTag,{value:"Module"})),e1t=Jdt,t1t=e1t.HistoryPlugin;var r1t=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?A.useLayoutEffect:A.useEffect;function n1t({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:r}){const[n]=Hi();return r1t(()=>{if(r)return n.registerUpdateListener(({editorState:o,dirtyElements:i,dirtyLeaves:s,prevEditorState:a,tags:l})=>{t&&i.size===0&&s.size===0||e&&l.has("history-merge")||a.isEmpty()||r(o,n,l)})},[n,e,t,r]),null}const o1t=Object.freeze(Object.defineProperty({__proto__:null,OnChangePlugin:n1t},Symbol.toStringTag,{value:"Module"})),i1t=o1t,Yge=i1t.OnChangePlugin;var s1t=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?A.useLayoutEffect:A.useEffect;function a1t(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function l1t(){return function(e){const[t]=Hi(),r=A.useMemo(()=>e(t),[t,e]),n=A.useRef(r.initialValueFn()),[o,i]=A.useState(n.current);return s1t(()=>{const{initialValueFn:s,subscribe:a}=r,l=s();return n.current!==l&&(n.current=l,i(l)),a(u=>{n.current=u,i(u)})},[r,e]),o}(a1t)}const u1t=Object.freeze(Object.defineProperty({__proto__:null,default:l1t},Symbol.toStringTag,{value:"Module"})),c1t=u1t,f1t=c1t.default;function d1t(e,t){let r=e.getFirstChild(),n=0;e:for(;r!==null;){if(Ir(r)){const s=r.getFirstChild();if(s!==null){r=s;continue}}else if(ur(r)){const s=r.getTextContentSize();if(n+s>t)return{node:r,offset:t-n};n+=s}const o=r.getNextSibling();if(o!==null){r=o;continue}let i=r.getParent();for(;i!==null;){const s=i.getNextSibling();if(s!==null){r=s;continue e}i=i.getParent()}break}return null}function Yz(e,t=!0){if(e)return!1;let r=Xge();return t&&(r=r.trim()),r===""}function h1t(e,t){return()=>Yz(e,t)}function Xge(){return hs().getTextContent()}function Qge(e){if(!Yz(e,!1))return!1;const t=hs().getChildren(),r=t.length;if(r>1)return!1;for(let n=0;nQge(e)}function g1t(e,t,r,n){const o=s=>s instanceof r,i=s=>{const a=tp(s.getTextContent());a.setFormat(s.getFormat()),s.replace(a)};return[e.registerNodeTransform(__,s=>{if(!s.isSimpleText())return;const a=s.getPreviousSibling();let l,u=s.getTextContent(),c=s;if(ur(a)){const f=a.getTextContent(),d=t(f+u);if(o(a)){if(d===null||(h=>h.getLatest().__mode)(a)!==0)return void i(a);{const h=d.end-f.length;if(h>0){const g=f+u.slice(0,h);if(a.select(),a.setTextContent(g),h===u.length)s.remove();else{const v=u.slice(h);s.setTextContent(v)}return}}}else if(d===null||d.start{const a=s.getTextContent(),l=t(a);if(l===null||l.start!==0)return void i(s);if(a.length>l.end)return void s.splitText(l.end);const u=s.getPreviousSibling();ur(u)&&u.isTextEntity()&&(i(u),i(s));const c=s.getNextSibling();ur(c)&&c.isTextEntity()&&(i(c),o(s)&&i(s))})]}const v1t=Object.freeze(Object.defineProperty({__proto__:null,$canShowPlaceholder:Qge,$canShowPlaceholderCurry:p1t,$findTextIntersectionFromCharacters:d1t,$isRootTextContentEmpty:Yz,$isRootTextContentEmptyCurry:h1t,$rootTextContent:Xge,registerLexicalTextEntity:g1t},Symbol.toStringTag,{value:"Module"})),m1t=v1t,y1t=m1t.$canShowPlaceholderCurry;function b1t(e){const t=window.location.origin,r=n=>{if(n.origin!==t)return;const o=e.getRootElement();if(document.activeElement!==o)return;const i=n.data;if(typeof i=="string"){let s;try{s=JSON.parse(i)}catch{return}if(s&&s.protocol==="nuanria_messaging"&&s.type==="request"){const a=s.payload;if(a&&a.functionId==="makeChanges"){const l=a.args;if(l){const[u,c,f,d,h,g]=l;e.update(()=>{const v=nr();if(fr(v)){const y=v.anchor;let E=y.getNode(),_=0,S=0;if(ur(E)&&u>=0&&c>=0&&(_=u,S=u+c,v.setTextNodeRange(E,_,E,S)),_===S&&f===""||(v.insertRawText(f),E=y.getNode()),ur(E)){_=d,S=d+h;const b=E.getTextContentSize();_=_>b?b:_,S=S>b?b:S,v.setTextNodeRange(E,_,E,S)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",r,!0),()=>{window.removeEventListener("message",r,!0)}}const _1t=Object.freeze(Object.defineProperty({__proto__:null,registerDragonSupport:b1t},Symbol.toStringTag,{value:"Module"})),E1t=_1t,S1t=E1t.registerDragonSupport;function w1t(e,t){const r=t.body?t.body.childNodes:[];let n=[];for(let o=0;o"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const r=document.createElement("div"),n=hs().getChildren();for(let o=0;oI1t?(e||window).getSelection():null;function nve(e){const t=nr();if(t==null)throw Error("Expected valid LexicalSelection");return fr(t)&&t.isCollapsed()||t.getNodes().length===0?"":x1t(e,t)}function ove(e){const t=nr();if(t==null)throw Error("Expected valid LexicalSelection");return fr(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(sve(e,t))}function C1t(e,t){const r=e.getData("text/plain")||e.getData("text/uri-list");r!=null&&t.insertRawText(r)}function N1t(e,t,r){const n=e.getData("application/x-lexical-editor");if(n)try{const s=JSON.parse(n);if(s.namespace===r._config.namespace&&Array.isArray(s.nodes))return OM(r,ave(s.nodes),t)}catch{}const o=e.getData("text/html");if(o)try{const s=new DOMParser().parseFromString(o,"text/html");return OM(r,T1t(r,s),t)}catch{}const i=e.getData("text/plain")||e.getData("text/uri-list");if(i!=null)if(fr(t)){const s=i.split(/(\r?\n|\t)/);s[s.length-1]===""&&s.pop();for(let a=0;a=l){const u=n.getParent();n.remove(),u==null||u.getChildrenSize()!==0||L5(u)||u.remove(),o-=l+s,n=i}else{const u=n.getKey(),c=e.getEditorState().read(()=>{const h=BE(u);return ur(h)&&h.isSimpleText()?h.getTextContent():null}),f=l-o,d=a.slice(0,f);if(c!==null&&c!==a){const h=Hz();let g=n;if(n.isSimpleText())n.setTextContent(c);else{const v=rp(c);n.replace(v),g=v}if(fr(h)&&h.isCollapsed()){const v=h.anchor.offset;g.select(v,v)}}else if(n.isSimpleText()){const h=t.key===u;let g=t.offset;g(a instanceof Function?i[s]=a(r[s]):a===null?delete i[s]:i[s]=a,i),{...r}),o=function(i){let s="";for(const a in i)a&&(s+=`${a}: ${i[a]};`);return s}(n);e.setStyle(o),jx.set(o,n)}function Hft(e,t){const r=e.getNodes(),n=r.length,o=e.getStartEndPoints();if(o===null)return;const[i,s]=o,a=n-1;let l=r[0],u=r[a];if(e.isCollapsed()&&fr(e))return void o0(e,t);const c=l.getTextContent().length,f=s.offset;let d=i.offset;const h=i.isBefore(s);let g=h?d:f,v=h?f:d;const y=h?i.type:s.type,E=h?s.type:i.type,_=h?s.key:i.key;if(ur(l)&&g===c){const S=l.getNextSibling();ur(S)&&(d=0,g=0,l=S)}if(r.length===1){if(ur(l)&&l.canHaveFormat()){if(g=y==="element"?0:d>f?f:d,v=E==="element"?c:d>f?d:f,g===v)return;if(g===0&&v===c)o0(l,t),l.select(g,v);else{const S=l.splitText(g,v),b=g===0?S[0]:S[1];o0(b,t),b.select(0,v-g)}}}else{if(ur(l)&&gf.append(d)),r&&(f=r.append(f)),void u.replace(f)}let a=null,l=[];for(let u=0;u{_.append(S),f.add(S.getKey()),Ir(S)&&S.getChildrenKeys().forEach(b=>f.add(b))}),Pft(y)}}else if(c.has(v.getKey())){if(!Ir(v))throw Error("Expected node in emptyElements to be an ElementNode");const E=n();E.setFormat(v.getFormatType()),E.setIndent(v.getIndent()),a.push(E),v.remove(!0)}}if(o!==null)for(let g=0;g=0;g--){const v=a[g];l.insertAfter(v)}else{const g=l.getFirstChild();if(Ir(g)&&(l=g),g===null)if(o)l.append(o);else for(let v=0;v=0;g--){const v=a[g];l.insertAfter(v),d=v}const h=Hz();fr(h)&&Mte(h.anchor)&&Mte(h.focus)?Kv(h.clone()):d!==null?d.selectEnd():e.dirty=!0}function Wft(e,t){const r=xM(e.focus,t);return $h(r)&&!r.isIsolated()||Ir(r)&&!r.isInline()&&!r.canBeEmpty()}function Fge(e,t,r,n){e.modify(t?"extend":"move",r,n)}function Bge(e){const t=e.anchor.getNode();return(L5(t)?t:t.getParentOrThrow()).getDirection()==="rtl"}function Gft(e,t,r){const n=Bge(e);Fge(e,t,r?!n:n,"character")}function Kft(e){const t=e.anchor,r=e.focus,n=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();let o=n.getFirstDescendant(),i=n.getLastDescendant(),s="element",a="element",l=0;ur(o)?s="text":Ir(o)||o===null||(o=o.getParentOrThrow()),ur(i)?(a="text",l=i.getTextContentSize()):Ir(i)||i===null||(i=i.getParentOrThrow()),o&&i&&(t.set(o.getKey(),0,s),r.set(i.getKey(),l,a))}function Vft(e,t,r){const n=z5(e.getStyle());return n!==null&&n[t]||r}function Uft(e,t,r=""){let n=null;const o=e.getNodes(),i=e.anchor,s=e.focus,a=e.isBackward(),l=a?s.offset:i.offset,u=a?s.getNode():i.getNode();if(e.isCollapsed()&&e.style!==""){const c=z5(e.style);if(c!==null&&t in c)return c[t]}for(let c=0;c{e.forEach(t=>t())}}function Ku(e){return`${e}px`}const Jft={attributes:!0,characterData:!0,childList:!0,subtree:!0};function zge(e,t,r){let n=null,o=null,i=null,s=[];const a=document.createElement("div");function l(){if(n===null)throw Error("Unexpected null rootDOMNode");if(o===null)throw Error("Unexpected null parentDOMNode");const{left:f,top:d}=n.getBoundingClientRect(),h=o,g=Qft(e,t);a.isConnected||h.append(a);let v=!1;for(let y=0;yg.length;)s.pop();v&&r(s)}function u(){o=null,n=null,i!==null&&i.disconnect(),i=null,a.remove();for(const f of s)f.remove();s=[]}const c=e.registerRootListener(function f(){const d=e.getRootElement();if(d===null)return u();const h=d.parentElement;if(!(h instanceof HTMLElement))return u();u(),n=d,o=h,i=new MutationObserver(g=>{const v=e.getRootElement(),y=v&&v.parentElement;if(v!==n||y!==o)return f();for(const E of g)if(!a.contains(E.target))return l()}),i.observe(h,Jft),l()});return()=>{c(),u()}}function edt(e,t){let r=null,n=null,o=null,i=null,s=()=>{};function a(l){l.read(()=>{const u=nr();if(!fr(u))return r=null,n=null,o=null,i=null,s(),void(s=()=>{});const{anchor:c,focus:f}=u,d=c.getNode(),h=d.getKey(),g=c.offset,v=f.getNode(),y=v.getKey(),E=f.offset,_=e.getElementByKey(h),S=e.getElementByKey(y),b=r===null||_===null||g!==n||h!==r.getKey()||d!==r&&(!(r instanceof __)||d.updateDOM(r,_,e._config)),k=o===null||S===null||E!==i||y!==o.getKey()||v!==o&&(!(o instanceof __)||v.updateDOM(o,S,e._config));if(b||k){const T=e.getElementByKey(c.getNode().getKey()),x=e.getElementByKey(f.getNode().getKey());if(T!==null&&x!==null&&T.tagName==="SPAN"&&x.tagName==="SPAN"){const I=document.createRange();let C,R,D,L;f.isBefore(c)?(C=x,R=f.offset,D=T,L=c.offset):(C=T,R=c.offset,D=x,L=f.offset);const M=C.firstChild;if(M===null)throw Error("Expected text node to be first child of span");const W=D.firstChild;if(W===null)throw Error("Expected text node to be first child of span");I.setStart(M,R),I.setEnd(W,L),s(),s=zge(e,I,z=>{for(const F of z){const P=F.style;P.background!=="Highlight"&&(P.background="Highlight"),P.color!=="HighlightText"&&(P.color="HighlightText"),P.zIndex!=="-1"&&(P.zIndex="-1"),P.pointerEvents!=="none"&&(P.pointerEvents="none"),P.marginTop!==Ku(-1.5)&&(P.marginTop=Ku(-1.5)),P.paddingTop!==Ku(4)&&(P.paddingTop=Ku(4)),P.paddingBottom!==Ku(0)&&(P.paddingBottom=Ku(0))}t!==void 0&&t(z)})}}r=d,n=g,o=v,i=E})}return a(e.getEditorState()),jge(e.registerUpdateListener(({editorState:l})=>a(l)),s,()=>{s()})}function tdt(e,...t){const r=Lge(...t);r.length>0&&e.classList.add(...r)}function rdt(e,...t){const r=Lge(...t);r.length>0&&e.classList.remove(...r)}function Hge(e,t){for(const r of t)if(e.type.startsWith(r))return!0;return!1}function ndt(e,t){const r=e[Symbol.iterator]();return new Promise((n,o)=>{const i=[],s=()=>{const{done:a,value:l}=r.next();if(a)return n(i);const u=new FileReader;u.addEventListener("error",o),u.addEventListener("load",()=>{const c=u.result;typeof c=="string"&&i.push({file:l,result:c}),s()}),Hge(l,t)?u.readAsDataURL(l):s()};s()})}function odt(e,t){const r=[],n=(e||hs()).getLatest(),o=t||(Ir(n)?n.getLastDescendant():n);let i=n,s=function(a){let l=a,u=0;for(;(l=l.getParent())!==null;)u++;return u}(i);for(;i!==null&&!i.is(o);)if(r.push({depth:s,node:i}),Ir(i)&&i.getChildrenSize()>0)i=i.getFirstChild(),s++;else{let a=null;for(;a===null&&i!==null;)a=i.getNextSibling(),a===null?(i=i.getParent(),s--):i=a}return i!==null&&i.is(o)&&r.push({depth:s,node:i}),r}function idt(e,t){let r=e;for(;r!=null;){if(r instanceof t)return r;r=r.getParent()}return null}function sdt(e){const t=$ge(e,r=>Ir(r)&&!r.isInline());return Ir(t)||Zft(4,e.__key),t}const $ge=(e,t)=>{let r=e;for(;r!==hs()&&r!=null;){if(t(r))return r;r=r.getParent()}return null};function adt(e,t,r,n){const o=i=>i instanceof t;return e.registerNodeTransform(t,i=>{const s=(a=>{const l=a.getChildren();for(let f=0;f0&&(s+=1,n.splitText(o))):(i=n,s=o);const[,a]=Age(i,s);a.insertBefore(e),a.selectStart()}}else{if(t!=null){const n=t.getNodes();n[n.length-1].getTopLevelElementOrThrow().insertAfter(e)}else hs().append(e);const r=wa();e.insertAfter(r),r.select()}return e.getLatest()}function cdt(e,t){const r=t();return e.replace(r),r.append(e),r}function fdt(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}function ddt(e,t){const r=[];for(let n=0;n({conversion:_dt,priority:1})}}static importJSON(t){const r=E_(t.url,{rel:t.rel,target:t.target,title:t.title});return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}sanitizeUrl(t){try{const r=new URL(t);if(!bdt.has(r.protocol))return"about:blank"}catch{return t}return t}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(t){this.getWritable().__url=t}getTarget(){return this.getLatest().__target}setTarget(t){this.getWritable().__target=t}getRel(){return this.getLatest().__rel}setRel(t){this.getWritable().__rel=t}getTitle(){return this.getLatest().__title}setTitle(t){this.getWritable().__title=t}insertNewAfter(t,r=!0){const n=E_(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,r),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(t,r,n){if(!fr(r))return!1;const o=r.anchor.getNode(),i=r.focus.getNode();return this.isParentOf(o)&&this.isParentOf(i)&&r.getTextContent().length>0}};function _dt(e){let t=null;if(mdt(e)){const r=e.textContent;(r!==null&&r!==""||e.children.length>0)&&(t=E_(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function E_(e,t){return FE(new H5(e,t))}function _0(e){return e instanceof H5}let Uz=class Wge extends H5{static getType(){return"autolink"}static clone(t){return new Wge(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__key)}static importJSON(t){const r=IM(t.url,{rel:t.rel,target:t.target,title:t.title});return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(t,r=!0){const n=this.getParentOrThrow().insertNewAfter(t,r);if(Ir(n)){const o=IM(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return n.append(o),o}return null}};function IM(e,t){return FE(new Uz(e,t))}function Edt(e){return e instanceof Uz}const Sdt=ME("TOGGLE_LINK_COMMAND");function wdt(e,t={}){const{target:r,title:n}=t,o=t.rel===void 0?"noreferrer":t.rel,i=nr();if(!fr(i))return;const s=i.extract();if(e===null)s.forEach(a=>{const l=a.getParent();if(_0(l)){const u=l.getChildren();for(let c=0;c{const c=u.getParent();if(c!==l&&c!==null&&(!Ir(u)||u.isInline())){if(_0(c))return l=c,c.setURL(e),r!==void 0&&c.setTarget(r),o!==null&&l.setRel(o),void(n!==void 0&&l.setTitle(n));if(c.is(a)||(a=c,l=E_(e,{rel:o,target:r,title:n}),_0(c)?u.getPreviousSibling()===null?c.insertBefore(l):c.insertAfter(l):u.insertBefore(l)),_0(u)){if(u.is(l))return;if(l!==null){const f=u.getChildren();for(let d=0;d{const{theme:n,namespace:o,editor__DEPRECATED:i,nodes:s,onError:a,editorState:l,html:u}=e,c=Rdt(null,n);let f=i||null;if(f===null){const d=Ift({editable:e.editable,html:u,namespace:o,nodes:s,onError:h=>a(h,d),theme:n});(function(h,g){if(g!==null){if(g===void 0)h.update(()=>{const v=hs();if(v.isEmpty()){const y=wa();v.append(y);const E=Uge?document.activeElement:null;(nr()!==null||E!==null&&E===h.getRootElement())&&y.select()}},Qw);else if(g!==null)switch(typeof g){case"string":{const v=h.parseEditorState(g);h.setEditorState(v,Qw);break}case"object":h.setEditorState(g,Qw);break;case"function":h.update(()=>{hs().isEmpty()&&g(h)},Qw)}}})(d,l),f=d}return[f,c]},[]);return Odt(()=>{const n=e.editable,[o]=r;o.setEditable(n===void 0||n)},[]),A.createElement(Vge.Provider,{value:r},t)}const Fdt=Object.freeze(Object.defineProperty({__proto__:null,LexicalComposer:Ddt},Symbol.toStringTag,{value:"Module"})),Bdt=Fdt,Mdt=Bdt.LexicalComposer;function CM(){return CM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{x&&x.ownerDocument&&x.ownerDocument.defaultView&&S.setRootElement(x)},[S]);return Ldt(()=>(k(S.isEditable()),S.registerEditableListener(x=>{k(x)})),[S]),A.createElement("div",CM({},_,{"aria-activedescendant":b?e:void 0,"aria-autocomplete":b?t:"none","aria-controls":b?r:void 0,"aria-describedby":n,"aria-expanded":b&&h==="combobox"?!!o:void 0,"aria-label":i,"aria-labelledby":s,"aria-multiline":a,"aria-owns":b?l:void 0,"aria-readonly":!b||void 0,"aria-required":u,autoCapitalize:c,className:f,contentEditable:b,"data-testid":E,id:d,ref:T,role:h,spellCheck:g,style:v,tabIndex:y}))}const zdt=Object.freeze(Object.defineProperty({__proto__:null,ContentEditable:jdt},Symbol.toStringTag,{value:"Module"})),Hdt=zdt,$dt=Hdt.ContentEditable;function NM(e,t){return NM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},NM(e,t)}var Hte={error:null},Pdt=function(e){var t,r;function n(){for(var i,s=arguments.length,a=new Array(s),l=0;l1){const E=t._nodeMap,_=E.get(i.anchor.key),S=E.get(s.anchor.key);return _&&S&&!e._nodeMap.has(_.__key)&&ur(_)&&_.__text.length===1&&i.anchor.offset===1?$te:eu}const l=a[0],u=e._nodeMap.get(l.__key);if(!ur(u)||!ur(l)||u.__mode!==l.__mode)return eu;const c=u.__text,f=l.__text;if(c===f)return eu;const d=i.anchor,h=s.anchor;if(d.key!==h.key||d.type!=="text")return eu;const g=d.offset,v=h.offset,y=f.length-c.length;return y===1&&v===g-1?$te:y===-1&&v===g+1?Udt:y===-1&&v===g?Ydt:eu}function Qdt(e,t){let r=Date.now(),n=eu;return(o,i,s,a,l,u)=>{const c=Date.now();if(u.has("historic"))return n=eu,r=c,OM;const f=Xdt(o,i,a,l,e.isComposing()),d=(()=>{const h=s===null||s.editor===e,g=u.has("history-push");if(!g&&h&&u.has("history-merge"))return Zw;if(o===null)return RM;const v=i._selection;return a.size>0||l.size>0?g===!1&&f!==eu&&f===n&&c{const d=t.current,h=t.redoStack,g=t.undoStack,v=d===null?null:d.editorState;if(d!==null&&a===v)return;const y=n(l,a,d,u,c,f);if(y===RM)h.length!==0&&(t.redoStack=[],e.dispatchCommand(Yw,!1)),d!==null&&(g.push({...d}),e.dispatchCommand(Xw,!0));else if(y===OM)return;t.current={editor:e,editorState:a}},i=Kf(e.registerCommand(Tft,()=>(function(a,l){const u=l.redoStack,c=l.undoStack;if(c.length!==0){const f=l.current,d=c.pop();f!==null&&(u.push(f),a.dispatchCommand(Yw,!0)),c.length===0&&a.dispatchCommand(Xw,!1),l.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:"historic"})}}(e,t),!0),Ar),e.registerCommand(Eft,()=>(function(a,l){const u=l.redoStack,c=l.undoStack;if(u.length!==0){const f=l.current;f!==null&&(c.push(f),a.dispatchCommand(Xw,!0));const d=u.pop();u.length===0&&a.dispatchCommand(Yw,!1),l.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:"historic"})}}(e,t),!0),Ar),e.registerCommand(nft,()=>(Pte(t),!1),Ar),e.registerCommand(oft,()=>(Pte(t),e.dispatchCommand(Yw,!1),e.dispatchCommand(Xw,!1),!0),Ar),e.registerUpdateListener(o)),s=e.registerUpdateListener(o);return()=>{i(),s()}}function Jdt(){return{current:null,redoStack:[],undoStack:[]}}const e1t=Object.freeze(Object.defineProperty({__proto__:null,createEmptyHistoryState:Jdt,registerHistory:Zdt},Symbol.toStringTag,{value:"Module"})),Yge=e1t,Xge=Yge.createEmptyHistoryState,t1t=Yge.registerHistory;function r1t({externalHistoryState:e}){const[t]=Hi();return function(r,n,o=1e3){const i=A.useMemo(()=>n||Xge(),[n]);A.useEffect(()=>t1t(r,i,o),[o,r,i])}(t,e),null}const n1t=Object.freeze(Object.defineProperty({__proto__:null,HistoryPlugin:r1t,createEmptyHistoryState:Xge},Symbol.toStringTag,{value:"Module"})),o1t=n1t,i1t=o1t.HistoryPlugin;var s1t=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?A.useLayoutEffect:A.useEffect;function a1t({ignoreHistoryMergeTagChange:e=!0,ignoreSelectionChange:t=!1,onChange:r}){const[n]=Hi();return s1t(()=>{if(r)return n.registerUpdateListener(({editorState:o,dirtyElements:i,dirtyLeaves:s,prevEditorState:a,tags:l})=>{t&&i.size===0&&s.size===0||e&&l.has("history-merge")||a.isEmpty()||r(o,n,l)})},[n,e,t,r]),null}const l1t=Object.freeze(Object.defineProperty({__proto__:null,OnChangePlugin:a1t},Symbol.toStringTag,{value:"Module"})),u1t=l1t,Qge=u1t.OnChangePlugin;var c1t=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?A.useLayoutEffect:A.useEffect;function f1t(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function d1t(){return function(e){const[t]=Hi(),r=A.useMemo(()=>e(t),[t,e]),n=A.useRef(r.initialValueFn()),[o,i]=A.useState(n.current);return c1t(()=>{const{initialValueFn:s,subscribe:a}=r,l=s();return n.current!==l&&(n.current=l,i(l)),a(u=>{n.current=u,i(u)})},[r,e]),o}(f1t)}const h1t=Object.freeze(Object.defineProperty({__proto__:null,default:d1t},Symbol.toStringTag,{value:"Module"})),p1t=h1t,g1t=p1t.default;function v1t(e,t){let r=e.getFirstChild(),n=0;e:for(;r!==null;){if(Ir(r)){const s=r.getFirstChild();if(s!==null){r=s;continue}}else if(ur(r)){const s=r.getTextContentSize();if(n+s>t)return{node:r,offset:t-n};n+=s}const o=r.getNextSibling();if(o!==null){r=o;continue}let i=r.getParent();for(;i!==null;){const s=i.getNextSibling();if(s!==null){r=s;continue e}i=i.getParent()}break}return null}function Xz(e,t=!0){if(e)return!1;let r=Zge();return t&&(r=r.trim()),r===""}function m1t(e,t){return()=>Xz(e,t)}function Zge(){return hs().getTextContent()}function Jge(e){if(!Xz(e,!1))return!1;const t=hs().getChildren(),r=t.length;if(r>1)return!1;for(let n=0;nJge(e)}function b1t(e,t,r,n){const o=s=>s instanceof r,i=s=>{const a=rp(s.getTextContent());a.setFormat(s.getFormat()),s.replace(a)};return[e.registerNodeTransform(__,s=>{if(!s.isSimpleText())return;const a=s.getPreviousSibling();let l,u=s.getTextContent(),c=s;if(ur(a)){const f=a.getTextContent(),d=t(f+u);if(o(a)){if(d===null||(h=>h.getLatest().__mode)(a)!==0)return void i(a);{const h=d.end-f.length;if(h>0){const g=f+u.slice(0,h);if(a.select(),a.setTextContent(g),h===u.length)s.remove();else{const v=u.slice(h);s.setTextContent(v)}return}}}else if(d===null||d.start{const a=s.getTextContent(),l=t(a);if(l===null||l.start!==0)return void i(s);if(a.length>l.end)return void s.splitText(l.end);const u=s.getPreviousSibling();ur(u)&&u.isTextEntity()&&(i(u),i(s));const c=s.getNextSibling();ur(c)&&c.isTextEntity()&&(i(c),o(s)&&i(s))})]}const _1t=Object.freeze(Object.defineProperty({__proto__:null,$canShowPlaceholder:Jge,$canShowPlaceholderCurry:y1t,$findTextIntersectionFromCharacters:v1t,$isRootTextContentEmpty:Xz,$isRootTextContentEmptyCurry:m1t,$rootTextContent:Zge,registerLexicalTextEntity:b1t},Symbol.toStringTag,{value:"Module"})),E1t=_1t,S1t=E1t.$canShowPlaceholderCurry;function w1t(e){const t=window.location.origin,r=n=>{if(n.origin!==t)return;const o=e.getRootElement();if(document.activeElement!==o)return;const i=n.data;if(typeof i=="string"){let s;try{s=JSON.parse(i)}catch{return}if(s&&s.protocol==="nuanria_messaging"&&s.type==="request"){const a=s.payload;if(a&&a.functionId==="makeChanges"){const l=a.args;if(l){const[u,c,f,d,h,g]=l;e.update(()=>{const v=nr();if(fr(v)){const y=v.anchor;let E=y.getNode(),_=0,S=0;if(ur(E)&&u>=0&&c>=0&&(_=u,S=u+c,v.setTextNodeRange(E,_,E,S)),_===S&&f===""||(v.insertRawText(f),E=y.getNode()),ur(E)){_=d,S=d+h;const b=E.getTextContentSize();_=_>b?b:_,S=S>b?b:S,v.setTextNodeRange(E,_,E,S)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",r,!0),()=>{window.removeEventListener("message",r,!0)}}const k1t=Object.freeze(Object.defineProperty({__proto__:null,registerDragonSupport:w1t},Symbol.toStringTag,{value:"Module"})),A1t=k1t,x1t=A1t.registerDragonSupport;function T1t(e,t){const r=t.body?t.body.childNodes:[];let n=[];for(let o=0;o"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const r=document.createElement("div"),n=hs().getChildren();for(let o=0;oO1t?(e||window).getSelection():null;function ive(e){const t=nr();if(t==null)throw Error("Expected valid LexicalSelection");return fr(t)&&t.isCollapsed()||t.getNodes().length===0?"":N1t(e,t)}function sve(e){const t=nr();if(t==null)throw Error("Expected valid LexicalSelection");return fr(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(lve(e,t))}function D1t(e,t){const r=e.getData("text/plain")||e.getData("text/uri-list");r!=null&&t.insertRawText(r)}function F1t(e,t,r){const n=e.getData("application/x-lexical-editor");if(n)try{const s=JSON.parse(n);if(s.namespace===r._config.namespace&&Array.isArray(s.nodes))return DM(r,uve(s.nodes),t)}catch{}const o=e.getData("text/html");if(o)try{const s=new DOMParser().parseFromString(o,"text/html");return DM(r,R1t(r,s),t)}catch{}const i=e.getData("text/plain")||e.getData("text/uri-list");if(i!=null)if(fr(t)){const s=i.split(/(\r?\n|\t)/);s[s.length-1]===""&&s.pop();for(let a=0;a0?l.text=u:o=!1}for(let u=0;u{e.update(()=>{a(qte(e,t))})});const r=e.getRootElement(),n=e._window==null?window.document:e._window.document,o=rve(e._window);if(r===null||o===null)return!1;const i=n.createElement("span");i.style.cssText="position: fixed; top: -1000px;",i.append(n.createTextNode("#")),r.append(i);const s=new Range;return s.setStart(i,0),s.setEnd(i,1),o.removeAllRanges(),o.addRange(s),new Promise((a,l)=>{const u=e.registerCommand(xge,c=>(Ch(c,ClipboardEvent)&&(u(),i0!==null&&(window.clearTimeout(i0),i0=null),a(qte(e,c))),!0),eft);i0=window.setTimeout(()=>{u(),i0=null,a(!1)},50),n.execCommand("copy"),i.remove()})}function qte(e,t){const r=rve(e._window);if(!r)return!1;const n=r.anchorNode,o=r.focusNode;if(n!==null&&o!==null&&!Ift(e,n,o))return!1;t.preventDefault();const i=t.clipboardData,s=nr();if(i===null||s===null)return!1;const a=nve(e),l=ove(e);let u="";return s!==null&&(u=s.getTextContent()),a!==null&&i.setData("text/html",a),l!==null&&i.setData("application/x-lexical-editor",l),i.setData("text/plain",u),!0}const O1t=Object.freeze(Object.defineProperty({__proto__:null,$generateJSONFromSelectedNodes:sve,$generateNodesFromSerializedNodes:ave,$getHtmlContent:nve,$getLexicalContent:ove,$insertDataTransferForPlainText:C1t,$insertDataTransferForRichText:N1t,$insertGeneratedNodes:OM,copyToClipboard:R1t},Symbol.toStringTag,{value:"Module"})),lve=O1t,Wte=lve.$insertDataTransferForRichText,Gte=lve.copyToClipboard;function Kte(e,t){if(document.caretRangeFromPoint!==void 0){const r=document.caretRangeFromPoint(e,t);return r===null?null:{node:r.startContainer,offset:r.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const r=document.caretPositionFromPoint(e,t);return r===null?null:{node:r.offsetNode,offset:r.offset}}return null}const Uv=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,D1t=Uv&&"documentMode"in document?document.documentMode:null,F1t=!(!Uv||!("InputEvent"in window)||D1t)&&"getTargetRanges"in new window.InputEvent("input"),B1t=Uv&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),M1t=Uv&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,L1t=Uv&&/^(?=.*Chrome).*/i.test(navigator.userAgent),j1t=Uv&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!L1t,DM=ME("DRAG_DROP_PASTE_FILE");class LE extends L5{static getType(){return"quote"}static clone(t){return new LE(t.__key)}constructor(t){super(t)}createDOM(t){const r=document.createElement("blockquote");return Gz(r,t.theme.quote),r}updateDOM(t,r){return!1}static importDOM(){return{blockquote:t=>({conversion:H1t,priority:0})}}exportDOM(t){const{element:r}=super.exportDOM(t);if(r&&Kz(r)){this.isEmpty()&&r.append(document.createElement("br"));const n=this.getFormatType();r.style.textAlign=n;const o=this.getDirection();o&&(r.dir=o)}return{element:r}}static importJSON(t){const r=Xz();return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(t,r){const n=wa(),o=this.getDirection();return n.setDirection(o),this.insertAfter(n,r),n}collapseAtStart(){const t=wa();return this.getChildren().forEach(r=>t.append(r)),this.replace(t),!0}}function Xz(){return FE(new LE)}function z1t(e){return e instanceof LE}class jE extends L5{static getType(){return"heading"}static clone(t){return new jE(t.__tag,t.__key)}constructor(t,r){super(r),this.__tag=t}getTag(){return this.__tag}createDOM(t){const r=this.__tag,n=document.createElement(r),o=t.theme.heading;if(o!==void 0){const i=o[r];Gz(n,i)}return n}updateDOM(t,r){return!1}static importDOM(){return{h1:t=>({conversion:s0,priority:0}),h2:t=>({conversion:s0,priority:0}),h3:t=>({conversion:s0,priority:0}),h4:t=>({conversion:s0,priority:0}),h5:t=>({conversion:s0,priority:0}),h6:t=>({conversion:s0,priority:0}),p:t=>{const r=t.firstChild;return r!==null&&Vte(r)?{conversion:()=>({node:null}),priority:3}:null},span:t=>Vte(t)?{conversion:r=>({node:K0("h1")}),priority:3}:null}}exportDOM(t){const{element:r}=super.exportDOM(t);if(r&&Kz(r)){this.isEmpty()&&r.append(document.createElement("br"));const n=this.getFormatType();r.style.textAlign=n;const o=this.getDirection();o&&(r.dir=o)}return{element:r}}static importJSON(t){const r=K0(t.tag);return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(t,r=!0){const n=t?t.anchor.offset:0,o=n!==this.getTextContentSize()&&t?K0(this.getTag()):wa(),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,r),n===0&&!this.isEmpty()&&t){const s=wa();s.select(),this.replace(s,!0)}return o}collapseAtStart(){const t=this.isEmpty()?wa():K0(this.getTag());return this.getChildren().forEach(r=>t.append(r)),this.replace(t),!0}extractWithChild(){return!0}}function Vte(e){return e.nodeName.toLowerCase()==="span"&&e.style.fontSize==="26pt"}function s0(e){const t=e.nodeName.toLowerCase();let r=null;return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6"||(r=K0(t),e.style!==null&&r.setFormat(e.style.textAlign)),{node:r}}function H1t(e){const t=Xz();return e.style!==null&&t.setFormat(e.style.textAlign),{node:t}}function K0(e){return FE(new jE(e))}function $1t(e){return e instanceof jE}function xy(e){let t=null;if(Ch(e,DragEvent)?t=e.dataTransfer:Ch(e,ClipboardEvent)&&(t=e.clipboardData),t===null)return[!1,[],!1];const r=t.types,n=r.includes("Files"),o=r.includes("text/html")||r.includes("text/plain");return[n,Array.from(t.files),o]}function Ute(e){const t=nr();if(!fr(t))return!1;const r=new Set,n=t.getNodes();for(let o=0;o0}function Zw(e){const t=b_(e);return Hh(t)}function P1t(e){return Kf(e.registerCommand(Age,t=>{const r=nr();return!!Qi(r)&&(r.clear(),!0)},0),e.registerCommand(Z3,t=>{const r=nr();return!!fr(r)&&(r.deleteCharacter(t),!0)},Ar),e.registerCommand(oft,t=>{const r=nr();return!!fr(r)&&(r.deleteWord(t),!0)},Ar),e.registerCommand(nft,t=>{const r=nr();return!!fr(r)&&(r.deleteLine(t),!0)},Ar),e.registerCommand(tft,t=>{const r=nr();if(typeof t=="string")r!==null&&r.insertText(t);else{if(r===null)return!1;const n=t.dataTransfer;if(n!=null)Wte(n,r,e);else if(fr(r)){const o=t.data;return o&&r.insertText(o),!0}}return!0},Ar),e.registerCommand(yft,()=>{const t=nr();return!!fr(t)&&(t.removeText(),!0)},Ar),e.registerCommand(aft,t=>{const r=nr();return!!fr(r)&&(r.formatText(t),!0)},Ar),e.registerCommand(sft,t=>{const r=nr();if(!fr(r)&&!Qi(r))return!1;const n=r.getNodes();for(const o of n){const i=fdt(o,s=>Ir(s)&&!s.isInline());i!==null&&i.setFormat(t)}return!0},Ar),e.registerCommand(Nte,t=>{const r=nr();return!!fr(r)&&(r.insertLineBreak(t),!0)},Ar),e.registerCommand(Rte,()=>{const t=nr();return!!fr(t)&&(t.insertParagraph(),!0)},Ar),e.registerCommand(uft,()=>(Hz([wge()]),!0),Ar),e.registerCommand(lft,()=>Ute(t=>{const r=t.getIndent();t.setIndent(r+1)}),Ar),e.registerCommand(Ote,()=>Ute(t=>{const r=t.getIndent();r>0&&t.setIndent(r-1)}),Ar),e.registerCommand(hft,t=>{const r=nr();if(Qi(r)&&!Zw(t.target)){const n=r.getNodes();if(n.length>0)return n[0].selectPrevious(),!0}else if(fr(r)){const n=AM(r.focus,!0);if(!t.shiftKey&&Hh(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),t.preventDefault(),!0}return!1},Ar),e.registerCommand(cft,t=>{const r=nr();if(Qi(r)){const n=r.getNodes();if(n.length>0)return n[0].selectNext(0,0),!0}else if(fr(r)){if(function(o){const i=o.focus;return i.key==="root"&&i.offset===hs().getChildrenSize()}(r))return t.preventDefault(),!0;const n=AM(r.focus,!1);if(!t.shiftKey&&Hh(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),t.preventDefault(),!0}return!1},Ar),e.registerCommand(fft,t=>{const r=nr();if(Qi(r)){const n=r.getNodes();if(n.length>0)return t.preventDefault(),n[0].selectPrevious(),!0}if(!fr(r))return!1;if(jte(r,!0)){const n=t.shiftKey;return t.preventDefault(),Lte(r,n,!0),!0}return!1},Ar),e.registerCommand(dft,t=>{const r=nr();if(Qi(r)&&!Zw(t.target)){const o=r.getNodes();if(o.length>0)return t.preventDefault(),o[0].selectNext(0,0),!0}if(!fr(r))return!1;const n=t.shiftKey;return!!jte(r,!1)&&(t.preventDefault(),Lte(r,n,!1),!0)},Ar),e.registerCommand(Tge,t=>{if(Zw(t.target))return!1;const r=nr();if(!fr(r))return!1;t.preventDefault();const{anchor:n}=r,o=n.getNode();return r.isCollapsed()&&n.offset===0&&!M5(o)&&Hge(o).getIndent()>0?e.dispatchCommand(Ote,void 0):e.dispatchCommand(Z3,!0)},Ar),e.registerCommand(Ige,t=>{if(Zw(t.target))return!1;const r=nr();return!!fr(r)&&(t.preventDefault(),e.dispatchCommand(Z3,!1))},Ar),e.registerCommand(Cge,t=>{const r=nr();if(!fr(r))return!1;if(t!==null){if((M1t||B1t||j1t)&&F1t)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(Nte,!1)}return e.dispatchCommand(Rte,void 0)},Ar),e.registerCommand(Nge,()=>{const t=nr();return!!fr(t)&&(e.blur(),!0)},Ar),e.registerCommand(qz,t=>{const[,r]=xy(t);if(r.length>0){const o=Kte(t.clientX,t.clientY);if(o!==null){const{offset:i,node:s}=o,a=b_(s);if(a!==null){const l=Sge();if(ur(a))l.anchor.set(a.getKey(),i,"text"),l.focus.set(a.getKey(),i,"text");else{const c=a.getParentOrThrow().getKey(),f=a.getIndexWithinParent()+1;l.anchor.set(c,f,"element"),l.focus.set(c,f,"element")}const u=Yct(l);Kv(u)}e.dispatchCommand(DM,r)}return t.preventDefault(),!0}const n=nr();return!!fr(n)},Ar),e.registerCommand(Pz,t=>{const[r]=xy(t),n=nr();return!(r&&!fr(n))},Ar),e.registerCommand($z,t=>{const[r]=xy(t),n=nr();if(r&&!fr(n))return!1;const o=Kte(t.clientX,t.clientY);if(o!==null){const i=b_(o.node);Hh(i)&&t.preventDefault()}return!0},Ar),e.registerCommand(Sft,()=>(Qct(),!0),Ar),e.registerCommand(xge,t=>(Gte(e,Ch(t,ClipboardEvent)?t:null),!0),Ar),e.registerCommand(rft,t=>(async function(r,n){await Gte(n,Ch(r,ClipboardEvent)?r:null),n.update(()=>{const o=nr();fr(o)?o.removeText():Qi(o)&&o.getNodes().forEach(i=>i.remove())})}(t,e),!0),Ar),e.registerCommand(gft,t=>{const[,r,n]=xy(t);return r.length>0&&!n?(e.dispatchCommand(DM,r),!0):Tft(t.target)?!1:nr()!==null&&(function(o,i){o.preventDefault(),i.update(()=>{const s=nr(),a=Ch(o,InputEvent)||Ch(o,KeyboardEvent)?null:o.clipboardData;a!=null&&s!==null&&Wte(a,s,i)},{tag:"paste"})}(t,e),!0)},Ar))}const q1t=Object.freeze(Object.defineProperty({__proto__:null,$createHeadingNode:K0,$createQuoteNode:Xz,$isHeadingNode:$1t,$isQuoteNode:z1t,DRAG_DROP_PASTE:DM,HeadingNode:jE,QuoteNode:LE,eventFiles:xy,registerRichText:P1t},Symbol.toStringTag,{value:"Module"})),Qz=q1t,W1t=Qz.DRAG_DROP_PASTE,Yte=Qz.eventFiles,G1t=Qz.registerRichText;var FM=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?A.useLayoutEffect:A.useEffect;function Xte(e){return e.getEditorState().read(y1t(e.isComposing()))}function K1t({contentEditable:e,placeholder:t,ErrorBoundary:r}){const[n]=Hi(),o=function(i,s){const[a,l]=A.useState(()=>i.getDecorators());return FM(()=>i.registerDecoratorListener(u=>{pi.flushSync(()=>{l(u)})}),[i]),A.useEffect(()=>{l(i.getDecorators())},[i]),A.useMemo(()=>{const u=[],c=Object.keys(a);for(let f=0;fi._onError(v)},A.createElement(A.Suspense,{fallback:null},a[d])),g=i.getElementByKey(d);g!==null&&u.push(pi.createPortal(h,g,d))}return u},[s,a,i])}(n,r);return function(i){FM(()=>Kf(G1t(i),S1t(i)),[i])}(n),A.createElement(A.Fragment,null,e,A.createElement(V1t,{content:t}),o)}function V1t({content:e}){const[t]=Hi(),r=function(o){const[i,s]=A.useState(()=>Xte(o));return FM(()=>{function a(){const l=Xte(o);s(l)}return a(),Kf(o.registerUpdateListener(()=>{a()}),o.registerEditableListener(()=>{a()}))},[o]),i}(t),n=f1t();return r?typeof e=="function"?e(n):e:null}const U1t=Object.freeze(Object.defineProperty({__proto__:null,RichTextPlugin:K1t},Symbol.toStringTag,{value:"Module"})),Y1t=U1t,X1t=Y1t.RichTextPlugin;var xr=(e=>(e.IMAGE="image",e.TEXT="text",e))(xr||{});const jx="fake:",Q1t=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Qte(e,t){return e.getEditorState().read(()=>{const r=BE(t);return r!==null&&r.isSelected()})}function Z1t(e){const[t]=Hi(),[r,n]=A.useState(()=>Qte(t,e));return A.useEffect(()=>{let o=!0;const i=t.registerUpdateListener(()=>{o&&n(Qte(t,e))});return()=>{o=!1,i()}},[t,e]),[r,A.useCallback(o=>{t.update(()=>{let i=nr();Qi(i)||(i=qct(),Kv(i)),Qi(i)&&(o?i.add(e):i.delete(e))})},[t,e]),A.useCallback(()=>{t.update(()=>{const o=nr();Qi(o)&&o.clear()})},[t])]}const J1t=Object.freeze(Object.defineProperty({__proto__:null,useLexicalNodeSelection:Z1t},Symbol.toStringTag,{value:"Module"})),eht=J1t,tht=eht.useLexicalNodeSelection;function rht(e){const t=A.useRef(e);return A.useLayoutEffect(()=>{t.current=e}),A.useCallback((...r)=>{const n=t.current;return n(...r)},[])}const Zz=ME("INSERT_IMAGE_COMMAND"),uve=ME("INSERT_MULTIPLE_NODES_COMMAND"),Zte=ME("RIGHT_CLICK_IMAGE_COMMAND");class cve extends qpe{constructor(t){super(),this.editor$=new Vo(void 0),this.maxHeight$=new Vo(void 0),this.resolveUrlByPath$=new Vo(void 0),this.resolveUrlByFile$=new Vo(void 0),this._resetEditorState=t.resetEditorState,this._replaceImageSrc=t.replaceImageSrc,this._extractEditorData=t.extractEditorData}get requiredEditor(){const t=this.editor$.getSnapshot();if(!t)throw new Error("[RichEditor] editor is not prepared.");return t}focus(){this.requiredEditor.focus()}getContent(){const r=this.requiredEditor.getEditorState();return this._extractEditorData(r)}insert(t){this.requiredEditor.dispatchCommand(uve,{nodes:t})}isEmpty(){return this.requiredEditor.getEditorState().read(()=>{const o=hs(),i=o.getFirstChild();return i?o.getChildrenSize()===1&&i instanceof L5?i.isEmpty():!1:!0})}replaceImageSrc(t,r){const n=this.editor$.getSnapshot();if(!n)throw new Error("[RichEditor] editor is not prepared.");this._replaceImageSrc(n,t,r)}reset(t){const r=this.requiredEditor;this._resetEditorState(t)(r)}async resolveUrlByFile(t){const r=this.resolveUrlByFile$.getSnapshot();return r?r(t):""}async resolveUrlByPath(t){if(t.startsWith(jx))return t;const r=this.resolveUrlByPath$.getSnapshot();return(r==null?void 0:r(t))??t}}const fve=A.createContext({viewmodel:new cve({extractEditorData:()=>[],resetEditorState:()=>()=>{},replaceImageSrc:()=>{}})}),H5=()=>{const e=A.useContext(fve),t=A.useContext(Gge),r=(t==null?void 0:t[0])??void 0;return r&&e.viewmodel.editor$.next(r),e},dve=()=>{const[e]=Hi(),{viewmodel:t}=H5(),r=oo(t.maxHeight$);return rht(()=>{if(r===void 0)return;const o=e==null?void 0:e.getRootElement();if(o){o.style.height="24px";const i=Math.min(r,o.scrollHeight);o.style.height=`${i}px`}})},Jte=new Set;function nht(e){Jte.has(e)||new Promise(t=>{const r=new Image;r.src=e,r.onload=()=>{Jte.add(e),t(null)}})}function oht({alt:e,className:t,imageRef:r,src:n,width:o,height:i,maxWidth:s,onLoad:a}){return nht(n),N.jsx("img",{className:t||void 0,src:n,alt:e,ref:r,style:{height:i,maxWidth:s,width:o,border:"1px solid #E5E5E5"},draggable:!1,onLoad:a})}const iht=e=>{const{viewmodel:t}=H5(),r=dve(),{src:n,alt:o,nodeKey:i,width:s,height:a,maxWidth:l,isImageNode:u}=e,[c,f]=A.useState(n),d=A.useRef(null),h=A.useRef(null),[g,v,y]=tht(i),[E]=Hi(),[_,S]=A.useState(null),b=A.useRef(null),k=A.useCallback(z=>{if(g&&Qi(nr())){z.preventDefault();const P=BE(i);u(P)&&P.remove()}return!1},[g,i,u]),T=A.useCallback(z=>{const F=nr(),P=h.current;return g&&Qi(F)&&F.getNodes().length===1&&P!==null&&P!==document.activeElement?(z.preventDefault(),P.focus(),!0):!1},[g]),x=A.useCallback(z=>z.target===d.current?(z.preventDefault(),!0):!1,[]),I=A.useCallback(z=>h.current===z.target?(Kv(null),E.update(()=>{v(!0);const F=E.getRootElement();F!==null&&F.focus()}),!0):!1,[E,v]),C=A.useCallback(z=>{const F=z;return F.target===d.current?(F.shiftKey?v(!g):(y(),v(!0)),!0):!1},[g,v,y]),R=A.useCallback(z=>{E.getEditorState().read(()=>{const F=nr();z.target.tagName==="IMG"&&fr(F)&&F.getNodes().length===1&&E.dispatchCommand(Zte,z)})},[E]);A.useEffect(()=>{let z=!1;return t.resolveUrlByPath(n).then(F=>{z||f(F)}),()=>{z=!0}},[t,n]),A.useEffect(()=>{let z=!0;const F=E.getRootElement(),P=Kf(E.registerUpdateListener(({editorState:K})=>{z&&S(K.read(nr))}),E.registerCommand(_ft,(K,V)=>(b.current=V,!1),Jl),E.registerCommand(Age,C,Jl),E.registerCommand(Zte,C,Jl),E.registerCommand(Pz,x,Jl),E.registerCommand(Ige,k,Jl),E.registerCommand(Tge,k,Jl),E.registerCommand(Cge,T,Jl),E.registerCommand(Nge,I,Jl));return F==null||F.addEventListener("contextmenu",R),()=>{z=!1,P(),F==null||F.removeEventListener("contextmenu",R)}},[E,g,i,y,k,x,T,I,C,R,v]);const D=g&&Qi(_),M=g?`focused ${Qi(_)?"draggable":""}`:void 0,W=(c.startsWith(jx)?c.slice(jx.length):c).replace(/#[\s\S]*$/,"");return N.jsx(A.Suspense,{fallback:null,children:N.jsx("div",{draggable:D,children:N.jsx(oht,{className:M,src:W,alt:o,imageRef:d,width:s,height:a,maxWidth:l,onLoad:r})})})};class Ep extends ift{constructor(t,r,n,o,i,s){super(s),this.src=t,this.alt=r,this.maxWidth=n,this.width=o||"inherit",this.height=i||"inherit"}static getType(){return xr.IMAGE}static clone(t){return new Ep(t.src,t.alt,t.maxWidth,t.width,t.height,t.__key)}static importDOM(){return{img:t=>({conversion:sht,priority:0})}}static importJSON(t){const{alt:r,height:n,width:o,maxWidth:i,src:s}=t;return Yv({alt:r,height:n,maxWidth:i,src:s,width:o})}exportDOM(){const t=document.createElement("img");return t.setAttribute("src",this.src),t.setAttribute("alt",this.alt),t.setAttribute("width",this.width.toString()),t.setAttribute("height",this.height.toString()),{element:t}}exportJSON(){return{alt:this.getAltText(),height:this.height==="inherit"?0:this.height,maxWidth:this.maxWidth,src:this.getSrc(),type:xr.IMAGE,version:1,width:this.width==="inherit"?0:this.width}}setWidthAndHeight(t,r){const n=this.getWritable();n.width=t,n.height=r}createDOM(t){const r=document.createElement("span"),o=t.theme.image;return o!==void 0&&(r.className=o),r}updateDOM(){return!1}getSrc(){return this.src}getAltText(){return this.alt}decorate(){return N.jsx(A.Suspense,{fallback:null,children:N.jsx(iht,{src:this.src,alt:this.alt,width:this.width,height:this.height,maxWidth:this.maxWidth,nodeKey:this.getKey(),isImageNode:hve})})}}function Yv({alt:e,height:t,maxWidth:r=240,src:n,width:o,key:i}){return FE(new Ep(n,e,r,o,t,i))}function hve(e){return e instanceof Ep}function sht(e){if(e instanceof HTMLImageElement){const{alt:t,src:r,width:n,height:o}=e;return r.startsWith("blob:")?null:{node:Yv({alt:t,height:o,src:r,width:n})}}return null}const pve=()=>{const[e]=Hi();return re.useLayoutEffect(()=>Kf(e.registerCommand(uve,t=>{const{nodes:r}=t;if(r.length===1&&r[0].type===xr.TEXT){const i=r[0];return e.update(()=>{const s=nr();s&&s.insertRawText(i.value)}),!0}let n;const o=[];for(const i of r)switch(i.type){case xr.TEXT:{const s=tp(i.value),a=wa();n=s,a.append(s),o.push(a);break}case xr.IMAGE:{const s=Yv(i),a=wa();n=s,a.append(s),o.push(a);break}}return o.length<=0||(Hz(o),n&&w1(n.getParentOrThrow())&&n.selectEnd()),!0},Ar)),[e]),N.jsx(re.Fragment,{})};pve.displayName="CommandPlugin";const aht=["image/","image/heic","image/heif","image/gif","image/webp"],gve=()=>{const[e]=Hi(),{viewmodel:t}=H5();return A.useLayoutEffect(()=>e.registerCommand(W1t,r=>{return n(),!0;async function n(){for(const o of r)if(pdt(o,aht)){const i=o.name,s=await t.resolveUrlByFile(o);e.dispatchCommand(Zz,{alt:i,src:s})}}},Jl),[e,t]),N.jsx(A.Fragment,{})};gve.displayName="DragDropPastePlugin";class vve{constructor(t,r){this._x=t,this._y=r}get x(){return this._x}get y(){return this._y}equals(t){return this.x===t.x&&this.y===t.y}calcDeltaXTo(t){return this.x-t.x}calcDeltaYTo(t){return this.y-t.y}calcHorizontalDistanceTo(t){return Math.abs(this.calcDeltaXTo(t))}calcVerticalDistance(t){return Math.abs(this.calcDeltaYTo(t))}calcDistanceTo(t){const r=this.calcDeltaXTo(t)**2,n=this.calcDeltaYTo(t)**2;return Math.sqrt(r+n)}}function lht(e){return e instanceof vve}class yh{constructor(t,r,n,o){const[i,s]=r<=o?[r,o]:[o,r],[a,l]=t<=n?[t,n]:[n,t];this._top=i,this._right=l,this._left=a,this._bottom=s}get top(){return this._top}get right(){return this._right}get bottom(){return this._bottom}get left(){return this._left}get width(){return Math.abs(this._left-this._right)}get height(){return Math.abs(this._bottom-this._top)}static fromLTRB(t,r,n,o){return new yh(t,r,n,o)}static fromLWTH(t,r,n,o){return new yh(t,n,t+r,n+o)}static fromPoints(t,r){const{y:n,x:o}=t,{y:i,x:s}=r;return yh.fromLTRB(o,n,s,i)}static fromDOM(t){const{top:r,width:n,left:o,height:i}=t.getBoundingClientRect();return yh.fromLWTH(o,n,r,i)}equals(t){return t.top===this._top&&t.bottom===this._bottom&&t.left===this._left&&t.right===this._right}contains(t){if(lht(t)){const{x:r,y:n}=t,o=nthis._bottom,s=rthis._right;return{reason:{isOnBottomSide:i,isOnLeftSide:s,isOnRightSide:a,isOnTopSide:o},result:!o&&!i&&!s&&!a}}else{const{top:r,left:n,bottom:o,right:i}=t;return r>=this._top&&r<=this._bottom&&o>=this._top&&o<=this._bottom&&n>=this._left&&n<=this._right&&i>=this._left&&i<=this._right}}intersectsWith(t){const{left:r,top:n,width:o,height:i}=t,{left:s,top:a,width:l,height:u}=this,c=r+o>=s+l?r+o:s+l,f=n+i>=a+u?n+i:a+u,d=r<=s?r:s,h=n<=a?n:a;return c-d<=o+l&&f-h<=i+u}generateNewRect({left:t=this.left,top:r=this.top,right:n=this.right,bottom:o=this.bottom}){return new yh(t,r,n,o)}}const BM=4,uht=2,cht="draggable-block-menu",ere="application/x-lexical-drag-block",tre=28,fht=1,dht=-1,rre=0,mve=e=>{const{anchorElem:t=document.body}=e,[r]=Hi();return _ht(r,t,r._editable)};mve.displayName="DraggableBlockPlugin";let Uk=1/0;function hht(e){return e===0?1/0:Uk>=0&&Ukhs().getChildrenKeys())}function yve(e){const t=(l,u)=>l?parseFloat(window.getComputedStyle(l)[u]):0,{marginTop:r,marginBottom:n}=window.getComputedStyle(e),o=t(e.previousElementSibling,"marginBottom"),i=t(e.nextElementSibling,"marginTop"),s=Math.max(parseFloat(r),o);return{marginBottom:Math.max(parseFloat(n),i),marginTop:s}}function eF(e,t,r,n=!1){const o=e.getBoundingClientRect(),i=pht(t);let s=null;return t.getEditorState().read(()=>{if(n){const u=t.getElementByKey(i[0]),c=t.getElementByKey(i[i.length-1]),f=u==null?void 0:u.getBoundingClientRect(),d=c==null?void 0:c.getBoundingClientRect();if(f&&d&&(r.yd.bottom&&(s=c),s))return}let a=hht(i.length),l=rre;for(;a>=0&&a{n.transform=r})}function yht(e,t,r,n){const{top:o,height:i}=t.getBoundingClientRect(),{top:s,width:a}=n.getBoundingClientRect(),{marginTop:l,marginBottom:u}=yve(t);let c=o;r>=o?c+=i+u/2:c-=l/2;const f=c-s-uht,d=tre-BM,h=e.style;h.transform=`translate(${d}px, ${f}px)`,h.width=`${a-(tre-BM)*2}px`,h.opacity=".4"}function bht(e){const t=e==null?void 0:e.style;t&&(t.opacity="0",t.transform="translate(-10000px, -10000px)")}function _ht(e,t,r){const n=t.parentElement,o=A.useRef(null),i=A.useRef(null),s=A.useRef(!1),[a,l]=A.useState(null);A.useLayoutEffect(()=>{function f(h){const g=h.target;if(!tF(g)){l(null);return}if(ght(g))return;const v=eF(t,e,h);l(v)}function d(){l(null)}return n==null||n.addEventListener("mousemove",f),n==null||n.addEventListener("mouseleave",d),()=>{n==null||n.removeEventListener("mousemove",f),n==null||n.removeEventListener("mouseleave",d)}},[n,t,e]),A.useEffect(()=>{o.current&&vht(a,o.current,t)},[t,a]),A.useEffect(()=>{function f(h){if(!s.current)return!1;const[g]=Yte(h);if(g)return!1;const{pageY:v,target:y}=h;if(!tF(y))return!1;const E=eF(t,e,h,!0),_=i.current;return E===null||_===null?!1:(yht(_,E,v,t),h.preventDefault(),!0)}function d(h){if(!s.current)return!1;const[g]=Yte(h);if(g)return!1;const{target:v,dataTransfer:y,pageY:E}=h,_=(y==null?void 0:y.getData(ere))||"",S=BE(_);if(!S||!tF(v))return!1;const b=eF(t,e,h,!0);if(!b)return!1;const k=b_(b);if(!k)return!1;if(k===S)return!0;const T=b.getBoundingClientRect().top;return E>=T?k.insertAfter(S):k.insertBefore(S),l(null),!0}return Kf(e.registerCommand($z,h=>f(h),Jl),e.registerCommand(qz,h=>d(h),xM))},[t,e]);const u=f=>{const d=f.dataTransfer;if(!d||!a)return;mht(d,a);let h="";e.update(()=>{const g=b_(a);g&&(h=g.getKey())}),s.current=!0,d.setData(ere,h)},c=()=>{s.current=!1,bht(i.current)};return pi.createPortal(N.jsxs(A.Fragment,{children:[N.jsx("div",{className:"icon draggable-block-menu",role:"button",ref:o,draggable:!0,onDragStart:u,onDragEnd:c,children:N.jsx("div",{className:r?"icon":""})}),N.jsx("div",{className:"draggable-block-target-line",ref:i})]}),t)}const bve=e=>{const{editable:t}=e,[r]=Hi();return A.useEffect(()=>{r.setEditable(t)},[r,t]),N.jsx(A.Fragment,{})};bve.displayName="EditablePlugin";const _ve=()=>{const[e]=Hi();return A.useLayoutEffect(()=>{if(!e.hasNodes([Ep]))throw new Error("[RichEditor] ImagesPlugin: ImageNode not registered on editor");return Kf(e.registerCommand(Zz,Sht,Ar),e.registerCommand(Pz,wht,xM),e.registerCommand($z,kht,Jl),e.registerCommand(qz,t=>Aht(t,e),xM))},[e]),N.jsx(A.Fragment,{})};_ve.displayName="ImagesPlugin";let Jw;const Eht=()=>{if(Jw===void 0){const e="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";Jw=document.createElement("img"),Jw.src=e}return Jw};function Sht(e){const t=Yv(e);return Hz([t]),w1(t.getParentOrThrow())&&ddt(t,wa).selectEnd(),!0}function wht(e){const t=Jz();if(!t)return!1;const r=e.dataTransfer;if(!r)return!1;const n=Eht();return r.setData("text/plain","_"),r.setDragImage(n,0,0),r.setData("application/x-lexical-drag",JSON.stringify({type:xr.IMAGE,data:{alt:t.alt,height:t.height,key:t.getKey(),maxWidth:t.maxWidth,src:t.src,width:t.width}})),!0}function kht(e){return Jz()?(Eve(e)||e.preventDefault(),!0):!1}function Aht(e,t){const r=Jz();if(!r)return!1;const n=xht(e);if(!n)return!1;if(e.preventDefault(),Eve(e)){const o=Iht(e);r.remove();const i=Sge();o!=null&&i.applyDOMRange(o),Kv(i),t.dispatchCommand(Zz,n)}return!0}function Jz(){const e=nr();if(!Qi(e))return null;const r=e.getNodes()[0];return hve(r)?r:null}function xht(e){var r;const t=(r=e.dataTransfer)==null?void 0:r.getData("application/x-lexical-drag");if(!t)return null;try{const{type:n,data:o}=JSON.parse(t);return n===xr.IMAGE?o:null}catch{return null}}function Eve(e){const t=e.target;return!!(t&&t instanceof HTMLElement&&!t.closest("code, span.editor-image")&&t.parentElement&&t.parentElement.closest("div.ContentEditable__root"))}const Tht=e=>Q1t?(e||window).getSelection():null;function Iht(e){const t=e,r=t.target,n=r==null?null:r.nodeType===9?r.defaultView:r.ownerDocument.defaultView,o=Tht(n);let i;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(t.clientX,t.clientY);else if(t.rangeParent&&o!==null)o.collapse(t.rangeParent,t.rangeOffset||0),i=o.getRangeAt(0);else throw Error("[RichEditor] ImagesPlugin: Cannot get the selection when dragging");return i}const Sve=e=>{const[t]=Hi(),r=A.useRef(e.onKeyDown);return A.useLayoutEffect(()=>{const n=o=>{var i;(i=r.current)==null||i.call(r,o)};return t.registerRootListener((o,i)=>{i!==null&&i.removeEventListener("keydown",n),o!==null&&o.addEventListener("keydown",n)})},[t]),N.jsx(A.Fragment,{})};Sve.displayName="OnKeyDownPlugin";const wve=()=>{const[e]=Hi();return A.useLayoutEffect(()=>Kf(e.registerUpdateListener(t=>{t.tags.has("paste")&&e.update(()=>{t.dirtyLeaves.forEach(r=>{const n=BE(r);if(ur(n)){const o=Pct(n);o.setFormat(0),o.setStyle(""),n.replace(o)}})})}),e.registerNodeTransform(__,t=>{const r=t.getParentOrThrow();if(Edt(r)){const n=tp(r.__url);r.insertBefore(n),r.remove()}})),[e]),N.jsx(A.Fragment,{})};wve.displayName="PlainContentPastePlugin";const kve=e=>t=>{t.update(()=>{const r=hs();r.clear();for(const n of e)if(n!=null){if(typeof n=="string"){const o=tp(n),i=wa();i.append(o),r.append(i);continue}if(typeof n=="object"){switch(n.type){case xr.IMAGE:{const o=Yv({alt:n.alt,src:n.src}),i=wa();i.append(o),r.append(i);break}case xr.TEXT:{const o=tp(n.value),i=wa();i.append(o),r.append(i);break}default:throw console.log("item:",n),new TypeError(`[resetEditorState] unknown rich-editor content type: ${n.type}`)}continue}console.error("[resetEditorState] unknown rich-editor data:",n)}})},Cht=bft.getType(),Ave=vft.getType(),Nht=__.getType(),xve=Ep.getType(),Rht=pft.getType(),Oht=e=>{const t=e.toJSON(),r=[];for(const o of t.root.children)n(o);return r;function n(o){switch(o.type){case xve:{const{src:i,alt:s}=o;if(i.startsWith(jx)){const a=r[r.length-1];(a==null?void 0:a.type)===xr.TEXT&&(a.value+=` -`);break}r.push({type:xr.IMAGE,src:i,alt:s});break}case Rht:{const i=r[r.length-1];(i==null?void 0:i.type)===xr.TEXT&&(i.value+=` -`);break}case Ave:{const i=o.children;for(const s of i)n(s);break}case Nht:{const i=o.text,s=r[r.length-1];(s==null?void 0:s.type)===xr.TEXT?s.value+=i:r.push({type:xr.TEXT,value:i});break}default:throw new TypeError(`[RichEditor] [extractEditorData] Unknown node.type: (${o.type})`)}}},Dht=(e,t,r)=>{e.update(()=>{const n=hs();o(n);function o(i){switch(i.getType()){case Cht:case Ave:for(const s of i.getChildren())o(s);break;case xve:{const s=i;if(s.getSrc()===t){const a=Yv({alt:s.getAltText(),src:r});s.replace(a)}break}}}})};class Fht extends A.Component{constructor(t){super(t),this.state={floatingAnchorElem:null};const{editable:r=!0,initialContent:n}=this.props;this.initialConfig={namespace:"react-simple-rich-editor",theme:{ltr:"ltr",rtl:"rtl",placeholder:a0.editorPlaceholder,paragraph:a0.editorParagraph},nodes:[Ep,Sdt],editable:r,editorState:n?kve(n):null,onError:o=>{console.error(o)}},this.onKeyDown=this.onKeyDown.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onChange=this.onChange.bind(this),this.onEditorInputWrapperRef=this.onEditorInputWrapperRef.bind(this)}render(){const{initialConfig:t,onKeyDown:r,onFocus:n,onBlur:o,onChange:i,onEditorInputWrapperRef:s}=this,{editable:a=!0,placeholder:l="Enter some text...",pluginsBeforeRichEditors:u=[],pluginsAfterRichEditors:c=[]}=this.props,{floatingAnchorElem:f}=this.state,d=mr(a0.editorContainer,this.props.editorContainerCls),h=mr(a0.editorInput,this.props.editorInputCls),g=mr(a0.editorInputBox,this.props.editorInputBoxCls),v=mr(a0.editorPlaceholder,this.props.editorPlaceholderCls),y=N.jsx("div",{ref:s,className:g,children:N.jsx(Ldt,{onFocus:n,onBlur:o,className:h})});return N.jsxs(Odt,{initialConfig:t,children:[N.jsx(bve,{editable:a}),N.jsx(pve,{}),N.jsxs("div",{className:d,children:[u,N.jsx(X1t,{contentEditable:y,placeholder:N.jsx("div",{className:v,children:l}),ErrorBoundary:Pdt}),c,N.jsx(Sve,{onKeyDown:r}),N.jsx(Yge,{onChange:i}),N.jsx(gve,{}),N.jsx(wve,{}),N.jsx(_ve,{}),N.jsx(t1t,{}),f&&N.jsx(mve,{anchorElem:f})]})]})}onKeyDown(t){var r,n;(n=(r=this.props).onKeyDown)==null||n.call(r,t)}onFocus(t){var r,n;(n=(r=this.props).onFocus)==null||n.call(r,t)}onBlur(t){var r,n;(n=(r=this.props).onBlur)==null||n.call(r,t)}onChange(t){var r,n;(n=(r=this.props).onChange)==null||n.call(r,t)}onEditorInputWrapperRef(t){t!==null&&this.setState({floatingAnchorElem:t})}}const a0=mi({editorContainer:{boxSizing:"border-box",position:"relative"},editorInputBox:{boxSizing:"border-box",overflow:"auto",border:"none",position:"relative",fontWeight:"400",textAlign:"left"},editorInput:{overflow:"auto",boxSizing:"border-box",resize:"none",fontSize:"15px",position:"relative",tabSize:"1",outline:"0","> :last-child":{marginBottom:0}},editorPlaceholder:{boxSizing:"border-box",color:"#999",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",top:"0px",left:"0px",fontSize:"15px",userSelect:"none",display:"inline-block",pointerEvents:"none",width:"100%"},editorParagraph:{margin:"0 0 15px 0",position:"relative"}}),Tve=A.forwardRef((e,t)=>{const[r]=A.useState(()=>new cve({extractEditorData:Oht,replaceImageSrc:Dht,resetEditorState:kve})),n=A.useMemo(()=>({viewmodel:r}),[r]);return r.resolveUrlByFile$.next(e.resolveUrlByFile),r.resolveUrlByPath$.next(e.resolveUrlByPath),A.useImperativeHandle(t,()=>({focus:()=>{n.viewmodel.focus()},getContent:()=>n.viewmodel.getContent(),insert:o=>{n.viewmodel.insert(o)},isEmpty:()=>n.viewmodel.isEmpty(),replaceImageSrc:(o,i)=>{n.viewmodel.replaceImageSrc(o,i)},reset:o=>{n.viewmodel.reset(o)}})),N.jsx(fve.Provider,{value:n,children:N.jsx(Fht,{...e})})});Tve.displayName="ReactRichEditor";const Ive=e=>{const{viewmodel:t}=H5(),{maxHeight:r}=e,n=dve();return A.useLayoutEffect(()=>{t.maxHeight$.next(r),n(),setTimeout(n,1e3)},[r,n]),N.jsx(Yge,{onChange:n,ignoreHistoryMergeTagChange:!0,ignoreSelectionChange:!0})};Ive.displayName="AutoResizeTextBoxPlugin";const Cve=e=>{const{editorRef:t,initialContent:r,disabled:n,placeholder:o,maxHeight:i=Number.MAX_SAFE_INTEGER,pluginsBeforeRichEditors:s,pluginsAfterRichEditors:a,className:l,onChange:u,onEnterKeyPress:c,resolveUrlByFile:f,resolveUrlByPath:d}=e,h=re.useRef(null),g=re.useMemo(()=>i!==void 0?[...a||[],N.jsx(Ive,{maxHeight:i},"auto-resize-text-box")]:a,[i,a]),v=cz(E=>{E.key==="Enter"&&!E.shiftKey&&!E.ctrlKey&&(E.preventDefault(),c==null||c())});re.useImperativeHandle(t,()=>({clear:()=>{var E;return(E=h.current)==null?void 0:E.reset([])},focus:()=>{var E;return(E=h.current)==null?void 0:E.focus()},getContent:()=>{var E;return((E=h.current)==null?void 0:E.getContent())??[]},insert:E=>{var _;return(_=h.current)==null?void 0:_.insert(E)},isEmpty:()=>{var E;return((E=h.current)==null?void 0:E.isEmpty())??!0},replaceImageSrc:(E,_)=>{var S;return(S=h.current)==null?void 0:S.replaceImageSrc(E,_)},setContent:E=>{var _;return(_=h.current)==null?void 0:_.reset(E)}}));const y=Bht();return N.jsx("div",{className:Xe(y.editor,l),"data-disabled":n,children:N.jsx(Tve,{ref:h,editable:!n,placeholder:o,initialContent:r,onChange:u,onKeyDown:v,pluginsBeforeRichEditors:s,pluginsAfterRichEditors:g,resolveUrlByFile:f,resolveUrlByPath:d})})};Cve.displayName="RichTextEditorRenderer";const Bht=_r({editor:{...Ye.padding("8px"),...Ye.border("1px","solid",Pt.colorNeutralBackground5),...Ye.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative"}});function Mht(e){const{availableOnEmpty:t=!1,title:r,icon:n,className:o,onSend:i}=e,s=()=>{const{viewmodel:a}=Rl(),l=oo(a.disabled$),u=oo(a.isOthersTyping$),c=Upe(),f=l||u||!t&&c,d=cz(()=>{(i??a.sendMessage)()});return N.jsx(Xpe,{className:o,disabled:f,icon:n,title:r,onSend:d})};return s.displayName="SendAction",s}function Lht(e){const{className:t,header:r,main:n,footer:o}=e,i=jht();return N.jsxs("div",{className:Xe(i.chatbox,t),children:[N.jsx("div",{className:i.header,children:r},"header"),N.jsx("div",{className:i.main,children:n},"main"),N.jsx("div",{className:i.footer,children:o},"footer")]})}const jht=_r({chatbox:{...Ye.borderRadius("8px"),display:"flex",flexDirection:"column",alignItems:"stretch",backgroundColor:Pt.colorNeutralBackground1,width:"100%",height:"100%",boxShadow:"0px 6.4px 14.4px rgba(0, 0, 0, 0.132), 0px 1.2px 3.6px rgba(0, 0, 0, 0.108)","::-webkit-scrollbar":{width:"4px",backgroundColor:Pt.colorNeutralBackground1Hover},"::-webkit-scrollbar-thumb":{backgroundColor:Pt.colorScrollbarOverlay,...Ye.border("1px","solid",Pt.colorNeutralBackground1),...Ye.borderRadius("9999px")},"::-webkit-scrollbar-thumb:hover":{backgroundColor:Pt.colorNeutralForeground1Static},"::-webkit-scrollbar-track":{...Ye.borderRadius("9999px"),backgroundColor:"transparent"}},header:{...Ye.flex(0,0,"auto")},main:{...Ye.flex(1,1,"auto"),...Ye.overflow("hidden","auto")},footer:{...Ye.flex(0,0,"auto")}});_r({header:{},topbar:{...Ye.padding("0px","16px"),...Ye.borderBottom("1px","solid",Pt.colorNeutralBackground5),boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",height:"48px"},toolbarTitle:{display:"flex",alignItems:"center",columnGap:"2px"},toolbarActionButton:{color:Pt.colorNeutralForeground2}});const zht=()=>{const{viewmodel:e}=Rl(),t=oo(e.locStrings$),r=Ype(t,e.calcContentForCopy);return re.useMemo(()=>[r],[r])};function Nve(e){const{MessageAvatarRenderer:t,MessageContentRenderer:r,MessageErrorRenderer:n,MessageBubbleRenderer:o,MessageSenderRenderer:i,SessionSplitRenderer:s,TypingIndicatorRenderer:a=dz,className:l,bubbleClassName:u,sessionSplitClassName:c,typingClassName:f,containerRef:d,useMessageContextualMenuItems:h,useMessageActions:g=zht}=e,{viewmodel:v}=Rl(),y=oo(v.messages$),E=oo(v.isOthersTyping$),_=oo(v.locStrings$),S=re.useRef(null);re.useLayoutEffect(()=>{let k=setTimeout(()=>{k=void 0,S.current&&(S.current.scrollTop=S.current.scrollHeight)},50);return()=>{k&&clearTimeout(k)}},[y]);const b=Hht();return N.jsxs("div",{ref:k=>{S.current=k,d&&(d.current=k)},className:Xe(b.main,l),children:[N.jsx(f0e,{MessageAvatarRenderer:t,MessageBubbleRenderer:o,MessageContentRenderer:r,MessageErrorRenderer:n,MessageSenderRenderer:i,SessionSplitRenderer:s,locStrings:_,messages:y,bubbleClassName:u,sessionSplitClassName:c,useMessageContextualMenuItems:h,useMessageActions:g}),E&&N.jsx(a,{locStrings:_,className:f})]})}Nve.displayName="ChatboxMain";const Hht=_r({main:{...Ye.padding("0","16px"),...Ye.overflow("hidden","auto"),height:"100%"}});function Rve(e){const{EditorRenderer:t,EditorActionRenderers:r,LeftToolbarRenderer:n=fut,InputValidationRenderer:o=e0e,MessageInputRenderer:i=hz,initialContent:s,maxInputHeight:a,className:l}=e,{viewmodel:u}=Rl(),{editorRef:c,sendMessage:f,notifyInputContentChange:d}=u,h=oo(u.locStrings$),g=oo(u.disabled$),v=oo(u.isOthersTyping$),y=g||v,E=$ht();return N.jsxs("div",{className:Xe(E.footer,l),children:[N.jsx("div",{className:E.validation,children:N.jsx(o,{className:E.validationInner})}),N.jsxs("div",{className:E.footerContainer,children:[N.jsx("div",{className:E.leftToolbar,children:N.jsx(n,{})}),N.jsx(i,{EditorRenderer:t,EditorActionRenderers:r,editorRef:c,locStrings:h,disabled:y,initialContent:s,isOthersTyping:v,maxInputHeight:a,className:E.editor,onEnterKeyPress:f,onInputContentChange:d})]})]})}Rve.displayName="ChatboxFooter";const $ht=_r({footer:{...Ye.padding("16px"),boxSizing:"border-box"},footerContainer:{display:"flex"},leftToolbar:{...Ye.flex(0,0,"auto")},editor:{...Ye.flex(1),boxSizing:"border-box"},validation:{boxSizing:"border-box"},validationInner:{...Ye.border("1px","solid",Pt.colorNeutralBackground5),...Ye.borderRadius("4px"),...Ye.margin("8px","0px"),...Ye.padding("2px","8px"),backgroundColor:Pt.colorStatusWarningBackground1,color:Pt.colorStatusWarningForeground1}});function Pht(e){const{alias:t,initialDisabled:r,initialMessages:n,locStrings:o,calcContentForCopy:i,makeUserMessage:s,sendMessage:a}=e,[l]=re.useState(()=>new Kpe({alias:t,initialDisabled:r,initialMessages:n,locStrings:o,calcContentForCopy:i,makeUserMessage:s,sendMessage:a})),u=re.useMemo(()=>({viewmodel:l}),[l]);return re.useEffect(()=>{o&&l.locStrings$.next(o)},[o,l]),re.useEffect(()=>{s&&l.setMakeUserMessage(s)},[s,l]),re.useEffect(()=>{a&&l.setSendMessage(a)},[a,l]),N.jsx(Vpe.Provider,{value:u,children:e.children})}function qht(e){switch(e.type){case xr.TEXT:return e.value;case xr.IMAGE:return`![${e.alt}](${e.src})`;default:{const t=e;throw new Error(`Didn't expect to get here: ${t}`)}}}function Wht(e){switch(e.type){case xr.TEXT:return e.value;case xr.IMAGE:return{"data:image/jpg;path":e.src};default:{const t=e;throw new Error(`Didn't expect to get here: ${t}`)}}}function Ght(e){switch(e.type){case xr.TEXT:return{type:"text",text:e.value};case xr.IMAGE:return e.src.startsWith("http://")||e.src.startsWith("https://")?{type:"image_url",image_url:{url:e.src}}:{type:"image_file",image_file:{path:e.src}};default:{const t=e;throw new Error(`Didn't expect to get here: ${t}`)}}}function MM(e){return e.map(qht).filter(Boolean).join(` +`?t.insertParagraph():l===" "?t.insertNodes([kge()]):t.insertText(l)}}else t.insertRawText(i)}function DM(e,t,r){e.dispatchCommand(Aft,{nodes:t,selection:r})||r.insertNodes(t)}function ave(e,t,r,n=[]){let o=t===null||r.isSelected(t);const i=Ir(r)&&r.excludeFromCopy("html");let s=r;if(t!==null){let u=Gz(r);u=ur(u)&&t!==null?Mge(t,u):u,s=u}const a=Ir(s)?s.getChildren():[],l=function(u){const c=u.exportJSON(),f=u.constructor;if(c.type!==f.getType()&&qte(58,f.name),Ir(u)){const d=c.children;Array.isArray(d)||qte(59,f.name)}return c}(s);if(ur(s)){const u=s.__text;u.length>0?l.text=u:o=!1}for(let u=0;u{e.update(()=>{a(Wte(e,t))})});const r=e.getRootElement(),n=e._window==null?window.document:e._window.document,o=ove(e._window);if(r===null||o===null)return!1;const i=n.createElement("span");i.style.cssText="position: fixed; top: -1000px;",i.append(n.createTextNode("#")),r.append(i);const s=new Range;return s.setStart(i,0),s.setEnd(i,1),o.removeAllRanges(),o.addRange(s),new Promise((a,l)=>{const u=e.registerCommand(Tge,c=>(Nh(c,ClipboardEvent)&&(u(),i0!==null&&(window.clearTimeout(i0),i0=null),a(Wte(e,c))),!0),ift);i0=window.setTimeout(()=>{u(),i0=null,a(!1)},50),n.execCommand("copy"),i.remove()})}function Wte(e,t){const r=ove(e._window);if(!r)return!1;const n=r.anchorNode,o=r.focusNode;if(n!==null&&o!==null&&!Oft(e,n,o))return!1;t.preventDefault();const i=t.clipboardData,s=nr();if(i===null||s===null)return!1;const a=ive(e),l=sve(e);let u="";return s!==null&&(u=s.getTextContent()),a!==null&&i.setData("text/html",a),l!==null&&i.setData("application/x-lexical-editor",l),i.setData("text/plain",u),!0}const M1t=Object.freeze(Object.defineProperty({__proto__:null,$generateJSONFromSelectedNodes:lve,$generateNodesFromSerializedNodes:uve,$getHtmlContent:ive,$getLexicalContent:sve,$insertDataTransferForPlainText:D1t,$insertDataTransferForRichText:F1t,$insertGeneratedNodes:DM,copyToClipboard:B1t},Symbol.toStringTag,{value:"Module"})),cve=M1t,Gte=cve.$insertDataTransferForRichText,Kte=cve.copyToClipboard;function Vte(e,t){if(document.caretRangeFromPoint!==void 0){const r=document.caretRangeFromPoint(e,t);return r===null?null:{node:r.startContainer,offset:r.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const r=document.caretPositionFromPoint(e,t);return r===null?null:{node:r.offsetNode,offset:r.offset}}return null}const Uv=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,L1t=Uv&&"documentMode"in document?document.documentMode:null,j1t=!(!Uv||!("InputEvent"in window)||L1t)&&"getTargetRanges"in new window.InputEvent("input"),z1t=Uv&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),H1t=Uv&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,$1t=Uv&&/^(?=.*Chrome).*/i.test(navigator.userAgent),P1t=Uv&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!$1t,FM=ME("DRAG_DROP_PASTE_FILE");class LE extends j5{static getType(){return"quote"}static clone(t){return new LE(t.__key)}constructor(t){super(t)}createDOM(t){const r=document.createElement("blockquote");return Kz(r,t.theme.quote),r}updateDOM(t,r){return!1}static importDOM(){return{blockquote:t=>({conversion:W1t,priority:0})}}exportDOM(t){const{element:r}=super.exportDOM(t);if(r&&Vz(r)){this.isEmpty()&&r.append(document.createElement("br"));const n=this.getFormatType();r.style.textAlign=n;const o=this.getDirection();o&&(r.dir=o)}return{element:r}}static importJSON(t){const r=Qz();return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(t,r){const n=wa(),o=this.getDirection();return n.setDirection(o),this.insertAfter(n,r),n}collapseAtStart(){const t=wa();return this.getChildren().forEach(r=>t.append(r)),this.replace(t),!0}}function Qz(){return FE(new LE)}function q1t(e){return e instanceof LE}class jE extends j5{static getType(){return"heading"}static clone(t){return new jE(t.__tag,t.__key)}constructor(t,r){super(r),this.__tag=t}getTag(){return this.__tag}createDOM(t){const r=this.__tag,n=document.createElement(r),o=t.theme.heading;if(o!==void 0){const i=o[r];Kz(n,i)}return n}updateDOM(t,r){return!1}static importDOM(){return{h1:t=>({conversion:s0,priority:0}),h2:t=>({conversion:s0,priority:0}),h3:t=>({conversion:s0,priority:0}),h4:t=>({conversion:s0,priority:0}),h5:t=>({conversion:s0,priority:0}),h6:t=>({conversion:s0,priority:0}),p:t=>{const r=t.firstChild;return r!==null&&Ute(r)?{conversion:()=>({node:null}),priority:3}:null},span:t=>Ute(t)?{conversion:r=>({node:K0("h1")}),priority:3}:null}}exportDOM(t){const{element:r}=super.exportDOM(t);if(r&&Vz(r)){this.isEmpty()&&r.append(document.createElement("br"));const n=this.getFormatType();r.style.textAlign=n;const o=this.getDirection();o&&(r.dir=o)}return{element:r}}static importJSON(t){const r=K0(t.tag);return r.setFormat(t.format),r.setIndent(t.indent),r.setDirection(t.direction),r}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(t,r=!0){const n=t?t.anchor.offset:0,o=n!==this.getTextContentSize()&&t?K0(this.getTag()):wa(),i=this.getDirection();if(o.setDirection(i),this.insertAfter(o,r),n===0&&!this.isEmpty()&&t){const s=wa();s.select(),this.replace(s,!0)}return o}collapseAtStart(){const t=this.isEmpty()?wa():K0(this.getTag());return this.getChildren().forEach(r=>t.append(r)),this.replace(t),!0}extractWithChild(){return!0}}function Ute(e){return e.nodeName.toLowerCase()==="span"&&e.style.fontSize==="26pt"}function s0(e){const t=e.nodeName.toLowerCase();let r=null;return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6"||(r=K0(t),e.style!==null&&r.setFormat(e.style.textAlign)),{node:r}}function W1t(e){const t=Qz();return e.style!==null&&t.setFormat(e.style.textAlign),{node:t}}function K0(e){return FE(new jE(e))}function G1t(e){return e instanceof jE}function xy(e){let t=null;if(Nh(e,DragEvent)?t=e.dataTransfer:Nh(e,ClipboardEvent)&&(t=e.clipboardData),t===null)return[!1,[],!1];const r=t.types,n=r.includes("Files"),o=r.includes("text/html")||r.includes("text/plain");return[n,Array.from(t.files),o]}function Yte(e){const t=nr();if(!fr(t))return!1;const r=new Set,n=t.getNodes();for(let o=0;o0}function Jw(e){const t=b_(e);return $h(t)}function K1t(e){return Kf(e.registerCommand(xge,t=>{const r=nr();return!!Qi(r)&&(r.clear(),!0)},0),e.registerCommand(Z3,t=>{const r=nr();return!!fr(r)&&(r.deleteCharacter(t),!0)},Ar),e.registerCommand(uft,t=>{const r=nr();return!!fr(r)&&(r.deleteWord(t),!0)},Ar),e.registerCommand(lft,t=>{const r=nr();return!!fr(r)&&(r.deleteLine(t),!0)},Ar),e.registerCommand(sft,t=>{const r=nr();if(typeof t=="string")r!==null&&r.insertText(t);else{if(r===null)return!1;const n=t.dataTransfer;if(n!=null)Gte(n,r,e);else if(fr(r)){const o=t.data;return o&&r.insertText(o),!0}}return!0},Ar),e.registerCommand(Sft,()=>{const t=nr();return!!fr(t)&&(t.removeText(),!0)},Ar),e.registerCommand(dft,t=>{const r=nr();return!!fr(r)&&(r.formatText(t),!0)},Ar),e.registerCommand(fft,t=>{const r=nr();if(!fr(r)&&!Qi(r))return!1;const n=r.getNodes();for(const o of n){const i=gdt(o,s=>Ir(s)&&!s.isInline());i!==null&&i.setFormat(t)}return!0},Ar),e.registerCommand(Rte,t=>{const r=nr();return!!fr(r)&&(r.insertLineBreak(t),!0)},Ar),e.registerCommand(Ote,()=>{const t=nr();return!!fr(t)&&(t.insertParagraph(),!0)},Ar),e.registerCommand(pft,()=>($z([kge()]),!0),Ar),e.registerCommand(hft,()=>Yte(t=>{const r=t.getIndent();t.setIndent(r+1)}),Ar),e.registerCommand(Dte,()=>Yte(t=>{const r=t.getIndent();r>0&&t.setIndent(r-1)}),Ar),e.registerCommand(yft,t=>{const r=nr();if(Qi(r)&&!Jw(t.target)){const n=r.getNodes();if(n.length>0)return n[0].selectPrevious(),!0}else if(fr(r)){const n=xM(r.focus,!0);if(!t.shiftKey&&$h(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),t.preventDefault(),!0}return!1},Ar),e.registerCommand(gft,t=>{const r=nr();if(Qi(r)){const n=r.getNodes();if(n.length>0)return n[0].selectNext(0,0),!0}else if(fr(r)){if(function(o){const i=o.focus;return i.key==="root"&&i.offset===hs().getChildrenSize()}(r))return t.preventDefault(),!0;const n=xM(r.focus,!1);if(!t.shiftKey&&$h(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),t.preventDefault(),!0}return!1},Ar),e.registerCommand(vft,t=>{const r=nr();if(Qi(r)){const n=r.getNodes();if(n.length>0)return t.preventDefault(),n[0].selectPrevious(),!0}if(!fr(r))return!1;if(zte(r,!0)){const n=t.shiftKey;return t.preventDefault(),jte(r,n,!0),!0}return!1},Ar),e.registerCommand(mft,t=>{const r=nr();if(Qi(r)&&!Jw(t.target)){const o=r.getNodes();if(o.length>0)return t.preventDefault(),o[0].selectNext(0,0),!0}if(!fr(r))return!1;const n=t.shiftKey;return!!zte(r,!1)&&(t.preventDefault(),jte(r,n,!1),!0)},Ar),e.registerCommand(Ige,t=>{if(Jw(t.target))return!1;const r=nr();if(!fr(r))return!1;t.preventDefault();const{anchor:n}=r,o=n.getNode();return r.isCollapsed()&&n.offset===0&&!L5(o)&&Pge(o).getIndent()>0?e.dispatchCommand(Dte,void 0):e.dispatchCommand(Z3,!0)},Ar),e.registerCommand(Cge,t=>{if(Jw(t.target))return!1;const r=nr();return!!fr(r)&&(t.preventDefault(),e.dispatchCommand(Z3,!1))},Ar),e.registerCommand(Nge,t=>{const r=nr();if(!fr(r))return!1;if(t!==null){if((H1t||z1t||P1t)&&j1t)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(Rte,!1)}return e.dispatchCommand(Ote,void 0)},Ar),e.registerCommand(Rge,()=>{const t=nr();return!!fr(t)&&(e.blur(),!0)},Ar),e.registerCommand(Wz,t=>{const[,r]=xy(t);if(r.length>0){const o=Vte(t.clientX,t.clientY);if(o!==null){const{offset:i,node:s}=o,a=b_(s);if(a!==null){const l=wge();if(ur(a))l.anchor.set(a.getKey(),i,"text"),l.focus.set(a.getKey(),i,"text");else{const c=a.getParentOrThrow().getKey(),f=a.getIndexWithinParent()+1;l.anchor.set(c,f,"element"),l.focus.set(c,f,"element")}const u=eft(l);Kv(u)}e.dispatchCommand(FM,r)}return t.preventDefault(),!0}const n=nr();return!!fr(n)},Ar),e.registerCommand(qz,t=>{const[r]=xy(t),n=nr();return!(r&&!fr(n))},Ar),e.registerCommand(Pz,t=>{const[r]=xy(t),n=nr();if(r&&!fr(n))return!1;const o=Vte(t.clientX,t.clientY);if(o!==null){const i=b_(o.node);$h(i)&&t.preventDefault()}return!0},Ar),e.registerCommand(xft,()=>(rft(),!0),Ar),e.registerCommand(Tge,t=>(Kte(e,Nh(t,ClipboardEvent)?t:null),!0),Ar),e.registerCommand(aft,t=>(async function(r,n){await Kte(n,Nh(r,ClipboardEvent)?r:null),n.update(()=>{const o=nr();fr(o)?o.removeText():Qi(o)&&o.getNodes().forEach(i=>i.remove())})}(t,e),!0),Ar),e.registerCommand(Oge,t=>{const[,r,n]=xy(t);return r.length>0&&!n?(e.dispatchCommand(FM,r),!0):Rft(t.target)?!1:nr()!==null&&(function(o,i){o.preventDefault(),i.update(()=>{const s=nr(),a=Nh(o,InputEvent)||Nh(o,KeyboardEvent)?null:o.clipboardData;a!=null&&s!==null&&Gte(a,s,i)},{tag:"paste"})}(t,e),!0)},Ar))}const V1t=Object.freeze(Object.defineProperty({__proto__:null,$createHeadingNode:K0,$createQuoteNode:Qz,$isHeadingNode:G1t,$isQuoteNode:q1t,DRAG_DROP_PASTE:FM,HeadingNode:jE,QuoteNode:LE,eventFiles:xy,registerRichText:K1t},Symbol.toStringTag,{value:"Module"})),Zz=V1t,U1t=Zz.DRAG_DROP_PASTE,Xte=Zz.eventFiles,Y1t=Zz.registerRichText;var BM=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?A.useLayoutEffect:A.useEffect;function Qte(e){return e.getEditorState().read(S1t(e.isComposing()))}function X1t({contentEditable:e,placeholder:t,ErrorBoundary:r}){const[n]=Hi(),o=function(i,s){const[a,l]=A.useState(()=>i.getDecorators());return BM(()=>i.registerDecoratorListener(u=>{pi.flushSync(()=>{l(u)})}),[i]),A.useEffect(()=>{l(i.getDecorators())},[i]),A.useMemo(()=>{const u=[],c=Object.keys(a);for(let f=0;fi._onError(v)},A.createElement(A.Suspense,{fallback:null},a[d])),g=i.getElementByKey(d);g!==null&&u.push(pi.createPortal(h,g,d))}return u},[s,a,i])}(n,r);return function(i){BM(()=>Kf(Y1t(i),x1t(i)),[i])}(n),A.createElement(A.Fragment,null,e,A.createElement(Q1t,{content:t}),o)}function Q1t({content:e}){const[t]=Hi(),r=function(o){const[i,s]=A.useState(()=>Qte(o));return BM(()=>{function a(){const l=Qte(o);s(l)}return a(),Kf(o.registerUpdateListener(()=>{a()}),o.registerEditableListener(()=>{a()}))},[o]),i}(t),n=g1t();return r?typeof e=="function"?e(n):e:null}const Z1t=Object.freeze(Object.defineProperty({__proto__:null,RichTextPlugin:X1t},Symbol.toStringTag,{value:"Module"})),J1t=Z1t,eht=J1t.RichTextPlugin;var dr=(e=>(e.IMAGE="image",e.TEXT="text",e))(dr||{});const zx="fake:",tht=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Zte(e,t){return e.getEditorState().read(()=>{const r=BE(t);return r!==null&&r.isSelected()})}function rht(e){const[t]=Hi(),[r,n]=A.useState(()=>Zte(t,e));return A.useEffect(()=>{let o=!0;const i=t.registerUpdateListener(()=>{o&&n(Zte(t,e))});return()=>{o=!1,i()}},[t,e]),[r,A.useCallback(o=>{t.update(()=>{let i=nr();Qi(i)||(i=Uct(),Kv(i)),Qi(i)&&(o?i.add(e):i.delete(e))})},[t,e]),A.useCallback(()=>{t.update(()=>{const o=nr();Qi(o)&&o.clear()})},[t])]}const nht=Object.freeze(Object.defineProperty({__proto__:null,useLexicalNodeSelection:rht},Symbol.toStringTag,{value:"Module"})),oht=nht,iht=oht.useLexicalNodeSelection;function sht(e){const t=A.useRef(e);return A.useLayoutEffect(()=>{t.current=e}),A.useCallback((...r)=>{const n=t.current;return n(...r)},[])}const Jz=ME("INSERT_IMAGE_COMMAND"),fve=ME("INSERT_MULTIPLE_NODES_COMMAND"),Jte=ME("RIGHT_CLICK_IMAGE_COMMAND");class dve extends Wpe{constructor(t){super(),this.editor$=new Vo(void 0),this.maxHeight$=new Vo(void 0),this.resolveUrlByPath$=new Vo(void 0),this.resolveUrlByFile$=new Vo(void 0),this._resetEditorState=t.resetEditorState,this._replaceImageSrc=t.replaceImageSrc,this._extractEditorData=t.extractEditorData}get requiredEditor(){const t=this.editor$.getSnapshot();if(!t)throw new Error("[RichEditor] editor is not prepared.");return t}focus(){this.requiredEditor.focus()}getContent(){const r=this.requiredEditor.getEditorState();return this._extractEditorData(r)}insert(t){this.requiredEditor.dispatchCommand(fve,{nodes:t})}isEmpty(){return this.requiredEditor.getEditorState().read(()=>{const o=hs(),i=o.getFirstChild();return i?o.getChildrenSize()===1&&i instanceof j5?i.isEmpty():!1:!0})}replaceImageSrc(t,r){const n=this.editor$.getSnapshot();if(!n)throw new Error("[RichEditor] editor is not prepared.");this._replaceImageSrc(n,t,r)}reset(t){const r=this.requiredEditor;this._resetEditorState(t)(r)}async resolveUrlByFile(t){const r=this.resolveUrlByFile$.getSnapshot();return r?r(t):""}async resolveUrlByPath(t){if(t.startsWith(zx))return t;const r=this.resolveUrlByPath$.getSnapshot();return(r==null?void 0:r(t))??t}}const hve=A.createContext({viewmodel:new dve({extractEditorData:()=>[],resetEditorState:()=>()=>{},replaceImageSrc:()=>{}})}),zE=()=>{const e=A.useContext(hve),t=A.useContext(Vge),r=(t==null?void 0:t[0])??void 0;return r&&e.viewmodel.editor$.next(r),e},pve=()=>{const[e]=Hi(),{viewmodel:t}=zE(),r=oo(t.maxHeight$);return sht(()=>{if(r===void 0)return;const o=e==null?void 0:e.getRootElement();if(o){o.style.height="24px";const i=Math.min(r,o.scrollHeight);o.style.height=`${i}px`}})},ere=new Set;function aht(e){ere.has(e)||new Promise(t=>{const r=new Image;r.src=e,r.onload=()=>{ere.add(e),t(null)}})}function lht({alt:e,className:t,imageRef:r,src:n,width:o,height:i,maxWidth:s,onLoad:a}){return aht(n),N.jsx("img",{className:t||void 0,src:n,alt:e,ref:r,style:{height:i,maxWidth:s,width:o,border:"1px solid #E5E5E5"},draggable:!1,onLoad:a})}const uht=e=>{const{viewmodel:t}=zE(),r=pve(),{src:n,alt:o,nodeKey:i,width:s,height:a,maxWidth:l,isImageNode:u}=e,[c,f]=A.useState(n),d=A.useRef(null),h=A.useRef(null),[g,v,y]=iht(i),[E]=Hi(),[_,S]=A.useState(null),b=A.useRef(null),k=A.useCallback(z=>{if(g&&Qi(nr())){z.preventDefault();const P=BE(i);u(P)&&P.remove()}return!1},[g,i,u]),T=A.useCallback(z=>{const F=nr(),P=h.current;return g&&Qi(F)&&F.getNodes().length===1&&P!==null&&P!==document.activeElement?(z.preventDefault(),P.focus(),!0):!1},[g]),x=A.useCallback(z=>z.target===d.current?(z.preventDefault(),!0):!1,[]),I=A.useCallback(z=>h.current===z.target?(Kv(null),E.update(()=>{v(!0);const F=E.getRootElement();F!==null&&F.focus()}),!0):!1,[E,v]),C=A.useCallback(z=>{const F=z;return F.target===d.current?(F.shiftKey?v(!g):(y(),v(!0)),!0):!1},[g,v,y]),R=A.useCallback(z=>{E.getEditorState().read(()=>{const F=nr();z.target.tagName==="IMG"&&fr(F)&&F.getNodes().length===1&&E.dispatchCommand(Jte,z)})},[E]);A.useEffect(()=>{let z=!1;return t.resolveUrlByPath(n).then(F=>{z||f(F)}),()=>{z=!0}},[t,n]),A.useEffect(()=>{let z=!0;const F=E.getRootElement(),P=Kf(E.registerUpdateListener(({editorState:K})=>{z&&S(K.read(nr))}),E.registerCommand(kft,(K,V)=>(b.current=V,!1),Jl),E.registerCommand(xge,C,Jl),E.registerCommand(Jte,C,Jl),E.registerCommand(qz,x,Jl),E.registerCommand(Cge,k,Jl),E.registerCommand(Ige,k,Jl),E.registerCommand(Nge,T,Jl),E.registerCommand(Rge,I,Jl));return F==null||F.addEventListener("contextmenu",R),()=>{z=!1,P(),F==null||F.removeEventListener("contextmenu",R)}},[E,g,i,y,k,x,T,I,C,R,v]);const D=g&&Qi(_),M=g?`focused ${Qi(_)?"draggable":""}`:void 0,W=(c.startsWith(zx)?c.slice(zx.length):c).replace(/#[\s\S]*$/,"");return N.jsx(A.Suspense,{fallback:null,children:N.jsx("div",{draggable:D,children:N.jsx(lht,{className:M,src:W,alt:o,imageRef:d,width:s,height:a,maxWidth:l,onLoad:r})})})};class B1 extends cft{constructor(t,r,n,o,i,s){super(s),this.src=t,this.alt=r,this.maxWidth=n,this.width=o||"inherit",this.height=i||"inherit"}static getType(){return dr.IMAGE}static clone(t){return new B1(t.src,t.alt,t.maxWidth,t.width,t.height,t.__key)}static importDOM(){return{img:t=>({conversion:cht,priority:0})}}static importJSON(t){const{alt:r,height:n,width:o,maxWidth:i,src:s}=t;return Yv({alt:r,height:n,maxWidth:i,src:s,width:o})}exportDOM(){const t=document.createElement("img");return t.setAttribute("src",this.src),t.setAttribute("alt",this.alt),t.setAttribute("width",this.width.toString()),t.setAttribute("height",this.height.toString()),{element:t}}exportJSON(){return{alt:this.getAltText(),height:this.height==="inherit"?0:this.height,maxWidth:this.maxWidth,src:this.getSrc(),type:dr.IMAGE,version:1,width:this.width==="inherit"?0:this.width}}setWidthAndHeight(t,r){const n=this.getWritable();n.width=t,n.height=r}createDOM(t){const r=document.createElement("span"),o=t.theme.image;return o!==void 0&&(r.className=o),r}updateDOM(){return!1}getSrc(){return this.src}getAltText(){return this.alt}decorate(){return N.jsx(A.Suspense,{fallback:null,children:N.jsx(uht,{src:this.src,alt:this.alt,width:this.width,height:this.height,maxWidth:this.maxWidth,nodeKey:this.getKey(),isImageNode:gve})})}}function Yv({alt:e,height:t,maxWidth:r=240,src:n,width:o,key:i}){return FE(new B1(n,e,r,o,t,i))}function gve(e){return e instanceof B1}function cht(e){if(e instanceof HTMLImageElement){const{alt:t,src:r,width:n,height:o}=e;return r.startsWith("blob:")?null:{node:Yv({alt:t,height:o,src:r,width:n})}}return null}const vve=()=>{const[e]=Hi();return re.useLayoutEffect(()=>Kf(e.registerCommand(fve,t=>{const{nodes:r}=t;if(r.length===1&&r[0].type===dr.TEXT){const i=r[0];return e.update(()=>{const s=nr();s&&s.insertRawText(i.value)}),!0}let n;const o=[];for(const i of r)switch(i.type){case dr.TEXT:{const s=rp(i.value),a=wa();n=s,a.append(s),o.push(a);break}case dr.IMAGE:{const s=Yv(i),a=wa();n=s,a.append(s),o.push(a);break}}return o.length<=0||($z(o),n&&w1(n.getParentOrThrow())&&n.selectEnd()),!0},Ar)),[e]),N.jsx(re.Fragment,{})};vve.displayName="CommandPlugin";const fht=["image/","image/heic","image/heif","image/gif","image/webp"],mve=()=>{const[e]=Hi(),{viewmodel:t}=zE();return A.useLayoutEffect(()=>e.registerCommand(U1t,r=>{return n(),!0;async function n(){for(const o of r)if(ydt(o,fht)){const i=o.name,s=await t.resolveUrlByFile(o);e.dispatchCommand(Jz,{alt:i,src:s})}}},Jl),[e,t]),N.jsx(A.Fragment,{})};mve.displayName="DragDropPastePlugin";class yve{constructor(t,r){this._x=t,this._y=r}get x(){return this._x}get y(){return this._y}equals(t){return this.x===t.x&&this.y===t.y}calcDeltaXTo(t){return this.x-t.x}calcDeltaYTo(t){return this.y-t.y}calcHorizontalDistanceTo(t){return Math.abs(this.calcDeltaXTo(t))}calcVerticalDistance(t){return Math.abs(this.calcDeltaYTo(t))}calcDistanceTo(t){const r=this.calcDeltaXTo(t)**2,n=this.calcDeltaYTo(t)**2;return Math.sqrt(r+n)}}function dht(e){return e instanceof yve}class bh{constructor(t,r,n,o){const[i,s]=r<=o?[r,o]:[o,r],[a,l]=t<=n?[t,n]:[n,t];this._top=i,this._right=l,this._left=a,this._bottom=s}get top(){return this._top}get right(){return this._right}get bottom(){return this._bottom}get left(){return this._left}get width(){return Math.abs(this._left-this._right)}get height(){return Math.abs(this._bottom-this._top)}static fromLTRB(t,r,n,o){return new bh(t,r,n,o)}static fromLWTH(t,r,n,o){return new bh(t,n,t+r,n+o)}static fromPoints(t,r){const{y:n,x:o}=t,{y:i,x:s}=r;return bh.fromLTRB(o,n,s,i)}static fromDOM(t){const{top:r,width:n,left:o,height:i}=t.getBoundingClientRect();return bh.fromLWTH(o,n,r,i)}equals(t){return t.top===this._top&&t.bottom===this._bottom&&t.left===this._left&&t.right===this._right}contains(t){if(dht(t)){const{x:r,y:n}=t,o=nthis._bottom,s=rthis._right;return{reason:{isOnBottomSide:i,isOnLeftSide:s,isOnRightSide:a,isOnTopSide:o},result:!o&&!i&&!s&&!a}}else{const{top:r,left:n,bottom:o,right:i}=t;return r>=this._top&&r<=this._bottom&&o>=this._top&&o<=this._bottom&&n>=this._left&&n<=this._right&&i>=this._left&&i<=this._right}}intersectsWith(t){const{left:r,top:n,width:o,height:i}=t,{left:s,top:a,width:l,height:u}=this,c=r+o>=s+l?r+o:s+l,f=n+i>=a+u?n+i:a+u,d=r<=s?r:s,h=n<=a?n:a;return c-d<=o+l&&f-h<=i+u}generateNewRect({left:t=this.left,top:r=this.top,right:n=this.right,bottom:o=this.bottom}){return new bh(t,r,n,o)}}const MM=4,hht=2,pht="draggable-block-menu",tre="application/x-lexical-drag-block",rre=28,ght=1,vht=-1,nre=0,bve=e=>{const{anchorElem:t=document.body}=e,[r]=Hi();return kht(r,t,r._editable)};bve.displayName="DraggableBlockPlugin";let Yk=1/0;function mht(e){return e===0?1/0:Yk>=0&&Ykhs().getChildrenKeys())}function _ve(e){const t=(l,u)=>l?parseFloat(window.getComputedStyle(l)[u]):0,{marginTop:r,marginBottom:n}=window.getComputedStyle(e),o=t(e.previousElementSibling,"marginBottom"),i=t(e.nextElementSibling,"marginTop"),s=Math.max(parseFloat(r),o);return{marginBottom:Math.max(parseFloat(n),i),marginTop:s}}function eF(e,t,r,n=!1){const o=e.getBoundingClientRect(),i=yht(t);let s=null;return t.getEditorState().read(()=>{if(n){const u=t.getElementByKey(i[0]),c=t.getElementByKey(i[i.length-1]),f=u==null?void 0:u.getBoundingClientRect(),d=c==null?void 0:c.getBoundingClientRect();if(f&&d&&(r.yd.bottom&&(s=c),s))return}let a=mht(i.length),l=nre;for(;a>=0&&a{n.transform=r})}function Sht(e,t,r,n){const{top:o,height:i}=t.getBoundingClientRect(),{top:s,width:a}=n.getBoundingClientRect(),{marginTop:l,marginBottom:u}=_ve(t);let c=o;r>=o?c+=i+u/2:c-=l/2;const f=c-s-hht,d=rre-MM,h=e.style;h.transform=`translate(${d}px, ${f}px)`,h.width=`${a-(rre-MM)*2}px`,h.opacity=".4"}function wht(e){const t=e==null?void 0:e.style;t&&(t.opacity="0",t.transform="translate(-10000px, -10000px)")}function kht(e,t,r){const n=t.parentElement,o=A.useRef(null),i=A.useRef(null),s=A.useRef(!1),[a,l]=A.useState(null);A.useLayoutEffect(()=>{function f(h){const g=h.target;if(!tF(g)){l(null);return}if(bht(g))return;const v=eF(t,e,h);l(v)}function d(){l(null)}return n==null||n.addEventListener("mousemove",f),n==null||n.addEventListener("mouseleave",d),()=>{n==null||n.removeEventListener("mousemove",f),n==null||n.removeEventListener("mouseleave",d)}},[n,t,e]),A.useEffect(()=>{o.current&&_ht(a,o.current,t)},[t,a]),A.useEffect(()=>{function f(h){if(!s.current)return!1;const[g]=Xte(h);if(g)return!1;const{pageY:v,target:y}=h;if(!tF(y))return!1;const E=eF(t,e,h,!0),_=i.current;return E===null||_===null?!1:(Sht(_,E,v,t),h.preventDefault(),!0)}function d(h){if(!s.current)return!1;const[g]=Xte(h);if(g)return!1;const{target:v,dataTransfer:y,pageY:E}=h,_=(y==null?void 0:y.getData(tre))||"",S=BE(_);if(!S||!tF(v))return!1;const b=eF(t,e,h,!0);if(!b)return!1;const k=b_(b);if(!k)return!1;if(k===S)return!0;const T=b.getBoundingClientRect().top;return E>=T?k.insertAfter(S):k.insertBefore(S),l(null),!0}return Kf(e.registerCommand(Pz,h=>f(h),Jl),e.registerCommand(Wz,h=>d(h),TM))},[t,e]);const u=f=>{const d=f.dataTransfer;if(!d||!a)return;Eht(d,a);let h="";e.update(()=>{const g=b_(a);g&&(h=g.getKey())}),s.current=!0,d.setData(tre,h)},c=()=>{s.current=!1,wht(i.current)};return pi.createPortal(N.jsxs(A.Fragment,{children:[N.jsx("div",{className:"icon draggable-block-menu",role:"button",ref:o,draggable:!0,onDragStart:u,onDragEnd:c,children:N.jsx("div",{className:r?"icon":""})}),N.jsx("div",{className:"draggable-block-target-line",ref:i})]}),t)}const Eve=e=>{const{editable:t}=e,[r]=Hi();return A.useEffect(()=>{r.setEditable(t)},[r,t]),N.jsx(A.Fragment,{})};Eve.displayName="EditablePlugin";const Sve=()=>{const[e]=Hi();return A.useLayoutEffect(()=>{if(!e.hasNodes([B1]))throw new Error("[RichEditor] ImagesPlugin: ImageNode not registered on editor");return Kf(e.registerCommand(Jz,xht,Ar),e.registerCommand(qz,Tht,TM),e.registerCommand(Pz,Iht,Jl),e.registerCommand(Wz,t=>Cht(t,e),TM))},[e]),N.jsx(A.Fragment,{})};Sve.displayName="ImagesPlugin";let ek;const Aht=()=>{if(ek===void 0){const e="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";ek=document.createElement("img"),ek.src=e}return ek};function xht(e){const t=Yv(e);return $z([t]),w1(t.getParentOrThrow())&&vdt(t,wa).selectEnd(),!0}function Tht(e){const t=eH();if(!t)return!1;const r=e.dataTransfer;if(!r)return!1;const n=Aht();return r.setData("text/plain","_"),r.setDragImage(n,0,0),r.setData("application/x-lexical-drag",JSON.stringify({type:dr.IMAGE,data:{alt:t.alt,height:t.height,key:t.getKey(),maxWidth:t.maxWidth,src:t.src,width:t.width}})),!0}function Iht(e){return eH()?(wve(e)||e.preventDefault(),!0):!1}function Cht(e,t){const r=eH();if(!r)return!1;const n=Nht(e);if(!n)return!1;if(e.preventDefault(),wve(e)){const o=Oht(e);r.remove();const i=wge();o!=null&&i.applyDOMRange(o),Kv(i),t.dispatchCommand(Jz,n)}return!0}function eH(){const e=nr();if(!Qi(e))return null;const r=e.getNodes()[0];return gve(r)?r:null}function Nht(e){var r;const t=(r=e.dataTransfer)==null?void 0:r.getData("application/x-lexical-drag");if(!t)return null;try{const{type:n,data:o}=JSON.parse(t);return n===dr.IMAGE?o:null}catch{return null}}function wve(e){const t=e.target;return!!(t&&t instanceof HTMLElement&&!t.closest("code, span.editor-image")&&t.parentElement&&t.parentElement.closest("div.ContentEditable__root"))}const Rht=e=>tht?(e||window).getSelection():null;function Oht(e){const t=e,r=t.target,n=r==null?null:r.nodeType===9?r.defaultView:r.ownerDocument.defaultView,o=Rht(n);let i;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(t.clientX,t.clientY);else if(t.rangeParent&&o!==null)o.collapse(t.rangeParent,t.rangeOffset||0),i=o.getRangeAt(0);else throw Error("[RichEditor] ImagesPlugin: Cannot get the selection when dragging");return i}const kve=e=>{const[t]=Hi(),r=A.useRef(e.onKeyDown);return A.useLayoutEffect(()=>{const n=o=>{var i;(i=r.current)==null||i.call(r,o)};return t.registerRootListener((o,i)=>{i!==null&&i.removeEventListener("keydown",n),o!==null&&o.addEventListener("keydown",n)})},[t]),N.jsx(A.Fragment,{})};kve.displayName="OnKeyDownPlugin";const Ave=()=>{const[e]=Hi();return A.useLayoutEffect(()=>Kf(e.registerUpdateListener(t=>{t.tags.has("paste")&&e.update(()=>{t.dirtyLeaves.forEach(r=>{const n=BE(r);if(ur(n)){const o=Vct(n);o.setFormat(0),o.setStyle(""),n.replace(o)}})})}),e.registerNodeTransform(__,t=>{const r=t.getParentOrThrow();if(Adt(r)){const n=rp(r.__url);r.insertBefore(n),r.remove()}})),[e]),N.jsx(A.Fragment,{})};Ave.displayName="PlainContentPastePlugin";const xve=e=>t=>{t.update(()=>{const r=hs();r.clear();for(const n of e)if(n!=null){if(typeof n=="string"){const o=rp(n),i=wa();i.append(o),r.append(i);continue}if(typeof n=="object"){switch(n.type){case dr.IMAGE:{const o=Yv({alt:n.alt,src:n.src}),i=wa();i.append(o),r.append(i);break}case dr.TEXT:{const o=rp(n.value),i=wa();i.append(o),r.append(i);break}default:throw console.log("item:",n),new TypeError(`[resetEditorState] unknown rich-editor content type: ${n.type}`)}continue}console.error("[resetEditorState] unknown rich-editor data:",n)}})},Dht=wft.getType(),Tve=_ft.getType(),Fht=__.getType(),Ive=B1.getType(),Bht=bft.getType(),Mht=e=>{const t=e.toJSON(),r=[];for(const o of t.root.children)n(o);return r;function n(o){switch(o.type){case Ive:{const{src:i,alt:s}=o;if(i.startsWith(zx)){const a=r[r.length-1];(a==null?void 0:a.type)===dr.TEXT&&(a.value+=` +`);break}r.push({type:dr.IMAGE,src:i,alt:s});break}case Bht:{const i=r[r.length-1];(i==null?void 0:i.type)===dr.TEXT&&(i.value+=` +`);break}case Tve:{const i=o.children;for(const s of i)n(s);break}case Fht:{const i=o.text,s=r[r.length-1];(s==null?void 0:s.type)===dr.TEXT?s.value+=i:r.push({type:dr.TEXT,value:i});break}default:throw new TypeError(`[RichEditor] [extractEditorData] Unknown node.type: (${o.type})`)}}},Lht=(e,t,r)=>{e.update(()=>{const n=hs();o(n);function o(i){switch(i.getType()){case Dht:case Tve:for(const s of i.getChildren())o(s);break;case Ive:{const s=i;if(s.getSrc()===t){const a=Yv({alt:s.getAltText(),src:r});s.replace(a)}break}}}})};class jht extends A.Component{constructor(t){super(t),this.state={floatingAnchorElem:null};const{editable:r=!0,initialContent:n}=this.props;this.initialConfig={namespace:"react-simple-rich-editor",theme:{ltr:"ltr",rtl:"rtl",placeholder:a0.editorPlaceholder,paragraph:a0.editorParagraph},nodes:[B1,xdt],editable:r,editorState:n?xve(n):null,onError:o=>{console.error(o)}},this.onKeyDown=this.onKeyDown.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onChange=this.onChange.bind(this),this.onEditorInputWrapperRef=this.onEditorInputWrapperRef.bind(this)}render(){const{initialConfig:t,onKeyDown:r,onFocus:n,onBlur:o,onChange:i,onEditorInputWrapperRef:s}=this,{editable:a=!0,placeholder:l="Enter some text...",pluginsBeforeRichEditors:u=[],pluginsAfterRichEditors:c=[]}=this.props,{floatingAnchorElem:f}=this.state,d=br(a0.editorContainer,this.props.editorContainerCls),h=br(a0.editorInput,this.props.editorInputCls),g=br(a0.editorInputBox,this.props.editorInputBoxCls),v=br(a0.editorPlaceholder,this.props.editorPlaceholderCls),y=N.jsx("div",{ref:s,className:g,children:N.jsx($dt,{onFocus:n,onBlur:o,className:h})});return N.jsxs(Mdt,{initialConfig:t,children:[N.jsx(Eve,{editable:a}),N.jsx(vve,{}),N.jsxs("div",{className:d,children:[u,N.jsx(eht,{contentEditable:y,placeholder:N.jsx("div",{className:v,children:l}),ErrorBoundary:Kdt}),c,N.jsx(kve,{onKeyDown:r}),N.jsx(Qge,{onChange:i}),N.jsx(mve,{}),N.jsx(Ave,{}),N.jsx(Sve,{}),N.jsx(i1t,{}),f&&N.jsx(bve,{anchorElem:f})]})]})}onKeyDown(t){var r,n;(n=(r=this.props).onKeyDown)==null||n.call(r,t)}onFocus(t){var r,n;(n=(r=this.props).onFocus)==null||n.call(r,t)}onBlur(t){var r,n;(n=(r=this.props).onBlur)==null||n.call(r,t)}onChange(t){var r,n;(n=(r=this.props).onChange)==null||n.call(r,t)}onEditorInputWrapperRef(t){t!==null&&this.setState({floatingAnchorElem:t})}}const a0=mi({editorContainer:{boxSizing:"border-box",position:"relative"},editorInputBox:{boxSizing:"border-box",overflow:"auto",border:"none",position:"relative",fontWeight:"400",textAlign:"left"},editorInput:{overflow:"auto",boxSizing:"border-box",resize:"none",fontSize:"15px",position:"relative",tabSize:"1",outline:"0","> :last-child":{marginBottom:0}},editorPlaceholder:{boxSizing:"border-box",color:"#999",overflow:"hidden",position:"absolute",textOverflow:"ellipsis",top:"0px",left:"0px",fontSize:"15px",userSelect:"none",display:"inline-block",pointerEvents:"none",width:"100%"},editorParagraph:{margin:"0 0 15px 0",position:"relative"}}),Cve=A.forwardRef((e,t)=>{const[r]=A.useState(()=>new dve({extractEditorData:Mht,replaceImageSrc:Lht,resetEditorState:xve})),n=A.useMemo(()=>({viewmodel:r}),[r]);return r.resolveUrlByFile$.next(e.resolveUrlByFile),r.resolveUrlByPath$.next(e.resolveUrlByPath),A.useImperativeHandle(t,()=>({focus:()=>{n.viewmodel.focus()},getContent:()=>n.viewmodel.getContent(),insert:o=>{n.viewmodel.insert(o)},isEmpty:()=>n.viewmodel.isEmpty(),replaceImageSrc:(o,i)=>{n.viewmodel.replaceImageSrc(o,i)},reset:o=>{n.viewmodel.reset(o)}})),N.jsx(hve.Provider,{value:n,children:N.jsx(jht,{...e})})});Cve.displayName="ReactRichEditor";const Nve=e=>{const{viewmodel:t}=zE(),{maxHeight:r}=e,n=pve();return A.useLayoutEffect(()=>{t.maxHeight$.next(r),n(),setTimeout(n,1e3)},[r,n]),N.jsx(Qge,{onChange:n,ignoreHistoryMergeTagChange:!0,ignoreSelectionChange:!0})};Nve.displayName="AutoResizeTextBoxPlugin";const Rve=e=>{const{editorRef:t,initialContent:r,disabled:n,placeholder:o,maxHeight:i=Number.MAX_SAFE_INTEGER,pluginsBeforeRichEditors:s,pluginsAfterRichEditors:a,className:l,onChange:u,onEnterKeyPress:c,resolveUrlByFile:f,resolveUrlByPath:d}=e,h=re.useRef(null),g=re.useMemo(()=>i!==void 0?[...a||[],N.jsx(Nve,{maxHeight:i},"auto-resize-text-box")]:a,[i,a]),v=fz(E=>{E.key==="Enter"&&!E.shiftKey&&!E.ctrlKey&&(E.preventDefault(),c==null||c())});re.useImperativeHandle(t,()=>({clear:()=>{var E;return(E=h.current)==null?void 0:E.reset([])},focus:()=>{var E;return(E=h.current)==null?void 0:E.focus()},getContent:()=>{var E;return((E=h.current)==null?void 0:E.getContent())??[]},insert:E=>{var _;return(_=h.current)==null?void 0:_.insert(E)},isEmpty:()=>{var E;return((E=h.current)==null?void 0:E.isEmpty())??!0},replaceImageSrc:(E,_)=>{var S;return(S=h.current)==null?void 0:S.replaceImageSrc(E,_)},setContent:E=>{var _;return(_=h.current)==null?void 0:_.reset(E)}}));const y=zht();return N.jsx("div",{className:Ve(y.editor,l),"data-disabled":n,children:N.jsx(Cve,{ref:h,editable:!n,placeholder:o,initialContent:r,onChange:u,onKeyDown:v,pluginsBeforeRichEditors:s,pluginsAfterRichEditors:g,resolveUrlByFile:f,resolveUrlByPath:d})})};Rve.displayName="RichTextEditorRenderer";const zht=vr({editor:{...Xe.padding("8px"),...Xe.border("1px","solid",Pt.colorNeutralBackground5),...Xe.borderRadius("4px"),boxSizing:"border-box",display:"block",width:"100%",userSelect:"none",position:"relative"}});function Hht(e){const{availableOnEmpty:t=!1,title:r,icon:n,className:o,onSend:i}=e,s=()=>{const{viewmodel:a}=Ol(),l=oo(a.disabled$),u=oo(a.isOthersTyping$),c=Ype(),f=l||u||!t&&c,d=fz(()=>{(i??a.sendMessage)()});return N.jsx(Qpe,{className:o,disabled:f,icon:n,title:r,onSend:d})};return s.displayName="SendAction",s}function $ht(e){const{className:t,header:r,main:n,footer:o}=e,i=Pht();return N.jsxs("div",{className:Ve(i.chatbox,t),children:[N.jsx("div",{className:i.header,children:r},"header"),N.jsx("div",{className:i.main,children:n},"main"),N.jsx("div",{className:i.footer,children:o},"footer")]})}const Pht=vr({chatbox:{...Xe.borderRadius("8px"),display:"flex",flexDirection:"column",alignItems:"stretch",backgroundColor:Pt.colorNeutralBackground1,width:"100%",height:"100%",boxShadow:"0px 6.4px 14.4px rgba(0, 0, 0, 0.132), 0px 1.2px 3.6px rgba(0, 0, 0, 0.108)","::-webkit-scrollbar":{width:"4px",backgroundColor:Pt.colorNeutralBackground1Hover},"::-webkit-scrollbar-thumb":{backgroundColor:Pt.colorScrollbarOverlay,...Xe.border("1px","solid",Pt.colorNeutralBackground1),...Xe.borderRadius("9999px")},"::-webkit-scrollbar-thumb:hover":{backgroundColor:Pt.colorNeutralForeground1Static},"::-webkit-scrollbar-track":{...Xe.borderRadius("9999px"),backgroundColor:"transparent"}},header:{...Xe.flex(0,0,"auto")},main:{...Xe.flex(1,1,"auto"),...Xe.overflow("hidden","auto")},footer:{...Xe.flex(0,0,"auto")}});vr({header:{},topbar:{...Xe.padding("0px","16px"),...Xe.borderBottom("1px","solid",Pt.colorNeutralBackground5),boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",height:"48px"},toolbarTitle:{display:"flex",alignItems:"center",columnGap:"2px"},toolbarActionButton:{color:Pt.colorNeutralForeground2}});const qht=()=>{const{viewmodel:e}=Ol(),t=oo(e.locStrings$),r=Xpe(t,e.calcContentForCopy);return re.useMemo(()=>[r],[r])};function Ove(e){const{MessageAvatarRenderer:t,MessageContentRenderer:r,MessageErrorRenderer:n,MessageBubbleRenderer:o,MessageSenderRenderer:i,SessionSplitRenderer:s,TypingIndicatorRenderer:a=hz,className:l,bubbleClassName:u,sessionSplitClassName:c,typingClassName:f,containerRef:d,useMessageContextualMenuItems:h,useMessageActions:g=qht}=e,{viewmodel:v}=Ol(),y=oo(v.messages$),E=oo(v.isOthersTyping$),_=oo(v.locStrings$),S=re.useRef(null);re.useLayoutEffect(()=>{let k=setTimeout(()=>{k=void 0,S.current&&(S.current.scrollTop=S.current.scrollHeight)},50);return()=>{k&&clearTimeout(k)}},[y]);const b=Wht();return N.jsxs("div",{ref:k=>{S.current=k,d&&(d.current=k)},className:Ve(b.main,l),children:[N.jsx(d0e,{MessageAvatarRenderer:t,MessageBubbleRenderer:o,MessageContentRenderer:r,MessageErrorRenderer:n,MessageSenderRenderer:i,SessionSplitRenderer:s,locStrings:_,messages:y,bubbleClassName:u,sessionSplitClassName:c,useMessageContextualMenuItems:h,useMessageActions:g}),E&&N.jsx(a,{locStrings:_,className:f})]})}Ove.displayName="ChatboxMain";const Wht=vr({main:{...Xe.padding("0","16px"),...Xe.overflow("hidden","auto"),height:"100%"}});function Dve(e){const{EditorRenderer:t,EditorActionRenderers:r,LeftToolbarRenderer:n=vut,InputValidationRenderer:o=t0e,MessageInputRenderer:i=pz,initialContent:s,maxInputHeight:a,className:l}=e,{viewmodel:u}=Ol(),{editorRef:c,sendMessage:f,notifyInputContentChange:d}=u,h=oo(u.locStrings$),g=oo(u.disabled$),v=oo(u.isOthersTyping$),y=g||v,E=Ght();return N.jsxs("div",{className:Ve(E.footer,l),children:[N.jsx("div",{className:E.validation,children:N.jsx(o,{className:E.validationInner})}),N.jsxs("div",{className:E.footerContainer,children:[N.jsx("div",{className:E.leftToolbar,children:N.jsx(n,{})}),N.jsx(i,{EditorRenderer:t,EditorActionRenderers:r,editorRef:c,locStrings:h,disabled:y,initialContent:s,isOthersTyping:v,maxInputHeight:a,className:E.editor,onEnterKeyPress:f,onInputContentChange:d})]})]})}Dve.displayName="ChatboxFooter";const Ght=vr({footer:{...Xe.padding("16px"),boxSizing:"border-box"},footerContainer:{display:"flex"},leftToolbar:{...Xe.flex(0,0,"auto")},editor:{...Xe.flex(1),boxSizing:"border-box"},validation:{boxSizing:"border-box"},validationInner:{...Xe.border("1px","solid",Pt.colorNeutralBackground5),...Xe.borderRadius("4px"),...Xe.margin("8px","0px"),...Xe.padding("2px","8px"),backgroundColor:Pt.colorStatusWarningBackground1,color:Pt.colorStatusWarningForeground1}});function Kht(e){const{alias:t,initialDisabled:r,initialMessages:n,locStrings:o,calcContentForCopy:i,makeUserMessage:s,sendMessage:a}=e,[l]=re.useState(()=>new Vpe({alias:t,initialDisabled:r,initialMessages:n,locStrings:o,calcContentForCopy:i,makeUserMessage:s,sendMessage:a})),u=re.useMemo(()=>({viewmodel:l}),[l]);return re.useEffect(()=>{o&&l.locStrings$.next(o)},[o,l]),re.useEffect(()=>{s&&l.setMakeUserMessage(s)},[s,l]),re.useEffect(()=>{a&&l.setSendMessage(a)},[a,l]),N.jsx(Upe.Provider,{value:u,children:e.children})}const Vht=/^data:image\//,Fve=e=>{if(!e||typeof e!="object")return!1;const t=Object.keys(e);return t.length===1&&Vht.test(t[0])};function Uht(e){return typeof e=="string"?!0:e?Fve(e)?!0:typeof e=="object"&&typeof e.type=="string":!1}function Yht(e){return!Array.isArray(e)||e.length<1?!1:e.every(Uht)}const Bve=()=>{const{viewmodel:e}=zE();return A.useLayoutEffect(()=>{const t=e.requiredEditor;if(!t.hasNodes([B1]))throw new Error("[RichEditor] PFPastePlugin: ImageNode not registered on editor");return t.registerCommand(Oge,r=>{var i;const n=(i=r.clipboardData)==null?void 0:i.getData("Text");if(n){let s=!1;try{const a=JSON.parse(n);Yht(a)&&(s=!0,o(a))}catch{s=!1}return s}return!1;async function o(s){const a=[];for(const l of s){if(typeof l=="string"){a.push({type:dr.TEXT,value:l});continue}if(Fve(l)){const u=Object.keys(l)[0],c=l[u];a.push({type:dr.IMAGE,src:c,alt:"image"});continue}switch(l.type){case"text":{a.push({type:dr.TEXT,value:l.text});break}case"image_file":{a.push({type:dr.IMAGE,src:l.image_file.path,alt:l.image_file.path});break}case"image_url":{a.push({type:dr.IMAGE,src:l.image_url.url,alt:l.image_url.url});break}}}e.insert(a)}},Ar)},[e]),N.jsx(A.Fragment,{})};Bve.displayName="PFPastePlugin";function Xht(e){switch(e.type){case dr.TEXT:return e.value;case dr.IMAGE:return`![${e.alt}](${e.src})`;default:{const t=e;throw new Error(`Didn't expect to get here: ${t}`)}}}function Qht(e){switch(e.type){case dr.TEXT:return e.value;case dr.IMAGE:return e.src.startsWith("http://")||e.src.startsWith("https://")?{"data:image/jpg;url":e.src}:{"data:image/jpg;path":e.src};default:{const t=e;throw new Error(`Didn't expect to get here: ${t}`)}}}function Zht(e){switch(e.type){case dr.TEXT:return{type:"text",text:e.value};case dr.IMAGE:return e.src.startsWith("http://")||e.src.startsWith("https://")?{type:"image_url",image_url:{url:e.src}}:{type:"image_file",image_file:{path:e.src}};default:{const t=e;throw new Error(`Didn't expect to get here: ${t}`)}}}function LM(e){return e.map(Xht).filter(Boolean).join(` -`)}function Yk(e){return[{type:xr.TEXT,value:e}]}function Kht(e){return e.map(t=>{var r,n;if(typeof t=="string")return{type:xr.TEXT,value:t};if(t["data:image/jpg;path"]||t["data:image/png;path"]){const o=t["data:image/jpg;path"]??t["data:image/png;path"]??"";return{type:xr.IMAGE,src:o,alt:o}}if((t==null?void 0:t.type)==="text"&&"text"in t)return{type:xr.TEXT,value:t.text??""};if((t==null?void 0:t.type)==="image_file"&&"image_file"in t){const o=((r=t.image_file)==null?void 0:r.path)??"";return{type:xr.IMAGE,src:o,alt:o}}if((t==null?void 0:t.type)==="image_url"&&"image_url"in t){const o=((n=t.image_url)==null?void 0:n.url)??"";return{type:xr.IMAGE,src:o,alt:o}}return{type:xr.TEXT,value:JSON.stringify(t)}})}function Vht(e){return typeof e=="string"?Yk(e):typeof e>"u"?Yk(""):Array.isArray(e)?Kht(e):Yk(JSON.stringify(e))}function LM(e){return e.map(Wht)}function jM(e){return e.map(Ght)}function Ove(e){const t={...e[0]},r=e.slice(1);let n=!1;if((t==null?void 0:t.type)===xr.TEXT&&(t.value.trim()==="/eval"||t.value.trim().startsWith("/eval ")||t.value.trim().startsWith(`/eval -`))){const s=t.value.trim().match(/^\/eval\s+(.*)/m),a=s==null?void 0:s[1];a?t.value=a:n=!0}return n?r:[t,...r]}function Uht(e){const t=Ove(e);return LM(t)}function Yht(e){const t=Ove(e);return jM(t)}const Xht=e=>typeof e!="object"||e===null?!1:!!Object.keys(e).find(r=>r.startsWith("data:image/")),Qht=(e,t,r)=>Array.isArray(e)?e.map(n=>{var o;if(typeof n=="string")return n;if(Xht(n)){const s=Object.keys(n).find(a=>a.startsWith("data:image/"));if(s){const{valType:a}=T$e(s);if(a==="path"){const l=n[s];return{...n,[s]:`${t}${r}${l}`}}}return n}else if(n.type==="image_file"&&((o=n.image_file)!=null&&o.path))return{...n,image_file:{...n.image_file,path:`${t}${r}${n.image_file.path}`}};return n}):e,ek=({id:e,content:t,extra:r,from:n})=>({id:e??Ri.v4(),type:mf.Message,history:[{category:wo.Chatbot,from:n??"Assistant",timestamp:new Date().toISOString(),content:Vht(t),extra:r}]}),zM=({id:e,errorMessage:t,stackTrace:r})=>({id:e??Ri.v4(),type:mf.Message,history:[{category:wo.Error,from:"system",timestamp:new Date().toISOString(),content:Yk(t),error:r}]}),Zht=(...e)=>{const t=e[0];if(!t)throw new Error("messageList should not be empty");const r=[...t.history];return e.slice(1).forEach(o=>{o.history.forEach(i=>{((i==null?void 0:i.category)===wo.Chatbot||(i==null?void 0:i.category)===wo.Error)&&r.push(i)})}),{...t,history:r}},Jht=e=>{if(!e[0])return[];const t=[...e[0]];return e.slice(1).forEach(n=>{n.forEach(o=>{const i=t.findIndex(s=>s.id===o.id);i>=0&&(t[i]=Zht(t[i],o))})}),t},Ct=()=>re.useContext(Ghe).viewModel,$5=()=>{const e=Ct();return Su(e.activeNodeName$)},ept=()=>{const e=Ct();return Su(e.chatMessageVariantFilter$)},Ol=()=>{const e=Ct();return Su(e.flowFilePath$)},Vs=()=>{const e=Ct();return Su(e.chatSourceType$)},Dve=()=>{const e=Ct();return Su(e.chatSourceFileName$)},tpt=()=>{const e=Ct();return Su(e.flowFileRelativePath$)},rpt=()=>{const e=Ct();return Su(e.flowFileNextPath$)},npt=()=>{const e=Ct();return Su(e.flowFileNextRelativePath$)},Fve=()=>{const e=Ct();return Su(e.isSwitchingFlowPathLocked$)},Au=()=>{const e=Ct();return ri(e.flowChatConfig$)},opt=e=>{const t=Ct();return jj(t.flowInitMap$,e)},ipt=e=>{const t=Ct();return jj(t.flowInputsMap$,e)},spt=e=>{const t=Ct();return jj(t.flowOutputsMap$,e)},Bve=()=>{const e=Ct(),{inferSignature:t}=B1();return re.useCallback(r=>{const n=Object.keys((t==null?void 0:t.init)??{}),o=e.flowInitMap$.get(r),i={};for(const s of n)i[s]=o==null?void 0:o[s];return i},[t==null?void 0:t.init,e.flowInitMap$])},apt=()=>{const e=Ct();return re.useCallback((t,r)=>{const n=e.flowInitMap$.get(t);e.flowInitMap$.set(t,{...n,...r})},[e.flowInitMap$])},Mve=()=>{const e=Ct(),{flowInputDefinition:t}=B1();return re.useCallback(r=>{const n=Object.keys(t),o=e.flowInputsMap$.get(r),i={};for(const s of n)i[s]=o==null?void 0:o[s];return i},[t,e.flowInputsMap$])},zE=()=>{const e=Ct();return re.useCallback((t,r)=>{const n=e.flowInputsMap$.get(t);e.flowInputsMap$.set(t,{...n,...r})},[e.flowInputsMap$])},lpt=()=>{const e=Ct();return re.useCallback(t=>e.flowOutputsMap$.get(t),[e.flowOutputsMap$])},Lve=()=>{const e=Ct();return re.useCallback((t,r)=>{const n=e.flowOutputsMap$.get(t);e.flowOutputsMap$.set(t,{...n,...r})},[e.flowOutputsMap$])},upt=()=>{const e=Ct();return re.useCallback(t=>e.flowOutputPathMap$.get(t),[e.flowOutputPathMap$])},jve=()=>{const e=Ct();return re.useCallback((t,r)=>{e.flowOutputPathMap$.set(t,r)},[e.flowOutputPathMap$])},cpt=()=>{const e=Ct();return re.useCallback(t=>e.flowLastRunId$.get(t),[e.flowLastRunId$])},fpt=()=>{const e=Ct();return re.useCallback((t,r)=>{e.flowLastRunId$.set(t,r)},[e.flowLastRunId$])},dpt=(e,t)=>{const r=Ct(),[n]=Ol(),[o,i]=re.useState(!1),s=re.useCallback(()=>{var a;return e===Un?!((a=r.flowHistoryMap$.get(e))!=null&&a.length):t.some(l=>{var u;return!((u=r.flowHistoryMap$.get(`${e}.${l}`))!=null&&u.length)})},[e,t,r.flowHistoryMap$]);return re.useEffect(()=>{if(s())if(i(!0),e===Un){const a=e;nM.getChatMessages(n,a).then(u=>{r.flowHistoryMap$.set(a,u)}).then(()=>{i(!1)})}else{const a=[];t.forEach(l=>{const u=`${e}.${l}`,c=nM.getChatMessages(n,u).then(f=>{r.flowHistoryMap$.set(u,f)});a.push(c)}),Promise.all(a).then(()=>{i(!1)})}},[e,s,n,t,r.flowHistoryMap$]),{loading:o}},hpt=(e,t)=>{const r=Ct(),n=ri(r.flowHistoryMap$),o=ri(r.chatMessageVariantFilter$),i=ri(r.chatSourceType$),{loading:s}=dpt(e,t);return re.useMemo(()=>{if(s)return[];const a=new Set(o),l=[];return n.forEach((u,c)=>{if(i===At.Prompty&&c.endsWith(Q6)){l.push(u);return}const[f,d]=c.split(".");f===e&&(a.size===0||a.has(xh)||a.has(d))&&l.push(u)}),Jht(l)},[e,o,i,n,s])},ppt=()=>{const e=Ct();return ri(e.flowTestRunStatus$)},zve=()=>{const e=Ct();return re.useCallback((t,r)=>{e.flowTestRunStatus$.set(t,r)},[e.flowTestRunStatus$])},eH=()=>{const e=Ct(),[t]=Ol();return re.useCallback((r,n,o=!1)=>{const i=e.flowHistoryMap$.get(r)??[];e.flowHistoryMap$.set(r,[...i,...n]),o||n.forEach(s=>{nM.addChatMessage(t,r,s)})},[t,e.flowHistoryMap$])},Hve=()=>{const e=Ct();return re.useCallback((t,r)=>{const n=e.flowHistoryMap$.get(t)??[],o=n.findIndex(i=>i.id===r);if(o>=0){const i=[...n.slice(0,o),...n.slice(o+1)];e.flowHistoryMap$.set(t,i)}},[e.flowHistoryMap$])},gpt=()=>Ct().sessionIds,HE=()=>{const e=Ct();return ri(e.flowSnapshot$)},vpt=()=>{const e=Ct();return ri(e.flowLoadFinished$)},P5=()=>{const e=Ct();return ri(e.inferSignature$)},mpt=()=>{const[e]=Vs(),t=HE(),r=P5();switch(e){case At.Prompty:case At.Flex:return r??{};case At.Dag:default:return t}},B1=()=>{const e=HE(),t=P5(),[r]=Vs();switch(r){case At.Prompty:case At.Flex:return{flowInputDefinition:(t==null?void 0:t.inputs)??{},flowOutputDefinition:(t==null?void 0:t.outputs)??{},inferSignature:t,messageFormat:void 0,flowSnapshot:void 0};case At.Dag:default:return{flowInputDefinition:(e==null?void 0:e.inputs)??{},flowOutputDefinition:(e==null?void 0:e.outputs)??{},inferSignature:void 0,messageFormat:e==null?void 0:e.message_format,flowSnapshot:e}}},$ve=()=>{const{flowInputDefinition:e,flowOutputDefinition:t}=B1();let r="",n="",o="";for(const i in e){const s=e[i];s.is_chat_input?r=i:s.is_chat_history&&(n=i)}for(const i in t)t[i].is_chat_output&&(o=i);return{chatInputName:r,chatHistoryName:n,chatOutputName:o}},Pve=e=>{var o;const t=mpt();return((o=((t==null?void 0:t.inputs)??{})[e])==null?void 0:o.type)===Te.list},qve=()=>{const e=Ct();return Su(e.isRightPanelOpen$)},ypt=()=>{const e=Ct();return ri(e.chatUITheme$)},Wve=()=>{const e=Ct();return re.useCallback(t=>{e.chatUITheme$.next(t)},[e])},Gve=()=>{const e=Ct();return re.useCallback((t,r)=>{e.chatConsole$.set(t,r)},[e])},Kve=()=>{const e=Ct();return re.useCallback((t,r)=>{e.defaultFlowRunMetrics$.set(t,r)},[e])},Vve=()=>{const e=Ct(),t=re.useCallback(n=>{const o=typeof n=="function"?n(e.rightPanelState$.getSnapshot()):n;e.rightPanelState$.next({...e.rightPanelState$.getSnapshot(),...o})},[e.rightPanelState$]);return[ri(e.rightPanelState$),t]},Uve=()=>{const e=Ct();return ri(e.settingsSubmitting$)},bpt=()=>{const e=Ct();return re.useCallback((t,r)=>{e.settingsSubmitting$.next({...e.settingsSubmitting$.getSnapshot(),[t]:r})},[e.settingsSubmitting$])},Yve=()=>{const e=Ct();return re.useCallback(t=>{const r={...e.settingsSubmitting$.getSnapshot()},n=Object.keys(r).find(o=>r[o]===t);n&&delete r[n],e.settingsSubmitting$.next(r)},[e.settingsSubmitting$])},_pt=()=>{const e=Ct();return ri(e.errorMessages$)},Ept=()=>{const e=Ct();return re.useCallback(t=>{e.errorMessages$.next([...e.errorMessages$.getSnapshot(),t])},[e.errorMessages$])},Spt=()=>{const e=Ct();return re.useCallback(t=>{const r=e.errorMessages$.getSnapshot();e.errorMessages$.next([...r.slice(0,t),...r.slice(t+1)])},[e.errorMessages$])},Xve=()=>{const e=Ct();return re.useCallback(t=>{const r=e.errorMessages$.getSnapshot();e.errorMessages$.next(r.filter(t))},[e.errorMessages$])},wpt=(e,t)=>{var i,s;const{flowInputsMap$:r,flowInitMap$:n,flowLoadFinished$:o}=e;r.clear(),(i=t.chat_list)==null||i.forEach(a=>{r.set(a.name??"",a.inputs??{}),a.init&&n.set(a.name??"",a.init)}),(s=t.prompty_chat_list)==null||s.forEach(a=>{r.set(a.name??"",a.inputs??{}),a.init&&n.set(a.name??"",a.init)}),o.next(!0)},Qve=e=>{const{flowInputsMap$:t,flowInitMap$:r,chatSourceType$:n}=e,o=[],i=[],s=t.getSnapshot(),a=n.getSnapshot();return s.forEach((u,c)=>{(a===At.Prompty&&c.endsWith(Q6)?i:o).push({name:c,inputs:u})}),r.getSnapshot().forEach((u,c)=>{if(Object.keys(u??{}).length===0)return;const f=a===At.Prompty&&c.endsWith(Q6)?i:o,d=f.find(h=>h.name===c);d?d.init=u:f.push({name:c,init:u})}),{chat_list:o,prompty_chat_list:i}},kpt=window.location.origin,Al=zHe.create({});Al.interceptors.response.use(e=>(window.dispatchEvent(new CustomEvent(bx,{detail:{error:void 0}})),e),e=>(e.message==="Network Error"&&window.dispatchEvent(new CustomEvent(bx,{detail:{error:e}})),Promise.reject(e)));const Apt=()=>{const e=eme(),t=tme(),r=Opt(),n=Dpt(),o=Fpt(),i=Bpt(),s=Mpt(),a=Lpt(),l=jpt(),u=zpt(),c=Hpt(),f=$pt(),d=Ppt(),h=qpt();return re.useMemo(()=>({getCurrentFlowSnapshot:e,getCurrentInferSignature:t,getCurrentChatSource:r,getFlowExpYaml:n,setFlowExpYaml:o,getFlowChatConfig:i,setFlowChatConfig:s,getCurrentFlowUxInputs:a,updateCurrentFlowUxInputs:l,uploadFile:u,getHttpUrlOfFilePath:c,getConnections:f,flowTest:d,flowEvaluate:h}),[e,t,r,n,o,i,s,a,l,u,c,f,d,h])},xpt=()=>{const e=Wve();re.useEffect(()=>{const t=window.matchMedia("(prefers-color-scheme: dark)");e(t.matches?"dark":"light");const r=n=>{e(n.matches?"dark":"light")};return t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},[e])},Tpt=()=>It(e=>{e.startsWith("http://")||e.startsWith("https://")?window.open(e,"_blank"):window.open(Jve(e),"_blank")}),Ipt=()=>It(()=>({})),Cpt=()=>It(e=>{}),xl=new URLSearchParams(window.location.search).get("flow")??"",nv=atob(xl),Npt=nv.startsWith("/"),S_=Npt?"/":"\\",tH=nv.split(S_),V0=tH.pop(),HM=tH.join(S_),Rpt=tH.pop();document.title=Rpt??"Chat";const rH=()=>{let e=At.Dag;return V0==="flow.dag.yaml"?e=At.Dag:V0==="flow.flex.yaml"||V0==="flow.flex.yml"?e=At.Flex:Rlt.test(V0??"")&&(e=At.Prompty),e},Zve=e=>nv||(e??""),Jve=e=>`${kpt}/v1.0/ui/media?flow=${xl}&image_path=${e.replace(/\\/g,"/")}`,Opt=()=>{const e=eme(),t=tme(),r=rH();return It(n=>{switch(r){case At.Prompty:case At.Flex:return t(n);case At.Dag:default:return e(n)}})},eme=()=>It(e=>new Promise(async(t,r)=>{try{const n=Zve(e),o=rH(),i=await Al.get("/v1.0/ui/yaml",{params:{flow:xl}}),s=Nlt.parse(i.data??"");t({flowFilePath:n,flowFileRelativePath:n,flowSnapshot:s,chatSourceType:o,chatSourceFileName:V0??""})}catch(n){r(n)}})),tme=()=>It(e=>new Promise(async(t,r)=>{try{const n=Zve(e),o=rH(),s=(await Al.post("/v1.0/Flows/infer_signature",{},{params:{source:xl,include_primitive_output:!0}})).data;t({flowFilePath:n,flowFileRelativePath:n,inferSignature:s,chatSourceType:o,chatSourceFileName:V0??""})}catch(n){r(n)}})),Dpt=()=>It(async()=>new Promise(async(e,t)=>{try{const r=await Al.get("/v1.0/ui/yaml",{params:{flow:xl,experiment:"./flow.exp.yaml"}});e(r.data)}catch(r){t(r)}})),Fpt=()=>It(async e=>new Promise(async(t,r)=>{try{await Al.post("/v1.0/ui/yaml",{inputs:e},{params:{flow:xl,experiment:"./flow.exp.yaml"}}),t()}catch(n){r(n)}})),Bpt=()=>{const[e]=Ol(),{chatInputName:t,chatOutputName:r,chatHistoryName:n}=$ve();return It(async()=>{const o=localStorage.getItem(`flowChatConfig##${e}`),i=o?JSON.parse(o):{};return{chatInputName:(i.chatInputName||t)??"",chatOutputName:(i.chatOutputName||r)??"",chatHistoryName:(i.chatHistoryName||n)??""}})},Mpt=()=>{const[e]=Ol(),t=Au(),r=Ct();return It(async n=>{const o={...t};Object.keys(n).forEach(i=>{const s=n[i];s&&(o[i]=s)}),localStorage.setItem(`flowChatConfig##${e}`,JSON.stringify(o)),r.flowChatConfig$.next(o)})},Lpt=()=>It(()=>new Promise(async e=>{try{const r=(await Al.get("/v1.0/ui/ux_inputs",{params:{flow:xl}})).data;e(r)}catch{e({})}})),jpt=()=>{const e=Ct();return It(async()=>new Promise(async(t,r)=>{try{await Al.post("/v1.0/ui/ux_inputs",{ux_inputs:Qve(e)},{params:{flow:xl}}),t()}catch(n){r(n)}}))},zpt=()=>It(e=>new Promise(async(t,r)=>{try{const n=e,i=(await Al.post("/v1.0/ui/media_save",{extension:n.name.substring(n.name.lastIndexOf(".")+1),base64_data:await v7(n)},{params:{flow:xl}})).data.replace(/\\/g,"/");t(i)}catch(n){r(n)}})),Hpt=()=>It(async e=>e.startsWith("http://")||e.startsWith("https://")?e:new Promise(async(t,r)=>{try{t(Jve(e))}catch(n){r(n)}})),$pt=()=>It(async()=>new Promise(async(e,t)=>{try{const r=await Al.get("/v1.0/Connections/");e(r.data??[])}catch(r){t(r)}})),Ppt=()=>It(async e=>{const{sessionId:t,tuningNodeName:r,batchRequest:n}=e;return new Promise(async(o,i)=>{try{const s=await Promise.all((n??[]).map(async u=>{var g,v,y,E,_,S;const c=await Al.post("/v1.0/Flows/test",{session:t,run_id:u.rootRunId,variant:r?`\${${r}.${u.variantName}}`:void 0,inputs:u.flowInputs,init:u.flowInit},{params:{flow:xl}}),f=(v=(g=c.data)==null?void 0:g.flow)==null?void 0:v.detail,d=(E=(y=c.data)==null?void 0:y.flow)==null?void 0:E.log;return{flowResult:{flow_runs:(_=f==null?void 0:f.flow_runs)==null?void 0:_.map(b=>{var k,T,x,I,C;return{...b,variant_id:r?u.variantName:void 0,output_path:(C=(I=(x=(T=(k=c.data)==null?void 0:k.flow)==null?void 0:T.output_path)==null?void 0:x.split(HM))==null?void 0:I[1])==null?void 0:C.substring(1)}}),node_runs:(S=f==null?void 0:f.node_runs)==null?void 0:S.map(b=>({...b,variant_id:r?u.variantName:void 0}))},flowLog:d}})),l=(u=>{const c=u.flatMap(d=>d.flowResult.flow_runs??[]),f=u.flatMap(d=>d.flowResult.node_runs??[]);return{flowResult:{flow_runs:c,node_runs:f},flowLog:u.map(d=>d.flowLog).join(` +`)}function Xk(e){return[{type:dr.TEXT,value:e}]}function Jht(e){return e.map(t=>{var r,n;if(typeof t=="string")return{type:dr.TEXT,value:t};if(t["data:image/jpg;path"]||t["data:image/png;path"]){const o=t["data:image/jpg;path"]??t["data:image/png;path"]??"";return{type:dr.IMAGE,src:o,alt:o}}if((t==null?void 0:t.type)==="text"&&"text"in t)return{type:dr.TEXT,value:t.text??""};if((t==null?void 0:t.type)==="image_file"&&"image_file"in t){const o=((r=t.image_file)==null?void 0:r.path)??"";return{type:dr.IMAGE,src:o,alt:o}}if((t==null?void 0:t.type)==="image_url"&&"image_url"in t){const o=((n=t.image_url)==null?void 0:n.url)??"";return{type:dr.IMAGE,src:o,alt:o}}return{type:dr.TEXT,value:JSON.stringify(t)}})}function ept(e){return typeof e=="string"?Xk(e):typeof e>"u"?Xk(""):Array.isArray(e)?Jht(e):Xk(JSON.stringify(e))}function jM(e){return e.map(Qht)}function zM(e){return e.map(Zht)}function Mve(e){const t={...e[0]},r=e.slice(1);let n=!1;if((t==null?void 0:t.type)===dr.TEXT&&(t.value.trim()==="/eval"||t.value.trim().startsWith("/eval ")||t.value.trim().startsWith(`/eval +`))){const s=t.value.trim().match(/^\/eval\s+(.*)/m),a=s==null?void 0:s[1];a?t.value=a:n=!0}return n?r:[t,...r]}function tpt(e){const t=Mve(e);return jM(t)}function rpt(e){const t=Mve(e);return zM(t)}const npt=e=>typeof e!="object"||e===null?!1:!!Object.keys(e).find(r=>r.startsWith("data:image/")),opt=(e,t,r)=>Array.isArray(e)?e.map(n=>{var o;if(typeof n=="string")return n;if(npt(n)){const s=Object.keys(n).find(a=>a.startsWith("data:image/"));if(s){const{valType:a}=O$e(s);if(a==="path"){const l=n[s];return{...n,[s]:`${t}${r}${l}`}}}return n}else if(n.type==="image_file"&&((o=n.image_file)!=null&&o.path))return{...n,image_file:{...n.image_file,path:`${t}${r}${n.image_file.path}`}};return n}):e,tk=({id:e,content:t,extra:r,from:n})=>({id:e??Ni.v4(),type:mf.Message,history:[{category:wo.Chatbot,from:n??"Assistant",timestamp:new Date().toISOString(),content:ept(t),extra:r}]}),HM=({id:e,errorMessage:t,stackTrace:r})=>({id:e??Ni.v4(),type:mf.Message,history:[{category:wo.Error,from:"system",timestamp:new Date().toISOString(),content:Xk(t),error:r}]}),ipt=(...e)=>{const t=e[0];if(!t)throw new Error("messageList should not be empty");const r=[...t.history];return e.slice(1).forEach(o=>{o.history.forEach(i=>{((i==null?void 0:i.category)===wo.Chatbot||(i==null?void 0:i.category)===wo.Error)&&r.push(i)})}),{...t,history:r}},spt=e=>{if(!e[0])return[];const t=[...e[0]];return e.slice(1).forEach(n=>{n.forEach(o=>{const i=t.findIndex(s=>s.id===o.id);i>=0&&(t[i]=ipt(t[i],o))})}),t},Ct=()=>re.useContext(Khe).viewModel,$5=()=>{const e=Ct();return Su(e.activeNodeName$)},apt=()=>{const e=Ct();return Su(e.chatMessageVariantFilter$)},ja=()=>{const e=Ct();return Su(e.flowFilePath$)},Vs=()=>{const e=Ct();return Su(e.chatSourceType$)},Lve=()=>{const e=Ct();return Su(e.chatSourceFileName$)},lpt=()=>{const e=Ct();return Su(e.flowFileRelativePath$)},upt=()=>{const e=Ct();return Su(e.flowFileNextPath$)},cpt=()=>{const e=Ct();return Su(e.flowFileNextRelativePath$)},jve=()=>{const e=Ct();return Su(e.isSwitchingFlowPathLocked$)},Au=()=>{const e=Ct();return ri(e.flowChatConfig$)},fpt=e=>{const t=Ct();return zj(t.flowInitMap$,e)},dpt=e=>{const t=Ct();return zj(t.flowInputsMap$,e)},hpt=e=>{const t=Ct();return zj(t.flowOutputsMap$,e)},zve=()=>{const e=Ct(),{inferSignature:t}=M1();return re.useCallback(r=>{const n=Object.keys((t==null?void 0:t.init)??{}),o=e.flowInitMap$.get(r),i={};for(const s of n)i[s]=o==null?void 0:o[s];return i},[t==null?void 0:t.init,e.flowInitMap$])},ppt=()=>{const e=Ct();return re.useCallback((t,r)=>{const n=e.flowInitMap$.get(t);e.flowInitMap$.set(t,{...n,...r})},[e.flowInitMap$])},Hve=()=>{const e=Ct(),{flowInputDefinition:t}=M1();return re.useCallback(r=>{const n=Object.keys(t),o=e.flowInputsMap$.get(r),i={};for(const s of n)i[s]=o==null?void 0:o[s];return i},[t,e.flowInputsMap$])},HE=()=>{const e=Ct();return re.useCallback((t,r)=>{const n=e.flowInputsMap$.get(t);e.flowInputsMap$.set(t,{...n,...r})},[e.flowInputsMap$])},gpt=()=>{const e=Ct();return re.useCallback(t=>e.flowOutputsMap$.get(t),[e.flowOutputsMap$])},$ve=()=>{const e=Ct();return re.useCallback((t,r)=>{const n=e.flowOutputsMap$.get(t);e.flowOutputsMap$.set(t,{...n,...r})},[e.flowOutputsMap$])},vpt=()=>{const e=Ct();return re.useCallback(t=>e.flowOutputPathMap$.get(t),[e.flowOutputPathMap$])},Pve=()=>{const e=Ct();return re.useCallback((t,r)=>{e.flowOutputPathMap$.set(t,r)},[e.flowOutputPathMap$])},mpt=()=>{const e=Ct();return re.useCallback(t=>e.flowLastRunId$.get(t),[e.flowLastRunId$])},ypt=()=>{const e=Ct();return re.useCallback((t,r)=>{e.flowLastRunId$.set(t,r)},[e.flowLastRunId$])},bpt=(e,t)=>{const r=Ct(),[n]=ja(),[o,i]=re.useState(!1),s=re.useCallback(()=>{var a;return e===Yn?!((a=r.flowHistoryMap$.get(e))!=null&&a.length):t.some(l=>{var u;return!((u=r.flowHistoryMap$.get(`${e}.${l}`))!=null&&u.length)})},[e,t,r.flowHistoryMap$]);return re.useEffect(()=>{if(s())if(i(!0),e===Yn){const a=e;oM.getChatMessages(n,a).then(u=>{r.flowHistoryMap$.set(a,u)}).then(()=>{i(!1)})}else{const a=[];t.forEach(l=>{const u=`${e}.${l}`,c=oM.getChatMessages(n,u).then(f=>{r.flowHistoryMap$.set(u,f)});a.push(c)}),Promise.all(a).then(()=>{i(!1)})}},[e,s,n,t,r.flowHistoryMap$]),{loading:o}},_pt=(e,t)=>{const r=Ct(),n=ri(r.flowHistoryMap$),o=ri(r.chatMessageVariantFilter$),i=ri(r.chatSourceType$),{loading:s}=bpt(e,t);return re.useMemo(()=>{if(s)return[];const a=new Set(o),l=[];return n.forEach((u,c)=>{if(i===At.Prompty&&c.endsWith(Z6)){l.push(u);return}const[f,d]=c.split(".");f===e&&(a.size===0||a.has(Th)||a.has(d))&&l.push(u)}),spt(l)},[e,o,i,n,s])},Ept=()=>{const e=Ct();return ri(e.flowTestRunStatus$)},qve=()=>{const e=Ct();return re.useCallback((t,r)=>{e.flowTestRunStatus$.set(t,r)},[e.flowTestRunStatus$])},tH=()=>{const e=Ct(),[t]=ja();return re.useCallback((r,n,o=!1)=>{const i=e.flowHistoryMap$.get(r)??[];e.flowHistoryMap$.set(r,[...i,...n]),o||n.forEach(s=>{oM.addChatMessage(t,r,s)})},[t,e.flowHistoryMap$])},Wve=()=>{const e=Ct();return re.useCallback((t,r)=>{const n=e.flowHistoryMap$.get(t)??[],o=n.findIndex(i=>i.id===r);if(o>=0){const i=[...n.slice(0,o),...n.slice(o+1)];e.flowHistoryMap$.set(t,i)}},[e.flowHistoryMap$])},Spt=()=>Ct().sessionIds,$E=()=>{const e=Ct();return ri(e.flowSnapshot$)},wpt=()=>{const e=Ct();return ri(e.flowLoadFinished$)},P5=()=>{const e=Ct();return ri(e.inferSignature$)},kpt=()=>{const[e]=Vs(),t=$E(),r=P5();switch(e){case At.Prompty:case At.Flex:return r??{};case At.Dag:default:return t}},M1=()=>{const e=$E(),t=P5(),[r]=Vs();switch(r){case At.Prompty:case At.Flex:return{flowInputDefinition:(t==null?void 0:t.inputs)??{},flowOutputDefinition:(t==null?void 0:t.outputs)??{},inferSignature:t,messageFormat:void 0,flowSnapshot:void 0};case At.Dag:default:return{flowInputDefinition:(e==null?void 0:e.inputs)??{},flowOutputDefinition:(e==null?void 0:e.outputs)??{},inferSignature:void 0,messageFormat:e==null?void 0:e.message_format,flowSnapshot:e}}},Gve=()=>{const{flowInputDefinition:e,flowOutputDefinition:t}=M1();let r="",n="",o="";for(const i in e){const s=e[i];s.is_chat_input?r=i:s.is_chat_history&&(n=i)}for(const i in t)t[i].is_chat_output&&(o=i);return{chatInputName:r,chatHistoryName:n,chatOutputName:o}},Kve=e=>{var o;const t=kpt();return((o=((t==null?void 0:t.inputs)??{})[e])==null?void 0:o.type)===Te.list},Vve=()=>{const e=Ct();return Su(e.isRightPanelOpen$)},Uve=()=>{const e=Ct();return ri(e.chatUITheme$)},Yve=()=>{const e=Ct();return re.useCallback(t=>{e.chatUITheme$.next(t)},[e])},Xve=()=>{const e=Ct();return re.useCallback((t,r)=>{e.chatConsole$.set(t,r)},[e])},Qve=()=>{const e=Ct();return re.useCallback((t,r)=>{e.defaultFlowRunMetrics$.set(t,r)},[e])},Zve=()=>{const e=Ct(),t=re.useCallback(n=>{const o=typeof n=="function"?n(e.rightPanelState$.getSnapshot()):n;e.rightPanelState$.next({...e.rightPanelState$.getSnapshot(),...o})},[e.rightPanelState$]);return[ri(e.rightPanelState$),t]},Jve=()=>{const e=Ct();return ri(e.settingsSubmitting$)},Apt=()=>{const e=Ct();return re.useCallback((t,r)=>{e.settingsSubmitting$.next({...e.settingsSubmitting$.getSnapshot(),[t]:r})},[e.settingsSubmitting$])},eme=()=>{const e=Ct();return re.useCallback(t=>{const r={...e.settingsSubmitting$.getSnapshot()},n=Object.keys(r).find(o=>r[o]===t);n&&delete r[n],e.settingsSubmitting$.next(r)},[e.settingsSubmitting$])},xpt=()=>{const e=Ct();return ri(e.errorMessages$)},Tpt=()=>{const e=Ct();return re.useCallback(t=>{e.errorMessages$.next([...e.errorMessages$.getSnapshot(),t])},[e.errorMessages$])},Ipt=()=>{const e=Ct();return re.useCallback(t=>{const r=e.errorMessages$.getSnapshot();e.errorMessages$.next([...r.slice(0,t),...r.slice(t+1)])},[e.errorMessages$])},tme=()=>{const e=Ct();return re.useCallback(t=>{const r=e.errorMessages$.getSnapshot();e.errorMessages$.next(r.filter(t))},[e.errorMessages$])},Cpt=(e,t)=>{var i,s;const{flowInputsMap$:r,flowInitMap$:n,flowLoadFinished$:o}=e;r.clear(),(i=t.chat_list)==null||i.forEach(a=>{r.set(a.name??"",a.inputs??{}),a.init&&n.set(a.name??"",a.init)}),(s=t.prompty_chat_list)==null||s.forEach(a=>{r.set(a.name??"",a.inputs??{}),a.init&&n.set(a.name??"",a.init)}),o.next(!0)},rme=e=>{const{flowInputsMap$:t,flowInitMap$:r,chatSourceType$:n}=e,o=[],i=[],s=t.getSnapshot(),a=n.getSnapshot();return s.forEach((u,c)=>{(a===At.Prompty&&c.endsWith(Z6)?i:o).push({name:c,inputs:u})}),r.getSnapshot().forEach((u,c)=>{if(Object.keys(u??{}).length===0)return;const f=a===At.Prompty&&c.endsWith(Z6)?i:o,d=f.find(h=>h.name===c);d?d.init=u:f.push({name:c,init:u})}),{chat_list:o,prompty_chat_list:i}},Npt=window.location.origin,xl=WHe.create({});xl.interceptors.response.use(e=>(window.dispatchEvent(new CustomEvent(_x,{detail:{error:void 0}})),e),e=>(e.message==="Network Error"&&window.dispatchEvent(new CustomEvent(_x,{detail:{error:e}})),Promise.reject(e)));const Rpt=()=>{const e=ime(),t=sme(),r=jpt(),n=zpt(),o=Hpt(),i=$pt(),s=Ppt(),a=qpt(),l=Wpt(),u=Gpt(),c=Kpt(),f=Vpt(),d=Upt(),h=Ypt();return re.useMemo(()=>({getCurrentFlowSnapshot:e,getCurrentInferSignature:t,getCurrentChatSource:r,getFlowExpYaml:n,setFlowExpYaml:o,getFlowChatConfig:i,setFlowChatConfig:s,getCurrentFlowUxInputs:a,updateCurrentFlowUxInputs:l,uploadFile:u,getHttpUrlOfFilePath:c,getConnections:f,flowTest:d,flowEvaluate:h}),[e,t,r,n,o,i,s,a,l,u,c,f,d,h])},Opt=()=>{const e=Yve();re.useEffect(()=>{const t=window.matchMedia("(prefers-color-scheme: dark)");e(t.matches?"dark":"light");const r=n=>{e(n.matches?"dark":"light")};return t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},[e])},Dpt=()=>It(e=>{e.startsWith("http://")||e.startsWith("https://")?window.open(e,"_blank"):window.open(ome(e),"_blank")}),Fpt=()=>It(()=>({})),Bpt=()=>It(e=>{}),Tl=new URLSearchParams(window.location.search).get("flow")??"",nv=atob(Tl),Mpt=nv.startsWith("/"),S_=Mpt?"/":"\\",rH=nv.split(S_),V0=rH.pop(),$M=rH.join(S_),Lpt=rH.pop();document.title=Lpt??"Chat";const nH=()=>{let e=At.Dag;return V0==="flow.dag.yaml"?e=At.Dag:V0==="flow.flex.yaml"||V0==="flow.flex.yml"?e=At.Flex:Mlt.test(V0??"")&&(e=At.Prompty),e},nme=e=>nv||(e??""),ome=e=>`${Npt}/v1.0/ui/media?flow=${Tl}&image_path=${e.replace(/\\/g,"/")}`,jpt=()=>{const e=ime(),t=sme(),r=nH();return It(n=>{switch(r){case At.Prompty:case At.Flex:return t(n);case At.Dag:default:return e(n)}})},ime=()=>It(e=>new Promise(async(t,r)=>{try{const n=nme(e),o=nH(),i=await xl.get("/v1.0/ui/yaml",{params:{flow:Tl}}),s=Blt.parse(i.data??"");t({flowFilePath:n,flowFileRelativePath:n,flowSnapshot:s,chatSourceType:o,chatSourceFileName:V0??""})}catch(n){r(n)}})),sme=()=>It(e=>new Promise(async(t,r)=>{try{const n=nme(e),o=nH(),s=(await xl.post("/v1.0/Flows/infer_signature",{},{params:{source:Tl,include_primitive_output:!0}})).data;t({flowFilePath:n,flowFileRelativePath:n,inferSignature:s,chatSourceType:o,chatSourceFileName:V0??""})}catch(n){r(n)}})),zpt=()=>It(async()=>new Promise(async(e,t)=>{try{const r=await xl.get("/v1.0/ui/yaml",{params:{flow:Tl,experiment:"./flow.exp.yaml"}});e(r.data)}catch(r){t(r)}})),Hpt=()=>It(async e=>new Promise(async(t,r)=>{try{await xl.post("/v1.0/ui/yaml",{inputs:e},{params:{flow:Tl,experiment:"./flow.exp.yaml"}}),t()}catch(n){r(n)}})),$pt=()=>{const[e]=ja(),{chatInputName:t,chatOutputName:r,chatHistoryName:n}=Gve();return It(async()=>{const o=localStorage.getItem(`flowChatConfig##${e}`),i=o?JSON.parse(o):{};return{chatInputName:(i.chatInputName||t)??"",chatOutputName:(i.chatOutputName||r)??"",chatHistoryName:(i.chatHistoryName||n)??""}})},Ppt=()=>{const[e]=ja(),t=Au(),r=Ct();return It(async n=>{const o={...t};Object.keys(n).forEach(i=>{const s=n[i];s&&(o[i]=s)}),localStorage.setItem(`flowChatConfig##${e}`,JSON.stringify(o)),r.flowChatConfig$.next(o)})},qpt=()=>It(()=>new Promise(async e=>{try{const r=(await xl.get("/v1.0/ui/ux_inputs",{params:{flow:Tl}})).data;e(r)}catch{e({})}})),Wpt=()=>{const e=Ct();return It(async()=>new Promise(async(t,r)=>{try{await xl.post("/v1.0/ui/ux_inputs",{ux_inputs:rme(e)},{params:{flow:Tl}}),t()}catch(n){r(n)}}))},Gpt=()=>It(e=>new Promise(async(t,r)=>{try{const n=e,i=(await xl.post("/v1.0/ui/media_save",{extension:n.name.substring(n.name.lastIndexOf(".")+1),base64_data:await m7(n)},{params:{flow:Tl}})).data.replace(/\\/g,"/");t(i)}catch(n){r(n)}})),Kpt=()=>It(async e=>e.startsWith("http://")||e.startsWith("https://")?e:new Promise(async(t,r)=>{try{t(ome(e))}catch(n){r(n)}})),Vpt=()=>It(async()=>new Promise(async(e,t)=>{try{const r=await xl.get("/v1.0/Connections/");e(r.data??[])}catch(r){t(r)}})),Upt=()=>It(async e=>{const{sessionId:t,tuningNodeName:r,batchRequest:n}=e;return new Promise(async(o,i)=>{try{const s=await Promise.all((n??[]).map(async u=>{var g,v,y,E,_,S;const c=await xl.post("/v1.0/Flows/test",{session:t,run_id:u.rootRunId,variant:r?`\${${r}.${u.variantName}}`:void 0,inputs:u.flowInputs,init:u.flowInit},{params:{flow:Tl}}),f=(v=(g=c.data)==null?void 0:g.flow)==null?void 0:v.detail,d=(E=(y=c.data)==null?void 0:y.flow)==null?void 0:E.log;return{flowResult:{flow_runs:(_=f==null?void 0:f.flow_runs)==null?void 0:_.map(b=>{var k,T,x,I,C;return{...b,variant_id:r?u.variantName:void 0,output_path:(C=(I=(x=(T=(k=c.data)==null?void 0:k.flow)==null?void 0:T.output_path)==null?void 0:x.split($M))==null?void 0:I[1])==null?void 0:C.substring(1)}}),node_runs:(S=f==null?void 0:f.node_runs)==null?void 0:S.map(b=>({...b,variant_id:r?u.variantName:void 0}))},flowLog:d}})),l=(u=>{const c=u.flatMap(d=>d.flowResult.flow_runs??[]),f=u.flatMap(d=>d.flowResult.node_runs??[]);return{flowResult:{flow_runs:c,node_runs:f},flowLog:u.map(d=>d.flowLog).join(` -`)}})(s);o({logs:l.flowLog??"",flowRunResult:l.flowResult})}catch(s){i(s)}})}),qpt=()=>It(async e=>{const{sessionId:t,mainFlowConfig:r,experimentPath:n}=e,{tuningNodeName:o,batchRequest:i}=r;return new Promise(async(s,a)=>{try{const l=[];await Promise.all((i??[]).map(async u=>{const f=!!u.flowOutputs?await Al.post("/v1.0/Experiments/skip_test",{experiment_template:[HM,"flow.exp.yaml"].join(S_),session:t,skip_flow:nv,skip_flow_output:u.flowOutputs,skip_flow_run_id:u.lastRunId},{params:{flow:xl}}):await Al.post("/v1.0/Experiments/test_with_flow_override",{inputs:u.flowInputs,experiment_template:[HM,"flow.exp.yaml"].join(S_),override_flow_path:nv,session:t,main_flow_run_id:u.rootRunId,main_flow_init:u.flowInit},{params:{flow:xl}});l.push({variantName:void 0,result:Object.keys(f.data??{}).map(d=>{var y,E,_,S,b;const h=(y=f.data[d])==null?void 0:y.detail,g=(_=(E=h==null?void 0:h.flow_runs)==null?void 0:E[0])==null?void 0:_.output,v=(b=(S=h==null?void 0:h.flow_runs)==null?void 0:S[0])==null?void 0:b.root_run_id;return{name:d,output:g,rootRunId:v}})})})),s({logs:"",batchResponse:l})}catch(l){a(l)}})}),Wpt=()=>{const e=rme(),t=Zpt(),r=Qpt(),n=Jpt(),o=e0t(),i=t0t(),s=r0t(),a=n0t(),l=o0t(),u=i0t(),c=s0t(),f=a0t(),d=l0t(),h=u0t();return re.useMemo(()=>({getCurrentFlowSnapshot:e,getCurrentInferSignature:t,getCurrentChatSource:r,getFlowExpYaml:n,setFlowExpYaml:o,getFlowChatConfig:i,setFlowChatConfig:s,getCurrentFlowUxInputs:a,updateCurrentFlowUxInputs:l,uploadFile:u,getHttpUrlOfFilePath:c,getConnections:f,flowTest:d,flowEvaluate:h}),[e,t,r,n,o,i,s,a,l,u,c,f,d,h])},Gpt=()=>It(e=>{yi.postMessage({name:cn.CURRENT_FLOW_CONFIRM,payload:{flowFilePath:e}})}),Kpt=e=>{wl(cn.CURRENT_FLOW_RESPONSE,e)},Vpt=()=>{const e=Wve();wl(cn.READ_VSCODE_THEME_RESPONSE,({theme:t})=>{e(t)}),re.useEffect(()=>{yi.postMessage({name:cn.READ_VSCODE_THEME_REQUEST})},[])},Upt=()=>It(e=>{yi.postMessage({name:cn.OPEN_CODE_FILE,payload:{path:e}})}),Ypt=()=>It(()=>yi.getState()),Xpt=()=>It(e=>{yi.setState(e)}),Qpt=()=>{const e=rme();return It(t=>e(t))},rme=()=>{const e=re.useRef(new Map);return wl(cn.CURRENT_FLOW_RESPONSE,({id:t,flowFilePath:r,flowFileRelativePath:n,flowSnapshot:o})=>{if(t&&e.current.has(t)){const i=e.current.get(t);i==null||i({flowFilePath:r,flowSnapshot:o,chatSourceType:At.Dag,chatSourceFileName:"flow.dag.yaml"}),e.current.delete(t)}}),It(t=>{const r=Math.random().toString(36).slice(2);return new Promise(n=>{e.current.set(r,n),yi.postMessage({name:cn.CURRENT_FLOW_REQUEST,payload:{id:r,fallbackFlowFilePath:t}})})})},Zpt=()=>It(e=>new Promise((t,r)=>{try{t({flowFilePath:"",flowFileRelativePath:"",inferSignature:{},chatSourceType:At.Prompty,chatSourceFileName:""})}catch(n){r(n)}})),Jpt=()=>It(async()=>""),e0t=()=>It(async()=>{}),t0t=()=>{const{chatInputName:e,chatOutputName:t,chatHistoryName:r}=$ve();return It(async()=>({chatInputName:e,chatOutputName:t,chatHistoryName:r}))},r0t=()=>{const[e]=Ol(),t=Au(),r=Ct();return It(async n=>{const o={...t,...n};yi.postMessage({name:cn.SET_FLOW_CHAT_CONFIG,payload:{flowFilePath:e,...n}}),r.flowChatConfig$.next(o)})},n0t=()=>{const[e]=Ol(),t=re.useRef(new Map);return wl(cn.READ_FLOW_UX_INPUTS_RESPONSE,({id:r,uxInputs:n})=>{if(r&&t.current.has(r)){const o=t.current.get(r);o==null||o(n),t.current.delete(r)}}),It(()=>{const r=Math.random().toString(36).slice(2);return new Promise(n=>{t.current.set(r,n),yi.postMessage({name:cn.READ_FLOW_UX_INPUTS_REQUEST,payload:{id:r,flowFilePath:e}})})})},o0t=()=>{const e=Ct(),[t]=Ol();return It(async()=>{yi.postMessage({name:cn.SET_FLOW_UX_INPUTS,payload:{flowFilePath:t,uxInputs:Qve(e)}})})},i0t=()=>{const e=re.useRef(new Map);return wl(cn.FILE_RELATIVE_PATH_RESPONSE,({id:t,relativePath:r})=>{if(t&&e.current.has(t)){const n=e.current.get(t);n==null||n(r??""),e.current.delete(t)}}),It(t=>{const r=Math.random().toString(36).slice(2);return new Promise(async n=>{const o=t;e.current.set(r,n),yi.postMessage({name:cn.FILE_RELATIVE_PATH_REQUEST,payload:{id:r,path:o.path,fileName:o.name,fileBase64:o.path?void 0:await v7(o)}})})})},s0t=()=>{const e=re.useRef({}),t=It(async r=>r.startsWith("http://")||r.startsWith("https://")?r:new Promise(n=>{yi.postMessage({name:cn.GET_FILE_WEBVIEW_URI,payload:{filePath:r}}),e.current[r]=n}));return wl(cn.SEND_FILE_WEBVIEW_URI,({filePath:r,uri:n})=>{e.current[r]&&(e.current[r](n),delete e.current[r])}),t},a0t=()=>re.useCallback(()=>Promise.resolve([]),[]),l0t=()=>{const[e]=Ol(),t=re.useRef(new Map);return wl(cn.RUN_RESULT_CHANGED,({flowFilePath:r,flowRunResult:n})=>{if(!(n!=null&&n.flow_runs))return;const o=t.current.get(r);if(o){const[i,s]=o;i==null||i({logs:"",flowRunResult:n??{}}),t.current.delete(r)}}),wl(cn.SUBMIT_FLOW_RUN_FINISHED,({flowFilePath:r,triggerBy:n,tuningNodeName:o,stdoutList:i,errorMessage:s})=>{if(e===r||e===n){const a=t.current.get(e);if(s&&a){const[l,u]=a;u(new Error(s)),t.current.delete(e)}}}),It(async r=>{const{submitId:n,tuningNodeName:o,batchRequest:i}=r;return new Promise((s,a)=>{t.current.set(e,[s,a]),yi.postMessage({name:cn.SUBMIT_FLOW_RUN,payload:{submitId:n,flowFilePath:e,validationErrors:{},selections:{mode:ece.Standard,tuningNodeName:o,inChildProcess:!0},batchContent:i}})})})},u0t=()=>{const[e]=Ol(),t=re.useRef(new Map);return wl(cn.SUBMIT_FLOW_EVAL_RESPONSE,({errorMessage:r,batchResponse:n})=>{const o=t.current.get(e);if(o){const[i,s]=o;r?s(new Error(r)):i({logs:"",batchResponse:n}),t.current.delete(e)}}),It(async r=>{var l;const{mainFlowConfig:n,experimentPath:o}=r,{tuningNodeName:i="",batchRequest:s=[]}=n,a=(l=s[0])!=null&&l.flowOutputs?"eval_last":"experiment";return new Promise((u,c)=>{if(a==="experiment"&&i){c(new Error("Evaluation of variants is not yet supported"));return}t.current.set(e,[u,c]),yi.postMessage({name:cn.SUBMIT_FLOW_EVAL,payload:{flowFilePath:e,mode:a,tuningNodeName:i,batchRequest:s}})})})},nme=(...e)=>{},ms=no?Wpt:Apt,c0t=no?Gpt:()=>nme,f0t=no?Kpt:()=>nme,d0t=no?Vpt:xpt,h0t=no?Upt:Tpt,ome=no?Ypt:Ipt,ime=no?Xpt:Cpt,p0t=()=>{const e=Gve(),t=Uve(),r=Yve(),n=Object.values(t);wl(cn.READ_CHAT_CONSOLE_RESPONSE,({activeNodeName:o,consoles:i,submitId:s})=>{const a=o===""?Un:o;a&&e(a,i),s&&n.includes(s)&&r(s)})},g0t=()=>{const e=Ct(),[t,r]=re.useState(!1),{flowFilePath$:n,flowFileRelativePath$:o,flowFileNextPath$:i,flowFileNextRelativePath$:s,flowSnapshot$:a,chatSourceType$:l,topbarErrorMessage$:u,inferSignature$:c,chatSourceFileName$:f}=e,d=re.useRef(new Set),[h]=Fve(),g=ms(),v=c0t(),y=ome(),E=ime(),_=re.useCallback((k,T)=>{var D,L,M;if(d.current.has(T))return;d.current.add(T);let x,I;const C=Object.keys((k==null?void 0:k.inputs)??{});C.length===1&&(((D=k==null?void 0:k.inputs)==null?void 0:D[C[0]].type)===Te.string||((L=k==null?void 0:k.inputs)==null?void 0:L[C[0]].type)===Te.list)&&(x=C[0]);const R=Object.keys((k==null?void 0:k.outputs)??{});R.length===1&&((M=k==null?void 0:k.outputs)!=null&&M[R[0]])&&(I=R[0]),(x||I)&&g.setFlowChatConfig({chatInputName:x,chatOutputName:I})},[g]),S=It(({flowFilePath:k,flowFileRelativePath:T,flowSnapshot:x,chatSourceType:I,inferSignature:C,chatSourceFileName:R})=>{if(i.next(k),s.next(T),n.getSnapshot()&&h)return;const L=y()??{};E({...L,currentFlowPath:k}),n.next(k),o.next(T),I&&l.next(I),R&&f.next(R),x&&(I===At.Dag||I===At.Flex)&&(a.next(x),no&&setTimeout(()=>{_(x,k)})),C&&(I===At.Prompty||I===At.Flex)&&c.next(C),v(k)}),b=It(async()=>{var k,T,x,I,C;r(!1);try{const R=y()??{},D=await g.getCurrentChatSource(R.currentFlowPath),L=D.chatSourceType,M=L===At.Dag||L===At.Flex?D.flowSnapshot:void 0,W=L===At.Prompty||L===At.Flex?D.inferSignature:void 0;S({flowFilePath:D.flowFilePath,flowFileRelativePath:D.flowFileRelativePath??"",flowSnapshot:M,chatSourceType:L,inferSignature:W,chatSourceFileName:D.chatSourceFileName}),await UK(0);const z=await g.getFlowChatConfig();if(g.setFlowChatConfig(z),!no){await UK(0);const F=L===At.Dag||L===At.Flex?M:W;_(F??{},D.flowFilePath)}u.next("")}catch(R){u.next(((x=(T=(k=R.response)==null?void 0:k.data)==null?void 0:T.error)==null?void 0:x.message)??((C=(I=R.response)==null?void 0:I.data)==null?void 0:C.message)??R.message)}finally{r(!0)}});return f0t(k=>{S(k),r(!0)}),re.useEffect(()=>{b()},[]),t},v0t=()=>{const e=Ct(),[t,r]=re.useState(!1),{flowFilePath$:n}=e,[o]=Su(n),i=ms(),s=It(()=>{r(!1),i.getCurrentFlowUxInputs().then(a=>{wpt(e,a)}).finally(()=>{r(!0)})});return re.useEffect(()=>{o&&s()},[s,o]),t},m0t=()=>{const e=g0t();return v0t(),d0t(),p0t(),e},y0t=({children:e})=>N.jsx("div",{style:{display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"},children:e}),sme=()=>(new URLSearchParams(window.location.search).get("enable_internal_features")??"")==="true",b0t=()=>new URLSearchParams(window.location.search).get("from")??"",_0t=()=>{const[e]=Vs(),t=sme();return re.useMemo(()=>{if(no||!t)return!1;switch(e){case At.Prompty:return!1;case At.Dag:case At.Flex:default:return!0}},[e,t])},nre=`$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Experiment.schema.json +`)}})(s);o({logs:l.flowLog??"",flowRunResult:l.flowResult})}catch(s){i(s)}})}),Ypt=()=>It(async e=>{const{sessionId:t,mainFlowConfig:r,experimentPath:n}=e,{tuningNodeName:o,batchRequest:i}=r;return new Promise(async(s,a)=>{try{const l=[];await Promise.all((i??[]).map(async u=>{const f=!!u.flowOutputs?await xl.post("/v1.0/Experiments/skip_test",{experiment_template:[$M,"flow.exp.yaml"].join(S_),session:t,skip_flow:nv,skip_flow_output:u.flowOutputs,skip_flow_run_id:u.lastRunId},{params:{flow:Tl}}):await xl.post("/v1.0/Experiments/test_with_flow_override",{inputs:u.flowInputs,experiment_template:[$M,"flow.exp.yaml"].join(S_),override_flow_path:nv,session:t,main_flow_run_id:u.rootRunId,main_flow_init:u.flowInit},{params:{flow:Tl}});l.push({variantName:void 0,result:Object.keys(f.data??{}).map(d=>{var y,E,_,S,b;const h=(y=f.data[d])==null?void 0:y.detail,g=(_=(E=h==null?void 0:h.flow_runs)==null?void 0:E[0])==null?void 0:_.output,v=(b=(S=h==null?void 0:h.flow_runs)==null?void 0:S[0])==null?void 0:b.root_run_id;return{name:d,output:g,rootRunId:v}})})})),s({logs:"",batchResponse:l})}catch(l){a(l)}})}),Xpt=()=>{const e=ame(),t=o0t(),r=n0t(),n=i0t(),o=s0t(),i=a0t(),s=l0t(),a=u0t(),l=c0t(),u=f0t(),c=d0t(),f=h0t(),d=p0t(),h=g0t();return re.useMemo(()=>({getCurrentFlowSnapshot:e,getCurrentInferSignature:t,getCurrentChatSource:r,getFlowExpYaml:n,setFlowExpYaml:o,getFlowChatConfig:i,setFlowChatConfig:s,getCurrentFlowUxInputs:a,updateCurrentFlowUxInputs:l,uploadFile:u,getHttpUrlOfFilePath:c,getConnections:f,flowTest:d,flowEvaluate:h}),[e,t,r,n,o,i,s,a,l,u,c,f,d,h])},Qpt=()=>It(e=>{zi.postMessage({name:gn.CURRENT_FLOW_CONFIRM,payload:{flowFilePath:e}})}),Zpt=e=>{kl(gn.CURRENT_FLOW_RESPONSE,e)},Jpt=()=>{const e=Yve();kl(gn.READ_VSCODE_THEME_RESPONSE,({theme:t})=>{e(t)}),re.useEffect(()=>{zi.postMessage({name:gn.READ_VSCODE_THEME_REQUEST})},[])},e0t=()=>It(e=>{zi.postMessage({name:gn.OPEN_CODE_FILE,payload:{path:e}})}),t0t=()=>It(()=>zi.getState()),r0t=()=>It(e=>{zi.setState(e)}),n0t=()=>{const e=ame();return It(t=>e(t))},ame=()=>{const e=re.useRef(new Map);return kl(gn.CURRENT_FLOW_RESPONSE,({id:t,flowFilePath:r,flowFileRelativePath:n,flowSnapshot:o})=>{if(t&&e.current.has(t)){const i=e.current.get(t);i==null||i({flowFilePath:r,flowSnapshot:o,chatSourceType:At.Dag,chatSourceFileName:"flow.dag.yaml"}),e.current.delete(t)}}),It(t=>{const r=Math.random().toString(36).slice(2);return new Promise(n=>{e.current.set(r,n),zi.postMessage({name:gn.CURRENT_FLOW_REQUEST,payload:{id:r,fallbackFlowFilePath:t}})})})},o0t=()=>It(e=>new Promise((t,r)=>{try{t({flowFilePath:"",flowFileRelativePath:"",inferSignature:{},chatSourceType:At.Prompty,chatSourceFileName:""})}catch(n){r(n)}})),i0t=()=>It(async()=>""),s0t=()=>It(async()=>{}),a0t=()=>{const[e]=ja(),{chatInputName:t,chatOutputName:r,chatHistoryName:n}=Gve();return It(async()=>{const o=localStorage.getItem(`flowChatConfig##${e}`),i=o?JSON.parse(o):{};return{chatInputName:(i.chatInputName||t)??"",chatOutputName:(i.chatOutputName||r)??"",chatHistoryName:(i.chatHistoryName||n)??""}})},l0t=()=>{const[e]=ja(),t=Au(),r=Ct();return It(async n=>{const o={...t};Object.keys(n).forEach(i=>{const s=n[i];s&&(o[i]=s)}),localStorage.setItem(`flowChatConfig##${e}`,JSON.stringify(o)),r.flowChatConfig$.next(o)})},u0t=()=>{const[e]=ja(),t=re.useRef(new Map);return kl(gn.READ_FLOW_UX_INPUTS_RESPONSE,({id:r,uxInputs:n})=>{if(r&&t.current.has(r)){const o=t.current.get(r);o==null||o(n),t.current.delete(r)}}),It(()=>{const r=Math.random().toString(36).slice(2);return new Promise(n=>{t.current.set(r,n),zi.postMessage({name:gn.READ_FLOW_UX_INPUTS_REQUEST,payload:{id:r,flowFilePath:e}})})})},c0t=()=>{const e=Ct(),[t]=ja();return It(async()=>{zi.postMessage({name:gn.SET_FLOW_UX_INPUTS,payload:{flowFilePath:t,uxInputs:rme(e)}})})},f0t=()=>{const e=re.useRef(new Map);return kl(gn.FILE_RELATIVE_PATH_RESPONSE,({id:t,relativePath:r})=>{if(t&&e.current.has(t)){const n=e.current.get(t);n==null||n(r??""),e.current.delete(t)}}),It(t=>{const r=Math.random().toString(36).slice(2);return new Promise(async n=>{const o=t;e.current.set(r,n),zi.postMessage({name:gn.FILE_RELATIVE_PATH_REQUEST,payload:{id:r,path:o.path,fileName:o.name,fileBase64:o.path?void 0:await m7(o)}})})})},d0t=()=>{const e=re.useRef({}),t=It(async r=>r.startsWith("http://")||r.startsWith("https://")?r:new Promise(n=>{zi.postMessage({name:gn.GET_FILE_WEBVIEW_URI,payload:{filePath:r}}),e.current[r]=n}));return kl(gn.SEND_FILE_WEBVIEW_URI,({filePath:r,uri:n})=>{e.current[r]&&(e.current[r](n),delete e.current[r])}),t},h0t=()=>re.useCallback(()=>Promise.resolve([]),[]),p0t=()=>{const[e]=ja(),t=re.useRef(new Map);return kl(gn.RUN_RESULT_CHANGED,({flowFilePath:r,flowRunResult:n})=>{if(!(n!=null&&n.flow_runs))return;const o=t.current.get(r);if(o){const[i,s]=o;i==null||i({logs:"",flowRunResult:n??{}}),t.current.delete(r)}}),kl(gn.SUBMIT_FLOW_RUN_FINISHED,({flowFilePath:r,triggerBy:n,tuningNodeName:o,stdoutList:i,errorMessage:s})=>{if(e===r||e===n){const a=t.current.get(e);if(s&&a){const[l,u]=a;u(new Error(s)),t.current.delete(e)}}}),It(async r=>{const{submitId:n,tuningNodeName:o,batchRequest:i}=r;return new Promise((s,a)=>{t.current.set(e,[s,a]),zi.postMessage({name:gn.SUBMIT_FLOW_RUN,payload:{submitId:n,flowFilePath:e,validationErrors:{},selections:{mode:tce.Standard,tuningNodeName:o,inChildProcess:!0},batchContent:i}})})})},g0t=()=>{const[e]=ja(),t=re.useRef(new Map);return kl(gn.SUBMIT_FLOW_EVAL_RESPONSE,({errorMessage:r,batchResponse:n})=>{const o=t.current.get(e);if(o){const[i,s]=o;r?s(new Error(r)):i({logs:"",batchResponse:n}),t.current.delete(e)}}),It(async r=>{var l;const{mainFlowConfig:n,experimentPath:o}=r,{tuningNodeName:i="",batchRequest:s=[]}=n,a=(l=s[0])!=null&&l.flowOutputs?"eval_last":"experiment";return new Promise((u,c)=>{if(a==="experiment"&&i){c(new Error("Evaluation of variants is not yet supported"));return}t.current.set(e,[u,c]),zi.postMessage({name:gn.SUBMIT_FLOW_EVAL,payload:{flowFilePath:e,mode:a,tuningNodeName:i,batchRequest:s}})})})},lme=(...e)=>{},ms=Un?Xpt:Rpt,v0t=Un?Qpt:()=>lme,m0t=Un?Zpt:()=>lme,y0t=Un?Jpt:Opt,b0t=Un?e0t:Dpt,ume=Un?t0t:Fpt,cme=Un?r0t:Bpt,_0t=()=>{const e=Xve(),t=Jve(),r=eme(),n=Object.values(t);kl(gn.READ_CHAT_CONSOLE_RESPONSE,({activeNodeName:o,consoles:i,submitId:s})=>{const a=o===""?Yn:o;a&&e(a,i),s&&n.includes(s)&&r(s)})},E0t=()=>{const e=Ct(),[t,r]=re.useState(!1),{flowFilePath$:n,flowFileRelativePath$:o,flowFileNextPath$:i,flowFileNextRelativePath$:s,flowSnapshot$:a,chatSourceType$:l,topbarErrorMessage$:u,inferSignature$:c,chatSourceFileName$:f}=e,d=re.useRef(new Set),[h]=jve(),g=ms(),v=v0t(),y=ume(),E=cme(),_=re.useCallback((k,T)=>{var D,L,M;if(d.current.has(T))return;d.current.add(T);let x,I;const C=Object.keys((k==null?void 0:k.inputs)??{});C.length===1&&(((D=k==null?void 0:k.inputs)==null?void 0:D[C[0]].type)===Te.string||((L=k==null?void 0:k.inputs)==null?void 0:L[C[0]].type)===Te.list)&&(x=C[0]);const R=Object.keys((k==null?void 0:k.outputs)??{});R.length===1&&((M=k==null?void 0:k.outputs)!=null&&M[R[0]])&&(I=R[0]),(x||I)&&g.setFlowChatConfig({chatInputName:x,chatOutputName:I})},[g]),S=It(({flowFilePath:k,flowFileRelativePath:T,flowSnapshot:x,chatSourceType:I,inferSignature:C,chatSourceFileName:R})=>{if(i.next(k),s.next(T),n.getSnapshot()&&h)return;const L=y()??{};E({...L,currentFlowPath:k}),n.next(k),o.next(T),I&&l.next(I),R&&f.next(R),x&&(I===At.Dag||I===At.Flex)&&(a.next(x),Un&&setTimeout(()=>{_(x,k)},100)),C&&(I===At.Prompty||I===At.Flex)&&c.next(C),v(k)}),b=It(async()=>{var k,T,x,I,C;r(!1);try{const R=y()??{},D=await g.getCurrentChatSource(R.currentFlowPath),L=D.chatSourceType,M=L===At.Dag||L===At.Flex?D.flowSnapshot:void 0,W=L===At.Prompty||L===At.Flex?D.inferSignature:void 0;S({flowFilePath:D.flowFilePath,flowFileRelativePath:D.flowFileRelativePath??"",flowSnapshot:M,chatSourceType:L,inferSignature:W,chatSourceFileName:D.chatSourceFileName}),await YK(0);const z=await g.getFlowChatConfig();if(g.setFlowChatConfig(z),!Un){await YK(0);const F=L===At.Dag||L===At.Flex?M:W;_(F??{},D.flowFilePath)}u.next("")}catch(R){u.next(((x=(T=(k=R.response)==null?void 0:k.data)==null?void 0:T.error)==null?void 0:x.message)??((C=(I=R.response)==null?void 0:I.data)==null?void 0:C.message)??R.message)}finally{r(!0)}});return m0t(k=>{S(k),r(!0)}),re.useEffect(()=>{b()},[]),t},S0t=()=>{const e=Ct(),[t,r]=re.useState(!1),{flowFilePath$:n}=e,[o]=Su(n),i=ms(),s=It(()=>{r(!1),i.getCurrentFlowUxInputs().then(a=>{Cpt(e,a)}).finally(()=>{r(!0)})});return re.useEffect(()=>{o&&s()},[s,o]),t},w0t=()=>{const e=E0t();return S0t(),y0t(),_0t(),e},k0t=({children:e})=>N.jsx("div",{style:{display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"},children:e}),fme=()=>(new URLSearchParams(window.location.search).get("enable_internal_features")??"")==="true",A0t=()=>new URLSearchParams(window.location.search).get("from")??"",x0t=()=>{const[e]=Vs(),t=fme();return re.useMemo(()=>{if(Un||!t)return!1;switch(e){case At.Prompty:return!1;case At.Dag:case At.Flex:default:return!0}},[e,t])},ore=`$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Experiment.schema.json # This a template of a flow experiment yaml file. # For experiment, please edit this file to define your own flow experiment. @@ -648,25 +648,25 @@ nodes: prediction: \${main.outputs.your_output} environment_variables: {} connections: {} -`,E0t=()=>{const[e]=Ol(),t=ms(),[r,n]=re.useState(!1),[o,i]=re.useState(""),[s,a]=re.useState(""),l=re.useRef(!1),u=ctt(o,200),c=It(async()=>{var f;try{n(!0);const d=await t.getFlowExpYaml();i(d??nre)}catch(d){((f=d==null?void 0:d.response)==null?void 0:f.status)===404?i(nre):a((d==null?void 0:d.message)??"Failed to fetch yaml content")}finally{n(!1)}});return re.useEffect(()=>{e&&c()},[c,e]),re.useEffect(()=>{l.current&&t.setFlowExpYaml(u)},[t,u]),r?N.jsx("div",{style:{margin:"16px"},children:"Loading..."}):s?N.jsx("div",{style:{margin:"16px"},children:s}):N.jsx("div",{style:{width:"100%",height:"100%"},children:N.jsx(qhe,{defaultLanguage:"yaml",value:o,options:{minimap:{enabled:!1}},onChange:f=>{l.current=!0,i(f??"")}})})},ame=e=>typeof e=="number"&&Number.isInteger(e),nH=e=>typeof e=="number"&&Number.isFinite(e),$E=e=>typeof e=="string",lme=e=>typeof e=="boolean"||e==="true"||e==="false",ume=e=>e===null,cme=e=>e===void 0,S0t=e=>Array.isArray(e),w0t=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),w_=e=>{if(!$E(e))return e;try{return JSON.parse(e)}catch{return e}},fme=e=>!!$E(e),oH=(e,t)=>{if(t===""||t===void 0)return!0;switch(e){case Te.int:return ame(Number(t));case Te.double:return nH(Number(t));case Te.string:return $E(t);case Te.bool:return lme(t);case Te.list:return S0t(w_(t));case Te.object:return w0t(w_(t));case Te.image:return fme(t);default:return!0}},dme=(e,t)=>{switch(e){case Te.int:case Te.double:return t?nH(Number(t))?Number(t):t:"";case Te.string:return t??"";case Te.bool:return t?t==="true":"";case Te.list:return t?w_(t):[];case Te.object:return t?w_(t):{};case Te.image:return t??"";default:return t??""}},zx=e=>{if(!(ume(e)||cme(e)))return $E(e)||ame(e)||nH(e)||lme(e)?String(e):JSON.stringify(e)},k0t=e=>{if(ume(e)||cme(e))return"";try{const t=$E(e)?JSON.parse(e):e;return JSON.stringify(t,null,2)}catch{return e}},iH=()=>{const e=zE(),t=ms();return re.useCallback((n,o)=>{e(n,o),t.updateCurrentFlowUxInputs()},[t,e])},A0t=(e,t)=>{const[r,n]=re.useState(),o=iH();return{drawerState:r,setDrawerState:n,onSaveDrawer:()=>{var s,a;if(r){const{chatItemName:l,key:u}=r,c=(s=t.current)==null?void 0:s.getValue(),f=w_(c);o(l,{[u]:f}),(a=e.current)==null||a.close()}}}},x0t=(e,t)=>{const{chatInputName:r}=t,n=[];for(const[o,i]of Object.entries(e))if(o!==r){const s=i.type===Te.list;n.push({disabled:!s,text:o})}return n},hme=(e,t)=>{const{chatHistoryName:r}=t,n=[];for(const[o,i]of Object.entries(e))if(o!==r){const s=i.type===Te.list||i.type===Te.string;n.push({disabled:!s,text:o})}return n},T0t=e=>Object.keys(e).map(t=>({text:t})),Xk=({children:e,title:t,value:r})=>{const n=I0t();return N.jsxs(Hle,{value:r,children:[N.jsx($le,{expandIconPosition:"end",children:N.jsx("span",{className:n.title,children:t??r})}),N.jsx(Ple,{children:e})]})},I0t=_r({title:{color:Pt.colorNeutralForeground1,fontSize:"16px",fontWeight:600,lineHeight:"150%"}}),pme=_r({surface:{...Ye.padding(0),...Ye.overflow("hidden"),...Ye.border("none"),width:"640px",maxWidth:"640px"},header:{...Ye.borderBottom("1px","solid",Pt.colorNeutralStroke2),...Ye.padding("16px","24px"),backgroundImage:"var(--Gradient-Tint-Light, linear-gradient(90deg, #D9EBF9 0%, #D9EBF9 22.92%, #F2F8FD 68.75%, #F9ECF8 100%))",fontSize:"20px",fontWeight:"600",lineHeight:"28px"},content:{...Ye.margin("24px","24px",0,"24px"),...Ye.overflow("visible")},actions:{...Ye.margin("24px")}}),C0t=({headerText:e,readOnly:t,saveButtonDisabled:r,onClickSaveButton:n,children:o,actionRef:i})=>{const[s,a]=re.useState(!1);re.useImperativeHandle(i,()=>({open(){a(!0)},close(){a(!1)}}),[]);const l=N0t(),u=pme();return N.jsx(UT,{open:s,onOpenChange:(c,f)=>{a(f.open)},children:N.jsx(ZT,{className:Xe(u.surface,l.surface),children:N.jsxs(XT,{children:[N.jsx(QT,{className:u.header,children:e}),N.jsx(JT,{className:u.content,children:o}),N.jsxs(YT,{className:u.actions,children:[!t&&N.jsx(Tn,{appearance:"primary",disabled:r,onClick:n,children:"Save"}),N.jsx(_v,{disableButtonEnhancement:!0,children:N.jsx(Tn,{appearance:"secondary",children:"Cancel"})})]})]})})})},N0t=_r({surface:{width:"60%",maxWidth:"60%"}}),R0t=["Flow inputs","Flow outputs"],O0t=["Prompty inputs","Prompty outputs"],D0t=()=>{const[e]=Vs();return re.useMemo(()=>{switch(e){case At.Prompty:return{inputsItemValue:"Prompty inputs",outputsItemValue:"Prompty outputs",defaultOpenItems:O0t};case At.Dag:case At.Flex:default:return{inputsItemValue:"Flow inputs",outputsItemValue:"Flow outputs",defaultOpenItems:R0t}}},[e])},gme=(e,t)=>{const[r]=Vs(),[n]=Dve();let o="";switch(r){case At.Prompty:o=n;break;case At.Dag:case At.Flex:default:o=e===Un?Un:`${e}.${t}`}return o},vme=e=>{const t={};return Object.keys(e).forEach(r=>{const[n,...o]=r.split("_"),s=[n.charAt(0).toUpperCase()+n.slice(1),...o].join(" ");t[s]=e[r]}),t},ore=["png","jpg","jpeg","gif","bmp","tif","tiff","svg","webp","ico"],F0t=(e,t,r)=>{const n=zE(),o=iH(),i=re.useId(),s=h0t(),a=ms(),l=g=>{n(e,{[t]:g}),o(e,{[t]:g})};wl(cn.SELECT_FILE_RESPONSE,({id:g,path:v})=>{i===g&&v!==void 0&&t&&l(v)});const{onPaste:u}=utt(g=>{r===Te.image&&l(g)}),c=It(g=>{fme(g)&&s(g)}),f=()=>{yi.postMessage({name:cn.SELECT_FILE_REQUEST,payload:{id:i,onlyExistingFile:!0,filters:{Images:ore}}})},d=()=>{const g=document.createElement("input");g.type="file",g.accept=ore.join(","),g.onchange=async v=>{const y=v.target;if(y.files&&y.files.length>0){const E=y.files[0],_=await a.uploadFile(E);l(_)}},g.click()},h=It(async g=>{const v=U1e(g);if(v){const y=await a.uploadFile(v);l(y)}});return{onOpenImage:c,selectFile:no?f:d,onPaste:no?u:h}},B0t=({valueType:e,showOpenFileIcon:t,openFileHandler:r,selectFileHandler:n})=>e!==Te.image?N.jsx(N.Fragment,{}):N.jsxs(re.Fragment,{children:[t&&N.jsx(ga,{content:"Open file",relationship:"label",positioning:"above",children:N.jsx(Vae,{style:{cursor:"pointer",marginLeft:"6px"},onClick:r})}),N.jsx(ga,{content:"Select another file",relationship:"label",positioning:"above",children:N.jsx(D3e,{style:{cursor:"pointer",marginLeft:"6px"},onClick:n})})]}),M0t=({tooltipContent:e,isJsonValueType:t,onClick:r})=>t?N.jsx(ga,{content:e,relationship:"label",positioning:"above",children:N.jsx(O3e,{style:{cursor:"pointer",marginLeft:"6px"},onClick:r})}):N.jsx(N.Fragment,{}),Hx=({label:e,show:t,style:r})=>t?N.jsx(Tue,{size:"small",style:r,children:e}):N.jsx(N.Fragment,{}),mme=({rootClassName:e,contentAfter:t,label:r,readOnly:n,tooltipContent:o,required:i,vKey:s,errorMessage:a,value:l,defaultValue:u,after:c,onChange:f,onBlur:d})=>{const h={outline:"none","&:focus":{outline:"none"}},g=(E,_)=>{f==null||f(s,_.value)},v=E=>{l!==void 0&&(d==null||d(s,l))},y=()=>N.jsx(o7,{style:{flex:1,backgroundColor:n?Pt.colorNeutralBackground3:void 0},readOnly:n,input:{style:h},value:l??u??"",onChange:g,onBlur:v,contentAfter:t});return N.jsx("div",{className:e,children:N.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center"},children:[N.jsx(GT,{label:r,required:i,validationMessage:a,style:{flex:1},children:o?N.jsx(ga,{content:o,relationship:"description",positioning:"above-end",children:y()}):y()}),c]})})},L0t=({definition:e,inputName:t,chatItemName:r,value:n,defaultValue:o,onPreviewInput:i,onErrorChange:s})=>{const{chatInputName:a,chatHistoryName:l}=Au(),u=t===l,c=t===a,f=e.type,d=u||c,h=o===void 0,g=e.type===Te.list||e.type===Te.object,v=zE(),y=iH(),{onOpenImage:E,selectFile:_,onPaste:S}=F0t(r,t,e.type),b=It((I,C)=>{v(r,{[I]:C})}),k=It((I,C)=>{const R=e.type,D=R?dme(R,C):C;y(r,{[I]:D})}),T=e.type?oH(e.type,n??o)?h&&!d&&(n===""||n===void 0)?"Required":void 0:"Input type is not valid":void 0;re.useEffect(()=>{s==null||s(t,!!T)},[t,T,s]);const x=N.jsxs("div",{style:{display:"flex"},children:[f?N.jsx(M0t,{tooltipContent:d?"View full value":"Edit value",isJsonValueType:g,onClick:()=>{i==null||i(r,t,f)}}):void 0,N.jsx(B0t,{valueType:e.type,showOpenFileIcon:!!(n??o),openFileHandler:()=>{const I=n??o;I&&E(I)},selectFileHandler:()=>_()})]});return N.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},onPasteCapture:S,onDragCapture:S,children:N.jsx(mme,{rootClassName:j0t.fieldRoot,label:N.jsxs("span",{children:[N.jsxs("span",{style:{marginRight:"4px"},children:[t,":"]}),N.jsx("span",{style:{color:Pt.colorNeutralForeground4},children:e.type}),N.jsx(Hx,{show:c,label:"chat input",style:{marginLeft:5}}),N.jsx(Hx,{show:u,label:"chat history",style:{marginLeft:5}})]}),readOnly:d,tooltipContent:c?"Specify the value of chat_input in the chat window input box.":u?"If you specify chat_history, then the system will automatically collect all history within the conversation.":void 0,required:h,vKey:t,value:n,errorMessage:T,defaultValue:o,onChange:b,onBlur:k,contentAfter:x})})},j0t=mi({fieldRoot:{margin:"6px 0",flex:1},divider:{paddingTop:6,paddingBottom:6},bold:{fontWeight:600}}),yme=({rootClassName:e,label:t,afterLabel:r,required:n,errorMessage:o,element:i})=>N.jsx("div",{className:e,style:{margin:2},children:N.jsx(GT,{label:{children:(s,a)=>N.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},children:[N.jsx(Nf,{...a,required:n,children:t}),r]})},required:n,validationMessage:o,style:{flex:1},children:i})}),z0t=({imagePath:e})=>{const r=ms().getHttpUrlOfFilePath,[n,o]=re.useState(void 0),[i,s]=re.useState(void 0);return re.useEffect(()=>{r(e).then(o).catch(s)},[r,e]),N.jsx("div",{children:i?i.message:n?N.jsx("img",{src:n,alt:e,style:{width:"100%"}}):N.jsx(tE,{size:"tiny"})})},H0t=({content:e,style:t})=>{const[n,o]=A.useState(!1),i=()=>{o(!0)},s=`${e}`;return s.length<=300?N.jsx("div",{style:t,children:s}):n?N.jsxs("div",{style:t,children:[s,N.jsx("div",{children:N.jsx(Ub,{onClick:()=>o(!1),children:"Collapse"})})]}):N.jsxs("div",{style:t,children:[`${s.slice(0,300)}...`," ",N.jsx("div",{children:N.jsx(Ub,{onClick:i,children:"Expand"})})]})},$0t=({rootClassName:e,inline:t,label:r,value:n})=>N.jsxs("div",{className:e,style:{margin:2},children:[N.jsx(Nf,{children:r}),t?N.jsx("span",{children:n}):N.jsx(H0t,{content:n,style:{fontSize:"12px",fontWeight:400}})]}),ire=mi({output:{flex:1}}),P0t=({activeNodeName:e,variantName:t,showTestButton:r,onPreviewInput:n})=>{const o=gme(e,t),i=Bve(),s=ipt(o),a=spt(o),l=Lve(),u=upt(),c=jve(),f=Kve(),d=bpt(),h=Yve(),v=!!Uve()[o],[y,E]=re.useState(bE()),[_,S]=re.useState(void 0),b=ms(),{flowInputDefinition:k,flowOutputDefinition:T}=B1(),{chatInputName:x,chatOutputName:I,chatHistoryName:C}=Au(),{inputsItemValue:R,outputsItemValue:D,defaultOpenItems:L}=D0t(),M=re.useCallback((F,P)=>{E(K=>P?K.add(F):K.remove(F))},[]),W=It(async()=>{var P,K,V,Z,J;const F=Ri.v4();try{S(void 0),d(o,F);const{flowRunResult:ee}=await b.flowTest({submitId:F,tuningNodeName:e===Un?"":e,batchRequest:[{variantName:e===Un?void 0:t,flowInputs:{...s},flowInit:i(o)}]});l(o,((K=(P=ee==null?void 0:ee.flow_runs)==null?void 0:P[0])==null?void 0:K.output)??{}),c(o,(Z=(V=ee==null?void 0:ee.flow_runs)==null?void 0:V[0])==null?void 0:Z.output_path),f(e,vme(((J=ee==null?void 0:ee.flow_runs)==null?void 0:J[0].system_metrics)||{}))}catch(ee){S(ee)}finally{h(F)}}),z=()=>{var F,P,K;return N.jsxs(GL,{multiple:!0,collapsible:!0,defaultOpenItems:[...L],children:[N.jsxs(Xk,{value:R,children:[Object.keys(k).map(V=>{const Z=`${o}.${V}`,J=zx(s==null?void 0:s[V]),ee=zx(k[V].default);return N.jsx(L0t,{definition:k[V],inputName:V,chatItemName:o,value:J,defaultValue:ee,chatInputName:x,chatHistoryName:C,onPreviewInput:n,onErrorChange:M},Z)}),r?N.jsx(Tn,{appearance:"primary",style:{marginTop:6},disabled:v||!!y.size,icon:v?N.jsx(tE,{size:"tiny"}):void 0,onClick:W,children:v?"Testing...":"Test"}):void 0,N.jsx("div",{children:!!_&&N.jsx(zg,{intent:"error",layout:"multiline",style:{marginTop:10,padding:"10px 0 10px 12px"},children:((K=(P=(F=_==null?void 0:_.response)==null?void 0:F.data)==null?void 0:P.error)==null?void 0:K.message)??(_==null?void 0:_.message)??"Test failed"})})]},R),N.jsx(Xk,{value:D,children:Object.keys(T).map(V=>{const Z=`${o}.${V}`,J=(a==null?void 0:a[V])??"",ee=V===I,de=J&&typeof J=="string"?J:JSON.stringify(J);if(typeof J=="object"&&J!==null&&Object.keys(J).length===1){const ge=Object.keys(J);if(ge.length===1&&ge[0]==="data:image/png;path"){const Re=u(o)+"/"+J[ge[0]];return N.jsx("div",{style:{display:"flex",alignItems:"center",width:"100%"},children:N.jsx(yme,{rootClassName:ire.output,label:N.jsxs("span",{children:[N.jsx("span",{children:V}),N.jsx(Hx,{show:ee,label:"chat output",style:{marginLeft:5}})]}),element:N.jsx(z0t,{imagePath:Re})})},Z)}}return N.jsx("div",{style:{display:"flex",alignItems:"center",width:"100%"},children:N.jsx($0t,{rootClassName:ire.output,label:N.jsxs("span",{children:[N.jsx("span",{children:V}),N.jsx(Hx,{show:ee,label:"chat output",style:{marginLeft:5}})]}),name:Z,value:de})},Z)})},D)]},"inputs")};return e===Un?z():N.jsx(Xk,{value:t,children:z()},o)},q0t=({value:e="",language:t,editorRef:r,readOnly:n=!0,containerStyle:o={},onChange:i,onValidate:s})=>{const a=ypt(),l=re.useRef(),u=f=>{l.current=f};re.useImperativeHandle(r,()=>({getValue:()=>{var f;return((f=l.current)==null?void 0:f.getValue())??""},isValid:()=>{var d,h;return(((h=(d=l.current)==null?void 0:d.getModel())==null?void 0:h.getAllDecorations())??[]).length===0}}),[]);const c=a==="dark"?"vs-dark":"light";return N.jsx("div",{style:{height:"100%",width:"100%",...o},children:N.jsx(qhe,{defaultLanguage:t,theme:c,value:e,options:{readOnly:n,minimap:{enabled:!1}},onChange:i,onValidate:s,onMount:u})})},rF=({label:e,afterLabel:t,value:r,required:n,errorMessage:o,options:i,onValueChange:s})=>{const a=Ks(),l=W0t(),u=(c,f)=>{s==null||s(f.optionValue??"")};return N.jsx("div",{className:l.field,children:N.jsx(GT,{label:{children:(c,f)=>N.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},children:[N.jsx(Nf,{...f,required:n,children:e}),t]})},required:n,validationMessage:o,style:{flex:1},children:N.jsx(n7,{id:`${a}-name`,onOptionSelect:u,appearance:"outline",value:r,placeholder:"Please select an option",children:i.map((c,f)=>N.jsx(VT,{value:c.text,disabled:c.disabled,children:c.text},f))})})})},W0t=_r({field:{display:"grid",gridRowGap:"3px",paddingBottom:Pt.spacingVerticalM}}),nF="Chat input/output field config",G0t="You need to select chat_input and chat_history from your flow inputs, and chat_output from flow outputs. These inputs and output will be displayed in the chat window on left side.",K0t="You need to select an input as chat_input, and input the value in the chat window on left side. Chat input can only be list or string type.",V0t=`If you specify chat_history, then the conversation will have previous memory including all historical flow inputs and outputs. +`,T0t=()=>{const[e]=ja(),t=ms(),[r,n]=re.useState(!1),[o,i]=re.useState(""),[s,a]=re.useState(""),l=re.useRef(!1),u=gtt(o,200),c=It(async()=>{var f;try{n(!0);const d=await t.getFlowExpYaml();i(d??ore)}catch(d){((f=d==null?void 0:d.response)==null?void 0:f.status)===404?i(ore):a((d==null?void 0:d.message)??"Failed to fetch yaml content")}finally{n(!1)}});return re.useEffect(()=>{e&&c()},[c,e]),re.useEffect(()=>{l.current&&t.setFlowExpYaml(u)},[t,u]),r?N.jsx("div",{style:{margin:"16px"},children:"Loading..."}):s?N.jsx("div",{style:{margin:"16px"},children:s}):N.jsx("div",{style:{width:"100%",height:"100%"},children:N.jsx(Whe,{defaultLanguage:"yaml",value:o,options:{minimap:{enabled:!1}},onChange:f=>{l.current=!0,i(f??"")}})})},dme=e=>typeof e=="number"&&Number.isInteger(e),oH=e=>typeof e=="number"&&Number.isFinite(e),PE=e=>typeof e=="string",hme=e=>typeof e=="boolean"||e==="true"||e==="false",pme=e=>e===null,gme=e=>e===void 0,I0t=e=>Array.isArray(e),C0t=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),w_=e=>{if(!PE(e))return e;try{return JSON.parse(e)}catch{return e}},vme=e=>!!PE(e),iH=(e,t)=>{if(t===""||t===void 0)return!0;switch(e){case Te.int:return dme(Number(t));case Te.double:return oH(Number(t));case Te.string:return PE(t);case Te.bool:return hme(t);case Te.list:return I0t(w_(t));case Te.object:return C0t(w_(t));case Te.image:return vme(t);default:return!0}},mme=(e,t)=>{switch(e){case Te.int:case Te.double:return t?oH(Number(t))?Number(t):t:"";case Te.string:return t??"";case Te.bool:return t?t==="true":"";case Te.list:return t?w_(t):[];case Te.object:return t?w_(t):{};case Te.image:return t??"";default:return t??""}},Hx=e=>{if(!(pme(e)||gme(e)))return PE(e)||dme(e)||oH(e)||hme(e)?String(e):JSON.stringify(e)},N0t=e=>{if(pme(e)||gme(e))return"";try{const t=PE(e)?JSON.parse(e):e;return JSON.stringify(t,null,2)}catch{return e}},sH=()=>{const e=HE(),t=ms();return re.useCallback((n,o)=>{e(n,o),t.updateCurrentFlowUxInputs()},[t,e])},R0t=(e,t)=>{const[r,n]=re.useState(),o=sH();return{drawerState:r,setDrawerState:n,onSaveDrawer:()=>{var s,a;if(r){const{chatItemName:l,key:u}=r,c=(s=t.current)==null?void 0:s.getValue(),f=w_(c);o(l,{[u]:f}),(a=e.current)==null||a.close()}}}},O0t=(e,t)=>{const{chatInputName:r}=t,n=[];for(const[o,i]of Object.entries(e))if(o!==r){const s=i.type===Te.list;n.push({disabled:!s,text:o})}return n},yme=(e,t)=>{const{chatHistoryName:r}=t,n=[];for(const[o,i]of Object.entries(e))if(o!==r){const s=i.type===Te.list||i.type===Te.string;n.push({disabled:!s,text:o})}return n},D0t=e=>Object.keys(e).map(t=>({text:t})),Qk=({children:e,title:t,value:r})=>{const n=F0t();return N.jsxs($le,{value:r,children:[N.jsx(Ple,{expandIconPosition:"end",children:N.jsx("span",{className:n.title,children:t??r})}),N.jsx(qle,{children:e})]})},F0t=vr({title:{color:Pt.colorNeutralForeground1,fontSize:"16px",fontWeight:600,lineHeight:"150%"}}),bme=()=>{const e=B0t(),t=M0t(),r=Uve();return{...e,header:Ve(e.header,r==="light"?t.light:t.dark)}},B0t=vr({surface:{...Xe.padding(0),...Xe.overflow("hidden"),...Xe.border("none"),width:"640px",maxWidth:"640px"},header:{...Xe.borderBottom("1px","solid",Pt.colorNeutralStroke2),...Xe.padding("16px","24px"),backgroundImage:"var(--Gradient-Tint-Light, linear-gradient(90deg, #D9EBF9 0%, #D9EBF9 22.92%, #F2F8FD 68.75%, #F9ECF8 100%))",fontSize:"20px",fontWeight:"600",lineHeight:"28px"},content:{...Xe.margin("24px","24px",0,"24px"),...Xe.overflow("visible")},actions:{...Xe.margin("24px")}}),M0t=vr({light:{backgroundImage:"var(--Gradient-Tint-Light, linear-gradient(90deg, #D9EBF9 0%, #D9EBF9 22.92%, #F2F8FD 68.75%, #F9ECF8 100%))"},dark:{backgroundImage:"var(--Gradient-Tint-Light, linear-gradient(103.66deg, #26313B 0%, #3B323A 100%))"}}),L0t=({headerText:e,readOnly:t,saveButtonDisabled:r,onClickSaveButton:n,children:o,actionRef:i})=>{const[s,a]=re.useState(!1);re.useImperativeHandle(i,()=>({open(){a(!0)},close(){a(!1)}}),[]);const l=j0t(),u=bme();return N.jsx(YT,{open:s,onOpenChange:(c,f)=>{a(f.open)},children:N.jsx(JT,{className:Ve(u.surface,l.surface),children:N.jsxs(QT,{children:[N.jsx(ZT,{className:u.header,children:e}),N.jsx(e9,{className:u.content,children:o}),N.jsxs(XT,{className:u.actions,children:[!t&&N.jsx(Tn,{appearance:"primary",disabled:r,onClick:n,children:"Save"}),N.jsx(_v,{disableButtonEnhancement:!0,children:N.jsx(Tn,{appearance:"secondary",children:"Cancel"})})]})]})})})},j0t=vr({surface:{width:"60%",maxWidth:"60%"}}),z0t=["Flow inputs","Flow outputs"],H0t=["Prompty inputs","Prompty outputs"],$0t=()=>{const[e]=Vs();return re.useMemo(()=>{switch(e){case At.Prompty:return{inputsItemValue:"Prompty inputs",outputsItemValue:"Prompty outputs",defaultOpenItems:H0t};case At.Dag:case At.Flex:default:return{inputsItemValue:"Flow inputs",outputsItemValue:"Flow outputs",defaultOpenItems:z0t}}},[e])},_me=(e,t)=>{const[r]=Vs(),[n]=Lve();let o="";switch(r){case At.Prompty:o=n;break;case At.Dag:case At.Flex:default:o=e===Yn?Yn:`${e}.${t}`}return o},Eme=e=>{const t={};return Object.keys(e).forEach(r=>{const[n,...o]=r.split("_"),s=[n.charAt(0).toUpperCase()+n.slice(1),...o].join(" ");t[s]=e[r]}),t},ire=["png","jpg","jpeg","gif","bmp","tif","tiff","svg","webp","ico"],P0t=(e,t,r)=>{const n=HE(),o=sH(),i=re.useId(),s=b0t(),a=ms(),l=g=>{n(e,{[t]:g}),o(e,{[t]:g})};kl(gn.SELECT_FILE_RESPONSE,({id:g,path:v})=>{i===g&&v!==void 0&&t&&l(v)});const{onPaste:u}=ptt(g=>{r===Te.image&&l(g)}),c=It(g=>{vme(g)&&s(g)}),f=()=>{zi.postMessage({name:gn.SELECT_FILE_REQUEST,payload:{id:i,onlyExistingFile:!0,filters:{Images:ire}}})},d=()=>{const g=document.createElement("input");g.type="file",g.accept=ire.join(","),g.onchange=async v=>{const y=v.target;if(y.files&&y.files.length>0){const E=y.files[0],_=await a.uploadFile(E);l(_)}},g.click()},h=It(async g=>{const v=Y1e(g);if(v){const y=await a.uploadFile(v);l(y)}});return{onOpenImage:c,selectFile:Un?f:d,onPaste:Un?u:h}},q0t=({valueType:e,showOpenFileIcon:t,openFileHandler:r,selectFileHandler:n})=>e!==Te.image?N.jsx(N.Fragment,{}):N.jsxs(re.Fragment,{children:[t&&N.jsx(ga,{content:"Open file",relationship:"label",positioning:"above",children:N.jsx(Uae,{style:{cursor:"pointer",marginLeft:"6px"},onClick:r})}),N.jsx(ga,{content:"Select another file",relationship:"label",positioning:"above",children:N.jsx(j3e,{style:{cursor:"pointer",marginLeft:"6px"},onClick:n})})]}),W0t=({tooltipContent:e,isJsonValueType:t,onClick:r})=>t?N.jsx(ga,{content:e,relationship:"label",positioning:"above",children:N.jsx(L3e,{style:{cursor:"pointer",marginLeft:"6px"},onClick:r})}):N.jsx(N.Fragment,{}),$x=({label:e,show:t,style:r})=>t?N.jsx(Iue,{size:"small",style:r,children:e}):N.jsx(N.Fragment,{}),Sme=({rootClassName:e,contentAfter:t,label:r,readOnly:n,tooltipContent:o,required:i,vKey:s,errorMessage:a,value:l,defaultValue:u,after:c,onChange:f,onBlur:d})=>{const h={outline:"none","&:focus":{outline:"none"}},g=(E,_)=>{f==null||f(s,_.value)},v=E=>{l!==void 0&&(d==null||d(s,l))},y=()=>N.jsx(i7,{style:{flex:1,backgroundColor:n?Pt.colorNeutralBackground3:void 0},readOnly:n,input:{style:h},value:l??u??"",onChange:g,onBlur:v,contentAfter:t});return N.jsx("div",{className:e,children:N.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center"},children:[N.jsx(KT,{label:r,required:i,validationMessage:a,style:{flex:1},children:o?N.jsx(ga,{content:o,relationship:"description",positioning:"above-end",children:y()}):y()}),c]})})},G0t=({definition:e,inputName:t,chatItemName:r,value:n,defaultValue:o,onPreviewInput:i,onErrorChange:s})=>{const{chatInputName:a,chatHistoryName:l}=Au(),u=t===l,c=t===a,f=e.type,d=u||c,h=o===void 0,g=e.type===Te.list||e.type===Te.object,v=HE(),y=sH(),{onOpenImage:E,selectFile:_,onPaste:S}=P0t(r,t,e.type),b=It((I,C)=>{v(r,{[I]:C})}),k=It((I,C)=>{const R=e.type,D=R?mme(R,C):C;y(r,{[I]:D})}),T=e.type?iH(e.type,n??o)?h&&!d&&(n===""||n===void 0)?"Required":void 0:"Input type is not valid":void 0;re.useEffect(()=>{s==null||s(t,!!T)},[t,T,s]);const x=N.jsxs("div",{style:{display:"flex"},children:[f?N.jsx(W0t,{tooltipContent:d?"View full value":"Edit value",isJsonValueType:g,onClick:()=>{i==null||i(r,t,f)}}):void 0,N.jsx(q0t,{valueType:e.type,showOpenFileIcon:!!(n??o),openFileHandler:()=>{const I=n??o;I&&E(I)},selectFileHandler:()=>_()})]});return N.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},onPasteCapture:S,onDragCapture:S,children:N.jsx(Sme,{rootClassName:K0t.fieldRoot,label:N.jsxs("span",{children:[N.jsxs("span",{style:{marginRight:"4px"},children:[t,":"]}),N.jsx("span",{style:{color:Pt.colorNeutralForeground4},children:e.type}),N.jsx($x,{show:c,label:"chat input",style:{marginLeft:5}}),N.jsx($x,{show:u,label:"chat history",style:{marginLeft:5}})]}),readOnly:d,tooltipContent:c?"Specify the value of chat_input in the chat window input box.":u?"If you specify chat_history, then the system will automatically collect all history within the conversation.":void 0,required:h,vKey:t,value:n,errorMessage:T,defaultValue:o,onChange:b,onBlur:k,contentAfter:x})})},K0t=mi({fieldRoot:{margin:"6px 0",flex:1},divider:{paddingTop:6,paddingBottom:6},bold:{fontWeight:600}}),wme=({rootClassName:e,label:t,afterLabel:r,required:n,errorMessage:o,element:i})=>N.jsx("div",{className:e,style:{margin:2},children:N.jsx(KT,{label:{children:(s,a)=>N.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},children:[N.jsx(Nf,{...a,required:n,children:t}),r]})},required:n,validationMessage:o,style:{flex:1},children:i})}),V0t=({imagePath:e})=>{const r=ms().getHttpUrlOfFilePath,[n,o]=re.useState(void 0),[i,s]=re.useState(void 0);return re.useEffect(()=>{r(e).then(o).catch(s)},[r,e]),N.jsx("div",{children:i?i.message:n?N.jsx("img",{src:n,alt:e,style:{width:"100%"}}):N.jsx(tE,{size:"tiny"})})},U0t=({content:e,style:t})=>{const[n,o]=A.useState(!1),i=()=>{o(!0)},s=`${e}`;return s.length<=300?N.jsx("div",{style:t,children:s}):n?N.jsxs("div",{style:t,children:[s,N.jsx("div",{children:N.jsx(Ub,{onClick:()=>o(!1),children:"Collapse"})})]}):N.jsxs("div",{style:t,children:[`${s.slice(0,300)}...`," ",N.jsx("div",{children:N.jsx(Ub,{onClick:i,children:"Expand"})})]})},Y0t=({rootClassName:e,inline:t,label:r,value:n})=>N.jsxs("div",{className:e,style:{margin:2},children:[N.jsx(Nf,{children:r}),t?N.jsx("span",{children:n}):N.jsx(U0t,{content:n,style:{fontSize:"12px",fontWeight:400}})]}),sre=mi({output:{flex:1}}),X0t=({activeNodeName:e,variantName:t,showTestButton:r,onPreviewInput:n})=>{const o=_me(e,t),i=zve(),s=dpt(o),a=hpt(o),l=$ve(),u=vpt(),c=Pve(),f=Qve(),d=Apt(),h=eme(),v=!!Jve()[o],[y,E]=re.useState(bE()),[_,S]=re.useState(void 0),b=ms(),{flowInputDefinition:k,flowOutputDefinition:T}=M1(),{chatInputName:x,chatOutputName:I,chatHistoryName:C}=Au(),{inputsItemValue:R,outputsItemValue:D,defaultOpenItems:L}=$0t(),M=re.useCallback((F,P)=>{E(K=>P?K.add(F):K.remove(F))},[]),W=It(async()=>{var P,K,V,Z,J;const F=Ni.v4();try{S(void 0),d(o,F);const{flowRunResult:ee}=await b.flowTest({submitId:F,tuningNodeName:e===Yn?"":e,batchRequest:[{variantName:e===Yn?void 0:t,flowInputs:{...s},flowInit:i(o)}]});l(o,((K=(P=ee==null?void 0:ee.flow_runs)==null?void 0:P[0])==null?void 0:K.output)??{}),c(o,(Z=(V=ee==null?void 0:ee.flow_runs)==null?void 0:V[0])==null?void 0:Z.output_path),f(e,Eme(((J=ee==null?void 0:ee.flow_runs)==null?void 0:J[0].system_metrics)||{}))}catch(ee){S(ee)}finally{h(F)}}),z=()=>{var F,P,K;return N.jsxs(KL,{multiple:!0,collapsible:!0,defaultOpenItems:[...L],children:[N.jsxs(Qk,{value:R,children:[Object.keys(k).map(V=>{const Z=`${o}.${V}`,J=Hx(s==null?void 0:s[V]),ee=Hx(k[V].default);return N.jsx(G0t,{definition:k[V],inputName:V,chatItemName:o,value:J,defaultValue:ee,chatInputName:x,chatHistoryName:C,onPreviewInput:n,onErrorChange:M},Z)}),r?N.jsx(Tn,{appearance:"primary",style:{marginTop:6},disabled:v||!!y.size,icon:v?N.jsx(tE,{size:"tiny"}):void 0,onClick:W,children:v?"Testing...":"Test"}):void 0,N.jsx("div",{children:!!_&&N.jsx(zg,{intent:"error",layout:"multiline",style:{marginTop:10,padding:"10px 0 10px 12px"},children:((K=(P=(F=_==null?void 0:_.response)==null?void 0:F.data)==null?void 0:P.error)==null?void 0:K.message)??(_==null?void 0:_.message)??"Test failed"})})]},R),N.jsx(Qk,{value:D,children:Object.keys(T).map(V=>{const Z=`${o}.${V}`,J=(a==null?void 0:a[V])??"",ee=V===I,de=J&&typeof J=="string"?J:JSON.stringify(J);if(typeof J=="object"&&J!==null&&Object.keys(J).length===1){const ge=Object.keys(J);if(ge.length===1&&ge[0]==="data:image/png;path"){const Re=u(o)+"/"+J[ge[0]];return N.jsx("div",{style:{display:"flex",alignItems:"center",width:"100%"},children:N.jsx(wme,{rootClassName:sre.output,label:N.jsxs("span",{children:[N.jsx("span",{children:V}),N.jsx($x,{show:ee,label:"chat output",style:{marginLeft:5}})]}),element:N.jsx(V0t,{imagePath:Re})})},Z)}}return N.jsx("div",{style:{display:"flex",alignItems:"center",width:"100%"},children:N.jsx(Y0t,{rootClassName:sre.output,label:N.jsxs("span",{children:[N.jsx("span",{children:V}),N.jsx($x,{show:ee,label:"chat output",style:{marginLeft:5}})]}),name:Z,value:de})},Z)})},D)]},"inputs")};return e===Yn?z():N.jsx(Qk,{value:t,children:z()},o)},Q0t=({value:e="",language:t,editorRef:r,readOnly:n=!0,containerStyle:o={},onChange:i,onValidate:s})=>{const a=Uve(),l=re.useRef(),u=f=>{l.current=f};re.useImperativeHandle(r,()=>({getValue:()=>{var f;return((f=l.current)==null?void 0:f.getValue())??""},isValid:()=>{var d,h;return(((h=(d=l.current)==null?void 0:d.getModel())==null?void 0:h.getAllDecorations())??[]).length===0}}),[]);const c=a==="dark"?"vs-dark":"light";return N.jsx("div",{style:{height:"100%",width:"100%",...o},children:N.jsx(Whe,{defaultLanguage:t,theme:c,value:e,options:{readOnly:n,minimap:{enabled:!1}},onChange:i,onValidate:s,onMount:u})})},rF=({label:e,afterLabel:t,value:r,required:n,errorMessage:o,options:i,onValueChange:s})=>{const a=Ks(),l=Z0t(),u=(c,f)=>{s==null||s(f.optionValue??"")};return N.jsx("div",{className:l.field,children:N.jsx(KT,{label:{children:(c,f)=>N.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},children:[N.jsx(Nf,{...f,required:n,children:e}),t]})},required:n,validationMessage:o,style:{flex:1},children:N.jsx(o7,{id:`${a}-name`,onOptionSelect:u,appearance:"outline",value:r,placeholder:"Please select an option",children:i.map((c,f)=>N.jsx(UT,{value:c.text,disabled:c.disabled,children:c.text},f))})})})},Z0t=vr({field:{display:"grid",gridRowGap:"3px",paddingBottom:Pt.spacingVerticalM}}),nF="Chat input/output field config",J0t="You need to select chat_input and chat_history from your flow inputs, and chat_output from flow outputs. These inputs and output will be displayed in the chat window on left side.",egt="You need to select an input as chat_input, and input the value in the chat window on left side. Chat input can only be list or string type.",tgt=`If you specify chat_history, then the conversation will have previous memory including all historical flow inputs and outputs. -If you don’t specify chat_history, each test is a new conversation without any memory.`,U0t="You need to select an input as chat_output, which will be displayed in the chat window on left side.",Y0t=()=>{const[e]=$5(),t=HE(),{flowInputsMap$:r}=Ct(),n=re.useRef(),o=re.useRef(),[i,s]=re.useState(!0),{drawerState:a,setDrawerState:l,onSaveDrawer:u}=A0t(n,o),{flowInputDefinition:c,flowOutputDefinition:f}=B1(),d=ms(),h=Au(),{chatInputName:g,chatOutputName:v,chatHistoryName:y}=h,[E]=Vs(),_=re.useMemo(()=>x0t(c,h),[c,h]),S=re.useMemo(()=>hme(c,h),[c,h]),b=re.useMemo(()=>T0t(f),[f]),k=re.useMemo(()=>{var L,M;if(e===Un)return[Un];if(E===At.Prompty)return[];const D=((M=(L=t==null?void 0:t.node_variants)==null?void 0:L[e])==null?void 0:M.variants)??{};return Object.keys(D)},[e,E,t==null?void 0:t.node_variants]),T=It(D=>{g!==D&&d.setFlowChatConfig({chatInputName:D})}),x=It(D=>{v!==D&&d.setFlowChatConfig({chatOutputName:D})}),I=It(D=>{y!==D&&d.setFlowChatConfig({chatHistoryName:D})}),C=re.useCallback((D,L,M)=>{var Z,J;const W=M===Te.list?[]:{},z=((Z=r.get(D))==null?void 0:Z[L])??W,F=k0t(z),V=L===y||L===g;s(!0),l({value:F,chatItemName:D,key:L,valueType:M,readOnly:V}),(J=n.current)==null||J.open()},[y,g,r,l]),R=S.length===0||S.every(D=>D.disabled);return N.jsxs(re.Fragment,{children:[N.jsxs(GL,{multiple:!0,collapsible:!0,defaultOpenItems:[...R?[]:[nF],k[0]],children:[N.jsx(Vy,{style:{marginTop:"12px"}}),N.jsxs(Xk,{title:N.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},children:[nF,N.jsx(ga,{content:G0t,relationship:"label",positioning:"after",children:N.jsx(ay,{tabIndex:0,style:{marginLeft:"4px"}})})]}),value:nF,children:[N.jsx(rF,{label:"Chat input",afterLabel:N.jsx(ga,{content:K0t,relationship:"label",positioning:"after",children:N.jsx(ay,{tabIndex:0,style:{marginLeft:"4px"}})}),options:S,value:g,required:!0,errorMessage:g?void 0:"Required",onValueChange:T}),N.jsx(rF,{label:"Chat history",afterLabel:N.jsx(ga,{content:V0t,relationship:"label",positioning:"after",children:N.jsx(ay,{tabIndex:0,style:{marginLeft:"4px"}})}),options:_,value:y,onValueChange:I}),N.jsx(rF,{label:"Chat output",afterLabel:N.jsx(ga,{content:U0t,relationship:"label",positioning:"after",children:N.jsx(ay,{tabIndex:0,style:{marginLeft:"4px"}})}),options:b,value:v,required:!0,errorMessage:v?void 0:"Required",onValueChange:x}),N.jsx(Vy,{style:{marginTop:5}})]},"inputs-outputs"),N.jsx(Vy,{}),k.map(D=>N.jsx(P0t,{activeNodeName:e,variantName:D,showTestButton:Object.keys(c).length>0&&R,onPreviewInput:C},`${e}-${D}`))]},k[0]),N.jsx(C0t,{headerText:a!=null&&a.readOnly?"View full value":"Edit value",actionRef:n,readOnly:a==null?void 0:a.readOnly,saveButtonDisabled:!i,onClickSaveButton:u,children:N.jsx(q0t,{value:(a==null?void 0:a.value)??"",containerStyle:{height:"calc(100vh - 320px)"},editorRef:o,language:"json",readOnly:a==null?void 0:a.readOnly,onValidate:D=>{s(D.length===0)}})})]})},X0t=({children:e,selectedKey:t,reuse:r=!1,rootStyle:n,getChildStyle:o=()=>({})})=>{const i=r?re.Children.map(e,s=>{const a=o(s.key,t);return N.jsx("div",{style:{display:s.key===t?"block":"none",...a},children:s})}):e.filter(s=>s.key===t);return n?N.jsx("div",{style:n,children:i}):i},Q0t=()=>{const[e]=Vs(),t=P5();return re.useMemo(()=>{if(!(t!=null&&t.init)||no)return!1;switch(e){case At.Prompty:return!1;case At.Dag:case At.Flex:default:return!0}},[e,t==null?void 0:t.init])},oF={[Rn.OpenAI]:{valueType:Te.OpenAIConnection,lowerCaseType:"open_ai"},[Rn.AzureOpenAI]:{valueType:Te.AzureOpenAIConnection,lowerCaseType:"azure_open_ai"},[Rn.Serp]:{valueType:Te.SerpConnection,lowerCaseType:"serp"},[Rn.Bing]:{valueType:Te.BingConnection,lowerCaseType:"bing"},[Rn.AzureContentModerator]:{valueType:Te.AzureContentModeratorConnection,lowerCaseType:"azure_content_moderator"},[Rn.Custom]:{valueType:Te.CustomConnection,lowerCaseType:"custom"},[Rn.AzureContentSafety]:{valueType:Te.AzureContentSafetyConnection,lowerCaseType:"azure_content_safety"},[Rn.CognitiveSearch]:{valueType:Te.CognitiveSearchConnection,lowerCaseType:"cognitive_search"},[Rn.SubstrateLLM]:{valueType:Te.SubstrateLLMConnection,lowerCaseType:"substrate_llm"},[Rn.Pinecone]:{valueType:Te.PineconeConnection,lowerCaseType:"pinecone"},[Rn.Qdrant]:{valueType:Te.QdrantConnection,lowerCaseType:"qdrant"},[Rn.Weaviate]:{valueType:Te.WeaviateConnection,lowerCaseType:"weaviate"},[Rn.FormRecognizer]:{valueType:Te.FormRecognizerConnection,lowerCaseType:"form_recognizer"},[Rn.Serverless]:{valueType:Te.ServerlessConnection,lowerCaseType:"serverless"}},bme=e=>{const t=Object.keys(oF).find(r=>oF[r].valueType===e);if(t)return oF[t]},Z0t=e=>e?Te[e]?e:Te.object:Te.string,J0t=({value:e,valueType:t,onChange:r,onBlur:n})=>{const o=ms(),[i,s]=re.useState([]),a=re.useMemo(()=>{var g;const h=(g=bme(t))==null?void 0:g.lowerCaseType;return i.filter(v=>h===v.type).map(v=>v.name)},[i,t]),[l,u]=re.useState(e??""),c=re.useMemo(()=>a.filter(h=>l?h.toLowerCase().indexOf(l.toLowerCase())>=0:!0),[a,l]),f=h=>{const g=h.target.value.trim();u(g),r(g)},d=(h,g)=>{const v=g.optionText;v&&(u(v),r(v))};return re.useEffect(()=>{o.getConnections().then(h=>{s(h)}).catch(h=>{console.error(h)})},[]),N.jsx(gue,{freeform:!0,placeholder:"Select an animal",value:l,selectedOptions:e?[e]:[],onChange:f,onOptionSelect:d,onBlur:n,children:c.map(h=>N.jsx(VT,{children:h},h))})},egt=()=>{const e=vpt(),t=P5(),r=apt(),n=ms(),o=gme(Un,""),i=opt(o),[s,a]=re.useState(!1),l=Q0t(),u=()=>{a(!0)},c=()=>{n.updateCurrentFlowUxInputs()},f=e&&!!(t!=null&&t.init)&&Object.keys(t==null?void 0:t.init).some(E=>{var _;return((_=t==null?void 0:t.init)==null?void 0:_[E].default)===void 0&&((i==null?void 0:i[E])===void 0||(i==null?void 0:i[E])==="")});re.useEffect(()=>{f&&a(!0)},[f]);const d=tgt(),h=pme(),g="Global Settings",v=(t==null?void 0:t.init)??{},y=N.jsxs("div",{children:[N.jsx("div",{className:d.sectionTitle,children:"Flow init"}),N.jsx("div",{children:Object.keys(v).map(E=>{const _=v[E],S=i==null?void 0:i[E],b=zx(S),k=zx(_.default),T=!_.default,x=!1,I=Z0t(_.type),C=I?oH(I,b??k)?T&&!x&&(b===""||b===void 0)?"Required":void 0:"Input type is not valid":void 0,R=L=>{r(o,{[E]:dme(I,L)})},D=N.jsxs("span",{children:[N.jsxs("span",{style:{marginRight:"4px"},children:[E,":"]}),N.jsx("span",{style:{color:Pt.colorNeutralForeground4},children:I})]});return I&&bme(I)?N.jsx(yme,{label:D,required:T,errorMessage:C,element:N.jsx(J0t,{value:b,valueType:I,onChange:R,onBlur:c})},E):N.jsx(mme,{label:D,required:T,vKey:E,value:b,errorMessage:C,defaultValue:k,onChange:(L,M)=>R(M),onBlur:c},E)})})]});return l?N.jsxs(N.Fragment,{children:[N.jsx(Tn,{as:"button",appearance:"transparent",size:"medium",title:"Global Settings",icon:N.jsx(G3e,{}),onClick:u}),f&&N.jsx(KL,{appearance:"filled",color:"severe",size:"small",style:{position:"absolute",transform:"translate(-12px, 0px)"},children:"!"}),N.jsx(UT,{modalType:"alert",open:s,onOpenChange:(E,_)=>{a(_.open)},children:N.jsx(ZT,{className:h.surface,children:N.jsxs(XT,{children:[N.jsx(QT,{className:h.header,children:g}),N.jsx(JT,{className:h.content,children:y}),N.jsx(YT,{className:h.actions,children:N.jsx(_v,{disableButtonEnhancement:!0,children:N.jsx(Tn,{appearance:"secondary",children:"Close"})})})]})})})]}):N.jsx(N.Fragment,{})},tgt=_r({sectionTitle:{fontSize:"16px",fontWeight:"600",...Ye.margin("16px","0")}}),_me=()=>{const[e,t]=qve(),r=re.useCallback(()=>{t(!e)},[e,t]);return N.jsx(Tn,{as:"button",appearance:"transparent",size:"medium",title:"Toggle right panel",icon:e?N.jsx(q3e,{}):N.jsx(P3e,{}),onClick:r})},rgt=()=>{const[{selectedTab:e},t]=Vve(),r=_0t(),n=(i,s)=>{t({selectedTab:s.value})},o=ogt();return N.jsxs(re.Fragment,{children:[N.jsxs(yue,{style:{height:40},selectedValue:e,onTabSelect:n,children:[N.jsx(DB,{value:"Settings",children:"Settings"}),r&&N.jsx(DB,{value:"EvaluationConfig",children:"Experiment"})]}),N.jsx(X0t,{selectedKey:e,reuse:!0,rootStyle:{overflow:"auto",height:"calc(100% - 40px)"},getChildStyle:ngt,children:[N.jsx(Y0t,{},"Settings"),...r?[N.jsx(E0t,{},"EvaluationConfig")]:[]]}),N.jsxs("div",{className:o.actionButtons,children:[N.jsx(egt,{}),N.jsx(_me,{})]})]})},ngt=e=>{if(e==="EvaluationConfig")return{height:"100%"}},ogt=_r({actionButtons:{position:"absolute",top:0,right:0}}),igt=()=>{const{viewmodel:e}=Rl(),t=oo(e.locStrings$),r=Ype(t,e.calcContentForCopy);return re.useMemo(()=>[r],[r])},Ty="dummy-msg-id-loading",$M="dummy-msg-content-loading",sH=()=>{const[e]=$5(),t=HE(),r=eH(),n=Hve(),o=zve(),[i]=Vs(),s=It((c,f)=>{var d,h;if(i===At.Prompty){f(c);return}c===Un?f(Un):Object.keys(((h=(d=t==null?void 0:t.node_variants)==null?void 0:d[c])==null?void 0:h.variants)??{}).forEach(v=>{const y=`${c}.${v}`;f(y)})}),a=It((c,f)=>{var d,h;return i===At.Prompty?[f(c,void 0)]:c===Un?[f(Un,void 0)]:Object.keys(((h=(d=t==null?void 0:t.node_variants)==null?void 0:d[c])==null?void 0:h.variants)??{}).map(y=>{const E=`${c}.${y}`;return f(E,y)})}),l=It((c,f,d)=>{const h=Ri.v4();s(c,g=>{const v=[zM({id:h,errorMessage:f??"Unknown error",stackTrace:d})];n(g,Ty),r(g,v,!0),o(g,"stopped")})}),u=It(c=>{s(e,f=>{o(f,c)})});return{forEachChatItem:s,mapChatItem:a,addErrorMessageToChatGroup:l,setRunningStatusOfCurrentChatGroup:u}},sgt=()=>{const{flowInputDefinition:e}=B1(),t=Mve(),{chatInputName:r,chatHistoryName:n}=Au();return{validateFlow:i=>{const s=[],a=t(i);return Object.keys(e).forEach(l=>{const u=e[l];if(u.default===void 0&&!r&&!n&&((a==null?void 0:a[l])===void 0||(a==null?void 0:a[l])==="")){s.push(`Flow input "${l}" is required.`);return}const c=(a==null?void 0:a[l])??"";if(u.type&&!oH(u.type,c)){s.push(`Flow input type of "${l}" is not valid.`);return}}),s}}},aH=()=>{const[e]=$5(),[t]=Dve(),[r]=Vs();let n="",o="",i="";switch(r){case At.Prompty:n="",o=t,i=t;break;case At.Dag:case At.Flex:default:n=e!==Un?e:"",o=n||Un,i=e}return{chatSourceType:r,tuningNodeName:n,targetNodeName:o,targetChatGroupName:i}},Eme=()=>{const{targetChatGroupName:e}=aH(),{viewmodel:t}=Rl(),{validateFlow:r}=sgt(),{mapChatItem:n}=sH(),o=Ept(),i=Xve();return{customSendMessage:It(()=>{i(l=>l.type!=="submit_validation");const a=n(e,l=>r(l)).flat();a.length>0?o({type:"submit_validation",message:a.join(` -`),element:N.jsx(N.Fragment,{children:a.map((l,u)=>N.jsx("div",{children:l},u))})}):t.sendMessage()})}},agt=()=>{const{customSendMessage:e}=Eme(),t=Mht({title:"Send",onSend:e});return N.jsx(t,{})},lgt=()=>{const t="Upload",n=ms(),{chatInputName:o}=Au(),i=Pve(o),{viewmodel:s}=Rl(),a=oo(s.disabled$),l=oo(s.isOthersTyping$),u=re.useRef(null),[c,f]=re.useState(!1),[d,h]=re.useState(void 0);Upe();const g=a||!1||!i||l,v=ugt(),y=N.jsx(Pae,{}),E=N.jsx(Tn,{as:"button",appearance:"transparent",size:"medium",title:i?t:"The Update button is only available when the chat input type is list",className:void 0,icon:y,disabled:g}),_=cz(async S=>{var b,k,T,x,I,C,R,D;try{if(h(void 0),typeof S=="string"){(k=(b=s.editorRef)==null?void 0:b.current)==null||k.insert([{type:xr.IMAGE,src:S,alt:S}]),(T=u.current)==null||T.close(),(x=u.current)==null||x.reset();return}f(!0);const L=await n.uploadFile(S);(C=(I=s.editorRef)==null?void 0:I.current)==null||C.insert([{type:xr.IMAGE,src:L,alt:L}]),(R=u.current)==null||R.close(),(D=u.current)==null||D.reset()}catch(L){h((L==null?void 0:L.message)??"Unknown error")}finally{f(!1)}});return N.jsx("div",{className:v.action,children:N.jsx(Jpe,{ref:u,trigger:E,isUploading:c,errorMessage:d,onUpload:_})})},ugt=_r({action:{}}),cgt=()=>N.jsx(Vy,{vertical:!0,style:{height:"20px",marginTop:"6px"}}),fgt=()=>{const[e]=Vs();return A.useMemo(()=>[...e===At.Dag||e===At.Flex?[lgt,cgt]:[],agt],[e])},Sme=e=>{const t=HE(),[r]=Vs(),{variantNames:n,defaultVariantName:o}=A.useMemo(()=>{var i,s,a,l;if(r===At.Prompty)return{variantNames:[],defaultVariantName:void 0};if(e!==Un){const u=((s=(i=t==null?void 0:t.node_variants)==null?void 0:i[e])==null?void 0:s.variants)??{};return{defaultVariantName:(l=(a=t==null?void 0:t.node_variants)==null?void 0:a[e])==null?void 0:l.default_variant_id,variantNames:Object.keys(u)}}return{variantNames:[],defaultVariantName:void 0}},[e,r,t==null?void 0:t.node_variants]);return{variantNames:n,defaultVariantName:o}},dgt=()=>{const[e]=$5(),{variantNames:t}=Sme(e),r=Ks("combo-ChatMessageVariantSelector"),n=[xh,...t],[o,i]=ept(),s=hgt(),a=(l,u)=>{const c=l.includes(u)?"add":"remove";if(u&&c==="add"){i(u===xh?[xh]:l.filter(f=>f!==xh));return}i(l)};return e===Un?null:N.jsxs("div",{className:s.root,children:[N.jsx("label",{id:r,style:{marginRight:"12px"},children:"Variant:"}),N.jsx(n7,{defaultValue:o.join(","),selectedOptions:o,"aria-labelledby":r,multiselect:!0,placeholder:"Select variants to filter messages",onOptionSelect:(l,u)=>{a(u.selectedOptions,u.optionValue??"")},children:n.map(l=>N.jsx(VT,{value:l,children:l},l))})]})},hgt=_r({root:{display:"flex",alignItems:"center",...Ye.gap("2px"),maxWidth:"400px"}}),pgt=()=>{const[e]=Vs();return re.useCallback((t,r,n="",o="")=>{switch(e){case At.Prompty:return[{[BK]:HB.User,[MK]:t},{[BK]:HB.Assistant,[MK]:r}];case At.Dag:case At.Flex:default:return[{inputs:{[n]:t},outputs:{[o]:r}}]}},[e])},ggt=e=>{const t={};return e&&Object.keys(e).forEach(r=>{const n=e[r];t[r]=n.default}),t},vgt=()=>{const{viewmodel:e}=Rl(),t=oo(e.isOthersTyping$),{tuningNodeName:r,targetNodeName:n,targetChatGroupName:o}=aH(),[i]=Ol(),{variantNames:s}=Sme(o),a=gpt(),l=hpt(o,s),u=Bve(),c=Mve(),f=zE(),d=lpt(),h=Lve(),g=jve(),v=cpt(),y=fpt(),E=ppt(),_=zve(),S=Kve(),b=eH(),k=Hve(),[T,x]=Fve(),{flowInputDefinition:I,messageFormat:C}=B1(),R=pgt(),{forEachChatItem:D,mapChatItem:L,addErrorMessageToChatGroup:M,setRunningStatusOfCurrentChatGroup:W}=sH(),z=ms(),{chatInputName:F,chatOutputName:P,chatHistoryName:K}=Au(),V=Pve(F),Z=Gve(),J=A.useCallback(()=>{setTimeout(()=>{var ve,Ee;(Ee=(ve=e.editorRef)==null?void 0:ve.current)==null||Ee.focus()},100)},[e.editorRef]),ee=ve=>ve.map(me=>`${me.name??""} flow output: +If you don’t specify chat_history, each test is a new conversation without any memory.`,rgt="You need to select an input as chat_output, which will be displayed in the chat window on left side.",ngt=()=>{const[e]=$5(),t=$E(),{flowInputsMap$:r}=Ct(),n=re.useRef(),o=re.useRef(),[i,s]=re.useState(!0),{drawerState:a,setDrawerState:l,onSaveDrawer:u}=R0t(n,o),{flowInputDefinition:c,flowOutputDefinition:f}=M1(),d=ms(),h=Au(),{chatInputName:g,chatOutputName:v,chatHistoryName:y}=h,[E]=Vs(),_=re.useMemo(()=>O0t(c,h),[c,h]),S=re.useMemo(()=>yme(c,h),[c,h]),b=re.useMemo(()=>D0t(f),[f]),k=re.useMemo(()=>{var L,M;if(e===Yn)return[Yn];if(E===At.Prompty)return[];const D=((M=(L=t==null?void 0:t.node_variants)==null?void 0:L[e])==null?void 0:M.variants)??{};return Object.keys(D)},[e,E,t==null?void 0:t.node_variants]),T=It(D=>{g!==D&&d.setFlowChatConfig({chatInputName:D})}),x=It(D=>{v!==D&&d.setFlowChatConfig({chatOutputName:D})}),I=It(D=>{y!==D&&d.setFlowChatConfig({chatHistoryName:D})}),C=re.useCallback((D,L,M)=>{var Z,J;const W=M===Te.list?[]:{},z=((Z=r.get(D))==null?void 0:Z[L])??W,F=N0t(z),V=L===y||L===g;s(!0),l({value:F,chatItemName:D,key:L,valueType:M,readOnly:V}),(J=n.current)==null||J.open()},[y,g,r,l]),R=S.length===0||S.every(D=>D.disabled);return N.jsxs(re.Fragment,{children:[N.jsxs(KL,{multiple:!0,collapsible:!0,defaultOpenItems:[...R?[]:[nF],k[0]],children:[N.jsx(Vy,{style:{marginTop:"12px"}}),N.jsxs(Qk,{title:N.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},children:[nF,N.jsx(ga,{content:J0t,relationship:"label",positioning:"after",children:N.jsx(ay,{tabIndex:0,style:{marginLeft:"4px"}})})]}),value:nF,children:[N.jsx(rF,{label:"Chat input",afterLabel:N.jsx(ga,{content:egt,relationship:"label",positioning:"after",children:N.jsx(ay,{tabIndex:0,style:{marginLeft:"4px"}})}),options:S,value:g,required:!0,errorMessage:g?void 0:"Required",onValueChange:T}),N.jsx(rF,{label:"Chat history",afterLabel:N.jsx(ga,{content:tgt,relationship:"label",positioning:"after",children:N.jsx(ay,{tabIndex:0,style:{marginLeft:"4px"}})}),options:_,value:y,onValueChange:I}),N.jsx(rF,{label:"Chat output",afterLabel:N.jsx(ga,{content:rgt,relationship:"label",positioning:"after",children:N.jsx(ay,{tabIndex:0,style:{marginLeft:"4px"}})}),options:b,value:v,required:!0,errorMessage:v?void 0:"Required",onValueChange:x}),N.jsx(Vy,{style:{marginTop:5}})]},"inputs-outputs"),N.jsx(Vy,{}),k.map(D=>N.jsx(X0t,{activeNodeName:e,variantName:D,showTestButton:Object.keys(c).length>0&&R,onPreviewInput:C},`${e}-${D}`))]},k[0]),N.jsx(L0t,{headerText:a!=null&&a.readOnly?"View full value":"Edit value",actionRef:n,readOnly:a==null?void 0:a.readOnly,saveButtonDisabled:!i,onClickSaveButton:u,children:N.jsx(Q0t,{value:(a==null?void 0:a.value)??"",containerStyle:{height:"calc(100vh - 320px)"},editorRef:o,language:"json",readOnly:a==null?void 0:a.readOnly,onValidate:D=>{s(D.length===0)}})})]})},ogt=({children:e,selectedKey:t,reuse:r=!1,rootStyle:n,getChildStyle:o=()=>({})})=>{const i=r?re.Children.map(e,s=>{const a=o(s.key,t);return N.jsx("div",{style:{display:s.key===t?"block":"none",...a},children:s})}):e.filter(s=>s.key===t);return n?N.jsx("div",{style:n,children:i}):i},igt=()=>{const[e]=Vs(),t=P5();return re.useMemo(()=>{if(!(t!=null&&t.init)||Un)return!1;switch(e){case At.Prompty:return!1;case At.Dag:case At.Flex:default:return!0}},[e,t==null?void 0:t.init])},oF={[Rn.OpenAI]:{valueType:Te.OpenAIConnection,lowerCaseType:"open_ai"},[Rn.AzureOpenAI]:{valueType:Te.AzureOpenAIConnection,lowerCaseType:"azure_open_ai"},[Rn.Serp]:{valueType:Te.SerpConnection,lowerCaseType:"serp"},[Rn.Bing]:{valueType:Te.BingConnection,lowerCaseType:"bing"},[Rn.AzureContentModerator]:{valueType:Te.AzureContentModeratorConnection,lowerCaseType:"azure_content_moderator"},[Rn.Custom]:{valueType:Te.CustomConnection,lowerCaseType:"custom"},[Rn.AzureContentSafety]:{valueType:Te.AzureContentSafetyConnection,lowerCaseType:"azure_content_safety"},[Rn.CognitiveSearch]:{valueType:Te.CognitiveSearchConnection,lowerCaseType:"cognitive_search"},[Rn.SubstrateLLM]:{valueType:Te.SubstrateLLMConnection,lowerCaseType:"substrate_llm"},[Rn.Pinecone]:{valueType:Te.PineconeConnection,lowerCaseType:"pinecone"},[Rn.Qdrant]:{valueType:Te.QdrantConnection,lowerCaseType:"qdrant"},[Rn.Weaviate]:{valueType:Te.WeaviateConnection,lowerCaseType:"weaviate"},[Rn.FormRecognizer]:{valueType:Te.FormRecognizerConnection,lowerCaseType:"form_recognizer"},[Rn.Serverless]:{valueType:Te.ServerlessConnection,lowerCaseType:"serverless"}},kme=e=>{const t=Object.keys(oF).find(r=>oF[r].valueType===e);if(t)return oF[t]},sgt=e=>e?Te[e]?e:Te.object:Te.string,agt=({value:e,valueType:t,onChange:r,onBlur:n})=>{const o=ms(),[i,s]=re.useState([]),a=re.useMemo(()=>{var g;const h=(g=kme(t))==null?void 0:g.lowerCaseType;return i.filter(v=>h===v.type).map(v=>v.name)},[i,t]),[l,u]=re.useState(e??""),c=re.useMemo(()=>a,[a]),f=h=>{const g=h.target.value.trim();u(g),r(g)},d=(h,g)=>{const v=g.optionText;v&&(u(v),r(v))};return re.useEffect(()=>{o.getConnections().then(h=>{s(h)}).catch(h=>{console.error(h)})},[]),N.jsx(vue,{freeform:!0,value:l,selectedOptions:e?[e]:[],onChange:f,onOptionSelect:d,onBlur:n,children:c.map(h=>N.jsx(UT,{children:h},h))})},lgt=()=>{const e=wpt(),t=P5(),r=ppt(),n=ms(),o=_me(Yn,""),i=fpt(o),[s,a]=re.useState(!1),l=igt(),u=()=>{a(!0)},c=()=>{n.updateCurrentFlowUxInputs()},f=e&&!!(t!=null&&t.init)&&Object.keys(t==null?void 0:t.init).some(E=>{var _;return((_=t==null?void 0:t.init)==null?void 0:_[E].default)===void 0&&((i==null?void 0:i[E])===void 0||(i==null?void 0:i[E])==="")});re.useEffect(()=>{f&&a(!0)},[f]);const d=ugt(),h=bme(),g="Global Settings",v=(t==null?void 0:t.init)??{},y=N.jsxs("div",{children:[N.jsx("div",{className:d.sectionTitle,children:"Flow init"}),N.jsx("div",{children:Object.keys(v).map(E=>{const _=v[E],S=i==null?void 0:i[E],b=Hx(S),k=Hx(_.default),T=!_.default,x=!1,I=sgt(_.type),C=I?iH(I,b??k)?T&&!x&&(b===""||b===void 0)?"Required":void 0:"Input type is not valid":void 0,R=L=>{r(o,{[E]:mme(I,L)})},D=N.jsxs("span",{children:[N.jsxs("span",{style:{marginRight:"4px"},children:[E,":"]}),N.jsx("span",{style:{color:Pt.colorNeutralForeground4},children:I})]});return I&&kme(I)?N.jsx(wme,{label:D,required:T,errorMessage:C,element:N.jsx(agt,{value:b,valueType:I,onChange:R,onBlur:c})},E):N.jsx(Sme,{label:D,required:T,vKey:E,value:b,errorMessage:C,defaultValue:k,onChange:(L,M)=>R(M),onBlur:c},E)})})]});return l?N.jsxs(N.Fragment,{children:[N.jsx(Tn,{as:"button",appearance:"transparent",size:"medium",title:"Global Settings",icon:N.jsx(X3e,{}),onClick:u}),f&&N.jsx(VL,{appearance:"filled",color:"severe",size:"small",style:{position:"absolute",transform:"translate(-12px, 0px)"},children:"!"}),N.jsx(YT,{modalType:"alert",open:s,onOpenChange:(E,_)=>{a(_.open)},children:N.jsx(JT,{className:h.surface,children:N.jsxs(QT,{children:[N.jsx(ZT,{className:h.header,children:g}),N.jsx(e9,{className:h.content,children:y}),N.jsx(XT,{className:h.actions,children:N.jsx(_v,{disableButtonEnhancement:!0,children:N.jsx(Tn,{appearance:"secondary",children:"Close"})})})]})})})]}):N.jsx(N.Fragment,{})},ugt=vr({sectionTitle:{fontSize:"16px",fontWeight:"600",...Xe.margin("16px","0")}}),Ame=()=>{const[e,t]=Vve(),r=re.useCallback(()=>{t(!e)},[e,t]);return N.jsx(Tn,{as:"button",appearance:"transparent",size:"medium",title:"Toggle right panel",icon:e?N.jsx(U3e,{}):N.jsx(V3e,{}),onClick:r})},cgt=()=>{const[{selectedTab:e},t]=Zve(),r=x0t(),n=(i,s)=>{t({selectedTab:s.value})},o=dgt();return N.jsxs(re.Fragment,{children:[N.jsxs(bue,{style:{height:40},selectedValue:e,onTabSelect:n,children:[N.jsx(FB,{value:"Settings",children:"Settings"}),r&&N.jsx(FB,{value:"EvaluationConfig",children:"Experiment"})]}),N.jsx(ogt,{selectedKey:e,reuse:!0,rootStyle:{overflow:"auto",height:"calc(100% - 40px)"},getChildStyle:fgt,children:[N.jsx(ngt,{},"Settings"),...r?[N.jsx(T0t,{},"EvaluationConfig")]:[]]}),N.jsxs("div",{className:o.actionButtons,children:[N.jsx(lgt,{}),N.jsx(Ame,{})]})]})},fgt=e=>{if(e==="EvaluationConfig")return{height:"100%"}},dgt=vr({actionButtons:{position:"absolute",top:0,right:0}}),hgt=()=>{const{viewmodel:e}=Ol(),t=oo(e.locStrings$),r=Xpe(t,e.calcContentForCopy);return re.useMemo(()=>[r],[r])},Ty="dummy-msg-id-loading",PM="dummy-msg-content-loading",aH=()=>{const[e]=$5(),t=$E(),r=tH(),n=Wve(),o=qve(),[i]=Vs(),s=It((c,f)=>{var d,h;if(i===At.Prompty){f(c);return}c===Yn?f(Yn):Object.keys(((h=(d=t==null?void 0:t.node_variants)==null?void 0:d[c])==null?void 0:h.variants)??{}).forEach(v=>{const y=`${c}.${v}`;f(y)})}),a=It((c,f)=>{var d,h;return i===At.Prompty?[f(c,void 0)]:c===Yn?[f(Yn,void 0)]:Object.keys(((h=(d=t==null?void 0:t.node_variants)==null?void 0:d[c])==null?void 0:h.variants)??{}).map(y=>{const E=`${c}.${y}`;return f(E,y)})}),l=It((c,f,d)=>{const h=Ni.v4();s(c,g=>{const v=[HM({id:h,errorMessage:f??"Unknown error",stackTrace:d})];n(g,Ty),r(g,v,!0),o(g,"stopped")})}),u=It(c=>{s(e,f=>{o(f,c)})});return{forEachChatItem:s,mapChatItem:a,addErrorMessageToChatGroup:l,setRunningStatusOfCurrentChatGroup:u}},pgt=()=>{const{flowInputDefinition:e}=M1(),t=Hve(),{chatInputName:r,chatHistoryName:n}=Au();return{validateFlow:i=>{const s=[],a=t(i);return Object.keys(e).forEach(l=>{const u=e[l];if(u.default===void 0&&!r&&!n&&((a==null?void 0:a[l])===void 0||(a==null?void 0:a[l])==="")){s.push(`Flow input "${l}" is required.`);return}const c=(a==null?void 0:a[l])??"";if(u.type&&!iH(u.type,c)){s.push(`Flow input type of "${l}" is not valid.`);return}}),s}}},lH=()=>{const[e]=$5(),[t]=Lve(),[r]=Vs();let n="",o="",i="";switch(r){case At.Prompty:n="",o=t,i=t;break;case At.Dag:case At.Flex:default:n=e!==Yn?e:"",o=n||Yn,i=e}return{chatSourceType:r,tuningNodeName:n,targetNodeName:o,targetChatGroupName:i}},xme=()=>{const{targetChatGroupName:e}=lH(),{viewmodel:t}=Ol(),{validateFlow:r}=pgt(),{mapChatItem:n}=aH(),o=Tpt(),i=tme();return{customSendMessage:It(()=>{i(l=>l.type!=="submit_validation");const a=n(e,l=>r(l)).flat();a.length>0?o({type:"submit_validation",message:a.join(` +`),element:N.jsx(N.Fragment,{children:a.map((l,u)=>N.jsx("div",{children:l},u))})}):t.sendMessage()})}},ggt=()=>{const{customSendMessage:e}=xme(),t=Hht({title:"Send",onSend:e});return N.jsx(t,{})},vgt=()=>{const t="Upload",n=ms(),{chatInputName:o}=Au(),i=Kve(o),{viewmodel:s}=Ol(),a=oo(s.disabled$),l=oo(s.isOthersTyping$),u=re.useRef(null),[c,f]=re.useState(!1),[d,h]=re.useState(void 0);Ype();const g=a||!1||!i||l,v=mgt(),y=N.jsx(qae,{}),E=N.jsx(Tn,{as:"button",appearance:"transparent",size:"medium",title:i?t:"The Update button is only available when the chat input type is list",className:void 0,icon:y,disabled:g}),_=fz(async S=>{var b,k,T,x,I,C,R,D;try{if(h(void 0),typeof S=="string"){(k=(b=s.editorRef)==null?void 0:b.current)==null||k.insert([{type:dr.IMAGE,src:S,alt:S}]),(T=u.current)==null||T.close(),(x=u.current)==null||x.reset();return}f(!0);const L=await n.uploadFile(S);(C=(I=s.editorRef)==null?void 0:I.current)==null||C.insert([{type:dr.IMAGE,src:L,alt:L}]),(R=u.current)==null||R.close(),(D=u.current)==null||D.reset()}catch(L){h((L==null?void 0:L.message)??"Unknown error")}finally{f(!1)}});return N.jsx("div",{className:v.action,children:N.jsx(e0e,{ref:u,trigger:E,isUploading:c,errorMessage:d,onUpload:_})})},mgt=vr({action:{}}),ygt=()=>N.jsx(Vy,{vertical:!0,style:{height:"20px",marginTop:"6px"}}),bgt=()=>{const[e]=Vs();return A.useMemo(()=>[...e===At.Dag||e===At.Flex?[vgt,ygt]:[],ggt],[e])},Tme=e=>{const t=$E(),[r]=Vs(),{variantNames:n,defaultVariantName:o}=A.useMemo(()=>{var i,s,a,l;if(r===At.Prompty)return{variantNames:[],defaultVariantName:void 0};if(e!==Yn){const u=((s=(i=t==null?void 0:t.node_variants)==null?void 0:i[e])==null?void 0:s.variants)??{};return{defaultVariantName:(l=(a=t==null?void 0:t.node_variants)==null?void 0:a[e])==null?void 0:l.default_variant_id,variantNames:Object.keys(u)}}return{variantNames:[],defaultVariantName:void 0}},[e,r,t==null?void 0:t.node_variants]);return{variantNames:n,defaultVariantName:o}},_gt=()=>{const[e]=$5(),{variantNames:t}=Tme(e),r=Ks("combo-ChatMessageVariantSelector"),n=[Th,...t],[o,i]=apt(),s=Egt(),a=(l,u)=>{const c=l.includes(u)?"add":"remove";if(u&&c==="add"){i(u===Th?[Th]:l.filter(f=>f!==Th));return}i(l)};return e===Yn?null:N.jsxs("div",{className:s.root,children:[N.jsx("label",{id:r,style:{marginRight:"12px"},children:"Variant:"}),N.jsx(o7,{defaultValue:o.join(","),selectedOptions:o,"aria-labelledby":r,multiselect:!0,placeholder:"Select variants to filter messages",onOptionSelect:(l,u)=>{a(u.selectedOptions,u.optionValue??"")},children:n.map(l=>N.jsx(UT,{value:l,children:l},l))})]})},Egt=vr({root:{display:"flex",alignItems:"center",...Xe.gap("2px"),maxWidth:"400px"}}),Sgt=()=>{const[e]=Vs();return re.useCallback((t,r,n="",o="")=>{switch(e){case At.Prompty:return[{[MK]:$B.User,[LK]:t},{[MK]:$B.Assistant,[LK]:r}];case At.Dag:case At.Flex:default:return[{inputs:{[n]:t},outputs:{[o]:r}}]}},[e])},wgt=e=>{const t={};return e&&Object.keys(e).forEach(r=>{const n=e[r];t[r]=n.default}),t},kgt=()=>{const{viewmodel:e}=Ol(),t=oo(e.isOthersTyping$),{tuningNodeName:r,targetNodeName:n,targetChatGroupName:o}=lH(),[i]=ja(),{variantNames:s}=Tme(o),a=Spt(),l=_pt(o,s),u=zve(),c=Hve(),f=HE(),d=gpt(),h=$ve(),g=Pve(),v=mpt(),y=ypt(),E=Ept(),_=qve(),S=Qve(),b=tH(),k=Wve(),[T,x]=jve(),{flowInputDefinition:I,messageFormat:C}=M1(),R=Sgt(),{forEachChatItem:D,mapChatItem:L,addErrorMessageToChatGroup:M,setRunningStatusOfCurrentChatGroup:W}=aH(),z=ms(),{chatInputName:F,chatOutputName:P,chatHistoryName:K}=Au(),V=Kve(F),Z=Xve(),J=A.useCallback(()=>{setTimeout(()=>{var ve,Ee;(Ee=(ve=e.editorRef)==null?void 0:ve.current)==null||Ee.focus()},100)},[e.editorRef]),ee=ve=>ve.map(me=>`${me.name??""} flow output: \`\`\`json ${JSON.stringify(me.output??{},null,2)} \`\`\` `).join(` -`),de=It(async ve=>{var Ee,me,we,Ge,nt,Qe,Ze,Fe,ot;try{let Me=a.get(o);Me||(Me=Ri.v4(),a.set(o,Me));const{flowRunResult:_t,logs:qt}=await z.flowTest({sessionId:Me,tuningNodeName:r,batchRequest:L(o,(ut,xe)=>{const Ve=Ri.v4();return b(ut,[ek({id:Ty,content:$M,extra:{session_id:Me,root_run_id:Ve},from:"system"})],!0),{variantName:xe,rootRunId:Ve,flowInputs:{...c(ut),[F]:ve},flowInit:u(ut)}})}),Nt=Ri.v4();if(no||Z(n,[{stdout:qt}]),(Ee=_t==null?void 0:_t.flow_runs)!=null&&Ee.length&&i){const ut=[];(me=_t==null?void 0:_t.flow_runs)==null||me.forEach(xe=>{var Oe,je,ke,Ie;const Ve=n+(xe!=null&&xe.variant_id?`.${xe==null?void 0:xe.variant_id}`:""),Xt=!!(xe!=null&&xe.error),he=xe==null?void 0:xe.output_path,le=Qht(((Oe=xe==null?void 0:xe.output)==null?void 0:Oe[P])??"",he,S_),se=Xt?[zM({id:Nt,errorMessage:((je=xe==null?void 0:xe.error)==null?void 0:je.message)??"",stackTrace:(Ie=(ke=xe==null?void 0:xe.error)==null?void 0:ke.debugInfo)==null?void 0:Ie.stackTrace})]:[ek({id:Nt,content:le,extra:no?void 0:{root_run_id:xe.root_run_id,session_id:Me},from:xe==null?void 0:xe.variant_id})],pe={...c(Ve)};if(K&&!Xt){const $e=R(ve,le,F,P),lt=(pe[K]??[]).concat([...$e]).slice(-10);pe[K]=lt}ut.push({chatItemName:Ve,inputs:pe}),f(Ve,pe),h(Ve,(xe==null?void 0:xe.output)??{}),g(Ve,he),y(Ve,(xe==null?void 0:xe.root_run_id)??""),k(Ve,Ty),b(Ve,se),_(Ve,"stopped")}),S(n,vme(((we=_t==null?void 0:_t.flow_runs)==null?void 0:we[0].system_metrics)||{})),z.updateCurrentFlowUxInputs()}return}catch(Me){M(n,((Qe=(nt=(Ge=Me.response)==null?void 0:Ge.data)==null?void 0:nt.error)==null?void 0:Qe.message)??Me.message,(ot=(Fe=(Ze=Me.response)==null?void 0:Ze.data)==null?void 0:Fe.error)==null?void 0:ot.inner_exception);return}finally{J()}}),ge=It(async ve=>{var Ee,me,we,Ge,nt,Qe;try{const Ze=Nt=>{const ut={...Nt};return ve&&(ut[F]=ve),ut};let Fe=a.get(o);Fe||(Fe=Ri.v4(),a.set(o,Fe));const ot=ggt(I),{batchResponse:Me}=await z.flowEvaluate({sessionId:Fe,experimentPath:"./flow.exp.yaml",mainFlowConfig:{tuningNodeName:r,batchRequest:L(o,(Nt,ut)=>{const xe=Ri.v4();return b(Nt,[ek({id:Ty,content:$M,extra:no?void 0:{session_id:Fe,root_run_id:xe},from:"system"})],!0),{variantName:ut,rootRunId:xe,flowInit:u(Nt),flowInputs:Ze({...ot,...c(Nt)}),flowOutputs:ve?void 0:d(Nt),lastRunId:ve?void 0:v(Nt)}})}}),_t=Ri.v4(),qt=[];Me==null||Me.forEach(Nt=>{const{variantName:ut,result:xe,errorMessage:Ve}=Nt,Xt=n+(ut?`.${ut}`:""),le=!!Ve?[zM({id:_t,errorMessage:`Eval error: +`),de=It(async ve=>{var Ee,me,we,Ge,nt,Qe,Ze,Fe,ot;try{let Me=a.get(o);Me||(Me=Ni.v4(),a.set(o,Me));const{flowRunResult:_t,logs:qt}=await z.flowTest({sessionId:Me,tuningNodeName:r,batchRequest:L(o,(ut,xe)=>{const Ue=Ni.v4();return b(ut,[tk({id:Ty,content:PM,extra:{session_id:Me,root_run_id:Ue},from:"system"})],!0),{variantName:xe,rootRunId:Ue,flowInputs:{...c(ut),[F]:ve},flowInit:u(ut)}})}),Nt=Ni.v4();if(Un||Z(n,[{stdout:qt}]),(Ee=_t==null?void 0:_t.flow_runs)!=null&&Ee.length&&i){const ut=[];(me=_t==null?void 0:_t.flow_runs)==null||me.forEach(xe=>{var Oe,je,ke,Ie;const Ue=n+(xe!=null&&xe.variant_id?`.${xe==null?void 0:xe.variant_id}`:""),Xt=!!(xe!=null&&xe.error),he=xe==null?void 0:xe.output_path,le=opt(((Oe=xe==null?void 0:xe.output)==null?void 0:Oe[P])??"",he,S_),se=Xt?[HM({id:Nt,errorMessage:((je=xe==null?void 0:xe.error)==null?void 0:je.message)??"",stackTrace:(Ie=(ke=xe==null?void 0:xe.error)==null?void 0:ke.debugInfo)==null?void 0:Ie.stackTrace})]:[tk({id:Nt,content:le,extra:Un?void 0:{root_run_id:xe.root_run_id,session_id:Me},from:xe==null?void 0:xe.variant_id})],pe={...c(Ue)};if(K&&!Xt){const $e=R(ve,le,F,P),lt=(pe[K]??[]).concat([...$e]).slice(-10);pe[K]=lt}ut.push({chatItemName:Ue,inputs:pe}),f(Ue,pe),h(Ue,(xe==null?void 0:xe.output)??{}),g(Ue,he),y(Ue,(xe==null?void 0:xe.root_run_id)??""),k(Ue,Ty),b(Ue,se),_(Ue,"stopped")}),S(n,Eme(((we=_t==null?void 0:_t.flow_runs)==null?void 0:we[0].system_metrics)||{})),z.updateCurrentFlowUxInputs()}return}catch(Me){M(n,((Qe=(nt=(Ge=Me.response)==null?void 0:Ge.data)==null?void 0:nt.error)==null?void 0:Qe.message)??Me.message,(ot=(Fe=(Ze=Me.response)==null?void 0:Ze.data)==null?void 0:Fe.error)==null?void 0:ot.inner_exception);return}finally{J()}}),ge=It(async ve=>{var Ee,me,we,Ge,nt,Qe;try{const Ze=Nt=>{const ut={...Nt};return ve&&(ut[F]=ve),ut};let Fe=a.get(o);Fe||(Fe=Ni.v4(),a.set(o,Fe));const ot=wgt(I),{batchResponse:Me}=await z.flowEvaluate({sessionId:Fe,experimentPath:"./flow.exp.yaml",mainFlowConfig:{tuningNodeName:r,batchRequest:L(o,(Nt,ut)=>{const xe=Ni.v4();return b(Nt,[tk({id:Ty,content:PM,extra:Un?void 0:{session_id:Fe,root_run_id:xe},from:"system"})],!0),{variantName:ut,rootRunId:xe,flowInit:u(Nt),flowInputs:Ze({...ot,...c(Nt)}),flowOutputs:ve?void 0:d(Nt),lastRunId:ve?void 0:v(Nt)}})}}),_t=Ni.v4(),qt=[];Me==null||Me.forEach(Nt=>{const{variantName:ut,result:xe,errorMessage:Ue}=Nt,Xt=n+(ut?`.${ut}`:""),le=!!Ue?[HM({id:_t,errorMessage:`Eval error: -${Ve??"Unknown error"}`})]:[ek({id:_t,content:ee(xe??[]),extra:no?void 0:{session_id:Fe,root_run_id:xe==null?void 0:xe[0].rootRunId},from:ut})];qt.push({chatItemName:Xt,flowHistoryItems:le}),k(Xt,Ty),b(Xt,le,!0),_(Xt,"stopped")}),qt.length===0&&M(n,"No eval output");return}catch(Ze){M(n,((we=(me=(Ee=Ze.response)==null?void 0:Ee.data)==null?void 0:me.error)==null?void 0:we.message)??Ze.message,(Qe=(nt=(Ge=Ze.response)==null?void 0:Ge.data)==null?void 0:nt.error)==null?void 0:Qe.inner_exception);return}finally{J()}}),Se=A.useCallback(async(ve,Ee,me)=>{const we=MM(ve),Ge=C==="openai-vision"?jM(ve):LM(ve),nt=(Ze,Fe)=>{const ot=[me];if(!K&&Fe){const Me=e.sessionSplit();ot.unshift(Me)}D(o,Me=>{b(Me,ot,Ze)}),W("running")};if(we.trim()==="/eval_last"){if(nt(!0,!1),o!==Un){M(o,"Evaluations are not currently supported on variants."),W("stopped");return}return ge()}if(we.trim()==="/eval"||we.trim().startsWith("/eval ")||we.trim().startsWith(`/eval -`)){const Ze=we.trim().match(/^\/eval\s+(.*)/m),Fe=Ze==null?void 0:Ze[1];let ot;if(Fe&&(ot=V?(C==="openai-vision"?Yht:Uht)(ve):Fe),nt(!0,!0),o!==Un){M(o,"Evaluations are not currently supported on variants."),W("stopped");return}return ge(ot)}nt(!1,!0);const Qe={[F]:V?Ge:we};return D(o,Ze=>{f(Ze,Qe)}),z.updateCurrentFlowUxInputs(),de(V?Ge:we)},[M,b,z,K,F,D,ge,de,V,C,f,W,o,e]),Re=A.useCallback(ve=>{const Ee=ve.content,me=MM(Ee),we=C==="openai-vision"?jM(Ee):LM(Ee);return V?JSON.stringify(we):me},[V,C]);return A.useEffect(()=>{K&&D(o,ve=>{var me;const Ee=c(ve)[K]??((me=I[K])==null?void 0:me.default);if(!Array.isArray(Ee)){if(typeof Ee=="string")try{const we=JSON.parse(Ee);if(Array.isArray(we)){f(ve,{[K]:we});return}}catch{}f(ve,{[K]:[]})}})},[K,I,D,c,f,o]),A.useEffect(()=>{e.setSendMessage(Se)},[Se,e]),A.useEffect(()=>{e.setCalcContentForCopy(Re)},[Re,e]),A.useEffect(()=>{e.alias$.next("User")},[e.alias$]),A.useEffect(()=>{e.disabled$.next(!F||!P)},[F,P,e.disabled$]),A.useEffect(()=>{e.messages$.next(l),e.isOthersTyping$.next(!!E.find((ve,Ee)=>(Ee===o||Ee.startsWith(`${o}.`))&&ve==="running"))},[l,E,o,e.isOthersTyping$,e.messages$]),A.useEffect(()=>{x(t)},[t,x]),N.jsx(N.Fragment,{})},mgt=()=>{const e=zE(),t=eH(),r=ms(),{chatInputName:n,chatOutputName:o,chatHistoryName:i}=Au(),{viewmodel:s}=Rl(),l=oo(s.isOthersTyping$)||!n||!o,{forEachChatItem:u}=sH(),{targetChatGroupName:c}=aH(),f=re.useCallback(()=>{const d=s.sessionSplit();u(c,h=>{e(h,i?{[i]:[]}:{}),t(h,[d])}),r.updateCurrentFlowUxInputs()},[t,r,i,u,e,c,s]);return N.jsx("div",{style:{marginRight:"8px"},children:N.jsx(ga,{content:"Click to start a new session",relationship:"label",positioning:"above",children:N.jsx(Tn,{as:"button",shape:"circular",size:"medium",icon:N.jsx(B3e,{}),disabled:l,onClick:f})})})},wme=e=>{const{viewmodel:t}=Rl(),r=oo(t.disabled$),n=ygt(),o=Xe(e.className,r?n.disabled:void 0);return N.jsx(hz,{...e,className:o})};wme.displayName="MessageInputRenderer";const ygt=_r({disabled:{backgroundColor:Pt.colorNeutralBackground3}}),k_="blockquote",$x="break",rp="code",A_="definition",Px="delete",kme="emphasis",np="heading",x_="html";var sre;(function(e){e.CDATA="cdata",e.Closing="closing",e.Comment="comment",e.Declaration="declaration",e.Instruction="instruction",e.Open="open"})(sre||(sre={}));const ov="imageReference",T_="image",qx="inlineCode",$d="linkReference",mu="link",PM="listItem";var fb;(function(e){e.TODO="todo",e.DOING="doing",e.DONE="done"})(fb||(fb={}));const Wx="list",op="paragraph",Ame="strong",Gx="tableCell",qM="tableRow",Kx="table",I_="text",Vx="thematicBreak";var H;(function(e){e[e.NUL=0]="NUL",e[e.SOH=1]="SOH",e[e.STX=2]="STX",e[e.ETX=3]="ETX",e[e.EOT=4]="EOT",e[e.ENQ=5]="ENQ",e[e.ACK=6]="ACK",e[e.BEL=7]="BEL",e[e.BS=8]="BS",e[e.HT=9]="HT",e[e.LF=10]="LF",e[e.VT=11]="VT",e[e.FF=12]="FF",e[e.CR=13]="CR",e[e.SO=14]="SO",e[e.SI=15]="SI",e[e.DLE=16]="DLE",e[e.DC1=17]="DC1",e[e.DC2=18]="DC2",e[e.DC3=19]="DC3",e[e.DC4=20]="DC4",e[e.NAK=21]="NAK",e[e.SYN=22]="SYN",e[e.ETB=23]="ETB",e[e.CAN=24]="CAN",e[e.EM=25]="EM",e[e.SUB=26]="SUB",e[e.ESC=27]="ESC",e[e.FS=28]="FS",e[e.GS=29]="GS",e[e.RS=30]="RS",e[e.US=31]="US",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.DOUBLE_QUOTE=34]="DOUBLE_QUOTE",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.SINGLE_QUOTE=39]="SINGLE_QUOTE",e[e.OPEN_PARENTHESIS=40]="OPEN_PARENTHESIS",e[e.CLOSE_PARENTHESIS=41]="CLOSE_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.MINUS_SIGN=45]="MINUS_SIGN",e[e.DOT=46]="DOT",e[e.SLASH=47]="SLASH",e[e.DIGIT0=48]="DIGIT0",e[e.DIGIT1=49]="DIGIT1",e[e.DIGIT2=50]="DIGIT2",e[e.DIGIT3=51]="DIGIT3",e[e.DIGIT4=52]="DIGIT4",e[e.DIGIT5=53]="DIGIT5",e[e.DIGIT6=54]="DIGIT6",e[e.DIGIT7=55]="DIGIT7",e[e.DIGIT8=56]="DIGIT8",e[e.DIGIT9=57]="DIGIT9",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.OPEN_ANGLE=60]="OPEN_ANGLE",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.CLOSE_ANGLE=62]="CLOSE_ANGLE",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.AT_SIGN=64]="AT_SIGN",e[e.UPPERCASE_A=65]="UPPERCASE_A",e[e.UPPERCASE_B=66]="UPPERCASE_B",e[e.UPPERCASE_C=67]="UPPERCASE_C",e[e.UPPERCASE_D=68]="UPPERCASE_D",e[e.UPPERCASE_E=69]="UPPERCASE_E",e[e.UPPERCASE_F=70]="UPPERCASE_F",e[e.UPPERCASE_G=71]="UPPERCASE_G",e[e.UPPERCASE_H=72]="UPPERCASE_H",e[e.UPPERCASE_I=73]="UPPERCASE_I",e[e.UPPERCASE_J=74]="UPPERCASE_J",e[e.UPPERCASE_K=75]="UPPERCASE_K",e[e.UPPERCASE_L=76]="UPPERCASE_L",e[e.UPPERCASE_M=77]="UPPERCASE_M",e[e.UPPERCASE_N=78]="UPPERCASE_N",e[e.UPPERCASE_O=79]="UPPERCASE_O",e[e.UPPERCASE_P=80]="UPPERCASE_P",e[e.UPPERCASE_Q=81]="UPPERCASE_Q",e[e.UPPERCASE_R=82]="UPPERCASE_R",e[e.UPPERCASE_S=83]="UPPERCASE_S",e[e.UPPERCASE_T=84]="UPPERCASE_T",e[e.UPPERCASE_U=85]="UPPERCASE_U",e[e.UPPERCASE_V=86]="UPPERCASE_V",e[e.UPPERCASE_W=87]="UPPERCASE_W",e[e.UPPERCASE_X=88]="UPPERCASE_X",e[e.UPPERCASE_Y=89]="UPPERCASE_Y",e[e.UPPERCASE_Z=90]="UPPERCASE_Z",e[e.OPEN_BRACKET=91]="OPEN_BRACKET",e[e.BACKSLASH=92]="BACKSLASH",e[e.CLOSE_BRACKET=93]="CLOSE_BRACKET",e[e.CARET=94]="CARET",e[e.UNDERSCORE=95]="UNDERSCORE",e[e.BACKTICK=96]="BACKTICK",e[e.LOWERCASE_A=97]="LOWERCASE_A",e[e.LOWERCASE_B=98]="LOWERCASE_B",e[e.LOWERCASE_C=99]="LOWERCASE_C",e[e.LOWERCASE_D=100]="LOWERCASE_D",e[e.LOWERCASE_E=101]="LOWERCASE_E",e[e.LOWERCASE_F=102]="LOWERCASE_F",e[e.LOWERCASE_G=103]="LOWERCASE_G",e[e.LOWERCASE_H=104]="LOWERCASE_H",e[e.LOWERCASE_I=105]="LOWERCASE_I",e[e.LOWERCASE_J=106]="LOWERCASE_J",e[e.LOWERCASE_K=107]="LOWERCASE_K",e[e.LOWERCASE_L=108]="LOWERCASE_L",e[e.LOWERCASE_M=109]="LOWERCASE_M",e[e.LOWERCASE_N=110]="LOWERCASE_N",e[e.LOWERCASE_O=111]="LOWERCASE_O",e[e.LOWERCASE_P=112]="LOWERCASE_P",e[e.LOWERCASE_Q=113]="LOWERCASE_Q",e[e.LOWERCASE_R=114]="LOWERCASE_R",e[e.LOWERCASE_S=115]="LOWERCASE_S",e[e.LOWERCASE_T=116]="LOWERCASE_T",e[e.LOWERCASE_U=117]="LOWERCASE_U",e[e.LOWERCASE_V=118]="LOWERCASE_V",e[e.LOWERCASE_W=119]="LOWERCASE_W",e[e.LOWERCASE_X=120]="LOWERCASE_X",e[e.LOWERCASE_Y=121]="LOWERCASE_Y",e[e.LOWERCASE_Z=122]="LOWERCASE_Z",e[e.OPEN_BRACE=123]="OPEN_BRACE",e[e.VERTICAL_SLASH=124]="VERTICAL_SLASH",e[e.CLOSE_BRACE=125]="CLOSE_BRACE",e[e.TILDE=126]="TILDE",e[e.DELETE=127]="DELETE"})(H||(H={}));const bgt={µ:"μ",À:"à",Á:"á",Â:"â",Ã:"ã",Ä:"ä",Å:"å",Æ:"æ",Ç:"ç",È:"è",É:"é",Ê:"ê",Ë:"ë",Ì:"ì",Í:"í",Î:"î",Ï:"ï",Ð:"ð",Ñ:"ñ",Ò:"ò",Ó:"ó",Ô:"ô",Õ:"õ",Ö:"ö",Ø:"ø",Ù:"ù",Ú:"ú",Û:"û",Ü:"ü",Ý:"ý",Þ:"þ",Ā:"ā",Ă:"ă",Ą:"ą",Ć:"ć",Ĉ:"ĉ",Ċ:"ċ",Č:"č",Ď:"ď",Đ:"đ",Ē:"ē",Ĕ:"ĕ",Ė:"ė",Ę:"ę",Ě:"ě",Ĝ:"ĝ",Ğ:"ğ",Ġ:"ġ",Ģ:"ģ",Ĥ:"ĥ",Ħ:"ħ",Ĩ:"ĩ",Ī:"ī",Ĭ:"ĭ",Į:"į",IJ:"ij",Ĵ:"ĵ",Ķ:"ķ",Ĺ:"ĺ",Ļ:"ļ",Ľ:"ľ",Ŀ:"ŀ",Ł:"ł",Ń:"ń",Ņ:"ņ",Ň:"ň",Ŋ:"ŋ",Ō:"ō",Ŏ:"ŏ",Ő:"ő",Œ:"œ",Ŕ:"ŕ",Ŗ:"ŗ",Ř:"ř",Ś:"ś",Ŝ:"ŝ",Ş:"ş",Š:"š",Ţ:"ţ",Ť:"ť",Ŧ:"ŧ",Ũ:"ũ",Ū:"ū",Ŭ:"ŭ",Ů:"ů",Ű:"ű",Ų:"ų",Ŵ:"ŵ",Ŷ:"ŷ",Ÿ:"ÿ",Ź:"ź",Ż:"ż",Ž:"ž",ſ:"s",Ɓ:"ɓ",Ƃ:"ƃ",Ƅ:"ƅ",Ɔ:"ɔ",Ƈ:"ƈ",Ɖ:"ɖ",Ɗ:"ɗ",Ƌ:"ƌ",Ǝ:"ǝ",Ə:"ə",Ɛ:"ɛ",Ƒ:"ƒ",Ɠ:"ɠ",Ɣ:"ɣ",Ɩ:"ɩ",Ɨ:"ɨ",Ƙ:"ƙ",Ɯ:"ɯ",Ɲ:"ɲ",Ɵ:"ɵ",Ơ:"ơ",Ƣ:"ƣ",Ƥ:"ƥ",Ʀ:"ʀ",Ƨ:"ƨ",Ʃ:"ʃ",Ƭ:"ƭ",Ʈ:"ʈ",Ư:"ư",Ʊ:"ʊ",Ʋ:"ʋ",Ƴ:"ƴ",Ƶ:"ƶ",Ʒ:"ʒ",Ƹ:"ƹ",Ƽ:"ƽ",DŽ:"dž",Dž:"dž",LJ:"lj",Lj:"lj",NJ:"nj",Nj:"nj",Ǎ:"ǎ",Ǐ:"ǐ",Ǒ:"ǒ",Ǔ:"ǔ",Ǖ:"ǖ",Ǘ:"ǘ",Ǚ:"ǚ",Ǜ:"ǜ",Ǟ:"ǟ",Ǡ:"ǡ",Ǣ:"ǣ",Ǥ:"ǥ",Ǧ:"ǧ",Ǩ:"ǩ",Ǫ:"ǫ",Ǭ:"ǭ",Ǯ:"ǯ",DZ:"dz",Dz:"dz",Ǵ:"ǵ",Ƕ:"ƕ",Ƿ:"ƿ",Ǹ:"ǹ",Ǻ:"ǻ",Ǽ:"ǽ",Ǿ:"ǿ",Ȁ:"ȁ",Ȃ:"ȃ",Ȅ:"ȅ",Ȇ:"ȇ",Ȉ:"ȉ",Ȋ:"ȋ",Ȍ:"ȍ",Ȏ:"ȏ",Ȑ:"ȑ",Ȓ:"ȓ",Ȕ:"ȕ",Ȗ:"ȗ",Ș:"ș",Ț:"ț",Ȝ:"ȝ",Ȟ:"ȟ","Ƞ":"ƞ",Ȣ:"ȣ",Ȥ:"ȥ",Ȧ:"ȧ",Ȩ:"ȩ",Ȫ:"ȫ",Ȭ:"ȭ",Ȯ:"ȯ",Ȱ:"ȱ",Ȳ:"ȳ","Ⱥ":"ⱥ","Ȼ":"ȼ","Ƚ":"ƚ","Ⱦ":"ⱦ","Ɂ":"ɂ","Ƀ":"ƀ","Ʉ":"ʉ","Ʌ":"ʌ","Ɇ":"ɇ","Ɉ":"ɉ","Ɋ":"ɋ","Ɍ":"ɍ","Ɏ":"ɏ","ͅ":"ι","Ͱ":"ͱ","Ͳ":"ͳ","Ͷ":"ͷ","Ϳ":"ϳ",Ά:"ά",Έ:"έ",Ή:"ή",Ί:"ί",Ό:"ό",Ύ:"ύ",Ώ:"ώ",Α:"α",Β:"β",Γ:"γ",Δ:"δ",Ε:"ε",Ζ:"ζ",Η:"η",Θ:"θ",Ι:"ι",Κ:"κ",Λ:"λ",Μ:"μ",Ν:"ν",Ξ:"ξ",Ο:"ο",Π:"π",Ρ:"ρ",Σ:"σ",Τ:"τ",Υ:"υ",Φ:"φ",Χ:"χ",Ψ:"ψ",Ω:"ω",Ϊ:"ϊ",Ϋ:"ϋ",ς:"σ","Ϗ":"ϗ",ϐ:"β",ϑ:"θ",ϕ:"φ",ϖ:"π","Ϙ":"ϙ",Ϛ:"ϛ",Ϝ:"ϝ",Ϟ:"ϟ",Ϡ:"ϡ",Ϣ:"ϣ",Ϥ:"ϥ",Ϧ:"ϧ",Ϩ:"ϩ",Ϫ:"ϫ",Ϭ:"ϭ",Ϯ:"ϯ",ϰ:"κ",ϱ:"ρ","ϴ":"θ","ϵ":"ε","Ϸ":"ϸ","Ϲ":"ϲ","Ϻ":"ϻ","Ͻ":"ͻ","Ͼ":"ͼ","Ͽ":"ͽ",Ѐ:"ѐ",Ё:"ё",Ђ:"ђ",Ѓ:"ѓ",Є:"є",Ѕ:"ѕ",І:"і",Ї:"ї",Ј:"ј",Љ:"љ",Њ:"њ",Ћ:"ћ",Ќ:"ќ",Ѝ:"ѝ",Ў:"ў",Џ:"џ",А:"а",Б:"б",В:"в",Г:"г",Д:"д",Е:"е",Ж:"ж",З:"з",И:"и",Й:"й",К:"к",Л:"л",М:"м",Н:"н",О:"о",П:"п",Р:"р",С:"с",Т:"т",У:"у",Ф:"ф",Х:"х",Ц:"ц",Ч:"ч",Ш:"ш",Щ:"щ",Ъ:"ъ",Ы:"ы",Ь:"ь",Э:"э",Ю:"ю",Я:"я",Ѡ:"ѡ",Ѣ:"ѣ",Ѥ:"ѥ",Ѧ:"ѧ",Ѩ:"ѩ",Ѫ:"ѫ",Ѭ:"ѭ",Ѯ:"ѯ",Ѱ:"ѱ",Ѳ:"ѳ",Ѵ:"ѵ",Ѷ:"ѷ",Ѹ:"ѹ",Ѻ:"ѻ",Ѽ:"ѽ",Ѿ:"ѿ",Ҁ:"ҁ","Ҋ":"ҋ",Ҍ:"ҍ",Ҏ:"ҏ",Ґ:"ґ",Ғ:"ғ",Ҕ:"ҕ",Җ:"җ",Ҙ:"ҙ",Қ:"қ",Ҝ:"ҝ",Ҟ:"ҟ",Ҡ:"ҡ",Ң:"ң",Ҥ:"ҥ",Ҧ:"ҧ",Ҩ:"ҩ",Ҫ:"ҫ",Ҭ:"ҭ",Ү:"ү",Ұ:"ұ",Ҳ:"ҳ",Ҵ:"ҵ",Ҷ:"ҷ",Ҹ:"ҹ",Һ:"һ",Ҽ:"ҽ",Ҿ:"ҿ",Ӏ:"ӏ",Ӂ:"ӂ",Ӄ:"ӄ","Ӆ":"ӆ",Ӈ:"ӈ","Ӊ":"ӊ",Ӌ:"ӌ","Ӎ":"ӎ",Ӑ:"ӑ",Ӓ:"ӓ",Ӕ:"ӕ",Ӗ:"ӗ",Ә:"ә",Ӛ:"ӛ",Ӝ:"ӝ",Ӟ:"ӟ",Ӡ:"ӡ",Ӣ:"ӣ",Ӥ:"ӥ",Ӧ:"ӧ",Ө:"ө",Ӫ:"ӫ",Ӭ:"ӭ",Ӯ:"ӯ",Ӱ:"ӱ",Ӳ:"ӳ",Ӵ:"ӵ","Ӷ":"ӷ",Ӹ:"ӹ","Ӻ":"ӻ","Ӽ":"ӽ","Ӿ":"ӿ","Ԁ":"ԁ","Ԃ":"ԃ","Ԅ":"ԅ","Ԇ":"ԇ","Ԉ":"ԉ","Ԋ":"ԋ","Ԍ":"ԍ","Ԏ":"ԏ","Ԑ":"ԑ","Ԓ":"ԓ","Ԕ":"ԕ","Ԗ":"ԗ","Ԙ":"ԙ","Ԛ":"ԛ","Ԝ":"ԝ","Ԟ":"ԟ","Ԡ":"ԡ","Ԣ":"ԣ","Ԥ":"ԥ","Ԧ":"ԧ","Ԩ":"ԩ","Ԫ":"ԫ","Ԭ":"ԭ","Ԯ":"ԯ",Ա:"ա",Բ:"բ",Գ:"գ",Դ:"դ",Ե:"ե",Զ:"զ",Է:"է",Ը:"ը",Թ:"թ",Ժ:"ժ",Ի:"ի",Լ:"լ",Խ:"խ",Ծ:"ծ",Կ:"կ",Հ:"հ",Ձ:"ձ",Ղ:"ղ",Ճ:"ճ",Մ:"մ",Յ:"յ",Ն:"ն",Շ:"շ",Ո:"ո",Չ:"չ",Պ:"պ",Ջ:"ջ",Ռ:"ռ",Ս:"ս",Վ:"վ",Տ:"տ",Ր:"ր",Ց:"ց",Ւ:"ւ",Փ:"փ",Ք:"ք",Օ:"օ",Ֆ:"ֆ",Ⴀ:"ⴀ",Ⴁ:"ⴁ",Ⴂ:"ⴂ",Ⴃ:"ⴃ",Ⴄ:"ⴄ",Ⴅ:"ⴅ",Ⴆ:"ⴆ",Ⴇ:"ⴇ",Ⴈ:"ⴈ",Ⴉ:"ⴉ",Ⴊ:"ⴊ",Ⴋ:"ⴋ",Ⴌ:"ⴌ",Ⴍ:"ⴍ",Ⴎ:"ⴎ",Ⴏ:"ⴏ",Ⴐ:"ⴐ",Ⴑ:"ⴑ",Ⴒ:"ⴒ",Ⴓ:"ⴓ",Ⴔ:"ⴔ",Ⴕ:"ⴕ",Ⴖ:"ⴖ",Ⴗ:"ⴗ",Ⴘ:"ⴘ",Ⴙ:"ⴙ",Ⴚ:"ⴚ",Ⴛ:"ⴛ",Ⴜ:"ⴜ",Ⴝ:"ⴝ",Ⴞ:"ⴞ",Ⴟ:"ⴟ",Ⴠ:"ⴠ",Ⴡ:"ⴡ",Ⴢ:"ⴢ",Ⴣ:"ⴣ",Ⴤ:"ⴤ",Ⴥ:"ⴥ","Ⴧ":"ⴧ","Ⴭ":"ⴭ",Ḁ:"ḁ",Ḃ:"ḃ",Ḅ:"ḅ",Ḇ:"ḇ",Ḉ:"ḉ",Ḋ:"ḋ",Ḍ:"ḍ",Ḏ:"ḏ",Ḑ:"ḑ",Ḓ:"ḓ",Ḕ:"ḕ",Ḗ:"ḗ",Ḙ:"ḙ",Ḛ:"ḛ",Ḝ:"ḝ",Ḟ:"ḟ",Ḡ:"ḡ",Ḣ:"ḣ",Ḥ:"ḥ",Ḧ:"ḧ",Ḩ:"ḩ",Ḫ:"ḫ",Ḭ:"ḭ",Ḯ:"ḯ",Ḱ:"ḱ",Ḳ:"ḳ",Ḵ:"ḵ",Ḷ:"ḷ",Ḹ:"ḹ",Ḻ:"ḻ",Ḽ:"ḽ",Ḿ:"ḿ",Ṁ:"ṁ",Ṃ:"ṃ",Ṅ:"ṅ",Ṇ:"ṇ",Ṉ:"ṉ",Ṋ:"ṋ",Ṍ:"ṍ",Ṏ:"ṏ",Ṑ:"ṑ",Ṓ:"ṓ",Ṕ:"ṕ",Ṗ:"ṗ",Ṙ:"ṙ",Ṛ:"ṛ",Ṝ:"ṝ",Ṟ:"ṟ",Ṡ:"ṡ",Ṣ:"ṣ",Ṥ:"ṥ",Ṧ:"ṧ",Ṩ:"ṩ",Ṫ:"ṫ",Ṭ:"ṭ",Ṯ:"ṯ",Ṱ:"ṱ",Ṳ:"ṳ",Ṵ:"ṵ",Ṷ:"ṷ",Ṹ:"ṹ",Ṻ:"ṻ",Ṽ:"ṽ",Ṿ:"ṿ",Ẁ:"ẁ",Ẃ:"ẃ",Ẅ:"ẅ",Ẇ:"ẇ",Ẉ:"ẉ",Ẋ:"ẋ",Ẍ:"ẍ",Ẏ:"ẏ",Ẑ:"ẑ",Ẓ:"ẓ",Ẕ:"ẕ",ẛ:"ṡ",Ạ:"ạ",Ả:"ả",Ấ:"ấ",Ầ:"ầ",Ẩ:"ẩ",Ẫ:"ẫ",Ậ:"ậ",Ắ:"ắ",Ằ:"ằ",Ẳ:"ẳ",Ẵ:"ẵ",Ặ:"ặ",Ẹ:"ẹ",Ẻ:"ẻ",Ẽ:"ẽ",Ế:"ế",Ề:"ề",Ể:"ể",Ễ:"ễ",Ệ:"ệ",Ỉ:"ỉ",Ị:"ị",Ọ:"ọ",Ỏ:"ỏ",Ố:"ố",Ồ:"ồ",Ổ:"ổ",Ỗ:"ỗ",Ộ:"ộ",Ớ:"ớ",Ờ:"ờ",Ở:"ở",Ỡ:"ỡ",Ợ:"ợ",Ụ:"ụ",Ủ:"ủ",Ứ:"ứ",Ừ:"ừ",Ử:"ử",Ữ:"ữ",Ự:"ự",Ỳ:"ỳ",Ỵ:"ỵ",Ỷ:"ỷ",Ỹ:"ỹ","Ỻ":"ỻ","Ỽ":"ỽ","Ỿ":"ỿ",Ἀ:"ἀ",Ἁ:"ἁ",Ἂ:"ἂ",Ἃ:"ἃ",Ἄ:"ἄ",Ἅ:"ἅ",Ἆ:"ἆ",Ἇ:"ἇ",Ἐ:"ἐ",Ἑ:"ἑ",Ἒ:"ἒ",Ἓ:"ἓ",Ἔ:"ἔ",Ἕ:"ἕ",Ἠ:"ἠ",Ἡ:"ἡ",Ἢ:"ἢ",Ἣ:"ἣ",Ἤ:"ἤ",Ἥ:"ἥ",Ἦ:"ἦ",Ἧ:"ἧ",Ἰ:"ἰ",Ἱ:"ἱ",Ἲ:"ἲ",Ἳ:"ἳ",Ἴ:"ἴ",Ἵ:"ἵ",Ἶ:"ἶ",Ἷ:"ἷ",Ὀ:"ὀ",Ὁ:"ὁ",Ὂ:"ὂ",Ὃ:"ὃ",Ὄ:"ὄ",Ὅ:"ὅ",Ὑ:"ὑ",Ὓ:"ὓ",Ὕ:"ὕ",Ὗ:"ὗ",Ὠ:"ὠ",Ὡ:"ὡ",Ὢ:"ὢ",Ὣ:"ὣ",Ὤ:"ὤ",Ὥ:"ὥ",Ὦ:"ὦ",Ὧ:"ὧ",Ᾰ:"ᾰ",Ᾱ:"ᾱ",Ὰ:"ὰ",Ά:"ά",ι:"ι",Ὲ:"ὲ",Έ:"έ",Ὴ:"ὴ",Ή:"ή",Ῐ:"ῐ",Ῑ:"ῑ",Ὶ:"ὶ",Ί:"ί",Ῠ:"ῠ",Ῡ:"ῡ",Ὺ:"ὺ",Ύ:"ύ",Ῥ:"ῥ",Ὸ:"ὸ",Ό:"ό",Ὼ:"ὼ",Ώ:"ώ",Ω:"ω",K:"k",Å:"å","Ⅎ":"ⅎ","Ⅰ":"ⅰ","Ⅱ":"ⅱ","Ⅲ":"ⅲ","Ⅳ":"ⅳ","Ⅴ":"ⅴ","Ⅵ":"ⅵ","Ⅶ":"ⅶ","Ⅷ":"ⅷ","Ⅸ":"ⅸ","Ⅹ":"ⅹ","Ⅺ":"ⅺ","Ⅻ":"ⅻ","Ⅼ":"ⅼ","Ⅽ":"ⅽ","Ⅾ":"ⅾ","Ⅿ":"ⅿ","Ↄ":"ↄ","Ⓐ":"ⓐ","Ⓑ":"ⓑ","Ⓒ":"ⓒ","Ⓓ":"ⓓ","Ⓔ":"ⓔ","Ⓕ":"ⓕ","Ⓖ":"ⓖ","Ⓗ":"ⓗ","Ⓘ":"ⓘ","Ⓙ":"ⓙ","Ⓚ":"ⓚ","Ⓛ":"ⓛ","Ⓜ":"ⓜ","Ⓝ":"ⓝ","Ⓞ":"ⓞ","Ⓟ":"ⓟ","Ⓠ":"ⓠ","Ⓡ":"ⓡ","Ⓢ":"ⓢ","Ⓣ":"ⓣ","Ⓤ":"ⓤ","Ⓥ":"ⓥ","Ⓦ":"ⓦ","Ⓧ":"ⓧ","Ⓨ":"ⓨ","Ⓩ":"ⓩ","Ⰰ":"ⰰ","Ⰱ":"ⰱ","Ⰲ":"ⰲ","Ⰳ":"ⰳ","Ⰴ":"ⰴ","Ⰵ":"ⰵ","Ⰶ":"ⰶ","Ⰷ":"ⰷ","Ⰸ":"ⰸ","Ⰹ":"ⰹ","Ⰺ":"ⰺ","Ⰻ":"ⰻ","Ⰼ":"ⰼ","Ⰽ":"ⰽ","Ⰾ":"ⰾ","Ⰿ":"ⰿ","Ⱀ":"ⱀ","Ⱁ":"ⱁ","Ⱂ":"ⱂ","Ⱃ":"ⱃ","Ⱄ":"ⱄ","Ⱅ":"ⱅ","Ⱆ":"ⱆ","Ⱇ":"ⱇ","Ⱈ":"ⱈ","Ⱉ":"ⱉ","Ⱊ":"ⱊ","Ⱋ":"ⱋ","Ⱌ":"ⱌ","Ⱍ":"ⱍ","Ⱎ":"ⱎ","Ⱏ":"ⱏ","Ⱐ":"ⱐ","Ⱑ":"ⱑ","Ⱒ":"ⱒ","Ⱓ":"ⱓ","Ⱔ":"ⱔ","Ⱕ":"ⱕ","Ⱖ":"ⱖ","Ⱗ":"ⱗ","Ⱘ":"ⱘ","Ⱙ":"ⱙ","Ⱚ":"ⱚ","Ⱛ":"ⱛ","Ⱜ":"ⱜ","Ⱝ":"ⱝ","Ⱞ":"ⱞ","Ⱡ":"ⱡ","Ɫ":"ɫ","Ᵽ":"ᵽ","Ɽ":"ɽ","Ⱨ":"ⱨ","Ⱪ":"ⱪ","Ⱬ":"ⱬ","Ɑ":"ɑ","Ɱ":"ɱ","Ɐ":"ɐ","Ɒ":"ɒ","Ⱳ":"ⱳ","Ⱶ":"ⱶ","Ȿ":"ȿ","Ɀ":"ɀ","Ⲁ":"ⲁ","Ⲃ":"ⲃ","Ⲅ":"ⲅ","Ⲇ":"ⲇ","Ⲉ":"ⲉ","Ⲋ":"ⲋ","Ⲍ":"ⲍ","Ⲏ":"ⲏ","Ⲑ":"ⲑ","Ⲓ":"ⲓ","Ⲕ":"ⲕ","Ⲗ":"ⲗ","Ⲙ":"ⲙ","Ⲛ":"ⲛ","Ⲝ":"ⲝ","Ⲟ":"ⲟ","Ⲡ":"ⲡ","Ⲣ":"ⲣ","Ⲥ":"ⲥ","Ⲧ":"ⲧ","Ⲩ":"ⲩ","Ⲫ":"ⲫ","Ⲭ":"ⲭ","Ⲯ":"ⲯ","Ⲱ":"ⲱ","Ⲳ":"ⲳ","Ⲵ":"ⲵ","Ⲷ":"ⲷ","Ⲹ":"ⲹ","Ⲻ":"ⲻ","Ⲽ":"ⲽ","Ⲿ":"ⲿ","Ⳁ":"ⳁ","Ⳃ":"ⳃ","Ⳅ":"ⳅ","Ⳇ":"ⳇ","Ⳉ":"ⳉ","Ⳋ":"ⳋ","Ⳍ":"ⳍ","Ⳏ":"ⳏ","Ⳑ":"ⳑ","Ⳓ":"ⳓ","Ⳕ":"ⳕ","Ⳗ":"ⳗ","Ⳙ":"ⳙ","Ⳛ":"ⳛ","Ⳝ":"ⳝ","Ⳟ":"ⳟ","Ⳡ":"ⳡ","Ⳣ":"ⳣ","Ⳬ":"ⳬ","Ⳮ":"ⳮ","Ⳳ":"ⳳ","Ꙁ":"ꙁ","Ꙃ":"ꙃ","Ꙅ":"ꙅ","Ꙇ":"ꙇ","Ꙉ":"ꙉ","Ꙋ":"ꙋ","Ꙍ":"ꙍ","Ꙏ":"ꙏ","Ꙑ":"ꙑ","Ꙓ":"ꙓ","Ꙕ":"ꙕ","Ꙗ":"ꙗ","Ꙙ":"ꙙ","Ꙛ":"ꙛ","Ꙝ":"ꙝ","Ꙟ":"ꙟ","Ꙡ":"ꙡ","Ꙣ":"ꙣ","Ꙥ":"ꙥ","Ꙧ":"ꙧ","Ꙩ":"ꙩ","Ꙫ":"ꙫ","Ꙭ":"ꙭ","Ꚁ":"ꚁ","Ꚃ":"ꚃ","Ꚅ":"ꚅ","Ꚇ":"ꚇ","Ꚉ":"ꚉ","Ꚋ":"ꚋ","Ꚍ":"ꚍ","Ꚏ":"ꚏ","Ꚑ":"ꚑ","Ꚓ":"ꚓ","Ꚕ":"ꚕ","Ꚗ":"ꚗ","Ꚙ":"ꚙ","Ꚛ":"ꚛ","Ꜣ":"ꜣ","Ꜥ":"ꜥ","Ꜧ":"ꜧ","Ꜩ":"ꜩ","Ꜫ":"ꜫ","Ꜭ":"ꜭ","Ꜯ":"ꜯ","Ꜳ":"ꜳ","Ꜵ":"ꜵ","Ꜷ":"ꜷ","Ꜹ":"ꜹ","Ꜻ":"ꜻ","Ꜽ":"ꜽ","Ꜿ":"ꜿ","Ꝁ":"ꝁ","Ꝃ":"ꝃ","Ꝅ":"ꝅ","Ꝇ":"ꝇ","Ꝉ":"ꝉ","Ꝋ":"ꝋ","Ꝍ":"ꝍ","Ꝏ":"ꝏ","Ꝑ":"ꝑ","Ꝓ":"ꝓ","Ꝕ":"ꝕ","Ꝗ":"ꝗ","Ꝙ":"ꝙ","Ꝛ":"ꝛ","Ꝝ":"ꝝ","Ꝟ":"ꝟ","Ꝡ":"ꝡ","Ꝣ":"ꝣ","Ꝥ":"ꝥ","Ꝧ":"ꝧ","Ꝩ":"ꝩ","Ꝫ":"ꝫ","Ꝭ":"ꝭ","Ꝯ":"ꝯ","Ꝺ":"ꝺ","Ꝼ":"ꝼ","Ᵹ":"ᵹ","Ꝿ":"ꝿ","Ꞁ":"ꞁ","Ꞃ":"ꞃ","Ꞅ":"ꞅ","Ꞇ":"ꞇ","Ꞌ":"ꞌ","Ɥ":"ɥ","Ꞑ":"ꞑ","Ꞓ":"ꞓ","Ꞗ":"ꞗ","Ꞙ":"ꞙ","Ꞛ":"ꞛ","Ꞝ":"ꞝ","Ꞟ":"ꞟ","Ꞡ":"ꞡ","Ꞣ":"ꞣ","Ꞥ":"ꞥ","Ꞧ":"ꞧ","Ꞩ":"ꞩ","Ɦ":"ɦ","Ɜ":"ɜ","Ɡ":"ɡ","Ɬ":"ɬ","Ʞ":"ʞ","Ʇ":"ʇ",A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z","𐐀":"𐐨","𐐁":"𐐩","𐐂":"𐐪","𐐃":"𐐫","𐐄":"𐐬","𐐅":"𐐭","𐐆":"𐐮","𐐇":"𐐯","𐐈":"𐐰","𐐉":"𐐱","𐐊":"𐐲","𐐋":"𐐳","𐐌":"𐐴","𐐍":"𐐵","𐐎":"𐐶","𐐏":"𐐷","𐐐":"𐐸","𐐑":"𐐹","𐐒":"𐐺","𐐓":"𐐻","𐐔":"𐐼","𐐕":"𐐽","𐐖":"𐐾","𐐗":"𐐿","𐐘":"𐑀","𐐙":"𐑁","𐐚":"𐑂","𐐛":"𐑃","𐐜":"𐑄","𐐝":"𐑅","𐐞":"𐑆","𐐟":"𐑇","𐐠":"𐑈","𐐡":"𐑉","𐐢":"𐑊","𐐣":"𐑋","𐐤":"𐑌","𐐥":"𐑍","𐐦":"𐑎","𐐧":"𐑏","𑢠":"𑣀","𑢡":"𑣁","𑢢":"𑣂","𑢣":"𑣃","𑢤":"𑣄","𑢥":"𑣅","𑢦":"𑣆","𑢧":"𑣇","𑢨":"𑣈","𑢩":"𑣉","𑢪":"𑣊","𑢫":"𑣋","𑢬":"𑣌","𑢭":"𑣍","𑢮":"𑣎","𑢯":"𑣏","𑢰":"𑣐","𑢱":"𑣑","𑢲":"𑣒","𑢳":"𑣓","𑢴":"𑣔","𑢵":"𑣕","𑢶":"𑣖","𑢷":"𑣗","𑢸":"𑣘","𑢹":"𑣙","𑢺":"𑣚","𑢻":"𑣛","𑢼":"𑣜","𑢽":"𑣝","𑢾":"𑣞","𑢿":"𑣟",ß:"ss",İ:"i̇",ʼn:"ʼn",ǰ:"ǰ",ΐ:"ΐ",ΰ:"ΰ",և:"եւ",ẖ:"ẖ",ẗ:"ẗ",ẘ:"ẘ",ẙ:"ẙ",ẚ:"aʾ","ẞ":"ss",ὐ:"ὐ",ὒ:"ὒ",ὔ:"ὔ",ὖ:"ὖ",ᾀ:"ἀι",ᾁ:"ἁι",ᾂ:"ἂι",ᾃ:"ἃι",ᾄ:"ἄι",ᾅ:"ἅι",ᾆ:"ἆι",ᾇ:"ἇι",ᾈ:"ἀι",ᾉ:"ἁι",ᾊ:"ἂι",ᾋ:"ἃι",ᾌ:"ἄι",ᾍ:"ἅι",ᾎ:"ἆι",ᾏ:"ἇι",ᾐ:"ἠι",ᾑ:"ἡι",ᾒ:"ἢι",ᾓ:"ἣι",ᾔ:"ἤι",ᾕ:"ἥι",ᾖ:"ἦι",ᾗ:"ἧι",ᾘ:"ἠι",ᾙ:"ἡι",ᾚ:"ἢι",ᾛ:"ἣι",ᾜ:"ἤι",ᾝ:"ἥι",ᾞ:"ἦι",ᾟ:"ἧι",ᾠ:"ὠι",ᾡ:"ὡι",ᾢ:"ὢι",ᾣ:"ὣι",ᾤ:"ὤι",ᾥ:"ὥι",ᾦ:"ὦι",ᾧ:"ὧι",ᾨ:"ὠι",ᾩ:"ὡι",ᾪ:"ὢι",ᾫ:"ὣι",ᾬ:"ὤι",ᾭ:"ὥι",ᾮ:"ὦι",ᾯ:"ὧι",ᾲ:"ὰι",ᾳ:"αι",ᾴ:"άι",ᾶ:"ᾶ",ᾷ:"ᾶι",ᾼ:"αι",ῂ:"ὴι",ῃ:"ηι",ῄ:"ήι",ῆ:"ῆ",ῇ:"ῆι",ῌ:"ηι",ῒ:"ῒ",ΐ:"ΐ",ῖ:"ῖ",ῗ:"ῗ",ῢ:"ῢ",ΰ:"ΰ",ῤ:"ῤ",ῦ:"ῦ",ῧ:"ῧ",ῲ:"ὼι",ῳ:"ωι",ῴ:"ώι",ῶ:"ῶ",ῷ:"ῶι",ῼ:"ωι",ff:"ff",fi:"fi",fl:"fl",ffi:"ffi",ffl:"ffl",ſt:"st",st:"st",ﬓ:"մն",ﬔ:"մե",ﬕ:"մի",ﬖ:"վն",ﬗ:"մխ"},_gt=[{key:[65,69,108,105,103,59],value:"Æ"},{key:[65,77,80,59],value:"&"},{key:[65,97,99,117,116,101,59],value:"Á"},{key:[65,98,114,101,118,101,59],value:"Ă"},{key:[65,99,105,114,99,59],value:"Â"},{key:[65,99,121,59],value:"А"},{key:[65,102,114,59],value:"𝔄"},{key:[65,103,114,97,118,101,59],value:"À"},{key:[65,108,112,104,97,59],value:"Α"},{key:[65,109,97,99,114,59],value:"Ā"},{key:[65,110,100,59],value:"⩓"},{key:[65,111,103,111,110,59],value:"Ą"},{key:[65,111,112,102,59],value:"𝔸"},{key:[65,112,112,108,121,70,117,110,99,116,105,111,110,59],value:"⁡"},{key:[65,114,105,110,103,59],value:"Å"},{key:[65,115,99,114,59],value:"𝒜"},{key:[65,115,115,105,103,110,59],value:"≔"},{key:[65,116,105,108,100,101,59],value:"Ã"},{key:[65,117,109,108,59],value:"Ä"},{key:[66,97,99,107,115,108,97,115,104,59],value:"∖"},{key:[66,97,114,118,59],value:"⫧"},{key:[66,97,114,119,101,100,59],value:"⌆"},{key:[66,99,121,59],value:"Б"},{key:[66,101,99,97,117,115,101,59],value:"∵"},{key:[66,101,114,110,111,117,108,108,105,115,59],value:"ℬ"},{key:[66,101,116,97,59],value:"Β"},{key:[66,102,114,59],value:"𝔅"},{key:[66,111,112,102,59],value:"𝔹"},{key:[66,114,101,118,101,59],value:"˘"},{key:[66,115,99,114,59],value:"ℬ"},{key:[66,117,109,112,101,113,59],value:"≎"},{key:[67,72,99,121,59],value:"Ч"},{key:[67,79,80,89,59],value:"©"},{key:[67,97,99,117,116,101,59],value:"Ć"},{key:[67,97,112,59],value:"⋒"},{key:[67,97,112,105,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59],value:"ⅅ"},{key:[67,97,121,108,101,121,115,59],value:"ℭ"},{key:[67,99,97,114,111,110,59],value:"Č"},{key:[67,99,101,100,105,108,59],value:"Ç"},{key:[67,99,105,114,99,59],value:"Ĉ"},{key:[67,99,111,110,105,110,116,59],value:"∰"},{key:[67,100,111,116,59],value:"Ċ"},{key:[67,101,100,105,108,108,97,59],value:"¸"},{key:[67,101,110,116,101,114,68,111,116,59],value:"·"},{key:[67,102,114,59],value:"ℭ"},{key:[67,104,105,59],value:"Χ"},{key:[67,105,114,99,108,101,68,111,116,59],value:"⊙"},{key:[67,105,114,99,108,101,77,105,110,117,115,59],value:"⊖"},{key:[67,105,114,99,108,101,80,108,117,115,59],value:"⊕"},{key:[67,105,114,99,108,101,84,105,109,101,115,59],value:"⊗"},{key:[67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∲"},{key:[67,108,111,115,101,67,117,114,108,121,68,111,117,98,108,101,81,117,111,116,101,59],value:"”"},{key:[67,108,111,115,101,67,117,114,108,121,81,117,111,116,101,59],value:"’"},{key:[67,111,108,111,110,59],value:"∷"},{key:[67,111,108,111,110,101,59],value:"⩴"},{key:[67,111,110,103,114,117,101,110,116,59],value:"≡"},{key:[67,111,110,105,110,116,59],value:"∯"},{key:[67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∮"},{key:[67,111,112,102,59],value:"ℂ"},{key:[67,111,112,114,111,100,117,99,116,59],value:"∐"},{key:[67,111,117,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∳"},{key:[67,114,111,115,115,59],value:"⨯"},{key:[67,115,99,114,59],value:"𝒞"},{key:[67,117,112,59],value:"⋓"},{key:[67,117,112,67,97,112,59],value:"≍"},{key:[68,68,59],value:"ⅅ"},{key:[68,68,111,116,114,97,104,100,59],value:"⤑"},{key:[68,74,99,121,59],value:"Ђ"},{key:[68,83,99,121,59],value:"Ѕ"},{key:[68,90,99,121,59],value:"Џ"},{key:[68,97,103,103,101,114,59],value:"‡"},{key:[68,97,114,114,59],value:"↡"},{key:[68,97,115,104,118,59],value:"⫤"},{key:[68,99,97,114,111,110,59],value:"Ď"},{key:[68,99,121,59],value:"Д"},{key:[68,101,108,59],value:"∇"},{key:[68,101,108,116,97,59],value:"Δ"},{key:[68,102,114,59],value:"𝔇"},{key:[68,105,97,99,114,105,116,105,99,97,108,65,99,117,116,101,59],value:"´"},{key:[68,105,97,99,114,105,116,105,99,97,108,68,111,116,59],value:"˙"},{key:[68,105,97,99,114,105,116,105,99,97,108,68,111,117,98,108,101,65,99,117,116,101,59],value:"˝"},{key:[68,105,97,99,114,105,116,105,99,97,108,71,114,97,118,101,59],value:"`"},{key:[68,105,97,99,114,105,116,105,99,97,108,84,105,108,100,101,59],value:"˜"},{key:[68,105,97,109,111,110,100,59],value:"⋄"},{key:[68,105,102,102,101,114,101,110,116,105,97,108,68,59],value:"ⅆ"},{key:[68,111,112,102,59],value:"𝔻"},{key:[68,111,116,59],value:"¨"},{key:[68,111,116,68,111,116,59],value:"⃜"},{key:[68,111,116,69,113,117,97,108,59],value:"≐"},{key:[68,111,117,98,108,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∯"},{key:[68,111,117,98,108,101,68,111,116,59],value:"¨"},{key:[68,111,117,98,108,101,68,111,119,110,65,114,114,111,119,59],value:"⇓"},{key:[68,111,117,98,108,101,76,101,102,116,65,114,114,111,119,59],value:"⇐"},{key:[68,111,117,98,108,101,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⇔"},{key:[68,111,117,98,108,101,76,101,102,116,84,101,101,59],value:"⫤"},{key:[68,111,117,98,108,101,76,111,110,103,76,101,102,116,65,114,114,111,119,59],value:"⟸"},{key:[68,111,117,98,108,101,76,111,110,103,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⟺"},{key:[68,111,117,98,108,101,76,111,110,103,82,105,103,104,116,65,114,114,111,119,59],value:"⟹"},{key:[68,111,117,98,108,101,82,105,103,104,116,65,114,114,111,119,59],value:"⇒"},{key:[68,111,117,98,108,101,82,105,103,104,116,84,101,101,59],value:"⊨"},{key:[68,111,117,98,108,101,85,112,65,114,114,111,119,59],value:"⇑"},{key:[68,111,117,98,108,101,85,112,68,111,119,110,65,114,114,111,119,59],value:"⇕"},{key:[68,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59],value:"∥"},{key:[68,111,119,110,65,114,114,111,119,59],value:"↓"},{key:[68,111,119,110,65,114,114,111,119,66,97,114,59],value:"⤓"},{key:[68,111,119,110,65,114,114,111,119,85,112,65,114,114,111,119,59],value:"⇵"},{key:[68,111,119,110,66,114,101,118,101,59],value:"̑"},{key:[68,111,119,110,76,101,102,116,82,105,103,104,116,86,101,99,116,111,114,59],value:"⥐"},{key:[68,111,119,110,76,101,102,116,84,101,101,86,101,99,116,111,114,59],value:"⥞"},{key:[68,111,119,110,76,101,102,116,86,101,99,116,111,114,59],value:"↽"},{key:[68,111,119,110,76,101,102,116,86,101,99,116,111,114,66,97,114,59],value:"⥖"},{key:[68,111,119,110,82,105,103,104,116,84,101,101,86,101,99,116,111,114,59],value:"⥟"},{key:[68,111,119,110,82,105,103,104,116,86,101,99,116,111,114,59],value:"⇁"},{key:[68,111,119,110,82,105,103,104,116,86,101,99,116,111,114,66,97,114,59],value:"⥗"},{key:[68,111,119,110,84,101,101,59],value:"⊤"},{key:[68,111,119,110,84,101,101,65,114,114,111,119,59],value:"↧"},{key:[68,111,119,110,97,114,114,111,119,59],value:"⇓"},{key:[68,115,99,114,59],value:"𝒟"},{key:[68,115,116,114,111,107,59],value:"Đ"},{key:[69,78,71,59],value:"Ŋ"},{key:[69,84,72,59],value:"Ð"},{key:[69,97,99,117,116,101,59],value:"É"},{key:[69,99,97,114,111,110,59],value:"Ě"},{key:[69,99,105,114,99,59],value:"Ê"},{key:[69,99,121,59],value:"Э"},{key:[69,100,111,116,59],value:"Ė"},{key:[69,102,114,59],value:"𝔈"},{key:[69,103,114,97,118,101,59],value:"È"},{key:[69,108,101,109,101,110,116,59],value:"∈"},{key:[69,109,97,99,114,59],value:"Ē"},{key:[69,109,112,116,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"◻"},{key:[69,109,112,116,121,86,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"▫"},{key:[69,111,103,111,110,59],value:"Ę"},{key:[69,111,112,102,59],value:"𝔼"},{key:[69,112,115,105,108,111,110,59],value:"Ε"},{key:[69,113,117,97,108,59],value:"⩵"},{key:[69,113,117,97,108,84,105,108,100,101,59],value:"≂"},{key:[69,113,117,105,108,105,98,114,105,117,109,59],value:"⇌"},{key:[69,115,99,114,59],value:"ℰ"},{key:[69,115,105,109,59],value:"⩳"},{key:[69,116,97,59],value:"Η"},{key:[69,117,109,108,59],value:"Ë"},{key:[69,120,105,115,116,115,59],value:"∃"},{key:[69,120,112,111,110,101,110,116,105,97,108,69,59],value:"ⅇ"},{key:[70,99,121,59],value:"Ф"},{key:[70,102,114,59],value:"𝔉"},{key:[70,105,108,108,101,100,83,109,97,108,108,83,113,117,97,114,101,59],value:"◼"},{key:[70,105,108,108,101,100,86,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"▪"},{key:[70,111,112,102,59],value:"𝔽"},{key:[70,111,114,65,108,108,59],value:"∀"},{key:[70,111,117,114,105,101,114,116,114,102,59],value:"ℱ"},{key:[70,115,99,114,59],value:"ℱ"},{key:[71,74,99,121,59],value:"Ѓ"},{key:[71,84,59],value:">"},{key:[71,97,109,109,97,59],value:"Γ"},{key:[71,97,109,109,97,100,59],value:"Ϝ"},{key:[71,98,114,101,118,101,59],value:"Ğ"},{key:[71,99,101,100,105,108,59],value:"Ģ"},{key:[71,99,105,114,99,59],value:"Ĝ"},{key:[71,99,121,59],value:"Г"},{key:[71,100,111,116,59],value:"Ġ"},{key:[71,102,114,59],value:"𝔊"},{key:[71,103,59],value:"⋙"},{key:[71,111,112,102,59],value:"𝔾"},{key:[71,114,101,97,116,101,114,69,113,117,97,108,59],value:"≥"},{key:[71,114,101,97,116,101,114,69,113,117,97,108,76,101,115,115,59],value:"⋛"},{key:[71,114,101,97,116,101,114,70,117,108,108,69,113,117,97,108,59],value:"≧"},{key:[71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"⪢"},{key:[71,114,101,97,116,101,114,76,101,115,115,59],value:"≷"},{key:[71,114,101,97,116,101,114,83,108,97,110,116,69,113,117,97,108,59],value:"⩾"},{key:[71,114,101,97,116,101,114,84,105,108,100,101,59],value:"≳"},{key:[71,115,99,114,59],value:"𝒢"},{key:[71,116,59],value:"≫"},{key:[72,65,82,68,99,121,59],value:"Ъ"},{key:[72,97,99,101,107,59],value:"ˇ"},{key:[72,97,116,59],value:"^"},{key:[72,99,105,114,99,59],value:"Ĥ"},{key:[72,102,114,59],value:"ℌ"},{key:[72,105,108,98,101,114,116,83,112,97,99,101,59],value:"ℋ"},{key:[72,111,112,102,59],value:"ℍ"},{key:[72,111,114,105,122,111,110,116,97,108,76,105,110,101,59],value:"─"},{key:[72,115,99,114,59],value:"ℋ"},{key:[72,115,116,114,111,107,59],value:"Ħ"},{key:[72,117,109,112,68,111,119,110,72,117,109,112,59],value:"≎"},{key:[72,117,109,112,69,113,117,97,108,59],value:"≏"},{key:[73,69,99,121,59],value:"Е"},{key:[73,74,108,105,103,59],value:"IJ"},{key:[73,79,99,121,59],value:"Ё"},{key:[73,97,99,117,116,101,59],value:"Í"},{key:[73,99,105,114,99,59],value:"Î"},{key:[73,99,121,59],value:"И"},{key:[73,100,111,116,59],value:"İ"},{key:[73,102,114,59],value:"ℑ"},{key:[73,103,114,97,118,101,59],value:"Ì"},{key:[73,109,59],value:"ℑ"},{key:[73,109,97,99,114,59],value:"Ī"},{key:[73,109,97,103,105,110,97,114,121,73,59],value:"ⅈ"},{key:[73,109,112,108,105,101,115,59],value:"⇒"},{key:[73,110,116,59],value:"∬"},{key:[73,110,116,101,103,114,97,108,59],value:"∫"},{key:[73,110,116,101,114,115,101,99,116,105,111,110,59],value:"⋂"},{key:[73,110,118,105,115,105,98,108,101,67,111,109,109,97,59],value:"⁣"},{key:[73,110,118,105,115,105,98,108,101,84,105,109,101,115,59],value:"⁢"},{key:[73,111,103,111,110,59],value:"Į"},{key:[73,111,112,102,59],value:"𝕀"},{key:[73,111,116,97,59],value:"Ι"},{key:[73,115,99,114,59],value:"ℐ"},{key:[73,116,105,108,100,101,59],value:"Ĩ"},{key:[73,117,107,99,121,59],value:"І"},{key:[73,117,109,108,59],value:"Ï"},{key:[74,99,105,114,99,59],value:"Ĵ"},{key:[74,99,121,59],value:"Й"},{key:[74,102,114,59],value:"𝔍"},{key:[74,111,112,102,59],value:"𝕁"},{key:[74,115,99,114,59],value:"𝒥"},{key:[74,115,101,114,99,121,59],value:"Ј"},{key:[74,117,107,99,121,59],value:"Є"},{key:[75,72,99,121,59],value:"Х"},{key:[75,74,99,121,59],value:"Ќ"},{key:[75,97,112,112,97,59],value:"Κ"},{key:[75,99,101,100,105,108,59],value:"Ķ"},{key:[75,99,121,59],value:"К"},{key:[75,102,114,59],value:"𝔎"},{key:[75,111,112,102,59],value:"𝕂"},{key:[75,115,99,114,59],value:"𝒦"},{key:[76,74,99,121,59],value:"Љ"},{key:[76,84,59],value:"<"},{key:[76,97,99,117,116,101,59],value:"Ĺ"},{key:[76,97,109,98,100,97,59],value:"Λ"},{key:[76,97,110,103,59],value:"⟪"},{key:[76,97,112,108,97,99,101,116,114,102,59],value:"ℒ"},{key:[76,97,114,114,59],value:"↞"},{key:[76,99,97,114,111,110,59],value:"Ľ"},{key:[76,99,101,100,105,108,59],value:"Ļ"},{key:[76,99,121,59],value:"Л"},{key:[76,101,102,116,65,110,103,108,101,66,114,97,99,107,101,116,59],value:"⟨"},{key:[76,101,102,116,65,114,114,111,119,59],value:"←"},{key:[76,101,102,116,65,114,114,111,119,66,97,114,59],value:"⇤"},{key:[76,101,102,116,65,114,114,111,119,82,105,103,104,116,65,114,114,111,119,59],value:"⇆"},{key:[76,101,102,116,67,101,105,108,105,110,103,59],value:"⌈"},{key:[76,101,102,116,68,111,117,98,108,101,66,114,97,99,107,101,116,59],value:"⟦"},{key:[76,101,102,116,68,111,119,110,84,101,101,86,101,99,116,111,114,59],value:"⥡"},{key:[76,101,102,116,68,111,119,110,86,101,99,116,111,114,59],value:"⇃"},{key:[76,101,102,116,68,111,119,110,86,101,99,116,111,114,66,97,114,59],value:"⥙"},{key:[76,101,102,116,70,108,111,111,114,59],value:"⌊"},{key:[76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"↔"},{key:[76,101,102,116,82,105,103,104,116,86,101,99,116,111,114,59],value:"⥎"},{key:[76,101,102,116,84,101,101,59],value:"⊣"},{key:[76,101,102,116,84,101,101,65,114,114,111,119,59],value:"↤"},{key:[76,101,102,116,84,101,101,86,101,99,116,111,114,59],value:"⥚"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,59],value:"⊲"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧏"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⊴"},{key:[76,101,102,116,85,112,68,111,119,110,86,101,99,116,111,114,59],value:"⥑"},{key:[76,101,102,116,85,112,84,101,101,86,101,99,116,111,114,59],value:"⥠"},{key:[76,101,102,116,85,112,86,101,99,116,111,114,59],value:"↿"},{key:[76,101,102,116,85,112,86,101,99,116,111,114,66,97,114,59],value:"⥘"},{key:[76,101,102,116,86,101,99,116,111,114,59],value:"↼"},{key:[76,101,102,116,86,101,99,116,111,114,66,97,114,59],value:"⥒"},{key:[76,101,102,116,97,114,114,111,119,59],value:"⇐"},{key:[76,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⇔"},{key:[76,101,115,115,69,113,117,97,108,71,114,101,97,116,101,114,59],value:"⋚"},{key:[76,101,115,115,70,117,108,108,69,113,117,97,108,59],value:"≦"},{key:[76,101,115,115,71,114,101,97,116,101,114,59],value:"≶"},{key:[76,101,115,115,76,101,115,115,59],value:"⪡"},{key:[76,101,115,115,83,108,97,110,116,69,113,117,97,108,59],value:"⩽"},{key:[76,101,115,115,84,105,108,100,101,59],value:"≲"},{key:[76,102,114,59],value:"𝔏"},{key:[76,108,59],value:"⋘"},{key:[76,108,101,102,116,97,114,114,111,119,59],value:"⇚"},{key:[76,109,105,100,111,116,59],value:"Ŀ"},{key:[76,111,110,103,76,101,102,116,65,114,114,111,119,59],value:"⟵"},{key:[76,111,110,103,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⟷"},{key:[76,111,110,103,82,105,103,104,116,65,114,114,111,119,59],value:"⟶"},{key:[76,111,110,103,108,101,102,116,97,114,114,111,119,59],value:"⟸"},{key:[76,111,110,103,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⟺"},{key:[76,111,110,103,114,105,103,104,116,97,114,114,111,119,59],value:"⟹"},{key:[76,111,112,102,59],value:"𝕃"},{key:[76,111,119,101,114,76,101,102,116,65,114,114,111,119,59],value:"↙"},{key:[76,111,119,101,114,82,105,103,104,116,65,114,114,111,119,59],value:"↘"},{key:[76,115,99,114,59],value:"ℒ"},{key:[76,115,104,59],value:"↰"},{key:[76,115,116,114,111,107,59],value:"Ł"},{key:[76,116,59],value:"≪"},{key:[77,97,112,59],value:"⤅"},{key:[77,99,121,59],value:"М"},{key:[77,101,100,105,117,109,83,112,97,99,101,59],value:" "},{key:[77,101,108,108,105,110,116,114,102,59],value:"ℳ"},{key:[77,102,114,59],value:"𝔐"},{key:[77,105,110,117,115,80,108,117,115,59],value:"∓"},{key:[77,111,112,102,59],value:"𝕄"},{key:[77,115,99,114,59],value:"ℳ"},{key:[77,117,59],value:"Μ"},{key:[78,74,99,121,59],value:"Њ"},{key:[78,97,99,117,116,101,59],value:"Ń"},{key:[78,99,97,114,111,110,59],value:"Ň"},{key:[78,99,101,100,105,108,59],value:"Ņ"},{key:[78,99,121,59],value:"Н"},{key:[78,101,103,97,116,105,118,101,77,101,100,105,117,109,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,84,104,105,99,107,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,84,104,105,110,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,86,101,114,121,84,104,105,110,83,112,97,99,101,59],value:"​"},{key:[78,101,115,116,101,100,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"≫"},{key:[78,101,115,116,101,100,76,101,115,115,76,101,115,115,59],value:"≪"},{key:[78,101,119,76,105,110,101,59],value:` -`},{key:[78,102,114,59],value:"𝔑"},{key:[78,111,66,114,101,97,107,59],value:"⁠"},{key:[78,111,110,66,114,101,97,107,105,110,103,83,112,97,99,101,59],value:" "},{key:[78,111,112,102,59],value:"ℕ"},{key:[78,111,116,59],value:"⫬"},{key:[78,111,116,67,111,110,103,114,117,101,110,116,59],value:"≢"},{key:[78,111,116,67,117,112,67,97,112,59],value:"≭"},{key:[78,111,116,68,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59],value:"∦"},{key:[78,111,116,69,108,101,109,101,110,116,59],value:"∉"},{key:[78,111,116,69,113,117,97,108,59],value:"≠"},{key:[78,111,116,69,113,117,97,108,84,105,108,100,101,59],value:"≂̸"},{key:[78,111,116,69,120,105,115,116,115,59],value:"∄"},{key:[78,111,116,71,114,101,97,116,101,114,59],value:"≯"},{key:[78,111,116,71,114,101,97,116,101,114,69,113,117,97,108,59],value:"≱"},{key:[78,111,116,71,114,101,97,116,101,114,70,117,108,108,69,113,117,97,108,59],value:"≧̸"},{key:[78,111,116,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"≫̸"},{key:[78,111,116,71,114,101,97,116,101,114,76,101,115,115,59],value:"≹"},{key:[78,111,116,71,114,101,97,116,101,114,83,108,97,110,116,69,113,117,97,108,59],value:"⩾̸"},{key:[78,111,116,71,114,101,97,116,101,114,84,105,108,100,101,59],value:"≵"},{key:[78,111,116,72,117,109,112,68,111,119,110,72,117,109,112,59],value:"≎̸"},{key:[78,111,116,72,117,109,112,69,113,117,97,108,59],value:"≏̸"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,59],value:"⋪"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧏̸"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⋬"},{key:[78,111,116,76,101,115,115,59],value:"≮"},{key:[78,111,116,76,101,115,115,69,113,117,97,108,59],value:"≰"},{key:[78,111,116,76,101,115,115,71,114,101,97,116,101,114,59],value:"≸"},{key:[78,111,116,76,101,115,115,76,101,115,115,59],value:"≪̸"},{key:[78,111,116,76,101,115,115,83,108,97,110,116,69,113,117,97,108,59],value:"⩽̸"},{key:[78,111,116,76,101,115,115,84,105,108,100,101,59],value:"≴"},{key:[78,111,116,78,101,115,116,101,100,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"⪢̸"},{key:[78,111,116,78,101,115,116,101,100,76,101,115,115,76,101,115,115,59],value:"⪡̸"},{key:[78,111,116,80,114,101,99,101,100,101,115,59],value:"⊀"},{key:[78,111,116,80,114,101,99,101,100,101,115,69,113,117,97,108,59],value:"⪯̸"},{key:[78,111,116,80,114,101,99,101,100,101,115,83,108,97,110,116,69,113,117,97,108,59],value:"⋠"},{key:[78,111,116,82,101,118,101,114,115,101,69,108,101,109,101,110,116,59],value:"∌"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,59],value:"⋫"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧐̸"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⋭"},{key:[78,111,116,83,113,117,97,114,101,83,117,98,115,101,116,59],value:"⊏̸"},{key:[78,111,116,83,113,117,97,114,101,83,117,98,115,101,116,69,113,117,97,108,59],value:"⋢"},{key:[78,111,116,83,113,117,97,114,101,83,117,112,101,114,115,101,116,59],value:"⊐̸"},{key:[78,111,116,83,113,117,97,114,101,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⋣"},{key:[78,111,116,83,117,98,115,101,116,59],value:"⊂⃒"},{key:[78,111,116,83,117,98,115,101,116,69,113,117,97,108,59],value:"⊈"},{key:[78,111,116,83,117,99,99,101,101,100,115,59],value:"⊁"},{key:[78,111,116,83,117,99,99,101,101,100,115,69,113,117,97,108,59],value:"⪰̸"},{key:[78,111,116,83,117,99,99,101,101,100,115,83,108,97,110,116,69,113,117,97,108,59],value:"⋡"},{key:[78,111,116,83,117,99,99,101,101,100,115,84,105,108,100,101,59],value:"≿̸"},{key:[78,111,116,83,117,112,101,114,115,101,116,59],value:"⊃⃒"},{key:[78,111,116,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊉"},{key:[78,111,116,84,105,108,100,101,59],value:"≁"},{key:[78,111,116,84,105,108,100,101,69,113,117,97,108,59],value:"≄"},{key:[78,111,116,84,105,108,100,101,70,117,108,108,69,113,117,97,108,59],value:"≇"},{key:[78,111,116,84,105,108,100,101,84,105,108,100,101,59],value:"≉"},{key:[78,111,116,86,101,114,116,105,99,97,108,66,97,114,59],value:"∤"},{key:[78,115,99,114,59],value:"𝒩"},{key:[78,116,105,108,100,101,59],value:"Ñ"},{key:[78,117,59],value:"Ν"},{key:[79,69,108,105,103,59],value:"Œ"},{key:[79,97,99,117,116,101,59],value:"Ó"},{key:[79,99,105,114,99,59],value:"Ô"},{key:[79,99,121,59],value:"О"},{key:[79,100,98,108,97,99,59],value:"Ő"},{key:[79,102,114,59],value:"𝔒"},{key:[79,103,114,97,118,101,59],value:"Ò"},{key:[79,109,97,99,114,59],value:"Ō"},{key:[79,109,101,103,97,59],value:"Ω"},{key:[79,109,105,99,114,111,110,59],value:"Ο"},{key:[79,111,112,102,59],value:"𝕆"},{key:[79,112,101,110,67,117,114,108,121,68,111,117,98,108,101,81,117,111,116,101,59],value:"“"},{key:[79,112,101,110,67,117,114,108,121,81,117,111,116,101,59],value:"‘"},{key:[79,114,59],value:"⩔"},{key:[79,115,99,114,59],value:"𝒪"},{key:[79,115,108,97,115,104,59],value:"Ø"},{key:[79,116,105,108,100,101,59],value:"Õ"},{key:[79,116,105,109,101,115,59],value:"⨷"},{key:[79,117,109,108,59],value:"Ö"},{key:[79,118,101,114,66,97,114,59],value:"‾"},{key:[79,118,101,114,66,114,97,99,101,59],value:"⏞"},{key:[79,118,101,114,66,114,97,99,107,101,116,59],value:"⎴"},{key:[79,118,101,114,80,97,114,101,110,116,104,101,115,105,115,59],value:"⏜"},{key:[80,97,114,116,105,97,108,68,59],value:"∂"},{key:[80,99,121,59],value:"П"},{key:[80,102,114,59],value:"𝔓"},{key:[80,104,105,59],value:"Φ"},{key:[80,105,59],value:"Π"},{key:[80,108,117,115,77,105,110,117,115,59],value:"±"},{key:[80,111,105,110,99,97,114,101,112,108,97,110,101,59],value:"ℌ"},{key:[80,111,112,102,59],value:"ℙ"},{key:[80,114,59],value:"⪻"},{key:[80,114,101,99,101,100,101,115,59],value:"≺"},{key:[80,114,101,99,101,100,101,115,69,113,117,97,108,59],value:"⪯"},{key:[80,114,101,99,101,100,101,115,83,108,97,110,116,69,113,117,97,108,59],value:"≼"},{key:[80,114,101,99,101,100,101,115,84,105,108,100,101,59],value:"≾"},{key:[80,114,105,109,101,59],value:"″"},{key:[80,114,111,100,117,99,116,59],value:"∏"},{key:[80,114,111,112,111,114,116,105,111,110,59],value:"∷"},{key:[80,114,111,112,111,114,116,105,111,110,97,108,59],value:"∝"},{key:[80,115,99,114,59],value:"𝒫"},{key:[80,115,105,59],value:"Ψ"},{key:[81,85,79,84,59],value:'"'},{key:[81,102,114,59],value:"𝔔"},{key:[81,111,112,102,59],value:"ℚ"},{key:[81,115,99,114,59],value:"𝒬"},{key:[82,66,97,114,114,59],value:"⤐"},{key:[82,69,71,59],value:"®"},{key:[82,97,99,117,116,101,59],value:"Ŕ"},{key:[82,97,110,103,59],value:"⟫"},{key:[82,97,114,114,59],value:"↠"},{key:[82,97,114,114,116,108,59],value:"⤖"},{key:[82,99,97,114,111,110,59],value:"Ř"},{key:[82,99,101,100,105,108,59],value:"Ŗ"},{key:[82,99,121,59],value:"Р"},{key:[82,101,59],value:"ℜ"},{key:[82,101,118,101,114,115,101,69,108,101,109,101,110,116,59],value:"∋"},{key:[82,101,118,101,114,115,101,69,113,117,105,108,105,98,114,105,117,109,59],value:"⇋"},{key:[82,101,118,101,114,115,101,85,112,69,113,117,105,108,105,98,114,105,117,109,59],value:"⥯"},{key:[82,102,114,59],value:"ℜ"},{key:[82,104,111,59],value:"Ρ"},{key:[82,105,103,104,116,65,110,103,108,101,66,114,97,99,107,101,116,59],value:"⟩"},{key:[82,105,103,104,116,65,114,114,111,119,59],value:"→"},{key:[82,105,103,104,116,65,114,114,111,119,66,97,114,59],value:"⇥"},{key:[82,105,103,104,116,65,114,114,111,119,76,101,102,116,65,114,114,111,119,59],value:"⇄"},{key:[82,105,103,104,116,67,101,105,108,105,110,103,59],value:"⌉"},{key:[82,105,103,104,116,68,111,117,98,108,101,66,114,97,99,107,101,116,59],value:"⟧"},{key:[82,105,103,104,116,68,111,119,110,84,101,101,86,101,99,116,111,114,59],value:"⥝"},{key:[82,105,103,104,116,68,111,119,110,86,101,99,116,111,114,59],value:"⇂"},{key:[82,105,103,104,116,68,111,119,110,86,101,99,116,111,114,66,97,114,59],value:"⥕"},{key:[82,105,103,104,116,70,108,111,111,114,59],value:"⌋"},{key:[82,105,103,104,116,84,101,101,59],value:"⊢"},{key:[82,105,103,104,116,84,101,101,65,114,114,111,119,59],value:"↦"},{key:[82,105,103,104,116,84,101,101,86,101,99,116,111,114,59],value:"⥛"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,59],value:"⊳"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧐"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⊵"},{key:[82,105,103,104,116,85,112,68,111,119,110,86,101,99,116,111,114,59],value:"⥏"},{key:[82,105,103,104,116,85,112,84,101,101,86,101,99,116,111,114,59],value:"⥜"},{key:[82,105,103,104,116,85,112,86,101,99,116,111,114,59],value:"↾"},{key:[82,105,103,104,116,85,112,86,101,99,116,111,114,66,97,114,59],value:"⥔"},{key:[82,105,103,104,116,86,101,99,116,111,114,59],value:"⇀"},{key:[82,105,103,104,116,86,101,99,116,111,114,66,97,114,59],value:"⥓"},{key:[82,105,103,104,116,97,114,114,111,119,59],value:"⇒"},{key:[82,111,112,102,59],value:"ℝ"},{key:[82,111,117,110,100,73,109,112,108,105,101,115,59],value:"⥰"},{key:[82,114,105,103,104,116,97,114,114,111,119,59],value:"⇛"},{key:[82,115,99,114,59],value:"ℛ"},{key:[82,115,104,59],value:"↱"},{key:[82,117,108,101,68,101,108,97,121,101,100,59],value:"⧴"},{key:[83,72,67,72,99,121,59],value:"Щ"},{key:[83,72,99,121,59],value:"Ш"},{key:[83,79,70,84,99,121,59],value:"Ь"},{key:[83,97,99,117,116,101,59],value:"Ś"},{key:[83,99,59],value:"⪼"},{key:[83,99,97,114,111,110,59],value:"Š"},{key:[83,99,101,100,105,108,59],value:"Ş"},{key:[83,99,105,114,99,59],value:"Ŝ"},{key:[83,99,121,59],value:"С"},{key:[83,102,114,59],value:"𝔖"},{key:[83,104,111,114,116,68,111,119,110,65,114,114,111,119,59],value:"↓"},{key:[83,104,111,114,116,76,101,102,116,65,114,114,111,119,59],value:"←"},{key:[83,104,111,114,116,82,105,103,104,116,65,114,114,111,119,59],value:"→"},{key:[83,104,111,114,116,85,112,65,114,114,111,119,59],value:"↑"},{key:[83,105,103,109,97,59],value:"Σ"},{key:[83,109,97,108,108,67,105,114,99,108,101,59],value:"∘"},{key:[83,111,112,102,59],value:"𝕊"},{key:[83,113,114,116,59],value:"√"},{key:[83,113,117,97,114,101,59],value:"□"},{key:[83,113,117,97,114,101,73,110,116,101,114,115,101,99,116,105,111,110,59],value:"⊓"},{key:[83,113,117,97,114,101,83,117,98,115,101,116,59],value:"⊏"},{key:[83,113,117,97,114,101,83,117,98,115,101,116,69,113,117,97,108,59],value:"⊑"},{key:[83,113,117,97,114,101,83,117,112,101,114,115,101,116,59],value:"⊐"},{key:[83,113,117,97,114,101,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊒"},{key:[83,113,117,97,114,101,85,110,105,111,110,59],value:"⊔"},{key:[83,115,99,114,59],value:"𝒮"},{key:[83,116,97,114,59],value:"⋆"},{key:[83,117,98,59],value:"⋐"},{key:[83,117,98,115,101,116,59],value:"⋐"},{key:[83,117,98,115,101,116,69,113,117,97,108,59],value:"⊆"},{key:[83,117,99,99,101,101,100,115,59],value:"≻"},{key:[83,117,99,99,101,101,100,115,69,113,117,97,108,59],value:"⪰"},{key:[83,117,99,99,101,101,100,115,83,108,97,110,116,69,113,117,97,108,59],value:"≽"},{key:[83,117,99,99,101,101,100,115,84,105,108,100,101,59],value:"≿"},{key:[83,117,99,104,84,104,97,116,59],value:"∋"},{key:[83,117,109,59],value:"∑"},{key:[83,117,112,59],value:"⋑"},{key:[83,117,112,101,114,115,101,116,59],value:"⊃"},{key:[83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊇"},{key:[83,117,112,115,101,116,59],value:"⋑"},{key:[84,72,79,82,78,59],value:"Þ"},{key:[84,82,65,68,69,59],value:"™"},{key:[84,83,72,99,121,59],value:"Ћ"},{key:[84,83,99,121,59],value:"Ц"},{key:[84,97,98,59],value:" "},{key:[84,97,117,59],value:"Τ"},{key:[84,99,97,114,111,110,59],value:"Ť"},{key:[84,99,101,100,105,108,59],value:"Ţ"},{key:[84,99,121,59],value:"Т"},{key:[84,102,114,59],value:"𝔗"},{key:[84,104,101,114,101,102,111,114,101,59],value:"∴"},{key:[84,104,101,116,97,59],value:"Θ"},{key:[84,104,105,99,107,83,112,97,99,101,59],value:"  "},{key:[84,104,105,110,83,112,97,99,101,59],value:" "},{key:[84,105,108,100,101,59],value:"∼"},{key:[84,105,108,100,101,69,113,117,97,108,59],value:"≃"},{key:[84,105,108,100,101,70,117,108,108,69,113,117,97,108,59],value:"≅"},{key:[84,105,108,100,101,84,105,108,100,101,59],value:"≈"},{key:[84,111,112,102,59],value:"𝕋"},{key:[84,114,105,112,108,101,68,111,116,59],value:"⃛"},{key:[84,115,99,114,59],value:"𝒯"},{key:[84,115,116,114,111,107,59],value:"Ŧ"},{key:[85,97,99,117,116,101,59],value:"Ú"},{key:[85,97,114,114,59],value:"↟"},{key:[85,97,114,114,111,99,105,114,59],value:"⥉"},{key:[85,98,114,99,121,59],value:"Ў"},{key:[85,98,114,101,118,101,59],value:"Ŭ"},{key:[85,99,105,114,99,59],value:"Û"},{key:[85,99,121,59],value:"У"},{key:[85,100,98,108,97,99,59],value:"Ű"},{key:[85,102,114,59],value:"𝔘"},{key:[85,103,114,97,118,101,59],value:"Ù"},{key:[85,109,97,99,114,59],value:"Ū"},{key:[85,110,100,101,114,66,97,114,59],value:"_"},{key:[85,110,100,101,114,66,114,97,99,101,59],value:"⏟"},{key:[85,110,100,101,114,66,114,97,99,107,101,116,59],value:"⎵"},{key:[85,110,100,101,114,80,97,114,101,110,116,104,101,115,105,115,59],value:"⏝"},{key:[85,110,105,111,110,59],value:"⋃"},{key:[85,110,105,111,110,80,108,117,115,59],value:"⊎"},{key:[85,111,103,111,110,59],value:"Ų"},{key:[85,111,112,102,59],value:"𝕌"},{key:[85,112,65,114,114,111,119,59],value:"↑"},{key:[85,112,65,114,114,111,119,66,97,114,59],value:"⤒"},{key:[85,112,65,114,114,111,119,68,111,119,110,65,114,114,111,119,59],value:"⇅"},{key:[85,112,68,111,119,110,65,114,114,111,119,59],value:"↕"},{key:[85,112,69,113,117,105,108,105,98,114,105,117,109,59],value:"⥮"},{key:[85,112,84,101,101,59],value:"⊥"},{key:[85,112,84,101,101,65,114,114,111,119,59],value:"↥"},{key:[85,112,97,114,114,111,119,59],value:"⇑"},{key:[85,112,100,111,119,110,97,114,114,111,119,59],value:"⇕"},{key:[85,112,112,101,114,76,101,102,116,65,114,114,111,119,59],value:"↖"},{key:[85,112,112,101,114,82,105,103,104,116,65,114,114,111,119,59],value:"↗"},{key:[85,112,115,105,59],value:"ϒ"},{key:[85,112,115,105,108,111,110,59],value:"Υ"},{key:[85,114,105,110,103,59],value:"Ů"},{key:[85,115,99,114,59],value:"𝒰"},{key:[85,116,105,108,100,101,59],value:"Ũ"},{key:[85,117,109,108,59],value:"Ü"},{key:[86,68,97,115,104,59],value:"⊫"},{key:[86,98,97,114,59],value:"⫫"},{key:[86,99,121,59],value:"В"},{key:[86,100,97,115,104,59],value:"⊩"},{key:[86,100,97,115,104,108,59],value:"⫦"},{key:[86,101,101,59],value:"⋁"},{key:[86,101,114,98,97,114,59],value:"‖"},{key:[86,101,114,116,59],value:"‖"},{key:[86,101,114,116,105,99,97,108,66,97,114,59],value:"∣"},{key:[86,101,114,116,105,99,97,108,76,105,110,101,59],value:"|"},{key:[86,101,114,116,105,99,97,108,83,101,112,97,114,97,116,111,114,59],value:"❘"},{key:[86,101,114,116,105,99,97,108,84,105,108,100,101,59],value:"≀"},{key:[86,101,114,121,84,104,105,110,83,112,97,99,101,59],value:" "},{key:[86,102,114,59],value:"𝔙"},{key:[86,111,112,102,59],value:"𝕍"},{key:[86,115,99,114,59],value:"𝒱"},{key:[86,118,100,97,115,104,59],value:"⊪"},{key:[87,99,105,114,99,59],value:"Ŵ"},{key:[87,101,100,103,101,59],value:"⋀"},{key:[87,102,114,59],value:"𝔚"},{key:[87,111,112,102,59],value:"𝕎"},{key:[87,115,99,114,59],value:"𝒲"},{key:[88,102,114,59],value:"𝔛"},{key:[88,105,59],value:"Ξ"},{key:[88,111,112,102,59],value:"𝕏"},{key:[88,115,99,114,59],value:"𝒳"},{key:[89,65,99,121,59],value:"Я"},{key:[89,73,99,121,59],value:"Ї"},{key:[89,85,99,121,59],value:"Ю"},{key:[89,97,99,117,116,101,59],value:"Ý"},{key:[89,99,105,114,99,59],value:"Ŷ"},{key:[89,99,121,59],value:"Ы"},{key:[89,102,114,59],value:"𝔜"},{key:[89,111,112,102,59],value:"𝕐"},{key:[89,115,99,114,59],value:"𝒴"},{key:[89,117,109,108,59],value:"Ÿ"},{key:[90,72,99,121,59],value:"Ж"},{key:[90,97,99,117,116,101,59],value:"Ź"},{key:[90,99,97,114,111,110,59],value:"Ž"},{key:[90,99,121,59],value:"З"},{key:[90,100,111,116,59],value:"Ż"},{key:[90,101,114,111,87,105,100,116,104,83,112,97,99,101,59],value:"​"},{key:[90,101,116,97,59],value:"Ζ"},{key:[90,102,114,59],value:"ℨ"},{key:[90,111,112,102,59],value:"ℤ"},{key:[90,115,99,114,59],value:"𝒵"},{key:[97,97,99,117,116,101,59],value:"á"},{key:[97,98,114,101,118,101,59],value:"ă"},{key:[97,99,59],value:"∾"},{key:[97,99,69,59],value:"∾̳"},{key:[97,99,100,59],value:"∿"},{key:[97,99,105,114,99,59],value:"â"},{key:[97,99,117,116,101,59],value:"´"},{key:[97,99,121,59],value:"а"},{key:[97,101,108,105,103,59],value:"æ"},{key:[97,102,59],value:"⁡"},{key:[97,102,114,59],value:"𝔞"},{key:[97,103,114,97,118,101,59],value:"à"},{key:[97,108,101,102,115,121,109,59],value:"ℵ"},{key:[97,108,101,112,104,59],value:"ℵ"},{key:[97,108,112,104,97,59],value:"α"},{key:[97,109,97,99,114,59],value:"ā"},{key:[97,109,97,108,103,59],value:"⨿"},{key:[97,109,112,59],value:"&"},{key:[97,110,100,59],value:"∧"},{key:[97,110,100,97,110,100,59],value:"⩕"},{key:[97,110,100,100,59],value:"⩜"},{key:[97,110,100,115,108,111,112,101,59],value:"⩘"},{key:[97,110,100,118,59],value:"⩚"},{key:[97,110,103,59],value:"∠"},{key:[97,110,103,101,59],value:"⦤"},{key:[97,110,103,108,101,59],value:"∠"},{key:[97,110,103,109,115,100,59],value:"∡"},{key:[97,110,103,109,115,100,97,97,59],value:"⦨"},{key:[97,110,103,109,115,100,97,98,59],value:"⦩"},{key:[97,110,103,109,115,100,97,99,59],value:"⦪"},{key:[97,110,103,109,115,100,97,100,59],value:"⦫"},{key:[97,110,103,109,115,100,97,101,59],value:"⦬"},{key:[97,110,103,109,115,100,97,102,59],value:"⦭"},{key:[97,110,103,109,115,100,97,103,59],value:"⦮"},{key:[97,110,103,109,115,100,97,104,59],value:"⦯"},{key:[97,110,103,114,116,59],value:"∟"},{key:[97,110,103,114,116,118,98,59],value:"⊾"},{key:[97,110,103,114,116,118,98,100,59],value:"⦝"},{key:[97,110,103,115,112,104,59],value:"∢"},{key:[97,110,103,115,116,59],value:"Å"},{key:[97,110,103,122,97,114,114,59],value:"⍼"},{key:[97,111,103,111,110,59],value:"ą"},{key:[97,111,112,102,59],value:"𝕒"},{key:[97,112,59],value:"≈"},{key:[97,112,69,59],value:"⩰"},{key:[97,112,97,99,105,114,59],value:"⩯"},{key:[97,112,101,59],value:"≊"},{key:[97,112,105,100,59],value:"≋"},{key:[97,112,111,115,59],value:"'"},{key:[97,112,112,114,111,120,59],value:"≈"},{key:[97,112,112,114,111,120,101,113,59],value:"≊"},{key:[97,114,105,110,103,59],value:"å"},{key:[97,115,99,114,59],value:"𝒶"},{key:[97,115,116,59],value:"*"},{key:[97,115,121,109,112,59],value:"≈"},{key:[97,115,121,109,112,101,113,59],value:"≍"},{key:[97,116,105,108,100,101,59],value:"ã"},{key:[97,117,109,108,59],value:"ä"},{key:[97,119,99,111,110,105,110,116,59],value:"∳"},{key:[97,119,105,110,116,59],value:"⨑"},{key:[98,78,111,116,59],value:"⫭"},{key:[98,97,99,107,99,111,110,103,59],value:"≌"},{key:[98,97,99,107,101,112,115,105,108,111,110,59],value:"϶"},{key:[98,97,99,107,112,114,105,109,101,59],value:"‵"},{key:[98,97,99,107,115,105,109,59],value:"∽"},{key:[98,97,99,107,115,105,109,101,113,59],value:"⋍"},{key:[98,97,114,118,101,101,59],value:"⊽"},{key:[98,97,114,119,101,100,59],value:"⌅"},{key:[98,97,114,119,101,100,103,101,59],value:"⌅"},{key:[98,98,114,107,59],value:"⎵"},{key:[98,98,114,107,116,98,114,107,59],value:"⎶"},{key:[98,99,111,110,103,59],value:"≌"},{key:[98,99,121,59],value:"б"},{key:[98,100,113,117,111,59],value:"„"},{key:[98,101,99,97,117,115,59],value:"∵"},{key:[98,101,99,97,117,115,101,59],value:"∵"},{key:[98,101,109,112,116,121,118,59],value:"⦰"},{key:[98,101,112,115,105,59],value:"϶"},{key:[98,101,114,110,111,117,59],value:"ℬ"},{key:[98,101,116,97,59],value:"β"},{key:[98,101,116,104,59],value:"ℶ"},{key:[98,101,116,119,101,101,110,59],value:"≬"},{key:[98,102,114,59],value:"𝔟"},{key:[98,105,103,99,97,112,59],value:"⋂"},{key:[98,105,103,99,105,114,99,59],value:"◯"},{key:[98,105,103,99,117,112,59],value:"⋃"},{key:[98,105,103,111,100,111,116,59],value:"⨀"},{key:[98,105,103,111,112,108,117,115,59],value:"⨁"},{key:[98,105,103,111,116,105,109,101,115,59],value:"⨂"},{key:[98,105,103,115,113,99,117,112,59],value:"⨆"},{key:[98,105,103,115,116,97,114,59],value:"★"},{key:[98,105,103,116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▽"},{key:[98,105,103,116,114,105,97,110,103,108,101,117,112,59],value:"△"},{key:[98,105,103,117,112,108,117,115,59],value:"⨄"},{key:[98,105,103,118,101,101,59],value:"⋁"},{key:[98,105,103,119,101,100,103,101,59],value:"⋀"},{key:[98,107,97,114,111,119,59],value:"⤍"},{key:[98,108,97,99,107,108,111,122,101,110,103,101,59],value:"⧫"},{key:[98,108,97,99,107,115,113,117,97,114,101,59],value:"▪"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,59],value:"▴"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▾"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"◂"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"▸"},{key:[98,108,97,110,107,59],value:"␣"},{key:[98,108,107,49,50,59],value:"▒"},{key:[98,108,107,49,52,59],value:"░"},{key:[98,108,107,51,52,59],value:"▓"},{key:[98,108,111,99,107,59],value:"█"},{key:[98,110,101,59],value:"=⃥"},{key:[98,110,101,113,117,105,118,59],value:"≡⃥"},{key:[98,110,111,116,59],value:"⌐"},{key:[98,111,112,102,59],value:"𝕓"},{key:[98,111,116,59],value:"⊥"},{key:[98,111,116,116,111,109,59],value:"⊥"},{key:[98,111,119,116,105,101,59],value:"⋈"},{key:[98,111,120,68,76,59],value:"╗"},{key:[98,111,120,68,82,59],value:"╔"},{key:[98,111,120,68,108,59],value:"╖"},{key:[98,111,120,68,114,59],value:"╓"},{key:[98,111,120,72,59],value:"═"},{key:[98,111,120,72,68,59],value:"╦"},{key:[98,111,120,72,85,59],value:"╩"},{key:[98,111,120,72,100,59],value:"╤"},{key:[98,111,120,72,117,59],value:"╧"},{key:[98,111,120,85,76,59],value:"╝"},{key:[98,111,120,85,82,59],value:"╚"},{key:[98,111,120,85,108,59],value:"╜"},{key:[98,111,120,85,114,59],value:"╙"},{key:[98,111,120,86,59],value:"║"},{key:[98,111,120,86,72,59],value:"╬"},{key:[98,111,120,86,76,59],value:"╣"},{key:[98,111,120,86,82,59],value:"╠"},{key:[98,111,120,86,104,59],value:"╫"},{key:[98,111,120,86,108,59],value:"╢"},{key:[98,111,120,86,114,59],value:"╟"},{key:[98,111,120,98,111,120,59],value:"⧉"},{key:[98,111,120,100,76,59],value:"╕"},{key:[98,111,120,100,82,59],value:"╒"},{key:[98,111,120,100,108,59],value:"┐"},{key:[98,111,120,100,114,59],value:"┌"},{key:[98,111,120,104,59],value:"─"},{key:[98,111,120,104,68,59],value:"╥"},{key:[98,111,120,104,85,59],value:"╨"},{key:[98,111,120,104,100,59],value:"┬"},{key:[98,111,120,104,117,59],value:"┴"},{key:[98,111,120,109,105,110,117,115,59],value:"⊟"},{key:[98,111,120,112,108,117,115,59],value:"⊞"},{key:[98,111,120,116,105,109,101,115,59],value:"⊠"},{key:[98,111,120,117,76,59],value:"╛"},{key:[98,111,120,117,82,59],value:"╘"},{key:[98,111,120,117,108,59],value:"┘"},{key:[98,111,120,117,114,59],value:"└"},{key:[98,111,120,118,59],value:"│"},{key:[98,111,120,118,72,59],value:"╪"},{key:[98,111,120,118,76,59],value:"╡"},{key:[98,111,120,118,82,59],value:"╞"},{key:[98,111,120,118,104,59],value:"┼"},{key:[98,111,120,118,108,59],value:"┤"},{key:[98,111,120,118,114,59],value:"├"},{key:[98,112,114,105,109,101,59],value:"‵"},{key:[98,114,101,118,101,59],value:"˘"},{key:[98,114,118,98,97,114,59],value:"¦"},{key:[98,115,99,114,59],value:"𝒷"},{key:[98,115,101,109,105,59],value:"⁏"},{key:[98,115,105,109,59],value:"∽"},{key:[98,115,105,109,101,59],value:"⋍"},{key:[98,115,111,108,59],value:"\\"},{key:[98,115,111,108,98,59],value:"⧅"},{key:[98,115,111,108,104,115,117,98,59],value:"⟈"},{key:[98,117,108,108,59],value:"•"},{key:[98,117,108,108,101,116,59],value:"•"},{key:[98,117,109,112,59],value:"≎"},{key:[98,117,109,112,69,59],value:"⪮"},{key:[98,117,109,112,101,59],value:"≏"},{key:[98,117,109,112,101,113,59],value:"≏"},{key:[99,97,99,117,116,101,59],value:"ć"},{key:[99,97,112,59],value:"∩"},{key:[99,97,112,97,110,100,59],value:"⩄"},{key:[99,97,112,98,114,99,117,112,59],value:"⩉"},{key:[99,97,112,99,97,112,59],value:"⩋"},{key:[99,97,112,99,117,112,59],value:"⩇"},{key:[99,97,112,100,111,116,59],value:"⩀"},{key:[99,97,112,115,59],value:"∩︀"},{key:[99,97,114,101,116,59],value:"⁁"},{key:[99,97,114,111,110,59],value:"ˇ"},{key:[99,99,97,112,115,59],value:"⩍"},{key:[99,99,97,114,111,110,59],value:"č"},{key:[99,99,101,100,105,108,59],value:"ç"},{key:[99,99,105,114,99,59],value:"ĉ"},{key:[99,99,117,112,115,59],value:"⩌"},{key:[99,99,117,112,115,115,109,59],value:"⩐"},{key:[99,100,111,116,59],value:"ċ"},{key:[99,101,100,105,108,59],value:"¸"},{key:[99,101,109,112,116,121,118,59],value:"⦲"},{key:[99,101,110,116,59],value:"¢"},{key:[99,101,110,116,101,114,100,111,116,59],value:"·"},{key:[99,102,114,59],value:"𝔠"},{key:[99,104,99,121,59],value:"ч"},{key:[99,104,101,99,107,59],value:"✓"},{key:[99,104,101,99,107,109,97,114,107,59],value:"✓"},{key:[99,104,105,59],value:"χ"},{key:[99,105,114,59],value:"○"},{key:[99,105,114,69,59],value:"⧃"},{key:[99,105,114,99,59],value:"ˆ"},{key:[99,105,114,99,101,113,59],value:"≗"},{key:[99,105,114,99,108,101,97,114,114,111,119,108,101,102,116,59],value:"↺"},{key:[99,105,114,99,108,101,97,114,114,111,119,114,105,103,104,116,59],value:"↻"},{key:[99,105,114,99,108,101,100,82,59],value:"®"},{key:[99,105,114,99,108,101,100,83,59],value:"Ⓢ"},{key:[99,105,114,99,108,101,100,97,115,116,59],value:"⊛"},{key:[99,105,114,99,108,101,100,99,105,114,99,59],value:"⊚"},{key:[99,105,114,99,108,101,100,100,97,115,104,59],value:"⊝"},{key:[99,105,114,101,59],value:"≗"},{key:[99,105,114,102,110,105,110,116,59],value:"⨐"},{key:[99,105,114,109,105,100,59],value:"⫯"},{key:[99,105,114,115,99,105,114,59],value:"⧂"},{key:[99,108,117,98,115,59],value:"♣"},{key:[99,108,117,98,115,117,105,116,59],value:"♣"},{key:[99,111,108,111,110,59],value:":"},{key:[99,111,108,111,110,101,59],value:"≔"},{key:[99,111,108,111,110,101,113,59],value:"≔"},{key:[99,111,109,109,97,59],value:","},{key:[99,111,109,109,97,116,59],value:"@"},{key:[99,111,109,112,59],value:"∁"},{key:[99,111,109,112,102,110,59],value:"∘"},{key:[99,111,109,112,108,101,109,101,110,116,59],value:"∁"},{key:[99,111,109,112,108,101,120,101,115,59],value:"ℂ"},{key:[99,111,110,103,59],value:"≅"},{key:[99,111,110,103,100,111,116,59],value:"⩭"},{key:[99,111,110,105,110,116,59],value:"∮"},{key:[99,111,112,102,59],value:"𝕔"},{key:[99,111,112,114,111,100,59],value:"∐"},{key:[99,111,112,121,59],value:"©"},{key:[99,111,112,121,115,114,59],value:"℗"},{key:[99,114,97,114,114,59],value:"↵"},{key:[99,114,111,115,115,59],value:"✗"},{key:[99,115,99,114,59],value:"𝒸"},{key:[99,115,117,98,59],value:"⫏"},{key:[99,115,117,98,101,59],value:"⫑"},{key:[99,115,117,112,59],value:"⫐"},{key:[99,115,117,112,101,59],value:"⫒"},{key:[99,116,100,111,116,59],value:"⋯"},{key:[99,117,100,97,114,114,108,59],value:"⤸"},{key:[99,117,100,97,114,114,114,59],value:"⤵"},{key:[99,117,101,112,114,59],value:"⋞"},{key:[99,117,101,115,99,59],value:"⋟"},{key:[99,117,108,97,114,114,59],value:"↶"},{key:[99,117,108,97,114,114,112,59],value:"⤽"},{key:[99,117,112,59],value:"∪"},{key:[99,117,112,98,114,99,97,112,59],value:"⩈"},{key:[99,117,112,99,97,112,59],value:"⩆"},{key:[99,117,112,99,117,112,59],value:"⩊"},{key:[99,117,112,100,111,116,59],value:"⊍"},{key:[99,117,112,111,114,59],value:"⩅"},{key:[99,117,112,115,59],value:"∪︀"},{key:[99,117,114,97,114,114,59],value:"↷"},{key:[99,117,114,97,114,114,109,59],value:"⤼"},{key:[99,117,114,108,121,101,113,112,114,101,99,59],value:"⋞"},{key:[99,117,114,108,121,101,113,115,117,99,99,59],value:"⋟"},{key:[99,117,114,108,121,118,101,101,59],value:"⋎"},{key:[99,117,114,108,121,119,101,100,103,101,59],value:"⋏"},{key:[99,117,114,114,101,110,59],value:"¤"},{key:[99,117,114,118,101,97,114,114,111,119,108,101,102,116,59],value:"↶"},{key:[99,117,114,118,101,97,114,114,111,119,114,105,103,104,116,59],value:"↷"},{key:[99,117,118,101,101,59],value:"⋎"},{key:[99,117,119,101,100,59],value:"⋏"},{key:[99,119,99,111,110,105,110,116,59],value:"∲"},{key:[99,119,105,110,116,59],value:"∱"},{key:[99,121,108,99,116,121,59],value:"⌭"},{key:[100,65,114,114,59],value:"⇓"},{key:[100,72,97,114,59],value:"⥥"},{key:[100,97,103,103,101,114,59],value:"†"},{key:[100,97,108,101,116,104,59],value:"ℸ"},{key:[100,97,114,114,59],value:"↓"},{key:[100,97,115,104,59],value:"‐"},{key:[100,97,115,104,118,59],value:"⊣"},{key:[100,98,107,97,114,111,119,59],value:"⤏"},{key:[100,98,108,97,99,59],value:"˝"},{key:[100,99,97,114,111,110,59],value:"ď"},{key:[100,99,121,59],value:"д"},{key:[100,100,59],value:"ⅆ"},{key:[100,100,97,103,103,101,114,59],value:"‡"},{key:[100,100,97,114,114,59],value:"⇊"},{key:[100,100,111,116,115,101,113,59],value:"⩷"},{key:[100,101,103,59],value:"°"},{key:[100,101,108,116,97,59],value:"δ"},{key:[100,101,109,112,116,121,118,59],value:"⦱"},{key:[100,102,105,115,104,116,59],value:"⥿"},{key:[100,102,114,59],value:"𝔡"},{key:[100,104,97,114,108,59],value:"⇃"},{key:[100,104,97,114,114,59],value:"⇂"},{key:[100,105,97,109,59],value:"⋄"},{key:[100,105,97,109,111,110,100,59],value:"⋄"},{key:[100,105,97,109,111,110,100,115,117,105,116,59],value:"♦"},{key:[100,105,97,109,115,59],value:"♦"},{key:[100,105,101,59],value:"¨"},{key:[100,105,103,97,109,109,97,59],value:"ϝ"},{key:[100,105,115,105,110,59],value:"⋲"},{key:[100,105,118,59],value:"÷"},{key:[100,105,118,105,100,101,59],value:"÷"},{key:[100,105,118,105,100,101,111,110,116,105,109,101,115,59],value:"⋇"},{key:[100,105,118,111,110,120,59],value:"⋇"},{key:[100,106,99,121,59],value:"ђ"},{key:[100,108,99,111,114,110,59],value:"⌞"},{key:[100,108,99,114,111,112,59],value:"⌍"},{key:[100,111,108,108,97,114,59],value:"$"},{key:[100,111,112,102,59],value:"𝕕"},{key:[100,111,116,59],value:"˙"},{key:[100,111,116,101,113,59],value:"≐"},{key:[100,111,116,101,113,100,111,116,59],value:"≑"},{key:[100,111,116,109,105,110,117,115,59],value:"∸"},{key:[100,111,116,112,108,117,115,59],value:"∔"},{key:[100,111,116,115,113,117,97,114,101,59],value:"⊡"},{key:[100,111,117,98,108,101,98,97,114,119,101,100,103,101,59],value:"⌆"},{key:[100,111,119,110,97,114,114,111,119,59],value:"↓"},{key:[100,111,119,110,100,111,119,110,97,114,114,111,119,115,59],value:"⇊"},{key:[100,111,119,110,104,97,114,112,111,111,110,108,101,102,116,59],value:"⇃"},{key:[100,111,119,110,104,97,114,112,111,111,110,114,105,103,104,116,59],value:"⇂"},{key:[100,114,98,107,97,114,111,119,59],value:"⤐"},{key:[100,114,99,111,114,110,59],value:"⌟"},{key:[100,114,99,114,111,112,59],value:"⌌"},{key:[100,115,99,114,59],value:"𝒹"},{key:[100,115,99,121,59],value:"ѕ"},{key:[100,115,111,108,59],value:"⧶"},{key:[100,115,116,114,111,107,59],value:"đ"},{key:[100,116,100,111,116,59],value:"⋱"},{key:[100,116,114,105,59],value:"▿"},{key:[100,116,114,105,102,59],value:"▾"},{key:[100,117,97,114,114,59],value:"⇵"},{key:[100,117,104,97,114,59],value:"⥯"},{key:[100,119,97,110,103,108,101,59],value:"⦦"},{key:[100,122,99,121,59],value:"џ"},{key:[100,122,105,103,114,97,114,114,59],value:"⟿"},{key:[101,68,68,111,116,59],value:"⩷"},{key:[101,68,111,116,59],value:"≑"},{key:[101,97,99,117,116,101,59],value:"é"},{key:[101,97,115,116,101,114,59],value:"⩮"},{key:[101,99,97,114,111,110,59],value:"ě"},{key:[101,99,105,114,59],value:"≖"},{key:[101,99,105,114,99,59],value:"ê"},{key:[101,99,111,108,111,110,59],value:"≕"},{key:[101,99,121,59],value:"э"},{key:[101,100,111,116,59],value:"ė"},{key:[101,101,59],value:"ⅇ"},{key:[101,102,68,111,116,59],value:"≒"},{key:[101,102,114,59],value:"𝔢"},{key:[101,103,59],value:"⪚"},{key:[101,103,114,97,118,101,59],value:"è"},{key:[101,103,115,59],value:"⪖"},{key:[101,103,115,100,111,116,59],value:"⪘"},{key:[101,108,59],value:"⪙"},{key:[101,108,105,110,116,101,114,115,59],value:"⏧"},{key:[101,108,108,59],value:"ℓ"},{key:[101,108,115,59],value:"⪕"},{key:[101,108,115,100,111,116,59],value:"⪗"},{key:[101,109,97,99,114,59],value:"ē"},{key:[101,109,112,116,121,59],value:"∅"},{key:[101,109,112,116,121,115,101,116,59],value:"∅"},{key:[101,109,112,116,121,118,59],value:"∅"},{key:[101,109,115,112,49,51,59],value:" "},{key:[101,109,115,112,49,52,59],value:" "},{key:[101,109,115,112,59],value:" "},{key:[101,110,103,59],value:"ŋ"},{key:[101,110,115,112,59],value:" "},{key:[101,111,103,111,110,59],value:"ę"},{key:[101,111,112,102,59],value:"𝕖"},{key:[101,112,97,114,59],value:"⋕"},{key:[101,112,97,114,115,108,59],value:"⧣"},{key:[101,112,108,117,115,59],value:"⩱"},{key:[101,112,115,105,59],value:"ε"},{key:[101,112,115,105,108,111,110,59],value:"ε"},{key:[101,112,115,105,118,59],value:"ϵ"},{key:[101,113,99,105,114,99,59],value:"≖"},{key:[101,113,99,111,108,111,110,59],value:"≕"},{key:[101,113,115,105,109,59],value:"≂"},{key:[101,113,115,108,97,110,116,103,116,114,59],value:"⪖"},{key:[101,113,115,108,97,110,116,108,101,115,115,59],value:"⪕"},{key:[101,113,117,97,108,115,59],value:"="},{key:[101,113,117,101,115,116,59],value:"≟"},{key:[101,113,117,105,118,59],value:"≡"},{key:[101,113,117,105,118,68,68,59],value:"⩸"},{key:[101,113,118,112,97,114,115,108,59],value:"⧥"},{key:[101,114,68,111,116,59],value:"≓"},{key:[101,114,97,114,114,59],value:"⥱"},{key:[101,115,99,114,59],value:"ℯ"},{key:[101,115,100,111,116,59],value:"≐"},{key:[101,115,105,109,59],value:"≂"},{key:[101,116,97,59],value:"η"},{key:[101,116,104,59],value:"ð"},{key:[101,117,109,108,59],value:"ë"},{key:[101,117,114,111,59],value:"€"},{key:[101,120,99,108,59],value:"!"},{key:[101,120,105,115,116,59],value:"∃"},{key:[101,120,112,101,99,116,97,116,105,111,110,59],value:"ℰ"},{key:[101,120,112,111,110,101,110,116,105,97,108,101,59],value:"ⅇ"},{key:[102,97,108,108,105,110,103,100,111,116,115,101,113,59],value:"≒"},{key:[102,99,121,59],value:"ф"},{key:[102,101,109,97,108,101,59],value:"♀"},{key:[102,102,105,108,105,103,59],value:"ffi"},{key:[102,102,108,105,103,59],value:"ff"},{key:[102,102,108,108,105,103,59],value:"ffl"},{key:[102,102,114,59],value:"𝔣"},{key:[102,105,108,105,103,59],value:"fi"},{key:[102,106,108,105,103,59],value:"fj"},{key:[102,108,97,116,59],value:"♭"},{key:[102,108,108,105,103,59],value:"fl"},{key:[102,108,116,110,115,59],value:"▱"},{key:[102,110,111,102,59],value:"ƒ"},{key:[102,111,112,102,59],value:"𝕗"},{key:[102,111,114,97,108,108,59],value:"∀"},{key:[102,111,114,107,59],value:"⋔"},{key:[102,111,114,107,118,59],value:"⫙"},{key:[102,112,97,114,116,105,110,116,59],value:"⨍"},{key:[102,114,97,99,49,50,59],value:"½"},{key:[102,114,97,99,49,51,59],value:"⅓"},{key:[102,114,97,99,49,52,59],value:"¼"},{key:[102,114,97,99,49,53,59],value:"⅕"},{key:[102,114,97,99,49,54,59],value:"⅙"},{key:[102,114,97,99,49,56,59],value:"⅛"},{key:[102,114,97,99,50,51,59],value:"⅔"},{key:[102,114,97,99,50,53,59],value:"⅖"},{key:[102,114,97,99,51,52,59],value:"¾"},{key:[102,114,97,99,51,53,59],value:"⅗"},{key:[102,114,97,99,51,56,59],value:"⅜"},{key:[102,114,97,99,52,53,59],value:"⅘"},{key:[102,114,97,99,53,54,59],value:"⅚"},{key:[102,114,97,99,53,56,59],value:"⅝"},{key:[102,114,97,99,55,56,59],value:"⅞"},{key:[102,114,97,115,108,59],value:"⁄"},{key:[102,114,111,119,110,59],value:"⌢"},{key:[102,115,99,114,59],value:"𝒻"},{key:[103,69,59],value:"≧"},{key:[103,69,108,59],value:"⪌"},{key:[103,97,99,117,116,101,59],value:"ǵ"},{key:[103,97,109,109,97,59],value:"γ"},{key:[103,97,109,109,97,100,59],value:"ϝ"},{key:[103,97,112,59],value:"⪆"},{key:[103,98,114,101,118,101,59],value:"ğ"},{key:[103,99,105,114,99,59],value:"ĝ"},{key:[103,99,121,59],value:"г"},{key:[103,100,111,116,59],value:"ġ"},{key:[103,101,59],value:"≥"},{key:[103,101,108,59],value:"⋛"},{key:[103,101,113,59],value:"≥"},{key:[103,101,113,113,59],value:"≧"},{key:[103,101,113,115,108,97,110,116,59],value:"⩾"},{key:[103,101,115,59],value:"⩾"},{key:[103,101,115,99,99,59],value:"⪩"},{key:[103,101,115,100,111,116,59],value:"⪀"},{key:[103,101,115,100,111,116,111,59],value:"⪂"},{key:[103,101,115,100,111,116,111,108,59],value:"⪄"},{key:[103,101,115,108,59],value:"⋛︀"},{key:[103,101,115,108,101,115,59],value:"⪔"},{key:[103,102,114,59],value:"𝔤"},{key:[103,103,59],value:"≫"},{key:[103,103,103,59],value:"⋙"},{key:[103,105,109,101,108,59],value:"ℷ"},{key:[103,106,99,121,59],value:"ѓ"},{key:[103,108,59],value:"≷"},{key:[103,108,69,59],value:"⪒"},{key:[103,108,97,59],value:"⪥"},{key:[103,108,106,59],value:"⪤"},{key:[103,110,69,59],value:"≩"},{key:[103,110,97,112,59],value:"⪊"},{key:[103,110,97,112,112,114,111,120,59],value:"⪊"},{key:[103,110,101,59],value:"⪈"},{key:[103,110,101,113,59],value:"⪈"},{key:[103,110,101,113,113,59],value:"≩"},{key:[103,110,115,105,109,59],value:"⋧"},{key:[103,111,112,102,59],value:"𝕘"},{key:[103,114,97,118,101,59],value:"`"},{key:[103,115,99,114,59],value:"ℊ"},{key:[103,115,105,109,59],value:"≳"},{key:[103,115,105,109,101,59],value:"⪎"},{key:[103,115,105,109,108,59],value:"⪐"},{key:[103,116,59],value:">"},{key:[103,116,99,99,59],value:"⪧"},{key:[103,116,99,105,114,59],value:"⩺"},{key:[103,116,100,111,116,59],value:"⋗"},{key:[103,116,108,80,97,114,59],value:"⦕"},{key:[103,116,113,117,101,115,116,59],value:"⩼"},{key:[103,116,114,97,112,112,114,111,120,59],value:"⪆"},{key:[103,116,114,97,114,114,59],value:"⥸"},{key:[103,116,114,100,111,116,59],value:"⋗"},{key:[103,116,114,101,113,108,101,115,115,59],value:"⋛"},{key:[103,116,114,101,113,113,108,101,115,115,59],value:"⪌"},{key:[103,116,114,108,101,115,115,59],value:"≷"},{key:[103,116,114,115,105,109,59],value:"≳"},{key:[103,118,101,114,116,110,101,113,113,59],value:"≩︀"},{key:[103,118,110,69,59],value:"≩︀"},{key:[104,65,114,114,59],value:"⇔"},{key:[104,97,105,114,115,112,59],value:" "},{key:[104,97,108,102,59],value:"½"},{key:[104,97,109,105,108,116,59],value:"ℋ"},{key:[104,97,114,100,99,121,59],value:"ъ"},{key:[104,97,114,114,59],value:"↔"},{key:[104,97,114,114,99,105,114,59],value:"⥈"},{key:[104,97,114,114,119,59],value:"↭"},{key:[104,98,97,114,59],value:"ℏ"},{key:[104,99,105,114,99,59],value:"ĥ"},{key:[104,101,97,114,116,115,59],value:"♥"},{key:[104,101,97,114,116,115,117,105,116,59],value:"♥"},{key:[104,101,108,108,105,112,59],value:"…"},{key:[104,101,114,99,111,110,59],value:"⊹"},{key:[104,102,114,59],value:"𝔥"},{key:[104,107,115,101,97,114,111,119,59],value:"⤥"},{key:[104,107,115,119,97,114,111,119,59],value:"⤦"},{key:[104,111,97,114,114,59],value:"⇿"},{key:[104,111,109,116,104,116,59],value:"∻"},{key:[104,111,111,107,108,101,102,116,97,114,114,111,119,59],value:"↩"},{key:[104,111,111,107,114,105,103,104,116,97,114,114,111,119,59],value:"↪"},{key:[104,111,112,102,59],value:"𝕙"},{key:[104,111,114,98,97,114,59],value:"―"},{key:[104,115,99,114,59],value:"𝒽"},{key:[104,115,108,97,115,104,59],value:"ℏ"},{key:[104,115,116,114,111,107,59],value:"ħ"},{key:[104,121,98,117,108,108,59],value:"⁃"},{key:[104,121,112,104,101,110,59],value:"‐"},{key:[105,97,99,117,116,101,59],value:"í"},{key:[105,99,59],value:"⁣"},{key:[105,99,105,114,99,59],value:"î"},{key:[105,99,121,59],value:"и"},{key:[105,101,99,121,59],value:"е"},{key:[105,101,120,99,108,59],value:"¡"},{key:[105,102,102,59],value:"⇔"},{key:[105,102,114,59],value:"𝔦"},{key:[105,103,114,97,118,101,59],value:"ì"},{key:[105,105,59],value:"ⅈ"},{key:[105,105,105,105,110,116,59],value:"⨌"},{key:[105,105,105,110,116,59],value:"∭"},{key:[105,105,110,102,105,110,59],value:"⧜"},{key:[105,105,111,116,97,59],value:"℩"},{key:[105,106,108,105,103,59],value:"ij"},{key:[105,109,97,99,114,59],value:"ī"},{key:[105,109,97,103,101,59],value:"ℑ"},{key:[105,109,97,103,108,105,110,101,59],value:"ℐ"},{key:[105,109,97,103,112,97,114,116,59],value:"ℑ"},{key:[105,109,97,116,104,59],value:"ı"},{key:[105,109,111,102,59],value:"⊷"},{key:[105,109,112,101,100,59],value:"Ƶ"},{key:[105,110,59],value:"∈"},{key:[105,110,99,97,114,101,59],value:"℅"},{key:[105,110,102,105,110,59],value:"∞"},{key:[105,110,102,105,110,116,105,101,59],value:"⧝"},{key:[105,110,111,100,111,116,59],value:"ı"},{key:[105,110,116,59],value:"∫"},{key:[105,110,116,99,97,108,59],value:"⊺"},{key:[105,110,116,101,103,101,114,115,59],value:"ℤ"},{key:[105,110,116,101,114,99,97,108,59],value:"⊺"},{key:[105,110,116,108,97,114,104,107,59],value:"⨗"},{key:[105,110,116,112,114,111,100,59],value:"⨼"},{key:[105,111,99,121,59],value:"ё"},{key:[105,111,103,111,110,59],value:"į"},{key:[105,111,112,102,59],value:"𝕚"},{key:[105,111,116,97,59],value:"ι"},{key:[105,112,114,111,100,59],value:"⨼"},{key:[105,113,117,101,115,116,59],value:"¿"},{key:[105,115,99,114,59],value:"𝒾"},{key:[105,115,105,110,59],value:"∈"},{key:[105,115,105,110,69,59],value:"⋹"},{key:[105,115,105,110,100,111,116,59],value:"⋵"},{key:[105,115,105,110,115,59],value:"⋴"},{key:[105,115,105,110,115,118,59],value:"⋳"},{key:[105,115,105,110,118,59],value:"∈"},{key:[105,116,59],value:"⁢"},{key:[105,116,105,108,100,101,59],value:"ĩ"},{key:[105,117,107,99,121,59],value:"і"},{key:[105,117,109,108,59],value:"ï"},{key:[106,99,105,114,99,59],value:"ĵ"},{key:[106,99,121,59],value:"й"},{key:[106,102,114,59],value:"𝔧"},{key:[106,109,97,116,104,59],value:"ȷ"},{key:[106,111,112,102,59],value:"𝕛"},{key:[106,115,99,114,59],value:"𝒿"},{key:[106,115,101,114,99,121,59],value:"ј"},{key:[106,117,107,99,121,59],value:"є"},{key:[107,97,112,112,97,59],value:"κ"},{key:[107,97,112,112,97,118,59],value:"ϰ"},{key:[107,99,101,100,105,108,59],value:"ķ"},{key:[107,99,121,59],value:"к"},{key:[107,102,114,59],value:"𝔨"},{key:[107,103,114,101,101,110,59],value:"ĸ"},{key:[107,104,99,121,59],value:"х"},{key:[107,106,99,121,59],value:"ќ"},{key:[107,111,112,102,59],value:"𝕜"},{key:[107,115,99,114,59],value:"𝓀"},{key:[108,65,97,114,114,59],value:"⇚"},{key:[108,65,114,114,59],value:"⇐"},{key:[108,65,116,97,105,108,59],value:"⤛"},{key:[108,66,97,114,114,59],value:"⤎"},{key:[108,69,59],value:"≦"},{key:[108,69,103,59],value:"⪋"},{key:[108,72,97,114,59],value:"⥢"},{key:[108,97,99,117,116,101,59],value:"ĺ"},{key:[108,97,101,109,112,116,121,118,59],value:"⦴"},{key:[108,97,103,114,97,110,59],value:"ℒ"},{key:[108,97,109,98,100,97,59],value:"λ"},{key:[108,97,110,103,59],value:"⟨"},{key:[108,97,110,103,100,59],value:"⦑"},{key:[108,97,110,103,108,101,59],value:"⟨"},{key:[108,97,112,59],value:"⪅"},{key:[108,97,113,117,111,59],value:"«"},{key:[108,97,114,114,59],value:"←"},{key:[108,97,114,114,98,59],value:"⇤"},{key:[108,97,114,114,98,102,115,59],value:"⤟"},{key:[108,97,114,114,102,115,59],value:"⤝"},{key:[108,97,114,114,104,107,59],value:"↩"},{key:[108,97,114,114,108,112,59],value:"↫"},{key:[108,97,114,114,112,108,59],value:"⤹"},{key:[108,97,114,114,115,105,109,59],value:"⥳"},{key:[108,97,114,114,116,108,59],value:"↢"},{key:[108,97,116,59],value:"⪫"},{key:[108,97,116,97,105,108,59],value:"⤙"},{key:[108,97,116,101,59],value:"⪭"},{key:[108,97,116,101,115,59],value:"⪭︀"},{key:[108,98,97,114,114,59],value:"⤌"},{key:[108,98,98,114,107,59],value:"❲"},{key:[108,98,114,97,99,101,59],value:"{ "},{key:[108,98,114,97,99,107,59],value:"["},{key:[108,98,114,107,101,59],value:"⦋"},{key:[108,98,114,107,115,108,100,59],value:"⦏"},{key:[108,98,114,107,115,108,117,59],value:"⦍"},{key:[108,99,97,114,111,110,59],value:"ľ"},{key:[108,99,101,100,105,108,59],value:"ļ"},{key:[108,99,101,105,108,59],value:"⌈"},{key:[108,99,117,98,59],value:"{ "},{key:[108,99,121,59],value:"л"},{key:[108,100,99,97,59],value:"⤶"},{key:[108,100,113,117,111,59],value:"“"},{key:[108,100,113,117,111,114,59],value:"„"},{key:[108,100,114,100,104,97,114,59],value:"⥧"},{key:[108,100,114,117,115,104,97,114,59],value:"⥋"},{key:[108,100,115,104,59],value:"↲"},{key:[108,101,59],value:"≤"},{key:[108,101,102,116,97,114,114,111,119,59],value:"←"},{key:[108,101,102,116,97,114,114,111,119,116,97,105,108,59],value:"↢"},{key:[108,101,102,116,104,97,114,112,111,111,110,100,111,119,110,59],value:"↽"},{key:[108,101,102,116,104,97,114,112,111,111,110,117,112,59],value:"↼"},{key:[108,101,102,116,108,101,102,116,97,114,114,111,119,115,59],value:"⇇"},{key:[108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"↔"},{key:[108,101,102,116,114,105,103,104,116,97,114,114,111,119,115,59],value:"⇆"},{key:[108,101,102,116,114,105,103,104,116,104,97,114,112,111,111,110,115,59],value:"⇋"},{key:[108,101,102,116,114,105,103,104,116,115,113,117,105,103,97,114,114,111,119,59],value:"↭"},{key:[108,101,102,116,116,104,114,101,101,116,105,109,101,115,59],value:"⋋"},{key:[108,101,103,59],value:"⋚"},{key:[108,101,113,59],value:"≤"},{key:[108,101,113,113,59],value:"≦"},{key:[108,101,113,115,108,97,110,116,59],value:"⩽"},{key:[108,101,115,59],value:"⩽"},{key:[108,101,115,99,99,59],value:"⪨"},{key:[108,101,115,100,111,116,59],value:"⩿"},{key:[108,101,115,100,111,116,111,59],value:"⪁"},{key:[108,101,115,100,111,116,111,114,59],value:"⪃"},{key:[108,101,115,103,59],value:"⋚︀"},{key:[108,101,115,103,101,115,59],value:"⪓"},{key:[108,101,115,115,97,112,112,114,111,120,59],value:"⪅"},{key:[108,101,115,115,100,111,116,59],value:"⋖"},{key:[108,101,115,115,101,113,103,116,114,59],value:"⋚"},{key:[108,101,115,115,101,113,113,103,116,114,59],value:"⪋"},{key:[108,101,115,115,103,116,114,59],value:"≶"},{key:[108,101,115,115,115,105,109,59],value:"≲"},{key:[108,102,105,115,104,116,59],value:"⥼"},{key:[108,102,108,111,111,114,59],value:"⌊"},{key:[108,102,114,59],value:"𝔩"},{key:[108,103,59],value:"≶"},{key:[108,103,69,59],value:"⪑"},{key:[108,104,97,114,100,59],value:"↽"},{key:[108,104,97,114,117,59],value:"↼"},{key:[108,104,97,114,117,108,59],value:"⥪"},{key:[108,104,98,108,107,59],value:"▄"},{key:[108,106,99,121,59],value:"љ"},{key:[108,108,59],value:"≪"},{key:[108,108,97,114,114,59],value:"⇇"},{key:[108,108,99,111,114,110,101,114,59],value:"⌞"},{key:[108,108,104,97,114,100,59],value:"⥫"},{key:[108,108,116,114,105,59],value:"◺"},{key:[108,109,105,100,111,116,59],value:"ŀ"},{key:[108,109,111,117,115,116,59],value:"⎰"},{key:[108,109,111,117,115,116,97,99,104,101,59],value:"⎰"},{key:[108,110,69,59],value:"≨"},{key:[108,110,97,112,59],value:"⪉"},{key:[108,110,97,112,112,114,111,120,59],value:"⪉"},{key:[108,110,101,59],value:"⪇"},{key:[108,110,101,113,59],value:"⪇"},{key:[108,110,101,113,113,59],value:"≨"},{key:[108,110,115,105,109,59],value:"⋦"},{key:[108,111,97,110,103,59],value:"⟬"},{key:[108,111,97,114,114,59],value:"⇽"},{key:[108,111,98,114,107,59],value:"⟦"},{key:[108,111,110,103,108,101,102,116,97,114,114,111,119,59],value:"⟵"},{key:[108,111,110,103,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⟷"},{key:[108,111,110,103,109,97,112,115,116,111,59],value:"⟼"},{key:[108,111,110,103,114,105,103,104,116,97,114,114,111,119,59],value:"⟶"},{key:[108,111,111,112,97,114,114,111,119,108,101,102,116,59],value:"↫"},{key:[108,111,111,112,97,114,114,111,119,114,105,103,104,116,59],value:"↬"},{key:[108,111,112,97,114,59],value:"⦅"},{key:[108,111,112,102,59],value:"𝕝"},{key:[108,111,112,108,117,115,59],value:"⨭"},{key:[108,111,116,105,109,101,115,59],value:"⨴"},{key:[108,111,119,97,115,116,59],value:"∗"},{key:[108,111,119,98,97,114,59],value:"_"},{key:[108,111,122,59],value:"◊"},{key:[108,111,122,101,110,103,101,59],value:"◊"},{key:[108,111,122,102,59],value:"⧫"},{key:[108,112,97,114,59],value:"("},{key:[108,112,97,114,108,116,59],value:"⦓"},{key:[108,114,97,114,114,59],value:"⇆"},{key:[108,114,99,111,114,110,101,114,59],value:"⌟"},{key:[108,114,104,97,114,59],value:"⇋"},{key:[108,114,104,97,114,100,59],value:"⥭"},{key:[108,114,109,59],value:"‎"},{key:[108,114,116,114,105,59],value:"⊿"},{key:[108,115,97,113,117,111,59],value:"‹"},{key:[108,115,99,114,59],value:"𝓁"},{key:[108,115,104,59],value:"↰"},{key:[108,115,105,109,59],value:"≲"},{key:[108,115,105,109,101,59],value:"⪍"},{key:[108,115,105,109,103,59],value:"⪏"},{key:[108,115,113,98,59],value:"["},{key:[108,115,113,117,111,59],value:"‘"},{key:[108,115,113,117,111,114,59],value:"‚"},{key:[108,115,116,114,111,107,59],value:"ł"},{key:[108,116,59],value:"<"},{key:[108,116,99,99,59],value:"⪦"},{key:[108,116,99,105,114,59],value:"⩹"},{key:[108,116,100,111,116,59],value:"⋖"},{key:[108,116,104,114,101,101,59],value:"⋋"},{key:[108,116,105,109,101,115,59],value:"⋉"},{key:[108,116,108,97,114,114,59],value:"⥶"},{key:[108,116,113,117,101,115,116,59],value:"⩻"},{key:[108,116,114,80,97,114,59],value:"⦖"},{key:[108,116,114,105,59],value:"◃"},{key:[108,116,114,105,101,59],value:"⊴"},{key:[108,116,114,105,102,59],value:"◂"},{key:[108,117,114,100,115,104,97,114,59],value:"⥊"},{key:[108,117,114,117,104,97,114,59],value:"⥦"},{key:[108,118,101,114,116,110,101,113,113,59],value:"≨︀"},{key:[108,118,110,69,59],value:"≨︀"},{key:[109,68,68,111,116,59],value:"∺"},{key:[109,97,99,114,59],value:"¯"},{key:[109,97,108,101,59],value:"♂"},{key:[109,97,108,116,59],value:"✠"},{key:[109,97,108,116,101,115,101,59],value:"✠"},{key:[109,97,112,59],value:"↦"},{key:[109,97,112,115,116,111,59],value:"↦"},{key:[109,97,112,115,116,111,100,111,119,110,59],value:"↧"},{key:[109,97,112,115,116,111,108,101,102,116,59],value:"↤"},{key:[109,97,112,115,116,111,117,112,59],value:"↥"},{key:[109,97,114,107,101,114,59],value:"▮"},{key:[109,99,111,109,109,97,59],value:"⨩"},{key:[109,99,121,59],value:"м"},{key:[109,100,97,115,104,59],value:"—"},{key:[109,101,97,115,117,114,101,100,97,110,103,108,101,59],value:"∡"},{key:[109,102,114,59],value:"𝔪"},{key:[109,104,111,59],value:"℧"},{key:[109,105,99,114,111,59],value:"µ"},{key:[109,105,100,59],value:"∣"},{key:[109,105,100,97,115,116,59],value:"*"},{key:[109,105,100,99,105,114,59],value:"⫰"},{key:[109,105,100,100,111,116,59],value:"·"},{key:[109,105,110,117,115,59],value:"−"},{key:[109,105,110,117,115,98,59],value:"⊟"},{key:[109,105,110,117,115,100,59],value:"∸"},{key:[109,105,110,117,115,100,117,59],value:"⨪"},{key:[109,108,99,112,59],value:"⫛"},{key:[109,108,100,114,59],value:"…"},{key:[109,110,112,108,117,115,59],value:"∓"},{key:[109,111,100,101,108,115,59],value:"⊧"},{key:[109,111,112,102,59],value:"𝕞"},{key:[109,112,59],value:"∓"},{key:[109,115,99,114,59],value:"𝓂"},{key:[109,115,116,112,111,115,59],value:"∾"},{key:[109,117,59],value:"μ"},{key:[109,117,108,116,105,109,97,112,59],value:"⊸"},{key:[109,117,109,97,112,59],value:"⊸"},{key:[110,71,103,59],value:"⋙̸"},{key:[110,71,116,59],value:"≫⃒"},{key:[110,71,116,118,59],value:"≫̸"},{key:[110,76,101,102,116,97,114,114,111,119,59],value:"⇍"},{key:[110,76,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⇎"},{key:[110,76,108,59],value:"⋘̸"},{key:[110,76,116,59],value:"≪⃒"},{key:[110,76,116,118,59],value:"≪̸"},{key:[110,82,105,103,104,116,97,114,114,111,119,59],value:"⇏"},{key:[110,86,68,97,115,104,59],value:"⊯"},{key:[110,86,100,97,115,104,59],value:"⊮"},{key:[110,97,98,108,97,59],value:"∇"},{key:[110,97,99,117,116,101,59],value:"ń"},{key:[110,97,110,103,59],value:"∠⃒"},{key:[110,97,112,59],value:"≉"},{key:[110,97,112,69,59],value:"⩰̸"},{key:[110,97,112,105,100,59],value:"≋̸"},{key:[110,97,112,111,115,59],value:"ʼn"},{key:[110,97,112,112,114,111,120,59],value:"≉"},{key:[110,97,116,117,114,59],value:"♮"},{key:[110,97,116,117,114,97,108,59],value:"♮"},{key:[110,97,116,117,114,97,108,115,59],value:"ℕ"},{key:[110,98,115,112,59],value:" "},{key:[110,98,117,109,112,59],value:"≎̸"},{key:[110,98,117,109,112,101,59],value:"≏̸"},{key:[110,99,97,112,59],value:"⩃"},{key:[110,99,97,114,111,110,59],value:"ň"},{key:[110,99,101,100,105,108,59],value:"ņ"},{key:[110,99,111,110,103,59],value:"≇"},{key:[110,99,111,110,103,100,111,116,59],value:"⩭̸"},{key:[110,99,117,112,59],value:"⩂"},{key:[110,99,121,59],value:"н"},{key:[110,100,97,115,104,59],value:"–"},{key:[110,101,59],value:"≠"},{key:[110,101,65,114,114,59],value:"⇗"},{key:[110,101,97,114,104,107,59],value:"⤤"},{key:[110,101,97,114,114,59],value:"↗"},{key:[110,101,97,114,114,111,119,59],value:"↗"},{key:[110,101,100,111,116,59],value:"≐̸"},{key:[110,101,113,117,105,118,59],value:"≢"},{key:[110,101,115,101,97,114,59],value:"⤨"},{key:[110,101,115,105,109,59],value:"≂̸"},{key:[110,101,120,105,115,116,59],value:"∄"},{key:[110,101,120,105,115,116,115,59],value:"∄"},{key:[110,102,114,59],value:"𝔫"},{key:[110,103,69,59],value:"≧̸"},{key:[110,103,101,59],value:"≱"},{key:[110,103,101,113,59],value:"≱"},{key:[110,103,101,113,113,59],value:"≧̸"},{key:[110,103,101,113,115,108,97,110,116,59],value:"⩾̸"},{key:[110,103,101,115,59],value:"⩾̸"},{key:[110,103,115,105,109,59],value:"≵"},{key:[110,103,116,59],value:"≯"},{key:[110,103,116,114,59],value:"≯"},{key:[110,104,65,114,114,59],value:"⇎"},{key:[110,104,97,114,114,59],value:"↮"},{key:[110,104,112,97,114,59],value:"⫲"},{key:[110,105,59],value:"∋"},{key:[110,105,115,59],value:"⋼"},{key:[110,105,115,100,59],value:"⋺"},{key:[110,105,118,59],value:"∋"},{key:[110,106,99,121,59],value:"њ"},{key:[110,108,65,114,114,59],value:"⇍"},{key:[110,108,69,59],value:"≦̸"},{key:[110,108,97,114,114,59],value:"↚"},{key:[110,108,100,114,59],value:"‥"},{key:[110,108,101,59],value:"≰"},{key:[110,108,101,102,116,97,114,114,111,119,59],value:"↚"},{key:[110,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"↮"},{key:[110,108,101,113,59],value:"≰"},{key:[110,108,101,113,113,59],value:"≦̸"},{key:[110,108,101,113,115,108,97,110,116,59],value:"⩽̸"},{key:[110,108,101,115,59],value:"⩽̸"},{key:[110,108,101,115,115,59],value:"≮"},{key:[110,108,115,105,109,59],value:"≴"},{key:[110,108,116,59],value:"≮"},{key:[110,108,116,114,105,59],value:"⋪"},{key:[110,108,116,114,105,101,59],value:"⋬"},{key:[110,109,105,100,59],value:"∤"},{key:[110,111,112,102,59],value:"𝕟"},{key:[110,111,116,59],value:"¬"},{key:[110,111,116,105,110,59],value:"∉"},{key:[110,111,116,105,110,69,59],value:"⋹̸"},{key:[110,111,116,105,110,100,111,116,59],value:"⋵̸"},{key:[110,111,116,105,110,118,97,59],value:"∉"},{key:[110,111,116,105,110,118,98,59],value:"⋷"},{key:[110,111,116,105,110,118,99,59],value:"⋶"},{key:[110,111,116,110,105,59],value:"∌"},{key:[110,111,116,110,105,118,97,59],value:"∌"},{key:[110,111,116,110,105,118,98,59],value:"⋾"},{key:[110,111,116,110,105,118,99,59],value:"⋽"},{key:[110,112,97,114,59],value:"∦"},{key:[110,112,97,114,97,108,108,101,108,59],value:"∦"},{key:[110,112,97,114,115,108,59],value:"⫽⃥"},{key:[110,112,97,114,116,59],value:"∂̸"},{key:[110,112,111,108,105,110,116,59],value:"⨔"},{key:[110,112,114,59],value:"⊀"},{key:[110,112,114,99,117,101,59],value:"⋠"},{key:[110,112,114,101,59],value:"⪯̸"},{key:[110,112,114,101,99,59],value:"⊀"},{key:[110,112,114,101,99,101,113,59],value:"⪯̸"},{key:[110,114,65,114,114,59],value:"⇏"},{key:[110,114,97,114,114,59],value:"↛"},{key:[110,114,97,114,114,99,59],value:"⤳̸"},{key:[110,114,97,114,114,119,59],value:"↝̸"},{key:[110,114,105,103,104,116,97,114,114,111,119,59],value:"↛"},{key:[110,114,116,114,105,59],value:"⋫"},{key:[110,114,116,114,105,101,59],value:"⋭"},{key:[110,115,99,59],value:"⊁"},{key:[110,115,99,99,117,101,59],value:"⋡"},{key:[110,115,99,101,59],value:"⪰̸"},{key:[110,115,99,114,59],value:"𝓃"},{key:[110,115,104,111,114,116,109,105,100,59],value:"∤"},{key:[110,115,104,111,114,116,112,97,114,97,108,108,101,108,59],value:"∦"},{key:[110,115,105,109,59],value:"≁"},{key:[110,115,105,109,101,59],value:"≄"},{key:[110,115,105,109,101,113,59],value:"≄"},{key:[110,115,109,105,100,59],value:"∤"},{key:[110,115,112,97,114,59],value:"∦"},{key:[110,115,113,115,117,98,101,59],value:"⋢"},{key:[110,115,113,115,117,112,101,59],value:"⋣"},{key:[110,115,117,98,59],value:"⊄"},{key:[110,115,117,98,69,59],value:"⫅̸"},{key:[110,115,117,98,101,59],value:"⊈"},{key:[110,115,117,98,115,101,116,59],value:"⊂⃒"},{key:[110,115,117,98,115,101,116,101,113,59],value:"⊈"},{key:[110,115,117,98,115,101,116,101,113,113,59],value:"⫅̸"},{key:[110,115,117,99,99,59],value:"⊁"},{key:[110,115,117,99,99,101,113,59],value:"⪰̸"},{key:[110,115,117,112,59],value:"⊅"},{key:[110,115,117,112,69,59],value:"⫆̸"},{key:[110,115,117,112,101,59],value:"⊉"},{key:[110,115,117,112,115,101,116,59],value:"⊃⃒"},{key:[110,115,117,112,115,101,116,101,113,59],value:"⊉"},{key:[110,115,117,112,115,101,116,101,113,113,59],value:"⫆̸"},{key:[110,116,103,108,59],value:"≹"},{key:[110,116,105,108,100,101,59],value:"ñ"},{key:[110,116,108,103,59],value:"≸"},{key:[110,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"⋪"},{key:[110,116,114,105,97,110,103,108,101,108,101,102,116,101,113,59],value:"⋬"},{key:[110,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"⋫"},{key:[110,116,114,105,97,110,103,108,101,114,105,103,104,116,101,113,59],value:"⋭"},{key:[110,117,59],value:"ν"},{key:[110,117,109,59],value:"#"},{key:[110,117,109,101,114,111,59],value:"№"},{key:[110,117,109,115,112,59],value:" "},{key:[110,118,68,97,115,104,59],value:"⊭"},{key:[110,118,72,97,114,114,59],value:"⤄"},{key:[110,118,97,112,59],value:"≍⃒"},{key:[110,118,100,97,115,104,59],value:"⊬"},{key:[110,118,103,101,59],value:"≥⃒"},{key:[110,118,103,116,59],value:">⃒"},{key:[110,118,105,110,102,105,110,59],value:"⧞"},{key:[110,118,108,65,114,114,59],value:"⤂"},{key:[110,118,108,101,59],value:"≤⃒"},{key:[110,118,108,116,59],value:"<⃒"},{key:[110,118,108,116,114,105,101,59],value:"⊴⃒"},{key:[110,118,114,65,114,114,59],value:"⤃"},{key:[110,118,114,116,114,105,101,59],value:"⊵⃒"},{key:[110,118,115,105,109,59],value:"∼⃒"},{key:[110,119,65,114,114,59],value:"⇖"},{key:[110,119,97,114,104,107,59],value:"⤣"},{key:[110,119,97,114,114,59],value:"↖"},{key:[110,119,97,114,114,111,119,59],value:"↖"},{key:[110,119,110,101,97,114,59],value:"⤧"},{key:[111,83,59],value:"Ⓢ"},{key:[111,97,99,117,116,101,59],value:"ó"},{key:[111,97,115,116,59],value:"⊛"},{key:[111,99,105,114,59],value:"⊚"},{key:[111,99,105,114,99,59],value:"ô"},{key:[111,99,121,59],value:"о"},{key:[111,100,97,115,104,59],value:"⊝"},{key:[111,100,98,108,97,99,59],value:"ő"},{key:[111,100,105,118,59],value:"⨸"},{key:[111,100,111,116,59],value:"⊙"},{key:[111,100,115,111,108,100,59],value:"⦼"},{key:[111,101,108,105,103,59],value:"œ"},{key:[111,102,99,105,114,59],value:"⦿"},{key:[111,102,114,59],value:"𝔬"},{key:[111,103,111,110,59],value:"˛"},{key:[111,103,114,97,118,101,59],value:"ò"},{key:[111,103,116,59],value:"⧁"},{key:[111,104,98,97,114,59],value:"⦵"},{key:[111,104,109,59],value:"Ω"},{key:[111,105,110,116,59],value:"∮"},{key:[111,108,97,114,114,59],value:"↺"},{key:[111,108,99,105,114,59],value:"⦾"},{key:[111,108,99,114,111,115,115,59],value:"⦻"},{key:[111,108,105,110,101,59],value:"‾"},{key:[111,108,116,59],value:"⧀"},{key:[111,109,97,99,114,59],value:"ō"},{key:[111,109,101,103,97,59],value:"ω"},{key:[111,109,105,99,114,111,110,59],value:"ο"},{key:[111,109,105,100,59],value:"⦶"},{key:[111,109,105,110,117,115,59],value:"⊖"},{key:[111,111,112,102,59],value:"𝕠"},{key:[111,112,97,114,59],value:"⦷"},{key:[111,112,101,114,112,59],value:"⦹"},{key:[111,112,108,117,115,59],value:"⊕"},{key:[111,114,59],value:"∨"},{key:[111,114,97,114,114,59],value:"↻"},{key:[111,114,100,59],value:"⩝"},{key:[111,114,100,101,114,59],value:"ℴ"},{key:[111,114,100,101,114,111,102,59],value:"ℴ"},{key:[111,114,100,102,59],value:"ª"},{key:[111,114,100,109,59],value:"º"},{key:[111,114,105,103,111,102,59],value:"⊶"},{key:[111,114,111,114,59],value:"⩖"},{key:[111,114,115,108,111,112,101,59],value:"⩗"},{key:[111,114,118,59],value:"⩛"},{key:[111,115,99,114,59],value:"ℴ"},{key:[111,115,108,97,115,104,59],value:"ø"},{key:[111,115,111,108,59],value:"⊘"},{key:[111,116,105,108,100,101,59],value:"õ"},{key:[111,116,105,109,101,115,59],value:"⊗"},{key:[111,116,105,109,101,115,97,115,59],value:"⨶"},{key:[111,117,109,108,59],value:"ö"},{key:[111,118,98,97,114,59],value:"⌽"},{key:[112,97,114,59],value:"∥"},{key:[112,97,114,97,59],value:"¶"},{key:[112,97,114,97,108,108,101,108,59],value:"∥"},{key:[112,97,114,115,105,109,59],value:"⫳"},{key:[112,97,114,115,108,59],value:"⫽"},{key:[112,97,114,116,59],value:"∂"},{key:[112,99,121,59],value:"п"},{key:[112,101,114,99,110,116,59],value:"%"},{key:[112,101,114,105,111,100,59],value:"."},{key:[112,101,114,109,105,108,59],value:"‰"},{key:[112,101,114,112,59],value:"⊥"},{key:[112,101,114,116,101,110,107,59],value:"‱"},{key:[112,102,114,59],value:"𝔭"},{key:[112,104,105,59],value:"φ"},{key:[112,104,105,118,59],value:"ϕ"},{key:[112,104,109,109,97,116,59],value:"ℳ"},{key:[112,104,111,110,101,59],value:"☎"},{key:[112,105,59],value:"π"},{key:[112,105,116,99,104,102,111,114,107,59],value:"⋔"},{key:[112,105,118,59],value:"ϖ"},{key:[112,108,97,110,99,107,59],value:"ℏ"},{key:[112,108,97,110,99,107,104,59],value:"ℎ"},{key:[112,108,97,110,107,118,59],value:"ℏ"},{key:[112,108,117,115,59],value:"+"},{key:[112,108,117,115,97,99,105,114,59],value:"⨣"},{key:[112,108,117,115,98,59],value:"⊞"},{key:[112,108,117,115,99,105,114,59],value:"⨢"},{key:[112,108,117,115,100,111,59],value:"∔"},{key:[112,108,117,115,100,117,59],value:"⨥"},{key:[112,108,117,115,101,59],value:"⩲"},{key:[112,108,117,115,109,110,59],value:"±"},{key:[112,108,117,115,115,105,109,59],value:"⨦"},{key:[112,108,117,115,116,119,111,59],value:"⨧"},{key:[112,109,59],value:"±"},{key:[112,111,105,110,116,105,110,116,59],value:"⨕"},{key:[112,111,112,102,59],value:"𝕡"},{key:[112,111,117,110,100,59],value:"£"},{key:[112,114,59],value:"≺"},{key:[112,114,69,59],value:"⪳"},{key:[112,114,97,112,59],value:"⪷"},{key:[112,114,99,117,101,59],value:"≼"},{key:[112,114,101,59],value:"⪯"},{key:[112,114,101,99,59],value:"≺"},{key:[112,114,101,99,97,112,112,114,111,120,59],value:"⪷"},{key:[112,114,101,99,99,117,114,108,121,101,113,59],value:"≼"},{key:[112,114,101,99,101,113,59],value:"⪯"},{key:[112,114,101,99,110,97,112,112,114,111,120,59],value:"⪹"},{key:[112,114,101,99,110,101,113,113,59],value:"⪵"},{key:[112,114,101,99,110,115,105,109,59],value:"⋨"},{key:[112,114,101,99,115,105,109,59],value:"≾"},{key:[112,114,105,109,101,59],value:"′"},{key:[112,114,105,109,101,115,59],value:"ℙ"},{key:[112,114,110,69,59],value:"⪵"},{key:[112,114,110,97,112,59],value:"⪹"},{key:[112,114,110,115,105,109,59],value:"⋨"},{key:[112,114,111,100,59],value:"∏"},{key:[112,114,111,102,97,108,97,114,59],value:"⌮"},{key:[112,114,111,102,108,105,110,101,59],value:"⌒"},{key:[112,114,111,102,115,117,114,102,59],value:"⌓"},{key:[112,114,111,112,59],value:"∝"},{key:[112,114,111,112,116,111,59],value:"∝"},{key:[112,114,115,105,109,59],value:"≾"},{key:[112,114,117,114,101,108,59],value:"⊰"},{key:[112,115,99,114,59],value:"𝓅"},{key:[112,115,105,59],value:"ψ"},{key:[112,117,110,99,115,112,59],value:" "},{key:[113,102,114,59],value:"𝔮"},{key:[113,105,110,116,59],value:"⨌"},{key:[113,111,112,102,59],value:"𝕢"},{key:[113,112,114,105,109,101,59],value:"⁗"},{key:[113,115,99,114,59],value:"𝓆"},{key:[113,117,97,116,101,114,110,105,111,110,115,59],value:"ℍ"},{key:[113,117,97,116,105,110,116,59],value:"⨖"},{key:[113,117,101,115,116,59],value:"?"},{key:[113,117,101,115,116,101,113,59],value:"≟"},{key:[113,117,111,116,59],value:'"'},{key:[114,65,97,114,114,59],value:"⇛"},{key:[114,65,114,114,59],value:"⇒"},{key:[114,65,116,97,105,108,59],value:"⤜"},{key:[114,66,97,114,114,59],value:"⤏"},{key:[114,72,97,114,59],value:"⥤"},{key:[114,97,99,101,59],value:"∽̱"},{key:[114,97,99,117,116,101,59],value:"ŕ"},{key:[114,97,100,105,99,59],value:"√"},{key:[114,97,101,109,112,116,121,118,59],value:"⦳"},{key:[114,97,110,103,59],value:"⟩"},{key:[114,97,110,103,100,59],value:"⦒"},{key:[114,97,110,103,101,59],value:"⦥"},{key:[114,97,110,103,108,101,59],value:"⟩"},{key:[114,97,113,117,111,59],value:"»"},{key:[114,97,114,114,59],value:"→"},{key:[114,97,114,114,97,112,59],value:"⥵"},{key:[114,97,114,114,98,59],value:"⇥"},{key:[114,97,114,114,98,102,115,59],value:"⤠"},{key:[114,97,114,114,99,59],value:"⤳"},{key:[114,97,114,114,102,115,59],value:"⤞"},{key:[114,97,114,114,104,107,59],value:"↪"},{key:[114,97,114,114,108,112,59],value:"↬"},{key:[114,97,114,114,112,108,59],value:"⥅"},{key:[114,97,114,114,115,105,109,59],value:"⥴"},{key:[114,97,114,114,116,108,59],value:"↣"},{key:[114,97,114,114,119,59],value:"↝"},{key:[114,97,116,97,105,108,59],value:"⤚"},{key:[114,97,116,105,111,59],value:"∶"},{key:[114,97,116,105,111,110,97,108,115,59],value:"ℚ"},{key:[114,98,97,114,114,59],value:"⤍"},{key:[114,98,98,114,107,59],value:"❳"},{key:[114,98,114,97,99,101,59],value:" }"},{key:[114,98,114,97,99,107,59],value:"]"},{key:[114,98,114,107,101,59],value:"⦌"},{key:[114,98,114,107,115,108,100,59],value:"⦎"},{key:[114,98,114,107,115,108,117,59],value:"⦐"},{key:[114,99,97,114,111,110,59],value:"ř"},{key:[114,99,101,100,105,108,59],value:"ŗ"},{key:[114,99,101,105,108,59],value:"⌉"},{key:[114,99,117,98,59],value:" }"},{key:[114,99,121,59],value:"р"},{key:[114,100,99,97,59],value:"⤷"},{key:[114,100,108,100,104,97,114,59],value:"⥩"},{key:[114,100,113,117,111,59],value:"”"},{key:[114,100,113,117,111,114,59],value:"”"},{key:[114,100,115,104,59],value:"↳"},{key:[114,101,97,108,59],value:"ℜ"},{key:[114,101,97,108,105,110,101,59],value:"ℛ"},{key:[114,101,97,108,112,97,114,116,59],value:"ℜ"},{key:[114,101,97,108,115,59],value:"ℝ"},{key:[114,101,99,116,59],value:"▭"},{key:[114,101,103,59],value:"®"},{key:[114,102,105,115,104,116,59],value:"⥽"},{key:[114,102,108,111,111,114,59],value:"⌋"},{key:[114,102,114,59],value:"𝔯"},{key:[114,104,97,114,100,59],value:"⇁"},{key:[114,104,97,114,117,59],value:"⇀"},{key:[114,104,97,114,117,108,59],value:"⥬"},{key:[114,104,111,59],value:"ρ"},{key:[114,104,111,118,59],value:"ϱ"},{key:[114,105,103,104,116,97,114,114,111,119,59],value:"→"},{key:[114,105,103,104,116,97,114,114,111,119,116,97,105,108,59],value:"↣"},{key:[114,105,103,104,116,104,97,114,112,111,111,110,100,111,119,110,59],value:"⇁"},{key:[114,105,103,104,116,104,97,114,112,111,111,110,117,112,59],value:"⇀"},{key:[114,105,103,104,116,108,101,102,116,97,114,114,111,119,115,59],value:"⇄"},{key:[114,105,103,104,116,108,101,102,116,104,97,114,112,111,111,110,115,59],value:"⇌"},{key:[114,105,103,104,116,114,105,103,104,116,97,114,114,111,119,115,59],value:"⇉"},{key:[114,105,103,104,116,115,113,117,105,103,97,114,114,111,119,59],value:"↝"},{key:[114,105,103,104,116,116,104,114,101,101,116,105,109,101,115,59],value:"⋌"},{key:[114,105,110,103,59],value:"˚"},{key:[114,105,115,105,110,103,100,111,116,115,101,113,59],value:"≓"},{key:[114,108,97,114,114,59],value:"⇄"},{key:[114,108,104,97,114,59],value:"⇌"},{key:[114,108,109,59],value:"‏"},{key:[114,109,111,117,115,116,59],value:"⎱"},{key:[114,109,111,117,115,116,97,99,104,101,59],value:"⎱"},{key:[114,110,109,105,100,59],value:"⫮"},{key:[114,111,97,110,103,59],value:"⟭"},{key:[114,111,97,114,114,59],value:"⇾"},{key:[114,111,98,114,107,59],value:"⟧"},{key:[114,111,112,97,114,59],value:"⦆"},{key:[114,111,112,102,59],value:"𝕣"},{key:[114,111,112,108,117,115,59],value:"⨮"},{key:[114,111,116,105,109,101,115,59],value:"⨵"},{key:[114,112,97,114,59],value:")"},{key:[114,112,97,114,103,116,59],value:"⦔"},{key:[114,112,112,111,108,105,110,116,59],value:"⨒"},{key:[114,114,97,114,114,59],value:"⇉"},{key:[114,115,97,113,117,111,59],value:"›"},{key:[114,115,99,114,59],value:"𝓇"},{key:[114,115,104,59],value:"↱"},{key:[114,115,113,98,59],value:"]"},{key:[114,115,113,117,111,59],value:"’"},{key:[114,115,113,117,111,114,59],value:"’"},{key:[114,116,104,114,101,101,59],value:"⋌"},{key:[114,116,105,109,101,115,59],value:"⋊"},{key:[114,116,114,105,59],value:"▹"},{key:[114,116,114,105,101,59],value:"⊵"},{key:[114,116,114,105,102,59],value:"▸"},{key:[114,116,114,105,108,116,114,105,59],value:"⧎"},{key:[114,117,108,117,104,97,114,59],value:"⥨"},{key:[114,120,59],value:"℞"},{key:[115,97,99,117,116,101,59],value:"ś"},{key:[115,98,113,117,111,59],value:"‚"},{key:[115,99,59],value:"≻"},{key:[115,99,69,59],value:"⪴"},{key:[115,99,97,112,59],value:"⪸"},{key:[115,99,97,114,111,110,59],value:"š"},{key:[115,99,99,117,101,59],value:"≽"},{key:[115,99,101,59],value:"⪰"},{key:[115,99,101,100,105,108,59],value:"ş"},{key:[115,99,105,114,99,59],value:"ŝ"},{key:[115,99,110,69,59],value:"⪶"},{key:[115,99,110,97,112,59],value:"⪺"},{key:[115,99,110,115,105,109,59],value:"⋩"},{key:[115,99,112,111,108,105,110,116,59],value:"⨓"},{key:[115,99,115,105,109,59],value:"≿"},{key:[115,99,121,59],value:"с"},{key:[115,100,111,116,59],value:"⋅"},{key:[115,100,111,116,98,59],value:"⊡"},{key:[115,100,111,116,101,59],value:"⩦"},{key:[115,101,65,114,114,59],value:"⇘"},{key:[115,101,97,114,104,107,59],value:"⤥"},{key:[115,101,97,114,114,59],value:"↘"},{key:[115,101,97,114,114,111,119,59],value:"↘"},{key:[115,101,99,116,59],value:"§"},{key:[115,101,109,105,59],value:";"},{key:[115,101,115,119,97,114,59],value:"⤩"},{key:[115,101,116,109,105,110,117,115,59],value:"∖"},{key:[115,101,116,109,110,59],value:"∖"},{key:[115,101,120,116,59],value:"✶"},{key:[115,102,114,59],value:"𝔰"},{key:[115,102,114,111,119,110,59],value:"⌢"},{key:[115,104,97,114,112,59],value:"♯"},{key:[115,104,99,104,99,121,59],value:"щ"},{key:[115,104,99,121,59],value:"ш"},{key:[115,104,111,114,116,109,105,100,59],value:"∣"},{key:[115,104,111,114,116,112,97,114,97,108,108,101,108,59],value:"∥"},{key:[115,104,121,59],value:"­"},{key:[115,105,103,109,97,59],value:"σ"},{key:[115,105,103,109,97,102,59],value:"ς"},{key:[115,105,103,109,97,118,59],value:"ς"},{key:[115,105,109,59],value:"∼"},{key:[115,105,109,100,111,116,59],value:"⩪"},{key:[115,105,109,101,59],value:"≃"},{key:[115,105,109,101,113,59],value:"≃"},{key:[115,105,109,103,59],value:"⪞"},{key:[115,105,109,103,69,59],value:"⪠"},{key:[115,105,109,108,59],value:"⪝"},{key:[115,105,109,108,69,59],value:"⪟"},{key:[115,105,109,110,101,59],value:"≆"},{key:[115,105,109,112,108,117,115,59],value:"⨤"},{key:[115,105,109,114,97,114,114,59],value:"⥲"},{key:[115,108,97,114,114,59],value:"←"},{key:[115,109,97,108,108,115,101,116,109,105,110,117,115,59],value:"∖"},{key:[115,109,97,115,104,112,59],value:"⨳"},{key:[115,109,101,112,97,114,115,108,59],value:"⧤"},{key:[115,109,105,100,59],value:"∣"},{key:[115,109,105,108,101,59],value:"⌣"},{key:[115,109,116,59],value:"⪪"},{key:[115,109,116,101,59],value:"⪬"},{key:[115,109,116,101,115,59],value:"⪬︀"},{key:[115,111,102,116,99,121,59],value:"ь"},{key:[115,111,108,59],value:"/"},{key:[115,111,108,98,59],value:"⧄"},{key:[115,111,108,98,97,114,59],value:"⌿"},{key:[115,111,112,102,59],value:"𝕤"},{key:[115,112,97,100,101,115,59],value:"♠"},{key:[115,112,97,100,101,115,117,105,116,59],value:"♠"},{key:[115,112,97,114,59],value:"∥"},{key:[115,113,99,97,112,59],value:"⊓"},{key:[115,113,99,97,112,115,59],value:"⊓︀"},{key:[115,113,99,117,112,59],value:"⊔"},{key:[115,113,99,117,112,115,59],value:"⊔︀"},{key:[115,113,115,117,98,59],value:"⊏"},{key:[115,113,115,117,98,101,59],value:"⊑"},{key:[115,113,115,117,98,115,101,116,59],value:"⊏"},{key:[115,113,115,117,98,115,101,116,101,113,59],value:"⊑"},{key:[115,113,115,117,112,59],value:"⊐"},{key:[115,113,115,117,112,101,59],value:"⊒"},{key:[115,113,115,117,112,115,101,116,59],value:"⊐"},{key:[115,113,115,117,112,115,101,116,101,113,59],value:"⊒"},{key:[115,113,117,59],value:"□"},{key:[115,113,117,97,114,101,59],value:"□"},{key:[115,113,117,97,114,102,59],value:"▪"},{key:[115,113,117,102,59],value:"▪"},{key:[115,114,97,114,114,59],value:"→"},{key:[115,115,99,114,59],value:"𝓈"},{key:[115,115,101,116,109,110,59],value:"∖"},{key:[115,115,109,105,108,101,59],value:"⌣"},{key:[115,115,116,97,114,102,59],value:"⋆"},{key:[115,116,97,114,59],value:"☆"},{key:[115,116,97,114,102,59],value:"★"},{key:[115,116,114,97,105,103,104,116,101,112,115,105,108,111,110,59],value:"ϵ"},{key:[115,116,114,97,105,103,104,116,112,104,105,59],value:"ϕ"},{key:[115,116,114,110,115,59],value:"¯"},{key:[115,117,98,59],value:"⊂"},{key:[115,117,98,69,59],value:"⫅"},{key:[115,117,98,100,111,116,59],value:"⪽"},{key:[115,117,98,101,59],value:"⊆"},{key:[115,117,98,101,100,111,116,59],value:"⫃"},{key:[115,117,98,109,117,108,116,59],value:"⫁"},{key:[115,117,98,110,69,59],value:"⫋"},{key:[115,117,98,110,101,59],value:"⊊"},{key:[115,117,98,112,108,117,115,59],value:"⪿"},{key:[115,117,98,114,97,114,114,59],value:"⥹"},{key:[115,117,98,115,101,116,59],value:"⊂"},{key:[115,117,98,115,101,116,101,113,59],value:"⊆"},{key:[115,117,98,115,101,116,101,113,113,59],value:"⫅"},{key:[115,117,98,115,101,116,110,101,113,59],value:"⊊"},{key:[115,117,98,115,101,116,110,101,113,113,59],value:"⫋"},{key:[115,117,98,115,105,109,59],value:"⫇"},{key:[115,117,98,115,117,98,59],value:"⫕"},{key:[115,117,98,115,117,112,59],value:"⫓"},{key:[115,117,99,99,59],value:"≻"},{key:[115,117,99,99,97,112,112,114,111,120,59],value:"⪸"},{key:[115,117,99,99,99,117,114,108,121,101,113,59],value:"≽"},{key:[115,117,99,99,101,113,59],value:"⪰"},{key:[115,117,99,99,110,97,112,112,114,111,120,59],value:"⪺"},{key:[115,117,99,99,110,101,113,113,59],value:"⪶"},{key:[115,117,99,99,110,115,105,109,59],value:"⋩"},{key:[115,117,99,99,115,105,109,59],value:"≿"},{key:[115,117,109,59],value:"∑"},{key:[115,117,110,103,59],value:"♪"},{key:[115,117,112,49,59],value:"¹"},{key:[115,117,112,50,59],value:"²"},{key:[115,117,112,51,59],value:"³"},{key:[115,117,112,59],value:"⊃"},{key:[115,117,112,69,59],value:"⫆"},{key:[115,117,112,100,111,116,59],value:"⪾"},{key:[115,117,112,100,115,117,98,59],value:"⫘"},{key:[115,117,112,101,59],value:"⊇"},{key:[115,117,112,101,100,111,116,59],value:"⫄"},{key:[115,117,112,104,115,111,108,59],value:"⟉"},{key:[115,117,112,104,115,117,98,59],value:"⫗"},{key:[115,117,112,108,97,114,114,59],value:"⥻"},{key:[115,117,112,109,117,108,116,59],value:"⫂"},{key:[115,117,112,110,69,59],value:"⫌"},{key:[115,117,112,110,101,59],value:"⊋"},{key:[115,117,112,112,108,117,115,59],value:"⫀"},{key:[115,117,112,115,101,116,59],value:"⊃"},{key:[115,117,112,115,101,116,101,113,59],value:"⊇"},{key:[115,117,112,115,101,116,101,113,113,59],value:"⫆"},{key:[115,117,112,115,101,116,110,101,113,59],value:"⊋"},{key:[115,117,112,115,101,116,110,101,113,113,59],value:"⫌"},{key:[115,117,112,115,105,109,59],value:"⫈"},{key:[115,117,112,115,117,98,59],value:"⫔"},{key:[115,117,112,115,117,112,59],value:"⫖"},{key:[115,119,65,114,114,59],value:"⇙"},{key:[115,119,97,114,104,107,59],value:"⤦"},{key:[115,119,97,114,114,59],value:"↙"},{key:[115,119,97,114,114,111,119,59],value:"↙"},{key:[115,119,110,119,97,114,59],value:"⤪"},{key:[115,122,108,105,103,59],value:"ß"},{key:[116,97,114,103,101,116,59],value:"⌖"},{key:[116,97,117,59],value:"τ"},{key:[116,98,114,107,59],value:"⎴"},{key:[116,99,97,114,111,110,59],value:"ť"},{key:[116,99,101,100,105,108,59],value:"ţ"},{key:[116,99,121,59],value:"т"},{key:[116,100,111,116,59],value:"⃛"},{key:[116,101,108,114,101,99,59],value:"⌕"},{key:[116,102,114,59],value:"𝔱"},{key:[116,104,101,114,101,52,59],value:"∴"},{key:[116,104,101,114,101,102,111,114,101,59],value:"∴"},{key:[116,104,101,116,97,59],value:"θ"},{key:[116,104,101,116,97,115,121,109,59],value:"ϑ"},{key:[116,104,101,116,97,118,59],value:"ϑ"},{key:[116,104,105,99,107,97,112,112,114,111,120,59],value:"≈"},{key:[116,104,105,99,107,115,105,109,59],value:"∼"},{key:[116,104,105,110,115,112,59],value:" "},{key:[116,104,107,97,112,59],value:"≈"},{key:[116,104,107,115,105,109,59],value:"∼"},{key:[116,104,111,114,110,59],value:"þ"},{key:[116,105,108,100,101,59],value:"˜"},{key:[116,105,109,101,115,59],value:"×"},{key:[116,105,109,101,115,98,59],value:"⊠"},{key:[116,105,109,101,115,98,97,114,59],value:"⨱"},{key:[116,105,109,101,115,100,59],value:"⨰"},{key:[116,105,110,116,59],value:"∭"},{key:[116,111,101,97,59],value:"⤨"},{key:[116,111,112,59],value:"⊤"},{key:[116,111,112,98,111,116,59],value:"⌶"},{key:[116,111,112,99,105,114,59],value:"⫱"},{key:[116,111,112,102,59],value:"𝕥"},{key:[116,111,112,102,111,114,107,59],value:"⫚"},{key:[116,111,115,97,59],value:"⤩"},{key:[116,112,114,105,109,101,59],value:"‴"},{key:[116,114,97,100,101,59],value:"™"},{key:[116,114,105,97,110,103,108,101,59],value:"▵"},{key:[116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▿"},{key:[116,114,105,97,110,103,108,101,108,101,102,116,59],value:"◃"},{key:[116,114,105,97,110,103,108,101,108,101,102,116,101,113,59],value:"⊴"},{key:[116,114,105,97,110,103,108,101,113,59],value:"≜"},{key:[116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"▹"},{key:[116,114,105,97,110,103,108,101,114,105,103,104,116,101,113,59],value:"⊵"},{key:[116,114,105,100,111,116,59],value:"◬"},{key:[116,114,105,101,59],value:"≜"},{key:[116,114,105,109,105,110,117,115,59],value:"⨺"},{key:[116,114,105,112,108,117,115,59],value:"⨹"},{key:[116,114,105,115,98,59],value:"⧍"},{key:[116,114,105,116,105,109,101,59],value:"⨻"},{key:[116,114,112,101,122,105,117,109,59],value:"⏢"},{key:[116,115,99,114,59],value:"𝓉"},{key:[116,115,99,121,59],value:"ц"},{key:[116,115,104,99,121,59],value:"ћ"},{key:[116,115,116,114,111,107,59],value:"ŧ"},{key:[116,119,105,120,116,59],value:"≬"},{key:[116,119,111,104,101,97,100,108,101,102,116,97,114,114,111,119,59],value:"↞"},{key:[116,119,111,104,101,97,100,114,105,103,104,116,97,114,114,111,119,59],value:"↠"},{key:[117,65,114,114,59],value:"⇑"},{key:[117,72,97,114,59],value:"⥣"},{key:[117,97,99,117,116,101,59],value:"ú"},{key:[117,97,114,114,59],value:"↑"},{key:[117,98,114,99,121,59],value:"ў"},{key:[117,98,114,101,118,101,59],value:"ŭ"},{key:[117,99,105,114,99,59],value:"û"},{key:[117,99,121,59],value:"у"},{key:[117,100,97,114,114,59],value:"⇅"},{key:[117,100,98,108,97,99,59],value:"ű"},{key:[117,100,104,97,114,59],value:"⥮"},{key:[117,102,105,115,104,116,59],value:"⥾"},{key:[117,102,114,59],value:"𝔲"},{key:[117,103,114,97,118,101,59],value:"ù"},{key:[117,104,97,114,108,59],value:"↿"},{key:[117,104,97,114,114,59],value:"↾"},{key:[117,104,98,108,107,59],value:"▀"},{key:[117,108,99,111,114,110,59],value:"⌜"},{key:[117,108,99,111,114,110,101,114,59],value:"⌜"},{key:[117,108,99,114,111,112,59],value:"⌏"},{key:[117,108,116,114,105,59],value:"◸"},{key:[117,109,97,99,114,59],value:"ū"},{key:[117,109,108,59],value:"¨"},{key:[117,111,103,111,110,59],value:"ų"},{key:[117,111,112,102,59],value:"𝕦"},{key:[117,112,97,114,114,111,119,59],value:"↑"},{key:[117,112,100,111,119,110,97,114,114,111,119,59],value:"↕"},{key:[117,112,104,97,114,112,111,111,110,108,101,102,116,59],value:"↿"},{key:[117,112,104,97,114,112,111,111,110,114,105,103,104,116,59],value:"↾"},{key:[117,112,108,117,115,59],value:"⊎"},{key:[117,112,115,105,59],value:"υ"},{key:[117,112,115,105,104,59],value:"ϒ"},{key:[117,112,115,105,108,111,110,59],value:"υ"},{key:[117,112,117,112,97,114,114,111,119,115,59],value:"⇈"},{key:[117,114,99,111,114,110,59],value:"⌝"},{key:[117,114,99,111,114,110,101,114,59],value:"⌝"},{key:[117,114,99,114,111,112,59],value:"⌎"},{key:[117,114,105,110,103,59],value:"ů"},{key:[117,114,116,114,105,59],value:"◹"},{key:[117,115,99,114,59],value:"𝓊"},{key:[117,116,100,111,116,59],value:"⋰"},{key:[117,116,105,108,100,101,59],value:"ũ"},{key:[117,116,114,105,59],value:"▵"},{key:[117,116,114,105,102,59],value:"▴"},{key:[117,117,97,114,114,59],value:"⇈"},{key:[117,117,109,108,59],value:"ü"},{key:[117,119,97,110,103,108,101,59],value:"⦧"},{key:[118,65,114,114,59],value:"⇕"},{key:[118,66,97,114,59],value:"⫨"},{key:[118,66,97,114,118,59],value:"⫩"},{key:[118,68,97,115,104,59],value:"⊨"},{key:[118,97,110,103,114,116,59],value:"⦜"},{key:[118,97,114,101,112,115,105,108,111,110,59],value:"ϵ"},{key:[118,97,114,107,97,112,112,97,59],value:"ϰ"},{key:[118,97,114,110,111,116,104,105,110,103,59],value:"∅"},{key:[118,97,114,112,104,105,59],value:"ϕ"},{key:[118,97,114,112,105,59],value:"ϖ"},{key:[118,97,114,112,114,111,112,116,111,59],value:"∝"},{key:[118,97,114,114,59],value:"↕"},{key:[118,97,114,114,104,111,59],value:"ϱ"},{key:[118,97,114,115,105,103,109,97,59],value:"ς"},{key:[118,97,114,115,117,98,115,101,116,110,101,113,59],value:"⊊︀"},{key:[118,97,114,115,117,98,115,101,116,110,101,113,113,59],value:"⫋︀"},{key:[118,97,114,115,117,112,115,101,116,110,101,113,59],value:"⊋︀"},{key:[118,97,114,115,117,112,115,101,116,110,101,113,113,59],value:"⫌︀"},{key:[118,97,114,116,104,101,116,97,59],value:"ϑ"},{key:[118,97,114,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"⊲"},{key:[118,97,114,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"⊳"},{key:[118,99,121,59],value:"в"},{key:[118,100,97,115,104,59],value:"⊢"},{key:[118,101,101,59],value:"∨"},{key:[118,101,101,98,97,114,59],value:"⊻"},{key:[118,101,101,101,113,59],value:"≚"},{key:[118,101,108,108,105,112,59],value:"⋮"},{key:[118,101,114,98,97,114,59],value:"|"},{key:[118,101,114,116,59],value:"|"},{key:[118,102,114,59],value:"𝔳"},{key:[118,108,116,114,105,59],value:"⊲"},{key:[118,110,115,117,98,59],value:"⊂⃒"},{key:[118,110,115,117,112,59],value:"⊃⃒"},{key:[118,111,112,102,59],value:"𝕧"},{key:[118,112,114,111,112,59],value:"∝"},{key:[118,114,116,114,105,59],value:"⊳"},{key:[118,115,99,114,59],value:"𝓋"},{key:[118,115,117,98,110,69,59],value:"⫋︀"},{key:[118,115,117,98,110,101,59],value:"⊊︀"},{key:[118,115,117,112,110,69,59],value:"⫌︀"},{key:[118,115,117,112,110,101,59],value:"⊋︀"},{key:[118,122,105,103,122,97,103,59],value:"⦚"},{key:[119,99,105,114,99,59],value:"ŵ"},{key:[119,101,100,98,97,114,59],value:"⩟"},{key:[119,101,100,103,101,59],value:"∧"},{key:[119,101,100,103,101,113,59],value:"≙"},{key:[119,101,105,101,114,112,59],value:"℘"},{key:[119,102,114,59],value:"𝔴"},{key:[119,111,112,102,59],value:"𝕨"},{key:[119,112,59],value:"℘"},{key:[119,114,59],value:"≀"},{key:[119,114,101,97,116,104,59],value:"≀"},{key:[119,115,99,114,59],value:"𝓌"},{key:[120,99,97,112,59],value:"⋂"},{key:[120,99,105,114,99,59],value:"◯"},{key:[120,99,117,112,59],value:"⋃"},{key:[120,100,116,114,105,59],value:"▽"},{key:[120,102,114,59],value:"𝔵"},{key:[120,104,65,114,114,59],value:"⟺"},{key:[120,104,97,114,114,59],value:"⟷"},{key:[120,105,59],value:"ξ"},{key:[120,108,65,114,114,59],value:"⟸"},{key:[120,108,97,114,114,59],value:"⟵"},{key:[120,109,97,112,59],value:"⟼"},{key:[120,110,105,115,59],value:"⋻"},{key:[120,111,100,111,116,59],value:"⨀"},{key:[120,111,112,102,59],value:"𝕩"},{key:[120,111,112,108,117,115,59],value:"⨁"},{key:[120,111,116,105,109,101,59],value:"⨂"},{key:[120,114,65,114,114,59],value:"⟹"},{key:[120,114,97,114,114,59],value:"⟶"},{key:[120,115,99,114,59],value:"𝓍"},{key:[120,115,113,99,117,112,59],value:"⨆"},{key:[120,117,112,108,117,115,59],value:"⨄"},{key:[120,117,116,114,105,59],value:"△"},{key:[120,118,101,101,59],value:"⋁"},{key:[120,119,101,100,103,101,59],value:"⋀"},{key:[121,97,99,117,116,101,59],value:"ý"},{key:[121,97,99,121,59],value:"я"},{key:[121,99,105,114,99,59],value:"ŷ"},{key:[121,99,121,59],value:"ы"},{key:[121,101,110,59],value:"¥"},{key:[121,102,114,59],value:"𝔶"},{key:[121,105,99,121,59],value:"ї"},{key:[121,111,112,102,59],value:"𝕪"},{key:[121,115,99,114,59],value:"𝓎"},{key:[121,117,99,121,59],value:"ю"},{key:[121,117,109,108,59],value:"ÿ"},{key:[122,97,99,117,116,101,59],value:"ź"},{key:[122,99,97,114,111,110,59],value:"ž"},{key:[122,99,121,59],value:"з"},{key:[122,100,111,116,59],value:"ż"},{key:[122,101,101,116,114,102,59],value:"ℨ"},{key:[122,101,116,97,59],value:"ζ"},{key:[122,102,114,59],value:"𝔷"},{key:[122,104,99,121,59],value:"ж"},{key:[122,105,103,114,97,114,114,59],value:"⇝"},{key:[122,111,112,102,59],value:"𝕫"},{key:[122,115,99,114,59],value:"𝓏"},{key:[122,119,106,59],value:"‍"},{key:[122,119,110,106,59],value:"‌"}];var WM;(function(e){e[e.LOW_LINE=95]="LOW_LINE",e[e.UNDERTIE=8255]="UNDERTIE",e[e.CHARACTER_TIE=8256]="CHARACTER_TIE",e[e.INVERTED_UNDERTIE=8276]="INVERTED_UNDERTIE",e[e.PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE=65075]="PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE",e[e.PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE=65076]="PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE",e[e.DASHED_LOW_LINE=65101]="DASHED_LOW_LINE",e[e.CENTRELINE_LOW_LINE=65102]="CENTRELINE_LOW_LINE",e[e.WAVY_LOW_LINE=65103]="WAVY_LOW_LINE",e[e.FULLWIDTH_LOW_LINE=65343]="FULLWIDTH_LOW_LINE"})(WM||(WM={}));var GM;(function(e){e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.ARMENIAN_HYPHEN=1418]="ARMENIAN_HYPHEN",e[e.HEBREW_PUNCTUATION_MAQAF=1470]="HEBREW_PUNCTUATION_MAQAF",e[e.CANADIAN_SYLLABICS_HYPHEN=5120]="CANADIAN_SYLLABICS_HYPHEN",e[e.MONGOLIAN_TODO_SOFT_HYPHEN=6150]="MONGOLIAN_TODO_SOFT_HYPHEN",e[e.HYPHEN=8208]="HYPHEN",e[e.NON_BREAKING_HYPHEN=8209]="NON_BREAKING_HYPHEN",e[e.FIGURE_DASH=8210]="FIGURE_DASH",e[e.EN_DASH=8211]="EN_DASH",e[e.EM_DASH=8212]="EM_DASH",e[e.HORIZONTAL_BAR=8213]="HORIZONTAL_BAR",e[e.DOUBLE_OBLIQUE_HYPHEN=11799]="DOUBLE_OBLIQUE_HYPHEN",e[e.HYPHEN_WITH_DIAERESIS=11802]="HYPHEN_WITH_DIAERESIS",e[e.TWO_EM_DASH=11834]="TWO_EM_DASH",e[e.THREE_EM_DASH=11835]="THREE_EM_DASH",e[e.DOUBLE_HYPHEN=11840]="DOUBLE_HYPHEN",e[e.WAVE_DASH=12316]="WAVE_DASH",e[e.WAVY_DASH=12336]="WAVY_DASH",e[e.KATAKANA_HIRAGANA_DOUBLE_HYPHEN=12448]="KATAKANA_HIRAGANA_DOUBLE_HYPHEN",e[e.PRESENTATION_FORM_FOR_VERTICAL_EM_DASH=65073]="PRESENTATION_FORM_FOR_VERTICAL_EM_DASH",e[e.PRESENTATION_FORM_FOR_VERTICAL_EN_DASH=65074]="PRESENTATION_FORM_FOR_VERTICAL_EN_DASH",e[e.SMALL_EM_DASH=65112]="SMALL_EM_DASH",e[e.SMALL_HYPHEN_MINUS=65123]="SMALL_HYPHEN_MINUS",e[e.FULLWIDTH_HYPHEN_MINUS=65293]="FULLWIDTH_HYPHEN_MINUS",e[e.YEZIDI_HYPHENATION_MARK=69293]="YEZIDI_HYPHENATION_MARK"})(GM||(GM={}));var KM;(function(e){e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TIBETAN_MARK_GUG_RTAGS_GYAS=3899]="TIBETAN_MARK_GUG_RTAGS_GYAS",e[e.TIBETAN_MARK_ANG_KHANG_GYAS=3901]="TIBETAN_MARK_ANG_KHANG_GYAS",e[e.OGHAM_REVERSED_FEATHER_MARK=5788]="OGHAM_REVERSED_FEATHER_MARK",e[e.RIGHT_SQUARE_BRACKET_WITH_QUILL=8262]="RIGHT_SQUARE_BRACKET_WITH_QUILL",e[e.SUPERSCRIPT_RIGHT_PARENTHESIS=8318]="SUPERSCRIPT_RIGHT_PARENTHESIS",e[e.SUBSCRIPT_RIGHT_PARENTHESIS=8334]="SUBSCRIPT_RIGHT_PARENTHESIS",e[e.RIGHT_CEILING=8969]="RIGHT_CEILING",e[e.RIGHT_FLOOR=8971]="RIGHT_FLOOR",e[e.RIGHT_POINTING_ANGLE_BRACKET=9002]="RIGHT_POINTING_ANGLE_BRACKET",e[e.MEDIUM_RIGHT_PARENTHESIS_ORNAMENT=10089]="MEDIUM_RIGHT_PARENTHESIS_ORNAMENT",e[e.MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT=10091]="MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT",e[e.MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10093]="MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",e[e.HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10095]="HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",e[e.HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10097]="HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",e[e.LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT=10099]="LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT",e[e.MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT=10101]="MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT",e[e.RIGHT_S_SHAPED_BAG_DELIMITER=10182]="RIGHT_S_SHAPED_BAG_DELIMITER",e[e.MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET=10215]="MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET",e[e.MATHEMATICAL_RIGHT_ANGLE_BRACKET=10217]="MATHEMATICAL_RIGHT_ANGLE_BRACKET",e[e.MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET=10219]="MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET",e[e.MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET=10221]="MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET",e[e.MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS=10223]="MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS",e[e.RIGHT_WHITE_CURLY_BRACKET=10628]="RIGHT_WHITE_CURLY_BRACKET",e[e.RIGHT_WHITE_PARENTHESIS=10630]="RIGHT_WHITE_PARENTHESIS",e[e.Z_NOTATION_RIGHT_IMAGE_BRACKET=10632]="Z_NOTATION_RIGHT_IMAGE_BRACKET",e[e.Z_NOTATION_RIGHT_BINDING_BRACKET=10634]="Z_NOTATION_RIGHT_BINDING_BRACKET",e[e.RIGHT_SQUARE_BRACKET_WITH_UNDERBAR=10636]="RIGHT_SQUARE_BRACKET_WITH_UNDERBAR",e[e.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10638]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",e[e.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10640]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",e[e.RIGHT_ANGLE_BRACKET_WITH_DOT=10642]="RIGHT_ANGLE_BRACKET_WITH_DOT",e[e.RIGHT_ARC_GREATER_THAN_BRACKET=10644]="RIGHT_ARC_GREATER_THAN_BRACKET",e[e.DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET=10646]="DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET",e[e.RIGHT_BLACK_TORTOISE_SHELL_BRACKET=10648]="RIGHT_BLACK_TORTOISE_SHELL_BRACKET",e[e.RIGHT_WIGGLY_FENCE=10713]="RIGHT_WIGGLY_FENCE",e[e.RIGHT_DOUBLE_WIGGLY_FENCE=10715]="RIGHT_DOUBLE_WIGGLY_FENCE",e[e.RIGHT_POINTING_CURVED_ANGLE_BRACKET=10749]="RIGHT_POINTING_CURVED_ANGLE_BRACKET",e[e.TOP_RIGHT_HALF_BRACKET=11811]="TOP_RIGHT_HALF_BRACKET",e[e.BOTTOM_RIGHT_HALF_BRACKET=11813]="BOTTOM_RIGHT_HALF_BRACKET",e[e.RIGHT_SIDEWAYS_U_BRACKET=11815]="RIGHT_SIDEWAYS_U_BRACKET",e[e.RIGHT_DOUBLE_PARENTHESIS=11817]="RIGHT_DOUBLE_PARENTHESIS",e[e.RIGHT_ANGLE_BRACKET=12297]="RIGHT_ANGLE_BRACKET",e[e.RIGHT_DOUBLE_ANGLE_BRACKET=12299]="RIGHT_DOUBLE_ANGLE_BRACKET",e[e.RIGHT_CORNER_BRACKET=12301]="RIGHT_CORNER_BRACKET",e[e.RIGHT_WHITE_CORNER_BRACKET=12303]="RIGHT_WHITE_CORNER_BRACKET",e[e.RIGHT_BLACK_LENTICULAR_BRACKET=12305]="RIGHT_BLACK_LENTICULAR_BRACKET",e[e.RIGHT_TORTOISE_SHELL_BRACKET=12309]="RIGHT_TORTOISE_SHELL_BRACKET",e[e.RIGHT_WHITE_LENTICULAR_BRACKET=12311]="RIGHT_WHITE_LENTICULAR_BRACKET",e[e.RIGHT_WHITE_TORTOISE_SHELL_BRACKET=12313]="RIGHT_WHITE_TORTOISE_SHELL_BRACKET",e[e.RIGHT_WHITE_SQUARE_BRACKET=12315]="RIGHT_WHITE_SQUARE_BRACKET",e[e.DOUBLE_PRIME_QUOTATION_MARK=12318]="DOUBLE_PRIME_QUOTATION_MARK",e[e.LOW_DOUBLE_PRIME_QUOTATION_MARK=12319]="LOW_DOUBLE_PRIME_QUOTATION_MARK",e[e.ORNATE_LEFT_PARENTHESIS=64830]="ORNATE_LEFT_PARENTHESIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET=65048]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS=65078]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET=65080]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET=65082]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET=65084]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET=65086]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET=65088]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET=65090]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET=65092]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET=65096]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET",e[e.SMALL_RIGHT_PARENTHESIS=65114]="SMALL_RIGHT_PARENTHESIS",e[e.SMALL_RIGHT_CURLY_BRACKET=65116]="SMALL_RIGHT_CURLY_BRACKET",e[e.SMALL_RIGHT_TORTOISE_SHELL_BRACKET=65118]="SMALL_RIGHT_TORTOISE_SHELL_BRACKET",e[e.FULLWIDTH_RIGHT_PARENTHESIS=65289]="FULLWIDTH_RIGHT_PARENTHESIS",e[e.FULLWIDTH_RIGHT_SQUARE_BRACKET=65341]="FULLWIDTH_RIGHT_SQUARE_BRACKET",e[e.FULLWIDTH_RIGHT_CURLY_BRACKET=65373]="FULLWIDTH_RIGHT_CURLY_BRACKET",e[e.FULLWIDTH_RIGHT_WHITE_PARENTHESIS=65376]="FULLWIDTH_RIGHT_WHITE_PARENTHESIS",e[e.HALFWIDTH_RIGHT_CORNER_BRACKET=65379]="HALFWIDTH_RIGHT_CORNER_BRACKET"})(KM||(KM={}));var VM;(function(e){e[e.RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=187]="RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",e[e.RIGHT_SINGLE_QUOTATION_MARK=8217]="RIGHT_SINGLE_QUOTATION_MARK",e[e.RIGHT_DOUBLE_QUOTATION_MARK=8221]="RIGHT_DOUBLE_QUOTATION_MARK",e[e.SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK=8250]="SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK",e[e.RIGHT_SUBSTITUTION_BRACKET=11779]="RIGHT_SUBSTITUTION_BRACKET",e[e.RIGHT_DOTTED_SUBSTITUTION_BRACKET=11781]="RIGHT_DOTTED_SUBSTITUTION_BRACKET",e[e.RIGHT_TRANSPOSITION_BRACKET=11786]="RIGHT_TRANSPOSITION_BRACKET",e[e.RIGHT_RAISED_OMISSION_BRACKET=11789]="RIGHT_RAISED_OMISSION_BRACKET",e[e.RIGHT_LOW_PARAPHRASE_BRACKET=11805]="RIGHT_LOW_PARAPHRASE_BRACKET",e[e.RIGHT_VERTICAL_BAR_WITH_QUILL=11809]="RIGHT_VERTICAL_BAR_WITH_QUILL"})(VM||(VM={}));var UM;(function(e){e[e.LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=171]="LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",e[e.LEFT_SINGLE_QUOTATION_MARK=8216]="LEFT_SINGLE_QUOTATION_MARK",e[e.SINGLE_HIGH_REVERSED_9_QUOTATION_MARK=8219]="SINGLE_HIGH_REVERSED_9_QUOTATION_MARK",e[e.LEFT_DOUBLE_QUOTATION_MARK=8220]="LEFT_DOUBLE_QUOTATION_MARK",e[e.DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK=8223]="DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK",e[e.SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK=8249]="SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK",e[e.LEFT_SUBSTITUTION_BRACKET=11778]="LEFT_SUBSTITUTION_BRACKET",e[e.LEFT_DOTTED_SUBSTITUTION_BRACKET=11780]="LEFT_DOTTED_SUBSTITUTION_BRACKET",e[e.LEFT_TRANSPOSITION_BRACKET=11785]="LEFT_TRANSPOSITION_BRACKET",e[e.LEFT_RAISED_OMISSION_BRACKET=11788]="LEFT_RAISED_OMISSION_BRACKET",e[e.LEFT_LOW_PARAPHRASE_BRACKET=11804]="LEFT_LOW_PARAPHRASE_BRACKET",e[e.LEFT_VERTICAL_BAR_WITH_QUILL=11808]="LEFT_VERTICAL_BAR_WITH_QUILL"})(UM||(UM={}));var YM;(function(e){e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.ASTERISK=42]="ASTERISK",e[e.COMMA=44]="COMMA",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.INVERTED_EXCLAMATION_MARK=161]="INVERTED_EXCLAMATION_MARK",e[e.SECTION_SIGN=167]="SECTION_SIGN",e[e.PILCROW_SIGN=182]="PILCROW_SIGN",e[e.MIDDLE_DOT=183]="MIDDLE_DOT",e[e.INVERTED_QUESTION_MARK=191]="INVERTED_QUESTION_MARK",e[e.GREEK_QUESTION_MARK=894]="GREEK_QUESTION_MARK",e[e.GREEK_ANO_TELEIA=903]="GREEK_ANO_TELEIA",e[e.ARMENIAN_APOSTROPHE=1370]="ARMENIAN_APOSTROPHE",e[e.ARMENIAN_EMPHASIS_MARK=1371]="ARMENIAN_EMPHASIS_MARK",e[e.ARMENIAN_EXCLAMATION_MARK=1372]="ARMENIAN_EXCLAMATION_MARK",e[e.ARMENIAN_COMMA=1373]="ARMENIAN_COMMA",e[e.ARMENIAN_QUESTION_MARK=1374]="ARMENIAN_QUESTION_MARK",e[e.ARMENIAN_ABBREVIATION_MARK=1375]="ARMENIAN_ABBREVIATION_MARK",e[e.ARMENIAN_FULL_STOP=1417]="ARMENIAN_FULL_STOP",e[e.HEBREW_PUNCTUATION_PASEQ=1472]="HEBREW_PUNCTUATION_PASEQ",e[e.HEBREW_PUNCTUATION_SOF_PASUQ=1475]="HEBREW_PUNCTUATION_SOF_PASUQ",e[e.HEBREW_PUNCTUATION_NUN_HAFUKHA=1478]="HEBREW_PUNCTUATION_NUN_HAFUKHA",e[e.HEBREW_PUNCTUATION_GERESH=1523]="HEBREW_PUNCTUATION_GERESH",e[e.HEBREW_PUNCTUATION_GERSHAYIM=1524]="HEBREW_PUNCTUATION_GERSHAYIM",e[e.ARABIC_INDIC_PER_MILLE_SIGN=1545]="ARABIC_INDIC_PER_MILLE_SIGN",e[e.ARABIC_INDIC_PER_TEN_THOUSAND_SIGN=1546]="ARABIC_INDIC_PER_TEN_THOUSAND_SIGN",e[e.ARABIC_COMMA=1548]="ARABIC_COMMA",e[e.ARABIC_DATE_SEPARATOR=1549]="ARABIC_DATE_SEPARATOR",e[e.ARABIC_SEMICOLON=1563]="ARABIC_SEMICOLON",e[e.ARABIC_TRIPLE_DOT_PUNCTUATION_MARK=1566]="ARABIC_TRIPLE_DOT_PUNCTUATION_MARK",e[e.ARABIC_QUESTION_MARK=1567]="ARABIC_QUESTION_MARK",e[e.ARABIC_PERCENT_SIGN=1642]="ARABIC_PERCENT_SIGN",e[e.ARABIC_DECIMAL_SEPARATOR=1643]="ARABIC_DECIMAL_SEPARATOR",e[e.ARABIC_THOUSANDS_SEPARATOR=1644]="ARABIC_THOUSANDS_SEPARATOR",e[e.ARABIC_FIVE_POINTED_STAR=1645]="ARABIC_FIVE_POINTED_STAR",e[e.ARABIC_FULL_STOP=1748]="ARABIC_FULL_STOP",e[e.SYRIAC_END_OF_PARAGRAPH=1792]="SYRIAC_END_OF_PARAGRAPH",e[e.SYRIAC_SUPRALINEAR_FULL_STOP=1793]="SYRIAC_SUPRALINEAR_FULL_STOP",e[e.SYRIAC_SUBLINEAR_FULL_STOP=1794]="SYRIAC_SUBLINEAR_FULL_STOP",e[e.SYRIAC_SUPRALINEAR_COLON=1795]="SYRIAC_SUPRALINEAR_COLON",e[e.SYRIAC_SUBLINEAR_COLON=1796]="SYRIAC_SUBLINEAR_COLON",e[e.SYRIAC_HORIZONTAL_COLON=1797]="SYRIAC_HORIZONTAL_COLON",e[e.SYRIAC_COLON_SKEWED_LEFT=1798]="SYRIAC_COLON_SKEWED_LEFT",e[e.SYRIAC_COLON_SKEWED_RIGHT=1799]="SYRIAC_COLON_SKEWED_RIGHT",e[e.SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT=1800]="SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT",e[e.SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT=1801]="SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT",e[e.SYRIAC_CONTRACTION=1802]="SYRIAC_CONTRACTION",e[e.SYRIAC_HARKLEAN_OBELUS=1803]="SYRIAC_HARKLEAN_OBELUS",e[e.SYRIAC_HARKLEAN_METOBELUS=1804]="SYRIAC_HARKLEAN_METOBELUS",e[e.SYRIAC_HARKLEAN_ASTERISCUS=1805]="SYRIAC_HARKLEAN_ASTERISCUS",e[e.NKO_SYMBOL_GBAKURUNEN=2039]="NKO_SYMBOL_GBAKURUNEN",e[e.NKO_COMMA=2040]="NKO_COMMA",e[e.NKO_EXCLAMATION_MARK=2041]="NKO_EXCLAMATION_MARK",e[e.SAMARITAN_PUNCTUATION_NEQUDAA=2096]="SAMARITAN_PUNCTUATION_NEQUDAA",e[e.SAMARITAN_PUNCTUATION_AFSAAQ=2097]="SAMARITAN_PUNCTUATION_AFSAAQ",e[e.SAMARITAN_PUNCTUATION_ANGED=2098]="SAMARITAN_PUNCTUATION_ANGED",e[e.SAMARITAN_PUNCTUATION_BAU=2099]="SAMARITAN_PUNCTUATION_BAU",e[e.SAMARITAN_PUNCTUATION_ATMAAU=2100]="SAMARITAN_PUNCTUATION_ATMAAU",e[e.SAMARITAN_PUNCTUATION_SHIYYAALAA=2101]="SAMARITAN_PUNCTUATION_SHIYYAALAA",e[e.SAMARITAN_ABBREVIATION_MARK=2102]="SAMARITAN_ABBREVIATION_MARK",e[e.SAMARITAN_PUNCTUATION_MELODIC_QITSA=2103]="SAMARITAN_PUNCTUATION_MELODIC_QITSA",e[e.SAMARITAN_PUNCTUATION_ZIQAA=2104]="SAMARITAN_PUNCTUATION_ZIQAA",e[e.SAMARITAN_PUNCTUATION_QITSA=2105]="SAMARITAN_PUNCTUATION_QITSA",e[e.SAMARITAN_PUNCTUATION_ZAEF=2106]="SAMARITAN_PUNCTUATION_ZAEF",e[e.SAMARITAN_PUNCTUATION_TURU=2107]="SAMARITAN_PUNCTUATION_TURU",e[e.SAMARITAN_PUNCTUATION_ARKAANU=2108]="SAMARITAN_PUNCTUATION_ARKAANU",e[e.SAMARITAN_PUNCTUATION_SOF_MASHFAAT=2109]="SAMARITAN_PUNCTUATION_SOF_MASHFAAT",e[e.SAMARITAN_PUNCTUATION_ANNAAU=2110]="SAMARITAN_PUNCTUATION_ANNAAU",e[e.MANDAIC_PUNCTUATION=2142]="MANDAIC_PUNCTUATION",e[e.DEVANAGARI_DANDA=2404]="DEVANAGARI_DANDA",e[e.DEVANAGARI_DOUBLE_DANDA=2405]="DEVANAGARI_DOUBLE_DANDA",e[e.DEVANAGARI_ABBREVIATION_SIGN=2416]="DEVANAGARI_ABBREVIATION_SIGN",e[e.BENGALI_ABBREVIATION_SIGN=2557]="BENGALI_ABBREVIATION_SIGN",e[e.GURMUKHI_ABBREVIATION_SIGN=2678]="GURMUKHI_ABBREVIATION_SIGN",e[e.GUJARATI_ABBREVIATION_SIGN=2800]="GUJARATI_ABBREVIATION_SIGN",e[e.TELUGU_SIGN_SIDDHAM=3191]="TELUGU_SIGN_SIDDHAM",e[e.KANNADA_SIGN_SIDDHAM=3204]="KANNADA_SIGN_SIDDHAM",e[e.SINHALA_PUNCTUATION_KUNDDALIYA=3572]="SINHALA_PUNCTUATION_KUNDDALIYA",e[e.THAI_CHARACTER_FONGMAN=3663]="THAI_CHARACTER_FONGMAN",e[e.THAI_CHARACTER_ANGKHANKHU=3674]="THAI_CHARACTER_ANGKHANKHU",e[e.THAI_CHARACTER_KHOMUT=3675]="THAI_CHARACTER_KHOMUT",e[e.TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA=3844]="TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA",e[e.TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA=3845]="TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA",e[e.TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA=3846]="TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA",e[e.TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA=3847]="TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA",e[e.TIBETAN_MARK_SBRUL_SHAD=3848]="TIBETAN_MARK_SBRUL_SHAD",e[e.TIBETAN_MARK_BSKUR_YIG_MGO=3849]="TIBETAN_MARK_BSKUR_YIG_MGO",e[e.TIBETAN_MARK_BKA__SHOG_YIG_MGO=3850]="TIBETAN_MARK_BKA__SHOG_YIG_MGO",e[e.TIBETAN_MARK_INTERSYLLABIC_TSHEG=3851]="TIBETAN_MARK_INTERSYLLABIC_TSHEG",e[e.TIBETAN_MARK_DELIMITER_TSHEG_BSTAR=3852]="TIBETAN_MARK_DELIMITER_TSHEG_BSTAR",e[e.TIBETAN_MARK_SHAD=3853]="TIBETAN_MARK_SHAD",e[e.TIBETAN_MARK_NYIS_SHAD=3854]="TIBETAN_MARK_NYIS_SHAD",e[e.TIBETAN_MARK_TSHEG_SHAD=3855]="TIBETAN_MARK_TSHEG_SHAD",e[e.TIBETAN_MARK_NYIS_TSHEG_SHAD=3856]="TIBETAN_MARK_NYIS_TSHEG_SHAD",e[e.TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD=3857]="TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD",e[e.TIBETAN_MARK_RGYA_GRAM_SHAD=3858]="TIBETAN_MARK_RGYA_GRAM_SHAD",e[e.TIBETAN_MARK_GTER_TSHEG=3860]="TIBETAN_MARK_GTER_TSHEG",e[e.TIBETAN_MARK_PALUTA=3973]="TIBETAN_MARK_PALUTA",e[e.TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN=4048]="TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN",e[e.TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN=4049]="TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN",e[e.TIBETAN_MARK_NYIS_TSHEG=4050]="TIBETAN_MARK_NYIS_TSHEG",e[e.TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA=4051]="TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA",e[e.TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA=4052]="TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA",e[e.TIBETAN_MARK_LEADING_MCHAN_RTAGS=4057]="TIBETAN_MARK_LEADING_MCHAN_RTAGS",e[e.TIBETAN_MARK_TRAILING_MCHAN_RTAGS=4058]="TIBETAN_MARK_TRAILING_MCHAN_RTAGS",e[e.MYANMAR_SIGN_LITTLE_SECTION=4170]="MYANMAR_SIGN_LITTLE_SECTION",e[e.MYANMAR_SIGN_SECTION=4171]="MYANMAR_SIGN_SECTION",e[e.MYANMAR_SYMBOL_LOCATIVE=4172]="MYANMAR_SYMBOL_LOCATIVE",e[e.MYANMAR_SYMBOL_COMPLETED=4173]="MYANMAR_SYMBOL_COMPLETED",e[e.MYANMAR_SYMBOL_AFOREMENTIONED=4174]="MYANMAR_SYMBOL_AFOREMENTIONED",e[e.MYANMAR_SYMBOL_GENITIVE=4175]="MYANMAR_SYMBOL_GENITIVE",e[e.GEORGIAN_PARAGRAPH_SEPARATOR=4347]="GEORGIAN_PARAGRAPH_SEPARATOR",e[e.ETHIOPIC_SECTION_MARK=4960]="ETHIOPIC_SECTION_MARK",e[e.ETHIOPIC_WORDSPACE=4961]="ETHIOPIC_WORDSPACE",e[e.ETHIOPIC_FULL_STOP=4962]="ETHIOPIC_FULL_STOP",e[e.ETHIOPIC_COMMA=4963]="ETHIOPIC_COMMA",e[e.ETHIOPIC_SEMICOLON=4964]="ETHIOPIC_SEMICOLON",e[e.ETHIOPIC_COLON=4965]="ETHIOPIC_COLON",e[e.ETHIOPIC_PREFACE_COLON=4966]="ETHIOPIC_PREFACE_COLON",e[e.ETHIOPIC_QUESTION_MARK=4967]="ETHIOPIC_QUESTION_MARK",e[e.ETHIOPIC_PARAGRAPH_SEPARATOR=4968]="ETHIOPIC_PARAGRAPH_SEPARATOR",e[e.CANADIAN_SYLLABICS_FULL_STOP=5742]="CANADIAN_SYLLABICS_FULL_STOP",e[e.RUNIC_SINGLE_PUNCTUATION=5867]="RUNIC_SINGLE_PUNCTUATION",e[e.RUNIC_MULTIPLE_PUNCTUATION=5868]="RUNIC_MULTIPLE_PUNCTUATION",e[e.RUNIC_CROSS_PUNCTUATION=5869]="RUNIC_CROSS_PUNCTUATION",e[e.PHILIPPINE_SINGLE_PUNCTUATION=5941]="PHILIPPINE_SINGLE_PUNCTUATION",e[e.PHILIPPINE_DOUBLE_PUNCTUATION=5942]="PHILIPPINE_DOUBLE_PUNCTUATION",e[e.KHMER_SIGN_KHAN=6100]="KHMER_SIGN_KHAN",e[e.KHMER_SIGN_BARIYOOSAN=6101]="KHMER_SIGN_BARIYOOSAN",e[e.KHMER_SIGN_CAMNUC_PII_KUUH=6102]="KHMER_SIGN_CAMNUC_PII_KUUH",e[e.KHMER_SIGN_BEYYAL=6104]="KHMER_SIGN_BEYYAL",e[e.KHMER_SIGN_PHNAEK_MUAN=6105]="KHMER_SIGN_PHNAEK_MUAN",e[e.KHMER_SIGN_KOOMUUT=6106]="KHMER_SIGN_KOOMUUT",e[e.MONGOLIAN_BIRGA=6144]="MONGOLIAN_BIRGA",e[e.MONGOLIAN_ELLIPSIS=6145]="MONGOLIAN_ELLIPSIS",e[e.MONGOLIAN_COMMA=6146]="MONGOLIAN_COMMA",e[e.MONGOLIAN_FULL_STOP=6147]="MONGOLIAN_FULL_STOP",e[e.MONGOLIAN_COLON=6148]="MONGOLIAN_COLON",e[e.MONGOLIAN_FOUR_DOTS=6149]="MONGOLIAN_FOUR_DOTS",e[e.MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER=6151]="MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER",e[e.MONGOLIAN_MANCHU_COMMA=6152]="MONGOLIAN_MANCHU_COMMA",e[e.MONGOLIAN_MANCHU_FULL_STOP=6153]="MONGOLIAN_MANCHU_FULL_STOP",e[e.MONGOLIAN_NIRUGU=6154]="MONGOLIAN_NIRUGU",e[e.LIMBU_EXCLAMATION_MARK=6468]="LIMBU_EXCLAMATION_MARK",e[e.LIMBU_QUESTION_MARK=6469]="LIMBU_QUESTION_MARK",e[e.BUGINESE_PALLAWA=6686]="BUGINESE_PALLAWA",e[e.BUGINESE_END_OF_SECTION=6687]="BUGINESE_END_OF_SECTION",e[e.TAI_THAM_SIGN_WIANG=6816]="TAI_THAM_SIGN_WIANG",e[e.TAI_THAM_SIGN_WIANGWAAK=6817]="TAI_THAM_SIGN_WIANGWAAK",e[e.TAI_THAM_SIGN_SAWAN=6818]="TAI_THAM_SIGN_SAWAN",e[e.TAI_THAM_SIGN_KEOW=6819]="TAI_THAM_SIGN_KEOW",e[e.TAI_THAM_SIGN_HOY=6820]="TAI_THAM_SIGN_HOY",e[e.TAI_THAM_SIGN_DOKMAI=6821]="TAI_THAM_SIGN_DOKMAI",e[e.TAI_THAM_SIGN_REVERSED_ROTATED_RANA=6822]="TAI_THAM_SIGN_REVERSED_ROTATED_RANA",e[e.TAI_THAM_SIGN_KAAN=6824]="TAI_THAM_SIGN_KAAN",e[e.TAI_THAM_SIGN_KAANKUU=6825]="TAI_THAM_SIGN_KAANKUU",e[e.TAI_THAM_SIGN_SATKAAN=6826]="TAI_THAM_SIGN_SATKAAN",e[e.TAI_THAM_SIGN_SATKAANKUU=6827]="TAI_THAM_SIGN_SATKAANKUU",e[e.TAI_THAM_SIGN_HANG=6828]="TAI_THAM_SIGN_HANG",e[e.TAI_THAM_SIGN_CAANG=6829]="TAI_THAM_SIGN_CAANG",e[e.BALINESE_PANTI=7002]="BALINESE_PANTI",e[e.BALINESE_PAMADA=7003]="BALINESE_PAMADA",e[e.BALINESE_WINDU=7004]="BALINESE_WINDU",e[e.BALINESE_CARIK_PAMUNGKAH=7005]="BALINESE_CARIK_PAMUNGKAH",e[e.BALINESE_CARIK_SIKI=7006]="BALINESE_CARIK_SIKI",e[e.BALINESE_CARIK_PAREREN=7007]="BALINESE_CARIK_PAREREN",e[e.BALINESE_PAMENENG=7008]="BALINESE_PAMENENG",e[e.BATAK_SYMBOL_BINDU_NA_METEK=7164]="BATAK_SYMBOL_BINDU_NA_METEK",e[e.BATAK_SYMBOL_BINDU_PINARBORAS=7165]="BATAK_SYMBOL_BINDU_PINARBORAS",e[e.BATAK_SYMBOL_BINDU_JUDUL=7166]="BATAK_SYMBOL_BINDU_JUDUL",e[e.BATAK_SYMBOL_BINDU_PANGOLAT=7167]="BATAK_SYMBOL_BINDU_PANGOLAT",e[e.LEPCHA_PUNCTUATION_TA_ROL=7227]="LEPCHA_PUNCTUATION_TA_ROL",e[e.LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL=7228]="LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL",e[e.LEPCHA_PUNCTUATION_CER_WA=7229]="LEPCHA_PUNCTUATION_CER_WA",e[e.LEPCHA_PUNCTUATION_TSHOOK_CER_WA=7230]="LEPCHA_PUNCTUATION_TSHOOK_CER_WA",e[e.LEPCHA_PUNCTUATION_TSHOOK=7231]="LEPCHA_PUNCTUATION_TSHOOK",e[e.OL_CHIKI_PUNCTUATION_MUCAAD=7294]="OL_CHIKI_PUNCTUATION_MUCAAD",e[e.OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD=7295]="OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD",e[e.SUNDANESE_PUNCTUATION_BINDU_SURYA=7360]="SUNDANESE_PUNCTUATION_BINDU_SURYA",e[e.SUNDANESE_PUNCTUATION_BINDU_PANGLONG=7361]="SUNDANESE_PUNCTUATION_BINDU_PANGLONG",e[e.SUNDANESE_PUNCTUATION_BINDU_PURNAMA=7362]="SUNDANESE_PUNCTUATION_BINDU_PURNAMA",e[e.SUNDANESE_PUNCTUATION_BINDU_CAKRA=7363]="SUNDANESE_PUNCTUATION_BINDU_CAKRA",e[e.SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA=7364]="SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA",e[e.SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA=7365]="SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA",e[e.SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA=7366]="SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA",e[e.SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA=7367]="SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA",e[e.VEDIC_SIGN_NIHSHVASA=7379]="VEDIC_SIGN_NIHSHVASA",e[e.DOUBLE_VERTICAL_LINE=8214]="DOUBLE_VERTICAL_LINE",e[e.DOUBLE_LOW_LINE=8215]="DOUBLE_LOW_LINE",e[e.DAGGER=8224]="DAGGER",e[e.DOUBLE_DAGGER=8225]="DOUBLE_DAGGER",e[e.BULLET=8226]="BULLET",e[e.TRIANGULAR_BULLET=8227]="TRIANGULAR_BULLET",e[e.ONE_DOT_LEADER=8228]="ONE_DOT_LEADER",e[e.TWO_DOT_LEADER=8229]="TWO_DOT_LEADER",e[e.HORIZONTAL_ELLIPSIS=8230]="HORIZONTAL_ELLIPSIS",e[e.HYPHENATION_POINT=8231]="HYPHENATION_POINT",e[e.PER_MILLE_SIGN=8240]="PER_MILLE_SIGN",e[e.PER_TEN_THOUSAND_SIGN=8241]="PER_TEN_THOUSAND_SIGN",e[e.PRIME=8242]="PRIME",e[e.DOUBLE_PRIME=8243]="DOUBLE_PRIME",e[e.TRIPLE_PRIME=8244]="TRIPLE_PRIME",e[e.REVERSED_PRIME=8245]="REVERSED_PRIME",e[e.REVERSED_DOUBLE_PRIME=8246]="REVERSED_DOUBLE_PRIME",e[e.REVERSED_TRIPLE_PRIME=8247]="REVERSED_TRIPLE_PRIME",e[e.CARET=8248]="CARET",e[e.REFERENCE_MARK=8251]="REFERENCE_MARK",e[e.DOUBLE_EXCLAMATION_MARK=8252]="DOUBLE_EXCLAMATION_MARK",e[e.INTERROBANG=8253]="INTERROBANG",e[e.OVERLINE=8254]="OVERLINE",e[e.CARET_INSERTION_POINT=8257]="CARET_INSERTION_POINT",e[e.ASTERISM=8258]="ASTERISM",e[e.HYPHEN_BULLET=8259]="HYPHEN_BULLET",e[e.DOUBLE_QUESTION_MARK=8263]="DOUBLE_QUESTION_MARK",e[e.QUESTION_EXCLAMATION_MARK=8264]="QUESTION_EXCLAMATION_MARK",e[e.EXCLAMATION_QUESTION_MARK=8265]="EXCLAMATION_QUESTION_MARK",e[e.TIRONIAN_SIGN_ET=8266]="TIRONIAN_SIGN_ET",e[e.REVERSED_PILCROW_SIGN=8267]="REVERSED_PILCROW_SIGN",e[e.BLACK_LEFTWARDS_BULLET=8268]="BLACK_LEFTWARDS_BULLET",e[e.BLACK_RIGHTWARDS_BULLET=8269]="BLACK_RIGHTWARDS_BULLET",e[e.LOW_ASTERISK=8270]="LOW_ASTERISK",e[e.REVERSED_SEMICOLON=8271]="REVERSED_SEMICOLON",e[e.CLOSE_UP=8272]="CLOSE_UP",e[e.TWO_ASTERISKS_ALIGNED_VERTICALLY=8273]="TWO_ASTERISKS_ALIGNED_VERTICALLY",e[e.SWUNG_DASH=8275]="SWUNG_DASH",e[e.FLOWER_PUNCTUATION_MARK=8277]="FLOWER_PUNCTUATION_MARK",e[e.THREE_DOT_PUNCTUATION=8278]="THREE_DOT_PUNCTUATION",e[e.QUADRUPLE_PRIME=8279]="QUADRUPLE_PRIME",e[e.FOUR_DOT_PUNCTUATION=8280]="FOUR_DOT_PUNCTUATION",e[e.FIVE_DOT_PUNCTUATION=8281]="FIVE_DOT_PUNCTUATION",e[e.TWO_DOT_PUNCTUATION=8282]="TWO_DOT_PUNCTUATION",e[e.FOUR_DOT_MARK=8283]="FOUR_DOT_MARK",e[e.DOTTED_CROSS=8284]="DOTTED_CROSS",e[e.TRICOLON=8285]="TRICOLON",e[e.VERTICAL_FOUR_DOTS=8286]="VERTICAL_FOUR_DOTS",e[e.COPTIC_OLD_NUBIAN_FULL_STOP=11513]="COPTIC_OLD_NUBIAN_FULL_STOP",e[e.COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK=11514]="COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK",e[e.COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK=11515]="COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK",e[e.COPTIC_OLD_NUBIAN_VERSE_DIVIDER=11516]="COPTIC_OLD_NUBIAN_VERSE_DIVIDER",e[e.COPTIC_FULL_STOP=11518]="COPTIC_FULL_STOP",e[e.COPTIC_MORPHOLOGICAL_DIVIDER=11519]="COPTIC_MORPHOLOGICAL_DIVIDER",e[e.TIFINAGH_SEPARATOR_MARK=11632]="TIFINAGH_SEPARATOR_MARK",e[e.RIGHT_ANGLE_SUBSTITUTION_MARKER=11776]="RIGHT_ANGLE_SUBSTITUTION_MARKER",e[e.RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER=11777]="RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER",e[e.RAISED_INTERPOLATION_MARKER=11782]="RAISED_INTERPOLATION_MARKER",e[e.RAISED_DOTTED_INTERPOLATION_MARKER=11783]="RAISED_DOTTED_INTERPOLATION_MARKER",e[e.DOTTED_TRANSPOSITION_MARKER=11784]="DOTTED_TRANSPOSITION_MARKER",e[e.RAISED_SQUARE=11787]="RAISED_SQUARE",e[e.EDITORIAL_CORONIS=11790]="EDITORIAL_CORONIS",e[e.PARAGRAPHOS=11791]="PARAGRAPHOS",e[e.FORKED_PARAGRAPHOS=11792]="FORKED_PARAGRAPHOS",e[e.REVERSED_FORKED_PARAGRAPHOS=11793]="REVERSED_FORKED_PARAGRAPHOS",e[e.HYPODIASTOLE=11794]="HYPODIASTOLE",e[e.DOTTED_OBELOS=11795]="DOTTED_OBELOS",e[e.DOWNWARDS_ANCORA=11796]="DOWNWARDS_ANCORA",e[e.UPWARDS_ANCORA=11797]="UPWARDS_ANCORA",e[e.DOTTED_RIGHT_POINTING_ANGLE=11798]="DOTTED_RIGHT_POINTING_ANGLE",e[e.INVERTED_INTERROBANG=11800]="INVERTED_INTERROBANG",e[e.PALM_BRANCH=11801]="PALM_BRANCH",e[e.TILDE_WITH_RING_ABOVE=11803]="TILDE_WITH_RING_ABOVE",e[e.TILDE_WITH_DOT_ABOVE=11806]="TILDE_WITH_DOT_ABOVE",e[e.TILDE_WITH_DOT_BELOW=11807]="TILDE_WITH_DOT_BELOW",e[e.TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=11818]="TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",e[e.ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=11819]="ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",e[e.SQUARED_FOUR_DOT_PUNCTUATION=11820]="SQUARED_FOUR_DOT_PUNCTUATION",e[e.FIVE_DOT_MARK=11821]="FIVE_DOT_MARK",e[e.REVERSED_QUESTION_MARK=11822]="REVERSED_QUESTION_MARK",e[e.RING_POINT=11824]="RING_POINT",e[e.WORD_SEPARATOR_MIDDLE_DOT=11825]="WORD_SEPARATOR_MIDDLE_DOT",e[e.TURNED_COMMA=11826]="TURNED_COMMA",e[e.RAISED_DOT=11827]="RAISED_DOT",e[e.RAISED_COMMA=11828]="RAISED_COMMA",e[e.TURNED_SEMICOLON=11829]="TURNED_SEMICOLON",e[e.DAGGER_WITH_LEFT_GUARD=11830]="DAGGER_WITH_LEFT_GUARD",e[e.DAGGER_WITH_RIGHT_GUARD=11831]="DAGGER_WITH_RIGHT_GUARD",e[e.TURNED_DAGGER=11832]="TURNED_DAGGER",e[e.TOP_HALF_SECTION_SIGN=11833]="TOP_HALF_SECTION_SIGN",e[e.STENOGRAPHIC_FULL_STOP=11836]="STENOGRAPHIC_FULL_STOP",e[e.VERTICAL_SIX_DOTS=11837]="VERTICAL_SIX_DOTS",e[e.WIGGLY_VERTICAL_LINE=11838]="WIGGLY_VERTICAL_LINE",e[e.CAPITULUM=11839]="CAPITULUM",e[e.REVERSED_COMMA=11841]="REVERSED_COMMA",e[e.DASH_WITH_LEFT_UPTURN=11843]="DASH_WITH_LEFT_UPTURN",e[e.DOUBLE_SUSPENSION_MARK=11844]="DOUBLE_SUSPENSION_MARK",e[e.INVERTED_LOW_KAVYKA=11845]="INVERTED_LOW_KAVYKA",e[e.INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE=11846]="INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE",e[e.LOW_KAVYKA=11847]="LOW_KAVYKA",e[e.LOW_KAVYKA_WITH_DOT=11848]="LOW_KAVYKA_WITH_DOT",e[e.DOUBLE_STACKED_COMMA=11849]="DOUBLE_STACKED_COMMA",e[e.DOTTED_SOLIDUS=11850]="DOTTED_SOLIDUS",e[e.TRIPLE_DAGGER=11851]="TRIPLE_DAGGER",e[e.MEDIEVAL_COMMA=11852]="MEDIEVAL_COMMA",e[e.PARAGRAPHUS_MARK=11853]="PARAGRAPHUS_MARK",e[e.PUNCTUS_ELEVATUS_MARK=11854]="PUNCTUS_ELEVATUS_MARK",e[e.CORNISH_VERSE_DIVIDER=11855]="CORNISH_VERSE_DIVIDER",e[e.TIRONIAN_SIGN_CAPITAL_ET=11858]="TIRONIAN_SIGN_CAPITAL_ET",e[e.IDEOGRAPHIC_COMMA=12289]="IDEOGRAPHIC_COMMA",e[e.IDEOGRAPHIC_FULL_STOP=12290]="IDEOGRAPHIC_FULL_STOP",e[e.DITTO_MARK=12291]="DITTO_MARK",e[e.PART_ALTERNATION_MARK=12349]="PART_ALTERNATION_MARK",e[e.KATAKANA_MIDDLE_DOT=12539]="KATAKANA_MIDDLE_DOT",e[e.LISU_PUNCTUATION_COMMA=42238]="LISU_PUNCTUATION_COMMA",e[e.LISU_PUNCTUATION_FULL_STOP=42239]="LISU_PUNCTUATION_FULL_STOP",e[e.VAI_COMMA=42509]="VAI_COMMA",e[e.VAI_FULL_STOP=42510]="VAI_FULL_STOP",e[e.VAI_QUESTION_MARK=42511]="VAI_QUESTION_MARK",e[e.SLAVONIC_ASTERISK=42611]="SLAVONIC_ASTERISK",e[e.CYRILLIC_KAVYKA=42622]="CYRILLIC_KAVYKA",e[e.BAMUM_NJAEMLI=42738]="BAMUM_NJAEMLI",e[e.BAMUM_FULL_STOP=42739]="BAMUM_FULL_STOP",e[e.BAMUM_COLON=42740]="BAMUM_COLON",e[e.BAMUM_COMMA=42741]="BAMUM_COMMA",e[e.BAMUM_SEMICOLON=42742]="BAMUM_SEMICOLON",e[e.BAMUM_QUESTION_MARK=42743]="BAMUM_QUESTION_MARK",e[e.PHAGS_PA_SINGLE_HEAD_MARK=43124]="PHAGS_PA_SINGLE_HEAD_MARK",e[e.PHAGS_PA_DOUBLE_HEAD_MARK=43125]="PHAGS_PA_DOUBLE_HEAD_MARK",e[e.PHAGS_PA_MARK_SHAD=43126]="PHAGS_PA_MARK_SHAD",e[e.PHAGS_PA_MARK_DOUBLE_SHAD=43127]="PHAGS_PA_MARK_DOUBLE_SHAD",e[e.SAURASHTRA_DANDA=43214]="SAURASHTRA_DANDA",e[e.SAURASHTRA_DOUBLE_DANDA=43215]="SAURASHTRA_DOUBLE_DANDA",e[e.DEVANAGARI_SIGN_PUSHPIKA=43256]="DEVANAGARI_SIGN_PUSHPIKA",e[e.DEVANAGARI_GAP_FILLER=43257]="DEVANAGARI_GAP_FILLER",e[e.DEVANAGARI_CARET=43258]="DEVANAGARI_CARET",e[e.DEVANAGARI_SIGN_SIDDHAM=43260]="DEVANAGARI_SIGN_SIDDHAM",e[e.KAYAH_LI_SIGN_CWI=43310]="KAYAH_LI_SIGN_CWI",e[e.KAYAH_LI_SIGN_SHYA=43311]="KAYAH_LI_SIGN_SHYA",e[e.REJANG_SECTION_MARK=43359]="REJANG_SECTION_MARK",e[e.JAVANESE_LEFT_RERENGGAN=43457]="JAVANESE_LEFT_RERENGGAN",e[e.JAVANESE_RIGHT_RERENGGAN=43458]="JAVANESE_RIGHT_RERENGGAN",e[e.JAVANESE_PADA_ANDAP=43459]="JAVANESE_PADA_ANDAP",e[e.JAVANESE_PADA_MADYA=43460]="JAVANESE_PADA_MADYA",e[e.JAVANESE_PADA_LUHUR=43461]="JAVANESE_PADA_LUHUR",e[e.JAVANESE_PADA_WINDU=43462]="JAVANESE_PADA_WINDU",e[e.JAVANESE_PADA_PANGKAT=43463]="JAVANESE_PADA_PANGKAT",e[e.JAVANESE_PADA_LINGSA=43464]="JAVANESE_PADA_LINGSA",e[e.JAVANESE_PADA_LUNGSI=43465]="JAVANESE_PADA_LUNGSI",e[e.JAVANESE_PADA_ADEG=43466]="JAVANESE_PADA_ADEG",e[e.JAVANESE_PADA_ADEG_ADEG=43467]="JAVANESE_PADA_ADEG_ADEG",e[e.JAVANESE_PADA_PISELEH=43468]="JAVANESE_PADA_PISELEH",e[e.JAVANESE_TURNED_PADA_PISELEH=43469]="JAVANESE_TURNED_PADA_PISELEH",e[e.JAVANESE_PADA_TIRTA_TUMETES=43486]="JAVANESE_PADA_TIRTA_TUMETES",e[e.JAVANESE_PADA_ISEN_ISEN=43487]="JAVANESE_PADA_ISEN_ISEN",e[e.CHAM_PUNCTUATION_SPIRAL=43612]="CHAM_PUNCTUATION_SPIRAL",e[e.CHAM_PUNCTUATION_DANDA=43613]="CHAM_PUNCTUATION_DANDA",e[e.CHAM_PUNCTUATION_DOUBLE_DANDA=43614]="CHAM_PUNCTUATION_DOUBLE_DANDA",e[e.CHAM_PUNCTUATION_TRIPLE_DANDA=43615]="CHAM_PUNCTUATION_TRIPLE_DANDA",e[e.TAI_VIET_SYMBOL_HO_HOI=43742]="TAI_VIET_SYMBOL_HO_HOI",e[e.TAI_VIET_SYMBOL_KOI_KOI=43743]="TAI_VIET_SYMBOL_KOI_KOI",e[e.MEETEI_MAYEK_CHEIKHAN=43760]="MEETEI_MAYEK_CHEIKHAN",e[e.MEETEI_MAYEK_AHANG_KHUDAM=43761]="MEETEI_MAYEK_AHANG_KHUDAM",e[e.MEETEI_MAYEK_CHEIKHEI=44011]="MEETEI_MAYEK_CHEIKHEI",e[e.PRESENTATION_FORM_FOR_VERTICAL_COMMA=65040]="PRESENTATION_FORM_FOR_VERTICAL_COMMA",e[e.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA=65041]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA",e[e.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP=65042]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP",e[e.PRESENTATION_FORM_FOR_VERTICAL_COLON=65043]="PRESENTATION_FORM_FOR_VERTICAL_COLON",e[e.PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON=65044]="PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON",e[e.PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK=65045]="PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK",e[e.PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK=65046]="PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK",e[e.PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS=65049]="PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER=65072]="PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER",e[e.SESAME_DOT=65093]="SESAME_DOT",e[e.WHITE_SESAME_DOT=65094]="WHITE_SESAME_DOT",e[e.DASHED_OVERLINE=65097]="DASHED_OVERLINE",e[e.CENTRELINE_OVERLINE=65098]="CENTRELINE_OVERLINE",e[e.WAVY_OVERLINE=65099]="WAVY_OVERLINE",e[e.DOUBLE_WAVY_OVERLINE=65100]="DOUBLE_WAVY_OVERLINE",e[e.SMALL_COMMA=65104]="SMALL_COMMA",e[e.SMALL_IDEOGRAPHIC_COMMA=65105]="SMALL_IDEOGRAPHIC_COMMA",e[e.SMALL_FULL_STOP=65106]="SMALL_FULL_STOP",e[e.SMALL_SEMICOLON=65108]="SMALL_SEMICOLON",e[e.SMALL_COLON=65109]="SMALL_COLON",e[e.SMALL_QUESTION_MARK=65110]="SMALL_QUESTION_MARK",e[e.SMALL_EXCLAMATION_MARK=65111]="SMALL_EXCLAMATION_MARK",e[e.SMALL_NUMBER_SIGN=65119]="SMALL_NUMBER_SIGN",e[e.SMALL_AMPERSAND=65120]="SMALL_AMPERSAND",e[e.SMALL_ASTERISK=65121]="SMALL_ASTERISK",e[e.SMALL_REVERSE_SOLIDUS=65128]="SMALL_REVERSE_SOLIDUS",e[e.SMALL_PERCENT_SIGN=65130]="SMALL_PERCENT_SIGN",e[e.SMALL_COMMERCIAL_AT=65131]="SMALL_COMMERCIAL_AT",e[e.FULLWIDTH_EXCLAMATION_MARK=65281]="FULLWIDTH_EXCLAMATION_MARK",e[e.FULLWIDTH_QUOTATION_MARK=65282]="FULLWIDTH_QUOTATION_MARK",e[e.FULLWIDTH_NUMBER_SIGN=65283]="FULLWIDTH_NUMBER_SIGN",e[e.FULLWIDTH_PERCENT_SIGN=65285]="FULLWIDTH_PERCENT_SIGN",e[e.FULLWIDTH_AMPERSAND=65286]="FULLWIDTH_AMPERSAND",e[e.FULLWIDTH_APOSTROPHE=65287]="FULLWIDTH_APOSTROPHE",e[e.FULLWIDTH_ASTERISK=65290]="FULLWIDTH_ASTERISK",e[e.FULLWIDTH_COMMA=65292]="FULLWIDTH_COMMA",e[e.FULLWIDTH_FULL_STOP=65294]="FULLWIDTH_FULL_STOP",e[e.FULLWIDTH_SOLIDUS=65295]="FULLWIDTH_SOLIDUS",e[e.FULLWIDTH_COLON=65306]="FULLWIDTH_COLON",e[e.FULLWIDTH_SEMICOLON=65307]="FULLWIDTH_SEMICOLON",e[e.FULLWIDTH_QUESTION_MARK=65311]="FULLWIDTH_QUESTION_MARK",e[e.FULLWIDTH_COMMERCIAL_AT=65312]="FULLWIDTH_COMMERCIAL_AT",e[e.FULLWIDTH_REVERSE_SOLIDUS=65340]="FULLWIDTH_REVERSE_SOLIDUS",e[e.HALFWIDTH_IDEOGRAPHIC_FULL_STOP=65377]="HALFWIDTH_IDEOGRAPHIC_FULL_STOP",e[e.HALFWIDTH_IDEOGRAPHIC_COMMA=65380]="HALFWIDTH_IDEOGRAPHIC_COMMA",e[e.HALFWIDTH_KATAKANA_MIDDLE_DOT=65381]="HALFWIDTH_KATAKANA_MIDDLE_DOT",e[e.AEGEAN_WORD_SEPARATOR_LINE=65792]="AEGEAN_WORD_SEPARATOR_LINE",e[e.AEGEAN_WORD_SEPARATOR_DOT=65793]="AEGEAN_WORD_SEPARATOR_DOT",e[e.AEGEAN_CHECK_MARK=65794]="AEGEAN_CHECK_MARK",e[e.UGARITIC_WORD_DIVIDER=66463]="UGARITIC_WORD_DIVIDER",e[e.OLD_PERSIAN_WORD_DIVIDER=66512]="OLD_PERSIAN_WORD_DIVIDER",e[e.CAUCASIAN_ALBANIAN_CITATION_MARK=66927]="CAUCASIAN_ALBANIAN_CITATION_MARK",e[e.IMPERIAL_ARAMAIC_SECTION_SIGN=67671]="IMPERIAL_ARAMAIC_SECTION_SIGN",e[e.PHOENICIAN_WORD_SEPARATOR=67871]="PHOENICIAN_WORD_SEPARATOR",e[e.LYDIAN_TRIANGULAR_MARK=67903]="LYDIAN_TRIANGULAR_MARK",e[e.KHAROSHTHI_PUNCTUATION_DOT=68176]="KHAROSHTHI_PUNCTUATION_DOT",e[e.KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE=68177]="KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE",e[e.KHAROSHTHI_PUNCTUATION_CIRCLE=68178]="KHAROSHTHI_PUNCTUATION_CIRCLE",e[e.KHAROSHTHI_PUNCTUATION_CRESCENT_BAR=68179]="KHAROSHTHI_PUNCTUATION_CRESCENT_BAR",e[e.KHAROSHTHI_PUNCTUATION_MANGALAM=68180]="KHAROSHTHI_PUNCTUATION_MANGALAM",e[e.KHAROSHTHI_PUNCTUATION_LOTUS=68181]="KHAROSHTHI_PUNCTUATION_LOTUS",e[e.KHAROSHTHI_PUNCTUATION_DANDA=68182]="KHAROSHTHI_PUNCTUATION_DANDA",e[e.KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA=68183]="KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA",e[e.KHAROSHTHI_PUNCTUATION_LINES=68184]="KHAROSHTHI_PUNCTUATION_LINES",e[e.OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR=68223]="OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR",e[e.MANICHAEAN_PUNCTUATION_STAR=68336]="MANICHAEAN_PUNCTUATION_STAR",e[e.MANICHAEAN_PUNCTUATION_FLEURON=68337]="MANICHAEAN_PUNCTUATION_FLEURON",e[e.MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT=68338]="MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT",e[e.MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT=68339]="MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT",e[e.MANICHAEAN_PUNCTUATION_DOT=68340]="MANICHAEAN_PUNCTUATION_DOT",e[e.MANICHAEAN_PUNCTUATION_TWO_DOTS=68341]="MANICHAEAN_PUNCTUATION_TWO_DOTS",e[e.MANICHAEAN_PUNCTUATION_LINE_FILLER=68342]="MANICHAEAN_PUNCTUATION_LINE_FILLER",e[e.AVESTAN_ABBREVIATION_MARK=68409]="AVESTAN_ABBREVIATION_MARK",e[e.TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68410]="TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",e[e.SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68411]="SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",e[e.LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68412]="LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",e[e.LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=68413]="LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",e[e.LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION=68414]="LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION",e[e.LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION=68415]="LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION",e[e.PSALTER_PAHLAVI_SECTION_MARK=68505]="PSALTER_PAHLAVI_SECTION_MARK",e[e.PSALTER_PAHLAVI_TURNED_SECTION_MARK=68506]="PSALTER_PAHLAVI_TURNED_SECTION_MARK",e[e.PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS=68507]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS",e[e.PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT=68508]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT",e[e.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS=69461]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS",e[e.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS=69462]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS",e[e.SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT=69463]="SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT",e[e.SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS=69464]="SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS",e[e.SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT=69465]="SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT",e[e.BRAHMI_DANDA=69703]="BRAHMI_DANDA",e[e.BRAHMI_DOUBLE_DANDA=69704]="BRAHMI_DOUBLE_DANDA",e[e.BRAHMI_PUNCTUATION_DOT=69705]="BRAHMI_PUNCTUATION_DOT",e[e.BRAHMI_PUNCTUATION_DOUBLE_DOT=69706]="BRAHMI_PUNCTUATION_DOUBLE_DOT",e[e.BRAHMI_PUNCTUATION_LINE=69707]="BRAHMI_PUNCTUATION_LINE",e[e.BRAHMI_PUNCTUATION_CRESCENT_BAR=69708]="BRAHMI_PUNCTUATION_CRESCENT_BAR",e[e.BRAHMI_PUNCTUATION_LOTUS=69709]="BRAHMI_PUNCTUATION_LOTUS",e[e.KAITHI_ABBREVIATION_SIGN=69819]="KAITHI_ABBREVIATION_SIGN",e[e.KAITHI_ENUMERATION_SIGN=69820]="KAITHI_ENUMERATION_SIGN",e[e.KAITHI_SECTION_MARK=69822]="KAITHI_SECTION_MARK",e[e.KAITHI_DOUBLE_SECTION_MARK=69823]="KAITHI_DOUBLE_SECTION_MARK",e[e.KAITHI_DANDA=69824]="KAITHI_DANDA",e[e.KAITHI_DOUBLE_DANDA=69825]="KAITHI_DOUBLE_DANDA",e[e.CHAKMA_SECTION_MARK=69952]="CHAKMA_SECTION_MARK",e[e.CHAKMA_DANDA=69953]="CHAKMA_DANDA",e[e.CHAKMA_DOUBLE_DANDA=69954]="CHAKMA_DOUBLE_DANDA",e[e.CHAKMA_QUESTION_MARK=69955]="CHAKMA_QUESTION_MARK",e[e.MAHAJANI_ABBREVIATION_SIGN=70004]="MAHAJANI_ABBREVIATION_SIGN",e[e.MAHAJANI_SECTION_MARK=70005]="MAHAJANI_SECTION_MARK",e[e.SHARADA_DANDA=70085]="SHARADA_DANDA",e[e.SHARADA_DOUBLE_DANDA=70086]="SHARADA_DOUBLE_DANDA",e[e.SHARADA_ABBREVIATION_SIGN=70087]="SHARADA_ABBREVIATION_SIGN",e[e.SHARADA_SEPARATOR=70088]="SHARADA_SEPARATOR",e[e.SHARADA_SUTRA_MARK=70093]="SHARADA_SUTRA_MARK",e[e.SHARADA_SIGN_SIDDHAM=70107]="SHARADA_SIGN_SIDDHAM",e[e.SHARADA_CONTINUATION_SIGN=70109]="SHARADA_CONTINUATION_SIGN",e[e.SHARADA_SECTION_MARK_1=70110]="SHARADA_SECTION_MARK_1",e[e.SHARADA_SECTION_MARK_2=70111]="SHARADA_SECTION_MARK_2",e[e.KHOJKI_DANDA=70200]="KHOJKI_DANDA",e[e.KHOJKI_DOUBLE_DANDA=70201]="KHOJKI_DOUBLE_DANDA",e[e.KHOJKI_WORD_SEPARATOR=70202]="KHOJKI_WORD_SEPARATOR",e[e.KHOJKI_SECTION_MARK=70203]="KHOJKI_SECTION_MARK",e[e.KHOJKI_DOUBLE_SECTION_MARK=70204]="KHOJKI_DOUBLE_SECTION_MARK",e[e.KHOJKI_ABBREVIATION_SIGN=70205]="KHOJKI_ABBREVIATION_SIGN",e[e.MULTANI_SECTION_MARK=70313]="MULTANI_SECTION_MARK",e[e.NEWA_DANDA=70731]="NEWA_DANDA",e[e.NEWA_DOUBLE_DANDA=70732]="NEWA_DOUBLE_DANDA",e[e.NEWA_COMMA=70733]="NEWA_COMMA",e[e.NEWA_GAP_FILLER=70734]="NEWA_GAP_FILLER",e[e.NEWA_ABBREVIATION_SIGN=70735]="NEWA_ABBREVIATION_SIGN",e[e.NEWA_DOUBLE_COMMA=70746]="NEWA_DOUBLE_COMMA",e[e.NEWA_PLACEHOLDER_MARK=70747]="NEWA_PLACEHOLDER_MARK",e[e.NEWA_INSERTION_SIGN=70749]="NEWA_INSERTION_SIGN",e[e.TIRHUTA_ABBREVIATION_SIGN=70854]="TIRHUTA_ABBREVIATION_SIGN",e[e.SIDDHAM_SIGN_SIDDHAM=71105]="SIDDHAM_SIGN_SIDDHAM",e[e.SIDDHAM_DANDA=71106]="SIDDHAM_DANDA",e[e.SIDDHAM_DOUBLE_DANDA=71107]="SIDDHAM_DOUBLE_DANDA",e[e.SIDDHAM_SEPARATOR_DOT=71108]="SIDDHAM_SEPARATOR_DOT",e[e.SIDDHAM_SEPARATOR_BAR=71109]="SIDDHAM_SEPARATOR_BAR",e[e.SIDDHAM_REPETITION_MARK_1=71110]="SIDDHAM_REPETITION_MARK_1",e[e.SIDDHAM_REPETITION_MARK_2=71111]="SIDDHAM_REPETITION_MARK_2",e[e.SIDDHAM_REPETITION_MARK_3=71112]="SIDDHAM_REPETITION_MARK_3",e[e.SIDDHAM_END_OF_TEXT_MARK=71113]="SIDDHAM_END_OF_TEXT_MARK",e[e.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS=71114]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS",e[e.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS=71115]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS=71116]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS=71117]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS=71118]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_DOUBLE_RING=71119]="SIDDHAM_SECTION_MARK_DOUBLE_RING",e[e.SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS=71120]="SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS",e[e.SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS=71121]="SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS=71122]="SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS=71123]="SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS=71124]="SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS=71125]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS",e[e.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES=71126]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES",e[e.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES=71127]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES",e[e.MODI_DANDA=71233]="MODI_DANDA",e[e.MODI_DOUBLE_DANDA=71234]="MODI_DOUBLE_DANDA",e[e.MODI_ABBREVIATION_SIGN=71235]="MODI_ABBREVIATION_SIGN",e[e.MONGOLIAN_BIRGA_WITH_ORNAMENT=71264]="MONGOLIAN_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_ROTATED_BIRGA=71265]="MONGOLIAN_ROTATED_BIRGA",e[e.MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT=71266]="MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT=71267]="MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT=71268]="MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT=71269]="MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT=71270]="MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.MONGOLIAN_INVERTED_BIRGA=71271]="MONGOLIAN_INVERTED_BIRGA",e[e.MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT=71272]="MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.MONGOLIAN_SWIRL_BIRGA=71273]="MONGOLIAN_SWIRL_BIRGA",e[e.MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT=71274]="MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71275]="MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71276]="MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.AHOM_SIGN_SMALL_SECTION=71484]="AHOM_SIGN_SMALL_SECTION",e[e.AHOM_SIGN_SECTION=71485]="AHOM_SIGN_SECTION",e[e.AHOM_SIGN_RULAI=71486]="AHOM_SIGN_RULAI",e[e.DOGRA_ABBREVIATION_SIGN=71739]="DOGRA_ABBREVIATION_SIGN",e[e.DIVES_AKURU_DOUBLE_DANDA=72004]="DIVES_AKURU_DOUBLE_DANDA",e[e.DIVES_AKURU_GAP_FILLER=72005]="DIVES_AKURU_GAP_FILLER",e[e.DIVES_AKURU_END_OF_TEXT_MARK=72006]="DIVES_AKURU_END_OF_TEXT_MARK",e[e.NANDINAGARI_SIGN_SIDDHAM=72162]="NANDINAGARI_SIGN_SIDDHAM",e[e.ZANABAZAR_SQUARE_INITIAL_HEAD_MARK=72255]="ZANABAZAR_SQUARE_INITIAL_HEAD_MARK",e[e.ZANABAZAR_SQUARE_CLOSING_HEAD_MARK=72256]="ZANABAZAR_SQUARE_CLOSING_HEAD_MARK",e[e.ZANABAZAR_SQUARE_MARK_TSHEG=72257]="ZANABAZAR_SQUARE_MARK_TSHEG",e[e.ZANABAZAR_SQUARE_MARK_SHAD=72258]="ZANABAZAR_SQUARE_MARK_SHAD",e[e.ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD=72259]="ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD",e[e.ZANABAZAR_SQUARE_MARK_LONG_TSHEG=72260]="ZANABAZAR_SQUARE_MARK_LONG_TSHEG",e[e.ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK=72261]="ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK",e[e.ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK=72262]="ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK",e[e.SOYOMBO_MARK_TSHEG=72346]="SOYOMBO_MARK_TSHEG",e[e.SOYOMBO_MARK_SHAD=72347]="SOYOMBO_MARK_SHAD",e[e.SOYOMBO_MARK_DOUBLE_SHAD=72348]="SOYOMBO_MARK_DOUBLE_SHAD",e[e.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME=72350]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME",e[e.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME=72351]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME",e[e.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN=72352]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN",e[e.SOYOMBO_TERMINAL_MARK_1=72353]="SOYOMBO_TERMINAL_MARK_1",e[e.SOYOMBO_TERMINAL_MARK_2=72354]="SOYOMBO_TERMINAL_MARK_2",e[e.BHAIKSUKI_DANDA=72769]="BHAIKSUKI_DANDA",e[e.BHAIKSUKI_DOUBLE_DANDA=72770]="BHAIKSUKI_DOUBLE_DANDA",e[e.BHAIKSUKI_WORD_SEPARATOR=72771]="BHAIKSUKI_WORD_SEPARATOR",e[e.BHAIKSUKI_GAP_FILLER_1=72772]="BHAIKSUKI_GAP_FILLER_1",e[e.BHAIKSUKI_GAP_FILLER_2=72773]="BHAIKSUKI_GAP_FILLER_2",e[e.MARCHEN_HEAD_MARK=72816]="MARCHEN_HEAD_MARK",e[e.MARCHEN_MARK_SHAD=72817]="MARCHEN_MARK_SHAD",e[e.MAKASAR_PASSIMBANG=73463]="MAKASAR_PASSIMBANG",e[e.MAKASAR_END_OF_SECTION=73464]="MAKASAR_END_OF_SECTION",e[e.TAMIL_PUNCTUATION_END_OF_TEXT=73727]="TAMIL_PUNCTUATION_END_OF_TEXT",e[e.CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER=74864]="CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER",e[e.CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON=74865]="CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON",e[e.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON=74866]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON",e[e.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON=74867]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON",e[e.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON=74868]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON",e[e.MRO_DANDA=92782]="MRO_DANDA",e[e.MRO_DOUBLE_DANDA=92783]="MRO_DOUBLE_DANDA",e[e.BASSA_VAH_FULL_STOP=92917]="BASSA_VAH_FULL_STOP",e[e.PAHAWH_HMONG_SIGN_VOS_THOM=92983]="PAHAWH_HMONG_SIGN_VOS_THOM",e[e.PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB=92984]="PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB",e[e.PAHAWH_HMONG_SIGN_CIM_CHEEM=92985]="PAHAWH_HMONG_SIGN_CIM_CHEEM",e[e.PAHAWH_HMONG_SIGN_VOS_THIAB=92986]="PAHAWH_HMONG_SIGN_VOS_THIAB",e[e.PAHAWH_HMONG_SIGN_VOS_FEEM=92987]="PAHAWH_HMONG_SIGN_VOS_FEEM",e[e.PAHAWH_HMONG_SIGN_XAUS=92996]="PAHAWH_HMONG_SIGN_XAUS",e[e.MEDEFAIDRIN_COMMA=93847]="MEDEFAIDRIN_COMMA",e[e.MEDEFAIDRIN_FULL_STOP=93848]="MEDEFAIDRIN_FULL_STOP",e[e.MEDEFAIDRIN_SYMBOL_AIVA=93849]="MEDEFAIDRIN_SYMBOL_AIVA",e[e.MEDEFAIDRIN_EXCLAMATION_OH=93850]="MEDEFAIDRIN_EXCLAMATION_OH",e[e.OLD_CHINESE_HOOK_MARK=94178]="OLD_CHINESE_HOOK_MARK",e[e.DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP=113823]="DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP",e[e.SIGNWRITING_COMMA=121479]="SIGNWRITING_COMMA",e[e.SIGNWRITING_FULL_STOP=121480]="SIGNWRITING_FULL_STOP",e[e.SIGNWRITING_SEMICOLON=121481]="SIGNWRITING_SEMICOLON",e[e.SIGNWRITING_COLON=121482]="SIGNWRITING_COLON",e[e.SIGNWRITING_PARENTHESIS=121483]="SIGNWRITING_PARENTHESIS",e[e.ADLAM_INITIAL_EXCLAMATION_MARK=125278]="ADLAM_INITIAL_EXCLAMATION_MARK",e[e.ADLAM_INITIAL_QUESTION_MARK=125279]="ADLAM_INITIAL_QUESTION_MARK"})(YM||(YM={}));var XM;(function(e){e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.TIBETAN_MARK_GUG_RTAGS_GYON=3898]="TIBETAN_MARK_GUG_RTAGS_GYON",e[e.TIBETAN_MARK_ANG_KHANG_GYON=3900]="TIBETAN_MARK_ANG_KHANG_GYON",e[e.OGHAM_FEATHER_MARK=5787]="OGHAM_FEATHER_MARK",e[e.SINGLE_LOW_9_QUOTATION_MARK=8218]="SINGLE_LOW_9_QUOTATION_MARK",e[e.DOUBLE_LOW_9_QUOTATION_MARK=8222]="DOUBLE_LOW_9_QUOTATION_MARK",e[e.LEFT_SQUARE_BRACKET_WITH_QUILL=8261]="LEFT_SQUARE_BRACKET_WITH_QUILL",e[e.SUPERSCRIPT_LEFT_PARENTHESIS=8317]="SUPERSCRIPT_LEFT_PARENTHESIS",e[e.SUBSCRIPT_LEFT_PARENTHESIS=8333]="SUBSCRIPT_LEFT_PARENTHESIS",e[e.LEFT_CEILING=8968]="LEFT_CEILING",e[e.LEFT_FLOOR=8970]="LEFT_FLOOR",e[e.LEFT_POINTING_ANGLE_BRACKET=9001]="LEFT_POINTING_ANGLE_BRACKET",e[e.MEDIUM_LEFT_PARENTHESIS_ORNAMENT=10088]="MEDIUM_LEFT_PARENTHESIS_ORNAMENT",e[e.MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT=10090]="MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT",e[e.MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10092]="MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",e[e.HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10094]="HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",e[e.HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10096]="HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",e[e.LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT=10098]="LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT",e[e.MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT=10100]="MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT",e[e.LEFT_S_SHAPED_BAG_DELIMITER=10181]="LEFT_S_SHAPED_BAG_DELIMITER",e[e.MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET=10214]="MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET",e[e.MATHEMATICAL_LEFT_ANGLE_BRACKET=10216]="MATHEMATICAL_LEFT_ANGLE_BRACKET",e[e.MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET=10218]="MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET",e[e.MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET=10220]="MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET",e[e.MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS=10222]="MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS",e[e.LEFT_WHITE_CURLY_BRACKET=10627]="LEFT_WHITE_CURLY_BRACKET",e[e.LEFT_WHITE_PARENTHESIS=10629]="LEFT_WHITE_PARENTHESIS",e[e.Z_NOTATION_LEFT_IMAGE_BRACKET=10631]="Z_NOTATION_LEFT_IMAGE_BRACKET",e[e.Z_NOTATION_LEFT_BINDING_BRACKET=10633]="Z_NOTATION_LEFT_BINDING_BRACKET",e[e.LEFT_SQUARE_BRACKET_WITH_UNDERBAR=10635]="LEFT_SQUARE_BRACKET_WITH_UNDERBAR",e[e.LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10637]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",e[e.LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10639]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",e[e.LEFT_ANGLE_BRACKET_WITH_DOT=10641]="LEFT_ANGLE_BRACKET_WITH_DOT",e[e.LEFT_ARC_LESS_THAN_BRACKET=10643]="LEFT_ARC_LESS_THAN_BRACKET",e[e.DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET=10645]="DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET",e[e.LEFT_BLACK_TORTOISE_SHELL_BRACKET=10647]="LEFT_BLACK_TORTOISE_SHELL_BRACKET",e[e.LEFT_WIGGLY_FENCE=10712]="LEFT_WIGGLY_FENCE",e[e.LEFT_DOUBLE_WIGGLY_FENCE=10714]="LEFT_DOUBLE_WIGGLY_FENCE",e[e.LEFT_POINTING_CURVED_ANGLE_BRACKET=10748]="LEFT_POINTING_CURVED_ANGLE_BRACKET",e[e.TOP_LEFT_HALF_BRACKET=11810]="TOP_LEFT_HALF_BRACKET",e[e.BOTTOM_LEFT_HALF_BRACKET=11812]="BOTTOM_LEFT_HALF_BRACKET",e[e.LEFT_SIDEWAYS_U_BRACKET=11814]="LEFT_SIDEWAYS_U_BRACKET",e[e.LEFT_DOUBLE_PARENTHESIS=11816]="LEFT_DOUBLE_PARENTHESIS",e[e.DOUBLE_LOW_REVERSED_9_QUOTATION_MARK=11842]="DOUBLE_LOW_REVERSED_9_QUOTATION_MARK",e[e.LEFT_ANGLE_BRACKET=12296]="LEFT_ANGLE_BRACKET",e[e.LEFT_DOUBLE_ANGLE_BRACKET=12298]="LEFT_DOUBLE_ANGLE_BRACKET",e[e.LEFT_CORNER_BRACKET=12300]="LEFT_CORNER_BRACKET",e[e.LEFT_WHITE_CORNER_BRACKET=12302]="LEFT_WHITE_CORNER_BRACKET",e[e.LEFT_BLACK_LENTICULAR_BRACKET=12304]="LEFT_BLACK_LENTICULAR_BRACKET",e[e.LEFT_TORTOISE_SHELL_BRACKET=12308]="LEFT_TORTOISE_SHELL_BRACKET",e[e.LEFT_WHITE_LENTICULAR_BRACKET=12310]="LEFT_WHITE_LENTICULAR_BRACKET",e[e.LEFT_WHITE_TORTOISE_SHELL_BRACKET=12312]="LEFT_WHITE_TORTOISE_SHELL_BRACKET",e[e.LEFT_WHITE_SQUARE_BRACKET=12314]="LEFT_WHITE_SQUARE_BRACKET",e[e.REVERSED_DOUBLE_PRIME_QUOTATION_MARK=12317]="REVERSED_DOUBLE_PRIME_QUOTATION_MARK",e[e.ORNATE_RIGHT_PARENTHESIS=64831]="ORNATE_RIGHT_PARENTHESIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET=65047]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS=65077]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET=65079]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET=65081]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET=65083]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET=65085]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET=65087]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET=65089]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET=65091]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET=65095]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET",e[e.SMALL_LEFT_PARENTHESIS=65113]="SMALL_LEFT_PARENTHESIS",e[e.SMALL_LEFT_CURLY_BRACKET=65115]="SMALL_LEFT_CURLY_BRACKET",e[e.SMALL_LEFT_TORTOISE_SHELL_BRACKET=65117]="SMALL_LEFT_TORTOISE_SHELL_BRACKET",e[e.FULLWIDTH_LEFT_PARENTHESIS=65288]="FULLWIDTH_LEFT_PARENTHESIS",e[e.FULLWIDTH_LEFT_SQUARE_BRACKET=65339]="FULLWIDTH_LEFT_SQUARE_BRACKET",e[e.FULLWIDTH_LEFT_CURLY_BRACKET=65371]="FULLWIDTH_LEFT_CURLY_BRACKET",e[e.FULLWIDTH_LEFT_WHITE_PARENTHESIS=65375]="FULLWIDTH_LEFT_WHITE_PARENTHESIS",e[e.HALFWIDTH_LEFT_CORNER_BRACKET=65378]="HALFWIDTH_LEFT_CORNER_BRACKET"})(XM||(XM={}));var QM;(function(e){e[e.SPACE=32]="SPACE",e[e.NO_BREAK_SPACE=160]="NO_BREAK_SPACE",e[e.OGHAM_SPACE_MARK=5760]="OGHAM_SPACE_MARK",e[e.EN_QUAD=8192]="EN_QUAD",e[e.EM_QUAD=8193]="EM_QUAD",e[e.EN_SPACE=8194]="EN_SPACE",e[e.EM_SPACE=8195]="EM_SPACE",e[e.THREE_PER_EM_SPACE=8196]="THREE_PER_EM_SPACE",e[e.FOUR_PER_EM_SPACE=8197]="FOUR_PER_EM_SPACE",e[e.SIX_PER_EM_SPACE=8198]="SIX_PER_EM_SPACE",e[e.FIGURE_SPACE=8199]="FIGURE_SPACE",e[e.PUNCTUATION_SPACE=8200]="PUNCTUATION_SPACE",e[e.THIN_SPACE=8201]="THIN_SPACE",e[e.HAIR_SPACE=8202]="HAIR_SPACE",e[e.NARROW_NO_BREAK_SPACE=8239]="NARROW_NO_BREAK_SPACE",e[e.MEDIUM_MATHEMATICAL_SPACE=8287]="MEDIUM_MATHEMATICAL_SPACE",e[e.IDEOGRAPHIC_SPACE=12288]="IDEOGRAPHIC_SPACE"})(QM||(QM={}));var Rr;(function(e){e[e.LINE_END=-1]="LINE_END",e[e.SPACE=-2]="SPACE"})(Rr||(Rr={}));function Xv(e){const t=[...new Set(e)].sort((o,i)=>o-i),r=t.length;if(r<8)return[o=>{for(let i=0;is+i);++i);n.push(s,s+i)}if(n.length*1.5{for(let s=0;s{let s=0,a=o;for(;s>>1;i{let i=0,s=r;for(;i>>1;otypeof t=="number")}Xv([H.HT,H.LF,H.VT,H.FF,H.CR,H.SPACE]);const[Egt,Sgt]=Xv([H.EXCLAMATION_MARK,H.DOUBLE_QUOTE,H.NUMBER_SIGN,H.DOLLAR_SIGN,H.PERCENT_SIGN,H.AMPERSAND,H.SINGLE_QUOTE,H.OPEN_PARENTHESIS,H.CLOSE_PARENTHESIS,H.ASTERISK,H.PLUS_SIGN,H.COMMA,H.MINUS_SIGN,H.DOT,H.SLASH,H.COLON,H.SEMICOLON,H.OPEN_ANGLE,H.EQUALS_SIGN,H.CLOSE_ANGLE,H.QUESTION_MARK,H.AT_SIGN,H.OPEN_BRACKET,H.BACKSLASH,H.CLOSE_BRACKET,H.CARET,H.UNDERSCORE,H.BACKTICK,H.OPEN_BRACE,H.VERTICAL_SLASH,H.CLOSE_BRACE,H.TILDE]),_c=e=>e>=H.DIGIT0&&e<=H.DIGIT9,lH=e=>e>=H.LOWERCASE_A&&e<=H.LOWERCASE_Z,PE=e=>e>=H.UPPERCASE_A&&e<=H.UPPERCASE_Z,k1=e=>lH(e)||PE(e),Pd=e=>lH(e)||PE(e)||_c(e),wgt=e=>e>=H.NUL&&e<=H.DELETE,[uH,k_t]=Xv([H.NUL,H.SOH,H.STX,H.ETX,H.EOT,H.ENQ,H.ACK,H.BEL,H.BS,H.HT,H.LF,H.VT,H.FF,H.CR,H.SO,H.SI,H.DLE,H.DC1,H.DC2,H.DC3,H.DC4,H.NAK,H.SYN,H.ETB,H.CAN,H.EM,H.SUB,H.ESC,H.FS,H.GS,H.RS,H.US,H.DELETE]),[An,A_t]=Xv([H.VT,H.FF,H.SPACE,Rr.SPACE,Rr.LINE_END]);H.SPACE,Rr.SPACE;const Ec=e=>e===H.SPACE||e===Rr.SPACE,cH=e=>e===Rr.LINE_END,[uh,x_t]=Xv([...Sgt,...md(WM),...md(GM),...md(KM),...md(VM),...md(UM),...md(YM),...md(XM)]),iF=e=>Ec(e)||cH(e),[Nh,T_t]=Xv([H.HT,H.LF,H.FF,H.CR,Rr.SPACE,Rr.LINE_END,...md(QM)]);var C_;(function(e){e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(C_||(C_={}));function kgt(){const e=(o,i)=>{if(o.length<=4){for(let l=0;l=i)return l;return o.length}let s=0,a=o.length;for(;s>>1;o[l].key{let s=t;for(const a of o){const l=e(s.children,a);if(l>=s.children.length){const c={key:a,children:[]};s.children.push(c),s=c;continue}let u=s.children[l];if(u.key===a){s=u;continue}u={key:a,children:[]},s.children.splice(l,0,u),s=u}s.value=i},search:(o,i,s)=>{let a=t;for(let l=i;l=a.children.length)return null;const f=a.children[c];if(f.key!==u)return null;if(f.value!=null)return{nextIndex:l+1,value:f.value};a=f}return null}}}const xme=kgt();_gt.forEach(e=>xme.insert(e.key,e.value));function Agt(e,t,r){if(t+1>=r)return null;const n=xme.search(e,t,r);if(n!=null)return n;if(e[t].codePoint!==H.NUMBER_SIGN)return null;let o=0,i=t+1;if(e[i].codePoint===H.LOWERCASE_X||e[i].codePoint===H.UPPERCASE_X){i+=1;for(let a=1;a<=6&&i=H.UPPERCASE_A&&l<=H.UPPERCASE_F){o=(o<<4)+(l-H.UPPERCASE_A+10);continue}if(l>=H.LOWERCASE_A&&l<=H.LOWERCASE_F){o=(o<<4)+(l-H.LOWERCASE_A+10);continue}break}}else for(let a=1;a<=7&&i=r||e[i].codePoint!==H.SEMICOLON)return null;let s;try{o===0&&(o=C_.REPLACEMENT_CHARACTER),s=String.fromCodePoint(o)}catch{s=String.fromCodePoint(C_.REPLACEMENT_CHARACTER)}return{nextIndex:i+1,value:s}}function xgt(e){return Array.from(e).map(t=>bgt[t]??t).join("")}(()=>{try{const e=new RegExp("\\p{Script=Han}|[\\u{3002}\\u{ff1f}\\u{ff01}\\u{ff0c}\\u{3001}\\u{ff1b}\\u{ff1a}\\u{201c}\\u{201d}\\u{2018}\\u{2019}\\u{ff08}\\u{ff09}\\u{300a}\\u{300b}\\u{3008}\\u{3009}\\u{3010}\\u{3011}\\u{300e}\\u{300f}\\u{300c}\\u{300d}\\u{fe43}\\u{fe44}\\u{3014}\\u{3015}\\u{2026}\\u{2014}\\u{ff5e}\\u{fe4f}\\u{ffe5}]","u").source,t=new RegExp(`(${e})\\n+(${e})`,"gu");return r=>r.replace(t,"$1$2")}catch{const e=/[\u{4E00}-\u{9FCC}\u{3400}-\u{4DB5}\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]|[\u{d840}-\u{d868}][\u{dc00}-\u{dfff}]|\u{d869}[\u{dc00}-\u{ded6}\u{df00}-\u{dfff}]|[\u{d86a}-\u{d86c}][\u{dc00}-\u{dfff}]|\u{d86d}[\u{dc00}-\u{df34}\u{df40}-\u{dfff}]|\u{d86e}[\u{dc00}-\u{dc1d}]/u.source,t=new RegExp(`(${e})\\n+(${e})`,"gu");return r=>r.replace(t,"$1$2")}})();(()=>{try{const e=new RegExp("\\p{Script=Han}|[\\u{3002}\\u{ff1f}\\u{ff01}\\u{ff0c}\\u{3001}\\u{ff1b}\\u{ff1a}\\u{201c}\\u{201d}\\u{2018}\\u{2019}\\u{ff08}\\u{ff09}\\u{300a}\\u{300b}\\u{3008}\\u{3009}\\u{3010}\\u{3011}\\u{300e}\\u{300f}\\u{300c}\\u{300d}\\u{fe43}\\u{fe44}\\u{3014}\\u{3015}\\u{2026}\\u{2014}\\u{ff5e}\\u{fe4f}\\u{ffe5}]","u").source,t=new RegExp(`(${e})[\\s\\n]+(${e})`,"gu");return r=>r.replace(t,"$1$2")}catch{const e=/[\u{4E00}-\u{9FCC}\u{3400}-\u{4DB5}\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]|[\u{d840}-\u{d868}][\u{dc00}-\u{dfff}]|\u{d869}[\u{dc00}-\u{ded6}\u{df00}-\u{dfff}]|[\u{d86a}-\u{d86c}][\u{dc00}-\u{dfff}]|\u{d86d}[\u{dc00}-\u{df34}\u{df40}-\u{dfff}]|\u{d86e}[\u{dc00}-\u{dc1d}]/u.source,t=new RegExp(`(${e})[\\s\\n]+(${e})`,"gu");return r=>r.replace(t,"$1$2")}})();function*Tgt(e){let t=0,r=1,n=1;const o=typeof e=="string"?[e]:e;for(const i of o){const s=[];for(const u of i){const c=u.codePointAt(0);s.push(c)}const a=[],l=s.length;for(let u=0;u>2,u=s-i&3;for(let c=0;c>2,u=s-i&3;for(let c=0;c!0;if(e instanceof Function)return e;if(e.length===0)return()=>!1;if(e.length===1){const t=e[0];return r=>r.type===t}if(e.length===2){const[t,r]=e;return n=>n.type===t||n.type===r}return t=>{for(const r of e)if(t.type===r)return!0;return!1}}function Cgt(e,t,r){const n=Igt(t),o=i=>{const{children:s}=i;for(let a=0;a{const n={};Cgt(e,t,s=>{const a=s;n[a.identifier]===void 0&&(n[a.identifier]=a)});const o=[];for(const s of r)n[s.identifier]===void 0&&(n[s.identifier]=s,o.push(s));return{root:o.length>0?{...e,children:e.children.concat(o)}:e,definitionMap:n}},Xn=mi({root:{"--colorBgBlockquote":"none","--colorBgTableHead":"hsl(0deg, 0%, 94%)","--colorBgTableEvenRow":"hsl(0deg, 0%, 96%)","--colorBgTableOddRow":"hsl(0deg, 0%, 100%)","--colorBorderBlockquote":"hsl(210deg, 13%, 85%)","--colorBorderHeading":"hsl(0deg, 0%, 80%)","--colorBorderImage":"hsl(277deg, 19%, 47%)","--colorBorderTable":"hsl(220deg, 7%, 90%)","--colorBgCode":"#f5f7f9","--colorDelete":"hsl(210deg, 8%, 65%)","--colorHeading":"hsl(0deg, 0%, 25%)","--colorImageTitle":"hsl(0deg, 0%, 50%)","--colorInlineCode":"hsl(348deg, 60%, 47%)","--colorLink":"hsl(206deg, 53%, 47%)","--colorLinkActive":"hsl(206deg, 53%, 52%)","--colorLinkHover":"hsl(206deg, 53%, 52%)","--colorLinkVisited":"hsl(206deg, 53%, 47%)","--fontFamilyCode":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif","--fontFamilyHeading":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif"},rootDarken:{"&&":{"--colorBgBlockquote":"none","--colorBgTableHead":"hsl(200deg, 10%, 16%)","--colorBgTableEvenRow":"hsl(200deg, 10%, 16%)","--colorBgTableOddRow":"hsl(0deg, 0%, 9%)","--colorBorderBlockquote":"hsl(207deg, 7%, 45%)","--colorBorderHeading":"hsla(0deg, 0%, 30%, 0.8)","--colorBorderImage":"hsl(290deg, 15%, 49%)","--colorBorderTable":"hsl(0deg, 0%, 50%)","--colorBgCode":"hsl(0deg, 0%, 12%)","--colorDelete":"hsl(220deg, 5%, 68%)","--colorHeading":"hsl(0deg, 0%, 65%)","--colorImageTitle":"hsl(0deg, 0%, 50%)","--colorInlineCode":"hsl(348deg, 70%, 52%)","--colorLink":"hsl(207deg, 53%, 50%)","--colorLinkActive":"hsl(207deg, 53%, 50%)","--colorLinkHover":"hsl(207deg, 53%, 50%)","--colorLinkVisited":"hsl(207deg, 53%, 50%)","--fontFamilyCode":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif","--fontFamilyHeading":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif"}},blockquote:{},break:{},code:{},delete:{},emphasis:{},heading:{},image:{},imageReference:{},inlineCode:{},link:{},linkReference:{},list:{},listItem:{},paragraph:{},strong:{},table:{},text:{},thematicBreak:{}}),fH=re.createContext(null);fH.displayName="NodeRendererContextType";const W5=()=>re.useContext(fH);class Rgt extends qpe{constructor(t){super(),this.preferCodeWrap$=new Vo(!1);const{definitionMap:r,rendererMap:n,showCodeLineno:o,themeScheme:i}=t;this.definitionMap$=new Vo(r),this.rendererMap$=new Vo(n),this.showCodeLineno$=new Vo(o),this.themeScheme$=new Vo(i)}}const Ra=e=>{const{nodes:t}=e,{viewmodel:r}=W5(),n=oo(r.rendererMap$);return!Array.isArray(t)||t.length<=0?N.jsx(re.Fragment,{}):N.jsx(Ogt,{nodes:t,rendererMap:n})};class Ogt extends re.Component{shouldComponentUpdate(t){const r=this.props;return!Xb.isEqual(r.nodes,t.nodes)||r.rendererMap!==t.rendererMap}render(){const{nodes:t,rendererMap:r}=this.props;return N.jsx(re.Fragment,{children:t.map((n,o)=>{const i=`${n.type}-${o}`,s=r[n.type]??r._fallback;return N.jsx(s,{...n},i)})})}}var Vu;(function(e){e.BLOCK="block",e.INLINE="inline"})(Vu||(Vu={}));var yn;(function(e){e[e.ATOMIC=10]="ATOMIC",e[e.FENCED_BLOCK=10]="FENCED_BLOCK",e[e.CONTAINING_BLOCK=10]="CONTAINING_BLOCK",e[e.INTERRUPTABLE_BLOCK=2]="INTERRUPTABLE_BLOCK",e[e.IMAGES=4]="IMAGES",e[e.LINKS=3]="LINKS",e[e.CONTAINING_INLINE=2]="CONTAINING_INLINE",e[e.SOFT_INLINE=1]="SOFT_INLINE",e[e.FALLBACK=-1]="FALLBACK"})(yn||(yn={}));class Dl{constructor(t){Be(this,"type",Vu.INLINE);Be(this,"name");Be(this,"priority");this.name=t.name,this.priority=t.priority}toString(){return this.name}}function*xu(e){let t=-1,r=null;for(;;){const[n,o]=yield r;t===o&&(r==null||r.startIndex>=n)||(t=o,r=e(n,o))}}class Tu{constructor(t){Be(this,"type",Vu.BLOCK);Be(this,"name");Be(this,"priority");this.name=t.name,this.priority=t.priority}extractPhrasingContentLines(t){return null}buildBlockToken(t,r){return null}toString(){return this.name}}function Hs(e,t){const{line:r,column:n,offset:o}=e[t];return{line:r,column:n,offset:o}}function Jo(e,t){const{line:r,column:n,offset:o}=e[t];return{line:r,column:n+1,offset:o+1}}function Tme(e){const t=e[0],r=e[e.length-1];return{start:Hs(t.nodePoints,t.startIndex),end:Jo(r.nodePoints,r.endIndex-1)}}function dH(e,t=0,r=e.length){if(t>=r||t<0||r>e.length)return[];const n=[];for(let o=t;o=r||t<0||r>e.length)return[];for(let l=t;l+1=0;--a){const l=o[a];if(!An(l.codePoint))break}for(let l=s;l<=a;++l)n.push(o[l]);return n}function Dgt(e){let t=e;for(;;)try{const r=decodeURIComponent(t);if(r===t)break;t=r}catch{break}return encodeURI(t)}function Ime(e){const t=e.trim().replace(/\s+/gu," ").toLowerCase();return xgt(t)}function Fgt(e,t,r){const n=Na(e,t,r,!0);if(n.length<=0)return null;const o=Ime(n);return{label:n,identifier:o}}function U0(e,t,r){let n=t+1;const o=Math.min(n+1e3,r);for(;nt;--r){const n=e[r];if(n.firstNonWhitespaceIndexr?[]:e.slice(t,r+1)}const Mgt="Invariant failed";function db(e,t){if(!e)throw new Error(Mgt)}const Nme=(e,t)=>{const r={_tokenizer:"root",nodeType:"root",position:{start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}},children:[]},n=[];n.push({hook:{isContainingBlock:!0},token:r});let o=0;const i=h=>{for(let g=o;g>=0;--g){const v=n[g];v.token.position.end={...h}}},s=(h,g)=>{if(g.length<=0)return null;const v=e.filter(E=>E!==h),y=Nme(v,t);for(const E of g)y.consume(E);return y},a=()=>{const h=n.pop();if(h!=null){if(n.length>0){const g=n[n.length-1];if(h.hook.onClose!=null){const v=h.hook.onClose(h.token);if(v!=null)switch(v.status){case"closingAndRollback":{const y=s(h.hook,v.lines);if(y==null)break;const E=y.done();g.token.children.push(...E.children);break}case"failedAndRollback":{g.token.children.pop();const y=s(h.hook,v.lines);if(y==null)break;const E=y.done();g.token.children.push(...E.children);break}}}}return o>=n.length&&(o=n.length-1),h}},l=h=>{for(;n.length>h;)a()},u=(h,g,v)=>{l(o+1),n[o].token.children.push(g),i(g.position.end),o+=1,n.push({hook:h,token:g}),v&&a()},c=(h,g,v)=>{const y=s(h,g);if(y==null)return!1;const E=y.shallowSnapshot(),_=E[0];_.token.children!=null&&v.token.children.push(..._.token.children),i(_.token.position.end);for(let S=1;S{const{nodePoints:g,startIndex:v,endIndex:y}=h;let{firstNonWhitespaceIndex:E,countOfPrecedeSpaces:_,startIndex:S}=h;const b=()=>({nodePoints:g,startIndex:S,endIndex:y,firstNonWhitespaceIndex:E,countOfPrecedeSpaces:_}),k=(D,L)=>{if(db(S<=D),L){const M=Jo(g,D-1);i(M)}if(S!==D)for(S=D,_=0,E=D;E{const{token:M}=n[o],W=D.eatOpener(L,M);if(W==null)return!1;db(W.nextIndex>S,`[consumeNewOpener] The marker of the new data node cannot be empty. - tokenizer(${W.token._tokenizer})`),k(W.nextIndex,!1);const z=W.token;return z._tokenizer=D.name,u(D,z,!!W.saturated),!0},x=(D,L)=>{if(D.eatAndInterruptPreviousSibling==null)return!1;const{hook:M,token:W}=n[o],{token:z}=n[o-1];if(D.priority<=M.priority)return!1;const F=D.eatAndInterruptPreviousSibling(L,W,z);if(F==null)return!1;l(o),z.children.pop(),F.remainingSibling!=null&&(Array.isArray(F.remainingSibling)?z.children.push(...F.remainingSibling):z.children.push(F.remainingSibling)),k(F.nextIndex,!1);const P=F.token;return P._tokenizer=D.name,u(D,P,!!F.saturated),!0},I=()=>{if(o=1,n.length<2)return;let{token:D}=n[o-1];for(;SK!==M&&x(K,W)))break;const z=M.eatContinuationText==null?{status:"notMatched"}:M.eatContinuationText(W,L.token,D);let F=!1,P=!1;switch(z.status){case"failedAndRollback":{if(D.children.pop(),n.length=o,o-=1,z.lines.length>0){const K=n[o];if(c(M,z.lines,K)){P=!0;break}}F=!0;break}case"closingAndRollback":{if(l(o),z.lines.length>0){const K=n[o];if(c(M,z.lines,K)){P=!0;break}}F=!0;break}case"notMatched":{o-=1,F=!0;break}case"closing":{k(z.nextIndex,!0),o-=1,F=!0;break}case"opening":{k(z.nextIndex,!0);break}default:throw new TypeError(`[eatContinuationText] unexpected status (${z.status}).`)}if(F)break;P||(o+=1,D=L.token)}},C=()=>{if(!(S>=y)){if(o=4)return}else o=n.length-1;for(;S{if(S>=y||o+1>=n.length)return!1;const{hook:D,token:L}=n[n.length-1];if(D.eatLazyContinuationText==null)return!1;const{token:M}=n[n.length-2],W=b(),z=D.eatLazyContinuationText(W,L,M);switch(z.status){case"notMatched":return!1;case"opening":return o=n.length-1,k(z.nextIndex,!0),o=n.length-1,!0;default:throw new TypeError(`[eatLazyContinuationText] unexpected status (${z.status}).`)}};if(I(),C(),R()||l(o+1),t!=null&&S=y)},done:()=>{for(;n.length>1;)a();return r},shallowSnapshot:()=>[...n]}},Lgt=()=>{let e=0;const t=[],r=[],n=[],o=f=>{let d=f-1;for(;d>=0&&r[d].inactive;)d-=1;r.length=d+1},i=(f,d)=>{r.push({hook:f,delimiter:d,inactive:!1,tokenStackIndex:n.length})},s=(f,d)=>{if(r.length<=0)return null;let h=null;for(let g=r.length-1;g>=0;--g){if(h=r[g],h.inactive||h.hook!==f)continue;const v=h.delimiter,y=f.isDelimiterPair(v,d,t);if(y.paired)return v;if(!y.closer)return null}return null},a=(f,d)=>{if(r.length<=0)return d;let h,g=d,v=[];for(let y=r.length-1;y>=0;--y){const E=r[y];if(E.hook!==f||E.inactive)continue;const _=E.tokenStackIndex;for(_0){for(const T of k)T._tokenizer=f.name;v.unshift(...k)}h=void 0,E.inactive=!0}if(!S.closer){const k=f.processSingleDelimiter(g);if(k.length>0){for(const T of k)T._tokenizer=f.name;v.push(...k)}g=void 0}break}const b=f.processDelimiterPair(h,g,v);{for(const k of b.tokens)k._tokenizer==null&&(k._tokenizer=f.name);v=b.tokens}h=b.remainOpenerDelimiter,g=b.remainCloserDelimiter,o(y),y=Math.min(y,r.length),h!=null&&i(f,h)}if(g==null||g.type==="full")break}if(n.push(...v),g==null)return null;if(g.type==="full"||g.type==="closer"){const y=f.processSingleDelimiter(g);for(const E of y)E._tokenizer=f.name,n.push(E);return null}return g};return{process:(f,d)=>{for(;e=d.endIndex)break;h.startIndex>=d.startIndex||n.push(h)}switch(d.type){case"opener":{i(f,d);break}case"both":{const h=a(f,d);h!=null&&i(f,h);break}case"closer":{a(f,d);break}case"full":{const h=f.processSingleDelimiter(d);for(const g of h)g._tokenizer=f.name,n.push(g);break}default:throw new TypeError(`Unexpected delimiter type(${d.type}) from ${f.name}.`)}},done:()=>{const f=[];for(const{delimiter:h,hook:g}of r){const v=g.processSingleDelimiter(h);for(const y of v)y._tokenizer=g.name,f.push(y)}if(r.length=0,f.length>0){const h=jgt(n,f);n.length=0,n.push(...h)}return n.concat(t.slice(e))},reset:f=>{t.length=f.length;for(let d=0;d{if(e.length<=0)return t;if(t.length<=0)return e;const r=[];let n=0,o=0;for(;n{const r=(i,s,a)=>{let l=[],u=null;const c=[i,s];for(const d of a){const h=d.findDelimiter(c);if(h!=null){if(u!=null){if(h.startIndex>u)continue;h.startIndex1){let d=0;for(const h of l){const g=h.delimiter.type;if(g==="full")return{items:[h],nextIndex:h.delimiter.endIndex};(g==="both"||g==="closer")&&(d+=1)}if(d>1){let h=-1,g=-1;for(let y=0;y-1?[l[h]]:l.filter(y=>y.delimiter.type!=="closer"),nextIndex:f}}}return{items:l,nextIndex:f}},n=Lgt();return{process:(i,s,a)=>{let l=i;for(let u=t;u{const n=[];for(let o=0;o{let d=s.process(u,c,f);return d=r(d,c,f),d}}),l=e[o].priority;for(;o{let r;const n=e.match(t);return{isDelimiterPair:()=>({paired:!0}),processDelimiterPair:(o,i,s)=>({tokens:s}),processSingleDelimiter:()=>[],...n,name:e.name,priority:e.priority,findDelimiter:o=>r.next(o).value,reset:()=>{r=n.findDelimiter(),r.next()}}};function $gt(e){const{inlineTokenizers:t,inlineTokenizerMap:r,blockTokenizers:n,blockTokenizerMap:o,blockFallbackTokenizer:i,inlineFallbackTokenizer:s,shouldReservePosition:a,presetDefinitions:l,presetFootnoteDefinitions:u,formatUrl:c}=e;let f=!1;const d=new Set,h=new Set;let g=[],v=-1,y=-1;const E=Object.freeze({matchBlockApi:{extractPhrasingLines:C,rollbackPhrasingLines:R,registerDefinitionIdentifier:P=>{f&&d.add(P)},registerFootnoteDefinitionIdentifier:P=>{f&&h.add(P)}},parseBlockApi:{shouldReservePosition:a,formatUrl:c,processInlines:W,parseBlockTokens:M},matchInlineApi:{hasDefinition:P=>d.has(P),hasFootnoteDefinition:P=>h.has(P),getNodePoints:()=>g,getBlockStartIndex:()=>v,getBlockEndIndex:()=>y,resolveFallbackTokens:D},parseInlineApi:{shouldReservePosition:a,calcPosition:P=>({start:Hs(g,P.startIndex),end:Jo(g,P.endIndex-1)}),formatUrl:c,getNodePoints:()=>g,hasDefinition:P=>d.has(P),hasFootnoteDefinition:P=>h.has(P),parseInlineTokens:F}}),_=n.map(P=>({...P.match(E.matchBlockApi),name:P.name,priority:P.priority})),S=new Map(Array.from(o.entries()).map(P=>[P[0],P[1].parse(E.parseBlockApi)])),b=i?{...i.match(E.matchBlockApi),name:i.name,priority:i.priority}:null,k=zgt(t,E.matchInlineApi,D),T=new Map(Array.from(r.entries()).map(P=>[P[0],P[1].parse(E.parseInlineApi)])),x=Rme(k,0);return{process:I};function I(P){d.clear(),h.clear(),f=!0;const K=L(P);f=!1;for(const J of l)d.add(J.identifier);for(const J of u)h.add(J.identifier);const V=M(K.children);return a?{type:"root",position:K.position,children:V}:{type:"root",children:V}}function C(P){const K=o.get(P._tokenizer);return(K==null?void 0:K.extractPhrasingContentLines(P))??null}function R(P,K){if(K!=null){const Z=o.get(K._tokenizer);if(Z!==void 0&&Z.buildBlockToken!=null){const J=Z.buildBlockToken(P,K);if(J!==null)return J._tokenizer=Z.name,[J]}}return L([P]).children}function D(P,K,V){if(s==null)return P;let Z=K;const J=[];for(const ee of P){if(Zs.priority)break}i<0||i>=t.length?t.push(n):t.splice(i,0,n)}_unregisterTokenizer(t,r,n){var a,l;const o=typeof n=="string"?n:n.name;if(!r.delete(o))return;((a=this.blockFallbackTokenizer)==null?void 0:a.name)===o&&(this.blockFallbackTokenizer=null),((l=this.inlineFallbackTokenizer)==null?void 0:l.name)===o&&(this.inlineFallbackTokenizer=null);const s=t.findIndex(u=>u.name===o);s>=0&&t.splice(s,1)}}function Wgt(e,t,r){let n=t;for(;n=r||e[n].codePoint!==H.AT_SIGN||!Pd(e[n+1].codePoint))return{valid:!1,nextIndex:n+1};for(n=lre(e,n+2,r);n+1=t?o+1:t}function Ggt(e,t,r){const n=Ome(e,t,r);let{nextIndex:o}=n;if(!n.valid||o>=r||e[o].codePoint!==H.COLON)return{valid:!1,nextIndex:o};for(o+=1;o32?{valid:!1,nextIndex:n+1}:{valid:!0,nextIndex:n}}const Kgt=[{contentType:"uri",eat:Ggt},{contentType:"email",eat:Wgt}],Vgt=function(e){return{findDelimiter:()=>xu(t),processSingleDelimiter:r};function t(n,o){const i=e.getNodePoints();for(let s=n;st.map(r=>{const n=e.getNodePoints();let o=Na(n,r.startIndex+1,r.endIndex-1);r.contentType==="email"&&(o="mailto:"+o);const i=e.formatUrl(o),s=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:mu,position:e.calcPosition(r),url:i,children:s}:{type:mu,url:i,children:s}})}},Ygt="@yozora/tokenizer-autolink";class Xgt extends Dl{constructor(r={}){super({name:r.name??Ygt,priority:r.priority??yn.ATOMIC});Be(this,"match",Vgt);Be(this,"parse",Ugt)}}function Qgt(e,t,r){let n=t;if(n>=r||!Pd(e[n].codePoint))return{valid:!1,nextIndex:n+1};for(n+=1;n=r||e[n].codePoint!==H.AT_SIGN||!Pd(e[n+1].codePoint))return{valid:!1,nextIndex:n+1};let o=0;for(n+=2;n=r||e[o].codePoint!==H.COLON||e[o+1].codePoint!==H.SLASH||e[o+2].codePoint!==H.SLASH)return{valid:!1,nextIndex:o+1};const i=Fme(e,o+3,r);return i.nextIndex=Dme(e,i.nextIndex,r),i}function Jgt(e,t,r){const n=ZM(e,t,r),o=n.nextIndex;if(!n.valid||o>=r||e[o].codePoint!==H.DOT||o-t!==3)return{valid:!1,nextIndex:o};for(let s=t;s=t;n-=1){const o=e[n].codePoint;if(!(uh(o)||o===H.QUESTION_MARK||o===H.EXCLAMATION_MARK||o===H.DOT||o===H.COMMA||o===H.COLON||o===H.ASTERISK||o===H.UNDERSCORE||o===H.TILDE))break}if(n>=t&&n+10){for(n+=2,o-=1;n0&&e[n].codePoint===H.CLOSE_PARENTHESIS;)o-=1,n+=1;n-=1}}if(n+1=t;--o){const i=e[o].codePoint;if(!Pd(i))break}o>=t&&e[o].codePoint===H.AMPERSAND&&(n=o-1)}return n+1}function Fme(e,t,r){const n=ZM(e,t,r);if(!n.valid||n.nextIndex>=r)return{valid:!1,nextIndex:n.nextIndex};let o=n.nextIndex,i=0,s=n.hasUnderscore?2:0;for(;o>>=1,s|=a.hasUnderscore?2:0}return i<=0&&s===0?{valid:!1,nextIndex:o}:{valid:!0,nextIndex:o}}function ZM(e,t,r){let n=t,o=!1;for(;nt?{valid:!0,nextIndex:n,hasUnderscore:o}:{valid:!1,nextIndex:n,hasUnderscore:o}}const evt=[{contentType:"uri",eat:Zgt},{contentType:"uri-www",eat:Jgt},{contentType:"email",eat:Qgt}],tvt=function(e){return{findDelimiter:()=>xu(t),processSingleDelimiter:r};function t(n,o){const i=e.getNodePoints(),s=e.getBlockStartIndex();for(let a=n;a=o)break;a=c}let l=o,u=null;for(const c of evt){const f=c.eat(i,a,o);if(l=Math.min(l,f.nextIndex),f.valid){u=c.contentType,l=f.nextIndex;break}}if(u==null){a=Math.max(a,l-1);continue}if(l<=o)return{type:"full",startIndex:a,endIndex:l,contentType:u};a=l-1}return null}function r(n){return[{nodeType:mu,startIndex:n.startIndex,endIndex:n.endIndex,contentType:n.contentType,children:e.resolveFallbackTokens([],n.startIndex,n.endIndex)}]}},rvt=function(e){return{parse:t=>t.map(r=>{const n=e.getNodePoints();let o=Na(n,r.startIndex,r.endIndex);switch(r.contentType){case"email":o="mailto:"+o;break;case"uri-www":o="http://"+o;break}const i=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:mu,position:e.calcPosition(r),url:o,children:i}:{type:mu,url:o,children:i}})}},nvt="@yozora/tokenizer-autolink-extension";class ovt extends Dl{constructor(r={}){super({name:r.name??nvt,priority:r.priority??yn.LINKS});Be(this,"match",tvt);Be(this,"parse",rvt)}}const ivt=function(){return{isContainingBlock:!0,eatOpener:e,eatAndInterruptPreviousSibling:t,eatContinuationText:r};function e(n){if(n.countOfPrecedeSpaces>=4)return null;const{nodePoints:o,startIndex:i,endIndex:s,firstNonWhitespaceIndex:a}=n;if(a>=s||o[a].codePoint!==H.CLOSE_ANGLE)return null;let l=a+1;return l=4||u>=l||s[u].codePoint!==H.CLOSE_ANGLE?i.nodeType===k_?{status:"opening",nextIndex:a}:{status:"notMatched"}:{status:"opening",nextIndex:u+1t.map(r=>{const n=e.parseBlockTokens(r.children);return e.shouldReservePosition?{type:k_,position:r.position,children:n}:{type:k_,children:n}})}},avt="@yozora/tokenizer-blockquote";class lvt extends Tu{constructor(r={}){super({name:r.name??avt,priority:r.priority??yn.CONTAINING_BLOCK});Be(this,"match",ivt);Be(this,"parse",svt)}}const uvt="@yozora/tokenizer-break";var Ux;(function(e){e.BACKSLASH="backslash",e.MORE_THAN_TWO_SPACES="more-than-two-spaces"})(Ux||(Ux={}));const cvt=function(e){return{findDelimiter:()=>xu(t),processSingleDelimiter:r};function t(n,o){const i=e.getNodePoints();for(let s=n+1;s=n&&i[c].codePoint===H.BACKSLASH;c-=1);s-c&1||(l=s-1,u=Ux.BACKSLASH);break}case H.SPACE:{let c=s-2;for(;c>=n&&i[c].codePoint===H.SPACE;c-=1);s-c>2&&(l=c+1,u=Ux.MORE_THAN_TWO_SPACES);break}}if(!(l==null||u==null))return{type:"full",markerType:u,startIndex:l,endIndex:s}}return null}function r(n){return[{nodeType:$x,startIndex:n.startIndex,endIndex:n.endIndex}]}},fvt=function(e){return{parse:t=>t.map(r=>e.shouldReservePosition?{type:$x,position:e.calcPosition(r)}:{type:$x})}};class dvt extends Dl{constructor(r={}){super({name:r.name??uvt,priority:r.priority??yn.SOFT_INLINE});Be(this,"match",cvt);Be(this,"parse",fvt)}}function ure(e,t,r,n){let o=t;n==null&&(n={saturated:!1,nodePoints:[],hasOpenAngleBracket:!1,openParensCount:0});const i=kn(e,o,r);if(i>=r)return{nextIndex:-1,state:n};if(n.nodePoints.length<=0){o=i;const s=e[o];s.codePoint===H.OPEN_ANGLE&&(o+=1,n.hasOpenAngleBracket=!0,n.nodePoints.push(s))}if(n.hasOpenAngleBracket){for(;o=r)return{nextIndex:-1,state:n};if(n.nodePoints.length<=0){o=i;const s=e[o];if(s.codePoint!==H.OPEN_BRACKET)return{nextIndex:-1,state:n};o+=1,n.nodePoints.push(s)}for(;o=r)return{nextIndex:-1,state:n};if(n.nodePoints.length<=0){o=i;const s=e[o];switch(s.codePoint){case H.DOUBLE_QUOTE:case H.SINGLE_QUOTE:case H.OPEN_PARENTHESIS:n.wrapSymbol=s.codePoint,n.nodePoints.push(s),o+=1;break;default:return{nextIndex:-1,state:n}}}if(n.wrapSymbol==null)return{nextIndex:-1,state:n};switch(n.wrapSymbol){case H.DOUBLE_QUOTE:case H.SINGLE_QUOTE:{for(;o=r||e[o+1].codePoint===Rr.LINE_END){n.nodePoints.push(s),n.saturated=!0;break}return{nextIndex:-1,state:n};default:n.nodePoints.push(s)}}break}}return{nextIndex:r,state:n}}const hvt=function(e){return{isContainingBlock:!1,eatOpener:t,eatContinuationText:r,onClose:n};function t(o){if(o.countOfPrecedeSpaces>=4)return null;const{nodePoints:i,startIndex:s,endIndex:a,firstNonWhitespaceIndex:l}=o;if(l>=a)return null;let u=l;const{nextIndex:c,state:f}=cre(i,u,a,null);if(c<0)return null;const d=i[s].line,h=()=>({nodeType:A_,position:{start:Hs(i,s),end:Jo(i,a-1)},label:f,destination:null,title:null,lineNoOfLabel:d,lineNoOfDestination:-1,lineNoOfTitle:-1,lines:[o]});if(!f.saturated)return{token:h(),nextIndex:a};if(c<0||c+1>=a||i[c].codePoint!==H.COLON)return null;if(u=kn(i,c+1,a),u>=a)return{token:h(),nextIndex:a};const{nextIndex:g,state:v}=ure(i,u,a,null);if(g<0||!v.saturated&&g!==a)return null;if(u=kn(i,g,a),u>=a){const S=h();return S.destination=v,S.lineNoOfDestination=d,{token:S,nextIndex:a}}if(u===g)return null;const{nextIndex:y,state:E}=fre(i,u,a,null);if(y>=0&&(u=y),u=u||s[y].codePoint!==H.COLON)return{status:"failedAndRollback",lines:i.lines};f=y+1}if(i.destination==null){if(f=kn(s,f,u),f>=u)return{status:"failedAndRollback",lines:i.lines};const{nextIndex:y,state:E}=ure(s,f,u,null);if(y<0||!E.saturated)return{status:"failedAndRollback",lines:i.lines};if(f=kn(s,y,u),f>=u)return i.destination=E,i.lines.push(o),{status:"opening",nextIndex:u};i.lineNoOfDestination=c,i.lineNoOfTitle=c}i.lineNoOfTitle<0&&(i.lineNoOfTitle=c);const{nextIndex:d,state:h}=fre(s,f,u,i.title);if(i.title=h,d<0||h.nodePoints.length<=0||h.saturated&&kn(s,d,u)t.map(r=>{const n=r._label,o=r._identifier,i=r.destination.nodePoints,s=i[0].codePoint===H.OPEN_ANGLE?cc(i,1,i.length-1,!0):cc(i,0,i.length,!0),a=e.formatUrl(s),l=r.title==null?void 0:cc(r.title.nodePoints,1,r.title.nodePoints.length-1);return e.shouldReservePosition?{type:A_,position:r.position,identifier:o,label:n,url:a,title:l}:{type:A_,identifier:o,label:n,url:a,title:l}})}},gvt="@yozora/tokenizer-definition";class vvt extends Tu{constructor(r={}){super({name:r.name??gvt,priority:r.priority??yn.ATOMIC});Be(this,"match",hvt);Be(this,"parse",pvt)}}const mvt=function(e){return{findDelimiter:()=>xu(t),processDelimiterPair:r};function t(n,o){const i=e.getNodePoints();for(let s=n;st.map(r=>{const n=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:Px,position:e.calcPosition(r),children:n}:{type:Px,children:n}})}},bvt="@yozora/tokenizer-delete";class _vt extends Dl{constructor(r={}){super({name:r.name??bvt,priority:r.priority??yn.CONTAINING_INLINE});Be(this,"match",mvt);Be(this,"parse",yvt)}}const Evt=function(e){return{findDelimiter:()=>xu(t),isDelimiterPair:r,processDelimiterPair:n};function t(o,i){const s=e.getNodePoints(),a=e.getBlockStartIndex(),l=e.getBlockEndIndex(),u=(f,d)=>{if(d===l)return!1;if(d===i)return!0;const h=s[d];if(Nh(h.codePoint))return!1;if(!uh(h.codePoint)||f<=o)return!0;const g=s[f-1];return Nh(g.codePoint)||uh(g.codePoint)},c=(f,d)=>{if(f===a)return!1;if(f===o)return!0;const h=s[f-1];if(Nh(h.codePoint))return!1;if(!uh(h.codePoint)||d>=i)return!0;const g=s[d];return Nh(g.codePoint)||uh(g.codePoint)};for(let f=o;fo&&!uh(s[h-1].codePoint)&&(E=!1);const b=s[g];uh(b.codePoint)||(_=!1)}if(!E&&!_)break;const S=g-h;return{type:E?_?"both":"opener":"closer",startIndex:h,endIndex:g,thickness:S,originalThickness:S}}}}return null}function r(o,i){const s=e.getNodePoints();return s[o.startIndex].codePoint!==s[i.startIndex].codePoint||(o.type==="both"||i.type==="both")&&(o.originalThickness+i.originalThickness)%3===0&&o.originalThickness%3!==0?{paired:!1,opener:!0,closer:!0}:{paired:!0}}function n(o,i,s){let a=1;o.thickness>1&&i.thickness>1&&(a=2),s=e.resolveInternalTokens(s,o.endIndex,i.startIndex);const l={nodeType:a===1?kme:Ame,startIndex:o.endIndex-a,endIndex:i.startIndex+a,thickness:a,children:s},u=o.thickness>a?{type:o.type,startIndex:o.startIndex,endIndex:o.endIndex-a,thickness:o.thickness-a,originalThickness:o.originalThickness}:void 0,c=i.thickness>a?{type:i.type,startIndex:i.startIndex+a,endIndex:i.endIndex,thickness:i.thickness-a,originalThickness:i.originalThickness}:void 0;return{tokens:[l],remainOpenerDelimiter:u,remainCloserDelimiter:c}}},Svt=function(e){return{parse:t=>t.map(r=>{const n=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:r.nodeType,position:e.calcPosition(r),children:n}:{type:r.nodeType,children:n}})}},wvt="@yozora/tokenizer-emphasis";class kvt extends Dl{constructor(r={}){super({name:r.name??wvt,priority:r.priority??yn.CONTAINING_INLINE});Be(this,"match",Evt);Be(this,"parse",Svt)}}function Bme(e){const{nodeType:t,markers:r,markersRequired:n,checkInfoString:o}=this;return{isContainingBlock:!1,eatOpener:i,eatAndInterruptPreviousSibling:s,eatContinuationText:a};function i(l){if(l.countOfPrecedeSpaces>=4)return null;const{endIndex:u,firstNonWhitespaceIndex:c}=l;if(c+n-1>=u)return null;const{nodePoints:f,startIndex:d}=l,h=f[c].codePoint;if(r.indexOf(h)<0)return null;const g=ip(f,c+1,u,h),v=g-c;if(v=u.markerCount){for(;y=d)return{status:"closing",nextIndex:d}}}const v=Math.min(f+u.indent,h,d-1);return u.lines.push({nodePoints:c,startIndex:v,endIndex:d,firstNonWhitespaceIndex:h,countOfPrecedeSpaces:g}),{status:"opening",nextIndex:d}}}class Avt extends Tu{constructor(r){super({name:r.name,priority:r.priority??yn.FENCED_BLOCK});Be(this,"nodeType");Be(this,"markers",[]);Be(this,"markersRequired");Be(this,"checkInfoString");Be(this,"match",Bme);this.nodeType=r.nodeType,this.markers=r.markers,this.markersRequired=r.markersRequired,this.checkInfoString=r.checkInfoString}}const xvt=function(e){return{...Bme.call(this,e),isContainingBlock:!1}},Tvt=function(e){return{parse:t=>t.map(r=>{const n=r.infoString;let o=0;const i=[];for(;o0?s:null,meta:a.length>0?a:null,value:u}:{type:rp,lang:s.length>0?s:null,meta:a.length>0?a:null,value:u}})}},Ivt="@yozora/tokenizer-fenced-code";class Cvt extends Avt{constructor(r={}){super({name:r.name??Ivt,priority:r.priority??yn.FENCED_BLOCK,nodeType:rp,markers:[H.BACKTICK,H.TILDE],markersRequired:3,checkInfoString:(n,o)=>{if(o===H.BACKTICK){for(const i of n)if(i.codePoint===H.BACKTICK)return!1}return!0}});Be(this,"match",xvt);Be(this,"parse",Tvt)}}const Nvt=function(){return{isContainingBlock:!1,eatOpener:e,eatAndInterruptPreviousSibling:t};function e(r){if(r.countOfPrecedeSpaces>=4)return null;const{nodePoints:n,startIndex:o,endIndex:i,firstNonWhitespaceIndex:s}=r;if(s>=i||n[s].codePoint!==H.NUMBER_SIGN)return null;const a=ip(n,s+1,i,H.NUMBER_SIGN),l=a-s;if(l>6||a+1t.map(r=>{const{nodePoints:n,firstNonWhitespaceIndex:o,endIndex:i}=r.line;let[s,a]=q5(n,o+r.depth,i),l=0;for(let h=a-1;h>=s&&n[h].codePoint===H.NUMBER_SIGN;--h)l+=1;if(l>0){let h=0,g=a-1-l;for(;g>=s;--g){const v=n[g].codePoint;if(!An(v))break;h+=1}(h>0||g=r)return null;const o=n;let i=e[n].codePoint;if(!k1(i)&&i!==H.UNDERSCORE&&i!==H.COLON)return null;for(n=o+1;nu&&(a.value={startIndex:u,endIndex:c});break}}if(a.value!=null)return{attribute:a,nextIndex:n}}return{attribute:a,nextIndex:s}}function N_(e,t,r){if(t>=r||!k1(e[t].codePoint))return null;let n=t;for(;n=r)return r;const o=e[t].codePoint;return An(o)||o===H.CLOSE_ANGLE?t+1:null}function Bvt(e,t,r){for(let n=t;n=r||e[i].codePoint!==H.CLOSE_ANGLE){n+=1;continue}const a=Na(e,o,i,!0).toLowerCase();if(Lme.includes(a))return i}return null}function Mvt(e,t,r){const n=t;return n+2=r)return r;const o=e[t].codePoint;return An(o)||o===H.CLOSE_ANGLE?t+1:o===H.SLASH&&t+1=r)return null;let i=t;if(o){for(;i=r)return null;e[i].codePoint===H.SLASH&&(i+=1)}else i=kn(e,t,r);if(i>=r||e[i].codePoint!==H.CLOSE_ANGLE)return null;for(i+=1;i=4)return null;const{nodePoints:s,startIndex:a,endIndex:l,firstNonWhitespaceIndex:u}=i;if(u>=l||s[u].codePoint!==H.OPEN_ANGLE)return null;const c=u+1,f=n(s,c,l);if(f==null)return null;const{condition:d}=f;let h=!1;d!==6&&d!==7&&o(s,f.nextIndex,l,d)!=null&&(h=!0);const g=l;return{token:{nodeType:x_,position:{start:Hs(s,a),end:Jo(s,g-1)},condition:d,lines:[i]},nextIndex:g,saturated:h}}function t(i,s){const a=e(i);if(a==null||a.token.condition===7)return null;const{token:l,nextIndex:u}=a;return{token:l,nextIndex:u,remainingSibling:s}}function r(i,s){const{nodePoints:a,endIndex:l,firstNonWhitespaceIndex:u}=i,c=o(a,u,l,s.condition);return c===-1?{status:"notMatched"}:(s.lines.push(i),c!=null?{status:"closing",nextIndex:l}:{status:"opening",nextIndex:l})}function n(i,s,a){let l=null;if(s>=a)return null;if(l=Mvt(i,s,a),l!=null)return{nextIndex:l,condition:2};if(l=jvt(i,s,a),l!=null)return{nextIndex:l,condition:3};if(l=Hvt(i,s,a),l!=null)return{nextIndex:l,condition:4};if(l=Pvt(i,s,a),l!=null)return{nextIndex:l,condition:5};if(i[s].codePoint!==H.SLASH){const g=s,v=N_(i,g,a);if(v==null)return null;const y={startIndex:g,endIndex:v},_=Na(i,y.startIndex,y.endIndex).toLowerCase();return l=Fvt(i,y.endIndex,a,_),l!=null?{nextIndex:l,condition:1}:(l=dre(i,y.endIndex,a,_),l!=null?{nextIndex:l,condition:6}:(l=hre(i,y.endIndex,a,_,!0),l!=null?{nextIndex:l,condition:7}:null))}const u=s+1,c=N_(i,u,a);if(c==null)return null;const f={startIndex:u,endIndex:c},h=Na(i,f.startIndex,f.endIndex).toLowerCase();return l=dre(i,f.endIndex,a,h),l!=null?{nextIndex:l,condition:6}:(l=hre(i,f.endIndex,a,h,!1),l!=null?{nextIndex:l,condition:7}:null)}function o(i,s,a,l){switch(l){case 1:return Bvt(i,s,a)==null?null:a;case 2:return Lvt(i,s,a)==null?null:a;case 3:return zvt(i,s,a)==null?null:a;case 4:return $vt(i,s,a)==null?null:a;case 5:return qvt(i,s,a)==null?null:a;case 6:case 7:return kn(i,s,a)>=a?-1:null}}},Vvt=function(e){return{parse:t=>t.map(r=>{const n=dH(r.lines);return e.shouldReservePosition?{type:"html",position:r.position,value:Na(n)}:{type:"html",value:Na(n)}})}},Uvt="@yozora/tokenizer-html-block";class Yvt extends Tu{constructor(r={}){super({name:r.name??Uvt,priority:r.priority??yn.ATOMIC});Be(this,"match",Kvt);Be(this,"parse",Vvt)}}function Xvt(e,t,r){let n=t;if(n+11>=r||e[n+1].codePoint!==H.EXCLAMATION_MARK||e[n+2].codePoint!==H.OPEN_BRACKET||e[n+3].codePoint!==H.UPPERCASE_C||e[n+4].codePoint!==H.UPPERCASE_D||e[n+5].codePoint!==H.UPPERCASE_A||e[n+6].codePoint!==H.UPPERCASE_T||e[n+7].codePoint!==H.UPPERCASE_A||e[n+8].codePoint!==H.OPEN_BRACKET)return null;const o=n+9;for(n=o;n=r)return null;if(e[n+1].codePoint===H.CLOSE_BRACKET&&e[n+2].codePoint===H.CLOSE_ANGLE)return{type:"full",startIndex:t,endIndex:n+3,htmlType:"cdata"}}return null}function Qvt(e,t,r){let n=t;if(n+3>=r||e[n+1].codePoint!==H.SLASH)return null;const o=n+2,i=N_(e,o,r);return i==null||(n=kn(e,i,r),n>=r||e[n].codePoint!==H.CLOSE_ANGLE)?null:{type:"full",startIndex:t,endIndex:n+1,htmlType:"closing",tagName:{startIndex:o,endIndex:i}}}function Zvt(e,t,r){let n=t;if(n+6>=r||e[n+1].codePoint!==H.EXCLAMATION_MARK||e[n+2].codePoint!==H.MINUS_SIGN||e[n+3].codePoint!==H.MINUS_SIGN||e[n+4].codePoint===H.CLOSE_ANGLE||e[n+4].codePoint===H.MINUS_SIGN&&e[n+5].codePoint===H.CLOSE_ANGLE)return null;const o=n+4;for(n=o;n2||n+2>=r||e[n+2].codePoint!==H.CLOSE_ANGLE?null:{type:"full",startIndex:t,endIndex:n+3,htmlType:"comment"}}return null}function Jvt(e,t,r){let n=t;if(n+4>=r||e[n+1].codePoint!==H.EXCLAMATION_MARK)return null;const o=n+2;for(n=o;n=r||!An(e[n].codePoint))return null;const i=n,s=n+1;for(n=s;n=r||e[n+1].codePoint!==H.QUESTION_MARK)return null;const o=n+2;for(n=o;n=r)return null;if(e[n+1].codePoint===H.CLOSE_ANGLE)return{type:"full",startIndex:t,endIndex:n+2,htmlType:"instruction"}}return null}function tmt(e,t,r){let n=t;if(n+2>=r)return null;const o=n+1,i=N_(e,o,r);if(i==null)return null;const s=[];for(n=i;n=r)return null;let a=!1;return e[n].codePoint===H.SLASH&&(n+=1,a=!0),n>=r||e[n].codePoint!==H.CLOSE_ANGLE?null:{type:"full",startIndex:t,endIndex:n+1,htmlType:"open",tagName:{startIndex:o,endIndex:i},attributes:s,selfClosed:a}}const rmt=function(e){return{findDelimiter:()=>xu(t),processSingleDelimiter:r};function t(n,o){const i=e.getNodePoints();for(let s=n;s=o));++s)switch(i[s].codePoint){case H.BACKSLASH:s+=1;break;case H.OPEN_ANGLE:{const l=nmt(i,s,o);if(l!=null)return l;break}}return null}function r(n){return[{...n,nodeType:x_}]}};function nmt(e,t,r){let n=null;return n=tmt(e,t,r),n!=null||(n=Qvt(e,t,r),n!=null)||(n=Zvt(e,t,r),n!=null)||(n=emt(e,t,r),n!=null)||(n=Jvt(e,t,r),n!=null)||(n=Xvt(e,t,r)),n}const omt=function(e){return{parse:t=>t.map(r=>{const{startIndex:n,endIndex:o}=r,i=e.getNodePoints(),s=Na(i,n,o);return e.shouldReservePosition?{type:x_,position:e.calcPosition(r),value:s}:{type:x_,value:s}})}},imt="@yozora/tokenizer-html-inline";class smt extends Dl{constructor(r={}){super({name:r.name??imt,priority:r.priority??yn.ATOMIC});Be(this,"match",rmt);Be(this,"parse",omt)}}const K5=(e,t,r,n)=>{let o=e,i=0;const s=()=>{switch(n[o].codePoint){case H.BACKSLASH:o+=1;break;case H.OPEN_BRACKET:i+=1;break;case H.CLOSE_BRACKET:i-=1;break}};for(const a of r)if(!(a.startIndext)break;for(;o0?1:0};function jme(e,t,r){if(t>=r)return-1;let n=t;switch(e[n].codePoint){case H.OPEN_ANGLE:{for(n+=1;n=r)return-1;let n=t;const o=e[n].codePoint;switch(o){case H.DOUBLE_QUOTE:case H.SINGLE_QUOTE:{for(n+=1;ni.line+1)return-1;break}}}break}case H.OPEN_PARENTHESIS:{let i=1;for(n+=1;ns.line+1)return-1;break}case H.OPEN_PARENTHESIS:i+=1;break;case H.CLOSE_PARENTHESIS:if(i-=1,i===0)return n+1;break}}break}case H.CLOSE_PARENTHESIS:return n;default:return-1}return-1}const amt=function(e){return{findDelimiter:()=>xu(t),isDelimiterPair:r,processDelimiterPair:n};function t(o,i){const s=e.getNodePoints(),a=e.getBlockEndIndex();for(let l=o;l=i||s[l+1].codePoint!==H.OPEN_PARENTHESIS)break;const c=kn(s,l+2,a),f=jme(s,c,a);if(f<0)break;const d=kn(s,f,a),h=zme(s,d,a);if(h<0)break;const g=l,v=kn(s,h,a)+1;if(v>a||s[v-1].codePoint!==H.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:g,endIndex:v,destinationContent:ct.map(r=>{const n=e.getNodePoints();let o="";if(r.destinationContent!=null){let{startIndex:l,endIndex:u}=r.destinationContent;n[l].codePoint===H.OPEN_ANGLE&&(l+=1,u-=1);const c=cc(n,l,u,!0);o=e.formatUrl(c)}let i;if(r.titleContent!=null){const{startIndex:l,endIndex:u}=r.titleContent;i=cc(n,l+1,u-1)}const s=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:mu,position:e.calcPosition(r),url:o,title:i,children:s}:{type:mu,url:o,title:i,children:s}})}},umt="@yozora/tokenizer-link";class cmt extends Dl{constructor(r={}){super({name:r.name??umt,priority:r.priority??yn.LINKS});Be(this,"match",amt);Be(this,"parse",lmt)}}function hH(e){return e.map(t=>t.value!=null?t.value:t.alt!=null?t.alt:t.children!=null?hH(t.children):"").join("")}const fmt=function(e){return{findDelimiter:()=>xu(t),isDelimiterPair:r,processDelimiterPair:n};function t(o,i){const s=e.getNodePoints(),a=e.getBlockEndIndex();for(let l=o;l=i||s[l+1].codePoint!==H.OPEN_PARENTHESIS)break;const c=kn(s,l+2,a),f=jme(s,c,a);if(f<0)break;const d=kn(s,f,a),h=zme(s,d,a);if(h<0)break;const g=l,v=kn(s,h,a)+1;if(v>a||s[v-1].codePoint!==H.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:g,endIndex:v,destinationContent:ct.map(r=>{const n=e.getNodePoints();let o="";if(r.destinationContent!=null){let{startIndex:u,endIndex:c}=r.destinationContent;n[u].codePoint===H.OPEN_ANGLE&&(u+=1,c-=1);const f=cc(n,u,c,!0);o=e.formatUrl(f)}const i=e.parseInlineTokens(r.children),s=hH(i);let a;if(r.titleContent!=null){const{startIndex:u,endIndex:c}=r.titleContent;a=cc(n,u+1,c-1)}return e.shouldReservePosition?{type:T_,position:e.calcPosition(r),url:o,alt:s,title:a}:{type:T_,url:o,alt:s,title:a}})}},hmt="@yozora/tokenizer-image";class pmt extends Dl{constructor(r={}){super({name:r.name??hmt,priority:r.priority??yn.LINKS});Be(this,"match",fmt);Be(this,"parse",dmt)}}const gmt=function(e){return{findDelimiter:()=>xu(t),isDelimiterPair:r,processDelimiterPair:n};function t(o,i){const s=e.getNodePoints();for(let a=o;a=i||s[a+1].codePoint!==H.OPEN_BRACKET)break;return{type:"opener",startIndex:a,endIndex:a+2,brackets:[]}}case H.CLOSE_BRACKET:{const u={type:"closer",startIndex:a,endIndex:a+1,brackets:[]};if(a+1>=i||s[a+1].codePoint!==H.OPEN_BRACKET)return u;const c=U0(s,a+1,i);return c.nextIndex<0?u:c.labelAndIdentifier==null?{type:"closer",startIndex:a,endIndex:c.nextIndex,brackets:[{startIndex:a+1,endIndex:c.nextIndex}]}:{type:"closer",startIndex:a,endIndex:c.nextIndex,brackets:[{startIndex:a+1,endIndex:c.nextIndex,label:c.labelAndIdentifier.label,identifier:c.labelAndIdentifier.identifier}]}}}return null}function r(o,i,s){const a=e.getNodePoints();switch(K5(o.endIndex,i.startIndex,s,a)){case-1:return{paired:!1,opener:!1,closer:!0};case 0:return{paired:!0};case 1:return{paired:!1,opener:!0,closer:!1}}}function n(o,i,s){const a=e.getNodePoints(),l=i.brackets[0];if(l!=null&&l.identifier!=null)return e.hasDefinition(l.identifier)?{tokens:[{nodeType:ov,startIndex:o.startIndex,endIndex:l.endIndex,referenceType:"full",label:l.label,identifier:l.identifier,children:e.resolveInternalTokens(s,o.endIndex,i.startIndex)}]}:{tokens:s};const{nextIndex:u,labelAndIdentifier:c}=U0(a,o.endIndex-1,i.startIndex+1);return u===i.startIndex+1&&c!=null&&e.hasDefinition(c.identifier)?{tokens:[{nodeType:ov,startIndex:o.startIndex,endIndex:i.endIndex,referenceType:l==null?"shortcut":"collapsed",label:c.label,identifier:c.identifier,children:e.resolveInternalTokens(s,o.endIndex,i.startIndex)}]}:{tokens:s}}},vmt=function(e){return{parse:t=>t.map(r=>{const{identifier:n,label:o,referenceType:i}=r,s=e.parseInlineTokens(r.children),a=hH(s);return e.shouldReservePosition?{type:ov,position:e.calcPosition(r),identifier:n,label:o,referenceType:i,alt:a}:{type:ov,identifier:n,label:o,referenceType:i,alt:a}})}},mmt="@yozora/tokenizer-image-reference";class ymt extends Dl{constructor(r={}){super({name:r.name??mmt,priority:r.priority??yn.LINKS});Be(this,"match",gmt);Be(this,"parse",vmt)}}const bmt=function(){return{isContainingBlock:!1,eatOpener:e,eatContinuationText:t};function e(r){if(r.countOfPrecedeSpaces<4)return null;const{nodePoints:n,startIndex:o,firstNonWhitespaceIndex:i,endIndex:s}=r;let a=o+4;if(n[o].codePoint===H.SPACE&&n[o+3].codePoint===Rr.SPACE){let c=o+1;for(;ct.map(r=>{const{lines:n}=r;let o=0,i=n.length;for(;oc+1&&s.push({type:"opener",startIndex:c+1,endIndex:d}),c=d-1}break}case H.BACKTICK:{const d=c,h=ip(n,c+1,i,f);s.push({type:"both",startIndex:d,endIndex:h}),c=h-1;break}}}let a=0,l=-1,u=null;for(;a=c))continue;l=f;let d=null,h=null;for(;a=c&&v.type!=="closer")break}if(a+1>=s.length)return;d=s[a];const g=d.endIndex-d.startIndex;for(let v=a+1;vt.map(r=>{const n=e.getNodePoints();let o=r.startIndex+r.thickness,i=r.endIndex-r.thickness,s=!0;for(let u=o;uxu(t),isDelimiterPair:r,processDelimiterPair:n,processSingleDelimiter:o};function t(i,s){const a=e.getNodePoints();for(let l=i;l=s||a[l+1].codePoint!==H.OPEN_BRACKET)break;const c=U0(a,l+1,s);if(c.nextIndex===-1)return{type:"opener",startIndex:l+1,endIndex:l+2,brackets:[]};if(c.labelAndIdentifier==null){l=c.nextIndex-1;break}const f=[{startIndex:l+1,endIndex:c.nextIndex,label:c.labelAndIdentifier.label,identifier:c.labelAndIdentifier.identifier}],d={type:"closer",startIndex:l,endIndex:c.nextIndex,brackets:f};for(l=c.nextIndex;l=a.length)break;if(u+1t.map(r=>{const{identifier:n,label:o,referenceType:i}=r,s=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:$d,position:e.calcPosition(r),identifier:n,label:o,referenceType:i,children:s}:{type:$d,identifier:n,label:o,referenceType:i,children:s}})}},Cmt="@yozora/tokenizer-link-reference";class Nmt extends Dl{constructor(r={}){super({name:r.name??Cmt,priority:r.priority??yn.LINKS});Be(this,"match",Tmt);Be(this,"parse",Imt)}}const Rmt=function(){const{emptyItemCouldNotInterruptedTypes:e,enableTaskListItem:t}=this;return{isContainingBlock:!0,eatOpener:r,eatAndInterruptPreviousSibling:n,eatContinuationText:o};function r(i){if(i.countOfPrecedeSpaces>=4)return null;const{nodePoints:s,startIndex:a,endIndex:l,firstNonWhitespaceIndex:u}=i;if(u>=l)return null;let c=!1,f=null,d,h,g=u,v=s[g].codePoint;if(g+1u&&g-u<=9&&(v===H.DOT||v===H.CLOSE_PARENTHESIS)&&(g+=1,c=!0,f=v)}if(c||(v===H.PLUS_SIGN||v===H.MINUS_SIGN||v===H.ASTERISK)&&(g+=1,f=v),f==null)return null;let y=0,E=g;for(E4&&(E-=y-1,y=1),y===0&&E=l){if(s.countOfTopBlankLine>=0&&(s.countOfTopBlankLine+=1,s.countOfTopBlankLine>1))return{status:"notMatched"}}else s.countOfTopBlankLine=-1;return{status:"opening",nextIndex:Math.min(a+s.indent,l-1)}}};function Omt(e,t,r){let n=t;for(;n=r||e[n].codePoint!==H.OPEN_BRACKET||e[n+2].codePoint!==H.CLOSE_BRACKET||!An(e[n+3].codePoint))return{status:null,nextIndex:t};let o;switch(e[n+1].codePoint){case H.SPACE:o=fb.TODO;break;case H.MINUS_SIGN:o=fb.DOING;break;case H.LOWERCASE_X:case H.UPPERCASE_X:o=fb.DONE;break;default:return{status:null,nextIndex:t}}return{status:o,nextIndex:n+4}}const Dmt=function(e){return{parse:t=>{const r=[];let n=[];for(let i=0;i{if(e.length<=0)return null;let r=e.some(i=>{if(i.children==null||i.children.length<=1)return!1;let s=i.children[0].position;for(let a=1;a1){let i=e[0];for(let s=1;s{const s=t.parseBlockTokens(i.children),a=r?s:s.map(u=>u.type===op?u.children:u).flat();return t.shouldReservePosition?{type:PM,position:i.position,status:i.status,children:a}:{type:PM,status:i.status,children:a}});return t.shouldReservePosition?{type:Wx,position:{start:{...e[0].position.start},end:{...e[e.length-1].position.end}},ordered:e[0].ordered,orderType:e[0].orderType,start:e[0].order,marker:e[0].marker,spread:r,children:n}:{type:Wx,ordered:e[0].ordered,orderType:e[0].orderType,start:e[0].order,marker:e[0].marker,spread:r,children:n}},Fmt="@yozora/tokenizer-list";class Bmt extends Tu{constructor(r={}){super({name:r.name??Fmt,priority:r.priority??yn.CONTAINING_BLOCK});Be(this,"enableTaskListItem");Be(this,"emptyItemCouldNotInterruptedTypes");Be(this,"match",Rmt);Be(this,"parse",Dmt);this.enableTaskListItem=r.enableTaskListItem??!1,this.emptyItemCouldNotInterruptedTypes=r.emptyItemCouldNotInterruptedTypes??[op]}}const Mmt=function(){return{isContainingBlock:!1,eatOpener:e,eatContinuationText:t,eatLazyContinuationText:r};function e(n){const{endIndex:o,firstNonWhitespaceIndex:i}=n;if(i>=o)return null;const s=[n],a=Tme(s);return{token:{nodeType:op,position:a,lines:s},nextIndex:o}}function t(n,o){const{endIndex:i,firstNonWhitespaceIndex:s}=n;return s>=i?{status:"notMatched"}:(o.lines.push(n),{status:"opening",nextIndex:i})}function r(n,o){return t(n,o)}},Lmt=function(e){return{parse:t=>{const r=[];for(const n of t){const o=G5(n.lines),i=e.processInlines(o);if(i.length<=0)continue;const s=e.shouldReservePosition?{type:op,position:n.position,children:i}:{type:op,children:i};r.push(s)}return r}}},jmt="@yozora/tokenizer-paragraph";class zmt extends Tu{constructor(r={}){super({name:r.name??jmt,priority:r.priority??yn.FALLBACK});Be(this,"match",Mmt);Be(this,"parse",Lmt)}extractPhrasingContentLines(r){return r.lines}buildBlockToken(r){const n=Bgt(r);if(n.length<=0)return null;const o=Tme(n);return{nodeType:op,lines:n,position:o}}}const Hmt=function(e){return{isContainingBlock:!1,eatOpener:t,eatAndInterruptPreviousSibling:r};function t(){return null}function r(n,o){const{nodePoints:i,endIndex:s,firstNonWhitespaceIndex:a,countOfPrecedeSpaces:l}=n;if(l>=4||a>=s)return null;let u=null,c=!1;for(let g=a;gt.map(r=>{let n=1;switch(r.marker){case H.EQUALS_SIGN:n=1;break;case H.MINUS_SIGN:n=2;break}const o=G5(r.lines),i=e.processInlines(o);return e.shouldReservePosition?{type:np,position:r.position,depth:n,children:i}:{type:np,depth:n,children:i}})}},Pmt="@yozora/tokenizer-setext-heading";class qmt extends Tu{constructor(r={}){super({name:r.name??Pmt,priority:r.priority??yn.ATOMIC});Be(this,"match",Hmt);Be(this,"parse",$mt)}}const Wmt=function(e){return{isContainingBlock:!1,eatOpener:t,eatAndInterruptPreviousSibling:r,eatLazyContinuationText:n};function t(){return null}function r(i,s){if(i.countOfPrecedeSpaces>=4)return null;const{nodePoints:a,endIndex:l,firstNonWhitespaceIndex:u}=i;if(u>=l)return null;const c=[];let f=a[u].codePoint,d=f===H.VERTICAL_SLASH?u+1:u;for(;d=l)break;let b=!1;f===H.COLON&&(b=!0,d+=1);let k=0;for(;d0)&&(g+=1),v=!1;continue}v=!0,k.codePoint===H.BACKSLASH&&(b+=1)}}if(v&&c.length>1&&(g+=1),g!==c.length)return null;const E=o(y,c),_=l;return{token:{nodeType:Kx,position:{start:Hs(y.nodePoints,y.startIndex),end:Jo(a,_-1)},columns:c,rows:[E]},nextIndex:_,remainingSibling:e.rollbackPhrasingLines(h.slice(0,h.length-1),s)}}function n(i,s){if(i.firstNonWhitespaceIndex>=i.endIndex)return{status:"notMatched"};const a=o(i,s.columns);return a==null?{status:"notMatched"}:(s.rows.push(a),{status:"opening",nextIndex:i.endIndex})}function o(i,s){const{nodePoints:a,startIndex:l,endIndex:u,firstNonWhitespaceIndex:c}=i;let f=a[c],d=f.codePoint===H.VERTICAL_SLASH?c+1:c;const h=[];for(;d_;--b){const I=a[b-1];if(!An(I.codePoint))break}const k=Jo(a,d-1),T=S>=b?[]:[{nodePoints:a,startIndex:_,endIndex:b,firstNonWhitespaceIndex:S,countOfPrecedeSpaces:S-_}],x={nodeType:Gx,position:{start:E,end:k},lines:T};if(h.push(x),h.length>=s.length)break}const g=Hs(a,l),v=Jo(a,u-1);for(let E=h.length;E({parse:t=>t.map(r=>{const n=r.rows.map(i=>{const s=i.cells.map(l=>{const u=[];{const d=G5(l.lines);for(let h=0,g=d.length;hxu((e,t)=>({type:"full",startIndex:e,endIndex:t})),processSingleDelimiter:e=>[{nodeType:I_,startIndex:e.startIndex,endIndex:e.endIndex}]}},Ymt=function(e){return{parse:t=>t.map(r=>{const n=e.getNodePoints();let o=cc(n,r.startIndex,r.endIndex);return o=Qmt(o),e.shouldReservePosition?{type:I_,position:e.calcPosition(r),value:o}:{type:I_,value:o}})}},Xmt=/[^\S\n]*\n[^\S\n]*/g,Qmt=e=>e.replace(Xmt,` -`),Zmt="@yozora/tokenizer-text";class Jmt extends Dl{constructor(r={}){super({name:r.name??Zmt,priority:r.priority??yn.FALLBACK});Be(this,"match",Umt);Be(this,"parse",Ymt)}findAndHandleDelimiter(r,n){return{nodeType:I_,startIndex:r,endIndex:n}}}const eyt=function(){return{isContainingBlock:!1,eatOpener:e,eatAndInterruptPreviousSibling:t};function e(r){if(r.countOfPrecedeSpaces>=4)return null;const{nodePoints:n,startIndex:o,endIndex:i,firstNonWhitespaceIndex:s}=r;if(s+2>=i)return null;let a,l=0,u=!0,c=!1;for(let d=s;dt.map(r=>e.shouldReservePosition?{type:Vx,position:r.position}:{type:Vx})}},ryt="@yozora/tokenizer-thematic-break";class nyt extends Tu{constructor(r={}){super({name:r.name??ryt,priority:r.priority??yn.ATOMIC});Be(this,"match",eyt);Be(this,"parse",tyt)}}class oyt extends qgt{constructor(t={}){super({...t,blockFallbackTokenizer:t.blockFallbackTokenizer??new zmt,inlineFallbackTokenizer:t.inlineFallbackTokenizer??new Jmt}),this.useTokenizer(new Smt).useTokenizer(new Yvt).useTokenizer(new qmt).useTokenizer(new nyt).useTokenizer(new lvt).useTokenizer(new Bmt({enableTaskListItem:!0})).useTokenizer(new Dvt).useTokenizer(new Cvt).useTokenizer(new vvt).useTokenizer(new Vmt).useTokenizer(new smt).useTokenizer(new xmt).useTokenizer(new Xgt).useTokenizer(new ovt).useTokenizer(new dvt).useTokenizer(new pmt).useTokenizer(new ymt).useTokenizer(new cmt).useTokenizer(new Nmt).useTokenizer(new kvt).useTokenizer(new _vt)}}const iyt=new oyt({defaultParseOptions:{shouldReservePosition:!1}});class syt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return N.jsx("blockquote",{className:ayt,children:N.jsx(Ra,{nodes:t})})}}const ayt=mr(Xn.blockquote,{boxSizing:"border-box",padding:"0.625em 1em",borderLeft:"0.25em solid var(--colorBorderBlockquote)",margin:"0px 0px 1.25em 0px",background:"var(--colorBgBlockquote)",boxShadow:"0 1px 2px 0 hsla(0deg, 0%, 0%, 0.1)","> :last-child":{marginBottom:0}});class lyt extends re.Component{shouldComponentUpdate(){return!1}render(){return N.jsx("br",{className:uyt})}}const uyt=mr(Xn.break,{boxSizing:"border-box"});var Hme={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +${Ue??"Unknown error"}`})]:[tk({id:_t,content:ee(xe??[]),extra:Un?void 0:{session_id:Fe,root_run_id:xe==null?void 0:xe[0].rootRunId},from:ut})];qt.push({chatItemName:Xt,flowHistoryItems:le}),k(Xt,Ty),b(Xt,le,!0),_(Xt,"stopped")}),qt.length===0&&M(n,"No eval output");return}catch(Ze){M(n,((we=(me=(Ee=Ze.response)==null?void 0:Ee.data)==null?void 0:me.error)==null?void 0:we.message)??Ze.message,(Qe=(nt=(Ge=Ze.response)==null?void 0:Ge.data)==null?void 0:nt.error)==null?void 0:Qe.inner_exception);return}finally{J()}}),Se=A.useCallback(async(ve,Ee,me)=>{const we=LM(ve),Ge=C==="openai-vision"?zM(ve):jM(ve),nt=(Ze,Fe)=>{const ot=[me];if(!K&&Fe){const Me=e.sessionSplit();ot.unshift(Me)}D(o,Me=>{b(Me,ot,Ze)}),W("running")};if(we.trim()==="/eval_last"){if(nt(!0,!1),o!==Yn){M(o,"Evaluations are not currently supported on variants."),W("stopped");return}return ge()}if(we.trim()==="/eval"||we.trim().startsWith("/eval ")||we.trim().startsWith(`/eval +`)){const Ze=we.trim().match(/^\/eval\s+(.*)/m),Fe=Ze==null?void 0:Ze[1];let ot;if(Fe&&(ot=V?(C==="openai-vision"?rpt:tpt)(ve):Fe),nt(!0,!0),o!==Yn){M(o,"Evaluations are not currently supported on variants."),W("stopped");return}return ge(ot)}nt(!1,!0);const Qe={[F]:V?Ge:we};return D(o,Ze=>{f(Ze,Qe)}),z.updateCurrentFlowUxInputs(),de(V?Ge:we)},[M,b,z,K,F,D,ge,de,V,C,f,W,o,e]),Re=A.useCallback(ve=>{const Ee=ve.content,me=LM(Ee),we=C==="openai-vision"?zM(Ee):jM(Ee);return V?JSON.stringify(we):me},[V,C]);return A.useEffect(()=>{K&&D(o,ve=>{var me;const Ee=c(ve)[K]??((me=I[K])==null?void 0:me.default);if(!Array.isArray(Ee)){if(typeof Ee=="string")try{const we=JSON.parse(Ee);if(Array.isArray(we)){f(ve,{[K]:we});return}}catch{}f(ve,{[K]:[]})}})},[K,I,D,c,f,o]),A.useEffect(()=>{e.setSendMessage(Se)},[Se,e]),A.useEffect(()=>{e.setCalcContentForCopy(Re)},[Re,e]),A.useEffect(()=>{e.alias$.next("User")},[e.alias$]),A.useEffect(()=>{e.disabled$.next(!F||!P)},[F,P,e.disabled$]),A.useEffect(()=>{e.messages$.next(l),e.isOthersTyping$.next(!!E.find((ve,Ee)=>(Ee===o||Ee.startsWith(`${o}.`))&&ve==="running"))},[l,E,o,e.isOthersTyping$,e.messages$]),A.useEffect(()=>{x(t)},[t,x]),N.jsx(N.Fragment,{})},Agt=()=>{const e=HE(),t=tH(),r=ms(),{chatInputName:n,chatOutputName:o,chatHistoryName:i}=Au(),{viewmodel:s}=Ol(),l=oo(s.isOthersTyping$)||!n||!o,{forEachChatItem:u}=aH(),{targetChatGroupName:c}=lH(),f=re.useCallback(()=>{const d=s.sessionSplit();u(c,h=>{e(h,i?{[i]:[]}:{}),t(h,[d])}),r.updateCurrentFlowUxInputs()},[t,r,i,u,e,c,s]);return N.jsx("div",{style:{marginRight:"8px"},children:N.jsx(ga,{content:"Click to start a new session",relationship:"label",positioning:"above",children:N.jsx(Tn,{as:"button",shape:"circular",size:"medium",icon:N.jsx(H3e,{}),disabled:l,onClick:f})})})},Ime=e=>{const{viewmodel:t}=Ol(),r=oo(t.disabled$),n=xgt(),o=Ve(e.className,r?n.disabled:void 0);return N.jsx(pz,{...e,className:o})};Ime.displayName="MessageInputRenderer";const xgt=vr({disabled:{backgroundColor:Pt.colorNeutralBackground3}}),k_="blockquote",Px="break",np="code",A_="definition",qx="delete",Cme="emphasis",op="heading",x_="html";var are;(function(e){e.CDATA="cdata",e.Closing="closing",e.Comment="comment",e.Declaration="declaration",e.Instruction="instruction",e.Open="open"})(are||(are={}));const ov="imageReference",T_="image",Wx="inlineCode",$d="linkReference",mu="link",qM="listItem";var fb;(function(e){e.TODO="todo",e.DOING="doing",e.DONE="done"})(fb||(fb={}));const Gx="list",ip="paragraph",Nme="strong",Kx="tableCell",WM="tableRow",Vx="table",I_="text",Ux="thematicBreak";var H;(function(e){e[e.NUL=0]="NUL",e[e.SOH=1]="SOH",e[e.STX=2]="STX",e[e.ETX=3]="ETX",e[e.EOT=4]="EOT",e[e.ENQ=5]="ENQ",e[e.ACK=6]="ACK",e[e.BEL=7]="BEL",e[e.BS=8]="BS",e[e.HT=9]="HT",e[e.LF=10]="LF",e[e.VT=11]="VT",e[e.FF=12]="FF",e[e.CR=13]="CR",e[e.SO=14]="SO",e[e.SI=15]="SI",e[e.DLE=16]="DLE",e[e.DC1=17]="DC1",e[e.DC2=18]="DC2",e[e.DC3=19]="DC3",e[e.DC4=20]="DC4",e[e.NAK=21]="NAK",e[e.SYN=22]="SYN",e[e.ETB=23]="ETB",e[e.CAN=24]="CAN",e[e.EM=25]="EM",e[e.SUB=26]="SUB",e[e.ESC=27]="ESC",e[e.FS=28]="FS",e[e.GS=29]="GS",e[e.RS=30]="RS",e[e.US=31]="US",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.DOUBLE_QUOTE=34]="DOUBLE_QUOTE",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.SINGLE_QUOTE=39]="SINGLE_QUOTE",e[e.OPEN_PARENTHESIS=40]="OPEN_PARENTHESIS",e[e.CLOSE_PARENTHESIS=41]="CLOSE_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.MINUS_SIGN=45]="MINUS_SIGN",e[e.DOT=46]="DOT",e[e.SLASH=47]="SLASH",e[e.DIGIT0=48]="DIGIT0",e[e.DIGIT1=49]="DIGIT1",e[e.DIGIT2=50]="DIGIT2",e[e.DIGIT3=51]="DIGIT3",e[e.DIGIT4=52]="DIGIT4",e[e.DIGIT5=53]="DIGIT5",e[e.DIGIT6=54]="DIGIT6",e[e.DIGIT7=55]="DIGIT7",e[e.DIGIT8=56]="DIGIT8",e[e.DIGIT9=57]="DIGIT9",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.OPEN_ANGLE=60]="OPEN_ANGLE",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.CLOSE_ANGLE=62]="CLOSE_ANGLE",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.AT_SIGN=64]="AT_SIGN",e[e.UPPERCASE_A=65]="UPPERCASE_A",e[e.UPPERCASE_B=66]="UPPERCASE_B",e[e.UPPERCASE_C=67]="UPPERCASE_C",e[e.UPPERCASE_D=68]="UPPERCASE_D",e[e.UPPERCASE_E=69]="UPPERCASE_E",e[e.UPPERCASE_F=70]="UPPERCASE_F",e[e.UPPERCASE_G=71]="UPPERCASE_G",e[e.UPPERCASE_H=72]="UPPERCASE_H",e[e.UPPERCASE_I=73]="UPPERCASE_I",e[e.UPPERCASE_J=74]="UPPERCASE_J",e[e.UPPERCASE_K=75]="UPPERCASE_K",e[e.UPPERCASE_L=76]="UPPERCASE_L",e[e.UPPERCASE_M=77]="UPPERCASE_M",e[e.UPPERCASE_N=78]="UPPERCASE_N",e[e.UPPERCASE_O=79]="UPPERCASE_O",e[e.UPPERCASE_P=80]="UPPERCASE_P",e[e.UPPERCASE_Q=81]="UPPERCASE_Q",e[e.UPPERCASE_R=82]="UPPERCASE_R",e[e.UPPERCASE_S=83]="UPPERCASE_S",e[e.UPPERCASE_T=84]="UPPERCASE_T",e[e.UPPERCASE_U=85]="UPPERCASE_U",e[e.UPPERCASE_V=86]="UPPERCASE_V",e[e.UPPERCASE_W=87]="UPPERCASE_W",e[e.UPPERCASE_X=88]="UPPERCASE_X",e[e.UPPERCASE_Y=89]="UPPERCASE_Y",e[e.UPPERCASE_Z=90]="UPPERCASE_Z",e[e.OPEN_BRACKET=91]="OPEN_BRACKET",e[e.BACKSLASH=92]="BACKSLASH",e[e.CLOSE_BRACKET=93]="CLOSE_BRACKET",e[e.CARET=94]="CARET",e[e.UNDERSCORE=95]="UNDERSCORE",e[e.BACKTICK=96]="BACKTICK",e[e.LOWERCASE_A=97]="LOWERCASE_A",e[e.LOWERCASE_B=98]="LOWERCASE_B",e[e.LOWERCASE_C=99]="LOWERCASE_C",e[e.LOWERCASE_D=100]="LOWERCASE_D",e[e.LOWERCASE_E=101]="LOWERCASE_E",e[e.LOWERCASE_F=102]="LOWERCASE_F",e[e.LOWERCASE_G=103]="LOWERCASE_G",e[e.LOWERCASE_H=104]="LOWERCASE_H",e[e.LOWERCASE_I=105]="LOWERCASE_I",e[e.LOWERCASE_J=106]="LOWERCASE_J",e[e.LOWERCASE_K=107]="LOWERCASE_K",e[e.LOWERCASE_L=108]="LOWERCASE_L",e[e.LOWERCASE_M=109]="LOWERCASE_M",e[e.LOWERCASE_N=110]="LOWERCASE_N",e[e.LOWERCASE_O=111]="LOWERCASE_O",e[e.LOWERCASE_P=112]="LOWERCASE_P",e[e.LOWERCASE_Q=113]="LOWERCASE_Q",e[e.LOWERCASE_R=114]="LOWERCASE_R",e[e.LOWERCASE_S=115]="LOWERCASE_S",e[e.LOWERCASE_T=116]="LOWERCASE_T",e[e.LOWERCASE_U=117]="LOWERCASE_U",e[e.LOWERCASE_V=118]="LOWERCASE_V",e[e.LOWERCASE_W=119]="LOWERCASE_W",e[e.LOWERCASE_X=120]="LOWERCASE_X",e[e.LOWERCASE_Y=121]="LOWERCASE_Y",e[e.LOWERCASE_Z=122]="LOWERCASE_Z",e[e.OPEN_BRACE=123]="OPEN_BRACE",e[e.VERTICAL_SLASH=124]="VERTICAL_SLASH",e[e.CLOSE_BRACE=125]="CLOSE_BRACE",e[e.TILDE=126]="TILDE",e[e.DELETE=127]="DELETE"})(H||(H={}));const Tgt={µ:"μ",À:"à",Á:"á",Â:"â",Ã:"ã",Ä:"ä",Å:"å",Æ:"æ",Ç:"ç",È:"è",É:"é",Ê:"ê",Ë:"ë",Ì:"ì",Í:"í",Î:"î",Ï:"ï",Ð:"ð",Ñ:"ñ",Ò:"ò",Ó:"ó",Ô:"ô",Õ:"õ",Ö:"ö",Ø:"ø",Ù:"ù",Ú:"ú",Û:"û",Ü:"ü",Ý:"ý",Þ:"þ",Ā:"ā",Ă:"ă",Ą:"ą",Ć:"ć",Ĉ:"ĉ",Ċ:"ċ",Č:"č",Ď:"ď",Đ:"đ",Ē:"ē",Ĕ:"ĕ",Ė:"ė",Ę:"ę",Ě:"ě",Ĝ:"ĝ",Ğ:"ğ",Ġ:"ġ",Ģ:"ģ",Ĥ:"ĥ",Ħ:"ħ",Ĩ:"ĩ",Ī:"ī",Ĭ:"ĭ",Į:"į",IJ:"ij",Ĵ:"ĵ",Ķ:"ķ",Ĺ:"ĺ",Ļ:"ļ",Ľ:"ľ",Ŀ:"ŀ",Ł:"ł",Ń:"ń",Ņ:"ņ",Ň:"ň",Ŋ:"ŋ",Ō:"ō",Ŏ:"ŏ",Ő:"ő",Œ:"œ",Ŕ:"ŕ",Ŗ:"ŗ",Ř:"ř",Ś:"ś",Ŝ:"ŝ",Ş:"ş",Š:"š",Ţ:"ţ",Ť:"ť",Ŧ:"ŧ",Ũ:"ũ",Ū:"ū",Ŭ:"ŭ",Ů:"ů",Ű:"ű",Ų:"ų",Ŵ:"ŵ",Ŷ:"ŷ",Ÿ:"ÿ",Ź:"ź",Ż:"ż",Ž:"ž",ſ:"s",Ɓ:"ɓ",Ƃ:"ƃ",Ƅ:"ƅ",Ɔ:"ɔ",Ƈ:"ƈ",Ɖ:"ɖ",Ɗ:"ɗ",Ƌ:"ƌ",Ǝ:"ǝ",Ə:"ə",Ɛ:"ɛ",Ƒ:"ƒ",Ɠ:"ɠ",Ɣ:"ɣ",Ɩ:"ɩ",Ɨ:"ɨ",Ƙ:"ƙ",Ɯ:"ɯ",Ɲ:"ɲ",Ɵ:"ɵ",Ơ:"ơ",Ƣ:"ƣ",Ƥ:"ƥ",Ʀ:"ʀ",Ƨ:"ƨ",Ʃ:"ʃ",Ƭ:"ƭ",Ʈ:"ʈ",Ư:"ư",Ʊ:"ʊ",Ʋ:"ʋ",Ƴ:"ƴ",Ƶ:"ƶ",Ʒ:"ʒ",Ƹ:"ƹ",Ƽ:"ƽ",DŽ:"dž",Dž:"dž",LJ:"lj",Lj:"lj",NJ:"nj",Nj:"nj",Ǎ:"ǎ",Ǐ:"ǐ",Ǒ:"ǒ",Ǔ:"ǔ",Ǖ:"ǖ",Ǘ:"ǘ",Ǚ:"ǚ",Ǜ:"ǜ",Ǟ:"ǟ",Ǡ:"ǡ",Ǣ:"ǣ",Ǥ:"ǥ",Ǧ:"ǧ",Ǩ:"ǩ",Ǫ:"ǫ",Ǭ:"ǭ",Ǯ:"ǯ",DZ:"dz",Dz:"dz",Ǵ:"ǵ",Ƕ:"ƕ",Ƿ:"ƿ",Ǹ:"ǹ",Ǻ:"ǻ",Ǽ:"ǽ",Ǿ:"ǿ",Ȁ:"ȁ",Ȃ:"ȃ",Ȅ:"ȅ",Ȇ:"ȇ",Ȉ:"ȉ",Ȋ:"ȋ",Ȍ:"ȍ",Ȏ:"ȏ",Ȑ:"ȑ",Ȓ:"ȓ",Ȕ:"ȕ",Ȗ:"ȗ",Ș:"ș",Ț:"ț",Ȝ:"ȝ",Ȟ:"ȟ","Ƞ":"ƞ",Ȣ:"ȣ",Ȥ:"ȥ",Ȧ:"ȧ",Ȩ:"ȩ",Ȫ:"ȫ",Ȭ:"ȭ",Ȯ:"ȯ",Ȱ:"ȱ",Ȳ:"ȳ","Ⱥ":"ⱥ","Ȼ":"ȼ","Ƚ":"ƚ","Ⱦ":"ⱦ","Ɂ":"ɂ","Ƀ":"ƀ","Ʉ":"ʉ","Ʌ":"ʌ","Ɇ":"ɇ","Ɉ":"ɉ","Ɋ":"ɋ","Ɍ":"ɍ","Ɏ":"ɏ","ͅ":"ι","Ͱ":"ͱ","Ͳ":"ͳ","Ͷ":"ͷ","Ϳ":"ϳ",Ά:"ά",Έ:"έ",Ή:"ή",Ί:"ί",Ό:"ό",Ύ:"ύ",Ώ:"ώ",Α:"α",Β:"β",Γ:"γ",Δ:"δ",Ε:"ε",Ζ:"ζ",Η:"η",Θ:"θ",Ι:"ι",Κ:"κ",Λ:"λ",Μ:"μ",Ν:"ν",Ξ:"ξ",Ο:"ο",Π:"π",Ρ:"ρ",Σ:"σ",Τ:"τ",Υ:"υ",Φ:"φ",Χ:"χ",Ψ:"ψ",Ω:"ω",Ϊ:"ϊ",Ϋ:"ϋ",ς:"σ","Ϗ":"ϗ",ϐ:"β",ϑ:"θ",ϕ:"φ",ϖ:"π","Ϙ":"ϙ",Ϛ:"ϛ",Ϝ:"ϝ",Ϟ:"ϟ",Ϡ:"ϡ",Ϣ:"ϣ",Ϥ:"ϥ",Ϧ:"ϧ",Ϩ:"ϩ",Ϫ:"ϫ",Ϭ:"ϭ",Ϯ:"ϯ",ϰ:"κ",ϱ:"ρ","ϴ":"θ","ϵ":"ε","Ϸ":"ϸ","Ϲ":"ϲ","Ϻ":"ϻ","Ͻ":"ͻ","Ͼ":"ͼ","Ͽ":"ͽ",Ѐ:"ѐ",Ё:"ё",Ђ:"ђ",Ѓ:"ѓ",Є:"є",Ѕ:"ѕ",І:"і",Ї:"ї",Ј:"ј",Љ:"љ",Њ:"њ",Ћ:"ћ",Ќ:"ќ",Ѝ:"ѝ",Ў:"ў",Џ:"џ",А:"а",Б:"б",В:"в",Г:"г",Д:"д",Е:"е",Ж:"ж",З:"з",И:"и",Й:"й",К:"к",Л:"л",М:"м",Н:"н",О:"о",П:"п",Р:"р",С:"с",Т:"т",У:"у",Ф:"ф",Х:"х",Ц:"ц",Ч:"ч",Ш:"ш",Щ:"щ",Ъ:"ъ",Ы:"ы",Ь:"ь",Э:"э",Ю:"ю",Я:"я",Ѡ:"ѡ",Ѣ:"ѣ",Ѥ:"ѥ",Ѧ:"ѧ",Ѩ:"ѩ",Ѫ:"ѫ",Ѭ:"ѭ",Ѯ:"ѯ",Ѱ:"ѱ",Ѳ:"ѳ",Ѵ:"ѵ",Ѷ:"ѷ",Ѹ:"ѹ",Ѻ:"ѻ",Ѽ:"ѽ",Ѿ:"ѿ",Ҁ:"ҁ","Ҋ":"ҋ",Ҍ:"ҍ",Ҏ:"ҏ",Ґ:"ґ",Ғ:"ғ",Ҕ:"ҕ",Җ:"җ",Ҙ:"ҙ",Қ:"қ",Ҝ:"ҝ",Ҟ:"ҟ",Ҡ:"ҡ",Ң:"ң",Ҥ:"ҥ",Ҧ:"ҧ",Ҩ:"ҩ",Ҫ:"ҫ",Ҭ:"ҭ",Ү:"ү",Ұ:"ұ",Ҳ:"ҳ",Ҵ:"ҵ",Ҷ:"ҷ",Ҹ:"ҹ",Һ:"һ",Ҽ:"ҽ",Ҿ:"ҿ",Ӏ:"ӏ",Ӂ:"ӂ",Ӄ:"ӄ","Ӆ":"ӆ",Ӈ:"ӈ","Ӊ":"ӊ",Ӌ:"ӌ","Ӎ":"ӎ",Ӑ:"ӑ",Ӓ:"ӓ",Ӕ:"ӕ",Ӗ:"ӗ",Ә:"ә",Ӛ:"ӛ",Ӝ:"ӝ",Ӟ:"ӟ",Ӡ:"ӡ",Ӣ:"ӣ",Ӥ:"ӥ",Ӧ:"ӧ",Ө:"ө",Ӫ:"ӫ",Ӭ:"ӭ",Ӯ:"ӯ",Ӱ:"ӱ",Ӳ:"ӳ",Ӵ:"ӵ","Ӷ":"ӷ",Ӹ:"ӹ","Ӻ":"ӻ","Ӽ":"ӽ","Ӿ":"ӿ","Ԁ":"ԁ","Ԃ":"ԃ","Ԅ":"ԅ","Ԇ":"ԇ","Ԉ":"ԉ","Ԋ":"ԋ","Ԍ":"ԍ","Ԏ":"ԏ","Ԑ":"ԑ","Ԓ":"ԓ","Ԕ":"ԕ","Ԗ":"ԗ","Ԙ":"ԙ","Ԛ":"ԛ","Ԝ":"ԝ","Ԟ":"ԟ","Ԡ":"ԡ","Ԣ":"ԣ","Ԥ":"ԥ","Ԧ":"ԧ","Ԩ":"ԩ","Ԫ":"ԫ","Ԭ":"ԭ","Ԯ":"ԯ",Ա:"ա",Բ:"բ",Գ:"գ",Դ:"դ",Ե:"ե",Զ:"զ",Է:"է",Ը:"ը",Թ:"թ",Ժ:"ժ",Ի:"ի",Լ:"լ",Խ:"խ",Ծ:"ծ",Կ:"կ",Հ:"հ",Ձ:"ձ",Ղ:"ղ",Ճ:"ճ",Մ:"մ",Յ:"յ",Ն:"ն",Շ:"շ",Ո:"ո",Չ:"չ",Պ:"պ",Ջ:"ջ",Ռ:"ռ",Ս:"ս",Վ:"վ",Տ:"տ",Ր:"ր",Ց:"ց",Ւ:"ւ",Փ:"փ",Ք:"ք",Օ:"օ",Ֆ:"ֆ",Ⴀ:"ⴀ",Ⴁ:"ⴁ",Ⴂ:"ⴂ",Ⴃ:"ⴃ",Ⴄ:"ⴄ",Ⴅ:"ⴅ",Ⴆ:"ⴆ",Ⴇ:"ⴇ",Ⴈ:"ⴈ",Ⴉ:"ⴉ",Ⴊ:"ⴊ",Ⴋ:"ⴋ",Ⴌ:"ⴌ",Ⴍ:"ⴍ",Ⴎ:"ⴎ",Ⴏ:"ⴏ",Ⴐ:"ⴐ",Ⴑ:"ⴑ",Ⴒ:"ⴒ",Ⴓ:"ⴓ",Ⴔ:"ⴔ",Ⴕ:"ⴕ",Ⴖ:"ⴖ",Ⴗ:"ⴗ",Ⴘ:"ⴘ",Ⴙ:"ⴙ",Ⴚ:"ⴚ",Ⴛ:"ⴛ",Ⴜ:"ⴜ",Ⴝ:"ⴝ",Ⴞ:"ⴞ",Ⴟ:"ⴟ",Ⴠ:"ⴠ",Ⴡ:"ⴡ",Ⴢ:"ⴢ",Ⴣ:"ⴣ",Ⴤ:"ⴤ",Ⴥ:"ⴥ","Ⴧ":"ⴧ","Ⴭ":"ⴭ",Ḁ:"ḁ",Ḃ:"ḃ",Ḅ:"ḅ",Ḇ:"ḇ",Ḉ:"ḉ",Ḋ:"ḋ",Ḍ:"ḍ",Ḏ:"ḏ",Ḑ:"ḑ",Ḓ:"ḓ",Ḕ:"ḕ",Ḗ:"ḗ",Ḙ:"ḙ",Ḛ:"ḛ",Ḝ:"ḝ",Ḟ:"ḟ",Ḡ:"ḡ",Ḣ:"ḣ",Ḥ:"ḥ",Ḧ:"ḧ",Ḩ:"ḩ",Ḫ:"ḫ",Ḭ:"ḭ",Ḯ:"ḯ",Ḱ:"ḱ",Ḳ:"ḳ",Ḵ:"ḵ",Ḷ:"ḷ",Ḹ:"ḹ",Ḻ:"ḻ",Ḽ:"ḽ",Ḿ:"ḿ",Ṁ:"ṁ",Ṃ:"ṃ",Ṅ:"ṅ",Ṇ:"ṇ",Ṉ:"ṉ",Ṋ:"ṋ",Ṍ:"ṍ",Ṏ:"ṏ",Ṑ:"ṑ",Ṓ:"ṓ",Ṕ:"ṕ",Ṗ:"ṗ",Ṙ:"ṙ",Ṛ:"ṛ",Ṝ:"ṝ",Ṟ:"ṟ",Ṡ:"ṡ",Ṣ:"ṣ",Ṥ:"ṥ",Ṧ:"ṧ",Ṩ:"ṩ",Ṫ:"ṫ",Ṭ:"ṭ",Ṯ:"ṯ",Ṱ:"ṱ",Ṳ:"ṳ",Ṵ:"ṵ",Ṷ:"ṷ",Ṹ:"ṹ",Ṻ:"ṻ",Ṽ:"ṽ",Ṿ:"ṿ",Ẁ:"ẁ",Ẃ:"ẃ",Ẅ:"ẅ",Ẇ:"ẇ",Ẉ:"ẉ",Ẋ:"ẋ",Ẍ:"ẍ",Ẏ:"ẏ",Ẑ:"ẑ",Ẓ:"ẓ",Ẕ:"ẕ",ẛ:"ṡ",Ạ:"ạ",Ả:"ả",Ấ:"ấ",Ầ:"ầ",Ẩ:"ẩ",Ẫ:"ẫ",Ậ:"ậ",Ắ:"ắ",Ằ:"ằ",Ẳ:"ẳ",Ẵ:"ẵ",Ặ:"ặ",Ẹ:"ẹ",Ẻ:"ẻ",Ẽ:"ẽ",Ế:"ế",Ề:"ề",Ể:"ể",Ễ:"ễ",Ệ:"ệ",Ỉ:"ỉ",Ị:"ị",Ọ:"ọ",Ỏ:"ỏ",Ố:"ố",Ồ:"ồ",Ổ:"ổ",Ỗ:"ỗ",Ộ:"ộ",Ớ:"ớ",Ờ:"ờ",Ở:"ở",Ỡ:"ỡ",Ợ:"ợ",Ụ:"ụ",Ủ:"ủ",Ứ:"ứ",Ừ:"ừ",Ử:"ử",Ữ:"ữ",Ự:"ự",Ỳ:"ỳ",Ỵ:"ỵ",Ỷ:"ỷ",Ỹ:"ỹ","Ỻ":"ỻ","Ỽ":"ỽ","Ỿ":"ỿ",Ἀ:"ἀ",Ἁ:"ἁ",Ἂ:"ἂ",Ἃ:"ἃ",Ἄ:"ἄ",Ἅ:"ἅ",Ἆ:"ἆ",Ἇ:"ἇ",Ἐ:"ἐ",Ἑ:"ἑ",Ἒ:"ἒ",Ἓ:"ἓ",Ἔ:"ἔ",Ἕ:"ἕ",Ἠ:"ἠ",Ἡ:"ἡ",Ἢ:"ἢ",Ἣ:"ἣ",Ἤ:"ἤ",Ἥ:"ἥ",Ἦ:"ἦ",Ἧ:"ἧ",Ἰ:"ἰ",Ἱ:"ἱ",Ἲ:"ἲ",Ἳ:"ἳ",Ἴ:"ἴ",Ἵ:"ἵ",Ἶ:"ἶ",Ἷ:"ἷ",Ὀ:"ὀ",Ὁ:"ὁ",Ὂ:"ὂ",Ὃ:"ὃ",Ὄ:"ὄ",Ὅ:"ὅ",Ὑ:"ὑ",Ὓ:"ὓ",Ὕ:"ὕ",Ὗ:"ὗ",Ὠ:"ὠ",Ὡ:"ὡ",Ὢ:"ὢ",Ὣ:"ὣ",Ὤ:"ὤ",Ὥ:"ὥ",Ὦ:"ὦ",Ὧ:"ὧ",Ᾰ:"ᾰ",Ᾱ:"ᾱ",Ὰ:"ὰ",Ά:"ά",ι:"ι",Ὲ:"ὲ",Έ:"έ",Ὴ:"ὴ",Ή:"ή",Ῐ:"ῐ",Ῑ:"ῑ",Ὶ:"ὶ",Ί:"ί",Ῠ:"ῠ",Ῡ:"ῡ",Ὺ:"ὺ",Ύ:"ύ",Ῥ:"ῥ",Ὸ:"ὸ",Ό:"ό",Ὼ:"ὼ",Ώ:"ώ",Ω:"ω",K:"k",Å:"å","Ⅎ":"ⅎ","Ⅰ":"ⅰ","Ⅱ":"ⅱ","Ⅲ":"ⅲ","Ⅳ":"ⅳ","Ⅴ":"ⅴ","Ⅵ":"ⅵ","Ⅶ":"ⅶ","Ⅷ":"ⅷ","Ⅸ":"ⅸ","Ⅹ":"ⅹ","Ⅺ":"ⅺ","Ⅻ":"ⅻ","Ⅼ":"ⅼ","Ⅽ":"ⅽ","Ⅾ":"ⅾ","Ⅿ":"ⅿ","Ↄ":"ↄ","Ⓐ":"ⓐ","Ⓑ":"ⓑ","Ⓒ":"ⓒ","Ⓓ":"ⓓ","Ⓔ":"ⓔ","Ⓕ":"ⓕ","Ⓖ":"ⓖ","Ⓗ":"ⓗ","Ⓘ":"ⓘ","Ⓙ":"ⓙ","Ⓚ":"ⓚ","Ⓛ":"ⓛ","Ⓜ":"ⓜ","Ⓝ":"ⓝ","Ⓞ":"ⓞ","Ⓟ":"ⓟ","Ⓠ":"ⓠ","Ⓡ":"ⓡ","Ⓢ":"ⓢ","Ⓣ":"ⓣ","Ⓤ":"ⓤ","Ⓥ":"ⓥ","Ⓦ":"ⓦ","Ⓧ":"ⓧ","Ⓨ":"ⓨ","Ⓩ":"ⓩ","Ⰰ":"ⰰ","Ⰱ":"ⰱ","Ⰲ":"ⰲ","Ⰳ":"ⰳ","Ⰴ":"ⰴ","Ⰵ":"ⰵ","Ⰶ":"ⰶ","Ⰷ":"ⰷ","Ⰸ":"ⰸ","Ⰹ":"ⰹ","Ⰺ":"ⰺ","Ⰻ":"ⰻ","Ⰼ":"ⰼ","Ⰽ":"ⰽ","Ⰾ":"ⰾ","Ⰿ":"ⰿ","Ⱀ":"ⱀ","Ⱁ":"ⱁ","Ⱂ":"ⱂ","Ⱃ":"ⱃ","Ⱄ":"ⱄ","Ⱅ":"ⱅ","Ⱆ":"ⱆ","Ⱇ":"ⱇ","Ⱈ":"ⱈ","Ⱉ":"ⱉ","Ⱊ":"ⱊ","Ⱋ":"ⱋ","Ⱌ":"ⱌ","Ⱍ":"ⱍ","Ⱎ":"ⱎ","Ⱏ":"ⱏ","Ⱐ":"ⱐ","Ⱑ":"ⱑ","Ⱒ":"ⱒ","Ⱓ":"ⱓ","Ⱔ":"ⱔ","Ⱕ":"ⱕ","Ⱖ":"ⱖ","Ⱗ":"ⱗ","Ⱘ":"ⱘ","Ⱙ":"ⱙ","Ⱚ":"ⱚ","Ⱛ":"ⱛ","Ⱜ":"ⱜ","Ⱝ":"ⱝ","Ⱞ":"ⱞ","Ⱡ":"ⱡ","Ɫ":"ɫ","Ᵽ":"ᵽ","Ɽ":"ɽ","Ⱨ":"ⱨ","Ⱪ":"ⱪ","Ⱬ":"ⱬ","Ɑ":"ɑ","Ɱ":"ɱ","Ɐ":"ɐ","Ɒ":"ɒ","Ⱳ":"ⱳ","Ⱶ":"ⱶ","Ȿ":"ȿ","Ɀ":"ɀ","Ⲁ":"ⲁ","Ⲃ":"ⲃ","Ⲅ":"ⲅ","Ⲇ":"ⲇ","Ⲉ":"ⲉ","Ⲋ":"ⲋ","Ⲍ":"ⲍ","Ⲏ":"ⲏ","Ⲑ":"ⲑ","Ⲓ":"ⲓ","Ⲕ":"ⲕ","Ⲗ":"ⲗ","Ⲙ":"ⲙ","Ⲛ":"ⲛ","Ⲝ":"ⲝ","Ⲟ":"ⲟ","Ⲡ":"ⲡ","Ⲣ":"ⲣ","Ⲥ":"ⲥ","Ⲧ":"ⲧ","Ⲩ":"ⲩ","Ⲫ":"ⲫ","Ⲭ":"ⲭ","Ⲯ":"ⲯ","Ⲱ":"ⲱ","Ⲳ":"ⲳ","Ⲵ":"ⲵ","Ⲷ":"ⲷ","Ⲹ":"ⲹ","Ⲻ":"ⲻ","Ⲽ":"ⲽ","Ⲿ":"ⲿ","Ⳁ":"ⳁ","Ⳃ":"ⳃ","Ⳅ":"ⳅ","Ⳇ":"ⳇ","Ⳉ":"ⳉ","Ⳋ":"ⳋ","Ⳍ":"ⳍ","Ⳏ":"ⳏ","Ⳑ":"ⳑ","Ⳓ":"ⳓ","Ⳕ":"ⳕ","Ⳗ":"ⳗ","Ⳙ":"ⳙ","Ⳛ":"ⳛ","Ⳝ":"ⳝ","Ⳟ":"ⳟ","Ⳡ":"ⳡ","Ⳣ":"ⳣ","Ⳬ":"ⳬ","Ⳮ":"ⳮ","Ⳳ":"ⳳ","Ꙁ":"ꙁ","Ꙃ":"ꙃ","Ꙅ":"ꙅ","Ꙇ":"ꙇ","Ꙉ":"ꙉ","Ꙋ":"ꙋ","Ꙍ":"ꙍ","Ꙏ":"ꙏ","Ꙑ":"ꙑ","Ꙓ":"ꙓ","Ꙕ":"ꙕ","Ꙗ":"ꙗ","Ꙙ":"ꙙ","Ꙛ":"ꙛ","Ꙝ":"ꙝ","Ꙟ":"ꙟ","Ꙡ":"ꙡ","Ꙣ":"ꙣ","Ꙥ":"ꙥ","Ꙧ":"ꙧ","Ꙩ":"ꙩ","Ꙫ":"ꙫ","Ꙭ":"ꙭ","Ꚁ":"ꚁ","Ꚃ":"ꚃ","Ꚅ":"ꚅ","Ꚇ":"ꚇ","Ꚉ":"ꚉ","Ꚋ":"ꚋ","Ꚍ":"ꚍ","Ꚏ":"ꚏ","Ꚑ":"ꚑ","Ꚓ":"ꚓ","Ꚕ":"ꚕ","Ꚗ":"ꚗ","Ꚙ":"ꚙ","Ꚛ":"ꚛ","Ꜣ":"ꜣ","Ꜥ":"ꜥ","Ꜧ":"ꜧ","Ꜩ":"ꜩ","Ꜫ":"ꜫ","Ꜭ":"ꜭ","Ꜯ":"ꜯ","Ꜳ":"ꜳ","Ꜵ":"ꜵ","Ꜷ":"ꜷ","Ꜹ":"ꜹ","Ꜻ":"ꜻ","Ꜽ":"ꜽ","Ꜿ":"ꜿ","Ꝁ":"ꝁ","Ꝃ":"ꝃ","Ꝅ":"ꝅ","Ꝇ":"ꝇ","Ꝉ":"ꝉ","Ꝋ":"ꝋ","Ꝍ":"ꝍ","Ꝏ":"ꝏ","Ꝑ":"ꝑ","Ꝓ":"ꝓ","Ꝕ":"ꝕ","Ꝗ":"ꝗ","Ꝙ":"ꝙ","Ꝛ":"ꝛ","Ꝝ":"ꝝ","Ꝟ":"ꝟ","Ꝡ":"ꝡ","Ꝣ":"ꝣ","Ꝥ":"ꝥ","Ꝧ":"ꝧ","Ꝩ":"ꝩ","Ꝫ":"ꝫ","Ꝭ":"ꝭ","Ꝯ":"ꝯ","Ꝺ":"ꝺ","Ꝼ":"ꝼ","Ᵹ":"ᵹ","Ꝿ":"ꝿ","Ꞁ":"ꞁ","Ꞃ":"ꞃ","Ꞅ":"ꞅ","Ꞇ":"ꞇ","Ꞌ":"ꞌ","Ɥ":"ɥ","Ꞑ":"ꞑ","Ꞓ":"ꞓ","Ꞗ":"ꞗ","Ꞙ":"ꞙ","Ꞛ":"ꞛ","Ꞝ":"ꞝ","Ꞟ":"ꞟ","Ꞡ":"ꞡ","Ꞣ":"ꞣ","Ꞥ":"ꞥ","Ꞧ":"ꞧ","Ꞩ":"ꞩ","Ɦ":"ɦ","Ɜ":"ɜ","Ɡ":"ɡ","Ɬ":"ɬ","Ʞ":"ʞ","Ʇ":"ʇ",A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z","𐐀":"𐐨","𐐁":"𐐩","𐐂":"𐐪","𐐃":"𐐫","𐐄":"𐐬","𐐅":"𐐭","𐐆":"𐐮","𐐇":"𐐯","𐐈":"𐐰","𐐉":"𐐱","𐐊":"𐐲","𐐋":"𐐳","𐐌":"𐐴","𐐍":"𐐵","𐐎":"𐐶","𐐏":"𐐷","𐐐":"𐐸","𐐑":"𐐹","𐐒":"𐐺","𐐓":"𐐻","𐐔":"𐐼","𐐕":"𐐽","𐐖":"𐐾","𐐗":"𐐿","𐐘":"𐑀","𐐙":"𐑁","𐐚":"𐑂","𐐛":"𐑃","𐐜":"𐑄","𐐝":"𐑅","𐐞":"𐑆","𐐟":"𐑇","𐐠":"𐑈","𐐡":"𐑉","𐐢":"𐑊","𐐣":"𐑋","𐐤":"𐑌","𐐥":"𐑍","𐐦":"𐑎","𐐧":"𐑏","𑢠":"𑣀","𑢡":"𑣁","𑢢":"𑣂","𑢣":"𑣃","𑢤":"𑣄","𑢥":"𑣅","𑢦":"𑣆","𑢧":"𑣇","𑢨":"𑣈","𑢩":"𑣉","𑢪":"𑣊","𑢫":"𑣋","𑢬":"𑣌","𑢭":"𑣍","𑢮":"𑣎","𑢯":"𑣏","𑢰":"𑣐","𑢱":"𑣑","𑢲":"𑣒","𑢳":"𑣓","𑢴":"𑣔","𑢵":"𑣕","𑢶":"𑣖","𑢷":"𑣗","𑢸":"𑣘","𑢹":"𑣙","𑢺":"𑣚","𑢻":"𑣛","𑢼":"𑣜","𑢽":"𑣝","𑢾":"𑣞","𑢿":"𑣟",ß:"ss",İ:"i̇",ʼn:"ʼn",ǰ:"ǰ",ΐ:"ΐ",ΰ:"ΰ",և:"եւ",ẖ:"ẖ",ẗ:"ẗ",ẘ:"ẘ",ẙ:"ẙ",ẚ:"aʾ","ẞ":"ss",ὐ:"ὐ",ὒ:"ὒ",ὔ:"ὔ",ὖ:"ὖ",ᾀ:"ἀι",ᾁ:"ἁι",ᾂ:"ἂι",ᾃ:"ἃι",ᾄ:"ἄι",ᾅ:"ἅι",ᾆ:"ἆι",ᾇ:"ἇι",ᾈ:"ἀι",ᾉ:"ἁι",ᾊ:"ἂι",ᾋ:"ἃι",ᾌ:"ἄι",ᾍ:"ἅι",ᾎ:"ἆι",ᾏ:"ἇι",ᾐ:"ἠι",ᾑ:"ἡι",ᾒ:"ἢι",ᾓ:"ἣι",ᾔ:"ἤι",ᾕ:"ἥι",ᾖ:"ἦι",ᾗ:"ἧι",ᾘ:"ἠι",ᾙ:"ἡι",ᾚ:"ἢι",ᾛ:"ἣι",ᾜ:"ἤι",ᾝ:"ἥι",ᾞ:"ἦι",ᾟ:"ἧι",ᾠ:"ὠι",ᾡ:"ὡι",ᾢ:"ὢι",ᾣ:"ὣι",ᾤ:"ὤι",ᾥ:"ὥι",ᾦ:"ὦι",ᾧ:"ὧι",ᾨ:"ὠι",ᾩ:"ὡι",ᾪ:"ὢι",ᾫ:"ὣι",ᾬ:"ὤι",ᾭ:"ὥι",ᾮ:"ὦι",ᾯ:"ὧι",ᾲ:"ὰι",ᾳ:"αι",ᾴ:"άι",ᾶ:"ᾶ",ᾷ:"ᾶι",ᾼ:"αι",ῂ:"ὴι",ῃ:"ηι",ῄ:"ήι",ῆ:"ῆ",ῇ:"ῆι",ῌ:"ηι",ῒ:"ῒ",ΐ:"ΐ",ῖ:"ῖ",ῗ:"ῗ",ῢ:"ῢ",ΰ:"ΰ",ῤ:"ῤ",ῦ:"ῦ",ῧ:"ῧ",ῲ:"ὼι",ῳ:"ωι",ῴ:"ώι",ῶ:"ῶ",ῷ:"ῶι",ῼ:"ωι",ff:"ff",fi:"fi",fl:"fl",ffi:"ffi",ffl:"ffl",ſt:"st",st:"st",ﬓ:"մն",ﬔ:"մե",ﬕ:"մի",ﬖ:"վն",ﬗ:"մխ"},Igt=[{key:[65,69,108,105,103,59],value:"Æ"},{key:[65,77,80,59],value:"&"},{key:[65,97,99,117,116,101,59],value:"Á"},{key:[65,98,114,101,118,101,59],value:"Ă"},{key:[65,99,105,114,99,59],value:"Â"},{key:[65,99,121,59],value:"А"},{key:[65,102,114,59],value:"𝔄"},{key:[65,103,114,97,118,101,59],value:"À"},{key:[65,108,112,104,97,59],value:"Α"},{key:[65,109,97,99,114,59],value:"Ā"},{key:[65,110,100,59],value:"⩓"},{key:[65,111,103,111,110,59],value:"Ą"},{key:[65,111,112,102,59],value:"𝔸"},{key:[65,112,112,108,121,70,117,110,99,116,105,111,110,59],value:"⁡"},{key:[65,114,105,110,103,59],value:"Å"},{key:[65,115,99,114,59],value:"𝒜"},{key:[65,115,115,105,103,110,59],value:"≔"},{key:[65,116,105,108,100,101,59],value:"Ã"},{key:[65,117,109,108,59],value:"Ä"},{key:[66,97,99,107,115,108,97,115,104,59],value:"∖"},{key:[66,97,114,118,59],value:"⫧"},{key:[66,97,114,119,101,100,59],value:"⌆"},{key:[66,99,121,59],value:"Б"},{key:[66,101,99,97,117,115,101,59],value:"∵"},{key:[66,101,114,110,111,117,108,108,105,115,59],value:"ℬ"},{key:[66,101,116,97,59],value:"Β"},{key:[66,102,114,59],value:"𝔅"},{key:[66,111,112,102,59],value:"𝔹"},{key:[66,114,101,118,101,59],value:"˘"},{key:[66,115,99,114,59],value:"ℬ"},{key:[66,117,109,112,101,113,59],value:"≎"},{key:[67,72,99,121,59],value:"Ч"},{key:[67,79,80,89,59],value:"©"},{key:[67,97,99,117,116,101,59],value:"Ć"},{key:[67,97,112,59],value:"⋒"},{key:[67,97,112,105,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59],value:"ⅅ"},{key:[67,97,121,108,101,121,115,59],value:"ℭ"},{key:[67,99,97,114,111,110,59],value:"Č"},{key:[67,99,101,100,105,108,59],value:"Ç"},{key:[67,99,105,114,99,59],value:"Ĉ"},{key:[67,99,111,110,105,110,116,59],value:"∰"},{key:[67,100,111,116,59],value:"Ċ"},{key:[67,101,100,105,108,108,97,59],value:"¸"},{key:[67,101,110,116,101,114,68,111,116,59],value:"·"},{key:[67,102,114,59],value:"ℭ"},{key:[67,104,105,59],value:"Χ"},{key:[67,105,114,99,108,101,68,111,116,59],value:"⊙"},{key:[67,105,114,99,108,101,77,105,110,117,115,59],value:"⊖"},{key:[67,105,114,99,108,101,80,108,117,115,59],value:"⊕"},{key:[67,105,114,99,108,101,84,105,109,101,115,59],value:"⊗"},{key:[67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∲"},{key:[67,108,111,115,101,67,117,114,108,121,68,111,117,98,108,101,81,117,111,116,101,59],value:"”"},{key:[67,108,111,115,101,67,117,114,108,121,81,117,111,116,101,59],value:"’"},{key:[67,111,108,111,110,59],value:"∷"},{key:[67,111,108,111,110,101,59],value:"⩴"},{key:[67,111,110,103,114,117,101,110,116,59],value:"≡"},{key:[67,111,110,105,110,116,59],value:"∯"},{key:[67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∮"},{key:[67,111,112,102,59],value:"ℂ"},{key:[67,111,112,114,111,100,117,99,116,59],value:"∐"},{key:[67,111,117,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∳"},{key:[67,114,111,115,115,59],value:"⨯"},{key:[67,115,99,114,59],value:"𝒞"},{key:[67,117,112,59],value:"⋓"},{key:[67,117,112,67,97,112,59],value:"≍"},{key:[68,68,59],value:"ⅅ"},{key:[68,68,111,116,114,97,104,100,59],value:"⤑"},{key:[68,74,99,121,59],value:"Ђ"},{key:[68,83,99,121,59],value:"Ѕ"},{key:[68,90,99,121,59],value:"Џ"},{key:[68,97,103,103,101,114,59],value:"‡"},{key:[68,97,114,114,59],value:"↡"},{key:[68,97,115,104,118,59],value:"⫤"},{key:[68,99,97,114,111,110,59],value:"Ď"},{key:[68,99,121,59],value:"Д"},{key:[68,101,108,59],value:"∇"},{key:[68,101,108,116,97,59],value:"Δ"},{key:[68,102,114,59],value:"𝔇"},{key:[68,105,97,99,114,105,116,105,99,97,108,65,99,117,116,101,59],value:"´"},{key:[68,105,97,99,114,105,116,105,99,97,108,68,111,116,59],value:"˙"},{key:[68,105,97,99,114,105,116,105,99,97,108,68,111,117,98,108,101,65,99,117,116,101,59],value:"˝"},{key:[68,105,97,99,114,105,116,105,99,97,108,71,114,97,118,101,59],value:"`"},{key:[68,105,97,99,114,105,116,105,99,97,108,84,105,108,100,101,59],value:"˜"},{key:[68,105,97,109,111,110,100,59],value:"⋄"},{key:[68,105,102,102,101,114,101,110,116,105,97,108,68,59],value:"ⅆ"},{key:[68,111,112,102,59],value:"𝔻"},{key:[68,111,116,59],value:"¨"},{key:[68,111,116,68,111,116,59],value:"⃜"},{key:[68,111,116,69,113,117,97,108,59],value:"≐"},{key:[68,111,117,98,108,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59],value:"∯"},{key:[68,111,117,98,108,101,68,111,116,59],value:"¨"},{key:[68,111,117,98,108,101,68,111,119,110,65,114,114,111,119,59],value:"⇓"},{key:[68,111,117,98,108,101,76,101,102,116,65,114,114,111,119,59],value:"⇐"},{key:[68,111,117,98,108,101,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⇔"},{key:[68,111,117,98,108,101,76,101,102,116,84,101,101,59],value:"⫤"},{key:[68,111,117,98,108,101,76,111,110,103,76,101,102,116,65,114,114,111,119,59],value:"⟸"},{key:[68,111,117,98,108,101,76,111,110,103,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⟺"},{key:[68,111,117,98,108,101,76,111,110,103,82,105,103,104,116,65,114,114,111,119,59],value:"⟹"},{key:[68,111,117,98,108,101,82,105,103,104,116,65,114,114,111,119,59],value:"⇒"},{key:[68,111,117,98,108,101,82,105,103,104,116,84,101,101,59],value:"⊨"},{key:[68,111,117,98,108,101,85,112,65,114,114,111,119,59],value:"⇑"},{key:[68,111,117,98,108,101,85,112,68,111,119,110,65,114,114,111,119,59],value:"⇕"},{key:[68,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59],value:"∥"},{key:[68,111,119,110,65,114,114,111,119,59],value:"↓"},{key:[68,111,119,110,65,114,114,111,119,66,97,114,59],value:"⤓"},{key:[68,111,119,110,65,114,114,111,119,85,112,65,114,114,111,119,59],value:"⇵"},{key:[68,111,119,110,66,114,101,118,101,59],value:"̑"},{key:[68,111,119,110,76,101,102,116,82,105,103,104,116,86,101,99,116,111,114,59],value:"⥐"},{key:[68,111,119,110,76,101,102,116,84,101,101,86,101,99,116,111,114,59],value:"⥞"},{key:[68,111,119,110,76,101,102,116,86,101,99,116,111,114,59],value:"↽"},{key:[68,111,119,110,76,101,102,116,86,101,99,116,111,114,66,97,114,59],value:"⥖"},{key:[68,111,119,110,82,105,103,104,116,84,101,101,86,101,99,116,111,114,59],value:"⥟"},{key:[68,111,119,110,82,105,103,104,116,86,101,99,116,111,114,59],value:"⇁"},{key:[68,111,119,110,82,105,103,104,116,86,101,99,116,111,114,66,97,114,59],value:"⥗"},{key:[68,111,119,110,84,101,101,59],value:"⊤"},{key:[68,111,119,110,84,101,101,65,114,114,111,119,59],value:"↧"},{key:[68,111,119,110,97,114,114,111,119,59],value:"⇓"},{key:[68,115,99,114,59],value:"𝒟"},{key:[68,115,116,114,111,107,59],value:"Đ"},{key:[69,78,71,59],value:"Ŋ"},{key:[69,84,72,59],value:"Ð"},{key:[69,97,99,117,116,101,59],value:"É"},{key:[69,99,97,114,111,110,59],value:"Ě"},{key:[69,99,105,114,99,59],value:"Ê"},{key:[69,99,121,59],value:"Э"},{key:[69,100,111,116,59],value:"Ė"},{key:[69,102,114,59],value:"𝔈"},{key:[69,103,114,97,118,101,59],value:"È"},{key:[69,108,101,109,101,110,116,59],value:"∈"},{key:[69,109,97,99,114,59],value:"Ē"},{key:[69,109,112,116,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"◻"},{key:[69,109,112,116,121,86,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"▫"},{key:[69,111,103,111,110,59],value:"Ę"},{key:[69,111,112,102,59],value:"𝔼"},{key:[69,112,115,105,108,111,110,59],value:"Ε"},{key:[69,113,117,97,108,59],value:"⩵"},{key:[69,113,117,97,108,84,105,108,100,101,59],value:"≂"},{key:[69,113,117,105,108,105,98,114,105,117,109,59],value:"⇌"},{key:[69,115,99,114,59],value:"ℰ"},{key:[69,115,105,109,59],value:"⩳"},{key:[69,116,97,59],value:"Η"},{key:[69,117,109,108,59],value:"Ë"},{key:[69,120,105,115,116,115,59],value:"∃"},{key:[69,120,112,111,110,101,110,116,105,97,108,69,59],value:"ⅇ"},{key:[70,99,121,59],value:"Ф"},{key:[70,102,114,59],value:"𝔉"},{key:[70,105,108,108,101,100,83,109,97,108,108,83,113,117,97,114,101,59],value:"◼"},{key:[70,105,108,108,101,100,86,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59],value:"▪"},{key:[70,111,112,102,59],value:"𝔽"},{key:[70,111,114,65,108,108,59],value:"∀"},{key:[70,111,117,114,105,101,114,116,114,102,59],value:"ℱ"},{key:[70,115,99,114,59],value:"ℱ"},{key:[71,74,99,121,59],value:"Ѓ"},{key:[71,84,59],value:">"},{key:[71,97,109,109,97,59],value:"Γ"},{key:[71,97,109,109,97,100,59],value:"Ϝ"},{key:[71,98,114,101,118,101,59],value:"Ğ"},{key:[71,99,101,100,105,108,59],value:"Ģ"},{key:[71,99,105,114,99,59],value:"Ĝ"},{key:[71,99,121,59],value:"Г"},{key:[71,100,111,116,59],value:"Ġ"},{key:[71,102,114,59],value:"𝔊"},{key:[71,103,59],value:"⋙"},{key:[71,111,112,102,59],value:"𝔾"},{key:[71,114,101,97,116,101,114,69,113,117,97,108,59],value:"≥"},{key:[71,114,101,97,116,101,114,69,113,117,97,108,76,101,115,115,59],value:"⋛"},{key:[71,114,101,97,116,101,114,70,117,108,108,69,113,117,97,108,59],value:"≧"},{key:[71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"⪢"},{key:[71,114,101,97,116,101,114,76,101,115,115,59],value:"≷"},{key:[71,114,101,97,116,101,114,83,108,97,110,116,69,113,117,97,108,59],value:"⩾"},{key:[71,114,101,97,116,101,114,84,105,108,100,101,59],value:"≳"},{key:[71,115,99,114,59],value:"𝒢"},{key:[71,116,59],value:"≫"},{key:[72,65,82,68,99,121,59],value:"Ъ"},{key:[72,97,99,101,107,59],value:"ˇ"},{key:[72,97,116,59],value:"^"},{key:[72,99,105,114,99,59],value:"Ĥ"},{key:[72,102,114,59],value:"ℌ"},{key:[72,105,108,98,101,114,116,83,112,97,99,101,59],value:"ℋ"},{key:[72,111,112,102,59],value:"ℍ"},{key:[72,111,114,105,122,111,110,116,97,108,76,105,110,101,59],value:"─"},{key:[72,115,99,114,59],value:"ℋ"},{key:[72,115,116,114,111,107,59],value:"Ħ"},{key:[72,117,109,112,68,111,119,110,72,117,109,112,59],value:"≎"},{key:[72,117,109,112,69,113,117,97,108,59],value:"≏"},{key:[73,69,99,121,59],value:"Е"},{key:[73,74,108,105,103,59],value:"IJ"},{key:[73,79,99,121,59],value:"Ё"},{key:[73,97,99,117,116,101,59],value:"Í"},{key:[73,99,105,114,99,59],value:"Î"},{key:[73,99,121,59],value:"И"},{key:[73,100,111,116,59],value:"İ"},{key:[73,102,114,59],value:"ℑ"},{key:[73,103,114,97,118,101,59],value:"Ì"},{key:[73,109,59],value:"ℑ"},{key:[73,109,97,99,114,59],value:"Ī"},{key:[73,109,97,103,105,110,97,114,121,73,59],value:"ⅈ"},{key:[73,109,112,108,105,101,115,59],value:"⇒"},{key:[73,110,116,59],value:"∬"},{key:[73,110,116,101,103,114,97,108,59],value:"∫"},{key:[73,110,116,101,114,115,101,99,116,105,111,110,59],value:"⋂"},{key:[73,110,118,105,115,105,98,108,101,67,111,109,109,97,59],value:"⁣"},{key:[73,110,118,105,115,105,98,108,101,84,105,109,101,115,59],value:"⁢"},{key:[73,111,103,111,110,59],value:"Į"},{key:[73,111,112,102,59],value:"𝕀"},{key:[73,111,116,97,59],value:"Ι"},{key:[73,115,99,114,59],value:"ℐ"},{key:[73,116,105,108,100,101,59],value:"Ĩ"},{key:[73,117,107,99,121,59],value:"І"},{key:[73,117,109,108,59],value:"Ï"},{key:[74,99,105,114,99,59],value:"Ĵ"},{key:[74,99,121,59],value:"Й"},{key:[74,102,114,59],value:"𝔍"},{key:[74,111,112,102,59],value:"𝕁"},{key:[74,115,99,114,59],value:"𝒥"},{key:[74,115,101,114,99,121,59],value:"Ј"},{key:[74,117,107,99,121,59],value:"Є"},{key:[75,72,99,121,59],value:"Х"},{key:[75,74,99,121,59],value:"Ќ"},{key:[75,97,112,112,97,59],value:"Κ"},{key:[75,99,101,100,105,108,59],value:"Ķ"},{key:[75,99,121,59],value:"К"},{key:[75,102,114,59],value:"𝔎"},{key:[75,111,112,102,59],value:"𝕂"},{key:[75,115,99,114,59],value:"𝒦"},{key:[76,74,99,121,59],value:"Љ"},{key:[76,84,59],value:"<"},{key:[76,97,99,117,116,101,59],value:"Ĺ"},{key:[76,97,109,98,100,97,59],value:"Λ"},{key:[76,97,110,103,59],value:"⟪"},{key:[76,97,112,108,97,99,101,116,114,102,59],value:"ℒ"},{key:[76,97,114,114,59],value:"↞"},{key:[76,99,97,114,111,110,59],value:"Ľ"},{key:[76,99,101,100,105,108,59],value:"Ļ"},{key:[76,99,121,59],value:"Л"},{key:[76,101,102,116,65,110,103,108,101,66,114,97,99,107,101,116,59],value:"⟨"},{key:[76,101,102,116,65,114,114,111,119,59],value:"←"},{key:[76,101,102,116,65,114,114,111,119,66,97,114,59],value:"⇤"},{key:[76,101,102,116,65,114,114,111,119,82,105,103,104,116,65,114,114,111,119,59],value:"⇆"},{key:[76,101,102,116,67,101,105,108,105,110,103,59],value:"⌈"},{key:[76,101,102,116,68,111,117,98,108,101,66,114,97,99,107,101,116,59],value:"⟦"},{key:[76,101,102,116,68,111,119,110,84,101,101,86,101,99,116,111,114,59],value:"⥡"},{key:[76,101,102,116,68,111,119,110,86,101,99,116,111,114,59],value:"⇃"},{key:[76,101,102,116,68,111,119,110,86,101,99,116,111,114,66,97,114,59],value:"⥙"},{key:[76,101,102,116,70,108,111,111,114,59],value:"⌊"},{key:[76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"↔"},{key:[76,101,102,116,82,105,103,104,116,86,101,99,116,111,114,59],value:"⥎"},{key:[76,101,102,116,84,101,101,59],value:"⊣"},{key:[76,101,102,116,84,101,101,65,114,114,111,119,59],value:"↤"},{key:[76,101,102,116,84,101,101,86,101,99,116,111,114,59],value:"⥚"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,59],value:"⊲"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧏"},{key:[76,101,102,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⊴"},{key:[76,101,102,116,85,112,68,111,119,110,86,101,99,116,111,114,59],value:"⥑"},{key:[76,101,102,116,85,112,84,101,101,86,101,99,116,111,114,59],value:"⥠"},{key:[76,101,102,116,85,112,86,101,99,116,111,114,59],value:"↿"},{key:[76,101,102,116,85,112,86,101,99,116,111,114,66,97,114,59],value:"⥘"},{key:[76,101,102,116,86,101,99,116,111,114,59],value:"↼"},{key:[76,101,102,116,86,101,99,116,111,114,66,97,114,59],value:"⥒"},{key:[76,101,102,116,97,114,114,111,119,59],value:"⇐"},{key:[76,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⇔"},{key:[76,101,115,115,69,113,117,97,108,71,114,101,97,116,101,114,59],value:"⋚"},{key:[76,101,115,115,70,117,108,108,69,113,117,97,108,59],value:"≦"},{key:[76,101,115,115,71,114,101,97,116,101,114,59],value:"≶"},{key:[76,101,115,115,76,101,115,115,59],value:"⪡"},{key:[76,101,115,115,83,108,97,110,116,69,113,117,97,108,59],value:"⩽"},{key:[76,101,115,115,84,105,108,100,101,59],value:"≲"},{key:[76,102,114,59],value:"𝔏"},{key:[76,108,59],value:"⋘"},{key:[76,108,101,102,116,97,114,114,111,119,59],value:"⇚"},{key:[76,109,105,100,111,116,59],value:"Ŀ"},{key:[76,111,110,103,76,101,102,116,65,114,114,111,119,59],value:"⟵"},{key:[76,111,110,103,76,101,102,116,82,105,103,104,116,65,114,114,111,119,59],value:"⟷"},{key:[76,111,110,103,82,105,103,104,116,65,114,114,111,119,59],value:"⟶"},{key:[76,111,110,103,108,101,102,116,97,114,114,111,119,59],value:"⟸"},{key:[76,111,110,103,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⟺"},{key:[76,111,110,103,114,105,103,104,116,97,114,114,111,119,59],value:"⟹"},{key:[76,111,112,102,59],value:"𝕃"},{key:[76,111,119,101,114,76,101,102,116,65,114,114,111,119,59],value:"↙"},{key:[76,111,119,101,114,82,105,103,104,116,65,114,114,111,119,59],value:"↘"},{key:[76,115,99,114,59],value:"ℒ"},{key:[76,115,104,59],value:"↰"},{key:[76,115,116,114,111,107,59],value:"Ł"},{key:[76,116,59],value:"≪"},{key:[77,97,112,59],value:"⤅"},{key:[77,99,121,59],value:"М"},{key:[77,101,100,105,117,109,83,112,97,99,101,59],value:" "},{key:[77,101,108,108,105,110,116,114,102,59],value:"ℳ"},{key:[77,102,114,59],value:"𝔐"},{key:[77,105,110,117,115,80,108,117,115,59],value:"∓"},{key:[77,111,112,102,59],value:"𝕄"},{key:[77,115,99,114,59],value:"ℳ"},{key:[77,117,59],value:"Μ"},{key:[78,74,99,121,59],value:"Њ"},{key:[78,97,99,117,116,101,59],value:"Ń"},{key:[78,99,97,114,111,110,59],value:"Ň"},{key:[78,99,101,100,105,108,59],value:"Ņ"},{key:[78,99,121,59],value:"Н"},{key:[78,101,103,97,116,105,118,101,77,101,100,105,117,109,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,84,104,105,99,107,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,84,104,105,110,83,112,97,99,101,59],value:"​"},{key:[78,101,103,97,116,105,118,101,86,101,114,121,84,104,105,110,83,112,97,99,101,59],value:"​"},{key:[78,101,115,116,101,100,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"≫"},{key:[78,101,115,116,101,100,76,101,115,115,76,101,115,115,59],value:"≪"},{key:[78,101,119,76,105,110,101,59],value:` +`},{key:[78,102,114,59],value:"𝔑"},{key:[78,111,66,114,101,97,107,59],value:"⁠"},{key:[78,111,110,66,114,101,97,107,105,110,103,83,112,97,99,101,59],value:" "},{key:[78,111,112,102,59],value:"ℕ"},{key:[78,111,116,59],value:"⫬"},{key:[78,111,116,67,111,110,103,114,117,101,110,116,59],value:"≢"},{key:[78,111,116,67,117,112,67,97,112,59],value:"≭"},{key:[78,111,116,68,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59],value:"∦"},{key:[78,111,116,69,108,101,109,101,110,116,59],value:"∉"},{key:[78,111,116,69,113,117,97,108,59],value:"≠"},{key:[78,111,116,69,113,117,97,108,84,105,108,100,101,59],value:"≂̸"},{key:[78,111,116,69,120,105,115,116,115,59],value:"∄"},{key:[78,111,116,71,114,101,97,116,101,114,59],value:"≯"},{key:[78,111,116,71,114,101,97,116,101,114,69,113,117,97,108,59],value:"≱"},{key:[78,111,116,71,114,101,97,116,101,114,70,117,108,108,69,113,117,97,108,59],value:"≧̸"},{key:[78,111,116,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"≫̸"},{key:[78,111,116,71,114,101,97,116,101,114,76,101,115,115,59],value:"≹"},{key:[78,111,116,71,114,101,97,116,101,114,83,108,97,110,116,69,113,117,97,108,59],value:"⩾̸"},{key:[78,111,116,71,114,101,97,116,101,114,84,105,108,100,101,59],value:"≵"},{key:[78,111,116,72,117,109,112,68,111,119,110,72,117,109,112,59],value:"≎̸"},{key:[78,111,116,72,117,109,112,69,113,117,97,108,59],value:"≏̸"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,59],value:"⋪"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧏̸"},{key:[78,111,116,76,101,102,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⋬"},{key:[78,111,116,76,101,115,115,59],value:"≮"},{key:[78,111,116,76,101,115,115,69,113,117,97,108,59],value:"≰"},{key:[78,111,116,76,101,115,115,71,114,101,97,116,101,114,59],value:"≸"},{key:[78,111,116,76,101,115,115,76,101,115,115,59],value:"≪̸"},{key:[78,111,116,76,101,115,115,83,108,97,110,116,69,113,117,97,108,59],value:"⩽̸"},{key:[78,111,116,76,101,115,115,84,105,108,100,101,59],value:"≴"},{key:[78,111,116,78,101,115,116,101,100,71,114,101,97,116,101,114,71,114,101,97,116,101,114,59],value:"⪢̸"},{key:[78,111,116,78,101,115,116,101,100,76,101,115,115,76,101,115,115,59],value:"⪡̸"},{key:[78,111,116,80,114,101,99,101,100,101,115,59],value:"⊀"},{key:[78,111,116,80,114,101,99,101,100,101,115,69,113,117,97,108,59],value:"⪯̸"},{key:[78,111,116,80,114,101,99,101,100,101,115,83,108,97,110,116,69,113,117,97,108,59],value:"⋠"},{key:[78,111,116,82,101,118,101,114,115,101,69,108,101,109,101,110,116,59],value:"∌"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,59],value:"⋫"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧐̸"},{key:[78,111,116,82,105,103,104,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⋭"},{key:[78,111,116,83,113,117,97,114,101,83,117,98,115,101,116,59],value:"⊏̸"},{key:[78,111,116,83,113,117,97,114,101,83,117,98,115,101,116,69,113,117,97,108,59],value:"⋢"},{key:[78,111,116,83,113,117,97,114,101,83,117,112,101,114,115,101,116,59],value:"⊐̸"},{key:[78,111,116,83,113,117,97,114,101,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⋣"},{key:[78,111,116,83,117,98,115,101,116,59],value:"⊂⃒"},{key:[78,111,116,83,117,98,115,101,116,69,113,117,97,108,59],value:"⊈"},{key:[78,111,116,83,117,99,99,101,101,100,115,59],value:"⊁"},{key:[78,111,116,83,117,99,99,101,101,100,115,69,113,117,97,108,59],value:"⪰̸"},{key:[78,111,116,83,117,99,99,101,101,100,115,83,108,97,110,116,69,113,117,97,108,59],value:"⋡"},{key:[78,111,116,83,117,99,99,101,101,100,115,84,105,108,100,101,59],value:"≿̸"},{key:[78,111,116,83,117,112,101,114,115,101,116,59],value:"⊃⃒"},{key:[78,111,116,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊉"},{key:[78,111,116,84,105,108,100,101,59],value:"≁"},{key:[78,111,116,84,105,108,100,101,69,113,117,97,108,59],value:"≄"},{key:[78,111,116,84,105,108,100,101,70,117,108,108,69,113,117,97,108,59],value:"≇"},{key:[78,111,116,84,105,108,100,101,84,105,108,100,101,59],value:"≉"},{key:[78,111,116,86,101,114,116,105,99,97,108,66,97,114,59],value:"∤"},{key:[78,115,99,114,59],value:"𝒩"},{key:[78,116,105,108,100,101,59],value:"Ñ"},{key:[78,117,59],value:"Ν"},{key:[79,69,108,105,103,59],value:"Œ"},{key:[79,97,99,117,116,101,59],value:"Ó"},{key:[79,99,105,114,99,59],value:"Ô"},{key:[79,99,121,59],value:"О"},{key:[79,100,98,108,97,99,59],value:"Ő"},{key:[79,102,114,59],value:"𝔒"},{key:[79,103,114,97,118,101,59],value:"Ò"},{key:[79,109,97,99,114,59],value:"Ō"},{key:[79,109,101,103,97,59],value:"Ω"},{key:[79,109,105,99,114,111,110,59],value:"Ο"},{key:[79,111,112,102,59],value:"𝕆"},{key:[79,112,101,110,67,117,114,108,121,68,111,117,98,108,101,81,117,111,116,101,59],value:"“"},{key:[79,112,101,110,67,117,114,108,121,81,117,111,116,101,59],value:"‘"},{key:[79,114,59],value:"⩔"},{key:[79,115,99,114,59],value:"𝒪"},{key:[79,115,108,97,115,104,59],value:"Ø"},{key:[79,116,105,108,100,101,59],value:"Õ"},{key:[79,116,105,109,101,115,59],value:"⨷"},{key:[79,117,109,108,59],value:"Ö"},{key:[79,118,101,114,66,97,114,59],value:"‾"},{key:[79,118,101,114,66,114,97,99,101,59],value:"⏞"},{key:[79,118,101,114,66,114,97,99,107,101,116,59],value:"⎴"},{key:[79,118,101,114,80,97,114,101,110,116,104,101,115,105,115,59],value:"⏜"},{key:[80,97,114,116,105,97,108,68,59],value:"∂"},{key:[80,99,121,59],value:"П"},{key:[80,102,114,59],value:"𝔓"},{key:[80,104,105,59],value:"Φ"},{key:[80,105,59],value:"Π"},{key:[80,108,117,115,77,105,110,117,115,59],value:"±"},{key:[80,111,105,110,99,97,114,101,112,108,97,110,101,59],value:"ℌ"},{key:[80,111,112,102,59],value:"ℙ"},{key:[80,114,59],value:"⪻"},{key:[80,114,101,99,101,100,101,115,59],value:"≺"},{key:[80,114,101,99,101,100,101,115,69,113,117,97,108,59],value:"⪯"},{key:[80,114,101,99,101,100,101,115,83,108,97,110,116,69,113,117,97,108,59],value:"≼"},{key:[80,114,101,99,101,100,101,115,84,105,108,100,101,59],value:"≾"},{key:[80,114,105,109,101,59],value:"″"},{key:[80,114,111,100,117,99,116,59],value:"∏"},{key:[80,114,111,112,111,114,116,105,111,110,59],value:"∷"},{key:[80,114,111,112,111,114,116,105,111,110,97,108,59],value:"∝"},{key:[80,115,99,114,59],value:"𝒫"},{key:[80,115,105,59],value:"Ψ"},{key:[81,85,79,84,59],value:'"'},{key:[81,102,114,59],value:"𝔔"},{key:[81,111,112,102,59],value:"ℚ"},{key:[81,115,99,114,59],value:"𝒬"},{key:[82,66,97,114,114,59],value:"⤐"},{key:[82,69,71,59],value:"®"},{key:[82,97,99,117,116,101,59],value:"Ŕ"},{key:[82,97,110,103,59],value:"⟫"},{key:[82,97,114,114,59],value:"↠"},{key:[82,97,114,114,116,108,59],value:"⤖"},{key:[82,99,97,114,111,110,59],value:"Ř"},{key:[82,99,101,100,105,108,59],value:"Ŗ"},{key:[82,99,121,59],value:"Р"},{key:[82,101,59],value:"ℜ"},{key:[82,101,118,101,114,115,101,69,108,101,109,101,110,116,59],value:"∋"},{key:[82,101,118,101,114,115,101,69,113,117,105,108,105,98,114,105,117,109,59],value:"⇋"},{key:[82,101,118,101,114,115,101,85,112,69,113,117,105,108,105,98,114,105,117,109,59],value:"⥯"},{key:[82,102,114,59],value:"ℜ"},{key:[82,104,111,59],value:"Ρ"},{key:[82,105,103,104,116,65,110,103,108,101,66,114,97,99,107,101,116,59],value:"⟩"},{key:[82,105,103,104,116,65,114,114,111,119,59],value:"→"},{key:[82,105,103,104,116,65,114,114,111,119,66,97,114,59],value:"⇥"},{key:[82,105,103,104,116,65,114,114,111,119,76,101,102,116,65,114,114,111,119,59],value:"⇄"},{key:[82,105,103,104,116,67,101,105,108,105,110,103,59],value:"⌉"},{key:[82,105,103,104,116,68,111,117,98,108,101,66,114,97,99,107,101,116,59],value:"⟧"},{key:[82,105,103,104,116,68,111,119,110,84,101,101,86,101,99,116,111,114,59],value:"⥝"},{key:[82,105,103,104,116,68,111,119,110,86,101,99,116,111,114,59],value:"⇂"},{key:[82,105,103,104,116,68,111,119,110,86,101,99,116,111,114,66,97,114,59],value:"⥕"},{key:[82,105,103,104,116,70,108,111,111,114,59],value:"⌋"},{key:[82,105,103,104,116,84,101,101,59],value:"⊢"},{key:[82,105,103,104,116,84,101,101,65,114,114,111,119,59],value:"↦"},{key:[82,105,103,104,116,84,101,101,86,101,99,116,111,114,59],value:"⥛"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,59],value:"⊳"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,66,97,114,59],value:"⧐"},{key:[82,105,103,104,116,84,114,105,97,110,103,108,101,69,113,117,97,108,59],value:"⊵"},{key:[82,105,103,104,116,85,112,68,111,119,110,86,101,99,116,111,114,59],value:"⥏"},{key:[82,105,103,104,116,85,112,84,101,101,86,101,99,116,111,114,59],value:"⥜"},{key:[82,105,103,104,116,85,112,86,101,99,116,111,114,59],value:"↾"},{key:[82,105,103,104,116,85,112,86,101,99,116,111,114,66,97,114,59],value:"⥔"},{key:[82,105,103,104,116,86,101,99,116,111,114,59],value:"⇀"},{key:[82,105,103,104,116,86,101,99,116,111,114,66,97,114,59],value:"⥓"},{key:[82,105,103,104,116,97,114,114,111,119,59],value:"⇒"},{key:[82,111,112,102,59],value:"ℝ"},{key:[82,111,117,110,100,73,109,112,108,105,101,115,59],value:"⥰"},{key:[82,114,105,103,104,116,97,114,114,111,119,59],value:"⇛"},{key:[82,115,99,114,59],value:"ℛ"},{key:[82,115,104,59],value:"↱"},{key:[82,117,108,101,68,101,108,97,121,101,100,59],value:"⧴"},{key:[83,72,67,72,99,121,59],value:"Щ"},{key:[83,72,99,121,59],value:"Ш"},{key:[83,79,70,84,99,121,59],value:"Ь"},{key:[83,97,99,117,116,101,59],value:"Ś"},{key:[83,99,59],value:"⪼"},{key:[83,99,97,114,111,110,59],value:"Š"},{key:[83,99,101,100,105,108,59],value:"Ş"},{key:[83,99,105,114,99,59],value:"Ŝ"},{key:[83,99,121,59],value:"С"},{key:[83,102,114,59],value:"𝔖"},{key:[83,104,111,114,116,68,111,119,110,65,114,114,111,119,59],value:"↓"},{key:[83,104,111,114,116,76,101,102,116,65,114,114,111,119,59],value:"←"},{key:[83,104,111,114,116,82,105,103,104,116,65,114,114,111,119,59],value:"→"},{key:[83,104,111,114,116,85,112,65,114,114,111,119,59],value:"↑"},{key:[83,105,103,109,97,59],value:"Σ"},{key:[83,109,97,108,108,67,105,114,99,108,101,59],value:"∘"},{key:[83,111,112,102,59],value:"𝕊"},{key:[83,113,114,116,59],value:"√"},{key:[83,113,117,97,114,101,59],value:"□"},{key:[83,113,117,97,114,101,73,110,116,101,114,115,101,99,116,105,111,110,59],value:"⊓"},{key:[83,113,117,97,114,101,83,117,98,115,101,116,59],value:"⊏"},{key:[83,113,117,97,114,101,83,117,98,115,101,116,69,113,117,97,108,59],value:"⊑"},{key:[83,113,117,97,114,101,83,117,112,101,114,115,101,116,59],value:"⊐"},{key:[83,113,117,97,114,101,83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊒"},{key:[83,113,117,97,114,101,85,110,105,111,110,59],value:"⊔"},{key:[83,115,99,114,59],value:"𝒮"},{key:[83,116,97,114,59],value:"⋆"},{key:[83,117,98,59],value:"⋐"},{key:[83,117,98,115,101,116,59],value:"⋐"},{key:[83,117,98,115,101,116,69,113,117,97,108,59],value:"⊆"},{key:[83,117,99,99,101,101,100,115,59],value:"≻"},{key:[83,117,99,99,101,101,100,115,69,113,117,97,108,59],value:"⪰"},{key:[83,117,99,99,101,101,100,115,83,108,97,110,116,69,113,117,97,108,59],value:"≽"},{key:[83,117,99,99,101,101,100,115,84,105,108,100,101,59],value:"≿"},{key:[83,117,99,104,84,104,97,116,59],value:"∋"},{key:[83,117,109,59],value:"∑"},{key:[83,117,112,59],value:"⋑"},{key:[83,117,112,101,114,115,101,116,59],value:"⊃"},{key:[83,117,112,101,114,115,101,116,69,113,117,97,108,59],value:"⊇"},{key:[83,117,112,115,101,116,59],value:"⋑"},{key:[84,72,79,82,78,59],value:"Þ"},{key:[84,82,65,68,69,59],value:"™"},{key:[84,83,72,99,121,59],value:"Ћ"},{key:[84,83,99,121,59],value:"Ц"},{key:[84,97,98,59],value:" "},{key:[84,97,117,59],value:"Τ"},{key:[84,99,97,114,111,110,59],value:"Ť"},{key:[84,99,101,100,105,108,59],value:"Ţ"},{key:[84,99,121,59],value:"Т"},{key:[84,102,114,59],value:"𝔗"},{key:[84,104,101,114,101,102,111,114,101,59],value:"∴"},{key:[84,104,101,116,97,59],value:"Θ"},{key:[84,104,105,99,107,83,112,97,99,101,59],value:"  "},{key:[84,104,105,110,83,112,97,99,101,59],value:" "},{key:[84,105,108,100,101,59],value:"∼"},{key:[84,105,108,100,101,69,113,117,97,108,59],value:"≃"},{key:[84,105,108,100,101,70,117,108,108,69,113,117,97,108,59],value:"≅"},{key:[84,105,108,100,101,84,105,108,100,101,59],value:"≈"},{key:[84,111,112,102,59],value:"𝕋"},{key:[84,114,105,112,108,101,68,111,116,59],value:"⃛"},{key:[84,115,99,114,59],value:"𝒯"},{key:[84,115,116,114,111,107,59],value:"Ŧ"},{key:[85,97,99,117,116,101,59],value:"Ú"},{key:[85,97,114,114,59],value:"↟"},{key:[85,97,114,114,111,99,105,114,59],value:"⥉"},{key:[85,98,114,99,121,59],value:"Ў"},{key:[85,98,114,101,118,101,59],value:"Ŭ"},{key:[85,99,105,114,99,59],value:"Û"},{key:[85,99,121,59],value:"У"},{key:[85,100,98,108,97,99,59],value:"Ű"},{key:[85,102,114,59],value:"𝔘"},{key:[85,103,114,97,118,101,59],value:"Ù"},{key:[85,109,97,99,114,59],value:"Ū"},{key:[85,110,100,101,114,66,97,114,59],value:"_"},{key:[85,110,100,101,114,66,114,97,99,101,59],value:"⏟"},{key:[85,110,100,101,114,66,114,97,99,107,101,116,59],value:"⎵"},{key:[85,110,100,101,114,80,97,114,101,110,116,104,101,115,105,115,59],value:"⏝"},{key:[85,110,105,111,110,59],value:"⋃"},{key:[85,110,105,111,110,80,108,117,115,59],value:"⊎"},{key:[85,111,103,111,110,59],value:"Ų"},{key:[85,111,112,102,59],value:"𝕌"},{key:[85,112,65,114,114,111,119,59],value:"↑"},{key:[85,112,65,114,114,111,119,66,97,114,59],value:"⤒"},{key:[85,112,65,114,114,111,119,68,111,119,110,65,114,114,111,119,59],value:"⇅"},{key:[85,112,68,111,119,110,65,114,114,111,119,59],value:"↕"},{key:[85,112,69,113,117,105,108,105,98,114,105,117,109,59],value:"⥮"},{key:[85,112,84,101,101,59],value:"⊥"},{key:[85,112,84,101,101,65,114,114,111,119,59],value:"↥"},{key:[85,112,97,114,114,111,119,59],value:"⇑"},{key:[85,112,100,111,119,110,97,114,114,111,119,59],value:"⇕"},{key:[85,112,112,101,114,76,101,102,116,65,114,114,111,119,59],value:"↖"},{key:[85,112,112,101,114,82,105,103,104,116,65,114,114,111,119,59],value:"↗"},{key:[85,112,115,105,59],value:"ϒ"},{key:[85,112,115,105,108,111,110,59],value:"Υ"},{key:[85,114,105,110,103,59],value:"Ů"},{key:[85,115,99,114,59],value:"𝒰"},{key:[85,116,105,108,100,101,59],value:"Ũ"},{key:[85,117,109,108,59],value:"Ü"},{key:[86,68,97,115,104,59],value:"⊫"},{key:[86,98,97,114,59],value:"⫫"},{key:[86,99,121,59],value:"В"},{key:[86,100,97,115,104,59],value:"⊩"},{key:[86,100,97,115,104,108,59],value:"⫦"},{key:[86,101,101,59],value:"⋁"},{key:[86,101,114,98,97,114,59],value:"‖"},{key:[86,101,114,116,59],value:"‖"},{key:[86,101,114,116,105,99,97,108,66,97,114,59],value:"∣"},{key:[86,101,114,116,105,99,97,108,76,105,110,101,59],value:"|"},{key:[86,101,114,116,105,99,97,108,83,101,112,97,114,97,116,111,114,59],value:"❘"},{key:[86,101,114,116,105,99,97,108,84,105,108,100,101,59],value:"≀"},{key:[86,101,114,121,84,104,105,110,83,112,97,99,101,59],value:" "},{key:[86,102,114,59],value:"𝔙"},{key:[86,111,112,102,59],value:"𝕍"},{key:[86,115,99,114,59],value:"𝒱"},{key:[86,118,100,97,115,104,59],value:"⊪"},{key:[87,99,105,114,99,59],value:"Ŵ"},{key:[87,101,100,103,101,59],value:"⋀"},{key:[87,102,114,59],value:"𝔚"},{key:[87,111,112,102,59],value:"𝕎"},{key:[87,115,99,114,59],value:"𝒲"},{key:[88,102,114,59],value:"𝔛"},{key:[88,105,59],value:"Ξ"},{key:[88,111,112,102,59],value:"𝕏"},{key:[88,115,99,114,59],value:"𝒳"},{key:[89,65,99,121,59],value:"Я"},{key:[89,73,99,121,59],value:"Ї"},{key:[89,85,99,121,59],value:"Ю"},{key:[89,97,99,117,116,101,59],value:"Ý"},{key:[89,99,105,114,99,59],value:"Ŷ"},{key:[89,99,121,59],value:"Ы"},{key:[89,102,114,59],value:"𝔜"},{key:[89,111,112,102,59],value:"𝕐"},{key:[89,115,99,114,59],value:"𝒴"},{key:[89,117,109,108,59],value:"Ÿ"},{key:[90,72,99,121,59],value:"Ж"},{key:[90,97,99,117,116,101,59],value:"Ź"},{key:[90,99,97,114,111,110,59],value:"Ž"},{key:[90,99,121,59],value:"З"},{key:[90,100,111,116,59],value:"Ż"},{key:[90,101,114,111,87,105,100,116,104,83,112,97,99,101,59],value:"​"},{key:[90,101,116,97,59],value:"Ζ"},{key:[90,102,114,59],value:"ℨ"},{key:[90,111,112,102,59],value:"ℤ"},{key:[90,115,99,114,59],value:"𝒵"},{key:[97,97,99,117,116,101,59],value:"á"},{key:[97,98,114,101,118,101,59],value:"ă"},{key:[97,99,59],value:"∾"},{key:[97,99,69,59],value:"∾̳"},{key:[97,99,100,59],value:"∿"},{key:[97,99,105,114,99,59],value:"â"},{key:[97,99,117,116,101,59],value:"´"},{key:[97,99,121,59],value:"а"},{key:[97,101,108,105,103,59],value:"æ"},{key:[97,102,59],value:"⁡"},{key:[97,102,114,59],value:"𝔞"},{key:[97,103,114,97,118,101,59],value:"à"},{key:[97,108,101,102,115,121,109,59],value:"ℵ"},{key:[97,108,101,112,104,59],value:"ℵ"},{key:[97,108,112,104,97,59],value:"α"},{key:[97,109,97,99,114,59],value:"ā"},{key:[97,109,97,108,103,59],value:"⨿"},{key:[97,109,112,59],value:"&"},{key:[97,110,100,59],value:"∧"},{key:[97,110,100,97,110,100,59],value:"⩕"},{key:[97,110,100,100,59],value:"⩜"},{key:[97,110,100,115,108,111,112,101,59],value:"⩘"},{key:[97,110,100,118,59],value:"⩚"},{key:[97,110,103,59],value:"∠"},{key:[97,110,103,101,59],value:"⦤"},{key:[97,110,103,108,101,59],value:"∠"},{key:[97,110,103,109,115,100,59],value:"∡"},{key:[97,110,103,109,115,100,97,97,59],value:"⦨"},{key:[97,110,103,109,115,100,97,98,59],value:"⦩"},{key:[97,110,103,109,115,100,97,99,59],value:"⦪"},{key:[97,110,103,109,115,100,97,100,59],value:"⦫"},{key:[97,110,103,109,115,100,97,101,59],value:"⦬"},{key:[97,110,103,109,115,100,97,102,59],value:"⦭"},{key:[97,110,103,109,115,100,97,103,59],value:"⦮"},{key:[97,110,103,109,115,100,97,104,59],value:"⦯"},{key:[97,110,103,114,116,59],value:"∟"},{key:[97,110,103,114,116,118,98,59],value:"⊾"},{key:[97,110,103,114,116,118,98,100,59],value:"⦝"},{key:[97,110,103,115,112,104,59],value:"∢"},{key:[97,110,103,115,116,59],value:"Å"},{key:[97,110,103,122,97,114,114,59],value:"⍼"},{key:[97,111,103,111,110,59],value:"ą"},{key:[97,111,112,102,59],value:"𝕒"},{key:[97,112,59],value:"≈"},{key:[97,112,69,59],value:"⩰"},{key:[97,112,97,99,105,114,59],value:"⩯"},{key:[97,112,101,59],value:"≊"},{key:[97,112,105,100,59],value:"≋"},{key:[97,112,111,115,59],value:"'"},{key:[97,112,112,114,111,120,59],value:"≈"},{key:[97,112,112,114,111,120,101,113,59],value:"≊"},{key:[97,114,105,110,103,59],value:"å"},{key:[97,115,99,114,59],value:"𝒶"},{key:[97,115,116,59],value:"*"},{key:[97,115,121,109,112,59],value:"≈"},{key:[97,115,121,109,112,101,113,59],value:"≍"},{key:[97,116,105,108,100,101,59],value:"ã"},{key:[97,117,109,108,59],value:"ä"},{key:[97,119,99,111,110,105,110,116,59],value:"∳"},{key:[97,119,105,110,116,59],value:"⨑"},{key:[98,78,111,116,59],value:"⫭"},{key:[98,97,99,107,99,111,110,103,59],value:"≌"},{key:[98,97,99,107,101,112,115,105,108,111,110,59],value:"϶"},{key:[98,97,99,107,112,114,105,109,101,59],value:"‵"},{key:[98,97,99,107,115,105,109,59],value:"∽"},{key:[98,97,99,107,115,105,109,101,113,59],value:"⋍"},{key:[98,97,114,118,101,101,59],value:"⊽"},{key:[98,97,114,119,101,100,59],value:"⌅"},{key:[98,97,114,119,101,100,103,101,59],value:"⌅"},{key:[98,98,114,107,59],value:"⎵"},{key:[98,98,114,107,116,98,114,107,59],value:"⎶"},{key:[98,99,111,110,103,59],value:"≌"},{key:[98,99,121,59],value:"б"},{key:[98,100,113,117,111,59],value:"„"},{key:[98,101,99,97,117,115,59],value:"∵"},{key:[98,101,99,97,117,115,101,59],value:"∵"},{key:[98,101,109,112,116,121,118,59],value:"⦰"},{key:[98,101,112,115,105,59],value:"϶"},{key:[98,101,114,110,111,117,59],value:"ℬ"},{key:[98,101,116,97,59],value:"β"},{key:[98,101,116,104,59],value:"ℶ"},{key:[98,101,116,119,101,101,110,59],value:"≬"},{key:[98,102,114,59],value:"𝔟"},{key:[98,105,103,99,97,112,59],value:"⋂"},{key:[98,105,103,99,105,114,99,59],value:"◯"},{key:[98,105,103,99,117,112,59],value:"⋃"},{key:[98,105,103,111,100,111,116,59],value:"⨀"},{key:[98,105,103,111,112,108,117,115,59],value:"⨁"},{key:[98,105,103,111,116,105,109,101,115,59],value:"⨂"},{key:[98,105,103,115,113,99,117,112,59],value:"⨆"},{key:[98,105,103,115,116,97,114,59],value:"★"},{key:[98,105,103,116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▽"},{key:[98,105,103,116,114,105,97,110,103,108,101,117,112,59],value:"△"},{key:[98,105,103,117,112,108,117,115,59],value:"⨄"},{key:[98,105,103,118,101,101,59],value:"⋁"},{key:[98,105,103,119,101,100,103,101,59],value:"⋀"},{key:[98,107,97,114,111,119,59],value:"⤍"},{key:[98,108,97,99,107,108,111,122,101,110,103,101,59],value:"⧫"},{key:[98,108,97,99,107,115,113,117,97,114,101,59],value:"▪"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,59],value:"▴"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▾"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"◂"},{key:[98,108,97,99,107,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"▸"},{key:[98,108,97,110,107,59],value:"␣"},{key:[98,108,107,49,50,59],value:"▒"},{key:[98,108,107,49,52,59],value:"░"},{key:[98,108,107,51,52,59],value:"▓"},{key:[98,108,111,99,107,59],value:"█"},{key:[98,110,101,59],value:"=⃥"},{key:[98,110,101,113,117,105,118,59],value:"≡⃥"},{key:[98,110,111,116,59],value:"⌐"},{key:[98,111,112,102,59],value:"𝕓"},{key:[98,111,116,59],value:"⊥"},{key:[98,111,116,116,111,109,59],value:"⊥"},{key:[98,111,119,116,105,101,59],value:"⋈"},{key:[98,111,120,68,76,59],value:"╗"},{key:[98,111,120,68,82,59],value:"╔"},{key:[98,111,120,68,108,59],value:"╖"},{key:[98,111,120,68,114,59],value:"╓"},{key:[98,111,120,72,59],value:"═"},{key:[98,111,120,72,68,59],value:"╦"},{key:[98,111,120,72,85,59],value:"╩"},{key:[98,111,120,72,100,59],value:"╤"},{key:[98,111,120,72,117,59],value:"╧"},{key:[98,111,120,85,76,59],value:"╝"},{key:[98,111,120,85,82,59],value:"╚"},{key:[98,111,120,85,108,59],value:"╜"},{key:[98,111,120,85,114,59],value:"╙"},{key:[98,111,120,86,59],value:"║"},{key:[98,111,120,86,72,59],value:"╬"},{key:[98,111,120,86,76,59],value:"╣"},{key:[98,111,120,86,82,59],value:"╠"},{key:[98,111,120,86,104,59],value:"╫"},{key:[98,111,120,86,108,59],value:"╢"},{key:[98,111,120,86,114,59],value:"╟"},{key:[98,111,120,98,111,120,59],value:"⧉"},{key:[98,111,120,100,76,59],value:"╕"},{key:[98,111,120,100,82,59],value:"╒"},{key:[98,111,120,100,108,59],value:"┐"},{key:[98,111,120,100,114,59],value:"┌"},{key:[98,111,120,104,59],value:"─"},{key:[98,111,120,104,68,59],value:"╥"},{key:[98,111,120,104,85,59],value:"╨"},{key:[98,111,120,104,100,59],value:"┬"},{key:[98,111,120,104,117,59],value:"┴"},{key:[98,111,120,109,105,110,117,115,59],value:"⊟"},{key:[98,111,120,112,108,117,115,59],value:"⊞"},{key:[98,111,120,116,105,109,101,115,59],value:"⊠"},{key:[98,111,120,117,76,59],value:"╛"},{key:[98,111,120,117,82,59],value:"╘"},{key:[98,111,120,117,108,59],value:"┘"},{key:[98,111,120,117,114,59],value:"└"},{key:[98,111,120,118,59],value:"│"},{key:[98,111,120,118,72,59],value:"╪"},{key:[98,111,120,118,76,59],value:"╡"},{key:[98,111,120,118,82,59],value:"╞"},{key:[98,111,120,118,104,59],value:"┼"},{key:[98,111,120,118,108,59],value:"┤"},{key:[98,111,120,118,114,59],value:"├"},{key:[98,112,114,105,109,101,59],value:"‵"},{key:[98,114,101,118,101,59],value:"˘"},{key:[98,114,118,98,97,114,59],value:"¦"},{key:[98,115,99,114,59],value:"𝒷"},{key:[98,115,101,109,105,59],value:"⁏"},{key:[98,115,105,109,59],value:"∽"},{key:[98,115,105,109,101,59],value:"⋍"},{key:[98,115,111,108,59],value:"\\"},{key:[98,115,111,108,98,59],value:"⧅"},{key:[98,115,111,108,104,115,117,98,59],value:"⟈"},{key:[98,117,108,108,59],value:"•"},{key:[98,117,108,108,101,116,59],value:"•"},{key:[98,117,109,112,59],value:"≎"},{key:[98,117,109,112,69,59],value:"⪮"},{key:[98,117,109,112,101,59],value:"≏"},{key:[98,117,109,112,101,113,59],value:"≏"},{key:[99,97,99,117,116,101,59],value:"ć"},{key:[99,97,112,59],value:"∩"},{key:[99,97,112,97,110,100,59],value:"⩄"},{key:[99,97,112,98,114,99,117,112,59],value:"⩉"},{key:[99,97,112,99,97,112,59],value:"⩋"},{key:[99,97,112,99,117,112,59],value:"⩇"},{key:[99,97,112,100,111,116,59],value:"⩀"},{key:[99,97,112,115,59],value:"∩︀"},{key:[99,97,114,101,116,59],value:"⁁"},{key:[99,97,114,111,110,59],value:"ˇ"},{key:[99,99,97,112,115,59],value:"⩍"},{key:[99,99,97,114,111,110,59],value:"č"},{key:[99,99,101,100,105,108,59],value:"ç"},{key:[99,99,105,114,99,59],value:"ĉ"},{key:[99,99,117,112,115,59],value:"⩌"},{key:[99,99,117,112,115,115,109,59],value:"⩐"},{key:[99,100,111,116,59],value:"ċ"},{key:[99,101,100,105,108,59],value:"¸"},{key:[99,101,109,112,116,121,118,59],value:"⦲"},{key:[99,101,110,116,59],value:"¢"},{key:[99,101,110,116,101,114,100,111,116,59],value:"·"},{key:[99,102,114,59],value:"𝔠"},{key:[99,104,99,121,59],value:"ч"},{key:[99,104,101,99,107,59],value:"✓"},{key:[99,104,101,99,107,109,97,114,107,59],value:"✓"},{key:[99,104,105,59],value:"χ"},{key:[99,105,114,59],value:"○"},{key:[99,105,114,69,59],value:"⧃"},{key:[99,105,114,99,59],value:"ˆ"},{key:[99,105,114,99,101,113,59],value:"≗"},{key:[99,105,114,99,108,101,97,114,114,111,119,108,101,102,116,59],value:"↺"},{key:[99,105,114,99,108,101,97,114,114,111,119,114,105,103,104,116,59],value:"↻"},{key:[99,105,114,99,108,101,100,82,59],value:"®"},{key:[99,105,114,99,108,101,100,83,59],value:"Ⓢ"},{key:[99,105,114,99,108,101,100,97,115,116,59],value:"⊛"},{key:[99,105,114,99,108,101,100,99,105,114,99,59],value:"⊚"},{key:[99,105,114,99,108,101,100,100,97,115,104,59],value:"⊝"},{key:[99,105,114,101,59],value:"≗"},{key:[99,105,114,102,110,105,110,116,59],value:"⨐"},{key:[99,105,114,109,105,100,59],value:"⫯"},{key:[99,105,114,115,99,105,114,59],value:"⧂"},{key:[99,108,117,98,115,59],value:"♣"},{key:[99,108,117,98,115,117,105,116,59],value:"♣"},{key:[99,111,108,111,110,59],value:":"},{key:[99,111,108,111,110,101,59],value:"≔"},{key:[99,111,108,111,110,101,113,59],value:"≔"},{key:[99,111,109,109,97,59],value:","},{key:[99,111,109,109,97,116,59],value:"@"},{key:[99,111,109,112,59],value:"∁"},{key:[99,111,109,112,102,110,59],value:"∘"},{key:[99,111,109,112,108,101,109,101,110,116,59],value:"∁"},{key:[99,111,109,112,108,101,120,101,115,59],value:"ℂ"},{key:[99,111,110,103,59],value:"≅"},{key:[99,111,110,103,100,111,116,59],value:"⩭"},{key:[99,111,110,105,110,116,59],value:"∮"},{key:[99,111,112,102,59],value:"𝕔"},{key:[99,111,112,114,111,100,59],value:"∐"},{key:[99,111,112,121,59],value:"©"},{key:[99,111,112,121,115,114,59],value:"℗"},{key:[99,114,97,114,114,59],value:"↵"},{key:[99,114,111,115,115,59],value:"✗"},{key:[99,115,99,114,59],value:"𝒸"},{key:[99,115,117,98,59],value:"⫏"},{key:[99,115,117,98,101,59],value:"⫑"},{key:[99,115,117,112,59],value:"⫐"},{key:[99,115,117,112,101,59],value:"⫒"},{key:[99,116,100,111,116,59],value:"⋯"},{key:[99,117,100,97,114,114,108,59],value:"⤸"},{key:[99,117,100,97,114,114,114,59],value:"⤵"},{key:[99,117,101,112,114,59],value:"⋞"},{key:[99,117,101,115,99,59],value:"⋟"},{key:[99,117,108,97,114,114,59],value:"↶"},{key:[99,117,108,97,114,114,112,59],value:"⤽"},{key:[99,117,112,59],value:"∪"},{key:[99,117,112,98,114,99,97,112,59],value:"⩈"},{key:[99,117,112,99,97,112,59],value:"⩆"},{key:[99,117,112,99,117,112,59],value:"⩊"},{key:[99,117,112,100,111,116,59],value:"⊍"},{key:[99,117,112,111,114,59],value:"⩅"},{key:[99,117,112,115,59],value:"∪︀"},{key:[99,117,114,97,114,114,59],value:"↷"},{key:[99,117,114,97,114,114,109,59],value:"⤼"},{key:[99,117,114,108,121,101,113,112,114,101,99,59],value:"⋞"},{key:[99,117,114,108,121,101,113,115,117,99,99,59],value:"⋟"},{key:[99,117,114,108,121,118,101,101,59],value:"⋎"},{key:[99,117,114,108,121,119,101,100,103,101,59],value:"⋏"},{key:[99,117,114,114,101,110,59],value:"¤"},{key:[99,117,114,118,101,97,114,114,111,119,108,101,102,116,59],value:"↶"},{key:[99,117,114,118,101,97,114,114,111,119,114,105,103,104,116,59],value:"↷"},{key:[99,117,118,101,101,59],value:"⋎"},{key:[99,117,119,101,100,59],value:"⋏"},{key:[99,119,99,111,110,105,110,116,59],value:"∲"},{key:[99,119,105,110,116,59],value:"∱"},{key:[99,121,108,99,116,121,59],value:"⌭"},{key:[100,65,114,114,59],value:"⇓"},{key:[100,72,97,114,59],value:"⥥"},{key:[100,97,103,103,101,114,59],value:"†"},{key:[100,97,108,101,116,104,59],value:"ℸ"},{key:[100,97,114,114,59],value:"↓"},{key:[100,97,115,104,59],value:"‐"},{key:[100,97,115,104,118,59],value:"⊣"},{key:[100,98,107,97,114,111,119,59],value:"⤏"},{key:[100,98,108,97,99,59],value:"˝"},{key:[100,99,97,114,111,110,59],value:"ď"},{key:[100,99,121,59],value:"д"},{key:[100,100,59],value:"ⅆ"},{key:[100,100,97,103,103,101,114,59],value:"‡"},{key:[100,100,97,114,114,59],value:"⇊"},{key:[100,100,111,116,115,101,113,59],value:"⩷"},{key:[100,101,103,59],value:"°"},{key:[100,101,108,116,97,59],value:"δ"},{key:[100,101,109,112,116,121,118,59],value:"⦱"},{key:[100,102,105,115,104,116,59],value:"⥿"},{key:[100,102,114,59],value:"𝔡"},{key:[100,104,97,114,108,59],value:"⇃"},{key:[100,104,97,114,114,59],value:"⇂"},{key:[100,105,97,109,59],value:"⋄"},{key:[100,105,97,109,111,110,100,59],value:"⋄"},{key:[100,105,97,109,111,110,100,115,117,105,116,59],value:"♦"},{key:[100,105,97,109,115,59],value:"♦"},{key:[100,105,101,59],value:"¨"},{key:[100,105,103,97,109,109,97,59],value:"ϝ"},{key:[100,105,115,105,110,59],value:"⋲"},{key:[100,105,118,59],value:"÷"},{key:[100,105,118,105,100,101,59],value:"÷"},{key:[100,105,118,105,100,101,111,110,116,105,109,101,115,59],value:"⋇"},{key:[100,105,118,111,110,120,59],value:"⋇"},{key:[100,106,99,121,59],value:"ђ"},{key:[100,108,99,111,114,110,59],value:"⌞"},{key:[100,108,99,114,111,112,59],value:"⌍"},{key:[100,111,108,108,97,114,59],value:"$"},{key:[100,111,112,102,59],value:"𝕕"},{key:[100,111,116,59],value:"˙"},{key:[100,111,116,101,113,59],value:"≐"},{key:[100,111,116,101,113,100,111,116,59],value:"≑"},{key:[100,111,116,109,105,110,117,115,59],value:"∸"},{key:[100,111,116,112,108,117,115,59],value:"∔"},{key:[100,111,116,115,113,117,97,114,101,59],value:"⊡"},{key:[100,111,117,98,108,101,98,97,114,119,101,100,103,101,59],value:"⌆"},{key:[100,111,119,110,97,114,114,111,119,59],value:"↓"},{key:[100,111,119,110,100,111,119,110,97,114,114,111,119,115,59],value:"⇊"},{key:[100,111,119,110,104,97,114,112,111,111,110,108,101,102,116,59],value:"⇃"},{key:[100,111,119,110,104,97,114,112,111,111,110,114,105,103,104,116,59],value:"⇂"},{key:[100,114,98,107,97,114,111,119,59],value:"⤐"},{key:[100,114,99,111,114,110,59],value:"⌟"},{key:[100,114,99,114,111,112,59],value:"⌌"},{key:[100,115,99,114,59],value:"𝒹"},{key:[100,115,99,121,59],value:"ѕ"},{key:[100,115,111,108,59],value:"⧶"},{key:[100,115,116,114,111,107,59],value:"đ"},{key:[100,116,100,111,116,59],value:"⋱"},{key:[100,116,114,105,59],value:"▿"},{key:[100,116,114,105,102,59],value:"▾"},{key:[100,117,97,114,114,59],value:"⇵"},{key:[100,117,104,97,114,59],value:"⥯"},{key:[100,119,97,110,103,108,101,59],value:"⦦"},{key:[100,122,99,121,59],value:"џ"},{key:[100,122,105,103,114,97,114,114,59],value:"⟿"},{key:[101,68,68,111,116,59],value:"⩷"},{key:[101,68,111,116,59],value:"≑"},{key:[101,97,99,117,116,101,59],value:"é"},{key:[101,97,115,116,101,114,59],value:"⩮"},{key:[101,99,97,114,111,110,59],value:"ě"},{key:[101,99,105,114,59],value:"≖"},{key:[101,99,105,114,99,59],value:"ê"},{key:[101,99,111,108,111,110,59],value:"≕"},{key:[101,99,121,59],value:"э"},{key:[101,100,111,116,59],value:"ė"},{key:[101,101,59],value:"ⅇ"},{key:[101,102,68,111,116,59],value:"≒"},{key:[101,102,114,59],value:"𝔢"},{key:[101,103,59],value:"⪚"},{key:[101,103,114,97,118,101,59],value:"è"},{key:[101,103,115,59],value:"⪖"},{key:[101,103,115,100,111,116,59],value:"⪘"},{key:[101,108,59],value:"⪙"},{key:[101,108,105,110,116,101,114,115,59],value:"⏧"},{key:[101,108,108,59],value:"ℓ"},{key:[101,108,115,59],value:"⪕"},{key:[101,108,115,100,111,116,59],value:"⪗"},{key:[101,109,97,99,114,59],value:"ē"},{key:[101,109,112,116,121,59],value:"∅"},{key:[101,109,112,116,121,115,101,116,59],value:"∅"},{key:[101,109,112,116,121,118,59],value:"∅"},{key:[101,109,115,112,49,51,59],value:" "},{key:[101,109,115,112,49,52,59],value:" "},{key:[101,109,115,112,59],value:" "},{key:[101,110,103,59],value:"ŋ"},{key:[101,110,115,112,59],value:" "},{key:[101,111,103,111,110,59],value:"ę"},{key:[101,111,112,102,59],value:"𝕖"},{key:[101,112,97,114,59],value:"⋕"},{key:[101,112,97,114,115,108,59],value:"⧣"},{key:[101,112,108,117,115,59],value:"⩱"},{key:[101,112,115,105,59],value:"ε"},{key:[101,112,115,105,108,111,110,59],value:"ε"},{key:[101,112,115,105,118,59],value:"ϵ"},{key:[101,113,99,105,114,99,59],value:"≖"},{key:[101,113,99,111,108,111,110,59],value:"≕"},{key:[101,113,115,105,109,59],value:"≂"},{key:[101,113,115,108,97,110,116,103,116,114,59],value:"⪖"},{key:[101,113,115,108,97,110,116,108,101,115,115,59],value:"⪕"},{key:[101,113,117,97,108,115,59],value:"="},{key:[101,113,117,101,115,116,59],value:"≟"},{key:[101,113,117,105,118,59],value:"≡"},{key:[101,113,117,105,118,68,68,59],value:"⩸"},{key:[101,113,118,112,97,114,115,108,59],value:"⧥"},{key:[101,114,68,111,116,59],value:"≓"},{key:[101,114,97,114,114,59],value:"⥱"},{key:[101,115,99,114,59],value:"ℯ"},{key:[101,115,100,111,116,59],value:"≐"},{key:[101,115,105,109,59],value:"≂"},{key:[101,116,97,59],value:"η"},{key:[101,116,104,59],value:"ð"},{key:[101,117,109,108,59],value:"ë"},{key:[101,117,114,111,59],value:"€"},{key:[101,120,99,108,59],value:"!"},{key:[101,120,105,115,116,59],value:"∃"},{key:[101,120,112,101,99,116,97,116,105,111,110,59],value:"ℰ"},{key:[101,120,112,111,110,101,110,116,105,97,108,101,59],value:"ⅇ"},{key:[102,97,108,108,105,110,103,100,111,116,115,101,113,59],value:"≒"},{key:[102,99,121,59],value:"ф"},{key:[102,101,109,97,108,101,59],value:"♀"},{key:[102,102,105,108,105,103,59],value:"ffi"},{key:[102,102,108,105,103,59],value:"ff"},{key:[102,102,108,108,105,103,59],value:"ffl"},{key:[102,102,114,59],value:"𝔣"},{key:[102,105,108,105,103,59],value:"fi"},{key:[102,106,108,105,103,59],value:"fj"},{key:[102,108,97,116,59],value:"♭"},{key:[102,108,108,105,103,59],value:"fl"},{key:[102,108,116,110,115,59],value:"▱"},{key:[102,110,111,102,59],value:"ƒ"},{key:[102,111,112,102,59],value:"𝕗"},{key:[102,111,114,97,108,108,59],value:"∀"},{key:[102,111,114,107,59],value:"⋔"},{key:[102,111,114,107,118,59],value:"⫙"},{key:[102,112,97,114,116,105,110,116,59],value:"⨍"},{key:[102,114,97,99,49,50,59],value:"½"},{key:[102,114,97,99,49,51,59],value:"⅓"},{key:[102,114,97,99,49,52,59],value:"¼"},{key:[102,114,97,99,49,53,59],value:"⅕"},{key:[102,114,97,99,49,54,59],value:"⅙"},{key:[102,114,97,99,49,56,59],value:"⅛"},{key:[102,114,97,99,50,51,59],value:"⅔"},{key:[102,114,97,99,50,53,59],value:"⅖"},{key:[102,114,97,99,51,52,59],value:"¾"},{key:[102,114,97,99,51,53,59],value:"⅗"},{key:[102,114,97,99,51,56,59],value:"⅜"},{key:[102,114,97,99,52,53,59],value:"⅘"},{key:[102,114,97,99,53,54,59],value:"⅚"},{key:[102,114,97,99,53,56,59],value:"⅝"},{key:[102,114,97,99,55,56,59],value:"⅞"},{key:[102,114,97,115,108,59],value:"⁄"},{key:[102,114,111,119,110,59],value:"⌢"},{key:[102,115,99,114,59],value:"𝒻"},{key:[103,69,59],value:"≧"},{key:[103,69,108,59],value:"⪌"},{key:[103,97,99,117,116,101,59],value:"ǵ"},{key:[103,97,109,109,97,59],value:"γ"},{key:[103,97,109,109,97,100,59],value:"ϝ"},{key:[103,97,112,59],value:"⪆"},{key:[103,98,114,101,118,101,59],value:"ğ"},{key:[103,99,105,114,99,59],value:"ĝ"},{key:[103,99,121,59],value:"г"},{key:[103,100,111,116,59],value:"ġ"},{key:[103,101,59],value:"≥"},{key:[103,101,108,59],value:"⋛"},{key:[103,101,113,59],value:"≥"},{key:[103,101,113,113,59],value:"≧"},{key:[103,101,113,115,108,97,110,116,59],value:"⩾"},{key:[103,101,115,59],value:"⩾"},{key:[103,101,115,99,99,59],value:"⪩"},{key:[103,101,115,100,111,116,59],value:"⪀"},{key:[103,101,115,100,111,116,111,59],value:"⪂"},{key:[103,101,115,100,111,116,111,108,59],value:"⪄"},{key:[103,101,115,108,59],value:"⋛︀"},{key:[103,101,115,108,101,115,59],value:"⪔"},{key:[103,102,114,59],value:"𝔤"},{key:[103,103,59],value:"≫"},{key:[103,103,103,59],value:"⋙"},{key:[103,105,109,101,108,59],value:"ℷ"},{key:[103,106,99,121,59],value:"ѓ"},{key:[103,108,59],value:"≷"},{key:[103,108,69,59],value:"⪒"},{key:[103,108,97,59],value:"⪥"},{key:[103,108,106,59],value:"⪤"},{key:[103,110,69,59],value:"≩"},{key:[103,110,97,112,59],value:"⪊"},{key:[103,110,97,112,112,114,111,120,59],value:"⪊"},{key:[103,110,101,59],value:"⪈"},{key:[103,110,101,113,59],value:"⪈"},{key:[103,110,101,113,113,59],value:"≩"},{key:[103,110,115,105,109,59],value:"⋧"},{key:[103,111,112,102,59],value:"𝕘"},{key:[103,114,97,118,101,59],value:"`"},{key:[103,115,99,114,59],value:"ℊ"},{key:[103,115,105,109,59],value:"≳"},{key:[103,115,105,109,101,59],value:"⪎"},{key:[103,115,105,109,108,59],value:"⪐"},{key:[103,116,59],value:">"},{key:[103,116,99,99,59],value:"⪧"},{key:[103,116,99,105,114,59],value:"⩺"},{key:[103,116,100,111,116,59],value:"⋗"},{key:[103,116,108,80,97,114,59],value:"⦕"},{key:[103,116,113,117,101,115,116,59],value:"⩼"},{key:[103,116,114,97,112,112,114,111,120,59],value:"⪆"},{key:[103,116,114,97,114,114,59],value:"⥸"},{key:[103,116,114,100,111,116,59],value:"⋗"},{key:[103,116,114,101,113,108,101,115,115,59],value:"⋛"},{key:[103,116,114,101,113,113,108,101,115,115,59],value:"⪌"},{key:[103,116,114,108,101,115,115,59],value:"≷"},{key:[103,116,114,115,105,109,59],value:"≳"},{key:[103,118,101,114,116,110,101,113,113,59],value:"≩︀"},{key:[103,118,110,69,59],value:"≩︀"},{key:[104,65,114,114,59],value:"⇔"},{key:[104,97,105,114,115,112,59],value:" "},{key:[104,97,108,102,59],value:"½"},{key:[104,97,109,105,108,116,59],value:"ℋ"},{key:[104,97,114,100,99,121,59],value:"ъ"},{key:[104,97,114,114,59],value:"↔"},{key:[104,97,114,114,99,105,114,59],value:"⥈"},{key:[104,97,114,114,119,59],value:"↭"},{key:[104,98,97,114,59],value:"ℏ"},{key:[104,99,105,114,99,59],value:"ĥ"},{key:[104,101,97,114,116,115,59],value:"♥"},{key:[104,101,97,114,116,115,117,105,116,59],value:"♥"},{key:[104,101,108,108,105,112,59],value:"…"},{key:[104,101,114,99,111,110,59],value:"⊹"},{key:[104,102,114,59],value:"𝔥"},{key:[104,107,115,101,97,114,111,119,59],value:"⤥"},{key:[104,107,115,119,97,114,111,119,59],value:"⤦"},{key:[104,111,97,114,114,59],value:"⇿"},{key:[104,111,109,116,104,116,59],value:"∻"},{key:[104,111,111,107,108,101,102,116,97,114,114,111,119,59],value:"↩"},{key:[104,111,111,107,114,105,103,104,116,97,114,114,111,119,59],value:"↪"},{key:[104,111,112,102,59],value:"𝕙"},{key:[104,111,114,98,97,114,59],value:"―"},{key:[104,115,99,114,59],value:"𝒽"},{key:[104,115,108,97,115,104,59],value:"ℏ"},{key:[104,115,116,114,111,107,59],value:"ħ"},{key:[104,121,98,117,108,108,59],value:"⁃"},{key:[104,121,112,104,101,110,59],value:"‐"},{key:[105,97,99,117,116,101,59],value:"í"},{key:[105,99,59],value:"⁣"},{key:[105,99,105,114,99,59],value:"î"},{key:[105,99,121,59],value:"и"},{key:[105,101,99,121,59],value:"е"},{key:[105,101,120,99,108,59],value:"¡"},{key:[105,102,102,59],value:"⇔"},{key:[105,102,114,59],value:"𝔦"},{key:[105,103,114,97,118,101,59],value:"ì"},{key:[105,105,59],value:"ⅈ"},{key:[105,105,105,105,110,116,59],value:"⨌"},{key:[105,105,105,110,116,59],value:"∭"},{key:[105,105,110,102,105,110,59],value:"⧜"},{key:[105,105,111,116,97,59],value:"℩"},{key:[105,106,108,105,103,59],value:"ij"},{key:[105,109,97,99,114,59],value:"ī"},{key:[105,109,97,103,101,59],value:"ℑ"},{key:[105,109,97,103,108,105,110,101,59],value:"ℐ"},{key:[105,109,97,103,112,97,114,116,59],value:"ℑ"},{key:[105,109,97,116,104,59],value:"ı"},{key:[105,109,111,102,59],value:"⊷"},{key:[105,109,112,101,100,59],value:"Ƶ"},{key:[105,110,59],value:"∈"},{key:[105,110,99,97,114,101,59],value:"℅"},{key:[105,110,102,105,110,59],value:"∞"},{key:[105,110,102,105,110,116,105,101,59],value:"⧝"},{key:[105,110,111,100,111,116,59],value:"ı"},{key:[105,110,116,59],value:"∫"},{key:[105,110,116,99,97,108,59],value:"⊺"},{key:[105,110,116,101,103,101,114,115,59],value:"ℤ"},{key:[105,110,116,101,114,99,97,108,59],value:"⊺"},{key:[105,110,116,108,97,114,104,107,59],value:"⨗"},{key:[105,110,116,112,114,111,100,59],value:"⨼"},{key:[105,111,99,121,59],value:"ё"},{key:[105,111,103,111,110,59],value:"į"},{key:[105,111,112,102,59],value:"𝕚"},{key:[105,111,116,97,59],value:"ι"},{key:[105,112,114,111,100,59],value:"⨼"},{key:[105,113,117,101,115,116,59],value:"¿"},{key:[105,115,99,114,59],value:"𝒾"},{key:[105,115,105,110,59],value:"∈"},{key:[105,115,105,110,69,59],value:"⋹"},{key:[105,115,105,110,100,111,116,59],value:"⋵"},{key:[105,115,105,110,115,59],value:"⋴"},{key:[105,115,105,110,115,118,59],value:"⋳"},{key:[105,115,105,110,118,59],value:"∈"},{key:[105,116,59],value:"⁢"},{key:[105,116,105,108,100,101,59],value:"ĩ"},{key:[105,117,107,99,121,59],value:"і"},{key:[105,117,109,108,59],value:"ï"},{key:[106,99,105,114,99,59],value:"ĵ"},{key:[106,99,121,59],value:"й"},{key:[106,102,114,59],value:"𝔧"},{key:[106,109,97,116,104,59],value:"ȷ"},{key:[106,111,112,102,59],value:"𝕛"},{key:[106,115,99,114,59],value:"𝒿"},{key:[106,115,101,114,99,121,59],value:"ј"},{key:[106,117,107,99,121,59],value:"є"},{key:[107,97,112,112,97,59],value:"κ"},{key:[107,97,112,112,97,118,59],value:"ϰ"},{key:[107,99,101,100,105,108,59],value:"ķ"},{key:[107,99,121,59],value:"к"},{key:[107,102,114,59],value:"𝔨"},{key:[107,103,114,101,101,110,59],value:"ĸ"},{key:[107,104,99,121,59],value:"х"},{key:[107,106,99,121,59],value:"ќ"},{key:[107,111,112,102,59],value:"𝕜"},{key:[107,115,99,114,59],value:"𝓀"},{key:[108,65,97,114,114,59],value:"⇚"},{key:[108,65,114,114,59],value:"⇐"},{key:[108,65,116,97,105,108,59],value:"⤛"},{key:[108,66,97,114,114,59],value:"⤎"},{key:[108,69,59],value:"≦"},{key:[108,69,103,59],value:"⪋"},{key:[108,72,97,114,59],value:"⥢"},{key:[108,97,99,117,116,101,59],value:"ĺ"},{key:[108,97,101,109,112,116,121,118,59],value:"⦴"},{key:[108,97,103,114,97,110,59],value:"ℒ"},{key:[108,97,109,98,100,97,59],value:"λ"},{key:[108,97,110,103,59],value:"⟨"},{key:[108,97,110,103,100,59],value:"⦑"},{key:[108,97,110,103,108,101,59],value:"⟨"},{key:[108,97,112,59],value:"⪅"},{key:[108,97,113,117,111,59],value:"«"},{key:[108,97,114,114,59],value:"←"},{key:[108,97,114,114,98,59],value:"⇤"},{key:[108,97,114,114,98,102,115,59],value:"⤟"},{key:[108,97,114,114,102,115,59],value:"⤝"},{key:[108,97,114,114,104,107,59],value:"↩"},{key:[108,97,114,114,108,112,59],value:"↫"},{key:[108,97,114,114,112,108,59],value:"⤹"},{key:[108,97,114,114,115,105,109,59],value:"⥳"},{key:[108,97,114,114,116,108,59],value:"↢"},{key:[108,97,116,59],value:"⪫"},{key:[108,97,116,97,105,108,59],value:"⤙"},{key:[108,97,116,101,59],value:"⪭"},{key:[108,97,116,101,115,59],value:"⪭︀"},{key:[108,98,97,114,114,59],value:"⤌"},{key:[108,98,98,114,107,59],value:"❲"},{key:[108,98,114,97,99,101,59],value:"{ "},{key:[108,98,114,97,99,107,59],value:"["},{key:[108,98,114,107,101,59],value:"⦋"},{key:[108,98,114,107,115,108,100,59],value:"⦏"},{key:[108,98,114,107,115,108,117,59],value:"⦍"},{key:[108,99,97,114,111,110,59],value:"ľ"},{key:[108,99,101,100,105,108,59],value:"ļ"},{key:[108,99,101,105,108,59],value:"⌈"},{key:[108,99,117,98,59],value:"{ "},{key:[108,99,121,59],value:"л"},{key:[108,100,99,97,59],value:"⤶"},{key:[108,100,113,117,111,59],value:"“"},{key:[108,100,113,117,111,114,59],value:"„"},{key:[108,100,114,100,104,97,114,59],value:"⥧"},{key:[108,100,114,117,115,104,97,114,59],value:"⥋"},{key:[108,100,115,104,59],value:"↲"},{key:[108,101,59],value:"≤"},{key:[108,101,102,116,97,114,114,111,119,59],value:"←"},{key:[108,101,102,116,97,114,114,111,119,116,97,105,108,59],value:"↢"},{key:[108,101,102,116,104,97,114,112,111,111,110,100,111,119,110,59],value:"↽"},{key:[108,101,102,116,104,97,114,112,111,111,110,117,112,59],value:"↼"},{key:[108,101,102,116,108,101,102,116,97,114,114,111,119,115,59],value:"⇇"},{key:[108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"↔"},{key:[108,101,102,116,114,105,103,104,116,97,114,114,111,119,115,59],value:"⇆"},{key:[108,101,102,116,114,105,103,104,116,104,97,114,112,111,111,110,115,59],value:"⇋"},{key:[108,101,102,116,114,105,103,104,116,115,113,117,105,103,97,114,114,111,119,59],value:"↭"},{key:[108,101,102,116,116,104,114,101,101,116,105,109,101,115,59],value:"⋋"},{key:[108,101,103,59],value:"⋚"},{key:[108,101,113,59],value:"≤"},{key:[108,101,113,113,59],value:"≦"},{key:[108,101,113,115,108,97,110,116,59],value:"⩽"},{key:[108,101,115,59],value:"⩽"},{key:[108,101,115,99,99,59],value:"⪨"},{key:[108,101,115,100,111,116,59],value:"⩿"},{key:[108,101,115,100,111,116,111,59],value:"⪁"},{key:[108,101,115,100,111,116,111,114,59],value:"⪃"},{key:[108,101,115,103,59],value:"⋚︀"},{key:[108,101,115,103,101,115,59],value:"⪓"},{key:[108,101,115,115,97,112,112,114,111,120,59],value:"⪅"},{key:[108,101,115,115,100,111,116,59],value:"⋖"},{key:[108,101,115,115,101,113,103,116,114,59],value:"⋚"},{key:[108,101,115,115,101,113,113,103,116,114,59],value:"⪋"},{key:[108,101,115,115,103,116,114,59],value:"≶"},{key:[108,101,115,115,115,105,109,59],value:"≲"},{key:[108,102,105,115,104,116,59],value:"⥼"},{key:[108,102,108,111,111,114,59],value:"⌊"},{key:[108,102,114,59],value:"𝔩"},{key:[108,103,59],value:"≶"},{key:[108,103,69,59],value:"⪑"},{key:[108,104,97,114,100,59],value:"↽"},{key:[108,104,97,114,117,59],value:"↼"},{key:[108,104,97,114,117,108,59],value:"⥪"},{key:[108,104,98,108,107,59],value:"▄"},{key:[108,106,99,121,59],value:"љ"},{key:[108,108,59],value:"≪"},{key:[108,108,97,114,114,59],value:"⇇"},{key:[108,108,99,111,114,110,101,114,59],value:"⌞"},{key:[108,108,104,97,114,100,59],value:"⥫"},{key:[108,108,116,114,105,59],value:"◺"},{key:[108,109,105,100,111,116,59],value:"ŀ"},{key:[108,109,111,117,115,116,59],value:"⎰"},{key:[108,109,111,117,115,116,97,99,104,101,59],value:"⎰"},{key:[108,110,69,59],value:"≨"},{key:[108,110,97,112,59],value:"⪉"},{key:[108,110,97,112,112,114,111,120,59],value:"⪉"},{key:[108,110,101,59],value:"⪇"},{key:[108,110,101,113,59],value:"⪇"},{key:[108,110,101,113,113,59],value:"≨"},{key:[108,110,115,105,109,59],value:"⋦"},{key:[108,111,97,110,103,59],value:"⟬"},{key:[108,111,97,114,114,59],value:"⇽"},{key:[108,111,98,114,107,59],value:"⟦"},{key:[108,111,110,103,108,101,102,116,97,114,114,111,119,59],value:"⟵"},{key:[108,111,110,103,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⟷"},{key:[108,111,110,103,109,97,112,115,116,111,59],value:"⟼"},{key:[108,111,110,103,114,105,103,104,116,97,114,114,111,119,59],value:"⟶"},{key:[108,111,111,112,97,114,114,111,119,108,101,102,116,59],value:"↫"},{key:[108,111,111,112,97,114,114,111,119,114,105,103,104,116,59],value:"↬"},{key:[108,111,112,97,114,59],value:"⦅"},{key:[108,111,112,102,59],value:"𝕝"},{key:[108,111,112,108,117,115,59],value:"⨭"},{key:[108,111,116,105,109,101,115,59],value:"⨴"},{key:[108,111,119,97,115,116,59],value:"∗"},{key:[108,111,119,98,97,114,59],value:"_"},{key:[108,111,122,59],value:"◊"},{key:[108,111,122,101,110,103,101,59],value:"◊"},{key:[108,111,122,102,59],value:"⧫"},{key:[108,112,97,114,59],value:"("},{key:[108,112,97,114,108,116,59],value:"⦓"},{key:[108,114,97,114,114,59],value:"⇆"},{key:[108,114,99,111,114,110,101,114,59],value:"⌟"},{key:[108,114,104,97,114,59],value:"⇋"},{key:[108,114,104,97,114,100,59],value:"⥭"},{key:[108,114,109,59],value:"‎"},{key:[108,114,116,114,105,59],value:"⊿"},{key:[108,115,97,113,117,111,59],value:"‹"},{key:[108,115,99,114,59],value:"𝓁"},{key:[108,115,104,59],value:"↰"},{key:[108,115,105,109,59],value:"≲"},{key:[108,115,105,109,101,59],value:"⪍"},{key:[108,115,105,109,103,59],value:"⪏"},{key:[108,115,113,98,59],value:"["},{key:[108,115,113,117,111,59],value:"‘"},{key:[108,115,113,117,111,114,59],value:"‚"},{key:[108,115,116,114,111,107,59],value:"ł"},{key:[108,116,59],value:"<"},{key:[108,116,99,99,59],value:"⪦"},{key:[108,116,99,105,114,59],value:"⩹"},{key:[108,116,100,111,116,59],value:"⋖"},{key:[108,116,104,114,101,101,59],value:"⋋"},{key:[108,116,105,109,101,115,59],value:"⋉"},{key:[108,116,108,97,114,114,59],value:"⥶"},{key:[108,116,113,117,101,115,116,59],value:"⩻"},{key:[108,116,114,80,97,114,59],value:"⦖"},{key:[108,116,114,105,59],value:"◃"},{key:[108,116,114,105,101,59],value:"⊴"},{key:[108,116,114,105,102,59],value:"◂"},{key:[108,117,114,100,115,104,97,114,59],value:"⥊"},{key:[108,117,114,117,104,97,114,59],value:"⥦"},{key:[108,118,101,114,116,110,101,113,113,59],value:"≨︀"},{key:[108,118,110,69,59],value:"≨︀"},{key:[109,68,68,111,116,59],value:"∺"},{key:[109,97,99,114,59],value:"¯"},{key:[109,97,108,101,59],value:"♂"},{key:[109,97,108,116,59],value:"✠"},{key:[109,97,108,116,101,115,101,59],value:"✠"},{key:[109,97,112,59],value:"↦"},{key:[109,97,112,115,116,111,59],value:"↦"},{key:[109,97,112,115,116,111,100,111,119,110,59],value:"↧"},{key:[109,97,112,115,116,111,108,101,102,116,59],value:"↤"},{key:[109,97,112,115,116,111,117,112,59],value:"↥"},{key:[109,97,114,107,101,114,59],value:"▮"},{key:[109,99,111,109,109,97,59],value:"⨩"},{key:[109,99,121,59],value:"м"},{key:[109,100,97,115,104,59],value:"—"},{key:[109,101,97,115,117,114,101,100,97,110,103,108,101,59],value:"∡"},{key:[109,102,114,59],value:"𝔪"},{key:[109,104,111,59],value:"℧"},{key:[109,105,99,114,111,59],value:"µ"},{key:[109,105,100,59],value:"∣"},{key:[109,105,100,97,115,116,59],value:"*"},{key:[109,105,100,99,105,114,59],value:"⫰"},{key:[109,105,100,100,111,116,59],value:"·"},{key:[109,105,110,117,115,59],value:"−"},{key:[109,105,110,117,115,98,59],value:"⊟"},{key:[109,105,110,117,115,100,59],value:"∸"},{key:[109,105,110,117,115,100,117,59],value:"⨪"},{key:[109,108,99,112,59],value:"⫛"},{key:[109,108,100,114,59],value:"…"},{key:[109,110,112,108,117,115,59],value:"∓"},{key:[109,111,100,101,108,115,59],value:"⊧"},{key:[109,111,112,102,59],value:"𝕞"},{key:[109,112,59],value:"∓"},{key:[109,115,99,114,59],value:"𝓂"},{key:[109,115,116,112,111,115,59],value:"∾"},{key:[109,117,59],value:"μ"},{key:[109,117,108,116,105,109,97,112,59],value:"⊸"},{key:[109,117,109,97,112,59],value:"⊸"},{key:[110,71,103,59],value:"⋙̸"},{key:[110,71,116,59],value:"≫⃒"},{key:[110,71,116,118,59],value:"≫̸"},{key:[110,76,101,102,116,97,114,114,111,119,59],value:"⇍"},{key:[110,76,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"⇎"},{key:[110,76,108,59],value:"⋘̸"},{key:[110,76,116,59],value:"≪⃒"},{key:[110,76,116,118,59],value:"≪̸"},{key:[110,82,105,103,104,116,97,114,114,111,119,59],value:"⇏"},{key:[110,86,68,97,115,104,59],value:"⊯"},{key:[110,86,100,97,115,104,59],value:"⊮"},{key:[110,97,98,108,97,59],value:"∇"},{key:[110,97,99,117,116,101,59],value:"ń"},{key:[110,97,110,103,59],value:"∠⃒"},{key:[110,97,112,59],value:"≉"},{key:[110,97,112,69,59],value:"⩰̸"},{key:[110,97,112,105,100,59],value:"≋̸"},{key:[110,97,112,111,115,59],value:"ʼn"},{key:[110,97,112,112,114,111,120,59],value:"≉"},{key:[110,97,116,117,114,59],value:"♮"},{key:[110,97,116,117,114,97,108,59],value:"♮"},{key:[110,97,116,117,114,97,108,115,59],value:"ℕ"},{key:[110,98,115,112,59],value:" "},{key:[110,98,117,109,112,59],value:"≎̸"},{key:[110,98,117,109,112,101,59],value:"≏̸"},{key:[110,99,97,112,59],value:"⩃"},{key:[110,99,97,114,111,110,59],value:"ň"},{key:[110,99,101,100,105,108,59],value:"ņ"},{key:[110,99,111,110,103,59],value:"≇"},{key:[110,99,111,110,103,100,111,116,59],value:"⩭̸"},{key:[110,99,117,112,59],value:"⩂"},{key:[110,99,121,59],value:"н"},{key:[110,100,97,115,104,59],value:"–"},{key:[110,101,59],value:"≠"},{key:[110,101,65,114,114,59],value:"⇗"},{key:[110,101,97,114,104,107,59],value:"⤤"},{key:[110,101,97,114,114,59],value:"↗"},{key:[110,101,97,114,114,111,119,59],value:"↗"},{key:[110,101,100,111,116,59],value:"≐̸"},{key:[110,101,113,117,105,118,59],value:"≢"},{key:[110,101,115,101,97,114,59],value:"⤨"},{key:[110,101,115,105,109,59],value:"≂̸"},{key:[110,101,120,105,115,116,59],value:"∄"},{key:[110,101,120,105,115,116,115,59],value:"∄"},{key:[110,102,114,59],value:"𝔫"},{key:[110,103,69,59],value:"≧̸"},{key:[110,103,101,59],value:"≱"},{key:[110,103,101,113,59],value:"≱"},{key:[110,103,101,113,113,59],value:"≧̸"},{key:[110,103,101,113,115,108,97,110,116,59],value:"⩾̸"},{key:[110,103,101,115,59],value:"⩾̸"},{key:[110,103,115,105,109,59],value:"≵"},{key:[110,103,116,59],value:"≯"},{key:[110,103,116,114,59],value:"≯"},{key:[110,104,65,114,114,59],value:"⇎"},{key:[110,104,97,114,114,59],value:"↮"},{key:[110,104,112,97,114,59],value:"⫲"},{key:[110,105,59],value:"∋"},{key:[110,105,115,59],value:"⋼"},{key:[110,105,115,100,59],value:"⋺"},{key:[110,105,118,59],value:"∋"},{key:[110,106,99,121,59],value:"њ"},{key:[110,108,65,114,114,59],value:"⇍"},{key:[110,108,69,59],value:"≦̸"},{key:[110,108,97,114,114,59],value:"↚"},{key:[110,108,100,114,59],value:"‥"},{key:[110,108,101,59],value:"≰"},{key:[110,108,101,102,116,97,114,114,111,119,59],value:"↚"},{key:[110,108,101,102,116,114,105,103,104,116,97,114,114,111,119,59],value:"↮"},{key:[110,108,101,113,59],value:"≰"},{key:[110,108,101,113,113,59],value:"≦̸"},{key:[110,108,101,113,115,108,97,110,116,59],value:"⩽̸"},{key:[110,108,101,115,59],value:"⩽̸"},{key:[110,108,101,115,115,59],value:"≮"},{key:[110,108,115,105,109,59],value:"≴"},{key:[110,108,116,59],value:"≮"},{key:[110,108,116,114,105,59],value:"⋪"},{key:[110,108,116,114,105,101,59],value:"⋬"},{key:[110,109,105,100,59],value:"∤"},{key:[110,111,112,102,59],value:"𝕟"},{key:[110,111,116,59],value:"¬"},{key:[110,111,116,105,110,59],value:"∉"},{key:[110,111,116,105,110,69,59],value:"⋹̸"},{key:[110,111,116,105,110,100,111,116,59],value:"⋵̸"},{key:[110,111,116,105,110,118,97,59],value:"∉"},{key:[110,111,116,105,110,118,98,59],value:"⋷"},{key:[110,111,116,105,110,118,99,59],value:"⋶"},{key:[110,111,116,110,105,59],value:"∌"},{key:[110,111,116,110,105,118,97,59],value:"∌"},{key:[110,111,116,110,105,118,98,59],value:"⋾"},{key:[110,111,116,110,105,118,99,59],value:"⋽"},{key:[110,112,97,114,59],value:"∦"},{key:[110,112,97,114,97,108,108,101,108,59],value:"∦"},{key:[110,112,97,114,115,108,59],value:"⫽⃥"},{key:[110,112,97,114,116,59],value:"∂̸"},{key:[110,112,111,108,105,110,116,59],value:"⨔"},{key:[110,112,114,59],value:"⊀"},{key:[110,112,114,99,117,101,59],value:"⋠"},{key:[110,112,114,101,59],value:"⪯̸"},{key:[110,112,114,101,99,59],value:"⊀"},{key:[110,112,114,101,99,101,113,59],value:"⪯̸"},{key:[110,114,65,114,114,59],value:"⇏"},{key:[110,114,97,114,114,59],value:"↛"},{key:[110,114,97,114,114,99,59],value:"⤳̸"},{key:[110,114,97,114,114,119,59],value:"↝̸"},{key:[110,114,105,103,104,116,97,114,114,111,119,59],value:"↛"},{key:[110,114,116,114,105,59],value:"⋫"},{key:[110,114,116,114,105,101,59],value:"⋭"},{key:[110,115,99,59],value:"⊁"},{key:[110,115,99,99,117,101,59],value:"⋡"},{key:[110,115,99,101,59],value:"⪰̸"},{key:[110,115,99,114,59],value:"𝓃"},{key:[110,115,104,111,114,116,109,105,100,59],value:"∤"},{key:[110,115,104,111,114,116,112,97,114,97,108,108,101,108,59],value:"∦"},{key:[110,115,105,109,59],value:"≁"},{key:[110,115,105,109,101,59],value:"≄"},{key:[110,115,105,109,101,113,59],value:"≄"},{key:[110,115,109,105,100,59],value:"∤"},{key:[110,115,112,97,114,59],value:"∦"},{key:[110,115,113,115,117,98,101,59],value:"⋢"},{key:[110,115,113,115,117,112,101,59],value:"⋣"},{key:[110,115,117,98,59],value:"⊄"},{key:[110,115,117,98,69,59],value:"⫅̸"},{key:[110,115,117,98,101,59],value:"⊈"},{key:[110,115,117,98,115,101,116,59],value:"⊂⃒"},{key:[110,115,117,98,115,101,116,101,113,59],value:"⊈"},{key:[110,115,117,98,115,101,116,101,113,113,59],value:"⫅̸"},{key:[110,115,117,99,99,59],value:"⊁"},{key:[110,115,117,99,99,101,113,59],value:"⪰̸"},{key:[110,115,117,112,59],value:"⊅"},{key:[110,115,117,112,69,59],value:"⫆̸"},{key:[110,115,117,112,101,59],value:"⊉"},{key:[110,115,117,112,115,101,116,59],value:"⊃⃒"},{key:[110,115,117,112,115,101,116,101,113,59],value:"⊉"},{key:[110,115,117,112,115,101,116,101,113,113,59],value:"⫆̸"},{key:[110,116,103,108,59],value:"≹"},{key:[110,116,105,108,100,101,59],value:"ñ"},{key:[110,116,108,103,59],value:"≸"},{key:[110,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"⋪"},{key:[110,116,114,105,97,110,103,108,101,108,101,102,116,101,113,59],value:"⋬"},{key:[110,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"⋫"},{key:[110,116,114,105,97,110,103,108,101,114,105,103,104,116,101,113,59],value:"⋭"},{key:[110,117,59],value:"ν"},{key:[110,117,109,59],value:"#"},{key:[110,117,109,101,114,111,59],value:"№"},{key:[110,117,109,115,112,59],value:" "},{key:[110,118,68,97,115,104,59],value:"⊭"},{key:[110,118,72,97,114,114,59],value:"⤄"},{key:[110,118,97,112,59],value:"≍⃒"},{key:[110,118,100,97,115,104,59],value:"⊬"},{key:[110,118,103,101,59],value:"≥⃒"},{key:[110,118,103,116,59],value:">⃒"},{key:[110,118,105,110,102,105,110,59],value:"⧞"},{key:[110,118,108,65,114,114,59],value:"⤂"},{key:[110,118,108,101,59],value:"≤⃒"},{key:[110,118,108,116,59],value:"<⃒"},{key:[110,118,108,116,114,105,101,59],value:"⊴⃒"},{key:[110,118,114,65,114,114,59],value:"⤃"},{key:[110,118,114,116,114,105,101,59],value:"⊵⃒"},{key:[110,118,115,105,109,59],value:"∼⃒"},{key:[110,119,65,114,114,59],value:"⇖"},{key:[110,119,97,114,104,107,59],value:"⤣"},{key:[110,119,97,114,114,59],value:"↖"},{key:[110,119,97,114,114,111,119,59],value:"↖"},{key:[110,119,110,101,97,114,59],value:"⤧"},{key:[111,83,59],value:"Ⓢ"},{key:[111,97,99,117,116,101,59],value:"ó"},{key:[111,97,115,116,59],value:"⊛"},{key:[111,99,105,114,59],value:"⊚"},{key:[111,99,105,114,99,59],value:"ô"},{key:[111,99,121,59],value:"о"},{key:[111,100,97,115,104,59],value:"⊝"},{key:[111,100,98,108,97,99,59],value:"ő"},{key:[111,100,105,118,59],value:"⨸"},{key:[111,100,111,116,59],value:"⊙"},{key:[111,100,115,111,108,100,59],value:"⦼"},{key:[111,101,108,105,103,59],value:"œ"},{key:[111,102,99,105,114,59],value:"⦿"},{key:[111,102,114,59],value:"𝔬"},{key:[111,103,111,110,59],value:"˛"},{key:[111,103,114,97,118,101,59],value:"ò"},{key:[111,103,116,59],value:"⧁"},{key:[111,104,98,97,114,59],value:"⦵"},{key:[111,104,109,59],value:"Ω"},{key:[111,105,110,116,59],value:"∮"},{key:[111,108,97,114,114,59],value:"↺"},{key:[111,108,99,105,114,59],value:"⦾"},{key:[111,108,99,114,111,115,115,59],value:"⦻"},{key:[111,108,105,110,101,59],value:"‾"},{key:[111,108,116,59],value:"⧀"},{key:[111,109,97,99,114,59],value:"ō"},{key:[111,109,101,103,97,59],value:"ω"},{key:[111,109,105,99,114,111,110,59],value:"ο"},{key:[111,109,105,100,59],value:"⦶"},{key:[111,109,105,110,117,115,59],value:"⊖"},{key:[111,111,112,102,59],value:"𝕠"},{key:[111,112,97,114,59],value:"⦷"},{key:[111,112,101,114,112,59],value:"⦹"},{key:[111,112,108,117,115,59],value:"⊕"},{key:[111,114,59],value:"∨"},{key:[111,114,97,114,114,59],value:"↻"},{key:[111,114,100,59],value:"⩝"},{key:[111,114,100,101,114,59],value:"ℴ"},{key:[111,114,100,101,114,111,102,59],value:"ℴ"},{key:[111,114,100,102,59],value:"ª"},{key:[111,114,100,109,59],value:"º"},{key:[111,114,105,103,111,102,59],value:"⊶"},{key:[111,114,111,114,59],value:"⩖"},{key:[111,114,115,108,111,112,101,59],value:"⩗"},{key:[111,114,118,59],value:"⩛"},{key:[111,115,99,114,59],value:"ℴ"},{key:[111,115,108,97,115,104,59],value:"ø"},{key:[111,115,111,108,59],value:"⊘"},{key:[111,116,105,108,100,101,59],value:"õ"},{key:[111,116,105,109,101,115,59],value:"⊗"},{key:[111,116,105,109,101,115,97,115,59],value:"⨶"},{key:[111,117,109,108,59],value:"ö"},{key:[111,118,98,97,114,59],value:"⌽"},{key:[112,97,114,59],value:"∥"},{key:[112,97,114,97,59],value:"¶"},{key:[112,97,114,97,108,108,101,108,59],value:"∥"},{key:[112,97,114,115,105,109,59],value:"⫳"},{key:[112,97,114,115,108,59],value:"⫽"},{key:[112,97,114,116,59],value:"∂"},{key:[112,99,121,59],value:"п"},{key:[112,101,114,99,110,116,59],value:"%"},{key:[112,101,114,105,111,100,59],value:"."},{key:[112,101,114,109,105,108,59],value:"‰"},{key:[112,101,114,112,59],value:"⊥"},{key:[112,101,114,116,101,110,107,59],value:"‱"},{key:[112,102,114,59],value:"𝔭"},{key:[112,104,105,59],value:"φ"},{key:[112,104,105,118,59],value:"ϕ"},{key:[112,104,109,109,97,116,59],value:"ℳ"},{key:[112,104,111,110,101,59],value:"☎"},{key:[112,105,59],value:"π"},{key:[112,105,116,99,104,102,111,114,107,59],value:"⋔"},{key:[112,105,118,59],value:"ϖ"},{key:[112,108,97,110,99,107,59],value:"ℏ"},{key:[112,108,97,110,99,107,104,59],value:"ℎ"},{key:[112,108,97,110,107,118,59],value:"ℏ"},{key:[112,108,117,115,59],value:"+"},{key:[112,108,117,115,97,99,105,114,59],value:"⨣"},{key:[112,108,117,115,98,59],value:"⊞"},{key:[112,108,117,115,99,105,114,59],value:"⨢"},{key:[112,108,117,115,100,111,59],value:"∔"},{key:[112,108,117,115,100,117,59],value:"⨥"},{key:[112,108,117,115,101,59],value:"⩲"},{key:[112,108,117,115,109,110,59],value:"±"},{key:[112,108,117,115,115,105,109,59],value:"⨦"},{key:[112,108,117,115,116,119,111,59],value:"⨧"},{key:[112,109,59],value:"±"},{key:[112,111,105,110,116,105,110,116,59],value:"⨕"},{key:[112,111,112,102,59],value:"𝕡"},{key:[112,111,117,110,100,59],value:"£"},{key:[112,114,59],value:"≺"},{key:[112,114,69,59],value:"⪳"},{key:[112,114,97,112,59],value:"⪷"},{key:[112,114,99,117,101,59],value:"≼"},{key:[112,114,101,59],value:"⪯"},{key:[112,114,101,99,59],value:"≺"},{key:[112,114,101,99,97,112,112,114,111,120,59],value:"⪷"},{key:[112,114,101,99,99,117,114,108,121,101,113,59],value:"≼"},{key:[112,114,101,99,101,113,59],value:"⪯"},{key:[112,114,101,99,110,97,112,112,114,111,120,59],value:"⪹"},{key:[112,114,101,99,110,101,113,113,59],value:"⪵"},{key:[112,114,101,99,110,115,105,109,59],value:"⋨"},{key:[112,114,101,99,115,105,109,59],value:"≾"},{key:[112,114,105,109,101,59],value:"′"},{key:[112,114,105,109,101,115,59],value:"ℙ"},{key:[112,114,110,69,59],value:"⪵"},{key:[112,114,110,97,112,59],value:"⪹"},{key:[112,114,110,115,105,109,59],value:"⋨"},{key:[112,114,111,100,59],value:"∏"},{key:[112,114,111,102,97,108,97,114,59],value:"⌮"},{key:[112,114,111,102,108,105,110,101,59],value:"⌒"},{key:[112,114,111,102,115,117,114,102,59],value:"⌓"},{key:[112,114,111,112,59],value:"∝"},{key:[112,114,111,112,116,111,59],value:"∝"},{key:[112,114,115,105,109,59],value:"≾"},{key:[112,114,117,114,101,108,59],value:"⊰"},{key:[112,115,99,114,59],value:"𝓅"},{key:[112,115,105,59],value:"ψ"},{key:[112,117,110,99,115,112,59],value:" "},{key:[113,102,114,59],value:"𝔮"},{key:[113,105,110,116,59],value:"⨌"},{key:[113,111,112,102,59],value:"𝕢"},{key:[113,112,114,105,109,101,59],value:"⁗"},{key:[113,115,99,114,59],value:"𝓆"},{key:[113,117,97,116,101,114,110,105,111,110,115,59],value:"ℍ"},{key:[113,117,97,116,105,110,116,59],value:"⨖"},{key:[113,117,101,115,116,59],value:"?"},{key:[113,117,101,115,116,101,113,59],value:"≟"},{key:[113,117,111,116,59],value:'"'},{key:[114,65,97,114,114,59],value:"⇛"},{key:[114,65,114,114,59],value:"⇒"},{key:[114,65,116,97,105,108,59],value:"⤜"},{key:[114,66,97,114,114,59],value:"⤏"},{key:[114,72,97,114,59],value:"⥤"},{key:[114,97,99,101,59],value:"∽̱"},{key:[114,97,99,117,116,101,59],value:"ŕ"},{key:[114,97,100,105,99,59],value:"√"},{key:[114,97,101,109,112,116,121,118,59],value:"⦳"},{key:[114,97,110,103,59],value:"⟩"},{key:[114,97,110,103,100,59],value:"⦒"},{key:[114,97,110,103,101,59],value:"⦥"},{key:[114,97,110,103,108,101,59],value:"⟩"},{key:[114,97,113,117,111,59],value:"»"},{key:[114,97,114,114,59],value:"→"},{key:[114,97,114,114,97,112,59],value:"⥵"},{key:[114,97,114,114,98,59],value:"⇥"},{key:[114,97,114,114,98,102,115,59],value:"⤠"},{key:[114,97,114,114,99,59],value:"⤳"},{key:[114,97,114,114,102,115,59],value:"⤞"},{key:[114,97,114,114,104,107,59],value:"↪"},{key:[114,97,114,114,108,112,59],value:"↬"},{key:[114,97,114,114,112,108,59],value:"⥅"},{key:[114,97,114,114,115,105,109,59],value:"⥴"},{key:[114,97,114,114,116,108,59],value:"↣"},{key:[114,97,114,114,119,59],value:"↝"},{key:[114,97,116,97,105,108,59],value:"⤚"},{key:[114,97,116,105,111,59],value:"∶"},{key:[114,97,116,105,111,110,97,108,115,59],value:"ℚ"},{key:[114,98,97,114,114,59],value:"⤍"},{key:[114,98,98,114,107,59],value:"❳"},{key:[114,98,114,97,99,101,59],value:" }"},{key:[114,98,114,97,99,107,59],value:"]"},{key:[114,98,114,107,101,59],value:"⦌"},{key:[114,98,114,107,115,108,100,59],value:"⦎"},{key:[114,98,114,107,115,108,117,59],value:"⦐"},{key:[114,99,97,114,111,110,59],value:"ř"},{key:[114,99,101,100,105,108,59],value:"ŗ"},{key:[114,99,101,105,108,59],value:"⌉"},{key:[114,99,117,98,59],value:" }"},{key:[114,99,121,59],value:"р"},{key:[114,100,99,97,59],value:"⤷"},{key:[114,100,108,100,104,97,114,59],value:"⥩"},{key:[114,100,113,117,111,59],value:"”"},{key:[114,100,113,117,111,114,59],value:"”"},{key:[114,100,115,104,59],value:"↳"},{key:[114,101,97,108,59],value:"ℜ"},{key:[114,101,97,108,105,110,101,59],value:"ℛ"},{key:[114,101,97,108,112,97,114,116,59],value:"ℜ"},{key:[114,101,97,108,115,59],value:"ℝ"},{key:[114,101,99,116,59],value:"▭"},{key:[114,101,103,59],value:"®"},{key:[114,102,105,115,104,116,59],value:"⥽"},{key:[114,102,108,111,111,114,59],value:"⌋"},{key:[114,102,114,59],value:"𝔯"},{key:[114,104,97,114,100,59],value:"⇁"},{key:[114,104,97,114,117,59],value:"⇀"},{key:[114,104,97,114,117,108,59],value:"⥬"},{key:[114,104,111,59],value:"ρ"},{key:[114,104,111,118,59],value:"ϱ"},{key:[114,105,103,104,116,97,114,114,111,119,59],value:"→"},{key:[114,105,103,104,116,97,114,114,111,119,116,97,105,108,59],value:"↣"},{key:[114,105,103,104,116,104,97,114,112,111,111,110,100,111,119,110,59],value:"⇁"},{key:[114,105,103,104,116,104,97,114,112,111,111,110,117,112,59],value:"⇀"},{key:[114,105,103,104,116,108,101,102,116,97,114,114,111,119,115,59],value:"⇄"},{key:[114,105,103,104,116,108,101,102,116,104,97,114,112,111,111,110,115,59],value:"⇌"},{key:[114,105,103,104,116,114,105,103,104,116,97,114,114,111,119,115,59],value:"⇉"},{key:[114,105,103,104,116,115,113,117,105,103,97,114,114,111,119,59],value:"↝"},{key:[114,105,103,104,116,116,104,114,101,101,116,105,109,101,115,59],value:"⋌"},{key:[114,105,110,103,59],value:"˚"},{key:[114,105,115,105,110,103,100,111,116,115,101,113,59],value:"≓"},{key:[114,108,97,114,114,59],value:"⇄"},{key:[114,108,104,97,114,59],value:"⇌"},{key:[114,108,109,59],value:"‏"},{key:[114,109,111,117,115,116,59],value:"⎱"},{key:[114,109,111,117,115,116,97,99,104,101,59],value:"⎱"},{key:[114,110,109,105,100,59],value:"⫮"},{key:[114,111,97,110,103,59],value:"⟭"},{key:[114,111,97,114,114,59],value:"⇾"},{key:[114,111,98,114,107,59],value:"⟧"},{key:[114,111,112,97,114,59],value:"⦆"},{key:[114,111,112,102,59],value:"𝕣"},{key:[114,111,112,108,117,115,59],value:"⨮"},{key:[114,111,116,105,109,101,115,59],value:"⨵"},{key:[114,112,97,114,59],value:")"},{key:[114,112,97,114,103,116,59],value:"⦔"},{key:[114,112,112,111,108,105,110,116,59],value:"⨒"},{key:[114,114,97,114,114,59],value:"⇉"},{key:[114,115,97,113,117,111,59],value:"›"},{key:[114,115,99,114,59],value:"𝓇"},{key:[114,115,104,59],value:"↱"},{key:[114,115,113,98,59],value:"]"},{key:[114,115,113,117,111,59],value:"’"},{key:[114,115,113,117,111,114,59],value:"’"},{key:[114,116,104,114,101,101,59],value:"⋌"},{key:[114,116,105,109,101,115,59],value:"⋊"},{key:[114,116,114,105,59],value:"▹"},{key:[114,116,114,105,101,59],value:"⊵"},{key:[114,116,114,105,102,59],value:"▸"},{key:[114,116,114,105,108,116,114,105,59],value:"⧎"},{key:[114,117,108,117,104,97,114,59],value:"⥨"},{key:[114,120,59],value:"℞"},{key:[115,97,99,117,116,101,59],value:"ś"},{key:[115,98,113,117,111,59],value:"‚"},{key:[115,99,59],value:"≻"},{key:[115,99,69,59],value:"⪴"},{key:[115,99,97,112,59],value:"⪸"},{key:[115,99,97,114,111,110,59],value:"š"},{key:[115,99,99,117,101,59],value:"≽"},{key:[115,99,101,59],value:"⪰"},{key:[115,99,101,100,105,108,59],value:"ş"},{key:[115,99,105,114,99,59],value:"ŝ"},{key:[115,99,110,69,59],value:"⪶"},{key:[115,99,110,97,112,59],value:"⪺"},{key:[115,99,110,115,105,109,59],value:"⋩"},{key:[115,99,112,111,108,105,110,116,59],value:"⨓"},{key:[115,99,115,105,109,59],value:"≿"},{key:[115,99,121,59],value:"с"},{key:[115,100,111,116,59],value:"⋅"},{key:[115,100,111,116,98,59],value:"⊡"},{key:[115,100,111,116,101,59],value:"⩦"},{key:[115,101,65,114,114,59],value:"⇘"},{key:[115,101,97,114,104,107,59],value:"⤥"},{key:[115,101,97,114,114,59],value:"↘"},{key:[115,101,97,114,114,111,119,59],value:"↘"},{key:[115,101,99,116,59],value:"§"},{key:[115,101,109,105,59],value:";"},{key:[115,101,115,119,97,114,59],value:"⤩"},{key:[115,101,116,109,105,110,117,115,59],value:"∖"},{key:[115,101,116,109,110,59],value:"∖"},{key:[115,101,120,116,59],value:"✶"},{key:[115,102,114,59],value:"𝔰"},{key:[115,102,114,111,119,110,59],value:"⌢"},{key:[115,104,97,114,112,59],value:"♯"},{key:[115,104,99,104,99,121,59],value:"щ"},{key:[115,104,99,121,59],value:"ш"},{key:[115,104,111,114,116,109,105,100,59],value:"∣"},{key:[115,104,111,114,116,112,97,114,97,108,108,101,108,59],value:"∥"},{key:[115,104,121,59],value:"­"},{key:[115,105,103,109,97,59],value:"σ"},{key:[115,105,103,109,97,102,59],value:"ς"},{key:[115,105,103,109,97,118,59],value:"ς"},{key:[115,105,109,59],value:"∼"},{key:[115,105,109,100,111,116,59],value:"⩪"},{key:[115,105,109,101,59],value:"≃"},{key:[115,105,109,101,113,59],value:"≃"},{key:[115,105,109,103,59],value:"⪞"},{key:[115,105,109,103,69,59],value:"⪠"},{key:[115,105,109,108,59],value:"⪝"},{key:[115,105,109,108,69,59],value:"⪟"},{key:[115,105,109,110,101,59],value:"≆"},{key:[115,105,109,112,108,117,115,59],value:"⨤"},{key:[115,105,109,114,97,114,114,59],value:"⥲"},{key:[115,108,97,114,114,59],value:"←"},{key:[115,109,97,108,108,115,101,116,109,105,110,117,115,59],value:"∖"},{key:[115,109,97,115,104,112,59],value:"⨳"},{key:[115,109,101,112,97,114,115,108,59],value:"⧤"},{key:[115,109,105,100,59],value:"∣"},{key:[115,109,105,108,101,59],value:"⌣"},{key:[115,109,116,59],value:"⪪"},{key:[115,109,116,101,59],value:"⪬"},{key:[115,109,116,101,115,59],value:"⪬︀"},{key:[115,111,102,116,99,121,59],value:"ь"},{key:[115,111,108,59],value:"/"},{key:[115,111,108,98,59],value:"⧄"},{key:[115,111,108,98,97,114,59],value:"⌿"},{key:[115,111,112,102,59],value:"𝕤"},{key:[115,112,97,100,101,115,59],value:"♠"},{key:[115,112,97,100,101,115,117,105,116,59],value:"♠"},{key:[115,112,97,114,59],value:"∥"},{key:[115,113,99,97,112,59],value:"⊓"},{key:[115,113,99,97,112,115,59],value:"⊓︀"},{key:[115,113,99,117,112,59],value:"⊔"},{key:[115,113,99,117,112,115,59],value:"⊔︀"},{key:[115,113,115,117,98,59],value:"⊏"},{key:[115,113,115,117,98,101,59],value:"⊑"},{key:[115,113,115,117,98,115,101,116,59],value:"⊏"},{key:[115,113,115,117,98,115,101,116,101,113,59],value:"⊑"},{key:[115,113,115,117,112,59],value:"⊐"},{key:[115,113,115,117,112,101,59],value:"⊒"},{key:[115,113,115,117,112,115,101,116,59],value:"⊐"},{key:[115,113,115,117,112,115,101,116,101,113,59],value:"⊒"},{key:[115,113,117,59],value:"□"},{key:[115,113,117,97,114,101,59],value:"□"},{key:[115,113,117,97,114,102,59],value:"▪"},{key:[115,113,117,102,59],value:"▪"},{key:[115,114,97,114,114,59],value:"→"},{key:[115,115,99,114,59],value:"𝓈"},{key:[115,115,101,116,109,110,59],value:"∖"},{key:[115,115,109,105,108,101,59],value:"⌣"},{key:[115,115,116,97,114,102,59],value:"⋆"},{key:[115,116,97,114,59],value:"☆"},{key:[115,116,97,114,102,59],value:"★"},{key:[115,116,114,97,105,103,104,116,101,112,115,105,108,111,110,59],value:"ϵ"},{key:[115,116,114,97,105,103,104,116,112,104,105,59],value:"ϕ"},{key:[115,116,114,110,115,59],value:"¯"},{key:[115,117,98,59],value:"⊂"},{key:[115,117,98,69,59],value:"⫅"},{key:[115,117,98,100,111,116,59],value:"⪽"},{key:[115,117,98,101,59],value:"⊆"},{key:[115,117,98,101,100,111,116,59],value:"⫃"},{key:[115,117,98,109,117,108,116,59],value:"⫁"},{key:[115,117,98,110,69,59],value:"⫋"},{key:[115,117,98,110,101,59],value:"⊊"},{key:[115,117,98,112,108,117,115,59],value:"⪿"},{key:[115,117,98,114,97,114,114,59],value:"⥹"},{key:[115,117,98,115,101,116,59],value:"⊂"},{key:[115,117,98,115,101,116,101,113,59],value:"⊆"},{key:[115,117,98,115,101,116,101,113,113,59],value:"⫅"},{key:[115,117,98,115,101,116,110,101,113,59],value:"⊊"},{key:[115,117,98,115,101,116,110,101,113,113,59],value:"⫋"},{key:[115,117,98,115,105,109,59],value:"⫇"},{key:[115,117,98,115,117,98,59],value:"⫕"},{key:[115,117,98,115,117,112,59],value:"⫓"},{key:[115,117,99,99,59],value:"≻"},{key:[115,117,99,99,97,112,112,114,111,120,59],value:"⪸"},{key:[115,117,99,99,99,117,114,108,121,101,113,59],value:"≽"},{key:[115,117,99,99,101,113,59],value:"⪰"},{key:[115,117,99,99,110,97,112,112,114,111,120,59],value:"⪺"},{key:[115,117,99,99,110,101,113,113,59],value:"⪶"},{key:[115,117,99,99,110,115,105,109,59],value:"⋩"},{key:[115,117,99,99,115,105,109,59],value:"≿"},{key:[115,117,109,59],value:"∑"},{key:[115,117,110,103,59],value:"♪"},{key:[115,117,112,49,59],value:"¹"},{key:[115,117,112,50,59],value:"²"},{key:[115,117,112,51,59],value:"³"},{key:[115,117,112,59],value:"⊃"},{key:[115,117,112,69,59],value:"⫆"},{key:[115,117,112,100,111,116,59],value:"⪾"},{key:[115,117,112,100,115,117,98,59],value:"⫘"},{key:[115,117,112,101,59],value:"⊇"},{key:[115,117,112,101,100,111,116,59],value:"⫄"},{key:[115,117,112,104,115,111,108,59],value:"⟉"},{key:[115,117,112,104,115,117,98,59],value:"⫗"},{key:[115,117,112,108,97,114,114,59],value:"⥻"},{key:[115,117,112,109,117,108,116,59],value:"⫂"},{key:[115,117,112,110,69,59],value:"⫌"},{key:[115,117,112,110,101,59],value:"⊋"},{key:[115,117,112,112,108,117,115,59],value:"⫀"},{key:[115,117,112,115,101,116,59],value:"⊃"},{key:[115,117,112,115,101,116,101,113,59],value:"⊇"},{key:[115,117,112,115,101,116,101,113,113,59],value:"⫆"},{key:[115,117,112,115,101,116,110,101,113,59],value:"⊋"},{key:[115,117,112,115,101,116,110,101,113,113,59],value:"⫌"},{key:[115,117,112,115,105,109,59],value:"⫈"},{key:[115,117,112,115,117,98,59],value:"⫔"},{key:[115,117,112,115,117,112,59],value:"⫖"},{key:[115,119,65,114,114,59],value:"⇙"},{key:[115,119,97,114,104,107,59],value:"⤦"},{key:[115,119,97,114,114,59],value:"↙"},{key:[115,119,97,114,114,111,119,59],value:"↙"},{key:[115,119,110,119,97,114,59],value:"⤪"},{key:[115,122,108,105,103,59],value:"ß"},{key:[116,97,114,103,101,116,59],value:"⌖"},{key:[116,97,117,59],value:"τ"},{key:[116,98,114,107,59],value:"⎴"},{key:[116,99,97,114,111,110,59],value:"ť"},{key:[116,99,101,100,105,108,59],value:"ţ"},{key:[116,99,121,59],value:"т"},{key:[116,100,111,116,59],value:"⃛"},{key:[116,101,108,114,101,99,59],value:"⌕"},{key:[116,102,114,59],value:"𝔱"},{key:[116,104,101,114,101,52,59],value:"∴"},{key:[116,104,101,114,101,102,111,114,101,59],value:"∴"},{key:[116,104,101,116,97,59],value:"θ"},{key:[116,104,101,116,97,115,121,109,59],value:"ϑ"},{key:[116,104,101,116,97,118,59],value:"ϑ"},{key:[116,104,105,99,107,97,112,112,114,111,120,59],value:"≈"},{key:[116,104,105,99,107,115,105,109,59],value:"∼"},{key:[116,104,105,110,115,112,59],value:" "},{key:[116,104,107,97,112,59],value:"≈"},{key:[116,104,107,115,105,109,59],value:"∼"},{key:[116,104,111,114,110,59],value:"þ"},{key:[116,105,108,100,101,59],value:"˜"},{key:[116,105,109,101,115,59],value:"×"},{key:[116,105,109,101,115,98,59],value:"⊠"},{key:[116,105,109,101,115,98,97,114,59],value:"⨱"},{key:[116,105,109,101,115,100,59],value:"⨰"},{key:[116,105,110,116,59],value:"∭"},{key:[116,111,101,97,59],value:"⤨"},{key:[116,111,112,59],value:"⊤"},{key:[116,111,112,98,111,116,59],value:"⌶"},{key:[116,111,112,99,105,114,59],value:"⫱"},{key:[116,111,112,102,59],value:"𝕥"},{key:[116,111,112,102,111,114,107,59],value:"⫚"},{key:[116,111,115,97,59],value:"⤩"},{key:[116,112,114,105,109,101,59],value:"‴"},{key:[116,114,97,100,101,59],value:"™"},{key:[116,114,105,97,110,103,108,101,59],value:"▵"},{key:[116,114,105,97,110,103,108,101,100,111,119,110,59],value:"▿"},{key:[116,114,105,97,110,103,108,101,108,101,102,116,59],value:"◃"},{key:[116,114,105,97,110,103,108,101,108,101,102,116,101,113,59],value:"⊴"},{key:[116,114,105,97,110,103,108,101,113,59],value:"≜"},{key:[116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"▹"},{key:[116,114,105,97,110,103,108,101,114,105,103,104,116,101,113,59],value:"⊵"},{key:[116,114,105,100,111,116,59],value:"◬"},{key:[116,114,105,101,59],value:"≜"},{key:[116,114,105,109,105,110,117,115,59],value:"⨺"},{key:[116,114,105,112,108,117,115,59],value:"⨹"},{key:[116,114,105,115,98,59],value:"⧍"},{key:[116,114,105,116,105,109,101,59],value:"⨻"},{key:[116,114,112,101,122,105,117,109,59],value:"⏢"},{key:[116,115,99,114,59],value:"𝓉"},{key:[116,115,99,121,59],value:"ц"},{key:[116,115,104,99,121,59],value:"ћ"},{key:[116,115,116,114,111,107,59],value:"ŧ"},{key:[116,119,105,120,116,59],value:"≬"},{key:[116,119,111,104,101,97,100,108,101,102,116,97,114,114,111,119,59],value:"↞"},{key:[116,119,111,104,101,97,100,114,105,103,104,116,97,114,114,111,119,59],value:"↠"},{key:[117,65,114,114,59],value:"⇑"},{key:[117,72,97,114,59],value:"⥣"},{key:[117,97,99,117,116,101,59],value:"ú"},{key:[117,97,114,114,59],value:"↑"},{key:[117,98,114,99,121,59],value:"ў"},{key:[117,98,114,101,118,101,59],value:"ŭ"},{key:[117,99,105,114,99,59],value:"û"},{key:[117,99,121,59],value:"у"},{key:[117,100,97,114,114,59],value:"⇅"},{key:[117,100,98,108,97,99,59],value:"ű"},{key:[117,100,104,97,114,59],value:"⥮"},{key:[117,102,105,115,104,116,59],value:"⥾"},{key:[117,102,114,59],value:"𝔲"},{key:[117,103,114,97,118,101,59],value:"ù"},{key:[117,104,97,114,108,59],value:"↿"},{key:[117,104,97,114,114,59],value:"↾"},{key:[117,104,98,108,107,59],value:"▀"},{key:[117,108,99,111,114,110,59],value:"⌜"},{key:[117,108,99,111,114,110,101,114,59],value:"⌜"},{key:[117,108,99,114,111,112,59],value:"⌏"},{key:[117,108,116,114,105,59],value:"◸"},{key:[117,109,97,99,114,59],value:"ū"},{key:[117,109,108,59],value:"¨"},{key:[117,111,103,111,110,59],value:"ų"},{key:[117,111,112,102,59],value:"𝕦"},{key:[117,112,97,114,114,111,119,59],value:"↑"},{key:[117,112,100,111,119,110,97,114,114,111,119,59],value:"↕"},{key:[117,112,104,97,114,112,111,111,110,108,101,102,116,59],value:"↿"},{key:[117,112,104,97,114,112,111,111,110,114,105,103,104,116,59],value:"↾"},{key:[117,112,108,117,115,59],value:"⊎"},{key:[117,112,115,105,59],value:"υ"},{key:[117,112,115,105,104,59],value:"ϒ"},{key:[117,112,115,105,108,111,110,59],value:"υ"},{key:[117,112,117,112,97,114,114,111,119,115,59],value:"⇈"},{key:[117,114,99,111,114,110,59],value:"⌝"},{key:[117,114,99,111,114,110,101,114,59],value:"⌝"},{key:[117,114,99,114,111,112,59],value:"⌎"},{key:[117,114,105,110,103,59],value:"ů"},{key:[117,114,116,114,105,59],value:"◹"},{key:[117,115,99,114,59],value:"𝓊"},{key:[117,116,100,111,116,59],value:"⋰"},{key:[117,116,105,108,100,101,59],value:"ũ"},{key:[117,116,114,105,59],value:"▵"},{key:[117,116,114,105,102,59],value:"▴"},{key:[117,117,97,114,114,59],value:"⇈"},{key:[117,117,109,108,59],value:"ü"},{key:[117,119,97,110,103,108,101,59],value:"⦧"},{key:[118,65,114,114,59],value:"⇕"},{key:[118,66,97,114,59],value:"⫨"},{key:[118,66,97,114,118,59],value:"⫩"},{key:[118,68,97,115,104,59],value:"⊨"},{key:[118,97,110,103,114,116,59],value:"⦜"},{key:[118,97,114,101,112,115,105,108,111,110,59],value:"ϵ"},{key:[118,97,114,107,97,112,112,97,59],value:"ϰ"},{key:[118,97,114,110,111,116,104,105,110,103,59],value:"∅"},{key:[118,97,114,112,104,105,59],value:"ϕ"},{key:[118,97,114,112,105,59],value:"ϖ"},{key:[118,97,114,112,114,111,112,116,111,59],value:"∝"},{key:[118,97,114,114,59],value:"↕"},{key:[118,97,114,114,104,111,59],value:"ϱ"},{key:[118,97,114,115,105,103,109,97,59],value:"ς"},{key:[118,97,114,115,117,98,115,101,116,110,101,113,59],value:"⊊︀"},{key:[118,97,114,115,117,98,115,101,116,110,101,113,113,59],value:"⫋︀"},{key:[118,97,114,115,117,112,115,101,116,110,101,113,59],value:"⊋︀"},{key:[118,97,114,115,117,112,115,101,116,110,101,113,113,59],value:"⫌︀"},{key:[118,97,114,116,104,101,116,97,59],value:"ϑ"},{key:[118,97,114,116,114,105,97,110,103,108,101,108,101,102,116,59],value:"⊲"},{key:[118,97,114,116,114,105,97,110,103,108,101,114,105,103,104,116,59],value:"⊳"},{key:[118,99,121,59],value:"в"},{key:[118,100,97,115,104,59],value:"⊢"},{key:[118,101,101,59],value:"∨"},{key:[118,101,101,98,97,114,59],value:"⊻"},{key:[118,101,101,101,113,59],value:"≚"},{key:[118,101,108,108,105,112,59],value:"⋮"},{key:[118,101,114,98,97,114,59],value:"|"},{key:[118,101,114,116,59],value:"|"},{key:[118,102,114,59],value:"𝔳"},{key:[118,108,116,114,105,59],value:"⊲"},{key:[118,110,115,117,98,59],value:"⊂⃒"},{key:[118,110,115,117,112,59],value:"⊃⃒"},{key:[118,111,112,102,59],value:"𝕧"},{key:[118,112,114,111,112,59],value:"∝"},{key:[118,114,116,114,105,59],value:"⊳"},{key:[118,115,99,114,59],value:"𝓋"},{key:[118,115,117,98,110,69,59],value:"⫋︀"},{key:[118,115,117,98,110,101,59],value:"⊊︀"},{key:[118,115,117,112,110,69,59],value:"⫌︀"},{key:[118,115,117,112,110,101,59],value:"⊋︀"},{key:[118,122,105,103,122,97,103,59],value:"⦚"},{key:[119,99,105,114,99,59],value:"ŵ"},{key:[119,101,100,98,97,114,59],value:"⩟"},{key:[119,101,100,103,101,59],value:"∧"},{key:[119,101,100,103,101,113,59],value:"≙"},{key:[119,101,105,101,114,112,59],value:"℘"},{key:[119,102,114,59],value:"𝔴"},{key:[119,111,112,102,59],value:"𝕨"},{key:[119,112,59],value:"℘"},{key:[119,114,59],value:"≀"},{key:[119,114,101,97,116,104,59],value:"≀"},{key:[119,115,99,114,59],value:"𝓌"},{key:[120,99,97,112,59],value:"⋂"},{key:[120,99,105,114,99,59],value:"◯"},{key:[120,99,117,112,59],value:"⋃"},{key:[120,100,116,114,105,59],value:"▽"},{key:[120,102,114,59],value:"𝔵"},{key:[120,104,65,114,114,59],value:"⟺"},{key:[120,104,97,114,114,59],value:"⟷"},{key:[120,105,59],value:"ξ"},{key:[120,108,65,114,114,59],value:"⟸"},{key:[120,108,97,114,114,59],value:"⟵"},{key:[120,109,97,112,59],value:"⟼"},{key:[120,110,105,115,59],value:"⋻"},{key:[120,111,100,111,116,59],value:"⨀"},{key:[120,111,112,102,59],value:"𝕩"},{key:[120,111,112,108,117,115,59],value:"⨁"},{key:[120,111,116,105,109,101,59],value:"⨂"},{key:[120,114,65,114,114,59],value:"⟹"},{key:[120,114,97,114,114,59],value:"⟶"},{key:[120,115,99,114,59],value:"𝓍"},{key:[120,115,113,99,117,112,59],value:"⨆"},{key:[120,117,112,108,117,115,59],value:"⨄"},{key:[120,117,116,114,105,59],value:"△"},{key:[120,118,101,101,59],value:"⋁"},{key:[120,119,101,100,103,101,59],value:"⋀"},{key:[121,97,99,117,116,101,59],value:"ý"},{key:[121,97,99,121,59],value:"я"},{key:[121,99,105,114,99,59],value:"ŷ"},{key:[121,99,121,59],value:"ы"},{key:[121,101,110,59],value:"¥"},{key:[121,102,114,59],value:"𝔶"},{key:[121,105,99,121,59],value:"ї"},{key:[121,111,112,102,59],value:"𝕪"},{key:[121,115,99,114,59],value:"𝓎"},{key:[121,117,99,121,59],value:"ю"},{key:[121,117,109,108,59],value:"ÿ"},{key:[122,97,99,117,116,101,59],value:"ź"},{key:[122,99,97,114,111,110,59],value:"ž"},{key:[122,99,121,59],value:"з"},{key:[122,100,111,116,59],value:"ż"},{key:[122,101,101,116,114,102,59],value:"ℨ"},{key:[122,101,116,97,59],value:"ζ"},{key:[122,102,114,59],value:"𝔷"},{key:[122,104,99,121,59],value:"ж"},{key:[122,105,103,114,97,114,114,59],value:"⇝"},{key:[122,111,112,102,59],value:"𝕫"},{key:[122,115,99,114,59],value:"𝓏"},{key:[122,119,106,59],value:"‍"},{key:[122,119,110,106,59],value:"‌"}];var GM;(function(e){e[e.LOW_LINE=95]="LOW_LINE",e[e.UNDERTIE=8255]="UNDERTIE",e[e.CHARACTER_TIE=8256]="CHARACTER_TIE",e[e.INVERTED_UNDERTIE=8276]="INVERTED_UNDERTIE",e[e.PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE=65075]="PRESENTATION_FORM_FOR_VERTICAL_LOW_LINE",e[e.PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE=65076]="PRESENTATION_FORM_FOR_VERTICAL_WAVY_LOW_LINE",e[e.DASHED_LOW_LINE=65101]="DASHED_LOW_LINE",e[e.CENTRELINE_LOW_LINE=65102]="CENTRELINE_LOW_LINE",e[e.WAVY_LOW_LINE=65103]="WAVY_LOW_LINE",e[e.FULLWIDTH_LOW_LINE=65343]="FULLWIDTH_LOW_LINE"})(GM||(GM={}));var KM;(function(e){e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.ARMENIAN_HYPHEN=1418]="ARMENIAN_HYPHEN",e[e.HEBREW_PUNCTUATION_MAQAF=1470]="HEBREW_PUNCTUATION_MAQAF",e[e.CANADIAN_SYLLABICS_HYPHEN=5120]="CANADIAN_SYLLABICS_HYPHEN",e[e.MONGOLIAN_TODO_SOFT_HYPHEN=6150]="MONGOLIAN_TODO_SOFT_HYPHEN",e[e.HYPHEN=8208]="HYPHEN",e[e.NON_BREAKING_HYPHEN=8209]="NON_BREAKING_HYPHEN",e[e.FIGURE_DASH=8210]="FIGURE_DASH",e[e.EN_DASH=8211]="EN_DASH",e[e.EM_DASH=8212]="EM_DASH",e[e.HORIZONTAL_BAR=8213]="HORIZONTAL_BAR",e[e.DOUBLE_OBLIQUE_HYPHEN=11799]="DOUBLE_OBLIQUE_HYPHEN",e[e.HYPHEN_WITH_DIAERESIS=11802]="HYPHEN_WITH_DIAERESIS",e[e.TWO_EM_DASH=11834]="TWO_EM_DASH",e[e.THREE_EM_DASH=11835]="THREE_EM_DASH",e[e.DOUBLE_HYPHEN=11840]="DOUBLE_HYPHEN",e[e.WAVE_DASH=12316]="WAVE_DASH",e[e.WAVY_DASH=12336]="WAVY_DASH",e[e.KATAKANA_HIRAGANA_DOUBLE_HYPHEN=12448]="KATAKANA_HIRAGANA_DOUBLE_HYPHEN",e[e.PRESENTATION_FORM_FOR_VERTICAL_EM_DASH=65073]="PRESENTATION_FORM_FOR_VERTICAL_EM_DASH",e[e.PRESENTATION_FORM_FOR_VERTICAL_EN_DASH=65074]="PRESENTATION_FORM_FOR_VERTICAL_EN_DASH",e[e.SMALL_EM_DASH=65112]="SMALL_EM_DASH",e[e.SMALL_HYPHEN_MINUS=65123]="SMALL_HYPHEN_MINUS",e[e.FULLWIDTH_HYPHEN_MINUS=65293]="FULLWIDTH_HYPHEN_MINUS",e[e.YEZIDI_HYPHENATION_MARK=69293]="YEZIDI_HYPHENATION_MARK"})(KM||(KM={}));var VM;(function(e){e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TIBETAN_MARK_GUG_RTAGS_GYAS=3899]="TIBETAN_MARK_GUG_RTAGS_GYAS",e[e.TIBETAN_MARK_ANG_KHANG_GYAS=3901]="TIBETAN_MARK_ANG_KHANG_GYAS",e[e.OGHAM_REVERSED_FEATHER_MARK=5788]="OGHAM_REVERSED_FEATHER_MARK",e[e.RIGHT_SQUARE_BRACKET_WITH_QUILL=8262]="RIGHT_SQUARE_BRACKET_WITH_QUILL",e[e.SUPERSCRIPT_RIGHT_PARENTHESIS=8318]="SUPERSCRIPT_RIGHT_PARENTHESIS",e[e.SUBSCRIPT_RIGHT_PARENTHESIS=8334]="SUBSCRIPT_RIGHT_PARENTHESIS",e[e.RIGHT_CEILING=8969]="RIGHT_CEILING",e[e.RIGHT_FLOOR=8971]="RIGHT_FLOOR",e[e.RIGHT_POINTING_ANGLE_BRACKET=9002]="RIGHT_POINTING_ANGLE_BRACKET",e[e.MEDIUM_RIGHT_PARENTHESIS_ORNAMENT=10089]="MEDIUM_RIGHT_PARENTHESIS_ORNAMENT",e[e.MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT=10091]="MEDIUM_FLATTENED_RIGHT_PARENTHESIS_ORNAMENT",e[e.MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10093]="MEDIUM_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",e[e.HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10095]="HEAVY_RIGHT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",e[e.HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT=10097]="HEAVY_RIGHT_POINTING_ANGLE_BRACKET_ORNAMENT",e[e.LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT=10099]="LIGHT_RIGHT_TORTOISE_SHELL_BRACKET_ORNAMENT",e[e.MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT=10101]="MEDIUM_RIGHT_CURLY_BRACKET_ORNAMENT",e[e.RIGHT_S_SHAPED_BAG_DELIMITER=10182]="RIGHT_S_SHAPED_BAG_DELIMITER",e[e.MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET=10215]="MATHEMATICAL_RIGHT_WHITE_SQUARE_BRACKET",e[e.MATHEMATICAL_RIGHT_ANGLE_BRACKET=10217]="MATHEMATICAL_RIGHT_ANGLE_BRACKET",e[e.MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET=10219]="MATHEMATICAL_RIGHT_DOUBLE_ANGLE_BRACKET",e[e.MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET=10221]="MATHEMATICAL_RIGHT_WHITE_TORTOISE_SHELL_BRACKET",e[e.MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS=10223]="MATHEMATICAL_RIGHT_FLATTENED_PARENTHESIS",e[e.RIGHT_WHITE_CURLY_BRACKET=10628]="RIGHT_WHITE_CURLY_BRACKET",e[e.RIGHT_WHITE_PARENTHESIS=10630]="RIGHT_WHITE_PARENTHESIS",e[e.Z_NOTATION_RIGHT_IMAGE_BRACKET=10632]="Z_NOTATION_RIGHT_IMAGE_BRACKET",e[e.Z_NOTATION_RIGHT_BINDING_BRACKET=10634]="Z_NOTATION_RIGHT_BINDING_BRACKET",e[e.RIGHT_SQUARE_BRACKET_WITH_UNDERBAR=10636]="RIGHT_SQUARE_BRACKET_WITH_UNDERBAR",e[e.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10638]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",e[e.RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10640]="RIGHT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",e[e.RIGHT_ANGLE_BRACKET_WITH_DOT=10642]="RIGHT_ANGLE_BRACKET_WITH_DOT",e[e.RIGHT_ARC_GREATER_THAN_BRACKET=10644]="RIGHT_ARC_GREATER_THAN_BRACKET",e[e.DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET=10646]="DOUBLE_RIGHT_ARC_LESS_THAN_BRACKET",e[e.RIGHT_BLACK_TORTOISE_SHELL_BRACKET=10648]="RIGHT_BLACK_TORTOISE_SHELL_BRACKET",e[e.RIGHT_WIGGLY_FENCE=10713]="RIGHT_WIGGLY_FENCE",e[e.RIGHT_DOUBLE_WIGGLY_FENCE=10715]="RIGHT_DOUBLE_WIGGLY_FENCE",e[e.RIGHT_POINTING_CURVED_ANGLE_BRACKET=10749]="RIGHT_POINTING_CURVED_ANGLE_BRACKET",e[e.TOP_RIGHT_HALF_BRACKET=11811]="TOP_RIGHT_HALF_BRACKET",e[e.BOTTOM_RIGHT_HALF_BRACKET=11813]="BOTTOM_RIGHT_HALF_BRACKET",e[e.RIGHT_SIDEWAYS_U_BRACKET=11815]="RIGHT_SIDEWAYS_U_BRACKET",e[e.RIGHT_DOUBLE_PARENTHESIS=11817]="RIGHT_DOUBLE_PARENTHESIS",e[e.RIGHT_ANGLE_BRACKET=12297]="RIGHT_ANGLE_BRACKET",e[e.RIGHT_DOUBLE_ANGLE_BRACKET=12299]="RIGHT_DOUBLE_ANGLE_BRACKET",e[e.RIGHT_CORNER_BRACKET=12301]="RIGHT_CORNER_BRACKET",e[e.RIGHT_WHITE_CORNER_BRACKET=12303]="RIGHT_WHITE_CORNER_BRACKET",e[e.RIGHT_BLACK_LENTICULAR_BRACKET=12305]="RIGHT_BLACK_LENTICULAR_BRACKET",e[e.RIGHT_TORTOISE_SHELL_BRACKET=12309]="RIGHT_TORTOISE_SHELL_BRACKET",e[e.RIGHT_WHITE_LENTICULAR_BRACKET=12311]="RIGHT_WHITE_LENTICULAR_BRACKET",e[e.RIGHT_WHITE_TORTOISE_SHELL_BRACKET=12313]="RIGHT_WHITE_TORTOISE_SHELL_BRACKET",e[e.RIGHT_WHITE_SQUARE_BRACKET=12315]="RIGHT_WHITE_SQUARE_BRACKET",e[e.DOUBLE_PRIME_QUOTATION_MARK=12318]="DOUBLE_PRIME_QUOTATION_MARK",e[e.LOW_DOUBLE_PRIME_QUOTATION_MARK=12319]="LOW_DOUBLE_PRIME_QUOTATION_MARK",e[e.ORNATE_LEFT_PARENTHESIS=64830]="ORNATE_LEFT_PARENTHESIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET=65048]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_LENTICULAR_BRAKCET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS=65078]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_PARENTHESIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET=65080]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CURLY_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET=65082]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_TORTOISE_SHELL_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET=65084]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_BLACK_LENTICULAR_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET=65086]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_DOUBLE_ANGLE_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET=65088]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_ANGLE_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET=65090]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_CORNER_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET=65092]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_WHITE_CORNER_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET=65096]="PRESENTATION_FORM_FOR_VERTICAL_RIGHT_SQUARE_BRACKET",e[e.SMALL_RIGHT_PARENTHESIS=65114]="SMALL_RIGHT_PARENTHESIS",e[e.SMALL_RIGHT_CURLY_BRACKET=65116]="SMALL_RIGHT_CURLY_BRACKET",e[e.SMALL_RIGHT_TORTOISE_SHELL_BRACKET=65118]="SMALL_RIGHT_TORTOISE_SHELL_BRACKET",e[e.FULLWIDTH_RIGHT_PARENTHESIS=65289]="FULLWIDTH_RIGHT_PARENTHESIS",e[e.FULLWIDTH_RIGHT_SQUARE_BRACKET=65341]="FULLWIDTH_RIGHT_SQUARE_BRACKET",e[e.FULLWIDTH_RIGHT_CURLY_BRACKET=65373]="FULLWIDTH_RIGHT_CURLY_BRACKET",e[e.FULLWIDTH_RIGHT_WHITE_PARENTHESIS=65376]="FULLWIDTH_RIGHT_WHITE_PARENTHESIS",e[e.HALFWIDTH_RIGHT_CORNER_BRACKET=65379]="HALFWIDTH_RIGHT_CORNER_BRACKET"})(VM||(VM={}));var UM;(function(e){e[e.RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=187]="RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",e[e.RIGHT_SINGLE_QUOTATION_MARK=8217]="RIGHT_SINGLE_QUOTATION_MARK",e[e.RIGHT_DOUBLE_QUOTATION_MARK=8221]="RIGHT_DOUBLE_QUOTATION_MARK",e[e.SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK=8250]="SINGLE_RIGHT_POINTING_ANGLE_QUOTATION_MARK",e[e.RIGHT_SUBSTITUTION_BRACKET=11779]="RIGHT_SUBSTITUTION_BRACKET",e[e.RIGHT_DOTTED_SUBSTITUTION_BRACKET=11781]="RIGHT_DOTTED_SUBSTITUTION_BRACKET",e[e.RIGHT_TRANSPOSITION_BRACKET=11786]="RIGHT_TRANSPOSITION_BRACKET",e[e.RIGHT_RAISED_OMISSION_BRACKET=11789]="RIGHT_RAISED_OMISSION_BRACKET",e[e.RIGHT_LOW_PARAPHRASE_BRACKET=11805]="RIGHT_LOW_PARAPHRASE_BRACKET",e[e.RIGHT_VERTICAL_BAR_WITH_QUILL=11809]="RIGHT_VERTICAL_BAR_WITH_QUILL"})(UM||(UM={}));var YM;(function(e){e[e.LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK=171]="LEFT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK",e[e.LEFT_SINGLE_QUOTATION_MARK=8216]="LEFT_SINGLE_QUOTATION_MARK",e[e.SINGLE_HIGH_REVERSED_9_QUOTATION_MARK=8219]="SINGLE_HIGH_REVERSED_9_QUOTATION_MARK",e[e.LEFT_DOUBLE_QUOTATION_MARK=8220]="LEFT_DOUBLE_QUOTATION_MARK",e[e.DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK=8223]="DOUBLE_HIGH_REVERSED_9_QUOTATION_MARK",e[e.SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK=8249]="SINGLE_LEFT_POINTING_ANGLE_QUOTATION_MARK",e[e.LEFT_SUBSTITUTION_BRACKET=11778]="LEFT_SUBSTITUTION_BRACKET",e[e.LEFT_DOTTED_SUBSTITUTION_BRACKET=11780]="LEFT_DOTTED_SUBSTITUTION_BRACKET",e[e.LEFT_TRANSPOSITION_BRACKET=11785]="LEFT_TRANSPOSITION_BRACKET",e[e.LEFT_RAISED_OMISSION_BRACKET=11788]="LEFT_RAISED_OMISSION_BRACKET",e[e.LEFT_LOW_PARAPHRASE_BRACKET=11804]="LEFT_LOW_PARAPHRASE_BRACKET",e[e.LEFT_VERTICAL_BAR_WITH_QUILL=11808]="LEFT_VERTICAL_BAR_WITH_QUILL"})(YM||(YM={}));var XM;(function(e){e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.ASTERISK=42]="ASTERISK",e[e.COMMA=44]="COMMA",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.INVERTED_EXCLAMATION_MARK=161]="INVERTED_EXCLAMATION_MARK",e[e.SECTION_SIGN=167]="SECTION_SIGN",e[e.PILCROW_SIGN=182]="PILCROW_SIGN",e[e.MIDDLE_DOT=183]="MIDDLE_DOT",e[e.INVERTED_QUESTION_MARK=191]="INVERTED_QUESTION_MARK",e[e.GREEK_QUESTION_MARK=894]="GREEK_QUESTION_MARK",e[e.GREEK_ANO_TELEIA=903]="GREEK_ANO_TELEIA",e[e.ARMENIAN_APOSTROPHE=1370]="ARMENIAN_APOSTROPHE",e[e.ARMENIAN_EMPHASIS_MARK=1371]="ARMENIAN_EMPHASIS_MARK",e[e.ARMENIAN_EXCLAMATION_MARK=1372]="ARMENIAN_EXCLAMATION_MARK",e[e.ARMENIAN_COMMA=1373]="ARMENIAN_COMMA",e[e.ARMENIAN_QUESTION_MARK=1374]="ARMENIAN_QUESTION_MARK",e[e.ARMENIAN_ABBREVIATION_MARK=1375]="ARMENIAN_ABBREVIATION_MARK",e[e.ARMENIAN_FULL_STOP=1417]="ARMENIAN_FULL_STOP",e[e.HEBREW_PUNCTUATION_PASEQ=1472]="HEBREW_PUNCTUATION_PASEQ",e[e.HEBREW_PUNCTUATION_SOF_PASUQ=1475]="HEBREW_PUNCTUATION_SOF_PASUQ",e[e.HEBREW_PUNCTUATION_NUN_HAFUKHA=1478]="HEBREW_PUNCTUATION_NUN_HAFUKHA",e[e.HEBREW_PUNCTUATION_GERESH=1523]="HEBREW_PUNCTUATION_GERESH",e[e.HEBREW_PUNCTUATION_GERSHAYIM=1524]="HEBREW_PUNCTUATION_GERSHAYIM",e[e.ARABIC_INDIC_PER_MILLE_SIGN=1545]="ARABIC_INDIC_PER_MILLE_SIGN",e[e.ARABIC_INDIC_PER_TEN_THOUSAND_SIGN=1546]="ARABIC_INDIC_PER_TEN_THOUSAND_SIGN",e[e.ARABIC_COMMA=1548]="ARABIC_COMMA",e[e.ARABIC_DATE_SEPARATOR=1549]="ARABIC_DATE_SEPARATOR",e[e.ARABIC_SEMICOLON=1563]="ARABIC_SEMICOLON",e[e.ARABIC_TRIPLE_DOT_PUNCTUATION_MARK=1566]="ARABIC_TRIPLE_DOT_PUNCTUATION_MARK",e[e.ARABIC_QUESTION_MARK=1567]="ARABIC_QUESTION_MARK",e[e.ARABIC_PERCENT_SIGN=1642]="ARABIC_PERCENT_SIGN",e[e.ARABIC_DECIMAL_SEPARATOR=1643]="ARABIC_DECIMAL_SEPARATOR",e[e.ARABIC_THOUSANDS_SEPARATOR=1644]="ARABIC_THOUSANDS_SEPARATOR",e[e.ARABIC_FIVE_POINTED_STAR=1645]="ARABIC_FIVE_POINTED_STAR",e[e.ARABIC_FULL_STOP=1748]="ARABIC_FULL_STOP",e[e.SYRIAC_END_OF_PARAGRAPH=1792]="SYRIAC_END_OF_PARAGRAPH",e[e.SYRIAC_SUPRALINEAR_FULL_STOP=1793]="SYRIAC_SUPRALINEAR_FULL_STOP",e[e.SYRIAC_SUBLINEAR_FULL_STOP=1794]="SYRIAC_SUBLINEAR_FULL_STOP",e[e.SYRIAC_SUPRALINEAR_COLON=1795]="SYRIAC_SUPRALINEAR_COLON",e[e.SYRIAC_SUBLINEAR_COLON=1796]="SYRIAC_SUBLINEAR_COLON",e[e.SYRIAC_HORIZONTAL_COLON=1797]="SYRIAC_HORIZONTAL_COLON",e[e.SYRIAC_COLON_SKEWED_LEFT=1798]="SYRIAC_COLON_SKEWED_LEFT",e[e.SYRIAC_COLON_SKEWED_RIGHT=1799]="SYRIAC_COLON_SKEWED_RIGHT",e[e.SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT=1800]="SYRIAC_SUPRALINEAR_COLON_SKEWED_LEFT",e[e.SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT=1801]="SYRIAC_SUBLINEAR_COLON_SKEWED_RIGHT",e[e.SYRIAC_CONTRACTION=1802]="SYRIAC_CONTRACTION",e[e.SYRIAC_HARKLEAN_OBELUS=1803]="SYRIAC_HARKLEAN_OBELUS",e[e.SYRIAC_HARKLEAN_METOBELUS=1804]="SYRIAC_HARKLEAN_METOBELUS",e[e.SYRIAC_HARKLEAN_ASTERISCUS=1805]="SYRIAC_HARKLEAN_ASTERISCUS",e[e.NKO_SYMBOL_GBAKURUNEN=2039]="NKO_SYMBOL_GBAKURUNEN",e[e.NKO_COMMA=2040]="NKO_COMMA",e[e.NKO_EXCLAMATION_MARK=2041]="NKO_EXCLAMATION_MARK",e[e.SAMARITAN_PUNCTUATION_NEQUDAA=2096]="SAMARITAN_PUNCTUATION_NEQUDAA",e[e.SAMARITAN_PUNCTUATION_AFSAAQ=2097]="SAMARITAN_PUNCTUATION_AFSAAQ",e[e.SAMARITAN_PUNCTUATION_ANGED=2098]="SAMARITAN_PUNCTUATION_ANGED",e[e.SAMARITAN_PUNCTUATION_BAU=2099]="SAMARITAN_PUNCTUATION_BAU",e[e.SAMARITAN_PUNCTUATION_ATMAAU=2100]="SAMARITAN_PUNCTUATION_ATMAAU",e[e.SAMARITAN_PUNCTUATION_SHIYYAALAA=2101]="SAMARITAN_PUNCTUATION_SHIYYAALAA",e[e.SAMARITAN_ABBREVIATION_MARK=2102]="SAMARITAN_ABBREVIATION_MARK",e[e.SAMARITAN_PUNCTUATION_MELODIC_QITSA=2103]="SAMARITAN_PUNCTUATION_MELODIC_QITSA",e[e.SAMARITAN_PUNCTUATION_ZIQAA=2104]="SAMARITAN_PUNCTUATION_ZIQAA",e[e.SAMARITAN_PUNCTUATION_QITSA=2105]="SAMARITAN_PUNCTUATION_QITSA",e[e.SAMARITAN_PUNCTUATION_ZAEF=2106]="SAMARITAN_PUNCTUATION_ZAEF",e[e.SAMARITAN_PUNCTUATION_TURU=2107]="SAMARITAN_PUNCTUATION_TURU",e[e.SAMARITAN_PUNCTUATION_ARKAANU=2108]="SAMARITAN_PUNCTUATION_ARKAANU",e[e.SAMARITAN_PUNCTUATION_SOF_MASHFAAT=2109]="SAMARITAN_PUNCTUATION_SOF_MASHFAAT",e[e.SAMARITAN_PUNCTUATION_ANNAAU=2110]="SAMARITAN_PUNCTUATION_ANNAAU",e[e.MANDAIC_PUNCTUATION=2142]="MANDAIC_PUNCTUATION",e[e.DEVANAGARI_DANDA=2404]="DEVANAGARI_DANDA",e[e.DEVANAGARI_DOUBLE_DANDA=2405]="DEVANAGARI_DOUBLE_DANDA",e[e.DEVANAGARI_ABBREVIATION_SIGN=2416]="DEVANAGARI_ABBREVIATION_SIGN",e[e.BENGALI_ABBREVIATION_SIGN=2557]="BENGALI_ABBREVIATION_SIGN",e[e.GURMUKHI_ABBREVIATION_SIGN=2678]="GURMUKHI_ABBREVIATION_SIGN",e[e.GUJARATI_ABBREVIATION_SIGN=2800]="GUJARATI_ABBREVIATION_SIGN",e[e.TELUGU_SIGN_SIDDHAM=3191]="TELUGU_SIGN_SIDDHAM",e[e.KANNADA_SIGN_SIDDHAM=3204]="KANNADA_SIGN_SIDDHAM",e[e.SINHALA_PUNCTUATION_KUNDDALIYA=3572]="SINHALA_PUNCTUATION_KUNDDALIYA",e[e.THAI_CHARACTER_FONGMAN=3663]="THAI_CHARACTER_FONGMAN",e[e.THAI_CHARACTER_ANGKHANKHU=3674]="THAI_CHARACTER_ANGKHANKHU",e[e.THAI_CHARACTER_KHOMUT=3675]="THAI_CHARACTER_KHOMUT",e[e.TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA=3844]="TIBETAN_MARK_INITIAL_YIG_MGO_MDUN_MA",e[e.TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA=3845]="TIBETAN_MARK_CLOSING_YIG_MGO_SGAB_MA",e[e.TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA=3846]="TIBETAN_MARK_CARET_YIG_MGO_PHUR_SHAD_MA",e[e.TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA=3847]="TIBETAN_MARK_YIG_MGO_TSHEG_SHAD_MA",e[e.TIBETAN_MARK_SBRUL_SHAD=3848]="TIBETAN_MARK_SBRUL_SHAD",e[e.TIBETAN_MARK_BSKUR_YIG_MGO=3849]="TIBETAN_MARK_BSKUR_YIG_MGO",e[e.TIBETAN_MARK_BKA__SHOG_YIG_MGO=3850]="TIBETAN_MARK_BKA__SHOG_YIG_MGO",e[e.TIBETAN_MARK_INTERSYLLABIC_TSHEG=3851]="TIBETAN_MARK_INTERSYLLABIC_TSHEG",e[e.TIBETAN_MARK_DELIMITER_TSHEG_BSTAR=3852]="TIBETAN_MARK_DELIMITER_TSHEG_BSTAR",e[e.TIBETAN_MARK_SHAD=3853]="TIBETAN_MARK_SHAD",e[e.TIBETAN_MARK_NYIS_SHAD=3854]="TIBETAN_MARK_NYIS_SHAD",e[e.TIBETAN_MARK_TSHEG_SHAD=3855]="TIBETAN_MARK_TSHEG_SHAD",e[e.TIBETAN_MARK_NYIS_TSHEG_SHAD=3856]="TIBETAN_MARK_NYIS_TSHEG_SHAD",e[e.TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD=3857]="TIBETAN_MARK_RIN_CHEN_SPUNGS_SHAD",e[e.TIBETAN_MARK_RGYA_GRAM_SHAD=3858]="TIBETAN_MARK_RGYA_GRAM_SHAD",e[e.TIBETAN_MARK_GTER_TSHEG=3860]="TIBETAN_MARK_GTER_TSHEG",e[e.TIBETAN_MARK_PALUTA=3973]="TIBETAN_MARK_PALUTA",e[e.TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN=4048]="TIBETAN_MARK_BSKA__SHOG_GI_MGO_RGYAN",e[e.TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN=4049]="TIBETAN_MARK_MNYAM_YIG_GI_MGO_RGYAN",e[e.TIBETAN_MARK_NYIS_TSHEG=4050]="TIBETAN_MARK_NYIS_TSHEG",e[e.TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA=4051]="TIBETAN_MARK_INITIAL_BRDA_RNYING_YIG_MGO_MDUN_MA",e[e.TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA=4052]="TIBETAN_MARK_CLOSING_BRDA_RNYING_YIG_MGO_SGAB_MA",e[e.TIBETAN_MARK_LEADING_MCHAN_RTAGS=4057]="TIBETAN_MARK_LEADING_MCHAN_RTAGS",e[e.TIBETAN_MARK_TRAILING_MCHAN_RTAGS=4058]="TIBETAN_MARK_TRAILING_MCHAN_RTAGS",e[e.MYANMAR_SIGN_LITTLE_SECTION=4170]="MYANMAR_SIGN_LITTLE_SECTION",e[e.MYANMAR_SIGN_SECTION=4171]="MYANMAR_SIGN_SECTION",e[e.MYANMAR_SYMBOL_LOCATIVE=4172]="MYANMAR_SYMBOL_LOCATIVE",e[e.MYANMAR_SYMBOL_COMPLETED=4173]="MYANMAR_SYMBOL_COMPLETED",e[e.MYANMAR_SYMBOL_AFOREMENTIONED=4174]="MYANMAR_SYMBOL_AFOREMENTIONED",e[e.MYANMAR_SYMBOL_GENITIVE=4175]="MYANMAR_SYMBOL_GENITIVE",e[e.GEORGIAN_PARAGRAPH_SEPARATOR=4347]="GEORGIAN_PARAGRAPH_SEPARATOR",e[e.ETHIOPIC_SECTION_MARK=4960]="ETHIOPIC_SECTION_MARK",e[e.ETHIOPIC_WORDSPACE=4961]="ETHIOPIC_WORDSPACE",e[e.ETHIOPIC_FULL_STOP=4962]="ETHIOPIC_FULL_STOP",e[e.ETHIOPIC_COMMA=4963]="ETHIOPIC_COMMA",e[e.ETHIOPIC_SEMICOLON=4964]="ETHIOPIC_SEMICOLON",e[e.ETHIOPIC_COLON=4965]="ETHIOPIC_COLON",e[e.ETHIOPIC_PREFACE_COLON=4966]="ETHIOPIC_PREFACE_COLON",e[e.ETHIOPIC_QUESTION_MARK=4967]="ETHIOPIC_QUESTION_MARK",e[e.ETHIOPIC_PARAGRAPH_SEPARATOR=4968]="ETHIOPIC_PARAGRAPH_SEPARATOR",e[e.CANADIAN_SYLLABICS_FULL_STOP=5742]="CANADIAN_SYLLABICS_FULL_STOP",e[e.RUNIC_SINGLE_PUNCTUATION=5867]="RUNIC_SINGLE_PUNCTUATION",e[e.RUNIC_MULTIPLE_PUNCTUATION=5868]="RUNIC_MULTIPLE_PUNCTUATION",e[e.RUNIC_CROSS_PUNCTUATION=5869]="RUNIC_CROSS_PUNCTUATION",e[e.PHILIPPINE_SINGLE_PUNCTUATION=5941]="PHILIPPINE_SINGLE_PUNCTUATION",e[e.PHILIPPINE_DOUBLE_PUNCTUATION=5942]="PHILIPPINE_DOUBLE_PUNCTUATION",e[e.KHMER_SIGN_KHAN=6100]="KHMER_SIGN_KHAN",e[e.KHMER_SIGN_BARIYOOSAN=6101]="KHMER_SIGN_BARIYOOSAN",e[e.KHMER_SIGN_CAMNUC_PII_KUUH=6102]="KHMER_SIGN_CAMNUC_PII_KUUH",e[e.KHMER_SIGN_BEYYAL=6104]="KHMER_SIGN_BEYYAL",e[e.KHMER_SIGN_PHNAEK_MUAN=6105]="KHMER_SIGN_PHNAEK_MUAN",e[e.KHMER_SIGN_KOOMUUT=6106]="KHMER_SIGN_KOOMUUT",e[e.MONGOLIAN_BIRGA=6144]="MONGOLIAN_BIRGA",e[e.MONGOLIAN_ELLIPSIS=6145]="MONGOLIAN_ELLIPSIS",e[e.MONGOLIAN_COMMA=6146]="MONGOLIAN_COMMA",e[e.MONGOLIAN_FULL_STOP=6147]="MONGOLIAN_FULL_STOP",e[e.MONGOLIAN_COLON=6148]="MONGOLIAN_COLON",e[e.MONGOLIAN_FOUR_DOTS=6149]="MONGOLIAN_FOUR_DOTS",e[e.MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER=6151]="MONGOLIAN_SIBE_SYLLABLE_BOUNDARY_MARKER",e[e.MONGOLIAN_MANCHU_COMMA=6152]="MONGOLIAN_MANCHU_COMMA",e[e.MONGOLIAN_MANCHU_FULL_STOP=6153]="MONGOLIAN_MANCHU_FULL_STOP",e[e.MONGOLIAN_NIRUGU=6154]="MONGOLIAN_NIRUGU",e[e.LIMBU_EXCLAMATION_MARK=6468]="LIMBU_EXCLAMATION_MARK",e[e.LIMBU_QUESTION_MARK=6469]="LIMBU_QUESTION_MARK",e[e.BUGINESE_PALLAWA=6686]="BUGINESE_PALLAWA",e[e.BUGINESE_END_OF_SECTION=6687]="BUGINESE_END_OF_SECTION",e[e.TAI_THAM_SIGN_WIANG=6816]="TAI_THAM_SIGN_WIANG",e[e.TAI_THAM_SIGN_WIANGWAAK=6817]="TAI_THAM_SIGN_WIANGWAAK",e[e.TAI_THAM_SIGN_SAWAN=6818]="TAI_THAM_SIGN_SAWAN",e[e.TAI_THAM_SIGN_KEOW=6819]="TAI_THAM_SIGN_KEOW",e[e.TAI_THAM_SIGN_HOY=6820]="TAI_THAM_SIGN_HOY",e[e.TAI_THAM_SIGN_DOKMAI=6821]="TAI_THAM_SIGN_DOKMAI",e[e.TAI_THAM_SIGN_REVERSED_ROTATED_RANA=6822]="TAI_THAM_SIGN_REVERSED_ROTATED_RANA",e[e.TAI_THAM_SIGN_KAAN=6824]="TAI_THAM_SIGN_KAAN",e[e.TAI_THAM_SIGN_KAANKUU=6825]="TAI_THAM_SIGN_KAANKUU",e[e.TAI_THAM_SIGN_SATKAAN=6826]="TAI_THAM_SIGN_SATKAAN",e[e.TAI_THAM_SIGN_SATKAANKUU=6827]="TAI_THAM_SIGN_SATKAANKUU",e[e.TAI_THAM_SIGN_HANG=6828]="TAI_THAM_SIGN_HANG",e[e.TAI_THAM_SIGN_CAANG=6829]="TAI_THAM_SIGN_CAANG",e[e.BALINESE_PANTI=7002]="BALINESE_PANTI",e[e.BALINESE_PAMADA=7003]="BALINESE_PAMADA",e[e.BALINESE_WINDU=7004]="BALINESE_WINDU",e[e.BALINESE_CARIK_PAMUNGKAH=7005]="BALINESE_CARIK_PAMUNGKAH",e[e.BALINESE_CARIK_SIKI=7006]="BALINESE_CARIK_SIKI",e[e.BALINESE_CARIK_PAREREN=7007]="BALINESE_CARIK_PAREREN",e[e.BALINESE_PAMENENG=7008]="BALINESE_PAMENENG",e[e.BATAK_SYMBOL_BINDU_NA_METEK=7164]="BATAK_SYMBOL_BINDU_NA_METEK",e[e.BATAK_SYMBOL_BINDU_PINARBORAS=7165]="BATAK_SYMBOL_BINDU_PINARBORAS",e[e.BATAK_SYMBOL_BINDU_JUDUL=7166]="BATAK_SYMBOL_BINDU_JUDUL",e[e.BATAK_SYMBOL_BINDU_PANGOLAT=7167]="BATAK_SYMBOL_BINDU_PANGOLAT",e[e.LEPCHA_PUNCTUATION_TA_ROL=7227]="LEPCHA_PUNCTUATION_TA_ROL",e[e.LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL=7228]="LEPCHA_PUNCTUATION_NYET_THYOOM_TA_ROL",e[e.LEPCHA_PUNCTUATION_CER_WA=7229]="LEPCHA_PUNCTUATION_CER_WA",e[e.LEPCHA_PUNCTUATION_TSHOOK_CER_WA=7230]="LEPCHA_PUNCTUATION_TSHOOK_CER_WA",e[e.LEPCHA_PUNCTUATION_TSHOOK=7231]="LEPCHA_PUNCTUATION_TSHOOK",e[e.OL_CHIKI_PUNCTUATION_MUCAAD=7294]="OL_CHIKI_PUNCTUATION_MUCAAD",e[e.OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD=7295]="OL_CHIKI_PUNCTUATION_DOUBLE_MUCAAD",e[e.SUNDANESE_PUNCTUATION_BINDU_SURYA=7360]="SUNDANESE_PUNCTUATION_BINDU_SURYA",e[e.SUNDANESE_PUNCTUATION_BINDU_PANGLONG=7361]="SUNDANESE_PUNCTUATION_BINDU_PANGLONG",e[e.SUNDANESE_PUNCTUATION_BINDU_PURNAMA=7362]="SUNDANESE_PUNCTUATION_BINDU_PURNAMA",e[e.SUNDANESE_PUNCTUATION_BINDU_CAKRA=7363]="SUNDANESE_PUNCTUATION_BINDU_CAKRA",e[e.SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA=7364]="SUNDANESE_PUNCTUATION_BINDU_LEU_SATANGA",e[e.SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA=7365]="SUNDANESE_PUNCTUATION_BINDU_KA_SATANGA",e[e.SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA=7366]="SUNDANESE_PUNCTUATION_BINDU_DA_SATANGA",e[e.SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA=7367]="SUNDANESE_PUNCTUATION_BINDU_BA_SATANGA",e[e.VEDIC_SIGN_NIHSHVASA=7379]="VEDIC_SIGN_NIHSHVASA",e[e.DOUBLE_VERTICAL_LINE=8214]="DOUBLE_VERTICAL_LINE",e[e.DOUBLE_LOW_LINE=8215]="DOUBLE_LOW_LINE",e[e.DAGGER=8224]="DAGGER",e[e.DOUBLE_DAGGER=8225]="DOUBLE_DAGGER",e[e.BULLET=8226]="BULLET",e[e.TRIANGULAR_BULLET=8227]="TRIANGULAR_BULLET",e[e.ONE_DOT_LEADER=8228]="ONE_DOT_LEADER",e[e.TWO_DOT_LEADER=8229]="TWO_DOT_LEADER",e[e.HORIZONTAL_ELLIPSIS=8230]="HORIZONTAL_ELLIPSIS",e[e.HYPHENATION_POINT=8231]="HYPHENATION_POINT",e[e.PER_MILLE_SIGN=8240]="PER_MILLE_SIGN",e[e.PER_TEN_THOUSAND_SIGN=8241]="PER_TEN_THOUSAND_SIGN",e[e.PRIME=8242]="PRIME",e[e.DOUBLE_PRIME=8243]="DOUBLE_PRIME",e[e.TRIPLE_PRIME=8244]="TRIPLE_PRIME",e[e.REVERSED_PRIME=8245]="REVERSED_PRIME",e[e.REVERSED_DOUBLE_PRIME=8246]="REVERSED_DOUBLE_PRIME",e[e.REVERSED_TRIPLE_PRIME=8247]="REVERSED_TRIPLE_PRIME",e[e.CARET=8248]="CARET",e[e.REFERENCE_MARK=8251]="REFERENCE_MARK",e[e.DOUBLE_EXCLAMATION_MARK=8252]="DOUBLE_EXCLAMATION_MARK",e[e.INTERROBANG=8253]="INTERROBANG",e[e.OVERLINE=8254]="OVERLINE",e[e.CARET_INSERTION_POINT=8257]="CARET_INSERTION_POINT",e[e.ASTERISM=8258]="ASTERISM",e[e.HYPHEN_BULLET=8259]="HYPHEN_BULLET",e[e.DOUBLE_QUESTION_MARK=8263]="DOUBLE_QUESTION_MARK",e[e.QUESTION_EXCLAMATION_MARK=8264]="QUESTION_EXCLAMATION_MARK",e[e.EXCLAMATION_QUESTION_MARK=8265]="EXCLAMATION_QUESTION_MARK",e[e.TIRONIAN_SIGN_ET=8266]="TIRONIAN_SIGN_ET",e[e.REVERSED_PILCROW_SIGN=8267]="REVERSED_PILCROW_SIGN",e[e.BLACK_LEFTWARDS_BULLET=8268]="BLACK_LEFTWARDS_BULLET",e[e.BLACK_RIGHTWARDS_BULLET=8269]="BLACK_RIGHTWARDS_BULLET",e[e.LOW_ASTERISK=8270]="LOW_ASTERISK",e[e.REVERSED_SEMICOLON=8271]="REVERSED_SEMICOLON",e[e.CLOSE_UP=8272]="CLOSE_UP",e[e.TWO_ASTERISKS_ALIGNED_VERTICALLY=8273]="TWO_ASTERISKS_ALIGNED_VERTICALLY",e[e.SWUNG_DASH=8275]="SWUNG_DASH",e[e.FLOWER_PUNCTUATION_MARK=8277]="FLOWER_PUNCTUATION_MARK",e[e.THREE_DOT_PUNCTUATION=8278]="THREE_DOT_PUNCTUATION",e[e.QUADRUPLE_PRIME=8279]="QUADRUPLE_PRIME",e[e.FOUR_DOT_PUNCTUATION=8280]="FOUR_DOT_PUNCTUATION",e[e.FIVE_DOT_PUNCTUATION=8281]="FIVE_DOT_PUNCTUATION",e[e.TWO_DOT_PUNCTUATION=8282]="TWO_DOT_PUNCTUATION",e[e.FOUR_DOT_MARK=8283]="FOUR_DOT_MARK",e[e.DOTTED_CROSS=8284]="DOTTED_CROSS",e[e.TRICOLON=8285]="TRICOLON",e[e.VERTICAL_FOUR_DOTS=8286]="VERTICAL_FOUR_DOTS",e[e.COPTIC_OLD_NUBIAN_FULL_STOP=11513]="COPTIC_OLD_NUBIAN_FULL_STOP",e[e.COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK=11514]="COPTIC_OLD_NUBIAN_DIRECT_QUESTION_MARK",e[e.COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK=11515]="COPTIC_OLD_NUBIAN_INDIRECT_QUESTION_MARK",e[e.COPTIC_OLD_NUBIAN_VERSE_DIVIDER=11516]="COPTIC_OLD_NUBIAN_VERSE_DIVIDER",e[e.COPTIC_FULL_STOP=11518]="COPTIC_FULL_STOP",e[e.COPTIC_MORPHOLOGICAL_DIVIDER=11519]="COPTIC_MORPHOLOGICAL_DIVIDER",e[e.TIFINAGH_SEPARATOR_MARK=11632]="TIFINAGH_SEPARATOR_MARK",e[e.RIGHT_ANGLE_SUBSTITUTION_MARKER=11776]="RIGHT_ANGLE_SUBSTITUTION_MARKER",e[e.RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER=11777]="RIGHT_ANGLE_DOTTED_SUBSTITUTION_MARKER",e[e.RAISED_INTERPOLATION_MARKER=11782]="RAISED_INTERPOLATION_MARKER",e[e.RAISED_DOTTED_INTERPOLATION_MARKER=11783]="RAISED_DOTTED_INTERPOLATION_MARKER",e[e.DOTTED_TRANSPOSITION_MARKER=11784]="DOTTED_TRANSPOSITION_MARKER",e[e.RAISED_SQUARE=11787]="RAISED_SQUARE",e[e.EDITORIAL_CORONIS=11790]="EDITORIAL_CORONIS",e[e.PARAGRAPHOS=11791]="PARAGRAPHOS",e[e.FORKED_PARAGRAPHOS=11792]="FORKED_PARAGRAPHOS",e[e.REVERSED_FORKED_PARAGRAPHOS=11793]="REVERSED_FORKED_PARAGRAPHOS",e[e.HYPODIASTOLE=11794]="HYPODIASTOLE",e[e.DOTTED_OBELOS=11795]="DOTTED_OBELOS",e[e.DOWNWARDS_ANCORA=11796]="DOWNWARDS_ANCORA",e[e.UPWARDS_ANCORA=11797]="UPWARDS_ANCORA",e[e.DOTTED_RIGHT_POINTING_ANGLE=11798]="DOTTED_RIGHT_POINTING_ANGLE",e[e.INVERTED_INTERROBANG=11800]="INVERTED_INTERROBANG",e[e.PALM_BRANCH=11801]="PALM_BRANCH",e[e.TILDE_WITH_RING_ABOVE=11803]="TILDE_WITH_RING_ABOVE",e[e.TILDE_WITH_DOT_ABOVE=11806]="TILDE_WITH_DOT_ABOVE",e[e.TILDE_WITH_DOT_BELOW=11807]="TILDE_WITH_DOT_BELOW",e[e.TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=11818]="TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",e[e.ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=11819]="ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",e[e.SQUARED_FOUR_DOT_PUNCTUATION=11820]="SQUARED_FOUR_DOT_PUNCTUATION",e[e.FIVE_DOT_MARK=11821]="FIVE_DOT_MARK",e[e.REVERSED_QUESTION_MARK=11822]="REVERSED_QUESTION_MARK",e[e.RING_POINT=11824]="RING_POINT",e[e.WORD_SEPARATOR_MIDDLE_DOT=11825]="WORD_SEPARATOR_MIDDLE_DOT",e[e.TURNED_COMMA=11826]="TURNED_COMMA",e[e.RAISED_DOT=11827]="RAISED_DOT",e[e.RAISED_COMMA=11828]="RAISED_COMMA",e[e.TURNED_SEMICOLON=11829]="TURNED_SEMICOLON",e[e.DAGGER_WITH_LEFT_GUARD=11830]="DAGGER_WITH_LEFT_GUARD",e[e.DAGGER_WITH_RIGHT_GUARD=11831]="DAGGER_WITH_RIGHT_GUARD",e[e.TURNED_DAGGER=11832]="TURNED_DAGGER",e[e.TOP_HALF_SECTION_SIGN=11833]="TOP_HALF_SECTION_SIGN",e[e.STENOGRAPHIC_FULL_STOP=11836]="STENOGRAPHIC_FULL_STOP",e[e.VERTICAL_SIX_DOTS=11837]="VERTICAL_SIX_DOTS",e[e.WIGGLY_VERTICAL_LINE=11838]="WIGGLY_VERTICAL_LINE",e[e.CAPITULUM=11839]="CAPITULUM",e[e.REVERSED_COMMA=11841]="REVERSED_COMMA",e[e.DASH_WITH_LEFT_UPTURN=11843]="DASH_WITH_LEFT_UPTURN",e[e.DOUBLE_SUSPENSION_MARK=11844]="DOUBLE_SUSPENSION_MARK",e[e.INVERTED_LOW_KAVYKA=11845]="INVERTED_LOW_KAVYKA",e[e.INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE=11846]="INVERTED_LOW_KAVYKA_WITH_KAVYKA_ABOVE",e[e.LOW_KAVYKA=11847]="LOW_KAVYKA",e[e.LOW_KAVYKA_WITH_DOT=11848]="LOW_KAVYKA_WITH_DOT",e[e.DOUBLE_STACKED_COMMA=11849]="DOUBLE_STACKED_COMMA",e[e.DOTTED_SOLIDUS=11850]="DOTTED_SOLIDUS",e[e.TRIPLE_DAGGER=11851]="TRIPLE_DAGGER",e[e.MEDIEVAL_COMMA=11852]="MEDIEVAL_COMMA",e[e.PARAGRAPHUS_MARK=11853]="PARAGRAPHUS_MARK",e[e.PUNCTUS_ELEVATUS_MARK=11854]="PUNCTUS_ELEVATUS_MARK",e[e.CORNISH_VERSE_DIVIDER=11855]="CORNISH_VERSE_DIVIDER",e[e.TIRONIAN_SIGN_CAPITAL_ET=11858]="TIRONIAN_SIGN_CAPITAL_ET",e[e.IDEOGRAPHIC_COMMA=12289]="IDEOGRAPHIC_COMMA",e[e.IDEOGRAPHIC_FULL_STOP=12290]="IDEOGRAPHIC_FULL_STOP",e[e.DITTO_MARK=12291]="DITTO_MARK",e[e.PART_ALTERNATION_MARK=12349]="PART_ALTERNATION_MARK",e[e.KATAKANA_MIDDLE_DOT=12539]="KATAKANA_MIDDLE_DOT",e[e.LISU_PUNCTUATION_COMMA=42238]="LISU_PUNCTUATION_COMMA",e[e.LISU_PUNCTUATION_FULL_STOP=42239]="LISU_PUNCTUATION_FULL_STOP",e[e.VAI_COMMA=42509]="VAI_COMMA",e[e.VAI_FULL_STOP=42510]="VAI_FULL_STOP",e[e.VAI_QUESTION_MARK=42511]="VAI_QUESTION_MARK",e[e.SLAVONIC_ASTERISK=42611]="SLAVONIC_ASTERISK",e[e.CYRILLIC_KAVYKA=42622]="CYRILLIC_KAVYKA",e[e.BAMUM_NJAEMLI=42738]="BAMUM_NJAEMLI",e[e.BAMUM_FULL_STOP=42739]="BAMUM_FULL_STOP",e[e.BAMUM_COLON=42740]="BAMUM_COLON",e[e.BAMUM_COMMA=42741]="BAMUM_COMMA",e[e.BAMUM_SEMICOLON=42742]="BAMUM_SEMICOLON",e[e.BAMUM_QUESTION_MARK=42743]="BAMUM_QUESTION_MARK",e[e.PHAGS_PA_SINGLE_HEAD_MARK=43124]="PHAGS_PA_SINGLE_HEAD_MARK",e[e.PHAGS_PA_DOUBLE_HEAD_MARK=43125]="PHAGS_PA_DOUBLE_HEAD_MARK",e[e.PHAGS_PA_MARK_SHAD=43126]="PHAGS_PA_MARK_SHAD",e[e.PHAGS_PA_MARK_DOUBLE_SHAD=43127]="PHAGS_PA_MARK_DOUBLE_SHAD",e[e.SAURASHTRA_DANDA=43214]="SAURASHTRA_DANDA",e[e.SAURASHTRA_DOUBLE_DANDA=43215]="SAURASHTRA_DOUBLE_DANDA",e[e.DEVANAGARI_SIGN_PUSHPIKA=43256]="DEVANAGARI_SIGN_PUSHPIKA",e[e.DEVANAGARI_GAP_FILLER=43257]="DEVANAGARI_GAP_FILLER",e[e.DEVANAGARI_CARET=43258]="DEVANAGARI_CARET",e[e.DEVANAGARI_SIGN_SIDDHAM=43260]="DEVANAGARI_SIGN_SIDDHAM",e[e.KAYAH_LI_SIGN_CWI=43310]="KAYAH_LI_SIGN_CWI",e[e.KAYAH_LI_SIGN_SHYA=43311]="KAYAH_LI_SIGN_SHYA",e[e.REJANG_SECTION_MARK=43359]="REJANG_SECTION_MARK",e[e.JAVANESE_LEFT_RERENGGAN=43457]="JAVANESE_LEFT_RERENGGAN",e[e.JAVANESE_RIGHT_RERENGGAN=43458]="JAVANESE_RIGHT_RERENGGAN",e[e.JAVANESE_PADA_ANDAP=43459]="JAVANESE_PADA_ANDAP",e[e.JAVANESE_PADA_MADYA=43460]="JAVANESE_PADA_MADYA",e[e.JAVANESE_PADA_LUHUR=43461]="JAVANESE_PADA_LUHUR",e[e.JAVANESE_PADA_WINDU=43462]="JAVANESE_PADA_WINDU",e[e.JAVANESE_PADA_PANGKAT=43463]="JAVANESE_PADA_PANGKAT",e[e.JAVANESE_PADA_LINGSA=43464]="JAVANESE_PADA_LINGSA",e[e.JAVANESE_PADA_LUNGSI=43465]="JAVANESE_PADA_LUNGSI",e[e.JAVANESE_PADA_ADEG=43466]="JAVANESE_PADA_ADEG",e[e.JAVANESE_PADA_ADEG_ADEG=43467]="JAVANESE_PADA_ADEG_ADEG",e[e.JAVANESE_PADA_PISELEH=43468]="JAVANESE_PADA_PISELEH",e[e.JAVANESE_TURNED_PADA_PISELEH=43469]="JAVANESE_TURNED_PADA_PISELEH",e[e.JAVANESE_PADA_TIRTA_TUMETES=43486]="JAVANESE_PADA_TIRTA_TUMETES",e[e.JAVANESE_PADA_ISEN_ISEN=43487]="JAVANESE_PADA_ISEN_ISEN",e[e.CHAM_PUNCTUATION_SPIRAL=43612]="CHAM_PUNCTUATION_SPIRAL",e[e.CHAM_PUNCTUATION_DANDA=43613]="CHAM_PUNCTUATION_DANDA",e[e.CHAM_PUNCTUATION_DOUBLE_DANDA=43614]="CHAM_PUNCTUATION_DOUBLE_DANDA",e[e.CHAM_PUNCTUATION_TRIPLE_DANDA=43615]="CHAM_PUNCTUATION_TRIPLE_DANDA",e[e.TAI_VIET_SYMBOL_HO_HOI=43742]="TAI_VIET_SYMBOL_HO_HOI",e[e.TAI_VIET_SYMBOL_KOI_KOI=43743]="TAI_VIET_SYMBOL_KOI_KOI",e[e.MEETEI_MAYEK_CHEIKHAN=43760]="MEETEI_MAYEK_CHEIKHAN",e[e.MEETEI_MAYEK_AHANG_KHUDAM=43761]="MEETEI_MAYEK_AHANG_KHUDAM",e[e.MEETEI_MAYEK_CHEIKHEI=44011]="MEETEI_MAYEK_CHEIKHEI",e[e.PRESENTATION_FORM_FOR_VERTICAL_COMMA=65040]="PRESENTATION_FORM_FOR_VERTICAL_COMMA",e[e.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA=65041]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_COMMA",e[e.PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP=65042]="PRESENTATION_FORM_FOR_VERTICAL_IDEOGRAPHIC_FULL_STOP",e[e.PRESENTATION_FORM_FOR_VERTICAL_COLON=65043]="PRESENTATION_FORM_FOR_VERTICAL_COLON",e[e.PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON=65044]="PRESENTATION_FORM_FOR_VERTICAL_SEMICOLON",e[e.PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK=65045]="PRESENTATION_FORM_FOR_VERTICAL_EXCLAMATION_MARK",e[e.PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK=65046]="PRESENTATION_FORM_FOR_VERTICAL_QUESTION_MARK",e[e.PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS=65049]="PRESENTATION_FORM_FOR_VERTICAL_HORIZONTAL_ELLIPSIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER=65072]="PRESENTATION_FORM_FOR_VERTICAL_TWO_DOT_LEADER",e[e.SESAME_DOT=65093]="SESAME_DOT",e[e.WHITE_SESAME_DOT=65094]="WHITE_SESAME_DOT",e[e.DASHED_OVERLINE=65097]="DASHED_OVERLINE",e[e.CENTRELINE_OVERLINE=65098]="CENTRELINE_OVERLINE",e[e.WAVY_OVERLINE=65099]="WAVY_OVERLINE",e[e.DOUBLE_WAVY_OVERLINE=65100]="DOUBLE_WAVY_OVERLINE",e[e.SMALL_COMMA=65104]="SMALL_COMMA",e[e.SMALL_IDEOGRAPHIC_COMMA=65105]="SMALL_IDEOGRAPHIC_COMMA",e[e.SMALL_FULL_STOP=65106]="SMALL_FULL_STOP",e[e.SMALL_SEMICOLON=65108]="SMALL_SEMICOLON",e[e.SMALL_COLON=65109]="SMALL_COLON",e[e.SMALL_QUESTION_MARK=65110]="SMALL_QUESTION_MARK",e[e.SMALL_EXCLAMATION_MARK=65111]="SMALL_EXCLAMATION_MARK",e[e.SMALL_NUMBER_SIGN=65119]="SMALL_NUMBER_SIGN",e[e.SMALL_AMPERSAND=65120]="SMALL_AMPERSAND",e[e.SMALL_ASTERISK=65121]="SMALL_ASTERISK",e[e.SMALL_REVERSE_SOLIDUS=65128]="SMALL_REVERSE_SOLIDUS",e[e.SMALL_PERCENT_SIGN=65130]="SMALL_PERCENT_SIGN",e[e.SMALL_COMMERCIAL_AT=65131]="SMALL_COMMERCIAL_AT",e[e.FULLWIDTH_EXCLAMATION_MARK=65281]="FULLWIDTH_EXCLAMATION_MARK",e[e.FULLWIDTH_QUOTATION_MARK=65282]="FULLWIDTH_QUOTATION_MARK",e[e.FULLWIDTH_NUMBER_SIGN=65283]="FULLWIDTH_NUMBER_SIGN",e[e.FULLWIDTH_PERCENT_SIGN=65285]="FULLWIDTH_PERCENT_SIGN",e[e.FULLWIDTH_AMPERSAND=65286]="FULLWIDTH_AMPERSAND",e[e.FULLWIDTH_APOSTROPHE=65287]="FULLWIDTH_APOSTROPHE",e[e.FULLWIDTH_ASTERISK=65290]="FULLWIDTH_ASTERISK",e[e.FULLWIDTH_COMMA=65292]="FULLWIDTH_COMMA",e[e.FULLWIDTH_FULL_STOP=65294]="FULLWIDTH_FULL_STOP",e[e.FULLWIDTH_SOLIDUS=65295]="FULLWIDTH_SOLIDUS",e[e.FULLWIDTH_COLON=65306]="FULLWIDTH_COLON",e[e.FULLWIDTH_SEMICOLON=65307]="FULLWIDTH_SEMICOLON",e[e.FULLWIDTH_QUESTION_MARK=65311]="FULLWIDTH_QUESTION_MARK",e[e.FULLWIDTH_COMMERCIAL_AT=65312]="FULLWIDTH_COMMERCIAL_AT",e[e.FULLWIDTH_REVERSE_SOLIDUS=65340]="FULLWIDTH_REVERSE_SOLIDUS",e[e.HALFWIDTH_IDEOGRAPHIC_FULL_STOP=65377]="HALFWIDTH_IDEOGRAPHIC_FULL_STOP",e[e.HALFWIDTH_IDEOGRAPHIC_COMMA=65380]="HALFWIDTH_IDEOGRAPHIC_COMMA",e[e.HALFWIDTH_KATAKANA_MIDDLE_DOT=65381]="HALFWIDTH_KATAKANA_MIDDLE_DOT",e[e.AEGEAN_WORD_SEPARATOR_LINE=65792]="AEGEAN_WORD_SEPARATOR_LINE",e[e.AEGEAN_WORD_SEPARATOR_DOT=65793]="AEGEAN_WORD_SEPARATOR_DOT",e[e.AEGEAN_CHECK_MARK=65794]="AEGEAN_CHECK_MARK",e[e.UGARITIC_WORD_DIVIDER=66463]="UGARITIC_WORD_DIVIDER",e[e.OLD_PERSIAN_WORD_DIVIDER=66512]="OLD_PERSIAN_WORD_DIVIDER",e[e.CAUCASIAN_ALBANIAN_CITATION_MARK=66927]="CAUCASIAN_ALBANIAN_CITATION_MARK",e[e.IMPERIAL_ARAMAIC_SECTION_SIGN=67671]="IMPERIAL_ARAMAIC_SECTION_SIGN",e[e.PHOENICIAN_WORD_SEPARATOR=67871]="PHOENICIAN_WORD_SEPARATOR",e[e.LYDIAN_TRIANGULAR_MARK=67903]="LYDIAN_TRIANGULAR_MARK",e[e.KHAROSHTHI_PUNCTUATION_DOT=68176]="KHAROSHTHI_PUNCTUATION_DOT",e[e.KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE=68177]="KHAROSHTHI_PUNCTUATION_SMALL_CIRCLE",e[e.KHAROSHTHI_PUNCTUATION_CIRCLE=68178]="KHAROSHTHI_PUNCTUATION_CIRCLE",e[e.KHAROSHTHI_PUNCTUATION_CRESCENT_BAR=68179]="KHAROSHTHI_PUNCTUATION_CRESCENT_BAR",e[e.KHAROSHTHI_PUNCTUATION_MANGALAM=68180]="KHAROSHTHI_PUNCTUATION_MANGALAM",e[e.KHAROSHTHI_PUNCTUATION_LOTUS=68181]="KHAROSHTHI_PUNCTUATION_LOTUS",e[e.KHAROSHTHI_PUNCTUATION_DANDA=68182]="KHAROSHTHI_PUNCTUATION_DANDA",e[e.KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA=68183]="KHAROSHTHI_PUNCTUATION_DOUBLE_DANDA",e[e.KHAROSHTHI_PUNCTUATION_LINES=68184]="KHAROSHTHI_PUNCTUATION_LINES",e[e.OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR=68223]="OLD_SOUTH_ARABIAN_NUMERIC_INDICATOR",e[e.MANICHAEAN_PUNCTUATION_STAR=68336]="MANICHAEAN_PUNCTUATION_STAR",e[e.MANICHAEAN_PUNCTUATION_FLEURON=68337]="MANICHAEAN_PUNCTUATION_FLEURON",e[e.MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT=68338]="MANICHAEAN_PUNCTUATION_DOUBLE_DOT_WITHIN_DOT",e[e.MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT=68339]="MANICHAEAN_PUNCTUATION_DOT_WITHIN_DOT",e[e.MANICHAEAN_PUNCTUATION_DOT=68340]="MANICHAEAN_PUNCTUATION_DOT",e[e.MANICHAEAN_PUNCTUATION_TWO_DOTS=68341]="MANICHAEAN_PUNCTUATION_TWO_DOTS",e[e.MANICHAEAN_PUNCTUATION_LINE_FILLER=68342]="MANICHAEAN_PUNCTUATION_LINE_FILLER",e[e.AVESTAN_ABBREVIATION_MARK=68409]="AVESTAN_ABBREVIATION_MARK",e[e.TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68410]="TINY_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",e[e.SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68411]="SMALL_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",e[e.LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION=68412]="LARGE_TWO_DOTS_OVER_ONE_DOT_PUNCTUATION",e[e.LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION=68413]="LARGE_ONE_DOT_OVER_TWO_DOTS_PUNCTUATION",e[e.LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION=68414]="LARGE_TWO_RINGS_OVER_ONE_RING_PUNCTUATION",e[e.LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION=68415]="LARGE_ONE_RING_OVER_TWO_RINGS_PUNCTUATION",e[e.PSALTER_PAHLAVI_SECTION_MARK=68505]="PSALTER_PAHLAVI_SECTION_MARK",e[e.PSALTER_PAHLAVI_TURNED_SECTION_MARK=68506]="PSALTER_PAHLAVI_TURNED_SECTION_MARK",e[e.PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS=68507]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_CROSS",e[e.PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT=68508]="PSALTER_PAHLAVI_FOUR_DOTS_WITH_DOT",e[e.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS=69461]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS",e[e.SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS=69462]="SOGDIAN_PUNCTUATION_TWO_VERTICAL_BARS_WITH_DOTS",e[e.SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT=69463]="SOGDIAN_PUNCTUATION_CIRCLE_WITH_DOT",e[e.SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS=69464]="SOGDIAN_PUNCTUATION_TWO_CIRCLES_WITH_DOTS",e[e.SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT=69465]="SOGDIAN_PUNCTUATION_HALF_CIRCLE_WITH_DOT",e[e.BRAHMI_DANDA=69703]="BRAHMI_DANDA",e[e.BRAHMI_DOUBLE_DANDA=69704]="BRAHMI_DOUBLE_DANDA",e[e.BRAHMI_PUNCTUATION_DOT=69705]="BRAHMI_PUNCTUATION_DOT",e[e.BRAHMI_PUNCTUATION_DOUBLE_DOT=69706]="BRAHMI_PUNCTUATION_DOUBLE_DOT",e[e.BRAHMI_PUNCTUATION_LINE=69707]="BRAHMI_PUNCTUATION_LINE",e[e.BRAHMI_PUNCTUATION_CRESCENT_BAR=69708]="BRAHMI_PUNCTUATION_CRESCENT_BAR",e[e.BRAHMI_PUNCTUATION_LOTUS=69709]="BRAHMI_PUNCTUATION_LOTUS",e[e.KAITHI_ABBREVIATION_SIGN=69819]="KAITHI_ABBREVIATION_SIGN",e[e.KAITHI_ENUMERATION_SIGN=69820]="KAITHI_ENUMERATION_SIGN",e[e.KAITHI_SECTION_MARK=69822]="KAITHI_SECTION_MARK",e[e.KAITHI_DOUBLE_SECTION_MARK=69823]="KAITHI_DOUBLE_SECTION_MARK",e[e.KAITHI_DANDA=69824]="KAITHI_DANDA",e[e.KAITHI_DOUBLE_DANDA=69825]="KAITHI_DOUBLE_DANDA",e[e.CHAKMA_SECTION_MARK=69952]="CHAKMA_SECTION_MARK",e[e.CHAKMA_DANDA=69953]="CHAKMA_DANDA",e[e.CHAKMA_DOUBLE_DANDA=69954]="CHAKMA_DOUBLE_DANDA",e[e.CHAKMA_QUESTION_MARK=69955]="CHAKMA_QUESTION_MARK",e[e.MAHAJANI_ABBREVIATION_SIGN=70004]="MAHAJANI_ABBREVIATION_SIGN",e[e.MAHAJANI_SECTION_MARK=70005]="MAHAJANI_SECTION_MARK",e[e.SHARADA_DANDA=70085]="SHARADA_DANDA",e[e.SHARADA_DOUBLE_DANDA=70086]="SHARADA_DOUBLE_DANDA",e[e.SHARADA_ABBREVIATION_SIGN=70087]="SHARADA_ABBREVIATION_SIGN",e[e.SHARADA_SEPARATOR=70088]="SHARADA_SEPARATOR",e[e.SHARADA_SUTRA_MARK=70093]="SHARADA_SUTRA_MARK",e[e.SHARADA_SIGN_SIDDHAM=70107]="SHARADA_SIGN_SIDDHAM",e[e.SHARADA_CONTINUATION_SIGN=70109]="SHARADA_CONTINUATION_SIGN",e[e.SHARADA_SECTION_MARK_1=70110]="SHARADA_SECTION_MARK_1",e[e.SHARADA_SECTION_MARK_2=70111]="SHARADA_SECTION_MARK_2",e[e.KHOJKI_DANDA=70200]="KHOJKI_DANDA",e[e.KHOJKI_DOUBLE_DANDA=70201]="KHOJKI_DOUBLE_DANDA",e[e.KHOJKI_WORD_SEPARATOR=70202]="KHOJKI_WORD_SEPARATOR",e[e.KHOJKI_SECTION_MARK=70203]="KHOJKI_SECTION_MARK",e[e.KHOJKI_DOUBLE_SECTION_MARK=70204]="KHOJKI_DOUBLE_SECTION_MARK",e[e.KHOJKI_ABBREVIATION_SIGN=70205]="KHOJKI_ABBREVIATION_SIGN",e[e.MULTANI_SECTION_MARK=70313]="MULTANI_SECTION_MARK",e[e.NEWA_DANDA=70731]="NEWA_DANDA",e[e.NEWA_DOUBLE_DANDA=70732]="NEWA_DOUBLE_DANDA",e[e.NEWA_COMMA=70733]="NEWA_COMMA",e[e.NEWA_GAP_FILLER=70734]="NEWA_GAP_FILLER",e[e.NEWA_ABBREVIATION_SIGN=70735]="NEWA_ABBREVIATION_SIGN",e[e.NEWA_DOUBLE_COMMA=70746]="NEWA_DOUBLE_COMMA",e[e.NEWA_PLACEHOLDER_MARK=70747]="NEWA_PLACEHOLDER_MARK",e[e.NEWA_INSERTION_SIGN=70749]="NEWA_INSERTION_SIGN",e[e.TIRHUTA_ABBREVIATION_SIGN=70854]="TIRHUTA_ABBREVIATION_SIGN",e[e.SIDDHAM_SIGN_SIDDHAM=71105]="SIDDHAM_SIGN_SIDDHAM",e[e.SIDDHAM_DANDA=71106]="SIDDHAM_DANDA",e[e.SIDDHAM_DOUBLE_DANDA=71107]="SIDDHAM_DOUBLE_DANDA",e[e.SIDDHAM_SEPARATOR_DOT=71108]="SIDDHAM_SEPARATOR_DOT",e[e.SIDDHAM_SEPARATOR_BAR=71109]="SIDDHAM_SEPARATOR_BAR",e[e.SIDDHAM_REPETITION_MARK_1=71110]="SIDDHAM_REPETITION_MARK_1",e[e.SIDDHAM_REPETITION_MARK_2=71111]="SIDDHAM_REPETITION_MARK_2",e[e.SIDDHAM_REPETITION_MARK_3=71112]="SIDDHAM_REPETITION_MARK_3",e[e.SIDDHAM_END_OF_TEXT_MARK=71113]="SIDDHAM_END_OF_TEXT_MARK",e[e.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS=71114]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_U_SHAPED_ORNAMENTS",e[e.SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS=71115]="SIDDHAM_SECTION_MARK_WITH_TRIDENT_AND_DOTTED_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS=71116]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS=71117]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_DOUBLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS=71118]="SIDDHAM_SECTION_MARK_WITH_RAYS_AND_DOTTED_TRIPLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_DOUBLE_RING=71119]="SIDDHAM_SECTION_MARK_DOUBLE_RING",e[e.SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS=71120]="SIDDHAM_SECTION_MARK_DOUBLE_RING_WITH_RAYS",e[e.SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS=71121]="SIDDHAM_SECTION_MARK_WITH_DOUBLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS=71122]="SIDDHAM_SECTION_MARK_WITH_TRIPLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS=71123]="SIDDHAM_SECTION_MARK_WITH_QUADRUPLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS=71124]="SIDDHAM_SECTION_MARK_WITH_SEPTUPLE_CRESCENTS",e[e.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS=71125]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_RAYS",e[e.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES=71126]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_TWO_ENCLOSURES",e[e.SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES=71127]="SIDDHAM_SECTION_MARK_WITH_CIRCLES_AND_FOUR_ENCLOSURES",e[e.MODI_DANDA=71233]="MODI_DANDA",e[e.MODI_DOUBLE_DANDA=71234]="MODI_DOUBLE_DANDA",e[e.MODI_ABBREVIATION_SIGN=71235]="MODI_ABBREVIATION_SIGN",e[e.MONGOLIAN_BIRGA_WITH_ORNAMENT=71264]="MONGOLIAN_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_ROTATED_BIRGA=71265]="MONGOLIAN_ROTATED_BIRGA",e[e.MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT=71266]="MONGOLIAN_DOUBLE_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT=71267]="MONGOLIAN_TRIPLE_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT=71268]="MONGOLIAN_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT=71269]="MONGOLIAN_ROTATED_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT=71270]="MONGOLIAN_ROTATED_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.MONGOLIAN_INVERTED_BIRGA=71271]="MONGOLIAN_INVERTED_BIRGA",e[e.MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT=71272]="MONGOLIAN_INVERTED_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.MONGOLIAN_SWIRL_BIRGA=71273]="MONGOLIAN_SWIRL_BIRGA",e[e.MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT=71274]="MONGOLIAN_SWIRL_BIRGA_WITH_ORNAMENT",e[e.MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71275]="MONGOLIAN_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT=71276]="MONGOLIAN_TURNED_SWIRL_BIRGA_WITH_DOUBLE_ORNAMENT",e[e.AHOM_SIGN_SMALL_SECTION=71484]="AHOM_SIGN_SMALL_SECTION",e[e.AHOM_SIGN_SECTION=71485]="AHOM_SIGN_SECTION",e[e.AHOM_SIGN_RULAI=71486]="AHOM_SIGN_RULAI",e[e.DOGRA_ABBREVIATION_SIGN=71739]="DOGRA_ABBREVIATION_SIGN",e[e.DIVES_AKURU_DOUBLE_DANDA=72004]="DIVES_AKURU_DOUBLE_DANDA",e[e.DIVES_AKURU_GAP_FILLER=72005]="DIVES_AKURU_GAP_FILLER",e[e.DIVES_AKURU_END_OF_TEXT_MARK=72006]="DIVES_AKURU_END_OF_TEXT_MARK",e[e.NANDINAGARI_SIGN_SIDDHAM=72162]="NANDINAGARI_SIGN_SIDDHAM",e[e.ZANABAZAR_SQUARE_INITIAL_HEAD_MARK=72255]="ZANABAZAR_SQUARE_INITIAL_HEAD_MARK",e[e.ZANABAZAR_SQUARE_CLOSING_HEAD_MARK=72256]="ZANABAZAR_SQUARE_CLOSING_HEAD_MARK",e[e.ZANABAZAR_SQUARE_MARK_TSHEG=72257]="ZANABAZAR_SQUARE_MARK_TSHEG",e[e.ZANABAZAR_SQUARE_MARK_SHAD=72258]="ZANABAZAR_SQUARE_MARK_SHAD",e[e.ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD=72259]="ZANABAZAR_SQUARE_MARK_DOUBLE_SHAD",e[e.ZANABAZAR_SQUARE_MARK_LONG_TSHEG=72260]="ZANABAZAR_SQUARE_MARK_LONG_TSHEG",e[e.ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK=72261]="ZANABAZAR_SQUARE_INITIAL_DOUBLE_LINED_HEAD_MARK",e[e.ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK=72262]="ZANABAZAR_SQUARE_CLOSING_DOUBLE_LINED_HEAD_MARK",e[e.SOYOMBO_MARK_TSHEG=72346]="SOYOMBO_MARK_TSHEG",e[e.SOYOMBO_MARK_SHAD=72347]="SOYOMBO_MARK_SHAD",e[e.SOYOMBO_MARK_DOUBLE_SHAD=72348]="SOYOMBO_MARK_DOUBLE_SHAD",e[e.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME=72350]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_TRIPLE_FLAME",e[e.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME=72351]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN_AND_FLAME",e[e.SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN=72352]="SOYOMBO_HEAD_MARK_WITH_MOON_AND_SUN",e[e.SOYOMBO_TERMINAL_MARK_1=72353]="SOYOMBO_TERMINAL_MARK_1",e[e.SOYOMBO_TERMINAL_MARK_2=72354]="SOYOMBO_TERMINAL_MARK_2",e[e.BHAIKSUKI_DANDA=72769]="BHAIKSUKI_DANDA",e[e.BHAIKSUKI_DOUBLE_DANDA=72770]="BHAIKSUKI_DOUBLE_DANDA",e[e.BHAIKSUKI_WORD_SEPARATOR=72771]="BHAIKSUKI_WORD_SEPARATOR",e[e.BHAIKSUKI_GAP_FILLER_1=72772]="BHAIKSUKI_GAP_FILLER_1",e[e.BHAIKSUKI_GAP_FILLER_2=72773]="BHAIKSUKI_GAP_FILLER_2",e[e.MARCHEN_HEAD_MARK=72816]="MARCHEN_HEAD_MARK",e[e.MARCHEN_MARK_SHAD=72817]="MARCHEN_MARK_SHAD",e[e.MAKASAR_PASSIMBANG=73463]="MAKASAR_PASSIMBANG",e[e.MAKASAR_END_OF_SECTION=73464]="MAKASAR_END_OF_SECTION",e[e.TAMIL_PUNCTUATION_END_OF_TEXT=73727]="TAMIL_PUNCTUATION_END_OF_TEXT",e[e.CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER=74864]="CUNEIFORM_PUNCTUATION_SIGN_OLD_ASSYRIAN_WORD_DIVIDER",e[e.CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON=74865]="CUNEIFORM_PUNCTUATION_SIGN_VERTICAL_COLON",e[e.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON=74866]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_COLON",e[e.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON=74867]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_TRICOLON",e[e.CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON=74868]="CUNEIFORM_PUNCTUATION_SIGN_DIAGONAL_QUADCOLON",e[e.MRO_DANDA=92782]="MRO_DANDA",e[e.MRO_DOUBLE_DANDA=92783]="MRO_DOUBLE_DANDA",e[e.BASSA_VAH_FULL_STOP=92917]="BASSA_VAH_FULL_STOP",e[e.PAHAWH_HMONG_SIGN_VOS_THOM=92983]="PAHAWH_HMONG_SIGN_VOS_THOM",e[e.PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB=92984]="PAHAWH_HMONG_SIGN_VOS_TSHAB_CEEB",e[e.PAHAWH_HMONG_SIGN_CIM_CHEEM=92985]="PAHAWH_HMONG_SIGN_CIM_CHEEM",e[e.PAHAWH_HMONG_SIGN_VOS_THIAB=92986]="PAHAWH_HMONG_SIGN_VOS_THIAB",e[e.PAHAWH_HMONG_SIGN_VOS_FEEM=92987]="PAHAWH_HMONG_SIGN_VOS_FEEM",e[e.PAHAWH_HMONG_SIGN_XAUS=92996]="PAHAWH_HMONG_SIGN_XAUS",e[e.MEDEFAIDRIN_COMMA=93847]="MEDEFAIDRIN_COMMA",e[e.MEDEFAIDRIN_FULL_STOP=93848]="MEDEFAIDRIN_FULL_STOP",e[e.MEDEFAIDRIN_SYMBOL_AIVA=93849]="MEDEFAIDRIN_SYMBOL_AIVA",e[e.MEDEFAIDRIN_EXCLAMATION_OH=93850]="MEDEFAIDRIN_EXCLAMATION_OH",e[e.OLD_CHINESE_HOOK_MARK=94178]="OLD_CHINESE_HOOK_MARK",e[e.DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP=113823]="DUPLOYAN_PUNCTUATION_CHINOOK_FULL_STOP",e[e.SIGNWRITING_COMMA=121479]="SIGNWRITING_COMMA",e[e.SIGNWRITING_FULL_STOP=121480]="SIGNWRITING_FULL_STOP",e[e.SIGNWRITING_SEMICOLON=121481]="SIGNWRITING_SEMICOLON",e[e.SIGNWRITING_COLON=121482]="SIGNWRITING_COLON",e[e.SIGNWRITING_PARENTHESIS=121483]="SIGNWRITING_PARENTHESIS",e[e.ADLAM_INITIAL_EXCLAMATION_MARK=125278]="ADLAM_INITIAL_EXCLAMATION_MARK",e[e.ADLAM_INITIAL_QUESTION_MARK=125279]="ADLAM_INITIAL_QUESTION_MARK"})(XM||(XM={}));var QM;(function(e){e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.TIBETAN_MARK_GUG_RTAGS_GYON=3898]="TIBETAN_MARK_GUG_RTAGS_GYON",e[e.TIBETAN_MARK_ANG_KHANG_GYON=3900]="TIBETAN_MARK_ANG_KHANG_GYON",e[e.OGHAM_FEATHER_MARK=5787]="OGHAM_FEATHER_MARK",e[e.SINGLE_LOW_9_QUOTATION_MARK=8218]="SINGLE_LOW_9_QUOTATION_MARK",e[e.DOUBLE_LOW_9_QUOTATION_MARK=8222]="DOUBLE_LOW_9_QUOTATION_MARK",e[e.LEFT_SQUARE_BRACKET_WITH_QUILL=8261]="LEFT_SQUARE_BRACKET_WITH_QUILL",e[e.SUPERSCRIPT_LEFT_PARENTHESIS=8317]="SUPERSCRIPT_LEFT_PARENTHESIS",e[e.SUBSCRIPT_LEFT_PARENTHESIS=8333]="SUBSCRIPT_LEFT_PARENTHESIS",e[e.LEFT_CEILING=8968]="LEFT_CEILING",e[e.LEFT_FLOOR=8970]="LEFT_FLOOR",e[e.LEFT_POINTING_ANGLE_BRACKET=9001]="LEFT_POINTING_ANGLE_BRACKET",e[e.MEDIUM_LEFT_PARENTHESIS_ORNAMENT=10088]="MEDIUM_LEFT_PARENTHESIS_ORNAMENT",e[e.MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT=10090]="MEDIUM_FLATTENED_LEFT_PARENTHESIS_ORNAMENT",e[e.MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10092]="MEDIUM_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",e[e.HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT=10094]="HEAVY_LEFT_POINTING_ANGLE_QUOTATION_MARK_ORNAMENT",e[e.HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT=10096]="HEAVY_LEFT_POINTING_ANGLE_BRACKET_ORNAMENT",e[e.LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT=10098]="LIGHT_LEFT_TORTOISE_SHELL_BRACKET_ORNAMENT",e[e.MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT=10100]="MEDIUM_LEFT_CURLY_BRACKET_ORNAMENT",e[e.LEFT_S_SHAPED_BAG_DELIMITER=10181]="LEFT_S_SHAPED_BAG_DELIMITER",e[e.MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET=10214]="MATHEMATICAL_LEFT_WHITE_SQUARE_BRACKET",e[e.MATHEMATICAL_LEFT_ANGLE_BRACKET=10216]="MATHEMATICAL_LEFT_ANGLE_BRACKET",e[e.MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET=10218]="MATHEMATICAL_LEFT_DOUBLE_ANGLE_BRACKET",e[e.MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET=10220]="MATHEMATICAL_LEFT_WHITE_TORTOISE_SHELL_BRACKET",e[e.MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS=10222]="MATHEMATICAL_LEFT_FLATTENED_PARENTHESIS",e[e.LEFT_WHITE_CURLY_BRACKET=10627]="LEFT_WHITE_CURLY_BRACKET",e[e.LEFT_WHITE_PARENTHESIS=10629]="LEFT_WHITE_PARENTHESIS",e[e.Z_NOTATION_LEFT_IMAGE_BRACKET=10631]="Z_NOTATION_LEFT_IMAGE_BRACKET",e[e.Z_NOTATION_LEFT_BINDING_BRACKET=10633]="Z_NOTATION_LEFT_BINDING_BRACKET",e[e.LEFT_SQUARE_BRACKET_WITH_UNDERBAR=10635]="LEFT_SQUARE_BRACKET_WITH_UNDERBAR",e[e.LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER=10637]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_TOP_CORNER",e[e.LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER=10639]="LEFT_SQUARE_BRACKET_WITH_TICK_IN_BOTTOM_CORNER",e[e.LEFT_ANGLE_BRACKET_WITH_DOT=10641]="LEFT_ANGLE_BRACKET_WITH_DOT",e[e.LEFT_ARC_LESS_THAN_BRACKET=10643]="LEFT_ARC_LESS_THAN_BRACKET",e[e.DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET=10645]="DOUBLE_LEFT_ARC_GREATER_THAN_BRACKET",e[e.LEFT_BLACK_TORTOISE_SHELL_BRACKET=10647]="LEFT_BLACK_TORTOISE_SHELL_BRACKET",e[e.LEFT_WIGGLY_FENCE=10712]="LEFT_WIGGLY_FENCE",e[e.LEFT_DOUBLE_WIGGLY_FENCE=10714]="LEFT_DOUBLE_WIGGLY_FENCE",e[e.LEFT_POINTING_CURVED_ANGLE_BRACKET=10748]="LEFT_POINTING_CURVED_ANGLE_BRACKET",e[e.TOP_LEFT_HALF_BRACKET=11810]="TOP_LEFT_HALF_BRACKET",e[e.BOTTOM_LEFT_HALF_BRACKET=11812]="BOTTOM_LEFT_HALF_BRACKET",e[e.LEFT_SIDEWAYS_U_BRACKET=11814]="LEFT_SIDEWAYS_U_BRACKET",e[e.LEFT_DOUBLE_PARENTHESIS=11816]="LEFT_DOUBLE_PARENTHESIS",e[e.DOUBLE_LOW_REVERSED_9_QUOTATION_MARK=11842]="DOUBLE_LOW_REVERSED_9_QUOTATION_MARK",e[e.LEFT_ANGLE_BRACKET=12296]="LEFT_ANGLE_BRACKET",e[e.LEFT_DOUBLE_ANGLE_BRACKET=12298]="LEFT_DOUBLE_ANGLE_BRACKET",e[e.LEFT_CORNER_BRACKET=12300]="LEFT_CORNER_BRACKET",e[e.LEFT_WHITE_CORNER_BRACKET=12302]="LEFT_WHITE_CORNER_BRACKET",e[e.LEFT_BLACK_LENTICULAR_BRACKET=12304]="LEFT_BLACK_LENTICULAR_BRACKET",e[e.LEFT_TORTOISE_SHELL_BRACKET=12308]="LEFT_TORTOISE_SHELL_BRACKET",e[e.LEFT_WHITE_LENTICULAR_BRACKET=12310]="LEFT_WHITE_LENTICULAR_BRACKET",e[e.LEFT_WHITE_TORTOISE_SHELL_BRACKET=12312]="LEFT_WHITE_TORTOISE_SHELL_BRACKET",e[e.LEFT_WHITE_SQUARE_BRACKET=12314]="LEFT_WHITE_SQUARE_BRACKET",e[e.REVERSED_DOUBLE_PRIME_QUOTATION_MARK=12317]="REVERSED_DOUBLE_PRIME_QUOTATION_MARK",e[e.ORNATE_RIGHT_PARENTHESIS=64831]="ORNATE_RIGHT_PARENTHESIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET=65047]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_LENTICULAR_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS=65077]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_PARENTHESIS",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET=65079]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CURLY_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET=65081]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_TORTOISE_SHELL_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET=65083]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_BLACK_LENTICULAR_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET=65085]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_DOUBLE_ANGLE_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET=65087]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_ANGLE_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET=65089]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_CORNER_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET=65091]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_WHITE_CORNER_BRACKET",e[e.PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET=65095]="PRESENTATION_FORM_FOR_VERTICAL_LEFT_SQUARE_BRACKET",e[e.SMALL_LEFT_PARENTHESIS=65113]="SMALL_LEFT_PARENTHESIS",e[e.SMALL_LEFT_CURLY_BRACKET=65115]="SMALL_LEFT_CURLY_BRACKET",e[e.SMALL_LEFT_TORTOISE_SHELL_BRACKET=65117]="SMALL_LEFT_TORTOISE_SHELL_BRACKET",e[e.FULLWIDTH_LEFT_PARENTHESIS=65288]="FULLWIDTH_LEFT_PARENTHESIS",e[e.FULLWIDTH_LEFT_SQUARE_BRACKET=65339]="FULLWIDTH_LEFT_SQUARE_BRACKET",e[e.FULLWIDTH_LEFT_CURLY_BRACKET=65371]="FULLWIDTH_LEFT_CURLY_BRACKET",e[e.FULLWIDTH_LEFT_WHITE_PARENTHESIS=65375]="FULLWIDTH_LEFT_WHITE_PARENTHESIS",e[e.HALFWIDTH_LEFT_CORNER_BRACKET=65378]="HALFWIDTH_LEFT_CORNER_BRACKET"})(QM||(QM={}));var ZM;(function(e){e[e.SPACE=32]="SPACE",e[e.NO_BREAK_SPACE=160]="NO_BREAK_SPACE",e[e.OGHAM_SPACE_MARK=5760]="OGHAM_SPACE_MARK",e[e.EN_QUAD=8192]="EN_QUAD",e[e.EM_QUAD=8193]="EM_QUAD",e[e.EN_SPACE=8194]="EN_SPACE",e[e.EM_SPACE=8195]="EM_SPACE",e[e.THREE_PER_EM_SPACE=8196]="THREE_PER_EM_SPACE",e[e.FOUR_PER_EM_SPACE=8197]="FOUR_PER_EM_SPACE",e[e.SIX_PER_EM_SPACE=8198]="SIX_PER_EM_SPACE",e[e.FIGURE_SPACE=8199]="FIGURE_SPACE",e[e.PUNCTUATION_SPACE=8200]="PUNCTUATION_SPACE",e[e.THIN_SPACE=8201]="THIN_SPACE",e[e.HAIR_SPACE=8202]="HAIR_SPACE",e[e.NARROW_NO_BREAK_SPACE=8239]="NARROW_NO_BREAK_SPACE",e[e.MEDIUM_MATHEMATICAL_SPACE=8287]="MEDIUM_MATHEMATICAL_SPACE",e[e.IDEOGRAPHIC_SPACE=12288]="IDEOGRAPHIC_SPACE"})(ZM||(ZM={}));var Rr;(function(e){e[e.LINE_END=-1]="LINE_END",e[e.SPACE=-2]="SPACE"})(Rr||(Rr={}));function Xv(e){const t=[...new Set(e)].sort((o,i)=>o-i),r=t.length;if(r<8)return[o=>{for(let i=0;is+i);++i);n.push(s,s+i)}if(n.length*1.5{for(let s=0;s{let s=0,a=o;for(;s>>1;i{let i=0,s=r;for(;i>>1;otypeof t=="number")}Xv([H.HT,H.LF,H.VT,H.FF,H.CR,H.SPACE]);const[Cgt,Ngt]=Xv([H.EXCLAMATION_MARK,H.DOUBLE_QUOTE,H.NUMBER_SIGN,H.DOLLAR_SIGN,H.PERCENT_SIGN,H.AMPERSAND,H.SINGLE_QUOTE,H.OPEN_PARENTHESIS,H.CLOSE_PARENTHESIS,H.ASTERISK,H.PLUS_SIGN,H.COMMA,H.MINUS_SIGN,H.DOT,H.SLASH,H.COLON,H.SEMICOLON,H.OPEN_ANGLE,H.EQUALS_SIGN,H.CLOSE_ANGLE,H.QUESTION_MARK,H.AT_SIGN,H.OPEN_BRACKET,H.BACKSLASH,H.CLOSE_BRACKET,H.CARET,H.UNDERSCORE,H.BACKTICK,H.OPEN_BRACE,H.VERTICAL_SLASH,H.CLOSE_BRACE,H.TILDE]),_c=e=>e>=H.DIGIT0&&e<=H.DIGIT9,uH=e=>e>=H.LOWERCASE_A&&e<=H.LOWERCASE_Z,qE=e=>e>=H.UPPERCASE_A&&e<=H.UPPERCASE_Z,k1=e=>uH(e)||qE(e),Pd=e=>uH(e)||qE(e)||_c(e),Rgt=e=>e>=H.NUL&&e<=H.DELETE,[cH,R_t]=Xv([H.NUL,H.SOH,H.STX,H.ETX,H.EOT,H.ENQ,H.ACK,H.BEL,H.BS,H.HT,H.LF,H.VT,H.FF,H.CR,H.SO,H.SI,H.DLE,H.DC1,H.DC2,H.DC3,H.DC4,H.NAK,H.SYN,H.ETB,H.CAN,H.EM,H.SUB,H.ESC,H.FS,H.GS,H.RS,H.US,H.DELETE]),[An,O_t]=Xv([H.VT,H.FF,H.SPACE,Rr.SPACE,Rr.LINE_END]);H.SPACE,Rr.SPACE;const Ec=e=>e===H.SPACE||e===Rr.SPACE,fH=e=>e===Rr.LINE_END,[ch,D_t]=Xv([...Ngt,...md(GM),...md(KM),...md(VM),...md(UM),...md(YM),...md(XM),...md(QM)]),iF=e=>Ec(e)||fH(e),[Rh,F_t]=Xv([H.HT,H.LF,H.FF,H.CR,Rr.SPACE,Rr.LINE_END,...md(ZM)]);var C_;(function(e){e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(C_||(C_={}));function Ogt(){const e=(o,i)=>{if(o.length<=4){for(let l=0;l=i)return l;return o.length}let s=0,a=o.length;for(;s>>1;o[l].key{let s=t;for(const a of o){const l=e(s.children,a);if(l>=s.children.length){const c={key:a,children:[]};s.children.push(c),s=c;continue}let u=s.children[l];if(u.key===a){s=u;continue}u={key:a,children:[]},s.children.splice(l,0,u),s=u}s.value=i},search:(o,i,s)=>{let a=t;for(let l=i;l=a.children.length)return null;const f=a.children[c];if(f.key!==u)return null;if(f.value!=null)return{nextIndex:l+1,value:f.value};a=f}return null}}}const Rme=Ogt();Igt.forEach(e=>Rme.insert(e.key,e.value));function Dgt(e,t,r){if(t+1>=r)return null;const n=Rme.search(e,t,r);if(n!=null)return n;if(e[t].codePoint!==H.NUMBER_SIGN)return null;let o=0,i=t+1;if(e[i].codePoint===H.LOWERCASE_X||e[i].codePoint===H.UPPERCASE_X){i+=1;for(let a=1;a<=6&&i=H.UPPERCASE_A&&l<=H.UPPERCASE_F){o=(o<<4)+(l-H.UPPERCASE_A+10);continue}if(l>=H.LOWERCASE_A&&l<=H.LOWERCASE_F){o=(o<<4)+(l-H.LOWERCASE_A+10);continue}break}}else for(let a=1;a<=7&&i=r||e[i].codePoint!==H.SEMICOLON)return null;let s;try{o===0&&(o=C_.REPLACEMENT_CHARACTER),s=String.fromCodePoint(o)}catch{s=String.fromCodePoint(C_.REPLACEMENT_CHARACTER)}return{nextIndex:i+1,value:s}}function Fgt(e){return Array.from(e).map(t=>Tgt[t]??t).join("")}(()=>{try{const e=new RegExp("\\p{Script=Han}|[\\u{3002}\\u{ff1f}\\u{ff01}\\u{ff0c}\\u{3001}\\u{ff1b}\\u{ff1a}\\u{201c}\\u{201d}\\u{2018}\\u{2019}\\u{ff08}\\u{ff09}\\u{300a}\\u{300b}\\u{3008}\\u{3009}\\u{3010}\\u{3011}\\u{300e}\\u{300f}\\u{300c}\\u{300d}\\u{fe43}\\u{fe44}\\u{3014}\\u{3015}\\u{2026}\\u{2014}\\u{ff5e}\\u{fe4f}\\u{ffe5}]","u").source,t=new RegExp(`(${e})\\n+(${e})`,"gu");return r=>r.replace(t,"$1$2")}catch{const e=/[\u{4E00}-\u{9FCC}\u{3400}-\u{4DB5}\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]|[\u{d840}-\u{d868}][\u{dc00}-\u{dfff}]|\u{d869}[\u{dc00}-\u{ded6}\u{df00}-\u{dfff}]|[\u{d86a}-\u{d86c}][\u{dc00}-\u{dfff}]|\u{d86d}[\u{dc00}-\u{df34}\u{df40}-\u{dfff}]|\u{d86e}[\u{dc00}-\u{dc1d}]/u.source,t=new RegExp(`(${e})\\n+(${e})`,"gu");return r=>r.replace(t,"$1$2")}})();(()=>{try{const e=new RegExp("\\p{Script=Han}|[\\u{3002}\\u{ff1f}\\u{ff01}\\u{ff0c}\\u{3001}\\u{ff1b}\\u{ff1a}\\u{201c}\\u{201d}\\u{2018}\\u{2019}\\u{ff08}\\u{ff09}\\u{300a}\\u{300b}\\u{3008}\\u{3009}\\u{3010}\\u{3011}\\u{300e}\\u{300f}\\u{300c}\\u{300d}\\u{fe43}\\u{fe44}\\u{3014}\\u{3015}\\u{2026}\\u{2014}\\u{ff5e}\\u{fe4f}\\u{ffe5}]","u").source,t=new RegExp(`(${e})[\\s\\n]+(${e})`,"gu");return r=>r.replace(t,"$1$2")}catch{const e=/[\u{4E00}-\u{9FCC}\u{3400}-\u{4DB5}\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]|[\u{d840}-\u{d868}][\u{dc00}-\u{dfff}]|\u{d869}[\u{dc00}-\u{ded6}\u{df00}-\u{dfff}]|[\u{d86a}-\u{d86c}][\u{dc00}-\u{dfff}]|\u{d86d}[\u{dc00}-\u{df34}\u{df40}-\u{dfff}]|\u{d86e}[\u{dc00}-\u{dc1d}]/u.source,t=new RegExp(`(${e})[\\s\\n]+(${e})`,"gu");return r=>r.replace(t,"$1$2")}})();function*Bgt(e){let t=0,r=1,n=1;const o=typeof e=="string"?[e]:e;for(const i of o){const s=[];for(const u of i){const c=u.codePointAt(0);s.push(c)}const a=[],l=s.length;for(let u=0;u>2,u=s-i&3;for(let c=0;c>2,u=s-i&3;for(let c=0;c!0;if(e instanceof Function)return e;if(e.length===0)return()=>!1;if(e.length===1){const t=e[0];return r=>r.type===t}if(e.length===2){const[t,r]=e;return n=>n.type===t||n.type===r}return t=>{for(const r of e)if(t.type===r)return!0;return!1}}function Lgt(e,t,r){const n=Mgt(t),o=i=>{const{children:s}=i;for(let a=0;a{const n={};Lgt(e,t,s=>{const a=s;n[a.identifier]===void 0&&(n[a.identifier]=a)});const o=[];for(const s of r)n[s.identifier]===void 0&&(n[s.identifier]=s,o.push(s));return{root:o.length>0?{...e,children:e.children.concat(o)}:e,definitionMap:n}},Qn=mi({root:{"--colorBgBlockquote":"none","--colorBgTableHead":"hsl(0deg, 0%, 94%)","--colorBgTableEvenRow":"hsl(0deg, 0%, 96%)","--colorBgTableOddRow":"hsl(0deg, 0%, 100%)","--colorBorderBlockquote":"hsl(210deg, 13%, 85%)","--colorBorderHeading":"hsl(0deg, 0%, 80%)","--colorBorderImage":"hsl(277deg, 19%, 47%)","--colorBorderTable":"hsl(220deg, 7%, 90%)","--colorBgCode":"#f5f7f9","--colorDelete":"hsl(210deg, 8%, 65%)","--colorHeading":"hsl(0deg, 0%, 25%)","--colorImageTitle":"hsl(0deg, 0%, 50%)","--colorInlineCode":"hsl(348deg, 60%, 47%)","--colorLink":"hsl(206deg, 53%, 47%)","--colorLinkActive":"hsl(206deg, 53%, 52%)","--colorLinkHover":"hsl(206deg, 53%, 52%)","--colorLinkVisited":"hsl(206deg, 53%, 47%)","--fontFamilyCode":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif","--fontFamilyHeading":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif"},rootDarken:{"&&":{"--colorBgBlockquote":"none","--colorBgTableHead":"hsl(200deg, 10%, 16%)","--colorBgTableEvenRow":"hsl(200deg, 10%, 16%)","--colorBgTableOddRow":"hsl(0deg, 0%, 9%)","--colorBorderBlockquote":"hsl(207deg, 7%, 45%)","--colorBorderHeading":"hsla(0deg, 0%, 30%, 0.8)","--colorBorderImage":"hsl(290deg, 15%, 49%)","--colorBorderTable":"hsl(0deg, 0%, 50%)","--colorBgCode":"hsl(0deg, 0%, 12%)","--colorDelete":"hsl(220deg, 5%, 68%)","--colorHeading":"hsl(0deg, 0%, 65%)","--colorImageTitle":"hsl(0deg, 0%, 50%)","--colorInlineCode":"hsl(348deg, 70%, 52%)","--colorLink":"hsl(207deg, 53%, 50%)","--colorLinkActive":"hsl(207deg, 53%, 50%)","--colorLinkHover":"hsl(207deg, 53%, 50%)","--colorLinkVisited":"hsl(207deg, 53%, 50%)","--fontFamilyCode":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif","--fontFamilyHeading":"Consolas, 'Source Code Pro', 'Roboto Mono', monospace, sans-serif"}},blockquote:{},break:{},code:{},delete:{},emphasis:{},heading:{},image:{},imageReference:{},inlineCode:{},link:{},linkReference:{},list:{},listItem:{},paragraph:{},strong:{},table:{},text:{},thematicBreak:{}}),dH=re.createContext(null);dH.displayName="NodeRendererContextType";const W5=()=>re.useContext(dH);class zgt extends Wpe{constructor(t){super(),this.preferCodeWrap$=new Vo(!1);const{definitionMap:r,rendererMap:n,showCodeLineno:o,themeScheme:i}=t;this.definitionMap$=new Vo(r),this.rendererMap$=new Vo(n),this.showCodeLineno$=new Vo(o),this.themeScheme$=new Vo(i)}}const Ra=e=>{const{nodes:t}=e,{viewmodel:r}=W5(),n=oo(r.rendererMap$);return!Array.isArray(t)||t.length<=0?N.jsx(re.Fragment,{}):N.jsx(Hgt,{nodes:t,rendererMap:n})};class Hgt extends re.Component{shouldComponentUpdate(t){const r=this.props;return!Xb.isEqual(r.nodes,t.nodes)||r.rendererMap!==t.rendererMap}render(){const{nodes:t,rendererMap:r}=this.props;return N.jsx(re.Fragment,{children:t.map((n,o)=>{const i=`${n.type}-${o}`,s=r[n.type]??r._fallback;return N.jsx(s,{...n},i)})})}}var Vu;(function(e){e.BLOCK="block",e.INLINE="inline"})(Vu||(Vu={}));var yn;(function(e){e[e.ATOMIC=10]="ATOMIC",e[e.FENCED_BLOCK=10]="FENCED_BLOCK",e[e.CONTAINING_BLOCK=10]="CONTAINING_BLOCK",e[e.INTERRUPTABLE_BLOCK=2]="INTERRUPTABLE_BLOCK",e[e.IMAGES=4]="IMAGES",e[e.LINKS=3]="LINKS",e[e.CONTAINING_INLINE=2]="CONTAINING_INLINE",e[e.SOFT_INLINE=1]="SOFT_INLINE",e[e.FALLBACK=-1]="FALLBACK"})(yn||(yn={}));class Dl{constructor(t){Be(this,"type",Vu.INLINE);Be(this,"name");Be(this,"priority");this.name=t.name,this.priority=t.priority}toString(){return this.name}}function*xu(e){let t=-1,r=null;for(;;){const[n,o]=yield r;t===o&&(r==null||r.startIndex>=n)||(t=o,r=e(n,o))}}class Tu{constructor(t){Be(this,"type",Vu.BLOCK);Be(this,"name");Be(this,"priority");this.name=t.name,this.priority=t.priority}extractPhrasingContentLines(t){return null}buildBlockToken(t,r){return null}toString(){return this.name}}function Hs(e,t){const{line:r,column:n,offset:o}=e[t];return{line:r,column:n,offset:o}}function Jo(e,t){const{line:r,column:n,offset:o}=e[t];return{line:r,column:n+1,offset:o+1}}function Ome(e){const t=e[0],r=e[e.length-1];return{start:Hs(t.nodePoints,t.startIndex),end:Jo(r.nodePoints,r.endIndex-1)}}function hH(e,t=0,r=e.length){if(t>=r||t<0||r>e.length)return[];const n=[];for(let o=t;o=r||t<0||r>e.length)return[];for(let l=t;l+1=0;--a){const l=o[a];if(!An(l.codePoint))break}for(let l=s;l<=a;++l)n.push(o[l]);return n}function $gt(e){let t=e;for(;;)try{const r=decodeURIComponent(t);if(r===t)break;t=r}catch{break}return encodeURI(t)}function Dme(e){const t=e.trim().replace(/\s+/gu," ").toLowerCase();return Fgt(t)}function Pgt(e,t,r){const n=Na(e,t,r,!0);if(n.length<=0)return null;const o=Dme(n);return{label:n,identifier:o}}function U0(e,t,r){let n=t+1;const o=Math.min(n+1e3,r);for(;nt;--r){const n=e[r];if(n.firstNonWhitespaceIndexr?[]:e.slice(t,r+1)}const Wgt="Invariant failed";function db(e,t){if(!e)throw new Error(Wgt)}const Bme=(e,t)=>{const r={_tokenizer:"root",nodeType:"root",position:{start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}},children:[]},n=[];n.push({hook:{isContainingBlock:!0},token:r});let o=0;const i=h=>{for(let g=o;g>=0;--g){const v=n[g];v.token.position.end={...h}}},s=(h,g)=>{if(g.length<=0)return null;const v=e.filter(E=>E!==h),y=Bme(v,t);for(const E of g)y.consume(E);return y},a=()=>{const h=n.pop();if(h!=null){if(n.length>0){const g=n[n.length-1];if(h.hook.onClose!=null){const v=h.hook.onClose(h.token);if(v!=null)switch(v.status){case"closingAndRollback":{const y=s(h.hook,v.lines);if(y==null)break;const E=y.done();g.token.children.push(...E.children);break}case"failedAndRollback":{g.token.children.pop();const y=s(h.hook,v.lines);if(y==null)break;const E=y.done();g.token.children.push(...E.children);break}}}}return o>=n.length&&(o=n.length-1),h}},l=h=>{for(;n.length>h;)a()},u=(h,g,v)=>{l(o+1),n[o].token.children.push(g),i(g.position.end),o+=1,n.push({hook:h,token:g}),v&&a()},c=(h,g,v)=>{const y=s(h,g);if(y==null)return!1;const E=y.shallowSnapshot(),_=E[0];_.token.children!=null&&v.token.children.push(..._.token.children),i(_.token.position.end);for(let S=1;S{const{nodePoints:g,startIndex:v,endIndex:y}=h;let{firstNonWhitespaceIndex:E,countOfPrecedeSpaces:_,startIndex:S}=h;const b=()=>({nodePoints:g,startIndex:S,endIndex:y,firstNonWhitespaceIndex:E,countOfPrecedeSpaces:_}),k=(D,L)=>{if(db(S<=D),L){const M=Jo(g,D-1);i(M)}if(S!==D)for(S=D,_=0,E=D;E{const{token:M}=n[o],W=D.eatOpener(L,M);if(W==null)return!1;db(W.nextIndex>S,`[consumeNewOpener] The marker of the new data node cannot be empty. + tokenizer(${W.token._tokenizer})`),k(W.nextIndex,!1);const z=W.token;return z._tokenizer=D.name,u(D,z,!!W.saturated),!0},x=(D,L)=>{if(D.eatAndInterruptPreviousSibling==null)return!1;const{hook:M,token:W}=n[o],{token:z}=n[o-1];if(D.priority<=M.priority)return!1;const F=D.eatAndInterruptPreviousSibling(L,W,z);if(F==null)return!1;l(o),z.children.pop(),F.remainingSibling!=null&&(Array.isArray(F.remainingSibling)?z.children.push(...F.remainingSibling):z.children.push(F.remainingSibling)),k(F.nextIndex,!1);const P=F.token;return P._tokenizer=D.name,u(D,P,!!F.saturated),!0},I=()=>{if(o=1,n.length<2)return;let{token:D}=n[o-1];for(;SK!==M&&x(K,W)))break;const z=M.eatContinuationText==null?{status:"notMatched"}:M.eatContinuationText(W,L.token,D);let F=!1,P=!1;switch(z.status){case"failedAndRollback":{if(D.children.pop(),n.length=o,o-=1,z.lines.length>0){const K=n[o];if(c(M,z.lines,K)){P=!0;break}}F=!0;break}case"closingAndRollback":{if(l(o),z.lines.length>0){const K=n[o];if(c(M,z.lines,K)){P=!0;break}}F=!0;break}case"notMatched":{o-=1,F=!0;break}case"closing":{k(z.nextIndex,!0),o-=1,F=!0;break}case"opening":{k(z.nextIndex,!0);break}default:throw new TypeError(`[eatContinuationText] unexpected status (${z.status}).`)}if(F)break;P||(o+=1,D=L.token)}},C=()=>{if(!(S>=y)){if(o=4)return}else o=n.length-1;for(;S{if(S>=y||o+1>=n.length)return!1;const{hook:D,token:L}=n[n.length-1];if(D.eatLazyContinuationText==null)return!1;const{token:M}=n[n.length-2],W=b(),z=D.eatLazyContinuationText(W,L,M);switch(z.status){case"notMatched":return!1;case"opening":return o=n.length-1,k(z.nextIndex,!0),o=n.length-1,!0;default:throw new TypeError(`[eatLazyContinuationText] unexpected status (${z.status}).`)}};if(I(),C(),R()||l(o+1),t!=null&&S=y)},done:()=>{for(;n.length>1;)a();return r},shallowSnapshot:()=>[...n]}},Ggt=()=>{let e=0;const t=[],r=[],n=[],o=f=>{let d=f-1;for(;d>=0&&r[d].inactive;)d-=1;r.length=d+1},i=(f,d)=>{r.push({hook:f,delimiter:d,inactive:!1,tokenStackIndex:n.length})},s=(f,d)=>{if(r.length<=0)return null;let h=null;for(let g=r.length-1;g>=0;--g){if(h=r[g],h.inactive||h.hook!==f)continue;const v=h.delimiter,y=f.isDelimiterPair(v,d,t);if(y.paired)return v;if(!y.closer)return null}return null},a=(f,d)=>{if(r.length<=0)return d;let h,g=d,v=[];for(let y=r.length-1;y>=0;--y){const E=r[y];if(E.hook!==f||E.inactive)continue;const _=E.tokenStackIndex;for(_0){for(const T of k)T._tokenizer=f.name;v.unshift(...k)}h=void 0,E.inactive=!0}if(!S.closer){const k=f.processSingleDelimiter(g);if(k.length>0){for(const T of k)T._tokenizer=f.name;v.push(...k)}g=void 0}break}const b=f.processDelimiterPair(h,g,v);{for(const k of b.tokens)k._tokenizer==null&&(k._tokenizer=f.name);v=b.tokens}h=b.remainOpenerDelimiter,g=b.remainCloserDelimiter,o(y),y=Math.min(y,r.length),h!=null&&i(f,h)}if(g==null||g.type==="full")break}if(n.push(...v),g==null)return null;if(g.type==="full"||g.type==="closer"){const y=f.processSingleDelimiter(g);for(const E of y)E._tokenizer=f.name,n.push(E);return null}return g};return{process:(f,d)=>{for(;e=d.endIndex)break;h.startIndex>=d.startIndex||n.push(h)}switch(d.type){case"opener":{i(f,d);break}case"both":{const h=a(f,d);h!=null&&i(f,h);break}case"closer":{a(f,d);break}case"full":{const h=f.processSingleDelimiter(d);for(const g of h)g._tokenizer=f.name,n.push(g);break}default:throw new TypeError(`Unexpected delimiter type(${d.type}) from ${f.name}.`)}},done:()=>{const f=[];for(const{delimiter:h,hook:g}of r){const v=g.processSingleDelimiter(h);for(const y of v)y._tokenizer=g.name,f.push(y)}if(r.length=0,f.length>0){const h=Kgt(n,f);n.length=0,n.push(...h)}return n.concat(t.slice(e))},reset:f=>{t.length=f.length;for(let d=0;d{if(e.length<=0)return t;if(t.length<=0)return e;const r=[];let n=0,o=0;for(;n{const r=(i,s,a)=>{let l=[],u=null;const c=[i,s];for(const d of a){const h=d.findDelimiter(c);if(h!=null){if(u!=null){if(h.startIndex>u)continue;h.startIndex1){let d=0;for(const h of l){const g=h.delimiter.type;if(g==="full")return{items:[h],nextIndex:h.delimiter.endIndex};(g==="both"||g==="closer")&&(d+=1)}if(d>1){let h=-1,g=-1;for(let y=0;y-1?[l[h]]:l.filter(y=>y.delimiter.type!=="closer"),nextIndex:f}}}return{items:l,nextIndex:f}},n=Ggt();return{process:(i,s,a)=>{let l=i;for(let u=t;u{const n=[];for(let o=0;o{let d=s.process(u,c,f);return d=r(d,c,f),d}}),l=e[o].priority;for(;o{let r;const n=e.match(t);return{isDelimiterPair:()=>({paired:!0}),processDelimiterPair:(o,i,s)=>({tokens:s}),processSingleDelimiter:()=>[],...n,name:e.name,priority:e.priority,findDelimiter:o=>r.next(o).value,reset:()=>{r=n.findDelimiter(),r.next()}}};function Ygt(e){const{inlineTokenizers:t,inlineTokenizerMap:r,blockTokenizers:n,blockTokenizerMap:o,blockFallbackTokenizer:i,inlineFallbackTokenizer:s,shouldReservePosition:a,presetDefinitions:l,presetFootnoteDefinitions:u,formatUrl:c}=e;let f=!1;const d=new Set,h=new Set;let g=[],v=-1,y=-1;const E=Object.freeze({matchBlockApi:{extractPhrasingLines:C,rollbackPhrasingLines:R,registerDefinitionIdentifier:P=>{f&&d.add(P)},registerFootnoteDefinitionIdentifier:P=>{f&&h.add(P)}},parseBlockApi:{shouldReservePosition:a,formatUrl:c,processInlines:W,parseBlockTokens:M},matchInlineApi:{hasDefinition:P=>d.has(P),hasFootnoteDefinition:P=>h.has(P),getNodePoints:()=>g,getBlockStartIndex:()=>v,getBlockEndIndex:()=>y,resolveFallbackTokens:D},parseInlineApi:{shouldReservePosition:a,calcPosition:P=>({start:Hs(g,P.startIndex),end:Jo(g,P.endIndex-1)}),formatUrl:c,getNodePoints:()=>g,hasDefinition:P=>d.has(P),hasFootnoteDefinition:P=>h.has(P),parseInlineTokens:F}}),_=n.map(P=>({...P.match(E.matchBlockApi),name:P.name,priority:P.priority})),S=new Map(Array.from(o.entries()).map(P=>[P[0],P[1].parse(E.parseBlockApi)])),b=i?{...i.match(E.matchBlockApi),name:i.name,priority:i.priority}:null,k=Vgt(t,E.matchInlineApi,D),T=new Map(Array.from(r.entries()).map(P=>[P[0],P[1].parse(E.parseInlineApi)])),x=Mme(k,0);return{process:I};function I(P){d.clear(),h.clear(),f=!0;const K=L(P);f=!1;for(const J of l)d.add(J.identifier);for(const J of u)h.add(J.identifier);const V=M(K.children);return a?{type:"root",position:K.position,children:V}:{type:"root",children:V}}function C(P){const K=o.get(P._tokenizer);return(K==null?void 0:K.extractPhrasingContentLines(P))??null}function R(P,K){if(K!=null){const Z=o.get(K._tokenizer);if(Z!==void 0&&Z.buildBlockToken!=null){const J=Z.buildBlockToken(P,K);if(J!==null)return J._tokenizer=Z.name,[J]}}return L([P]).children}function D(P,K,V){if(s==null)return P;let Z=K;const J=[];for(const ee of P){if(Zs.priority)break}i<0||i>=t.length?t.push(n):t.splice(i,0,n)}_unregisterTokenizer(t,r,n){var a,l;const o=typeof n=="string"?n:n.name;if(!r.delete(o))return;((a=this.blockFallbackTokenizer)==null?void 0:a.name)===o&&(this.blockFallbackTokenizer=null),((l=this.inlineFallbackTokenizer)==null?void 0:l.name)===o&&(this.inlineFallbackTokenizer=null);const s=t.findIndex(u=>u.name===o);s>=0&&t.splice(s,1)}}function Zgt(e,t,r){let n=t;for(;n=r||e[n].codePoint!==H.AT_SIGN||!Pd(e[n+1].codePoint))return{valid:!1,nextIndex:n+1};for(n=ure(e,n+2,r);n+1=t?o+1:t}function Jgt(e,t,r){const n=Lme(e,t,r);let{nextIndex:o}=n;if(!n.valid||o>=r||e[o].codePoint!==H.COLON)return{valid:!1,nextIndex:o};for(o+=1;o32?{valid:!1,nextIndex:n+1}:{valid:!0,nextIndex:n}}const evt=[{contentType:"uri",eat:Jgt},{contentType:"email",eat:Zgt}],tvt=function(e){return{findDelimiter:()=>xu(t),processSingleDelimiter:r};function t(n,o){const i=e.getNodePoints();for(let s=n;st.map(r=>{const n=e.getNodePoints();let o=Na(n,r.startIndex+1,r.endIndex-1);r.contentType==="email"&&(o="mailto:"+o);const i=e.formatUrl(o),s=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:mu,position:e.calcPosition(r),url:i,children:s}:{type:mu,url:i,children:s}})}},nvt="@yozora/tokenizer-autolink";class ovt extends Dl{constructor(r={}){super({name:r.name??nvt,priority:r.priority??yn.ATOMIC});Be(this,"match",tvt);Be(this,"parse",rvt)}}function ivt(e,t,r){let n=t;if(n>=r||!Pd(e[n].codePoint))return{valid:!1,nextIndex:n+1};for(n+=1;n=r||e[n].codePoint!==H.AT_SIGN||!Pd(e[n+1].codePoint))return{valid:!1,nextIndex:n+1};let o=0;for(n+=2;n=r||e[o].codePoint!==H.COLON||e[o+1].codePoint!==H.SLASH||e[o+2].codePoint!==H.SLASH)return{valid:!1,nextIndex:o+1};const i=zme(e,o+3,r);return i.nextIndex=jme(e,i.nextIndex,r),i}function avt(e,t,r){const n=JM(e,t,r),o=n.nextIndex;if(!n.valid||o>=r||e[o].codePoint!==H.DOT||o-t!==3)return{valid:!1,nextIndex:o};for(let s=t;s=t;n-=1){const o=e[n].codePoint;if(!(ch(o)||o===H.QUESTION_MARK||o===H.EXCLAMATION_MARK||o===H.DOT||o===H.COMMA||o===H.COLON||o===H.ASTERISK||o===H.UNDERSCORE||o===H.TILDE))break}if(n>=t&&n+10){for(n+=2,o-=1;n0&&e[n].codePoint===H.CLOSE_PARENTHESIS;)o-=1,n+=1;n-=1}}if(n+1=t;--o){const i=e[o].codePoint;if(!Pd(i))break}o>=t&&e[o].codePoint===H.AMPERSAND&&(n=o-1)}return n+1}function zme(e,t,r){const n=JM(e,t,r);if(!n.valid||n.nextIndex>=r)return{valid:!1,nextIndex:n.nextIndex};let o=n.nextIndex,i=0,s=n.hasUnderscore?2:0;for(;o>>=1,s|=a.hasUnderscore?2:0}return i<=0&&s===0?{valid:!1,nextIndex:o}:{valid:!0,nextIndex:o}}function JM(e,t,r){let n=t,o=!1;for(;nt?{valid:!0,nextIndex:n,hasUnderscore:o}:{valid:!1,nextIndex:n,hasUnderscore:o}}const lvt=[{contentType:"uri",eat:svt},{contentType:"uri-www",eat:avt},{contentType:"email",eat:ivt}],uvt=function(e){return{findDelimiter:()=>xu(t),processSingleDelimiter:r};function t(n,o){const i=e.getNodePoints(),s=e.getBlockStartIndex();for(let a=n;a=o)break;a=c}let l=o,u=null;for(const c of lvt){const f=c.eat(i,a,o);if(l=Math.min(l,f.nextIndex),f.valid){u=c.contentType,l=f.nextIndex;break}}if(u==null){a=Math.max(a,l-1);continue}if(l<=o)return{type:"full",startIndex:a,endIndex:l,contentType:u};a=l-1}return null}function r(n){return[{nodeType:mu,startIndex:n.startIndex,endIndex:n.endIndex,contentType:n.contentType,children:e.resolveFallbackTokens([],n.startIndex,n.endIndex)}]}},cvt=function(e){return{parse:t=>t.map(r=>{const n=e.getNodePoints();let o=Na(n,r.startIndex,r.endIndex);switch(r.contentType){case"email":o="mailto:"+o;break;case"uri-www":o="http://"+o;break}const i=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:mu,position:e.calcPosition(r),url:o,children:i}:{type:mu,url:o,children:i}})}},fvt="@yozora/tokenizer-autolink-extension";class dvt extends Dl{constructor(r={}){super({name:r.name??fvt,priority:r.priority??yn.LINKS});Be(this,"match",uvt);Be(this,"parse",cvt)}}const hvt=function(){return{isContainingBlock:!0,eatOpener:e,eatAndInterruptPreviousSibling:t,eatContinuationText:r};function e(n){if(n.countOfPrecedeSpaces>=4)return null;const{nodePoints:o,startIndex:i,endIndex:s,firstNonWhitespaceIndex:a}=n;if(a>=s||o[a].codePoint!==H.CLOSE_ANGLE)return null;let l=a+1;return l=4||u>=l||s[u].codePoint!==H.CLOSE_ANGLE?i.nodeType===k_?{status:"opening",nextIndex:a}:{status:"notMatched"}:{status:"opening",nextIndex:u+1t.map(r=>{const n=e.parseBlockTokens(r.children);return e.shouldReservePosition?{type:k_,position:r.position,children:n}:{type:k_,children:n}})}},gvt="@yozora/tokenizer-blockquote";class vvt extends Tu{constructor(r={}){super({name:r.name??gvt,priority:r.priority??yn.CONTAINING_BLOCK});Be(this,"match",hvt);Be(this,"parse",pvt)}}const mvt="@yozora/tokenizer-break";var Yx;(function(e){e.BACKSLASH="backslash",e.MORE_THAN_TWO_SPACES="more-than-two-spaces"})(Yx||(Yx={}));const yvt=function(e){return{findDelimiter:()=>xu(t),processSingleDelimiter:r};function t(n,o){const i=e.getNodePoints();for(let s=n+1;s=n&&i[c].codePoint===H.BACKSLASH;c-=1);s-c&1||(l=s-1,u=Yx.BACKSLASH);break}case H.SPACE:{let c=s-2;for(;c>=n&&i[c].codePoint===H.SPACE;c-=1);s-c>2&&(l=c+1,u=Yx.MORE_THAN_TWO_SPACES);break}}if(!(l==null||u==null))return{type:"full",markerType:u,startIndex:l,endIndex:s}}return null}function r(n){return[{nodeType:Px,startIndex:n.startIndex,endIndex:n.endIndex}]}},bvt=function(e){return{parse:t=>t.map(r=>e.shouldReservePosition?{type:Px,position:e.calcPosition(r)}:{type:Px})}};class _vt extends Dl{constructor(r={}){super({name:r.name??mvt,priority:r.priority??yn.SOFT_INLINE});Be(this,"match",yvt);Be(this,"parse",bvt)}}function cre(e,t,r,n){let o=t;n==null&&(n={saturated:!1,nodePoints:[],hasOpenAngleBracket:!1,openParensCount:0});const i=kn(e,o,r);if(i>=r)return{nextIndex:-1,state:n};if(n.nodePoints.length<=0){o=i;const s=e[o];s.codePoint===H.OPEN_ANGLE&&(o+=1,n.hasOpenAngleBracket=!0,n.nodePoints.push(s))}if(n.hasOpenAngleBracket){for(;o=r)return{nextIndex:-1,state:n};if(n.nodePoints.length<=0){o=i;const s=e[o];if(s.codePoint!==H.OPEN_BRACKET)return{nextIndex:-1,state:n};o+=1,n.nodePoints.push(s)}for(;o=r)return{nextIndex:-1,state:n};if(n.nodePoints.length<=0){o=i;const s=e[o];switch(s.codePoint){case H.DOUBLE_QUOTE:case H.SINGLE_QUOTE:case H.OPEN_PARENTHESIS:n.wrapSymbol=s.codePoint,n.nodePoints.push(s),o+=1;break;default:return{nextIndex:-1,state:n}}}if(n.wrapSymbol==null)return{nextIndex:-1,state:n};switch(n.wrapSymbol){case H.DOUBLE_QUOTE:case H.SINGLE_QUOTE:{for(;o=r||e[o+1].codePoint===Rr.LINE_END){n.nodePoints.push(s),n.saturated=!0;break}return{nextIndex:-1,state:n};default:n.nodePoints.push(s)}}break}}return{nextIndex:r,state:n}}const Evt=function(e){return{isContainingBlock:!1,eatOpener:t,eatContinuationText:r,onClose:n};function t(o){if(o.countOfPrecedeSpaces>=4)return null;const{nodePoints:i,startIndex:s,endIndex:a,firstNonWhitespaceIndex:l}=o;if(l>=a)return null;let u=l;const{nextIndex:c,state:f}=fre(i,u,a,null);if(c<0)return null;const d=i[s].line,h=()=>({nodeType:A_,position:{start:Hs(i,s),end:Jo(i,a-1)},label:f,destination:null,title:null,lineNoOfLabel:d,lineNoOfDestination:-1,lineNoOfTitle:-1,lines:[o]});if(!f.saturated)return{token:h(),nextIndex:a};if(c<0||c+1>=a||i[c].codePoint!==H.COLON)return null;if(u=kn(i,c+1,a),u>=a)return{token:h(),nextIndex:a};const{nextIndex:g,state:v}=cre(i,u,a,null);if(g<0||!v.saturated&&g!==a)return null;if(u=kn(i,g,a),u>=a){const S=h();return S.destination=v,S.lineNoOfDestination=d,{token:S,nextIndex:a}}if(u===g)return null;const{nextIndex:y,state:E}=dre(i,u,a,null);if(y>=0&&(u=y),u=u||s[y].codePoint!==H.COLON)return{status:"failedAndRollback",lines:i.lines};f=y+1}if(i.destination==null){if(f=kn(s,f,u),f>=u)return{status:"failedAndRollback",lines:i.lines};const{nextIndex:y,state:E}=cre(s,f,u,null);if(y<0||!E.saturated)return{status:"failedAndRollback",lines:i.lines};if(f=kn(s,y,u),f>=u)return i.destination=E,i.lines.push(o),{status:"opening",nextIndex:u};i.lineNoOfDestination=c,i.lineNoOfTitle=c}i.lineNoOfTitle<0&&(i.lineNoOfTitle=c);const{nextIndex:d,state:h}=dre(s,f,u,i.title);if(i.title=h,d<0||h.nodePoints.length<=0||h.saturated&&kn(s,d,u)t.map(r=>{const n=r._label,o=r._identifier,i=r.destination.nodePoints,s=i[0].codePoint===H.OPEN_ANGLE?cc(i,1,i.length-1,!0):cc(i,0,i.length,!0),a=e.formatUrl(s),l=r.title==null?void 0:cc(r.title.nodePoints,1,r.title.nodePoints.length-1);return e.shouldReservePosition?{type:A_,position:r.position,identifier:o,label:n,url:a,title:l}:{type:A_,identifier:o,label:n,url:a,title:l}})}},wvt="@yozora/tokenizer-definition";class kvt extends Tu{constructor(r={}){super({name:r.name??wvt,priority:r.priority??yn.ATOMIC});Be(this,"match",Evt);Be(this,"parse",Svt)}}const Avt=function(e){return{findDelimiter:()=>xu(t),processDelimiterPair:r};function t(n,o){const i=e.getNodePoints();for(let s=n;st.map(r=>{const n=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:qx,position:e.calcPosition(r),children:n}:{type:qx,children:n}})}},Tvt="@yozora/tokenizer-delete";class Ivt extends Dl{constructor(r={}){super({name:r.name??Tvt,priority:r.priority??yn.CONTAINING_INLINE});Be(this,"match",Avt);Be(this,"parse",xvt)}}const Cvt=function(e){return{findDelimiter:()=>xu(t),isDelimiterPair:r,processDelimiterPair:n};function t(o,i){const s=e.getNodePoints(),a=e.getBlockStartIndex(),l=e.getBlockEndIndex(),u=(f,d)=>{if(d===l)return!1;if(d===i)return!0;const h=s[d];if(Rh(h.codePoint))return!1;if(!ch(h.codePoint)||f<=o)return!0;const g=s[f-1];return Rh(g.codePoint)||ch(g.codePoint)},c=(f,d)=>{if(f===a)return!1;if(f===o)return!0;const h=s[f-1];if(Rh(h.codePoint))return!1;if(!ch(h.codePoint)||d>=i)return!0;const g=s[d];return Rh(g.codePoint)||ch(g.codePoint)};for(let f=o;fo&&!ch(s[h-1].codePoint)&&(E=!1);const b=s[g];ch(b.codePoint)||(_=!1)}if(!E&&!_)break;const S=g-h;return{type:E?_?"both":"opener":"closer",startIndex:h,endIndex:g,thickness:S,originalThickness:S}}}}return null}function r(o,i){const s=e.getNodePoints();return s[o.startIndex].codePoint!==s[i.startIndex].codePoint||(o.type==="both"||i.type==="both")&&(o.originalThickness+i.originalThickness)%3===0&&o.originalThickness%3!==0?{paired:!1,opener:!0,closer:!0}:{paired:!0}}function n(o,i,s){let a=1;o.thickness>1&&i.thickness>1&&(a=2),s=e.resolveInternalTokens(s,o.endIndex,i.startIndex);const l={nodeType:a===1?Cme:Nme,startIndex:o.endIndex-a,endIndex:i.startIndex+a,thickness:a,children:s},u=o.thickness>a?{type:o.type,startIndex:o.startIndex,endIndex:o.endIndex-a,thickness:o.thickness-a,originalThickness:o.originalThickness}:void 0,c=i.thickness>a?{type:i.type,startIndex:i.startIndex+a,endIndex:i.endIndex,thickness:i.thickness-a,originalThickness:i.originalThickness}:void 0;return{tokens:[l],remainOpenerDelimiter:u,remainCloserDelimiter:c}}},Nvt=function(e){return{parse:t=>t.map(r=>{const n=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:r.nodeType,position:e.calcPosition(r),children:n}:{type:r.nodeType,children:n}})}},Rvt="@yozora/tokenizer-emphasis";class Ovt extends Dl{constructor(r={}){super({name:r.name??Rvt,priority:r.priority??yn.CONTAINING_INLINE});Be(this,"match",Cvt);Be(this,"parse",Nvt)}}function Hme(e){const{nodeType:t,markers:r,markersRequired:n,checkInfoString:o}=this;return{isContainingBlock:!1,eatOpener:i,eatAndInterruptPreviousSibling:s,eatContinuationText:a};function i(l){if(l.countOfPrecedeSpaces>=4)return null;const{endIndex:u,firstNonWhitespaceIndex:c}=l;if(c+n-1>=u)return null;const{nodePoints:f,startIndex:d}=l,h=f[c].codePoint;if(r.indexOf(h)<0)return null;const g=sp(f,c+1,u,h),v=g-c;if(v=u.markerCount){for(;y=d)return{status:"closing",nextIndex:d}}}const v=Math.min(f+u.indent,h,d-1);return u.lines.push({nodePoints:c,startIndex:v,endIndex:d,firstNonWhitespaceIndex:h,countOfPrecedeSpaces:g}),{status:"opening",nextIndex:d}}}class Dvt extends Tu{constructor(r){super({name:r.name,priority:r.priority??yn.FENCED_BLOCK});Be(this,"nodeType");Be(this,"markers",[]);Be(this,"markersRequired");Be(this,"checkInfoString");Be(this,"match",Hme);this.nodeType=r.nodeType,this.markers=r.markers,this.markersRequired=r.markersRequired,this.checkInfoString=r.checkInfoString}}const Fvt=function(e){return{...Hme.call(this,e),isContainingBlock:!1}},Bvt=function(e){return{parse:t=>t.map(r=>{const n=r.infoString;let o=0;const i=[];for(;o0?s:null,meta:a.length>0?a:null,value:u}:{type:np,lang:s.length>0?s:null,meta:a.length>0?a:null,value:u}})}},Mvt="@yozora/tokenizer-fenced-code";class Lvt extends Dvt{constructor(r={}){super({name:r.name??Mvt,priority:r.priority??yn.FENCED_BLOCK,nodeType:np,markers:[H.BACKTICK,H.TILDE],markersRequired:3,checkInfoString:(n,o)=>{if(o===H.BACKTICK){for(const i of n)if(i.codePoint===H.BACKTICK)return!1}return!0}});Be(this,"match",Fvt);Be(this,"parse",Bvt)}}const jvt=function(){return{isContainingBlock:!1,eatOpener:e,eatAndInterruptPreviousSibling:t};function e(r){if(r.countOfPrecedeSpaces>=4)return null;const{nodePoints:n,startIndex:o,endIndex:i,firstNonWhitespaceIndex:s}=r;if(s>=i||n[s].codePoint!==H.NUMBER_SIGN)return null;const a=sp(n,s+1,i,H.NUMBER_SIGN),l=a-s;if(l>6||a+1t.map(r=>{const{nodePoints:n,firstNonWhitespaceIndex:o,endIndex:i}=r.line;let[s,a]=q5(n,o+r.depth,i),l=0;for(let h=a-1;h>=s&&n[h].codePoint===H.NUMBER_SIGN;--h)l+=1;if(l>0){let h=0,g=a-1-l;for(;g>=s;--g){const v=n[g].codePoint;if(!An(v))break;h+=1}(h>0||g=r)return null;const o=n;let i=e[n].codePoint;if(!k1(i)&&i!==H.UNDERSCORE&&i!==H.COLON)return null;for(n=o+1;nu&&(a.value={startIndex:u,endIndex:c});break}}if(a.value!=null)return{attribute:a,nextIndex:n}}return{attribute:a,nextIndex:s}}function N_(e,t,r){if(t>=r||!k1(e[t].codePoint))return null;let n=t;for(;n=r)return r;const o=e[t].codePoint;return An(o)||o===H.CLOSE_ANGLE?t+1:null}function qvt(e,t,r){for(let n=t;n=r||e[i].codePoint!==H.CLOSE_ANGLE){n+=1;continue}const a=Na(e,o,i,!0).toLowerCase();if(Pme.includes(a))return i}return null}function Wvt(e,t,r){const n=t;return n+2=r)return r;const o=e[t].codePoint;return An(o)||o===H.CLOSE_ANGLE?t+1:o===H.SLASH&&t+1=r)return null;let i=t;if(o){for(;i=r)return null;e[i].codePoint===H.SLASH&&(i+=1)}else i=kn(e,t,r);if(i>=r||e[i].codePoint!==H.CLOSE_ANGLE)return null;for(i+=1;i=4)return null;const{nodePoints:s,startIndex:a,endIndex:l,firstNonWhitespaceIndex:u}=i;if(u>=l||s[u].codePoint!==H.OPEN_ANGLE)return null;const c=u+1,f=n(s,c,l);if(f==null)return null;const{condition:d}=f;let h=!1;d!==6&&d!==7&&o(s,f.nextIndex,l,d)!=null&&(h=!0);const g=l;return{token:{nodeType:x_,position:{start:Hs(s,a),end:Jo(s,g-1)},condition:d,lines:[i]},nextIndex:g,saturated:h}}function t(i,s){const a=e(i);if(a==null||a.token.condition===7)return null;const{token:l,nextIndex:u}=a;return{token:l,nextIndex:u,remainingSibling:s}}function r(i,s){const{nodePoints:a,endIndex:l,firstNonWhitespaceIndex:u}=i,c=o(a,u,l,s.condition);return c===-1?{status:"notMatched"}:(s.lines.push(i),c!=null?{status:"closing",nextIndex:l}:{status:"opening",nextIndex:l})}function n(i,s,a){let l=null;if(s>=a)return null;if(l=Wvt(i,s,a),l!=null)return{nextIndex:l,condition:2};if(l=Kvt(i,s,a),l!=null)return{nextIndex:l,condition:3};if(l=Uvt(i,s,a),l!=null)return{nextIndex:l,condition:4};if(l=Xvt(i,s,a),l!=null)return{nextIndex:l,condition:5};if(i[s].codePoint!==H.SLASH){const g=s,v=N_(i,g,a);if(v==null)return null;const y={startIndex:g,endIndex:v},_=Na(i,y.startIndex,y.endIndex).toLowerCase();return l=Pvt(i,y.endIndex,a,_),l!=null?{nextIndex:l,condition:1}:(l=hre(i,y.endIndex,a,_),l!=null?{nextIndex:l,condition:6}:(l=pre(i,y.endIndex,a,_,!0),l!=null?{nextIndex:l,condition:7}:null))}const u=s+1,c=N_(i,u,a);if(c==null)return null;const f={startIndex:u,endIndex:c},h=Na(i,f.startIndex,f.endIndex).toLowerCase();return l=hre(i,f.endIndex,a,h),l!=null?{nextIndex:l,condition:6}:(l=pre(i,f.endIndex,a,h,!1),l!=null?{nextIndex:l,condition:7}:null)}function o(i,s,a,l){switch(l){case 1:return qvt(i,s,a)==null?null:a;case 2:return Gvt(i,s,a)==null?null:a;case 3:return Vvt(i,s,a)==null?null:a;case 4:return Yvt(i,s,a)==null?null:a;case 5:return Qvt(i,s,a)==null?null:a;case 6:case 7:return kn(i,s,a)>=a?-1:null}}},tmt=function(e){return{parse:t=>t.map(r=>{const n=hH(r.lines);return e.shouldReservePosition?{type:"html",position:r.position,value:Na(n)}:{type:"html",value:Na(n)}})}},rmt="@yozora/tokenizer-html-block";class nmt extends Tu{constructor(r={}){super({name:r.name??rmt,priority:r.priority??yn.ATOMIC});Be(this,"match",emt);Be(this,"parse",tmt)}}function omt(e,t,r){let n=t;if(n+11>=r||e[n+1].codePoint!==H.EXCLAMATION_MARK||e[n+2].codePoint!==H.OPEN_BRACKET||e[n+3].codePoint!==H.UPPERCASE_C||e[n+4].codePoint!==H.UPPERCASE_D||e[n+5].codePoint!==H.UPPERCASE_A||e[n+6].codePoint!==H.UPPERCASE_T||e[n+7].codePoint!==H.UPPERCASE_A||e[n+8].codePoint!==H.OPEN_BRACKET)return null;const o=n+9;for(n=o;n=r)return null;if(e[n+1].codePoint===H.CLOSE_BRACKET&&e[n+2].codePoint===H.CLOSE_ANGLE)return{type:"full",startIndex:t,endIndex:n+3,htmlType:"cdata"}}return null}function imt(e,t,r){let n=t;if(n+3>=r||e[n+1].codePoint!==H.SLASH)return null;const o=n+2,i=N_(e,o,r);return i==null||(n=kn(e,i,r),n>=r||e[n].codePoint!==H.CLOSE_ANGLE)?null:{type:"full",startIndex:t,endIndex:n+1,htmlType:"closing",tagName:{startIndex:o,endIndex:i}}}function smt(e,t,r){let n=t;if(n+6>=r||e[n+1].codePoint!==H.EXCLAMATION_MARK||e[n+2].codePoint!==H.MINUS_SIGN||e[n+3].codePoint!==H.MINUS_SIGN||e[n+4].codePoint===H.CLOSE_ANGLE||e[n+4].codePoint===H.MINUS_SIGN&&e[n+5].codePoint===H.CLOSE_ANGLE)return null;const o=n+4;for(n=o;n2||n+2>=r||e[n+2].codePoint!==H.CLOSE_ANGLE?null:{type:"full",startIndex:t,endIndex:n+3,htmlType:"comment"}}return null}function amt(e,t,r){let n=t;if(n+4>=r||e[n+1].codePoint!==H.EXCLAMATION_MARK)return null;const o=n+2;for(n=o;n=r||!An(e[n].codePoint))return null;const i=n,s=n+1;for(n=s;n=r||e[n+1].codePoint!==H.QUESTION_MARK)return null;const o=n+2;for(n=o;n=r)return null;if(e[n+1].codePoint===H.CLOSE_ANGLE)return{type:"full",startIndex:t,endIndex:n+2,htmlType:"instruction"}}return null}function umt(e,t,r){let n=t;if(n+2>=r)return null;const o=n+1,i=N_(e,o,r);if(i==null)return null;const s=[];for(n=i;n=r)return null;let a=!1;return e[n].codePoint===H.SLASH&&(n+=1,a=!0),n>=r||e[n].codePoint!==H.CLOSE_ANGLE?null:{type:"full",startIndex:t,endIndex:n+1,htmlType:"open",tagName:{startIndex:o,endIndex:i},attributes:s,selfClosed:a}}const cmt=function(e){return{findDelimiter:()=>xu(t),processSingleDelimiter:r};function t(n,o){const i=e.getNodePoints();for(let s=n;s=o));++s)switch(i[s].codePoint){case H.BACKSLASH:s+=1;break;case H.OPEN_ANGLE:{const l=fmt(i,s,o);if(l!=null)return l;break}}return null}function r(n){return[{...n,nodeType:x_}]}};function fmt(e,t,r){let n=null;return n=umt(e,t,r),n!=null||(n=imt(e,t,r),n!=null)||(n=smt(e,t,r),n!=null)||(n=lmt(e,t,r),n!=null)||(n=amt(e,t,r),n!=null)||(n=omt(e,t,r)),n}const dmt=function(e){return{parse:t=>t.map(r=>{const{startIndex:n,endIndex:o}=r,i=e.getNodePoints(),s=Na(i,n,o);return e.shouldReservePosition?{type:x_,position:e.calcPosition(r),value:s}:{type:x_,value:s}})}},hmt="@yozora/tokenizer-html-inline";class pmt extends Dl{constructor(r={}){super({name:r.name??hmt,priority:r.priority??yn.ATOMIC});Be(this,"match",cmt);Be(this,"parse",dmt)}}const K5=(e,t,r,n)=>{let o=e,i=0;const s=()=>{switch(n[o].codePoint){case H.BACKSLASH:o+=1;break;case H.OPEN_BRACKET:i+=1;break;case H.CLOSE_BRACKET:i-=1;break}};for(const a of r)if(!(a.startIndext)break;for(;o0?1:0};function qme(e,t,r){if(t>=r)return-1;let n=t;switch(e[n].codePoint){case H.OPEN_ANGLE:{for(n+=1;n=r)return-1;let n=t;const o=e[n].codePoint;switch(o){case H.DOUBLE_QUOTE:case H.SINGLE_QUOTE:{for(n+=1;ni.line+1)return-1;break}}}break}case H.OPEN_PARENTHESIS:{let i=1;for(n+=1;ns.line+1)return-1;break}case H.OPEN_PARENTHESIS:i+=1;break;case H.CLOSE_PARENTHESIS:if(i-=1,i===0)return n+1;break}}break}case H.CLOSE_PARENTHESIS:return n;default:return-1}return-1}const gmt=function(e){return{findDelimiter:()=>xu(t),isDelimiterPair:r,processDelimiterPair:n};function t(o,i){const s=e.getNodePoints(),a=e.getBlockEndIndex();for(let l=o;l=i||s[l+1].codePoint!==H.OPEN_PARENTHESIS)break;const c=kn(s,l+2,a),f=qme(s,c,a);if(f<0)break;const d=kn(s,f,a),h=Wme(s,d,a);if(h<0)break;const g=l,v=kn(s,h,a)+1;if(v>a||s[v-1].codePoint!==H.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:g,endIndex:v,destinationContent:ct.map(r=>{const n=e.getNodePoints();let o="";if(r.destinationContent!=null){let{startIndex:l,endIndex:u}=r.destinationContent;n[l].codePoint===H.OPEN_ANGLE&&(l+=1,u-=1);const c=cc(n,l,u,!0);o=e.formatUrl(c)}let i;if(r.titleContent!=null){const{startIndex:l,endIndex:u}=r.titleContent;i=cc(n,l+1,u-1)}const s=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:mu,position:e.calcPosition(r),url:o,title:i,children:s}:{type:mu,url:o,title:i,children:s}})}},mmt="@yozora/tokenizer-link";class ymt extends Dl{constructor(r={}){super({name:r.name??mmt,priority:r.priority??yn.LINKS});Be(this,"match",gmt);Be(this,"parse",vmt)}}function pH(e){return e.map(t=>t.value!=null?t.value:t.alt!=null?t.alt:t.children!=null?pH(t.children):"").join("")}const bmt=function(e){return{findDelimiter:()=>xu(t),isDelimiterPair:r,processDelimiterPair:n};function t(o,i){const s=e.getNodePoints(),a=e.getBlockEndIndex();for(let l=o;l=i||s[l+1].codePoint!==H.OPEN_PARENTHESIS)break;const c=kn(s,l+2,a),f=qme(s,c,a);if(f<0)break;const d=kn(s,f,a),h=Wme(s,d,a);if(h<0)break;const g=l,v=kn(s,h,a)+1;if(v>a||s[v-1].codePoint!==H.CLOSE_PARENTHESIS)break;return{type:"closer",startIndex:g,endIndex:v,destinationContent:ct.map(r=>{const n=e.getNodePoints();let o="";if(r.destinationContent!=null){let{startIndex:u,endIndex:c}=r.destinationContent;n[u].codePoint===H.OPEN_ANGLE&&(u+=1,c-=1);const f=cc(n,u,c,!0);o=e.formatUrl(f)}const i=e.parseInlineTokens(r.children),s=pH(i);let a;if(r.titleContent!=null){const{startIndex:u,endIndex:c}=r.titleContent;a=cc(n,u+1,c-1)}return e.shouldReservePosition?{type:T_,position:e.calcPosition(r),url:o,alt:s,title:a}:{type:T_,url:o,alt:s,title:a}})}},Emt="@yozora/tokenizer-image";class Smt extends Dl{constructor(r={}){super({name:r.name??Emt,priority:r.priority??yn.LINKS});Be(this,"match",bmt);Be(this,"parse",_mt)}}const wmt=function(e){return{findDelimiter:()=>xu(t),isDelimiterPair:r,processDelimiterPair:n};function t(o,i){const s=e.getNodePoints();for(let a=o;a=i||s[a+1].codePoint!==H.OPEN_BRACKET)break;return{type:"opener",startIndex:a,endIndex:a+2,brackets:[]}}case H.CLOSE_BRACKET:{const u={type:"closer",startIndex:a,endIndex:a+1,brackets:[]};if(a+1>=i||s[a+1].codePoint!==H.OPEN_BRACKET)return u;const c=U0(s,a+1,i);return c.nextIndex<0?u:c.labelAndIdentifier==null?{type:"closer",startIndex:a,endIndex:c.nextIndex,brackets:[{startIndex:a+1,endIndex:c.nextIndex}]}:{type:"closer",startIndex:a,endIndex:c.nextIndex,brackets:[{startIndex:a+1,endIndex:c.nextIndex,label:c.labelAndIdentifier.label,identifier:c.labelAndIdentifier.identifier}]}}}return null}function r(o,i,s){const a=e.getNodePoints();switch(K5(o.endIndex,i.startIndex,s,a)){case-1:return{paired:!1,opener:!1,closer:!0};case 0:return{paired:!0};case 1:return{paired:!1,opener:!0,closer:!1}}}function n(o,i,s){const a=e.getNodePoints(),l=i.brackets[0];if(l!=null&&l.identifier!=null)return e.hasDefinition(l.identifier)?{tokens:[{nodeType:ov,startIndex:o.startIndex,endIndex:l.endIndex,referenceType:"full",label:l.label,identifier:l.identifier,children:e.resolveInternalTokens(s,o.endIndex,i.startIndex)}]}:{tokens:s};const{nextIndex:u,labelAndIdentifier:c}=U0(a,o.endIndex-1,i.startIndex+1);return u===i.startIndex+1&&c!=null&&e.hasDefinition(c.identifier)?{tokens:[{nodeType:ov,startIndex:o.startIndex,endIndex:i.endIndex,referenceType:l==null?"shortcut":"collapsed",label:c.label,identifier:c.identifier,children:e.resolveInternalTokens(s,o.endIndex,i.startIndex)}]}:{tokens:s}}},kmt=function(e){return{parse:t=>t.map(r=>{const{identifier:n,label:o,referenceType:i}=r,s=e.parseInlineTokens(r.children),a=pH(s);return e.shouldReservePosition?{type:ov,position:e.calcPosition(r),identifier:n,label:o,referenceType:i,alt:a}:{type:ov,identifier:n,label:o,referenceType:i,alt:a}})}},Amt="@yozora/tokenizer-image-reference";class xmt extends Dl{constructor(r={}){super({name:r.name??Amt,priority:r.priority??yn.LINKS});Be(this,"match",wmt);Be(this,"parse",kmt)}}const Tmt=function(){return{isContainingBlock:!1,eatOpener:e,eatContinuationText:t};function e(r){if(r.countOfPrecedeSpaces<4)return null;const{nodePoints:n,startIndex:o,firstNonWhitespaceIndex:i,endIndex:s}=r;let a=o+4;if(n[o].codePoint===H.SPACE&&n[o+3].codePoint===Rr.SPACE){let c=o+1;for(;ct.map(r=>{const{lines:n}=r;let o=0,i=n.length;for(;oc+1&&s.push({type:"opener",startIndex:c+1,endIndex:d}),c=d-1}break}case H.BACKTICK:{const d=c,h=sp(n,c+1,i,f);s.push({type:"both",startIndex:d,endIndex:h}),c=h-1;break}}}let a=0,l=-1,u=null;for(;a=c))continue;l=f;let d=null,h=null;for(;a=c&&v.type!=="closer")break}if(a+1>=s.length)return;d=s[a];const g=d.endIndex-d.startIndex;for(let v=a+1;vt.map(r=>{const n=e.getNodePoints();let o=r.startIndex+r.thickness,i=r.endIndex-r.thickness,s=!0;for(let u=o;uxu(t),isDelimiterPair:r,processDelimiterPair:n,processSingleDelimiter:o};function t(i,s){const a=e.getNodePoints();for(let l=i;l=s||a[l+1].codePoint!==H.OPEN_BRACKET)break;const c=U0(a,l+1,s);if(c.nextIndex===-1)return{type:"opener",startIndex:l+1,endIndex:l+2,brackets:[]};if(c.labelAndIdentifier==null){l=c.nextIndex-1;break}const f=[{startIndex:l+1,endIndex:c.nextIndex,label:c.labelAndIdentifier.label,identifier:c.labelAndIdentifier.identifier}],d={type:"closer",startIndex:l,endIndex:c.nextIndex,brackets:f};for(l=c.nextIndex;l=a.length)break;if(u+1t.map(r=>{const{identifier:n,label:o,referenceType:i}=r,s=e.parseInlineTokens(r.children);return e.shouldReservePosition?{type:$d,position:e.calcPosition(r),identifier:n,label:o,referenceType:i,children:s}:{type:$d,identifier:n,label:o,referenceType:i,children:s}})}},Lmt="@yozora/tokenizer-link-reference";class jmt extends Dl{constructor(r={}){super({name:r.name??Lmt,priority:r.priority??yn.LINKS});Be(this,"match",Bmt);Be(this,"parse",Mmt)}}const zmt=function(){const{emptyItemCouldNotInterruptedTypes:e,enableTaskListItem:t}=this;return{isContainingBlock:!0,eatOpener:r,eatAndInterruptPreviousSibling:n,eatContinuationText:o};function r(i){if(i.countOfPrecedeSpaces>=4)return null;const{nodePoints:s,startIndex:a,endIndex:l,firstNonWhitespaceIndex:u}=i;if(u>=l)return null;let c=!1,f=null,d,h,g=u,v=s[g].codePoint;if(g+1u&&g-u<=9&&(v===H.DOT||v===H.CLOSE_PARENTHESIS)&&(g+=1,c=!0,f=v)}if(c||(v===H.PLUS_SIGN||v===H.MINUS_SIGN||v===H.ASTERISK)&&(g+=1,f=v),f==null)return null;let y=0,E=g;for(E4&&(E-=y-1,y=1),y===0&&E=l){if(s.countOfTopBlankLine>=0&&(s.countOfTopBlankLine+=1,s.countOfTopBlankLine>1))return{status:"notMatched"}}else s.countOfTopBlankLine=-1;return{status:"opening",nextIndex:Math.min(a+s.indent,l-1)}}};function Hmt(e,t,r){let n=t;for(;n=r||e[n].codePoint!==H.OPEN_BRACKET||e[n+2].codePoint!==H.CLOSE_BRACKET||!An(e[n+3].codePoint))return{status:null,nextIndex:t};let o;switch(e[n+1].codePoint){case H.SPACE:o=fb.TODO;break;case H.MINUS_SIGN:o=fb.DOING;break;case H.LOWERCASE_X:case H.UPPERCASE_X:o=fb.DONE;break;default:return{status:null,nextIndex:t}}return{status:o,nextIndex:n+4}}const $mt=function(e){return{parse:t=>{const r=[];let n=[];for(let i=0;i{if(e.length<=0)return null;let r=e.some(i=>{if(i.children==null||i.children.length<=1)return!1;let s=i.children[0].position;for(let a=1;a1){let i=e[0];for(let s=1;s{const s=t.parseBlockTokens(i.children),a=r?s:s.map(u=>u.type===ip?u.children:u).flat();return t.shouldReservePosition?{type:qM,position:i.position,status:i.status,children:a}:{type:qM,status:i.status,children:a}});return t.shouldReservePosition?{type:Gx,position:{start:{...e[0].position.start},end:{...e[e.length-1].position.end}},ordered:e[0].ordered,orderType:e[0].orderType,start:e[0].order,marker:e[0].marker,spread:r,children:n}:{type:Gx,ordered:e[0].ordered,orderType:e[0].orderType,start:e[0].order,marker:e[0].marker,spread:r,children:n}},Pmt="@yozora/tokenizer-list";class qmt extends Tu{constructor(r={}){super({name:r.name??Pmt,priority:r.priority??yn.CONTAINING_BLOCK});Be(this,"enableTaskListItem");Be(this,"emptyItemCouldNotInterruptedTypes");Be(this,"match",zmt);Be(this,"parse",$mt);this.enableTaskListItem=r.enableTaskListItem??!1,this.emptyItemCouldNotInterruptedTypes=r.emptyItemCouldNotInterruptedTypes??[ip]}}const Wmt=function(){return{isContainingBlock:!1,eatOpener:e,eatContinuationText:t,eatLazyContinuationText:r};function e(n){const{endIndex:o,firstNonWhitespaceIndex:i}=n;if(i>=o)return null;const s=[n],a=Ome(s);return{token:{nodeType:ip,position:a,lines:s},nextIndex:o}}function t(n,o){const{endIndex:i,firstNonWhitespaceIndex:s}=n;return s>=i?{status:"notMatched"}:(o.lines.push(n),{status:"opening",nextIndex:i})}function r(n,o){return t(n,o)}},Gmt=function(e){return{parse:t=>{const r=[];for(const n of t){const o=G5(n.lines),i=e.processInlines(o);if(i.length<=0)continue;const s=e.shouldReservePosition?{type:ip,position:n.position,children:i}:{type:ip,children:i};r.push(s)}return r}}},Kmt="@yozora/tokenizer-paragraph";class Vmt extends Tu{constructor(r={}){super({name:r.name??Kmt,priority:r.priority??yn.FALLBACK});Be(this,"match",Wmt);Be(this,"parse",Gmt)}extractPhrasingContentLines(r){return r.lines}buildBlockToken(r){const n=qgt(r);if(n.length<=0)return null;const o=Ome(n);return{nodeType:ip,lines:n,position:o}}}const Umt=function(e){return{isContainingBlock:!1,eatOpener:t,eatAndInterruptPreviousSibling:r};function t(){return null}function r(n,o){const{nodePoints:i,endIndex:s,firstNonWhitespaceIndex:a,countOfPrecedeSpaces:l}=n;if(l>=4||a>=s)return null;let u=null,c=!1;for(let g=a;gt.map(r=>{let n=1;switch(r.marker){case H.EQUALS_SIGN:n=1;break;case H.MINUS_SIGN:n=2;break}const o=G5(r.lines),i=e.processInlines(o);return e.shouldReservePosition?{type:op,position:r.position,depth:n,children:i}:{type:op,depth:n,children:i}})}},Xmt="@yozora/tokenizer-setext-heading";class Qmt extends Tu{constructor(r={}){super({name:r.name??Xmt,priority:r.priority??yn.ATOMIC});Be(this,"match",Umt);Be(this,"parse",Ymt)}}const Zmt=function(e){return{isContainingBlock:!1,eatOpener:t,eatAndInterruptPreviousSibling:r,eatLazyContinuationText:n};function t(){return null}function r(i,s){if(i.countOfPrecedeSpaces>=4)return null;const{nodePoints:a,endIndex:l,firstNonWhitespaceIndex:u}=i;if(u>=l)return null;const c=[];let f=a[u].codePoint,d=f===H.VERTICAL_SLASH?u+1:u;for(;d=l)break;let b=!1;f===H.COLON&&(b=!0,d+=1);let k=0;for(;d0)&&(g+=1),v=!1;continue}v=!0,k.codePoint===H.BACKSLASH&&(b+=1)}}if(v&&c.length>1&&(g+=1),g!==c.length)return null;const E=o(y,c),_=l;return{token:{nodeType:Vx,position:{start:Hs(y.nodePoints,y.startIndex),end:Jo(a,_-1)},columns:c,rows:[E]},nextIndex:_,remainingSibling:e.rollbackPhrasingLines(h.slice(0,h.length-1),s)}}function n(i,s){if(i.firstNonWhitespaceIndex>=i.endIndex)return{status:"notMatched"};const a=o(i,s.columns);return a==null?{status:"notMatched"}:(s.rows.push(a),{status:"opening",nextIndex:i.endIndex})}function o(i,s){const{nodePoints:a,startIndex:l,endIndex:u,firstNonWhitespaceIndex:c}=i;let f=a[c],d=f.codePoint===H.VERTICAL_SLASH?c+1:c;const h=[];for(;d_;--b){const I=a[b-1];if(!An(I.codePoint))break}const k=Jo(a,d-1),T=S>=b?[]:[{nodePoints:a,startIndex:_,endIndex:b,firstNonWhitespaceIndex:S,countOfPrecedeSpaces:S-_}],x={nodeType:Kx,position:{start:E,end:k},lines:T};if(h.push(x),h.length>=s.length)break}const g=Hs(a,l),v=Jo(a,u-1);for(let E=h.length;E({parse:t=>t.map(r=>{const n=r.rows.map(i=>{const s=i.cells.map(l=>{const u=[];{const d=G5(l.lines);for(let h=0,g=d.length;hxu((e,t)=>({type:"full",startIndex:e,endIndex:t})),processSingleDelimiter:e=>[{nodeType:I_,startIndex:e.startIndex,endIndex:e.endIndex}]}},nyt=function(e){return{parse:t=>t.map(r=>{const n=e.getNodePoints();let o=cc(n,r.startIndex,r.endIndex);return o=iyt(o),e.shouldReservePosition?{type:I_,position:e.calcPosition(r),value:o}:{type:I_,value:o}})}},oyt=/[^\S\n]*\n[^\S\n]*/g,iyt=e=>e.replace(oyt,` +`),syt="@yozora/tokenizer-text";class ayt extends Dl{constructor(r={}){super({name:r.name??syt,priority:r.priority??yn.FALLBACK});Be(this,"match",ryt);Be(this,"parse",nyt)}findAndHandleDelimiter(r,n){return{nodeType:I_,startIndex:r,endIndex:n}}}const lyt=function(){return{isContainingBlock:!1,eatOpener:e,eatAndInterruptPreviousSibling:t};function e(r){if(r.countOfPrecedeSpaces>=4)return null;const{nodePoints:n,startIndex:o,endIndex:i,firstNonWhitespaceIndex:s}=r;if(s+2>=i)return null;let a,l=0,u=!0,c=!1;for(let d=s;dt.map(r=>e.shouldReservePosition?{type:Ux,position:r.position}:{type:Ux})}},cyt="@yozora/tokenizer-thematic-break";class fyt extends Tu{constructor(r={}){super({name:r.name??cyt,priority:r.priority??yn.ATOMIC});Be(this,"match",lyt);Be(this,"parse",uyt)}}class dyt extends Qgt{constructor(t={}){super({...t,blockFallbackTokenizer:t.blockFallbackTokenizer??new Vmt,inlineFallbackTokenizer:t.inlineFallbackTokenizer??new ayt}),this.useTokenizer(new Nmt).useTokenizer(new nmt).useTokenizer(new Qmt).useTokenizer(new fyt).useTokenizer(new vvt).useTokenizer(new qmt({enableTaskListItem:!0})).useTokenizer(new $vt).useTokenizer(new Lvt).useTokenizer(new kvt).useTokenizer(new tyt).useTokenizer(new pmt).useTokenizer(new Fmt).useTokenizer(new ovt).useTokenizer(new dvt).useTokenizer(new _vt).useTokenizer(new Smt).useTokenizer(new xmt).useTokenizer(new ymt).useTokenizer(new jmt).useTokenizer(new Ovt).useTokenizer(new Ivt)}}const sF=new dyt({defaultParseOptions:{shouldReservePosition:!1}});class hyt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return N.jsx("blockquote",{className:pyt,children:N.jsx(Ra,{nodes:t})})}}const pyt=br(Qn.blockquote,{boxSizing:"border-box",padding:"0.625em 1em",borderLeft:"0.25em solid var(--colorBorderBlockquote)",margin:"0px 0px 1.25em 0px",background:"var(--colorBgBlockquote)",boxShadow:"0 1px 2px 0 hsla(0deg, 0%, 0%, 0.1)","> :last-child":{marginBottom:0}});class gyt extends re.Component{shouldComponentUpdate(){return!1}render(){return N.jsx("br",{className:vyt})}}const vyt=br(Qn.break,{boxSizing:"border-box"});var Gme={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT @@ -674,16 +674,12 @@ ${Ve??"Unknown error"}`})]:[ek({id:_t,content:ee(xe??[]),extra:no?void 0:{sessio * @namespace * @public */var r=function(n){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,s={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function _(S){return S instanceof l?new l(S.type,_(S.content),S.alias):Array.isArray(S)?S.map(_):S.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(k){var _=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(k.stack)||[])[1];if(_){var S=document.getElementsByTagName("script");for(var b in S)if(S[b].src==_)return S[b]}return null}},isActive:function(_,S,b){for(var k="no-"+S;_;){var T=_.classList;if(T.contains(S))return!0;if(T.contains(k))return!1;_=_.parentElement}return!!b}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(_,S){var b=a.util.clone(a.languages[_]);for(var k in S)b[k]=S[k];return b},insertBefore:function(_,S,b,k){k=k||a.languages;var T=k[_],x={};for(var I in T)if(T.hasOwnProperty(I)){if(I==S)for(var C in b)b.hasOwnProperty(C)&&(x[C]=b[C]);b.hasOwnProperty(I)||(x[I]=T[I])}var R=k[_];return k[_]=x,a.languages.DFS(a.languages,function(D,L){L===R&&D!=_&&(this[D]=x)}),x},DFS:function _(S,b,k,T){T=T||{};var x=a.util.objId;for(var I in S)if(S.hasOwnProperty(I)){b.call(S,I,S[I],k||I);var C=S[I],R=a.util.type(C);R==="Object"&&!T[x(C)]?(T[x(C)]=!0,_(C,b,null,T)):R==="Array"&&!T[x(C)]&&(T[x(C)]=!0,_(C,b,I,T))}}},plugins:{},highlightAll:function(_,S){a.highlightAllUnder(document,_,S)},highlightAllUnder:function(_,S,b){var k={callback:b,container:_,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",k),k.elements=Array.prototype.slice.apply(k.container.querySelectorAll(k.selector)),a.hooks.run("before-all-elements-highlight",k);for(var T=0,x;x=k.elements[T++];)a.highlightElement(x,S===!0,k.callback)},highlightElement:function(_,S,b){var k=a.util.getLanguage(_),T=a.languages[k];a.util.setLanguage(_,k);var x=_.parentElement;x&&x.nodeName.toLowerCase()==="pre"&&a.util.setLanguage(x,k);var I=_.textContent,C={element:_,language:k,grammar:T,code:I};function R(L){C.highlightedCode=L,a.hooks.run("before-insert",C),C.element.innerHTML=C.highlightedCode,a.hooks.run("after-highlight",C),a.hooks.run("complete",C),b&&b.call(C.element)}if(a.hooks.run("before-sanity-check",C),x=C.element.parentElement,x&&x.nodeName.toLowerCase()==="pre"&&!x.hasAttribute("tabindex")&&x.setAttribute("tabindex","0"),!C.code){a.hooks.run("complete",C),b&&b.call(C.element);return}if(a.hooks.run("before-highlight",C),!C.grammar){R(a.util.encode(C.code));return}if(S&&n.Worker){var D=new Worker(a.filename);D.onmessage=function(L){R(L.data)},D.postMessage(JSON.stringify({language:C.language,code:C.code,immediateClose:!0}))}else R(a.highlight(C.code,C.grammar,C.language))},highlight:function(_,S,b){var k={code:_,grammar:S,language:b};if(a.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=a.tokenize(k.code,k.grammar),a.hooks.run("after-tokenize",k),l.stringify(a.util.encode(k.tokens),k.language)},tokenize:function(_,S){var b=S.rest;if(b){for(var k in b)S[k]=b[k];delete S.rest}var T=new f;return d(T,T.head,_),c(_,T,S,T.head,0),g(T)},hooks:{all:{},add:function(_,S){var b=a.hooks.all;b[_]=b[_]||[],b[_].push(S)},run:function(_,S){var b=a.hooks.all[_];if(!(!b||!b.length))for(var k=0,T;T=b[k++];)T(S)}},Token:l};n.Prism=a;function l(_,S,b,k){this.type=_,this.content=S,this.alias=b,this.length=(k||"").length|0}l.stringify=function _(S,b){if(typeof S=="string")return S;if(Array.isArray(S)){var k="";return S.forEach(function(R){k+=_(R,b)}),k}var T={type:S.type,content:_(S.content,b),tag:"span",classes:["token",S.type],attributes:{},language:b},x=S.alias;x&&(Array.isArray(x)?Array.prototype.push.apply(T.classes,x):T.classes.push(x)),a.hooks.run("wrap",T);var I="";for(var C in T.attributes)I+=" "+C+'="'+(T.attributes[C]||"").replace(/"/g,""")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+I+">"+T.content+""};function u(_,S,b,k){_.lastIndex=S;var T=_.exec(b);if(T&&k&&T[1]){var x=T[1].length;T.index+=x,T[0]=T[0].slice(x)}return T}function c(_,S,b,k,T,x){for(var I in b)if(!(!b.hasOwnProperty(I)||!b[I])){var C=b[I];C=Array.isArray(C)?C:[C];for(var R=0;R=x.reach);V+=K.value.length,K=K.next){var Z=K.value;if(S.length>_.length)return;if(!(Z instanceof l)){var J=1,ee;if(W){if(ee=u(P,V,_,M),!ee||ee.index>=_.length)break;var Re=ee.index,de=ee.index+ee[0].length,ge=V;for(ge+=K.value.length;Re>=ge;)K=K.next,ge+=K.value.length;if(ge-=K.value.length,V=ge,K.value instanceof l)continue;for(var Se=K;Se!==S.tail&&(gex.reach&&(x.reach=we);var Ge=K.prev;Ee&&(Ge=d(S,Ge,Ee),V+=Ee.length),h(S,Ge,J);var nt=new l(I,L?a.tokenize(ve,L):ve,z,ve);if(K=d(S,Ge,nt),me&&d(S,K,me),J>1){var Qe={cause:I+","+R,reach:we};c(_,S,b,K.prev,V,Qe),x&&Qe.reach>x.reach&&(x.reach=Qe.reach)}}}}}}function f(){var _={value:null,prev:null,next:null},S={value:null,prev:_,next:null};_.next=S,this.head=_,this.tail=S,this.length=0}function d(_,S,b){var k=S.next,T={value:b,prev:S,next:k};return S.next=T,k.prev=T,_.length++,T}function h(_,S,b){for(var k=S.next,T=0;T/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(o,i){var s={};s["language-"+i]={pattern:/(^$)/i,lookbehind:!0,inside:r.languages[i]},s.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:s}};a["language-"+i]={pattern:/[\s\S]+/,inside:r.languages[i]};var l={};l[o]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return o}),"i"),lookbehind:!0,greedy:!0,inside:a},r.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(n,o){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[o,"language-"+o],inside:r.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(n){var o=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+o.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+o.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+o.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+o.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:o,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var i=n.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(typeof r>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n="Loading…",o=function(v,y){return"✖ Error "+v+" while fetching file: "+y},i="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},a="data-src-status",l="loading",u="loaded",c="failed",f="pre[data-src]:not(["+a+'="'+u+'"]):not(['+a+'="'+l+'"])';function d(v,y,E){var _=new XMLHttpRequest;_.open("GET",v,!0),_.onreadystatechange=function(){_.readyState==4&&(_.status<400&&_.responseText?y(_.responseText):_.status>=400?E(o(_.status,_.statusText)):E(i))},_.send(null)}function h(v){var y=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v||"");if(y){var E=Number(y[1]),_=y[2],S=y[3];return _?S?[E,Number(S)]:[E,void 0]:[E,E]}}r.hooks.add("before-highlightall",function(v){v.selector+=", "+f}),r.hooks.add("before-sanity-check",function(v){var y=v.element;if(y.matches(f)){v.code="",y.setAttribute(a,l);var E=y.appendChild(document.createElement("CODE"));E.textContent=n;var _=y.getAttribute("data-src"),S=v.language;if(S==="none"){var b=(/\.(\w+)$/.exec(_)||[,"none"])[1];S=s[b]||b}r.util.setLanguage(E,S),r.util.setLanguage(y,S);var k=r.plugins.autoloader;k&&k.loadLanguages(S),d(_,function(T){y.setAttribute(a,u);var x=h(y.getAttribute("data-range"));if(x){var I=T.split(/\r\n?|\n/g),C=x[0],R=x[1]==null?I.length:x[1];C<0&&(C+=I.length),C=Math.max(0,Math.min(C-1,I.length)),R<0&&(R+=I.length),R=Math.max(0,Math.min(R,I.length)),T=I.slice(C,R).join(` -`),y.hasAttribute("data-start")||y.setAttribute("data-start",String(C+1))}E.textContent=T,r.highlightElement(E)},function(T){y.setAttribute(a,c),E.textContent=T})}}),r.plugins.fileHighlight={highlight:function(y){for(var E=(y||document).querySelectorAll(f),_=0,S;S=E[_++];)r.highlightElement(S)}};var g=!1;r.fileHighlight=function(){g||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),g=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Hme);var cyt=Hme.exports;const ce=zf(cyt);function fyt(e){if(e.sheet)return e.sheet;for(var t=0;t0?di(Qv,--Gs):0,iv--,Eo===10&&(iv=1,U5--),Eo}function ka(){return Eo=Gs2||O_(Eo)>3?"":" "}function kyt(e,t){for(;--t&&ka()&&!(Eo<48||Eo>102||Eo>57&&Eo<65||Eo>70&&Eo<97););return qE(e,Qk()+(t<6&&fc()==32&&ka()==32))}function e8(e){for(;ka();)switch(Eo){case e:return Gs;case 34:case 39:e!==34&&e!==39&&e8(Eo);break;case 40:e===41&&e8(e);break;case 92:ka();break}return Gs}function Ayt(e,t){for(;ka()&&e+Eo!==57;)if(e+Eo===84&&fc()===47)break;return"/*"+qE(t,Gs-1)+"*"+V5(e===47?e:ka())}function xyt(e){for(;!O_(fc());)ka();return qE(e,Gs)}function Tyt(e){return Kme(Jk("",null,null,null,[""],e=Gme(e),0,[0],e))}function Jk(e,t,r,n,o,i,s,a,l){for(var u=0,c=0,f=s,d=0,h=0,g=0,v=1,y=1,E=1,_=0,S="",b=o,k=i,T=n,x=S;y;)switch(g=_,_=ka()){case 40:if(g!=108&&di(x,f-1)==58){JM(x+=Br(Zk(_),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:x+=Zk(_);break;case 9:case 10:case 13:case 32:x+=wyt(g);break;case 92:x+=kyt(Qk()-1,7);continue;case 47:switch(fc()){case 42:case 47:tk(Iyt(Ayt(ka(),Qk()),t,r),l);break;default:x+="/"}break;case 123*v:a[u++]=Uu(x)*E;case 125*v:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+c:E==-1&&(x=Br(x,/\f/g,"")),h>0&&Uu(x)-f&&tk(h>32?vre(x+";",n,r,f-1):vre(Br(x," ","")+";",n,r,f-2),l);break;case 59:x+=";";default:if(tk(T=gre(x,t,r,u,c,o,a,S,b=[],k=[],f),i),_===123)if(c===0)Jk(x,t,T,T,b,i,f,a,k);else switch(d===99&&di(x,3)===110?100:d){case 100:case 108:case 109:case 115:Jk(e,T,T,n&&tk(gre(e,T,T,0,0,o,a,S,o,b=[],f),k),o,k,f,a,n?b:k);break;default:Jk(x,T,T,T,[""],k,0,a,k)}}u=c=h=0,v=E=1,S=x="",f=s;break;case 58:f=1+Uu(x),h=g;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&Syt()==125)continue}switch(x+=V5(_),_*v){case 38:E=c>0?1:(x+="\f",-1);break;case 44:a[u++]=(Uu(x)-1)*E,E=1;break;case 64:fc()===45&&(x+=Zk(ka())),d=fc(),c=f=Uu(S=x+=xyt(Qk())),_++;break;case 45:g===45&&Uu(x)==2&&(v=0)}}return i}function gre(e,t,r,n,o,i,s,a,l,u,c){for(var f=o-1,d=o===0?i:[""],h=vH(d),g=0,v=0,y=0;g0?d[E]+" "+_:Br(_,/&\f/g,d[E])))&&(l[y++]=S);return Y5(e,t,r,o===0?pH:a,l,u,c)}function Iyt(e,t,r){return Y5(e,t,r,$me,V5(Eyt()),R_(e,2,-2),0)}function vre(e,t,r,n){return Y5(e,t,r,gH,R_(e,0,n),R_(e,n+1,-1),n)}function mg(e,t){for(var r="",n=vH(e),o=0;o6)switch(di(e,t+1)){case 109:if(di(e,t+4)!==45)break;case 102:return Br(e,/(.+:)(.+)-([^]+)/,"$1"+Fr+"$2-$3$1"+Yx+(di(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~JM(e,"stretch")?Vme(Br(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(di(e,t+1)!==115)break;case 6444:switch(di(e,Uu(e)-3-(~JM(e,"!important")&&10))){case 107:return Br(e,":",":"+Fr)+e;case 101:return Br(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Fr+(di(e,14)===45?"inline-":"")+"box$3$1"+Fr+"$2$3$1"+xi+"$2box$3")+e}break;case 5936:switch(di(e,t+11)){case 114:return Fr+e+xi+Br(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fr+e+xi+Br(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fr+e+xi+Br(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Fr+e+xi+e+e}return e}var jyt=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case gH:t.return=Vme(t.value,t.length);break;case Pme:return mg([Um(t,{value:Br(t.value,"@","@"+Fr)})],o);case pH:if(t.length)return _yt(t.props,function(i){switch(byt(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mg([Um(t,{props:[Br(i,/:(read-\w+)/,":"+Yx+"$1")]})],o);case"::placeholder":return mg([Um(t,{props:[Br(i,/:(plac\w+)/,":"+Fr+"input-$1")]}),Um(t,{props:[Br(i,/:(plac\w+)/,":"+Yx+"$1")]}),Um(t,{props:[Br(i,/:(plac\w+)/,xi+"input-$1")]})],o)}return""})}},zyt=[jyt],Hyt=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var y=v.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||zyt,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var y=v.getAttribute("data-emotion").split(" "),E=1;ENumber.isNaN(Number(e))).map(([e,t])=>[e,`var(${t})`]));ce.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};ce.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>/=$<%]+(?:\s(?:\s*[^\s>/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>/]+/,inside:{namespace:/^[^\s>/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};ce.languages.markup.tag.inside["attr-value"].inside.entity=ce.languages.markup.entity;ce.languages.markup.doctype.inside["internal-subset"].inside=ce.languages.markup;ce.hooks.add("wrap",function(e){e.type==="entity"&&e.attributes&&(e.attributes.title=e.content.replace(/&/,"&"))});Object.defineProperty(ce.languages.markup.tag,"addInlined",{value:function(t,r){const n={};n["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:ce.languages[r]},n.cdata=/^$/i;const o={"included-cdata":{pattern://i,inside:n}};o["language-"+r]={pattern:/[\s\S]+/,inside:ce.languages[r]};const i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:o},ce.languages.insertBefore("markup","cdata",i)}});Object.defineProperty(ce.languages.markup.tag,"addAttribute",{value:function(e,t){ce.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:ce.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});ce.languages.html=ce.languages.markup;ce.languages.mathml=ce.languages.markup;ce.languages.svg=ce.languages.markup;ce.languages.xml=ce.languages.extend("markup",{});ce.languages.ssml=ce.languages.xml;ce.languages.atom=ce.languages.xml;ce.languages.rss=ce.languages.xml;const Xx="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",mH={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:void 0},Iy={bash:mH,environment:{pattern:RegExp("\\$"+Xx),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!/]|##?|%%?|\^\^?|,,?/,punctuation:/[[\]]/,environment:{pattern:RegExp("(\\{)"+Xx),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};ce.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+Xx),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:Iy},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:mH}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:Iy},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:Iy.entity}}],environment:{pattern:RegExp("\\$?"+Xx),alias:"constant"},variable:Iy.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}};mH.inside=ce.languages.bash;const lF=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Xyt=Iy.variable[1].inside;for(let e=0;e>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});ce.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});ce.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},ce.languages.c.string],char:ce.languages.c.char,comment:ce.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:ce.languages.c}}}});ce.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete ce.languages.c.boolean;const Ym=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;ce.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+Ym.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+Ym.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Ym.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Ym.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Ym,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/};ce.languages.css.atrule.inside.rest=ce.languages.css;const uF=ce.languages.markup;uF&&(uF.tag.addInlined("style","css"),uF.tag.addAttribute("style","css"));const r8=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,Qyt=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return r8.source});ce.languages.cpp=ce.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return r8.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:r8,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/});ce.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return Qyt})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}});ce.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:ce.languages.cpp}}}});ce.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});ce.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:ce.languages.extend("cpp",{})}});ce.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},ce.languages.cpp["base-clause"]);const Zyt="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",rk={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:ce.languages.markup}};function nk(e,t){return RegExp(e.replace(//g,function(){return Zyt}),t)}ce.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:nk(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:rk},"attr-value":{pattern:nk(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:rk},"attr-name":{pattern:nk(/([[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:rk},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:nk(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:rk},operator:/[=:]|-[->]/,punctuation:/[[\]{};,]/};ce.languages.gv=ce.languages.dot;ce.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};const n8={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n8).forEach(function(e){const t=n8[e],r=[];/^\w+$/.test(e)||r.push(/\w+/.exec(e)[0]),e==="diff"&&r.push("bold"),ce.languages.diff[e]={pattern:RegExp("^(?:["+t+`].*(?:\r +`),y.hasAttribute("data-start")||y.setAttribute("data-start",String(C+1))}E.textContent=T,r.highlightElement(E)},function(T){y.setAttribute(a,c),E.textContent=T})}}),r.plugins.fileHighlight={highlight:function(y){for(var E=(y||document).querySelectorAll(f),_=0,S;S=E[_++];)r.highlightElement(S)}};var g=!1;r.fileHighlight=function(){g||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),g=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Gme);var myt=Gme.exports;const ce=zf(myt);function yyt(e){if(e.sheet)return e.sheet;for(var t=0;t0?di(Qv,--Gs):0,iv--,Eo===10&&(iv=1,U5--),Eo}function ka(){return Eo=Gs2||O_(Eo)>3?"":" "}function Ryt(e,t){for(;--t&&ka()&&!(Eo<48||Eo>102||Eo>57&&Eo<65||Eo>70&&Eo<97););return WE(e,Zk()+(t<6&&fc()==32&&ka()==32))}function t8(e){for(;ka();)switch(Eo){case e:return Gs;case 34:case 39:e!==34&&e!==39&&t8(Eo);break;case 40:e===41&&t8(e);break;case 92:ka();break}return Gs}function Oyt(e,t){for(;ka()&&e+Eo!==57;)if(e+Eo===84&&fc()===47)break;return"/*"+WE(t,Gs-1)+"*"+V5(e===47?e:ka())}function Dyt(e){for(;!O_(fc());)ka();return WE(e,Gs)}function Fyt(e){return Qme(eA("",null,null,null,[""],e=Xme(e),0,[0],e))}function eA(e,t,r,n,o,i,s,a,l){for(var u=0,c=0,f=s,d=0,h=0,g=0,v=1,y=1,E=1,_=0,S="",b=o,k=i,T=n,x=S;y;)switch(g=_,_=ka()){case 40:if(g!=108&&di(x,f-1)==58){e8(x+=Br(Jk(_),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:x+=Jk(_);break;case 9:case 10:case 13:case 32:x+=Nyt(g);break;case 92:x+=Ryt(Zk()-1,7);continue;case 47:switch(fc()){case 42:case 47:rk(Byt(Oyt(ka(),Zk()),t,r),l);break;default:x+="/"}break;case 123*v:a[u++]=Uu(x)*E;case 125*v:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+c:E==-1&&(x=Br(x,/\f/g,"")),h>0&&Uu(x)-f&&rk(h>32?mre(x+";",n,r,f-1):mre(Br(x," ","")+";",n,r,f-2),l);break;case 59:x+=";";default:if(rk(T=vre(x,t,r,u,c,o,a,S,b=[],k=[],f),i),_===123)if(c===0)eA(x,t,T,T,b,i,f,a,k);else switch(d===99&&di(x,3)===110?100:d){case 100:case 108:case 109:case 115:eA(e,T,T,n&&rk(vre(e,T,T,0,0,o,a,S,o,b=[],f),k),o,k,f,a,n?b:k);break;default:eA(x,T,T,T,[""],k,0,a,k)}}u=c=h=0,v=E=1,S=x="",f=s;break;case 58:f=1+Uu(x),h=g;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&Cyt()==125)continue}switch(x+=V5(_),_*v){case 38:E=c>0?1:(x+="\f",-1);break;case 44:a[u++]=(Uu(x)-1)*E,E=1;break;case 64:fc()===45&&(x+=Jk(ka())),d=fc(),c=f=Uu(S=x+=Dyt(Zk())),_++;break;case 45:g===45&&Uu(x)==2&&(v=0)}}return i}function vre(e,t,r,n,o,i,s,a,l,u,c){for(var f=o-1,d=o===0?i:[""],h=mH(d),g=0,v=0,y=0;g0?d[E]+" "+_:Br(_,/&\f/g,d[E])))&&(l[y++]=S);return Y5(e,t,r,o===0?gH:a,l,u,c)}function Byt(e,t,r){return Y5(e,t,r,Kme,V5(Iyt()),R_(e,2,-2),0)}function mre(e,t,r,n){return Y5(e,t,r,vH,R_(e,0,n),R_(e,n+1,-1),n)}function mg(e,t){for(var r="",n=mH(e),o=0;o6)switch(di(e,t+1)){case 109:if(di(e,t+4)!==45)break;case 102:return Br(e,/(.+:)(.+)-([^]+)/,"$1"+Fr+"$2-$3$1"+Xx+(di(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~e8(e,"stretch")?Zme(Br(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(di(e,t+1)!==115)break;case 6444:switch(di(e,Uu(e)-3-(~e8(e,"!important")&&10))){case 107:return Br(e,":",":"+Fr)+e;case 101:return Br(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Fr+(di(e,14)===45?"inline-":"")+"box$3$1"+Fr+"$2$3$1"+Ai+"$2box$3")+e}break;case 5936:switch(di(e,t+11)){case 114:return Fr+e+Ai+Br(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fr+e+Ai+Br(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fr+e+Ai+Br(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Fr+e+Ai+e+e}return e}var Gyt=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case vH:t.return=Zme(t.value,t.length);break;case Vme:return mg([Um(t,{value:Br(t.value,"@","@"+Fr)})],o);case gH:if(t.length)return Tyt(t.props,function(i){switch(xyt(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mg([Um(t,{props:[Br(i,/:(read-\w+)/,":"+Xx+"$1")]})],o);case"::placeholder":return mg([Um(t,{props:[Br(i,/:(plac\w+)/,":"+Fr+"input-$1")]}),Um(t,{props:[Br(i,/:(plac\w+)/,":"+Xx+"$1")]}),Um(t,{props:[Br(i,/:(plac\w+)/,Ai+"input-$1")]})],o)}return""})}},Kyt=[Gyt],Vyt=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var y=v.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||Kyt,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var y=v.getAttribute("data-emotion").split(" "),E=1;ENumber.isNaN(Number(e))).map(([e,t])=>[e,`var(${t})`]));ce.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};ce.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>/=$<%]+(?:\s(?:\s*[^\s>/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>/]+/,inside:{namespace:/^[^\s>/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};ce.languages.markup.tag.inside["attr-value"].inside.entity=ce.languages.markup.entity;ce.languages.markup.doctype.inside["internal-subset"].inside=ce.languages.markup;ce.hooks.add("wrap",function(e){e.type==="entity"&&e.attributes&&(e.attributes.title=e.content.replace(/&/,"&"))});Object.defineProperty(ce.languages.markup.tag,"addInlined",{value:function(t,r){const n={};n["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:ce.languages[r]},n.cdata=/^$/i;const o={"included-cdata":{pattern://i,inside:n}};o["language-"+r]={pattern:/[\s\S]+/,inside:ce.languages[r]};const i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:o},ce.languages.insertBefore("markup","cdata",i)}});Object.defineProperty(ce.languages.markup.tag,"addAttribute",{value:function(e,t){ce.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:ce.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});ce.languages.html=ce.languages.markup;ce.languages.mathml=ce.languages.markup;ce.languages.svg=ce.languages.markup;ce.languages.xml=ce.languages.extend("markup",{});ce.languages.ssml=ce.languages.xml;ce.languages.atom=ce.languages.xml;ce.languages.rss=ce.languages.xml;const Qx="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",yH={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:void 0},Iy={bash:yH,environment:{pattern:RegExp("\\$"+Qx),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!/]|##?|%%?|\^\^?|,,?/,punctuation:/[[\]]/,environment:{pattern:RegExp("(\\{)"+Qx),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};ce.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+Qx),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:Iy},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:yH}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:Iy},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:Iy.entity}}],environment:{pattern:RegExp("\\$?"+Qx),alias:"constant"},variable:Iy.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}};yH.inside=ce.languages.bash;const uF=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],nbt=Iy.variable[1].inside;for(let e=0;e>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});ce.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});ce.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},ce.languages.c.string],char:ce.languages.c.char,comment:ce.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:ce.languages.c}}}});ce.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete ce.languages.c.boolean;const Ym=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;ce.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+Ym.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+Ym.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Ym.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+Ym.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Ym,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/};ce.languages.css.atrule.inside.rest=ce.languages.css;const cF=ce.languages.markup;cF&&(cF.tag.addInlined("style","css"),cF.tag.addAttribute("style","css"));const n8=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,obt=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return n8.source});ce.languages.cpp=ce.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return n8.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n8,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/});ce.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return obt})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}});ce.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:ce.languages.cpp}}}});ce.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});ce.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:ce.languages.extend("cpp",{})}});ce.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},ce.languages.cpp["base-clause"]);const ibt="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",nk={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:ce.languages.markup}};function ok(e,t){return RegExp(e.replace(//g,function(){return ibt}),t)}ce.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:ok(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:nk},"attr-value":{pattern:ok(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:nk},"attr-name":{pattern:ok(/([[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:nk},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:ok(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:nk},operator:/[=:]|-[->]/,punctuation:/[[\]{};,]/};ce.languages.gv=ce.languages.dot;ce.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};const o8={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(o8).forEach(function(e){const t=o8[e],r=[];/^\w+$/.test(e)||r.push(/\w+/.exec(e)[0]),e==="diff"&&r.push("bold"),ce.languages.diff[e]={pattern:RegExp("^(?:["+t+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:r,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(e)[0]}}}});Object.defineProperty(ce.languages.diff,"PREFIXES",{value:n8});ce.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m};ce.languages.go=ce.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/});ce.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}});delete ce.languages.go["class-name"];const o8=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,M_=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,yg={pattern:RegExp(/(^|[^\w.])/.source+M_+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};ce.languages.java=ce.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[yg,{pattern:RegExp(/(^|[^\w.])/.source+M_+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:yg.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+M_+/[A-Z]\w*\b/.source),lookbehind:!0,inside:yg.inside}],keyword:o8,function:[ce.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/});ce.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}});ce.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":yg,keyword:o8,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+M_+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:yg.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+M_+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:yg.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return o8.source})),lookbehind:!0,inside:{punctuation:/\./}}});ce.languages.javascript=ce.languages.extend("clike",{"class-name":[ce.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});ce.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;ce.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:ce.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:ce.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:ce.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:ce.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:ce.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});ce.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:ce.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});ce.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});if(ce.languages.markup){const e=ce.languages.markup;e.tag.addInlined("script","javascript"),e.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")}ce.languages.js=ce.languages.javascript;ce.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};ce.languages.webmanifest=ce.languages.json;const Qme=ce.util.clone(ce.languages.javascript),Jyt=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,ebt=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source;let i8=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function X5(e,t){const r=e.replace(//g,()=>Jyt).replace(//g,()=>ebt).replace(//g,()=>i8);return RegExp(r,t)}i8=X5(i8).source;ce.languages.jsx=ce.languages.extend("markup",Qme);const Sp=ce.languages.jsx;Sp.tag.pattern=X5(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source);Sp.tag.inside.tag.pattern=/^<\/?[^\s>/]*/;Sp.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/;Sp.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/;Sp.tag.inside.comment=Qme.comment;ce.languages.insertBefore("inside","attr-name",{spread:{pattern:X5(//.source),inside:ce.languages.jsx}},Sp.tag);ce.languages.insertBefore("inside","special-attr",{script:{pattern:X5(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:ce.languages.jsx}}},Sp.tag);const E0=function(e){return e?typeof e=="string"?e:typeof e.content=="string"?e.content:e.content.map(E0).join(""):""},Zme=function(e){const t=[];for(let r=0;r0&&t[t.length-1].tagName===E0(i[0].content[1])&&t.pop():i[i.length-1].content==="/>"||t.push({tagName:E0(i[0].content[1]),openedBraces:0}):t.length>0&&n.type==="punctuation"&&n.content==="{"?t[t.length-1].openedBraces+=1:t.length>0&&t[t.length-1].openedBraces>0&&n.type==="punctuation"&&n.content==="}"?t[t.length-1].openedBraces-=1:o=!0}if((o||typeof n=="string")&&t.length>0&&t[t.length-1].openedBraces===0){let i=E0(n);r0&&(typeof e[r-1]=="string"||e[r-1].type==="plain-text")&&(i=E0(e[r-1])+i,e.splice(r-1,1),r-=1),e[r]=new ce.Token("plain-text",i,void 0,i)}typeof n!="string"&&n.content&&typeof n.content!="string"&&Zme(n.content)}};ce.hooks.add("after-tokenize",function(e){e.language!=="jsx"&&e.language!=="tsx"||Zme(e.tokens)});ce.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/};const tbt=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function ok(e){const t=e.replace(//g,function(){return tbt});return RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+t+")")}const s8=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,l0=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return s8}),cF=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;ce.languages.markdown=ce.languages.extend("markup",{});ce.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:ce.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+l0+cF+"(?:"+l0+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+l0+cF+")(?:"+l0+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(s8),inside:ce.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+l0+")"+cF+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+l0+"$"),inside:{"table-header":{pattern:RegExp(s8),alias:"important",inside:ce.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[[\]!:]|[<>]/},alias:"url"},bold:{pattern:ok(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:ok(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:ok(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:ok(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}});["url","bold","italic","strike"].forEach(function(e){["url","bold","italic","strike","code-snippet"].forEach(function(t){if(e!==t){const r=ce.languages.markdown;r[e].inside.content.inside[t]=r[t]}})});ce.hooks.add("after-tokenize",function(e){if(e.language!=="markdown"&&e.language!=="md")return;function t(r){if(!(!r||typeof r=="string"))for(let n=0,o=r.length;n",quot:'"'},obt=String.fromCodePoint||String.fromCharCode;function ibt(e){let t=e.replace(rbt,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(r,n){if(n=n.toLowerCase(),n[0]==="#"){let o;return n[1]==="x"?o=parseInt(n.slice(2),16):o=Number(n.slice(1)),obt(o)}else{const o=nbt[n];return o||r}}),t}ce.languages.md=ce.languages.markdown;ce.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};ce.languages.python["string-interpolation"].inside.interpolation.inside.rest=ce.languages.python;ce.languages.py=ce.languages.python;ce.languages.scss=ce.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}});ce.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]});ce.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/});ce.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}});ce.languages.scss.atrule.inside.rest=ce.languages.scss;ce.languages.sass=ce.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}});ce.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}});delete ce.languages.sass.atrule;const wre=/\$[-\w]+|#\{\$[-\w]+\}/,kre=[/[+*/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];ce.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:wre,operator:kre}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:wre,operator:kre,important:ce.languages.sass.important}}});delete ce.languages.sass.property;delete ce.languages.sass.important;ce.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}});ce.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};const Are={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},xre={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},ks={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:Are,number:xre,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:Are,boolean:/\b(?:false|true)\b/,operator:[/~|[+!/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:xre,punctuation:/[{}()[\];:,]/};ks.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:ks}};ks.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:ks}};ce.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:ks}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:ks}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:ks}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:ks.interpolation}},rest:ks}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:ks.interpolation,comment:ks.comment,punctuation:/[{},]/}},func:ks.func,string:ks.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:ks.interpolation,punctuation:/[{}()[\];:.]/};ce.languages.typescript=ce.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/});ce.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[{*]|$))/);delete ce.languages.typescript.parameter;delete ce.languages.typescript["literal-property"];const yH=ce.languages.extend("typescript",{});delete yH["class-name"];ce.languages.typescript["class-name"].inside=yH;ce.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:yH}}}});ce.languages.ts=ce.languages.typescript;const sbt=ce.util.clone(ce.languages.typescript);ce.languages.tsx=ce.languages.extend("jsx",sbt);delete ce.languages.tsx.parameter;delete ce.languages.tsx["literal-property"];const eA=ce.languages.tsx.tag;eA.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+eA.pattern.source+")",eA.pattern.flags);eA.lookbehind=!0;ce.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/};ce.languages.vb=ce.languages["visual-basic"];ce.languages.vba=ce.languages["visual-basic"];ce.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};const a8=/[*&][^\s[\]{},]+/,l8=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,u8="(?:"+l8.source+"(?:[ ]+"+a8.source+")?|"+a8.source+"(?:[ ]+"+l8.source+")?)",abt=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,()=>/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source),Tre=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function Xm(e,t){const r=(t||"").replace(/m/g,"")+"m",n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return u8}).replace(/<>/g,function(){return e});return RegExp(n,r)}ce.languages.yaml={scalar:{pattern:RegExp(/([-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return u8})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return u8}).replace(/<>/g,function(){return"(?:"+abt+"|"+Tre+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:Xm(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:Xm(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:Xm(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:Xm(Tre),lookbehind:!0,greedy:!0},number:{pattern:Xm(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:l8,important:a8,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./};ce.languages.yml=ce.languages.yaml;const lbt={plain:{color:"#d4d4d4",backgroundColor:"#1e1e1e"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment","punctuation"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin"],style:{color:"rgb(79, 193, 255)"}},{types:["number","variable","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["operator"],style:{color:"rgb(212, 212, 212)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["tag","changed","function","keyword"],style:{color:"rgb(86, 156, 214)"}},{types:["attr-name"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value"],style:{color:"rgb(206, 145, 120)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}}]},ubt={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Qa={border:`1px solid var(${B_.colorBorderCodeLineno}, hsla(0deg, 0%, 80%, 0.8))`,highlightBackground:`var(${B_.colorBgCodeHighlight}, hsla(30deg, 90%, 50%, 0.3))`,fontSizeCode:`var(${F_.fontSizeCode}, 14px)`,lineHeightCode:`var(${F_.lineHeightCode}, 1.6)`},Pu={container:pd({MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",display:"flex",alignItems:"stretch",overflow:"hidden",width:"100%",fontSize:Qa.fontSizeCode,lineHeight:Qa.lineHeightCode,padding:0,transition:"max-height 0.5s ease-in-out",tabSize:2,fontSmooth:"always",whiteSpace:"pre",wordBreak:"keep-all",wordSpacing:"normal",wordWrap:"normal"}),line:pd({boxSizing:"border-box",display:"flex",minWidth:"fit-content",width:"100%",padding:"0 6px",letterSpacing:"inherit",fontSize:Qa.fontSizeCode,lineHeight:Qa.lineHeightCode,height:Qa.lineHeightCode,overflowWrap:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"inherit",wordBreak:"inherit",wordSpacing:"inherit",wordWrap:"inherit"}),linenoLine:pd({justifyContent:"flex-end",padding:"0 4px"}),highlightLine:pd({background:Qa.highlightBackground,borderColor:"transparent"}),lineno:pd({flex:"0 0 auto",overflow:"hidden",boxSizing:"border-box",padding:"0.5rem 0",cursor:"default",fontSize:Qa.fontSizeCode,lineHeight:Qa.lineHeightCode,userSelect:"none",textAlign:"right",borderRight:Qa.border}),codes:pd({flex:"1 1 auto",overflow:"overlay",boxSizing:"border-box",padding:"0.5rem 0",fontSize:Qa.fontSizeCode,lineHeight:Qa.lineHeightCode}),codeWrapper:pd({minWidth:"100%",width:"fit-content"}),codeLine:pd({boxSizing:"border-box",padding:"0 12px"})},cbt={js:"javascript",ts:"typescript"},Ire=(e,t)=>{e=cbt[e]??e;const{plain:r}=t,n=Object.create(null),o=t.styles.reduce((i,s)=>{const{types:a,style:l,languages:u}=s;if(u&&!u.includes(e))return i;for(const c of a){const f={...i[c],...l};i[c]=f}return i},n);return o.root=r,o.plain={...r,backgroundColor:void 0},o},fbt=/\r\n|\r|\n/,Cre=e=>{e.length===0?e.push({types:["plain"],content:` +|(?![\\s\\S])))+`,"m"),alias:r,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(e)[0]}}}});Object.defineProperty(ce.languages.diff,"PREFIXES",{value:o8});ce.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m};ce.languages.go=ce.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/});ce.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}});delete ce.languages.go["class-name"];const i8=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,M_=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,yg={pattern:RegExp(/(^|[^\w.])/.source+M_+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};ce.languages.java=ce.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[yg,{pattern:RegExp(/(^|[^\w.])/.source+M_+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:yg.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+M_+/[A-Z]\w*\b/.source),lookbehind:!0,inside:yg.inside}],keyword:i8,function:[ce.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/});ce.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}});ce.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":yg,keyword:i8,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+M_+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:yg.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+M_+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:yg.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return i8.source})),lookbehind:!0,inside:{punctuation:/\./}}});ce.languages.javascript=ce.languages.extend("clike",{"class-name":[ce.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});ce.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;ce.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:ce.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:ce.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:ce.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:ce.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:ce.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});ce.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:ce.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});ce.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});if(ce.languages.markup){const e=ce.languages.markup;e.tag.addInlined("script","javascript"),e.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")}ce.languages.js=ce.languages.javascript;ce.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};ce.languages.webmanifest=ce.languages.json;const rye=ce.util.clone(ce.languages.javascript),sbt=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,abt=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source;let s8=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function X5(e,t){const r=e.replace(//g,()=>sbt).replace(//g,()=>abt).replace(//g,()=>s8);return RegExp(r,t)}s8=X5(s8).source;ce.languages.jsx=ce.languages.extend("markup",rye);const Sp=ce.languages.jsx;Sp.tag.pattern=X5(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source);Sp.tag.inside.tag.pattern=/^<\/?[^\s>/]*/;Sp.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/;Sp.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/;Sp.tag.inside.comment=rye.comment;ce.languages.insertBefore("inside","attr-name",{spread:{pattern:X5(//.source),inside:ce.languages.jsx}},Sp.tag);ce.languages.insertBefore("inside","special-attr",{script:{pattern:X5(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:ce.languages.jsx}}},Sp.tag);const E0=function(e){return e?typeof e=="string"?e:typeof e.content=="string"?e.content:e.content.map(E0).join(""):""},nye=function(e){const t=[];for(let r=0;r0&&t[t.length-1].tagName===E0(i[0].content[1])&&t.pop():i[i.length-1].content==="/>"||t.push({tagName:E0(i[0].content[1]),openedBraces:0}):t.length>0&&n.type==="punctuation"&&n.content==="{"?t[t.length-1].openedBraces+=1:t.length>0&&t[t.length-1].openedBraces>0&&n.type==="punctuation"&&n.content==="}"?t[t.length-1].openedBraces-=1:o=!0}if((o||typeof n=="string")&&t.length>0&&t[t.length-1].openedBraces===0){let i=E0(n);r0&&(typeof e[r-1]=="string"||e[r-1].type==="plain-text")&&(i=E0(e[r-1])+i,e.splice(r-1,1),r-=1),e[r]=new ce.Token("plain-text",i,void 0,i)}typeof n!="string"&&n.content&&typeof n.content!="string"&&nye(n.content)}};ce.hooks.add("after-tokenize",function(e){e.language!=="jsx"&&e.language!=="tsx"||nye(e.tokens)});ce.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/};const lbt=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function ik(e){const t=e.replace(//g,function(){return lbt});return RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+t+")")}const a8=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,l0=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a8}),fF=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;ce.languages.markdown=ce.languages.extend("markup",{});ce.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:ce.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+l0+fF+"(?:"+l0+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+l0+fF+")(?:"+l0+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a8),inside:ce.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+l0+")"+fF+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+l0+"$"),inside:{"table-header":{pattern:RegExp(a8),alias:"important",inside:ce.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[[\]!:]|[<>]/},alias:"url"},bold:{pattern:ik(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:ik(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:ik(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:ik(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}});["url","bold","italic","strike"].forEach(function(e){["url","bold","italic","strike","code-snippet"].forEach(function(t){if(e!==t){const r=ce.languages.markdown;r[e].inside.content.inside[t]=r[t]}})});ce.hooks.add("after-tokenize",function(e){if(e.language!=="markdown"&&e.language!=="md")return;function t(r){if(!(!r||typeof r=="string"))for(let n=0,o=r.length;n",quot:'"'},fbt=String.fromCodePoint||String.fromCharCode;function dbt(e){let t=e.replace(ubt,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(r,n){if(n=n.toLowerCase(),n[0]==="#"){let o;return n[1]==="x"?o=parseInt(n.slice(2),16):o=Number(n.slice(1)),fbt(o)}else{const o=cbt[n];return o||r}}),t}ce.languages.md=ce.languages.markdown;ce.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};ce.languages.python["string-interpolation"].inside.interpolation.inside.rest=ce.languages.python;ce.languages.py=ce.languages.python;ce.languages.scss=ce.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}});ce.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]});ce.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/});ce.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}});ce.languages.scss.atrule.inside.rest=ce.languages.scss;ce.languages.sass=ce.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}});ce.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}});delete ce.languages.sass.atrule;const kre=/\$[-\w]+|#\{\$[-\w]+\}/,Are=[/[+*/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];ce.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:kre,operator:Are}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:kre,operator:Are,important:ce.languages.sass.important}}});delete ce.languages.sass.property;delete ce.languages.sass.important;ce.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}});ce.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};const xre={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},Tre={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},ks={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:xre,number:Tre,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:xre,boolean:/\b(?:false|true)\b/,operator:[/~|[+!/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:Tre,punctuation:/[{}()[\];:,]/};ks.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:ks}};ks.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:ks}};ce.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:ks}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:ks}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:ks}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:ks.interpolation}},rest:ks}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:ks.interpolation,comment:ks.comment,punctuation:/[{},]/}},func:ks.func,string:ks.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:ks.interpolation,punctuation:/[{}()[\];:.]/};ce.languages.typescript=ce.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/});ce.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[{*]|$))/);delete ce.languages.typescript.parameter;delete ce.languages.typescript["literal-property"];const bH=ce.languages.extend("typescript",{});delete bH["class-name"];ce.languages.typescript["class-name"].inside=bH;ce.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:bH}}}});ce.languages.ts=ce.languages.typescript;const hbt=ce.util.clone(ce.languages.typescript);ce.languages.tsx=ce.languages.extend("jsx",hbt);delete ce.languages.tsx.parameter;delete ce.languages.tsx["literal-property"];const tA=ce.languages.tsx.tag;tA.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+tA.pattern.source+")",tA.pattern.flags);tA.lookbehind=!0;ce.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/};ce.languages.vb=ce.languages["visual-basic"];ce.languages.vba=ce.languages["visual-basic"];ce.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};const l8=/[*&][^\s[\]{},]+/,u8=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,c8="(?:"+u8.source+"(?:[ ]+"+l8.source+")?|"+l8.source+"(?:[ ]+"+u8.source+")?)",pbt=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,()=>/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source),Ire=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function Xm(e,t){const r=(t||"").replace(/m/g,"")+"m",n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return c8}).replace(/<>/g,function(){return e});return RegExp(n,r)}ce.languages.yaml={scalar:{pattern:RegExp(/([-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return c8})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return c8}).replace(/<>/g,function(){return"(?:"+pbt+"|"+Ire+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:Xm(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:Xm(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:Xm(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:Xm(Ire),lookbehind:!0,greedy:!0},number:{pattern:Xm(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:u8,important:l8,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./};ce.languages.yml=ce.languages.yaml;const gbt={plain:{color:"#d4d4d4",backgroundColor:"#1e1e1e"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment","punctuation"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin"],style:{color:"rgb(79, 193, 255)"}},{types:["number","variable","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["operator"],style:{color:"rgb(212, 212, 212)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["tag","changed","function","keyword"],style:{color:"rgb(86, 156, 214)"}},{types:["attr-name"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value"],style:{color:"rgb(206, 145, 120)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}}]},vbt={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Za={border:`1px solid var(${B_.colorBorderCodeLineno}, hsla(0deg, 0%, 80%, 0.8))`,highlightBackground:`var(${B_.colorBgCodeHighlight}, hsla(30deg, 90%, 50%, 0.3))`,fontSizeCode:`var(${F_.fontSizeCode}, 14px)`,lineHeightCode:`var(${F_.lineHeightCode}, 1.6)`},Pu={container:pd({MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",display:"flex",alignItems:"stretch",overflow:"hidden",width:"100%",fontSize:Za.fontSizeCode,lineHeight:Za.lineHeightCode,padding:0,transition:"max-height 0.5s ease-in-out",tabSize:2,fontSmooth:"always",whiteSpace:"pre",wordBreak:"keep-all",wordSpacing:"normal",wordWrap:"normal"}),line:pd({boxSizing:"border-box",display:"flex",minWidth:"fit-content",width:"100%",padding:"0 6px",letterSpacing:"inherit",fontSize:Za.fontSizeCode,lineHeight:Za.lineHeightCode,height:Za.lineHeightCode,overflowWrap:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"inherit",wordBreak:"inherit",wordSpacing:"inherit",wordWrap:"inherit"}),linenoLine:pd({justifyContent:"flex-end",padding:"0 4px"}),highlightLine:pd({background:Za.highlightBackground,borderColor:"transparent"}),lineno:pd({flex:"0 0 auto",overflow:"hidden",boxSizing:"border-box",padding:"0.5rem 0",cursor:"default",fontSize:Za.fontSizeCode,lineHeight:Za.lineHeightCode,userSelect:"none",textAlign:"right",borderRight:Za.border}),codes:pd({flex:"1 1 auto",overflow:"overlay",boxSizing:"border-box",padding:"0.5rem 0",fontSize:Za.fontSizeCode,lineHeight:Za.lineHeightCode}),codeWrapper:pd({minWidth:"100%",width:"fit-content"}),codeLine:pd({boxSizing:"border-box",padding:"0 12px"})},mbt={js:"javascript",ts:"typescript"},Cre=(e,t)=>{e=mbt[e]??e;const{plain:r}=t,n=Object.create(null),o=t.styles.reduce((i,s)=>{const{types:a,style:l,languages:u}=s;if(u&&!u.includes(e))return i;for(const c of a){const f={...i[c],...l};i[c]=f}return i},n);return o.root=r,o.plain={...r,backgroundColor:void 0},o},ybt=/\r\n|\r|\n/,Nre=e=>{e.length===0?e.push({types:["plain"],content:` `,empty:!0}):e.length===1&&e[0].content===""&&(e[0].content=` -`,e[0].empty=!0)},Nre=(e,t)=>{const r=e.length;return r>0&&e[r-1]===t?e:e.concat(t)},Rre=e=>{const t=[[]],r=[e],n=[0],o=[e.length];let i=[];const s=[i];for(let a=0;a>-1;--a){for(let l=0;(l=n[a]++)0?c:["plain"],u=d):(c=Nre(c,d.type),d.alias&&(c=Nre(c,d.alias)),u=d.content),typeof u!="string"){a+=1,t.push(c),r.push(u),n.push(0),o.push(u.length);continue}const h=u.split(fbt),g=h.length;i.push({types:c,content:h[0]});for(let v=1;v{var i,s;const n=r.target;if(n==null)return;const{scrollTop:o}=n;(s=(i=this.linenoRef.current)==null?void 0:i.scrollTo)==null||s.call(i,0,o)});const n=Ire(r.language,r.theme),o=this.tokenize(r.code,r.language),i=r.showLineno?`${Math.max(2,String(o.length).length)*1.1}em`:void 0;this.state={linenoWidth:i,themeDict:n,tokens:o},this.linenoRef={current:null}}shouldComponentUpdate(r,n){const o=this.props,i=this.state;return i.linenoWidth!==n.linenoWidth||i.themeDict!==n.themeDict||i.tokens!==n.tokens||o.code!==r.code||o.codesRef!==r.codesRef||o.collapsed!==r.collapsed||o.language!==r.language||o.maxLines!==r.maxLines||o.showLineno!==r.showLineno||!$h(o.theme,r.theme)||!$h(o.highlightLinenos,r.highlightLinenos)}render(){const{linenoRef:r,onScroll:n}=this,{codesRef:o,collapsed:i,highlightLinenos:s,language:a,maxLines:l,showLineno:u=!0}=this.props,{linenoWidth:c,tokens:f}=this.state,d=f.length,h=l>0?Math.min(l,d):d,g={...this.state.themeDict.root,backgroundColor:"none",...i?{maxHeight:0}:{maxHeight:`calc(calc(${Qa.lineHeightCode} * ${h+.8}) + 6px)`,minHeight:"100%"}};return re.createElement("div",{className:t8(Pu.container,a?`prism-code language-${a}`:"prism-code"),style:g},u&&re.createElement("div",{key:"linenos",className:Pu.lineno,style:{width:c},ref:r},re.createElement(c8,{countOfLines:d,highlightLinenos:s})),re.createElement("div",{key:"codes",ref:o,className:Pu.codes,onScroll:n},re.createElement("div",{className:Pu.codeWrapper},f.map((v,y)=>{const E=s.includes(y+1),_=this.getLineProps({line:v});return re.createElement("div",{..._,key:y,className:t8(Pu.line,Pu.codeLine,E&&Pu.highlightLine,_.className)},v.map((S,b)=>re.createElement("span",{...this.getTokenProps({token:S}),key:b})))}))))}componentDidMount(){var r,n;(n=(r=this.props).onLinenoWidthChange)==null||n.call(r,this.state.linenoWidth)}componentDidUpdate(r,n){var a,l;const o=this.props,i=this.state,s=o.language!==r.language||!$h(o.theme,r.theme)?Ire(o.language,o.theme):i.themeDict;if(o.code!==r.code||o.language!==r.language||s!==n.themeDict){const u=this.tokenize(o.code,o.language),c=o.showLineno?`${Math.max(2,String(u.length).length)*1.1}em`:void 0;this.setState({linenoWidth:c,themeDict:s,tokens:u})}i.linenoWidth!==n.linenoWidth&&((l=(a=this.props).onLinenoWidthChange)==null||l.call(a,i.linenoWidth))}tokenize(r,n){const o=n?ce.languages[n]:void 0;if(o){const i={code:r,grammar:o,language:n,tokens:[]};return ce.hooks.run("before-tokenize",i),i.tokens=ce.tokenize(i.code,i.grammar),ce.hooks.run("after-tokenize",i),Rre(i.tokens)}else return Rre([r])}getLineProps(r){const{themeDict:n}=this.state,{key:o,className:i,style:s,line:a,...l}=r,u={...l,className:"token-line",style:void 0,key:void 0};return n!==void 0&&(u.style=n.plain),s!==void 0&&(u.style=u.style!==void 0?{...u.style,...s}:s),o!==void 0&&(u.key=o),i&&(u.className+=` ${i}`),u}getStyleForToken({types:r,empty:n}){const{themeDict:o}=this.state,i=r.length;if(o===void 0)return;if(i===1&&r[0]==="plain")return n?{display:"inline-block"}:void 0;if(i===1&&!n)return o[r[0]];const s=n?{display:"inline-block"}:{};for(const a of r){const l=o[a];Object.assign(s,l)}return s}getTokenProps(r){const{key:n,className:o,style:i,token:s,...a}=r,l={...a,className:`token ${s.types.join(" ")}`,children:s.content,style:this.getStyleForToken(s),key:void 0};return i!==void 0&&(l.style=l.style!==void 0?{...l.style,...i}:i),n!==void 0&&(l.key=n),o&&(l.className+=` ${o}`),l}}Be(f8,"displayName","HighlightContent"),Be(f8,"propTypes",{code:Mr.string.isRequired,codesRef:Mr.any,collapsed:Mr.bool.isRequired,language:Mr.string.isRequired,maxLines:Mr.number.isRequired,showLineno:Mr.bool.isRequired,theme:Mr.object.isRequired,highlightLinenos:Mr.array.isRequired,onLinenoWidthChange:Mr.func});class d8 extends re.PureComponent{render(){const{lang:t,value:r,darken:n=!0,highlightLinenos:o=[],maxLines:i=-1,collapsed:s=!1,showLineNo:a=!0,codesRef:l,onLinenoWidthChange:u}=this.props,c=this.props.theme??(n?lbt:ubt);return re.createElement(f8,{code:r,codesRef:l,collapsed:s,highlightLinenos:o,language:t??"",maxLines:i,showLineno:a,theme:c,onLinenoWidthChange:u})}}Be(d8,"displayName","YozoraCodeHighlighter"),Be(d8,"propTypes",{codesRef:Mr.any,collapsed:Mr.bool,darken:Mr.bool,highlightLinenos:Mr.arrayOf(Mr.number),lang:Mr.string,maxLines:Mr.number,onLinenoWidthChange:Mr.func,showLineNo:Mr.bool,theme:Mr.any,value:Mr.string.isRequired});const hbt=e=>{const{className:t,delay:r=1500,calcContentForCopy:n}=e,[o,i]=re.useState(0),s=pbt(),a=o!==0,l=()=>{if(o===0){i(1);try{const u=n();Fhe(u),i(2)}catch{i(3)}}};return re.useEffect(()=>{if(o===2||o===3){const u=setTimeout(()=>i(0),r);return()=>{u&&clearTimeout(u)}}},[o,r]),N.jsx(Tn,{appearance:"transparent",className:Xe(s.copyButton,t),disabled:a,as:"button",icon:o===0?N.jsx(qae,{}):N.jsx(Wae,{}),onClick:l})},pbt=_r({copyButton:{cursor:"pointer"}});class gbt extends re.PureComponent{constructor(){super(...arguments),this.calcContentForCopy=()=>this.props.value}render(){const{calcContentForCopy:t}=this,{darken:r,lang:n,value:o,preferCodeWrap:i,showCodeLineno:s}=this.props;return N.jsxs("code",{className:vbt,"data-wrap":i,children:[N.jsx(d8,{lang:n,value:o,collapsed:!1,showLineNo:s&&!i,darken:r}),N.jsx("div",{className:Jme,children:N.jsx(hbt,{calcContentForCopy:t})})]})}}const Jme=mr({position:"absolute",right:"4px",top:"4px",display:"none"}),vbt=mr(Xn.code,{position:"relative",display:"block",boxSizing:"border-box",borderRadius:"4px",margin:"0px 0px 1.25em 0px",backgroundColor:"var(--colorBgCode)",[`&:hover > .${Jme}`]:{display:"inline-block"},'&&[data-wrap="true"] > div':{whiteSpace:"pre-wrap",wordBreak:"keep-all"}}),mbt=e=>{const{lang:t}=e,r=e.value.replace(/[\r\n]+$/,""),{viewmodel:n}=W5(),o=oo(n.preferCodeWrap$),i=oo(n.showCodeLineno$),a=oo(n.themeScheme$)==="darken";return N.jsx(gbt,{darken:a,lang:t??"text",value:r,preferCodeWrap:o,showCodeLineno:i})};class ybt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return N.jsx("del",{className:bbt,children:N.jsx(Ra,{nodes:t})})}}const bbt=mr(Xn.delete,{marginRight:"4px",color:"var(--colorDelete)",fontStyle:"italic",textDecoration:"line-through"});class _bt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return N.jsx("em",{className:Ebt,children:N.jsx(Ra,{nodes:t})})}}const Ebt=mr(Xn.emphasis,{fontStyle:"italic",margin:"0 6px 0 2px"});class Sbt extends re.Component{shouldComponentUpdate(t){const r=this.props;return r.depth!==t.depth||r.identifier!==t.identifier||r.children!==t.children||r.linkIcon!==t.linkIcon}render(){const{depth:t,identifier:r,children:n,linkIcon:o="¶"}=this.props,i=r==null?void 0:encodeURIComponent(r),s="h"+t,a=s,l=mr(Xn.heading,ik.heading,ik[s]);return N.jsxs(a,{id:i,className:l,children:[N.jsx("p",{className:ik.content,children:N.jsx(Ra,{nodes:n})}),r&&N.jsx("a",{className:ik.anchor,href:"#"+i,children:o})]})}}const fF=mr({flex:"0 0 3rem",paddingLeft:"0.5rem",color:"var(--colorLink)",opacity:0,transition:"color 0.2s ease-in-out, opacity 0.2s ease-in-out",userSelect:"none",textDecoration:"none","> svg":{overflow:"hidden",display:"inline-block",verticalAlign:"middle",fill:"currentColor"}}),ik=mi({heading:{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:"0px",margin:"0px 0px 1.25em 0px",marginBottom:"1em",lineHeight:"1.25",fontFamily:"var(--fontFamilyHeading)",color:"var(--colorHeading)",[`&:active .${fF}`]:{opacity:.8,color:"var(--colorLinkActive)"},[`&&:hover .${fF}`]:{opacity:.8,color:"var(--colorLinkHover)"}},anchor:fF,content:{flex:"0 1 auto",minWidth:0,margin:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre-wrap",lineHeight:"1.7"},h1:{padding:"0.3rem 0",borderBottom:"1px solid var(--colorBorderHeading)",fontSize:"2rem",fontStyle:"normal",fontWeight:500},h2:{padding:"0.3rem 0",borderBottom:"1px solid var(--colorBorderHeading)",fontSize:"1.5rem",fontStyle:"normal",fontWeight:500,marginBottom:"0.875rem"},h3:{fontSize:"1.25rem",fontStyle:"normal",fontWeight:500},h4:{fontSize:"1rem",fontStyle:"normal",fontWeight:500},h5:{fontSize:"0.875rem",fontStyle:"normal",fontWeight:500},h6:{fontSize:"0.85rem",fontStyle:"normal",fontWeight:500}});class eye extends re.Component{shouldComponentUpdate(t){const r=this.props;return r.src!==t.src||r.alt!==t.alt||r.title!==t.title||r.srcSet!==t.srcSet||r.sizes!==t.sizes||r.loading!==t.loading||r.className!==t.className}render(){const{src:t,alt:r,title:n,srcSet:o,sizes:i,loading:s,className:a}=this.props;return N.jsxs("figure",{className:`${a} ${wbt}`,children:[N.jsx("img",{alt:r,src:t,title:n,srcSet:o,sizes:i,loading:s}),n&&N.jsx("figcaption",{children:n})]})}}const wbt=mr({boxSizing:"border-box",maxWidth:"80%",display:"flex",flexDirection:"column",alignItems:"center",margin:0,"> img":{flex:"1 0 auto",boxSizing:"border-box",maxWidth:"100%",border:"1px solid var(--colorBorderImage)",boxShadow:"0 0 20px 1px rgba(126, 125, 150, 0.6)"},"> figcaption":{textAlign:"center",fontStyle:"italic",fontSize:"1em",color:"var(--colorImageTitle)"}}),kbt=e=>{const{url:t,alt:r,title:n,srcSet:o,sizes:i,loading:s}=e;return N.jsx(eye,{alt:r,src:t,title:n,srcSet:o,sizes:i,loading:s,className:Xn.image})},Abt=e=>{const{viewmodel:t}=W5(),r=oo(t.definitionMap$),{alt:n,srcSet:o,sizes:i,loading:s}=e,a=r[e.identifier],l=(a==null?void 0:a.url)??"",u=a==null?void 0:a.title;return N.jsx(eye,{alt:n,src:l,title:u,srcSet:o,sizes:i,loading:s,className:Xn.imageReference})};class xbt extends re.Component{shouldComponentUpdate(t){return this.props.value!==t.value}render(){return N.jsx("code",{className:Tbt,children:this.props.value})}}const Tbt=mr(Xn.inlineCode,{padding:"1px 4px",borderRadius:"4px",margin:0,background:"hsla(210deg, 15%, 60%, 0.15)",lineHeight:"1.375",color:"var(--colorInlineCode)",fontFamily:"var(--fontFamilyCode)",fontSize:"min(1rem, 18px)",fontWeight:500});class tye extends re.Component{shouldComponentUpdate(t){const r=this.props;return r.url!==t.url||r.title!==t.title||r.childNodes!==t.childNodes||r.className!==t.className}render(){const{url:t,title:r,childNodes:n,className:o}=this.props;return N.jsx("a",{className:mr(Ibt,o),href:t,title:r,rel:"noopener, noreferrer",target:"_blank",children:N.jsx(Ra,{nodes:n})})}}const Ibt=mr({padding:"0.2rem 0",color:"var(--colorLink)",textDecoration:"none","&:active":{color:"var(--colorLinkActive)"},"&&:hover":{color:"var(--colorLinkHover)",textDecoration:"underline"},"&:visited":{color:"var(--colorLinkVisited)"}}),Cbt=e=>{const{url:t,title:r,children:n}=e;return N.jsx(tye,{url:t,title:r,childNodes:n,className:Xn.link})},Nbt=e=>{const{viewmodel:t}=W5(),n=oo(t.definitionMap$)[e.identifier],o=(n==null?void 0:n.url)??"",i=n==null?void 0:n.title;return N.jsx(tye,{url:o,title:i,childNodes:e.children,className:Xn.linkReference})};class Rbt extends re.Component{shouldComponentUpdate(t){const r=this.props;return r.ordered!==t.ordered||r.orderType!==t.orderType||r.start!==t.start||r.children!==t.children}render(){const{ordered:t,orderType:r,start:n,children:o}=this.props;return t?N.jsx("ol",{className:Ore,type:r,start:n,children:N.jsx(Ra,{nodes:o})}):N.jsx("ul",{className:Ore,children:N.jsx(Ra,{nodes:o})})}}const Ore=mr(Xn.list,{padding:"0px",margin:"0 0 1em 2em",lineHeight:"2","> :last-child":{marginBottom:"0px"}});class Obt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return N.jsx("li",{className:Dbt,children:N.jsx(Ra,{nodes:t})})}}const Dbt=mr(Xn.listItem,{position:"relative",padding:0,margin:0,"> :last-child":{marginBottom:0}});class Fbt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return t.some(n=>n.type===T_||n.type===ov)?N.jsx("div",{className:Bbt,children:N.jsx(Ra,{nodes:t})}):N.jsx("p",{className:rye,children:N.jsx(Ra,{nodes:t})})}}const rye=mr(Xn.paragraph,{overflow:"hidden",padding:0,margin:"0px 0px 1.25em 0px",marginBottom:"1em",lineHeight:"1.8",hyphens:"auto",wordBreak:"normal",letterSpacing:"1px",overflowWrap:"break-word","> :last-child":{marginBottom:0}}),Bbt=mr(rye,{display:"flex",alignItems:"center",justifyContent:"center",padding:"1rem 0",margin:0});class Mbt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return N.jsx("strong",{className:Lbt,children:N.jsx(Ra,{nodes:t})})}}const Lbt=mr(Xn.strong,{fontWeight:600});class jbt extends re.Component{shouldComponentUpdate(t){const r=this.props;return!$h(r.columns,t.columns)||!$h(r.children,t.children)}render(){const{columns:t,children:r}=this.props,n=t.map(s=>s.align??void 0),[o,...i]=r.map(s=>s.children.map((a,l)=>N.jsx(Ra,{nodes:a.children},l)));return N.jsxs("table",{className:Hbt,children:[N.jsx("thead",{children:N.jsx("tr",{children:o.map((s,a)=>N.jsx(zbt,{align:n[a],children:s},a))})}),N.jsx("tbody",{children:i.map((s,a)=>N.jsx("tr",{children:s.map((l,u)=>N.jsx("td",{align:n[u],children:l},u))},a))})]})}}class zbt extends re.Component{constructor(t){super(t),this.ref={current:null}}shouldComponentUpdate(t){const r=this.props;return r.align!==t.align||r.children!==t.children}render(){const{align:t,children:r}=this.props;return N.jsx("th",{ref:this.ref,align:t,children:r})}componentDidMount(){const t=this.ref.current;t&&t.setAttribute("title",t.innerText)}componentDidUpdate(){const t=this.ref.current;t&&t.setAttribute("title",t.innerText)}}const Hbt=mr(Xn.table,{display:"block",overflow:"auto",width:"max-content",maxWidth:"100%",padding:0,borderCollapse:"collapse",borderRadius:"6px",borderSpacing:"0px",border:"1px solid var(--colorBorderTable)",margin:"0 auto 1.25em",lineHeight:"1.6","> thead":{backgroundColor:"var(--colorBgTableHead)",borderBottom:"1px solid #f0f0f0",th:{padding:"0.5rem 1rem",borderLeft:"1px solid var(--colorBorderTable)",wordBreak:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&:first-child":{borderLeft:"none"}}},"> tbody":{tr:{borderTop:"1px solid var(--colorBorderTable)",backgroundColor:"var(--colorBgTableOddRow)"},"tr:nth-child(2n)":{backgroundColor:"var(--colorBgTableEvenRow)"},td:{padding:"0.5rem 1rem",borderLeft:"1px solid var(--colorBorderTable)","&:first-child":{borderLeft:"none"}}}});class $bt extends re.Component{shouldComponentUpdate(t){return this.props.value!==t.value}render(){return N.jsx(re.Fragment,{children:this.props.value})}}class Pbt extends re.Component{shouldComponentUpdate(){return!1}render(){return N.jsx("hr",{className:qbt})}}const qbt=mr(Xn.thematicBreak,{boxSizing:"content-box",display:"block",height:0,width:"100%",padding:0,border:0,borderBottom:"1px solid #dadada",outline:0,margin:"1.5em 0px"});function Wbt(e){if(e==null)return sk;let t=!1;const r={};for(const[n,o]of Object.entries(e))o&&o!==sk[n]&&(t=!0,r[n]=o);return t?{...sk,...r}:sk}const sk={[k_]:syt,[$x]:lyt,[rp]:mbt,[A_]:()=>null,[Px]:ybt,[kme]:_bt,[np]:Sbt,[x_]:()=>null,[T_]:kbt,[ov]:Abt,[qx]:xbt,[mu]:Cbt,[$d]:Nbt,[Wx]:Rbt,[PM]:Obt,[op]:Fbt,[Ame]:Mbt,[Kx]:jbt,[I_]:$bt,[Vx]:Pbt,_fallback:function(t,r){return console.warn(`Cannot find render for \`${t.type}\` type node with key \`${r}\`:`,t),null}},Gbt=e=>{const{presetDefinitionMap:t,customizedRendererMap:r,preferCodeWrap:n=!1,showCodeLineno:o=!0,text:i,themeScheme:s="lighten",className:a,style:l}=e,u=re.useMemo(()=>iyt.parse(i),[i]),c=re.useMemo(()=>Ngt(u).definitionMap,[u]),[f]=re.useState(()=>new Rgt({definitionMap:{...t,...c},rendererMap:Wbt(r),preferCodeWrap:n,showCodeLineno:o,themeScheme:s})),d=re.useMemo(()=>({viewmodel:f}),[f]),h=Xe(Kbt,s==="darken"&&Xn.rootDarken,a);return re.useEffect(()=>{f.preferCodeWrap$.next(n)},[f,n]),re.useEffect(()=>{f.showCodeLineno$.next(o)},[f,o]),re.useEffect(()=>{f.themeScheme$.next(s)},[f,s]),N.jsx("div",{className:h,style:l,children:N.jsx(fH.Provider,{value:d,children:N.jsx(Ra,{nodes:u.children})})})},Kbt=mr(Xn.root,{wordBreak:"break-all",userSelect:"unset",[Xn.listItem]:{[`> ${Xn.list}`]:{marginLeft:"1.2em"}},"> :last-child":{marginBottom:0}});function Vbt(e){var f,d;const{content:t,data:r,className:n}=e,o=(r==null?void 0:r.category)===wo.Chatbot&&(r==null?void 0:r.from)==="system"&&t.length===1&&t[0].type===xr.TEXT&&t[0].value===$M,s=ms().getHttpUrlOfFilePath,[a,l]=re.useState(null);re.useEffect(()=>{const h=t.map(async g=>g.type===xr.IMAGE?{...g,src:await s(g.src)}:g);Promise.all(h).then(g=>{var y,E,_,S;const v=MM(g);o?(y=r==null?void 0:r.extra)!=null&&y.session_id&&((E=r==null?void 0:r.extra)!=null&&E.root_run_id)?l(` - ---- - -[View trace](${window.location.origin}/v1.0/ui/traces/?#session=${r.extra.session_id}&line_run_id=${r.extra.root_run_id})`):l(""):(r==null?void 0:r.category)===wo.Chatbot&&((_=r==null?void 0:r.extra)!=null&&_.session_id)&&((S=r==null?void 0:r.extra)!=null&&S.root_run_id)?l(`${v} +`,e[0].empty=!0)},Rre=(e,t)=>{const r=e.length;return r>0&&e[r-1]===t?e:e.concat(t)},Ore=e=>{const t=[[]],r=[e],n=[0],o=[e.length];let i=[];const s=[i];for(let a=0;a>-1;--a){for(let l=0;(l=n[a]++)0?c:["plain"],u=d):(c=Rre(c,d.type),d.alias&&(c=Rre(c,d.alias)),u=d.content),typeof u!="string"){a+=1,t.push(c),r.push(u),n.push(0),o.push(u.length);continue}const h=u.split(ybt),g=h.length;i.push({types:c,content:h[0]});for(let v=1;v{var i,s;const n=r.target;if(n==null)return;const{scrollTop:o}=n;(s=(i=this.linenoRef.current)==null?void 0:i.scrollTo)==null||s.call(i,0,o)});const n=Cre(r.language,r.theme),o=this.tokenize(r.code,r.language),i=r.showLineno?`${Math.max(2,String(o.length).length)*1.1}em`:void 0;this.state={linenoWidth:i,themeDict:n,tokens:o},this.linenoRef={current:null}}shouldComponentUpdate(r,n){const o=this.props,i=this.state;return i.linenoWidth!==n.linenoWidth||i.themeDict!==n.themeDict||i.tokens!==n.tokens||o.code!==r.code||o.codesRef!==r.codesRef||o.collapsed!==r.collapsed||o.language!==r.language||o.maxLines!==r.maxLines||o.showLineno!==r.showLineno||!Ph(o.theme,r.theme)||!Ph(o.highlightLinenos,r.highlightLinenos)}render(){const{linenoRef:r,onScroll:n}=this,{codesRef:o,collapsed:i,highlightLinenos:s,language:a,maxLines:l,showLineno:u=!0}=this.props,{linenoWidth:c,tokens:f}=this.state,d=f.length,h=l>0?Math.min(l,d):d,g={...this.state.themeDict.root,backgroundColor:"none",...i?{maxHeight:0}:{maxHeight:`calc(calc(${Za.lineHeightCode} * ${h+.8}) + 6px)`,minHeight:"100%"}};return re.createElement("div",{className:r8(Pu.container,a?`prism-code language-${a}`:"prism-code"),style:g},u&&re.createElement("div",{key:"linenos",className:Pu.lineno,style:{width:c},ref:r},re.createElement(f8,{countOfLines:d,highlightLinenos:s})),re.createElement("div",{key:"codes",ref:o,className:Pu.codes,onScroll:n},re.createElement("div",{className:Pu.codeWrapper},f.map((v,y)=>{const E=s.includes(y+1),_=this.getLineProps({line:v});return re.createElement("div",{..._,key:y,className:r8(Pu.line,Pu.codeLine,E&&Pu.highlightLine,_.className)},v.map((S,b)=>re.createElement("span",{...this.getTokenProps({token:S}),key:b})))}))))}componentDidMount(){var r,n;(n=(r=this.props).onLinenoWidthChange)==null||n.call(r,this.state.linenoWidth)}componentDidUpdate(r,n){var a,l;const o=this.props,i=this.state,s=o.language!==r.language||!Ph(o.theme,r.theme)?Cre(o.language,o.theme):i.themeDict;if(o.code!==r.code||o.language!==r.language||s!==n.themeDict){const u=this.tokenize(o.code,o.language),c=o.showLineno?`${Math.max(2,String(u.length).length)*1.1}em`:void 0;this.setState({linenoWidth:c,themeDict:s,tokens:u})}i.linenoWidth!==n.linenoWidth&&((l=(a=this.props).onLinenoWidthChange)==null||l.call(a,i.linenoWidth))}tokenize(r,n){const o=n?ce.languages[n]:void 0;if(o){const i={code:r,grammar:o,language:n,tokens:[]};return ce.hooks.run("before-tokenize",i),i.tokens=ce.tokenize(i.code,i.grammar),ce.hooks.run("after-tokenize",i),Ore(i.tokens)}else return Ore([r])}getLineProps(r){const{themeDict:n}=this.state,{key:o,className:i,style:s,line:a,...l}=r,u={...l,className:"token-line",style:void 0,key:void 0};return n!==void 0&&(u.style=n.plain),s!==void 0&&(u.style=u.style!==void 0?{...u.style,...s}:s),o!==void 0&&(u.key=o),i&&(u.className+=` ${i}`),u}getStyleForToken({types:r,empty:n}){const{themeDict:o}=this.state,i=r.length;if(o===void 0)return;if(i===1&&r[0]==="plain")return n?{display:"inline-block"}:void 0;if(i===1&&!n)return o[r[0]];const s=n?{display:"inline-block"}:{};for(const a of r){const l=o[a];Object.assign(s,l)}return s}getTokenProps(r){const{key:n,className:o,style:i,token:s,...a}=r,l={...a,className:`token ${s.types.join(" ")}`,children:s.content,style:this.getStyleForToken(s),key:void 0};return i!==void 0&&(l.style=l.style!==void 0?{...l.style,...i}:i),n!==void 0&&(l.key=n),o&&(l.className+=` ${o}`),l}}Be(d8,"displayName","HighlightContent"),Be(d8,"propTypes",{code:Mr.string.isRequired,codesRef:Mr.any,collapsed:Mr.bool.isRequired,language:Mr.string.isRequired,maxLines:Mr.number.isRequired,showLineno:Mr.bool.isRequired,theme:Mr.object.isRequired,highlightLinenos:Mr.array.isRequired,onLinenoWidthChange:Mr.func});class h8 extends re.PureComponent{render(){const{lang:t,value:r,darken:n=!0,highlightLinenos:o=[],maxLines:i=-1,collapsed:s=!1,showLineNo:a=!0,codesRef:l,onLinenoWidthChange:u}=this.props,c=this.props.theme??(n?gbt:vbt);return re.createElement(d8,{code:r,codesRef:l,collapsed:s,highlightLinenos:o,language:t??"",maxLines:i,showLineno:a,theme:c,onLinenoWidthChange:u})}}Be(h8,"displayName","YozoraCodeHighlighter"),Be(h8,"propTypes",{codesRef:Mr.any,collapsed:Mr.bool,darken:Mr.bool,highlightLinenos:Mr.arrayOf(Mr.number),lang:Mr.string,maxLines:Mr.number,onLinenoWidthChange:Mr.func,showLineNo:Mr.bool,theme:Mr.any,value:Mr.string.isRequired});const _bt=e=>{const{className:t,delay:r=1500,calcContentForCopy:n}=e,[o,i]=re.useState(0),s=Ebt(),a=o!==0,l=()=>{if(o===0){i(1);try{const u=n();Bhe(u),i(2)}catch{i(3)}}};return re.useEffect(()=>{if(o===2||o===3){const u=setTimeout(()=>i(0),r);return()=>{u&&clearTimeout(u)}}},[o,r]),N.jsx(Tn,{appearance:"transparent",className:Ve(s.copyButton,t),disabled:a,as:"button",icon:o===0?N.jsx(Wae,{}):N.jsx(Gae,{}),onClick:l})},Ebt=vr({copyButton:{cursor:"pointer"}});class Sbt extends re.PureComponent{constructor(){super(...arguments),this.calcContentForCopy=()=>this.props.value}render(){const{calcContentForCopy:t}=this,{darken:r,lang:n,value:o,preferCodeWrap:i,showCodeLineno:s}=this.props;return N.jsxs("code",{className:wbt,"data-wrap":i,children:[N.jsx(h8,{lang:n,value:o,collapsed:!1,showLineNo:s&&!i,darken:r}),N.jsx("div",{className:oye,children:N.jsx(_bt,{calcContentForCopy:t})})]})}}const oye=br({position:"absolute",right:"4px",top:"4px",display:"none"}),wbt=br(Qn.code,{position:"relative",display:"block",boxSizing:"border-box",borderRadius:"4px",margin:"0px 0px 1.25em 0px",backgroundColor:"var(--colorBgCode)",[`&:hover > .${oye}`]:{display:"inline-block"},'&&[data-wrap="true"] > div':{whiteSpace:"pre-wrap",wordBreak:"keep-all"}}),kbt=e=>{const{lang:t}=e,r=e.value.replace(/[\r\n]+$/,""),{viewmodel:n}=W5(),o=oo(n.preferCodeWrap$),i=oo(n.showCodeLineno$),a=oo(n.themeScheme$)==="darken";return N.jsx(Sbt,{darken:a,lang:t??"text",value:r,preferCodeWrap:o,showCodeLineno:i})};class Abt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return N.jsx("del",{className:xbt,children:N.jsx(Ra,{nodes:t})})}}const xbt=br(Qn.delete,{marginRight:"4px",color:"var(--colorDelete)",fontStyle:"italic",textDecoration:"line-through"});class Tbt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return N.jsx("em",{className:Ibt,children:N.jsx(Ra,{nodes:t})})}}const Ibt=br(Qn.emphasis,{fontStyle:"italic",margin:"0 6px 0 2px"});class Cbt extends re.Component{shouldComponentUpdate(t){const r=this.props;return r.depth!==t.depth||r.identifier!==t.identifier||r.children!==t.children||r.linkIcon!==t.linkIcon}render(){const{depth:t,identifier:r,children:n,linkIcon:o="¶"}=this.props,i=r==null?void 0:encodeURIComponent(r),s="h"+t,a=s,l=br(Qn.heading,sk.heading,sk[s]);return N.jsxs(a,{id:i,className:l,children:[N.jsx("p",{className:sk.content,children:N.jsx(Ra,{nodes:n})}),r&&N.jsx("a",{className:sk.anchor,href:"#"+i,children:o})]})}}const dF=br({flex:"0 0 3rem",paddingLeft:"0.5rem",color:"var(--colorLink)",opacity:0,transition:"color 0.2s ease-in-out, opacity 0.2s ease-in-out",userSelect:"none",textDecoration:"none","> svg":{overflow:"hidden",display:"inline-block",verticalAlign:"middle",fill:"currentColor"}}),sk=mi({heading:{display:"flex",alignItems:"center",justifyContent:"flex-start",padding:"0px",margin:"0px 0px 1.25em 0px",marginBottom:"1em",lineHeight:"1.25",fontFamily:"var(--fontFamilyHeading)",color:"var(--colorHeading)",[`&:active .${dF}`]:{opacity:.8,color:"var(--colorLinkActive)"},[`&&:hover .${dF}`]:{opacity:.8,color:"var(--colorLinkHover)"}},anchor:dF,content:{flex:"0 1 auto",minWidth:0,margin:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre-wrap",lineHeight:"1.7"},h1:{padding:"0.3rem 0",borderBottom:"1px solid var(--colorBorderHeading)",fontSize:"2rem",fontStyle:"normal",fontWeight:500},h2:{padding:"0.3rem 0",borderBottom:"1px solid var(--colorBorderHeading)",fontSize:"1.5rem",fontStyle:"normal",fontWeight:500,marginBottom:"0.875rem"},h3:{fontSize:"1.25rem",fontStyle:"normal",fontWeight:500},h4:{fontSize:"1rem",fontStyle:"normal",fontWeight:500},h5:{fontSize:"0.875rem",fontStyle:"normal",fontWeight:500},h6:{fontSize:"0.85rem",fontStyle:"normal",fontWeight:500}});class iye extends re.Component{shouldComponentUpdate(t){const r=this.props;return r.src!==t.src||r.alt!==t.alt||r.title!==t.title||r.srcSet!==t.srcSet||r.sizes!==t.sizes||r.loading!==t.loading||r.className!==t.className}render(){const{src:t,alt:r,title:n,srcSet:o,sizes:i,loading:s,className:a}=this.props;return N.jsxs("figure",{className:`${a} ${Nbt}`,children:[N.jsx("img",{alt:r,src:t,title:n,srcSet:o,sizes:i,loading:s}),n&&N.jsx("figcaption",{children:n})]})}}const Nbt=br({boxSizing:"border-box",maxWidth:"80%",display:"flex",flexDirection:"column",alignItems:"center",margin:0,"> img":{flex:"1 0 auto",boxSizing:"border-box",maxWidth:"100%",border:"1px solid var(--colorBorderImage)",boxShadow:"0 0 20px 1px rgba(126, 125, 150, 0.6)"},"> figcaption":{textAlign:"center",fontStyle:"italic",fontSize:"1em",color:"var(--colorImageTitle)"}}),Rbt=e=>{const{url:t,alt:r,title:n,srcSet:o,sizes:i,loading:s}=e;return N.jsx(iye,{alt:r,src:t,title:n,srcSet:o,sizes:i,loading:s,className:Qn.image})},Obt=e=>{const{viewmodel:t}=W5(),r=oo(t.definitionMap$),{alt:n,srcSet:o,sizes:i,loading:s}=e,a=r[e.identifier],l=(a==null?void 0:a.url)??"",u=a==null?void 0:a.title;return N.jsx(iye,{alt:n,src:l,title:u,srcSet:o,sizes:i,loading:s,className:Qn.imageReference})};class Dbt extends re.Component{shouldComponentUpdate(t){return this.props.value!==t.value}render(){return N.jsx("code",{className:Fbt,children:this.props.value})}}const Fbt=br(Qn.inlineCode,{padding:"1px 4px",borderRadius:"4px",margin:0,background:"hsla(210deg, 15%, 60%, 0.15)",lineHeight:"1.375",color:"var(--colorInlineCode)",fontFamily:"var(--fontFamilyCode)",fontSize:"min(1rem, 18px)",fontWeight:500});class sye extends re.Component{shouldComponentUpdate(t){const r=this.props;return r.url!==t.url||r.title!==t.title||r.childNodes!==t.childNodes||r.className!==t.className}render(){const{url:t,title:r,childNodes:n,className:o}=this.props;return N.jsx("a",{className:br(Bbt,o),href:t,title:r,rel:"noopener, noreferrer",target:"_blank",children:N.jsx(Ra,{nodes:n})})}}const Bbt=br({padding:"0.2rem 0",color:"var(--colorLink)",textDecoration:"none","&:active":{color:"var(--colorLinkActive)"},"&&:hover":{color:"var(--colorLinkHover)",textDecoration:"underline"},"&:visited":{color:"var(--colorLinkVisited)"}}),Mbt=e=>{const{url:t,title:r,children:n}=e;return N.jsx(sye,{url:t,title:r,childNodes:n,className:Qn.link})},Lbt=e=>{const{viewmodel:t}=W5(),n=oo(t.definitionMap$)[e.identifier],o=(n==null?void 0:n.url)??"",i=n==null?void 0:n.title;return N.jsx(sye,{url:o,title:i,childNodes:e.children,className:Qn.linkReference})};class jbt extends re.Component{shouldComponentUpdate(t){const r=this.props;return r.ordered!==t.ordered||r.orderType!==t.orderType||r.start!==t.start||r.children!==t.children}render(){const{ordered:t,orderType:r,start:n,children:o}=this.props;return t?N.jsx("ol",{className:Dre,type:r,start:n,children:N.jsx(Ra,{nodes:o})}):N.jsx("ul",{className:Dre,children:N.jsx(Ra,{nodes:o})})}}const Dre=br(Qn.list,{padding:"0px",margin:"0 0 1em 2em",lineHeight:"2","> :last-child":{marginBottom:"0px"}});class zbt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return N.jsx("li",{className:Hbt,children:N.jsx(Ra,{nodes:t})})}}const Hbt=br(Qn.listItem,{position:"relative",padding:0,margin:0,"> :last-child":{marginBottom:0}});class $bt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return t.some(n=>n.type===T_||n.type===ov)?N.jsx("div",{className:Pbt,children:N.jsx(Ra,{nodes:t})}):N.jsx("p",{className:aye,children:N.jsx(Ra,{nodes:t})})}}const aye=br(Qn.paragraph,{overflow:"hidden",padding:0,margin:"0px 0px 1.25em 0px",marginBottom:"1em",lineHeight:"1.8",hyphens:"auto",wordBreak:"normal",overflowWrap:"anywhere","> :last-child":{marginBottom:0}}),Pbt=br(aye,{display:"flex",alignItems:"center",justifyContent:"center",padding:"1rem 0",margin:0});class qbt extends re.Component{shouldComponentUpdate(t){return this.props.children!==t.children}render(){const t=this.props.children;return N.jsx("strong",{className:Wbt,children:N.jsx(Ra,{nodes:t})})}}const Wbt=br(Qn.strong,{fontWeight:600});class Gbt extends re.Component{shouldComponentUpdate(t){const r=this.props;return!Ph(r.columns,t.columns)||!Ph(r.children,t.children)}render(){const{columns:t,children:r}=this.props,n=t.map(s=>s.align??void 0),[o,...i]=r.map(s=>s.children.map((a,l)=>N.jsx(Ra,{nodes:a.children},l)));return N.jsxs("table",{className:Vbt,children:[N.jsx("thead",{children:N.jsx("tr",{children:o.map((s,a)=>N.jsx(Kbt,{align:n[a],children:s},a))})}),N.jsx("tbody",{children:i.map((s,a)=>N.jsx("tr",{children:s.map((l,u)=>N.jsx("td",{align:n[u],children:l},u))},a))})]})}}class Kbt extends re.Component{constructor(t){super(t),this.ref={current:null}}shouldComponentUpdate(t){const r=this.props;return r.align!==t.align||r.children!==t.children}render(){const{align:t,children:r}=this.props;return N.jsx("th",{ref:this.ref,align:t,children:r})}componentDidMount(){const t=this.ref.current;t&&t.setAttribute("title",t.innerText)}componentDidUpdate(){const t=this.ref.current;t&&t.setAttribute("title",t.innerText)}}const Vbt=br(Qn.table,{display:"block",overflow:"auto",width:"max-content",maxWidth:"100%",padding:0,borderCollapse:"collapse",borderRadius:"6px",borderSpacing:"0px",border:"1px solid var(--colorBorderTable)",margin:"0 auto 1.25em",lineHeight:"1.6","> thead":{backgroundColor:"var(--colorBgTableHead)",borderBottom:"1px solid #f0f0f0",th:{padding:"0.5rem 1rem",borderLeft:"1px solid var(--colorBorderTable)",wordBreak:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&:first-child":{borderLeft:"none"}}},"> tbody":{tr:{borderTop:"1px solid var(--colorBorderTable)",backgroundColor:"var(--colorBgTableOddRow)"},"tr:nth-child(2n)":{backgroundColor:"var(--colorBgTableEvenRow)"},td:{padding:"0.5rem 1rem",borderLeft:"1px solid var(--colorBorderTable)","&:first-child":{borderLeft:"none"}}}});class Ubt extends re.Component{shouldComponentUpdate(t){return this.props.value!==t.value}render(){return N.jsx(re.Fragment,{children:this.props.value})}}class Ybt extends re.Component{shouldComponentUpdate(){return!1}render(){return N.jsx("hr",{className:Xbt})}}const Xbt=br(Qn.thematicBreak,{boxSizing:"content-box",display:"block",height:0,width:"100%",padding:0,border:0,borderBottom:"1px solid #dadada",outline:0,margin:"1.5em 0px"});function Qbt(e){if(e==null)return ak;let t=!1;const r={};for(const[n,o]of Object.entries(e))o&&o!==ak[n]&&(t=!0,r[n]=o);return t?{...ak,...r}:ak}const ak={[k_]:hyt,[Px]:gyt,[np]:kbt,[A_]:()=>null,[qx]:Abt,[Cme]:Tbt,[op]:Cbt,[x_]:()=>null,[T_]:Rbt,[ov]:Obt,[Wx]:Dbt,[mu]:Mbt,[$d]:Lbt,[Gx]:jbt,[qM]:zbt,[ip]:$bt,[Nme]:qbt,[Vx]:Gbt,[I_]:Ubt,[Ux]:Ybt,_fallback:function(t,r){return console.warn(`Cannot find render for \`${t.type}\` type node with key \`${r}\`:`,t),null}},Zbt=e=>{const{presetDefinitionMap:t,customizedRendererMap:r,preferCodeWrap:n=!1,showCodeLineno:o=!0,text:i,themeScheme:s="lighten",className:a,style:l}=e,u=re.useMemo(()=>{const g=Array.isArray(i)?i.map(y=>sF.parse(y)):[sF.parse(i)];if(g.length===0)return sF.parse("");const v=g[0];for(let y=1;yjgt(u).definitionMap,[u]),[f]=re.useState(()=>new zgt({definitionMap:{...t,...c},rendererMap:Qbt(r),preferCodeWrap:n,showCodeLineno:o,themeScheme:s})),d=re.useMemo(()=>({viewmodel:f}),[f]),h=Ve(Jbt,s==="darken"&&Qn.rootDarken,a);return re.useEffect(()=>{f.preferCodeWrap$.next(n)},[f,n]),re.useEffect(()=>{f.showCodeLineno$.next(o)},[f,o]),re.useEffect(()=>{f.themeScheme$.next(s)},[f,s]),N.jsx("div",{className:h,style:l,children:N.jsx(dH.Provider,{value:d,children:N.jsx(Ra,{nodes:u.children})})})},Jbt=br(Qn.root,{wordBreak:"break-all",userSelect:"unset",[Qn.listItem]:{[`> ${Qn.list}`]:{marginLeft:"1.2em"}},"> :last-child":{marginBottom:0}});function e_t(e){var h,g;const{content:t,data:r,className:n}=e,o=(r==null?void 0:r.category)===wo.Chatbot&&(r==null?void 0:r.from)==="system"&&t.length===1&&t[0].type===dr.TEXT&&t[0].value===PM,s=ms().getHttpUrlOfFilePath,[a,l]=re.useState(null),[u,c]=re.useState(null);re.useEffect(()=>{const v=t.map(async y=>y.type===dr.IMAGE?{...y,src:await s(y.src)}:y);Promise.all(v).then(y=>{var _,S;const E=LM(y);if(l(o?"":E),!Un&&(r==null?void 0:r.category)===wo.Chatbot&&((_=r==null?void 0:r.extra)!=null&&_.session_id)&&((S=r==null?void 0:r.extra)!=null&&S.root_run_id)){const b=` --- -[View trace](${window.location.origin}/v1.0/ui/traces/?#session=${r.extra.session_id}&line_run_id=${r.extra.root_run_id})`):l(v)})},[t,r==null?void 0:r.category,(f=r==null?void 0:r.extra)==null?void 0:f.root_run_id,(d=r==null?void 0:r.extra)==null?void 0:d.session_id,s,o]);const u=Ubt(),c=Xe(u.content,n);return N.jsx("div",{className:c,children:N.jsxs(re.Suspense,{fallback:"Loading...",children:[o?N.jsx(dz,{locStrings:uz}):null,a===null?a:N.jsx(Gbt,{text:a,preferCodeWrap:!0})]})})}const Ubt=_r({content:{...Ye.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces",[`& .${Xn.image}`]:{maxWidth:"240px !important"},[`& .${Xn.imageReference}`]:{maxWidth:"240px !important"}}}),Ybt=e=>{const r=ms().getHttpUrlOfFilePath,{customSendMessage:n}=Eme();return N.jsx(Cve,{...e,resolveUrlByPath:r,onEnterKeyPress:()=>{n()}})},Xbt=()=>{const[e]=tpt(),[t]=Vs();return N.jsx(Qbt,{title:"Chat",subtitle:e,chatSourceType:t})},Qbt=e=>{const{title:t,subtitle:r,className:n,chatSourceType:o}=e,i=Zbt(),s=b0t(),a=()=>N.jsx("span",{className:i.flowPathText,children:r});return N.jsxs("div",{className:Xe(i.toolbar,n),children:[N.jsxs("div",{className:i.left,children:[N.jsxs("div",{className:i.toolbarTitle,children:[N.jsx(Nf,{weight:"semibold",children:t}),N.jsx(ga,{content:"Chat",relationship:"label",children:N.jsx(Tn,{as:"button",appearance:"transparent",icon:N.jsx(ay,{})})})]}),N.jsx("div",{className:i.toolbarSubtitle,children:no?r:N.jsxs(re.Fragment,{children:[o&&N.jsx(KL,{appearance:"outline",size:"medium",className:i.chatSourceBadge,children:o}),s==="vscode"?N.jsxs(Ub,{href:`vscode://file/${r}`,title:r,className:i.flowPath,children:[a(),N.jsx($3e,{style:{marginLeft:"4px",flexShrink:0}})]}):N.jsx("div",{title:r,className:i.flowPath,children:a()})]})})]}),N.jsx("div",{className:i.right})]})},Zbt=_r({toolbar:{...Ye.padding("0px","16px"),...Ye.borderBottom("1px","solid",Pt.colorNeutralBackground5),boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",height:"48px",flexShrink:0},toolbarTitle:{display:"flex",alignItems:"center",columnGap:"2px"},toolbarActionButton:{color:Pt.colorNeutralForeground2},toolbarSubtitle:{display:"flex",alignItems:"center",columnGap:"2px",color:Pt.colorNeutralForeground4,overflowWrap:"anywhere",...Ye.flex(1)},left:{display:"flex",...Ye.flex(1)},right:{display:"flex"},chatSourceBadge:{...Ye.margin("0px","4px")},flowPath:{display:"flex",width:0,minWidth:0,...Ye.flex(1),...Ye.overflow("hidden")},flowPathText:{display:"block",whiteSpace:"nowrap",textOverflow:"ellipsis",...Ye.overflow("hidden")}}),Jbt=e=>N.jsx(N.Fragment,{}),e_t=()=>{const{flowInputDefinition:e}=B1(),t=Au(),r=re.useMemo(()=>hme(e,t),[e,t]);return r.length===0||r.every(o=>o.disabled)},t_t=({className:e})=>{const{viewmodel:t}=Rl(),{chatInputName:r,chatOutputName:n}=Au(),o=e_t(),i=o?"The input field is currently inactive.":"The input field is currently inactive. To enable it, please select a chat input and chat output in the settings.",s=_pt(),a=Spt(),l=Xve(),u=()=>{l(c=>c.type!=="submit_validation"),t.sendMessage()};return r&&n&&s.length===0?N.jsx(N.Fragment,{}):N.jsxs("div",{className:Xe(r_t.container),children:[s.map((c,f)=>{var d;return N.jsxs(zg,{intent:"warning",layout:"multiline",style:{padding:"10px 0 10px 12px"},children:[N.jsx(MB,{children:c.element??c.message??((d=c.error)==null?void 0:d.message)}),c.type==="submit_validation"&&N.jsx(Rue,{containerAction:N.jsxs(N.Fragment,{children:[N.jsx("div",{style:{height:"100%",display:"inline-flex",flexDirection:"column",justifyContent:"center",marginRight:"12px"},children:N.jsx(Tn,{size:"medium",onClick:u,children:"Send anyway"})}),N.jsx(Tn,{"aria-label":"dismiss",appearance:"transparent",style:{verticalAlign:"top"},icon:N.jsx($ae,{}),onClick:()=>{a(f)}})]})})]},f)}),(!r||!n)&&N.jsx(zg,{intent:o?"info":"warning",layout:"multiline",style:{padding:"10px 0 10px 12px"},children:N.jsx(MB,{children:i})})]})},r_t=mi({container:{position:"relative",marginBottom:"16px","& .fui-MessageBarActions__containerAction":{height:"100%"},"& .fui-MessageBarActions":{display:"none"}}}),n_t=()=>N.jsx(N.Fragment,{}),o_t=e=>N.jsx(l0e,{...e,MessageSenderRenderer:n_t}),i_t=()=>{const[e]=Vs(),t=fgt(),r=sme(),n=A.useMemo(()=>({...uz,Input_Placeholder:(e===At.Dag||e===At.Flex)&&r?'Type in your message, or type "/eval_last" to start evaluation the testing session.':"Type in your message.",SessionSplit_Desc:"Current conversation does not include previous chat history."}),[e,r]);return N.jsxs(Pht,{initialMessages:[],locStrings:n,children:[N.jsx(vgt,{}),N.jsxs("div",{className:u0.container,children:[N.jsx(Xbt,{}),N.jsx("div",{className:u0.main,children:N.jsx(Lht,{className:u0.chatbox,main:N.jsxs("div",{className:u0.chatboxMainContainer,children:[N.jsx("div",{className:u0.messagesToolbar,children:N.jsx(dgt,{})}),N.jsx(Nve,{className:u0.chatboxMain,MessageBubbleRenderer:o_t,MessageContentRenderer:Vbt,TypingIndicatorRenderer:Jbt,useMessageActions:igt})]}),footer:N.jsx(Rve,{EditorRenderer:Ybt,EditorActionRenderers:t,InputValidationRenderer:t_t,LeftToolbarRenderer:mgt,MessageInputRenderer:wme,maxInputHeight:300})})})]})]})},u0=mi({container:{display:"flex",flexDirection:"column",width:"100%",height:"100%",borderRadius:"4px",border:`1px solid ${Pt.colorNeutralBackground5}`},main:{flex:1,display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",width:"100%",height:0,minHeight:0,zIndex:1},chatbox:{boxShadow:"none !important"},chatboxMainContainer:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},chatboxMain:{flex:1,height:"unset !important",paddingTop:"16px !important"},messagesToolbar:{position:"sticky",top:0,zIndex:1,background:"var(--colorNeutralBackground1)",width:"100%",padding:"8px 16px"}}),Dre=()=>{const[e]=qve(),[{width:t},r]=Vve();return N.jsx("div",{className:Qm.root,children:N.jsxs("div",{className:Qm.content,children:[N.jsx("div",{className:Qm.main,children:N.jsx(i_t,{})}),e?N.jsx(yhe,{enable:{left:!0},minWidth:410,size:{width:t,height:"100%"},onResizeStop:(n,o,i)=>{r({width:i.clientWidth})},children:N.jsx("div",{className:Qm.rightPanel,children:N.jsx(rgt,{})})}):N.jsx("div",{className:Qm.rightPanel,children:N.jsx(_me,{})})]})})},Qm=mi({root:{display:"flex",flexDirection:"column",height:"100%",width:"100%"},content:{display:"flex",flexDirection:"row",height:"100%",width:"100%",padding:"24px 32px",boxSizing:"border-box",flex:1,overflow:"auto"},leftPanel:{height:"100%",overflow:"auto",backgroundColor:Pt.colorNeutralBackground3},main:{flex:1,height:"100%"},rightPanel:{height:"100%",boxSize:"border-box",marginLeft:"16px"}}),s_t="/v1.0/ui/chat/assets/icon-580HdLU9.png",a_t=()=>N.jsx("img",{src:s_t,alt:"promptflow icon",style:{width:"100%",height:"100%"}}),l_t=({middleContent:e,children:t})=>{const r=u_t();return N.jsxs("div",{className:r.container,children:[N.jsxs("div",{className:r.header,children:[N.jsx("div",{className:r.logo,children:N.jsx(a_t,{})}),"Prompt Flow"]}),e&&N.jsx("div",{style:{margin:"24px 32px 0"},children:e}),N.jsx("div",{className:r.content,children:t})]})},u_t=_r({container:{boxSizing:"border-box",height:"100%",display:"flex",flexDirection:"column"},header:{...Ye.padding("0px","16px"),...Ye.borderBottom("1px","solid",Pt.colorNeutralStroke1),height:"56px",flexBasis:"56px",flexShrink:0,backgroundColor:Pt.colorNeutralBackground3,fontSize:"14px",fontWeight:600,lineHeight:"20px",alignItems:"center",display:"flex"},logo:{...Ye.margin("0px","4px","0px","0px"),width:"24px",height:"24px"},content:{...Ye.flex(1,1,"auto"),...Ye.margin("24px","32px"),...Ye.borderRadius("8px"),...Ye.overflow("auto"),boxShadow:"0px 8px 16px 0px rgba(0, 0, 0, 0.14), 0px 0px 2px 0px rgba(0, 0, 0, 0.12)"}}),nye=re.createContext({reloadApp:()=>{}}),c_t=()=>{const[e]=Ol(),[t,r]=rpt(),[n,o]=npt(),{reloadApp:i}=A.useContext(nye),s=ome(),a=ime(),l=!!t&&t!==e,u=()=>{r(""),o("")},c=()=>{const f=s()??{};a({...f,currentFlowPath:t}),i()};return N.jsx(UT,{open:l,children:N.jsx(ZT,{children:N.jsxs(XT,{children:[N.jsxs(QT,{children:["Switch to flow ",n]}),N.jsxs(JT,{children:[N.jsxs("p",{children:["A flow test is currently running. Are you sure you want to switch to flow ",n,"?"]}),N.jsx("p",{children:"The running flow test may be interrupted if you switch to the new flow."})]}),N.jsxs(YT,{children:[N.jsx(_v,{disableButtonEnhancement:!0,children:N.jsx(Tn,{appearance:"secondary",onClick:u,children:"Cancel"})}),N.jsx(Tn,{appearance:"primary",onClick:c,children:"Do switch"})]})]})})})},f_t=()=>{const[e,t]=re.useState(!1),r=Ct(),n=ri(r.topbarErrorMessage$);return re.useEffect(()=>{const o=i=>{t(!!i.detail.error)};return window.addEventListener(bx,o),()=>{window.removeEventListener(bx,o)}},[]),!e&&!n?null:N.jsxs("div",{children:[n&&N.jsx(zg,{intent:"error",layout:"multiline",style:{padding:"10px 0 10px 12px"},children:n}),e&&N.jsx(zg,{intent:"error",layout:"multiline",style:{padding:"10px 0 10px 12px"},children:"Network error detected. The local PFS may be shut down. Please restart it by executing the `pf service start` command."})]})},d_t=()=>{const e=m0t(),t=no?"Loading... Please make sure you select a flow.day.yaml file in the editor":"Loading...";return N.jsxs("div",{style:{width:"100%",height:"100%"},children:[e?no?N.jsx(Dre,{}):N.jsx(l_t,{middleContent:N.jsx(f_t,{}),children:N.jsx(Dre,{})}):N.jsx(y0t,{children:N.jsx(tE,{label:t})}),N.jsx(c_t,{})]})};window.ChatUI_Version="20240424.19-merge";const h_t=()=>{const[e,t]=re.useState(0),r=re.useCallback(()=>{t(o=>o+1)},[]),n=re.useMemo(()=>({reloadApp:r}),[r]);return N.jsx(nye.Provider,{value:n,children:N.jsx(hst,{onReload:r,children:N.jsx(p_t,{},e)})})},p_t=()=>N.jsx(_at,{children:({theme:e})=>N.jsx(Mle,{style:{width:"100%",height:"100%"},theme:e==="dark"?PBe:jBe,children:N.jsx(d_t,{})})});XRe().register(yOe());_Ne();const g_t=Vse(document.getElementById("root"));g_t.render(N.jsx(A.StrictMode,{children:N.jsx(h_t,{})}))});export default v_t(); +[View trace](${window.location.origin}/v1.0/ui/traces/?#session=${r.extra.session_id}&line_run_id=${r.extra.root_run_id})`;c(b)}})},[t,r==null?void 0:r.category,(h=r==null?void 0:r.extra)==null?void 0:h.root_run_id,(g=r==null?void 0:r.extra)==null?void 0:g.session_id,s,o]);const f=t_t(),d=Ve(f.content,n);return N.jsx("div",{className:d,children:N.jsxs(re.Suspense,{fallback:"Loading...",children:[o?N.jsx(hz,{locStrings:cz}):null,a===null?a:N.jsx(Zbt,{text:u?[a,u]:a,preferCodeWrap:!0})]})})}const t_t=vr({content:{...Xe.overflow("auto"),wordBreak:"break-all",whiteSpace:"break-spaces",[`& .${Qn.image}`]:{maxWidth:"240px !important"},[`& .${Qn.imageReference}`]:{maxWidth:"240px !important"}}}),r_t=e=>{const r=ms().getHttpUrlOfFilePath,{customSendMessage:n}=xme(),o=re.useMemo(()=>[N.jsx(Bve,{},"pf-paste-plugin")],[]);return N.jsx(Rve,{...e,resolveUrlByPath:r,pluginsBeforeRichEditors:o,onEnterKeyPress:()=>{n()}})},n_t=()=>{const[e]=lpt(),[t]=Vs();return N.jsx(o_t,{title:"Chat",subtitle:e,chatSourceType:t})},o_t=e=>{const{title:t,subtitle:r,className:n,chatSourceType:o}=e,i=i_t(),s=A0t(),a=()=>N.jsx("span",{className:i.flowPathText,children:r});return N.jsxs("div",{className:Ve(i.toolbar,n),children:[N.jsxs("div",{className:i.left,children:[N.jsxs("div",{className:i.toolbarTitle,children:[N.jsx(Nf,{weight:"semibold",children:t}),N.jsx(ga,{content:"Chat",relationship:"label",children:N.jsx(Tn,{as:"button",appearance:"transparent",icon:N.jsx(ay,{})})})]}),N.jsx("div",{className:i.toolbarSubtitle,children:Un?r:N.jsxs(re.Fragment,{children:[o&&N.jsx(VL,{appearance:"outline",size:"medium",className:i.chatSourceBadge,children:o}),s==="vscode"?N.jsxs(Ub,{href:`vscode://file/${r}`,title:r,className:i.flowPath,children:[a(),N.jsx(K3e,{style:{marginLeft:"4px",flexShrink:0}})]}):N.jsx("div",{title:r,className:i.flowPath,children:a()})]})})]}),N.jsx("div",{className:i.right})]})},i_t=vr({toolbar:{...Xe.padding("0px","16px"),...Xe.borderBottom("1px","solid",Pt.colorNeutralBackground5),boxSizing:"border-box",display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",height:"48px",flexShrink:0},toolbarTitle:{display:"flex",alignItems:"center",columnGap:"2px"},toolbarActionButton:{color:Pt.colorNeutralForeground2},toolbarSubtitle:{display:"flex",alignItems:"center",columnGap:"2px",color:Pt.colorNeutralForeground4,overflowWrap:"anywhere",...Xe.flex(1)},left:{display:"flex",...Xe.flex(1)},right:{display:"flex"},chatSourceBadge:{...Xe.margin("0px","4px")},flowPath:{display:"flex",width:0,minWidth:0,...Xe.flex(1),...Xe.overflow("hidden")},flowPathText:{display:"block",whiteSpace:"nowrap",textOverflow:"ellipsis",...Xe.overflow("hidden")}}),s_t=e=>N.jsx(N.Fragment,{}),a_t=()=>{const{flowInputDefinition:e}=M1(),t=Au(),r=re.useMemo(()=>yme(e,t),[e,t]);return r.length===0||r.every(o=>o.disabled)},l_t=({className:e})=>{const{viewmodel:t}=Ol(),{chatInputName:r,chatOutputName:n}=Au(),o=a_t(),i=o?"The input field is currently inactive.":"The input field is currently inactive. To enable it, please select a chat input and chat output in the settings.",s=xpt(),a=Ipt(),l=tme(),u=()=>{l(c=>c.type!=="submit_validation"),t.sendMessage()};return r&&n&&s.length===0?N.jsx(N.Fragment,{}):N.jsxs("div",{className:Ve(u_t.container),children:[s.map((c,f)=>{var d;return N.jsxs(zg,{intent:"warning",layout:"multiline",style:{padding:"10px 0 10px 12px"},children:[N.jsx(LB,{children:c.element??c.message??((d=c.error)==null?void 0:d.message)}),c.type==="submit_validation"&&N.jsx(Oue,{containerAction:N.jsxs(N.Fragment,{children:[N.jsx("div",{style:{height:"100%",display:"inline-flex",flexDirection:"column",justifyContent:"center",marginRight:"12px"},children:N.jsx(Tn,{size:"medium",onClick:u,children:"Send anyway"})}),N.jsx(Tn,{"aria-label":"dismiss",appearance:"transparent",style:{verticalAlign:"top"},icon:N.jsx(Pae,{}),onClick:()=>{a(f)}})]})})]},f)}),(!r||!n)&&N.jsx(zg,{intent:o?"info":"warning",layout:"multiline",style:{padding:"10px 0 10px 12px"},children:N.jsx(LB,{children:i})})]})},u_t=mi({container:{position:"relative",marginBottom:"16px","& .fui-MessageBarActions__containerAction":{height:"100%"},"& .fui-MessageBarActions":{display:"none"}}}),c_t=()=>N.jsx(N.Fragment,{}),f_t=e=>N.jsx(u0e,{...e,MessageSenderRenderer:c_t}),d_t=()=>{const[e]=Vs(),t=bgt(),r=fme(),n=A.useMemo(()=>({...cz,Input_Placeholder:(e===At.Dag||e===At.Flex)&&r?'Type in your message, or type "/eval_last" to start evaluation the testing session.':"Type in your message.",SessionSplit_Desc:"Current conversation does not include previous chat history."}),[e,r]);return N.jsxs(Kht,{initialMessages:[],locStrings:n,children:[N.jsx(kgt,{}),N.jsxs("div",{className:u0.container,children:[N.jsx(n_t,{}),N.jsx("div",{className:u0.main,children:N.jsx($ht,{className:u0.chatbox,main:N.jsxs("div",{className:u0.chatboxMainContainer,children:[N.jsx("div",{className:u0.messagesToolbar,children:N.jsx(_gt,{})}),N.jsx(Ove,{className:u0.chatboxMain,MessageBubbleRenderer:f_t,MessageContentRenderer:e_t,TypingIndicatorRenderer:s_t,useMessageActions:hgt})]}),footer:N.jsx(Dve,{EditorRenderer:r_t,EditorActionRenderers:t,InputValidationRenderer:l_t,LeftToolbarRenderer:Agt,MessageInputRenderer:Ime,maxInputHeight:300})})})]})]})},u0=mi({container:{display:"flex",flexDirection:"column",width:"100%",height:"100%",borderRadius:"4px",border:`1px solid ${Pt.colorNeutralBackground5}`},main:{flex:1,display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",width:"100%",height:0,minHeight:0,zIndex:1},chatbox:{boxShadow:"none !important"},chatboxMainContainer:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},chatboxMain:{flex:1,height:"unset !important",paddingTop:"16px !important"},messagesToolbar:{position:"sticky",top:0,zIndex:1,background:"var(--colorNeutralBackground1)",width:"100%",padding:"8px 16px"}}),Fre=()=>{const[e]=Vve(),[{width:t},r]=Zve();return N.jsx("div",{className:Qm.root,children:N.jsxs("div",{className:Qm.content,children:[N.jsx("div",{className:Qm.main,children:N.jsx(d_t,{})}),e?N.jsx(bhe,{enable:{left:!0},minWidth:410,size:{width:t,height:"100%"},onResizeStop:(n,o,i)=>{r({width:i.clientWidth})},children:N.jsx("div",{className:Qm.rightPanel,children:N.jsx(cgt,{})})}):N.jsx("div",{className:Qm.rightPanel,children:N.jsx(Ame,{})})]})})},Qm=mi({root:{display:"flex",flexDirection:"column",height:"100%",width:"100%"},content:{display:"flex",flexDirection:"row",height:"100%",width:"100%",padding:"24px 32px",boxSizing:"border-box",flex:1,overflow:"auto"},leftPanel:{height:"100%",overflow:"auto",backgroundColor:Pt.colorNeutralBackground3},main:{flex:1,height:"100%"},rightPanel:{height:"100%",boxSize:"border-box",marginLeft:"16px"}}),h_t="/v1.0/ui/chat/assets/icon-580HdLU9.png",p_t=()=>N.jsx("img",{src:h_t,alt:"promptflow icon",style:{width:"100%",height:"100%"}}),g_t=({middleContent:e,children:t})=>{const r=v_t();return N.jsxs("div",{className:r.container,children:[N.jsxs("div",{className:r.header,children:[N.jsx("div",{className:r.logo,children:N.jsx(p_t,{})}),"Prompt Flow"]}),e&&N.jsx("div",{style:{margin:"24px 32px 0"},children:e}),N.jsx("div",{className:r.content,children:t})]})},v_t=vr({container:{boxSizing:"border-box",height:"100%",display:"flex",flexDirection:"column"},header:{...Xe.padding("0px","16px"),...Xe.borderBottom("1px","solid",Pt.colorNeutralStroke1),height:"56px",flexBasis:"56px",flexShrink:0,backgroundColor:Pt.colorNeutralBackground3,fontSize:"14px",fontWeight:600,lineHeight:"20px",alignItems:"center",display:"flex"},logo:{...Xe.margin("0px","4px","0px","0px"),width:"24px",height:"24px"},content:{...Xe.flex(1,1,"auto"),...Xe.margin("24px","32px"),...Xe.borderRadius("8px"),...Xe.overflow("auto"),boxShadow:"0px 8px 16px 0px rgba(0, 0, 0, 0.14), 0px 0px 2px 0px rgba(0, 0, 0, 0.12)"}}),lye=re.createContext({reloadApp:()=>{}}),m_t=()=>{const[e]=ja(),[t,r]=upt(),[n,o]=cpt(),{reloadApp:i}=A.useContext(lye),s=ume(),a=cme(),l=!!t&&t!==e,u=()=>{r(""),o("")},c=()=>{const f=s()??{};a({...f,currentFlowPath:t}),i()};return N.jsx(YT,{open:l,children:N.jsx(JT,{children:N.jsxs(QT,{children:[N.jsxs(ZT,{children:["Switch to flow ",n]}),N.jsxs(e9,{children:[N.jsxs("p",{children:["A flow test is currently running. Are you sure you want to switch to flow ",n,"?"]}),N.jsx("p",{children:"The running flow test may be interrupted if you switch to the new flow."})]}),N.jsxs(XT,{children:[N.jsx(_v,{disableButtonEnhancement:!0,children:N.jsx(Tn,{appearance:"secondary",onClick:u,children:"Cancel"})}),N.jsx(Tn,{appearance:"primary",onClick:c,children:"Do switch"})]})]})})})},y_t=()=>{const[e,t]=re.useState(!1),r=Ct(),n=ri(r.topbarErrorMessage$);return re.useEffect(()=>{const o=i=>{t(!!i.detail.error)};return window.addEventListener(_x,o),()=>{window.removeEventListener(_x,o)}},[]),!e&&!n?null:N.jsxs("div",{children:[n&&N.jsx(zg,{intent:"error",layout:"multiline",style:{padding:"10px 0 10px 12px"},children:n}),e&&N.jsx(zg,{intent:"error",layout:"multiline",style:{padding:"10px 0 10px 12px"},children:"Network error detected. The local PFS may be shut down. Please restart it by executing the `pf service start` command."})]})},b_t=()=>{const e=w0t(),t=Un?"Loading... Please make sure you select a flow.day.yaml file in the editor":"Loading...";return N.jsxs("div",{style:{width:"100%",height:"100%"},children:[e?Un?N.jsx(Fre,{}):N.jsx(g_t,{middleContent:N.jsx(y_t,{}),children:N.jsx(Fre,{})}):N.jsx(k0t,{children:N.jsx(tE,{label:t})}),N.jsx(m_t,{})]})};window.ChatUI_Version="20240427.11-merge";const __t=()=>{const[e,t]=re.useState(0),r=re.useCallback(()=>{t(o=>o+1)},[]),n=re.useMemo(()=>({reloadApp:r}),[r]);return N.jsx(lye.Provider,{value:n,children:N.jsx(yst,{onReload:r,children:N.jsx(E_t,{},e)})})},E_t=()=>N.jsx(Aat,{children:({theme:e})=>N.jsx(Lle,{style:{width:"100%",height:"100%"},theme:e==="dark"?VBe:qBe,children:N.jsx(b_t,{})})});tOe().register(wOe());ANe();const S_t=Use(document.getElementById("root"));S_t.render(N.jsx(A.StrictMode,{children:N.jsx(__t,{})}))});export default w_t(); diff --git a/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/index.html b/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/index.html index 8f5940bc1cc..99b43e58526 100644 --- a/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/index.html +++ b/src/promptflow-devkit/promptflow/_sdk/_service/static/chat-window/index.html @@ -2,7 +2,10 @@ - + + + + Chat - +